blob: caa2e70985222e8e1bd29ac27c5f2d3d5ad00fe9 [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
cristy0c60a692010-11-04 01:09:47 +0000569
cristycd4c5312009-11-22 01:19:08 +0000570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000572
573# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000592PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000593PACKAGE_VERSION='7.0.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000595PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000596PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000597
cristy4c08aed2011-07-01 19:47:50 +0000598ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
cristycd4c5312009-11-22 01:19:08 +0000635ac_header_list=
cristy5eef09f2012-10-16 12:08:28 +0000636ac_subst_vars='am__EXEEXT_FALSE
cristy73bd4a52010-10-05 11:24:23 +0000637am__EXEEXT_TRUE
638LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000639MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000640MAGICK_LIBS
641MAGICK_LDFLAGS
642MAGICK_PCFLAGS
643MAGICK_CPPFLAGS
644MAGICK_CXXFLAGS
645MAGICK_CFLAGS
646MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000647OSX_GCOV_LDFLAG
648DELEGATES
649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000676ZIP
cristy73bd4a52010-10-05 11:24:23 +0000677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000679P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
687ghostscript_font_dir
688windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000690PrintDelegate
691ZipDelegate
692XPSDelegate
693WWWDecodeDelegate
694WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000695UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000697SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000699RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700RMDelegate
701RLEEncodeDelegate
702PSDelegate
703POVDelegate
704PGPDecodeDelegate
705PCLDelegate
706MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000707MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708MPEGEncodeDelegate
709MPEGDecodeDelegate
710MANDelegate
711LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000712LPRDelegate
713LPDelegate
714ILBMEncodeDelegate
715ILBMDecodeDelegate
716HTMLDecodeDelegate
717HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000718GnuplotDecodeDelegate
719MogrifyDelegate
720DisplayDelegate
721ConvertDelegate
722FIGDecodeDelegate
723EditorDelegate
724EchoDelegate
725DVIDecodeDelegate
726GVCDecodeDelegate
727DNGDecodeDelegate
728CatDelegate
729CGMDecodeDelegate
730BrowseDelegate
731BZIPDelegate
732BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000733AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000734SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000735SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000736CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000737DOCUMENTATION_PATH
738FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000739FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000740CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000741CODER_DIRNAME
742MODULES_PATH
743MODULES_RELATIVE_PATH
744MODULES_DIRNAME
745MODULES_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000746LIBRARY_PATH
747EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000748INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000749PERLMAINCC
750XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000751XML_DELEGATE_FALSE
752XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000753xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000754WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000755WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000756WMF_DELEGATE_FALSE
757WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000758WEBP_LIBS
759WEBP_DELEGATE_FALSE
760WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000761TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000762TIFF_DELEGATE_FALSE
763TIFF_DELEGATE_TRUE
764CAIRO_DELEGATE_FALSE
765CAIRO_DELEGATE_TRUE
766RSVG_DELEGATE_FALSE
767RSVG_DELEGATE_TRUE
768CAIRO_SVG_LIBS
769CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000770RSVG_LIBS
771RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000772PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000773PNG_DELEGATE_FALSE
774PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000775PANGOCAIRO_DELEGATE_FALSE
776PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000777PANGO_DELEGATE_FALSE
778PANGO_DELEGATE_TRUE
779PANGO_LIBS
780PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000781OPENEXR_DELEGATE_FALSE
782OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000783OPENEXR_LIBS
784OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000785LZMA_DELEGATE_FALSE
786LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000787LZMA_LIBS
788LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000789LQR_DELEGATE_FALSE
790LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000791LQR_LIBS
792LQR_CFLAGS
793LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000794LCMS_DELEGATE_FALSE
795LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000796JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000797JP2_DELEGATE_FALSE
798JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000800JPEG_DELEGATE_FALSE
801JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000802JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000803JBIG_DELEGATE_FALSE
804JBIG_DELEGATE_TRUE
805GVC_DELEGATE_FALSE
806GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807GVC_LIBS
808GVC_CFLAGS
809GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000810GS_DELEGATE_FALSE
811GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000812FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813FREETYPE_DELEGATE_FALSE
814FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000815freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000816FONTCONFIG_DELEGATE_FALSE
817FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818FONTCONFIG_LIBS
819FONTCONFIG_CFLAGS
820FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000821FPX_DELEGATE_FALSE
822FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000823FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824FFTW_DELEGATE_FALSE
825FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000827DJVU_DELEGATE_FALSE
828DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000829DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000830DPS_DELEGATE_FALSE
831DPS_DELEGATE_TRUE
832AUTOTRACE_DELEGATE_FALSE
833AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000834AUTOTRACE_LIBS
835AUTOTRACE_CFLAGS
836LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000837WITH_LTDL_FALSE
838WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000840ZLIB_DELEGATE_FALSE
841ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000842XEXT_LIBS
843X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000844X11_DELEGATE_FALSE
845X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000846X_EXTRA_LIBS
847X_LIBS
848X_PRE_LIBS
849X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000850XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000851BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000852BZLIB_DELEGATE_FALSE
853BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000854CCMALLOCDelegate
855UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000856HasUMEM_FALSE
857HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000858THREAD_LIBS
859GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000860WITH_MAGICK_PLUS_PLUS_FALSE
861WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000862OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000863MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000864POW_LIB
865LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000866UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000867UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000868UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000869UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000870UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000871UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000872INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000873INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000874UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000875UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000876INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000877INT32_T
878UINT16_T
879INT16_T
880UINT8_T
881INT8_T
882LIBRARY_EXTRA_CPPFLAGS
883MODULE_EXTRA_CPPFLAGS
884LIBSTDCLDFLAGS
885PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000886MAGICK_LT_RELEASE_OPTS
cristycf4a3c22012-12-02 21:47:25 +0000887ABI_SUFFIX
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
cristy73bd4a52010-10-05 11:24:23 +0000895WITH_MODULES_FALSE
896WITH_MODULES_TRUE
897WITH_SHARED_LIBS_FALSE
898WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000899LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000900CXXCPP
901OTOOL64
902OTOOL
903LIPO
904NMEDIT
905DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000906MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000907RANLIB
cristyda16f162011-02-19 23:52:17 +0000908ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000909AR
910NM
911ac_ct_DUMPBIN
912DUMPBIN
913LIBTOOL
914OBJDUMP
915DLLTOOL
916AS
cristy3ed852e2009-09-05 21:47:34 +0000917LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000918CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000919CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000920OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000921PTHREAD_CFLAGS
922PTHREAD_LIBS
923PTHREAD_CC
924ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000925SHAREARCH_DIR
926INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000927WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000928USING_CL_FALSE
929USING_CL_TRUE
930CYGWIN_BUILD_FALSE
931CYGWIN_BUILD_TRUE
932WIN32_NATIVE_BUILD_FALSE
933WIN32_NATIVE_BUILD_TRUE
934WINGDI32_DELEGATE_FALSE
935WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000936GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000937HAVE_LD_VERSION_SCRIPT_FALSE
938HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000939PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000940PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000941LN_S
cristy3ed852e2009-09-05 21:47:34 +0000942LD
cristy73bd4a52010-10-05 11:24:23 +0000943FGREP
944SED
945am__fastdepCXX_FALSE
946am__fastdepCXX_TRUE
947CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000948ac_ct_CXX
949CXXFLAGS
950CXX
cristya0b81c32010-01-22 02:54:33 +0000951EGREP
952GREP
953CPP
cristy73bd4a52010-10-05 11:24:23 +0000954am__fastdepCC_FALSE
955am__fastdepCC_TRUE
956CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000957am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000958AMDEPBACKSLASH
959AMDEP_FALSE
960AMDEP_TRUE
961am__quote
962am__include
963DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000964OBJEXT
965EXEEXT
966ac_ct_CC
967CPPFLAGS
968LDFLAGS
969CFLAGS
970CC
971DIRSEP
972MAGICK_FILTER_MODULE_PATH
973MAGICK_CONFIGURE_BUILD_PATH
974MAGICK_CONFIGURE_SRC_PATH
975MAGICK_CODER_MODULE_PATH
976MAN_DIR
977INFO_DIR
978PERSISTINCLUDE_DIR
979INCLUDE_DIR
980LIB_DIR
981LOCALSTATE_DIR
982SHAREDSTATE_DIR
983SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000984DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000985DATA_DIR
986LIBEXEC_DIR
987SBIN_DIR
988BIN_DIR
989EXEC_PREFIX_DIR
990PREFIX_DIR
991CONFIG_STATUS_DEPENDENCIES
992MAGICK_LIB_VERSION_NUMBER
993MAGICK_LIB_VERSION_TEXT
994MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000995AM_BACKSLASH
996AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +0000997AM_DEFAULT_V
998AM_V
cristy73bd4a52010-10-05 11:24:23 +0000999am__untar
1000am__tar
1001AMTAR
1002am__leading_dot
1003SET_MAKE
1004AWK
1005mkdir_p
1006MKDIR_P
1007INSTALL_STRIP_PROGRAM
1008STRIP
1009install_sh
1010MAKEINFO
1011AUTOHEADER
1012AUTOMAKE
1013AUTOCONF
1014ACLOCAL
1015VERSION
1016PACKAGE
1017CYGPATH_W
1018am__isrc
1019INSTALL_DATA
1020INSTALL_SCRIPT
1021INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001022PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001023PACKAGE_RELEASE_DATE
1024PACKAGE_LIB_VERSION_NUMBER
1025PACKAGE_LIB_VERSION
1026PACKAGE_CHANGE_DATE
1027PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001028PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001029MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001030MAGICK_LIBRARY_VERSION_INFO
1031MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001032MAGICK_LIBRARY_AGE
1033MAGICK_LIBRARY_REVISION
1034MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001035MAGICK_TARGET_OS
1036MAGICK_TARGET_VENDOR
1037MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001038target_os
1039target_vendor
1040target_cpu
1041target
1042host_os
1043host_vendor
1044host_cpu
1045host
1046build_os
1047build_vendor
1048build_cpu
1049build
1050CONFIGURE_ARGS
1051DISTCHECK_CONFIG_FLAGS
1052target_alias
1053host_alias
1054build_alias
1055LIBS
1056ECHO_T
1057ECHO_N
1058ECHO_C
1059DEFS
1060mandir
1061localedir
1062libdir
1063psdir
1064pdfdir
1065dvidir
1066htmldir
1067infodir
1068docdir
1069oldincludedir
1070includedir
1071localstatedir
1072sharedstatedir
1073sysconfdir
1074datadir
1075datarootdir
1076libexecdir
1077sbindir
1078bindir
1079program_transform_name
1080prefix
1081exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001082PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001083PACKAGE_BUGREPORT
1084PACKAGE_STRING
1085PACKAGE_VERSION
1086PACKAGE_TARNAME
1087PACKAGE_NAME
1088PATH_SEPARATOR
1089SHELL'
1090ac_subst_files=''
1091ac_user_opts='
1092enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001093enable_silent_rules
1094enable_dependency_tracking
1095with_gnu_ld
1096with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001097with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001098enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001099enable_bounds_checking
1100enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001101with_includearch_dir
1102with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001103with_threads
1104enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001105enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001106enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001107enable_shared
1108enable_static
1109with_pic
1110enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001111with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001112enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001113with_modules
1114enable_delegate_build
1115enable_deprecated
1116enable_installed
1117enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001118enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001119enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001120enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001121enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001122enable_ccmalloc
1123enable_efence
1124enable_prof
1125enable_gprof
1126enable_gcov
1127with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001128enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001129with_quantum_depth
1130with_cache
1131with_frozenpaths
1132with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001133with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001134with_perl
1135with_perl_options
1136with_umem
1137with_libstdc
1138with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001139with_x
cristy3ed852e2009-09-05 21:47:34 +00001140with_zlib
1141with_autotrace
1142with_dps
1143with_djvu
cristy430a7312010-01-21 20:44:04 +00001144with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001145with_fftw
1146with_fpx
1147with_fontconfig
1148with_freetype
1149with_gslib
1150with_fontpath
1151with_gs_font_dir
1152with_gvc
1153with_jbig
1154with_jpeg
1155with_jp2
1156with_lcms
cristy71203402010-06-18 13:12:03 +00001157with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001158with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001159with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001160with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001161with_pango
cristy3ed852e2009-09-05 21:47:34 +00001162with_png
1163with_rsvg
1164with_tiff
cristyb1860752011-03-14 00:27:46 +00001165with_webp
cristy3ed852e2009-09-05 21:47:34 +00001166with_windows_font_dir
1167with_wmf
1168with_xml
1169'
1170 ac_precious_vars='build_alias
1171host_alias
1172target_alias
1173CC
1174CFLAGS
1175LDFLAGS
1176LIBS
1177CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001178CPP
cristy3ed852e2009-09-05 21:47:34 +00001179CXX
1180CXXFLAGS
1181CCC
cristy73bd4a52010-10-05 11:24:23 +00001182PKG_CONFIG
1183CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001184XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001185AUTOTRACE_CFLAGS
1186AUTOTRACE_LIBS
1187FONTCONFIG_CFLAGS
1188FONTCONFIG_LIBS
1189GVC_CFLAGS
1190GVC_LIBS
1191LQR_CFLAGS
1192LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001193LZMA_CFLAGS
1194LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001195OPENEXR_CFLAGS
1196OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001197PANGO_CFLAGS
1198PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001199RSVG_CFLAGS
1200RSVG_LIBS
1201CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001202CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001203
1204
1205# Initialize some variables set by options.
1206ac_init_help=
1207ac_init_version=false
1208ac_unrecognized_opts=
1209ac_unrecognized_sep=
1210# The variables have the same names as the options, with
1211# dashes changed to underlines.
1212cache_file=/dev/null
1213exec_prefix=NONE
1214no_create=
1215no_recursion=
1216prefix=NONE
1217program_prefix=NONE
1218program_suffix=NONE
1219program_transform_name=s,x,x,
1220silent=
1221site=
1222srcdir=
1223verbose=
1224x_includes=NONE
1225x_libraries=NONE
1226
1227# Installation directory options.
1228# These are left unexpanded so users can "make install exec_prefix=/foo"
1229# and all the variables that are supposed to be based on exec_prefix
1230# by default will actually change.
1231# Use braces instead of parens because sh, perl, etc. also accept them.
1232# (The list follows the same order as the GNU Coding Standards.)
1233bindir='${exec_prefix}/bin'
1234sbindir='${exec_prefix}/sbin'
1235libexecdir='${exec_prefix}/libexec'
1236datarootdir='${prefix}/share'
1237datadir='${datarootdir}'
1238sysconfdir='${prefix}/etc'
1239sharedstatedir='${prefix}/com'
1240localstatedir='${prefix}/var'
1241includedir='${prefix}/include'
1242oldincludedir='/usr/include'
1243docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1244infodir='${datarootdir}/info'
1245htmldir='${docdir}'
1246dvidir='${docdir}'
1247pdfdir='${docdir}'
1248psdir='${docdir}'
1249libdir='${exec_prefix}/lib'
1250localedir='${datarootdir}/locale'
1251mandir='${datarootdir}/man'
1252
1253ac_prev=
1254ac_dashdash=
1255for ac_option
1256do
1257 # If the previous option needs an argument, assign it.
1258 if test -n "$ac_prev"; then
1259 eval $ac_prev=\$ac_option
1260 ac_prev=
1261 continue
1262 fi
1263
1264 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001265 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1266 *=) ac_optarg= ;;
1267 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001268 esac
1269
1270 # Accept the important Cygnus configure options, so we can diagnose typos.
1271
1272 case $ac_dashdash$ac_option in
1273 --)
1274 ac_dashdash=yes ;;
1275
1276 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1277 ac_prev=bindir ;;
1278 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1279 bindir=$ac_optarg ;;
1280
1281 -build | --build | --buil | --bui | --bu)
1282 ac_prev=build_alias ;;
1283 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1284 build_alias=$ac_optarg ;;
1285
1286 -cache-file | --cache-file | --cache-fil | --cache-fi \
1287 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1288 ac_prev=cache_file ;;
1289 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1290 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1291 cache_file=$ac_optarg ;;
1292
1293 --config-cache | -C)
1294 cache_file=config.cache ;;
1295
1296 -datadir | --datadir | --datadi | --datad)
1297 ac_prev=datadir ;;
1298 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1299 datadir=$ac_optarg ;;
1300
1301 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1302 | --dataroo | --dataro | --datar)
1303 ac_prev=datarootdir ;;
1304 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1305 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1306 datarootdir=$ac_optarg ;;
1307
1308 -disable-* | --disable-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001312 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1316 *"
1317"enable_$ac_useropt"
1318"*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval enable_$ac_useropt=no ;;
1323
1324 -docdir | --docdir | --docdi | --doc | --do)
1325 ac_prev=docdir ;;
1326 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1327 docdir=$ac_optarg ;;
1328
1329 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1330 ac_prev=dvidir ;;
1331 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1332 dvidir=$ac_optarg ;;
1333
1334 -enable-* | --enable-*)
1335 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001338 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001339 ac_useropt_orig=$ac_useropt
1340 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341 case $ac_user_opts in
1342 *"
1343"enable_$ac_useropt"
1344"*) ;;
1345 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1346 ac_unrecognized_sep=', ';;
1347 esac
1348 eval enable_$ac_useropt=\$ac_optarg ;;
1349
1350 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1351 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1352 | --exec | --exe | --ex)
1353 ac_prev=exec_prefix ;;
1354 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1355 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1356 | --exec=* | --exe=* | --ex=*)
1357 exec_prefix=$ac_optarg ;;
1358
1359 -gas | --gas | --ga | --g)
1360 # Obsolete; use --with-gas.
1361 with_gas=yes ;;
1362
1363 -help | --help | --hel | --he | -h)
1364 ac_init_help=long ;;
1365 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1366 ac_init_help=recursive ;;
1367 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1368 ac_init_help=short ;;
1369
1370 -host | --host | --hos | --ho)
1371 ac_prev=host_alias ;;
1372 -host=* | --host=* | --hos=* | --ho=*)
1373 host_alias=$ac_optarg ;;
1374
1375 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1376 ac_prev=htmldir ;;
1377 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1378 | --ht=*)
1379 htmldir=$ac_optarg ;;
1380
1381 -includedir | --includedir | --includedi | --included | --include \
1382 | --includ | --inclu | --incl | --inc)
1383 ac_prev=includedir ;;
1384 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1385 | --includ=* | --inclu=* | --incl=* | --inc=*)
1386 includedir=$ac_optarg ;;
1387
1388 -infodir | --infodir | --infodi | --infod | --info | --inf)
1389 ac_prev=infodir ;;
1390 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1391 infodir=$ac_optarg ;;
1392
1393 -libdir | --libdir | --libdi | --libd)
1394 ac_prev=libdir ;;
1395 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1396 libdir=$ac_optarg ;;
1397
1398 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1399 | --libexe | --libex | --libe)
1400 ac_prev=libexecdir ;;
1401 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1402 | --libexe=* | --libex=* | --libe=*)
1403 libexecdir=$ac_optarg ;;
1404
1405 -localedir | --localedir | --localedi | --localed | --locale)
1406 ac_prev=localedir ;;
1407 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1408 localedir=$ac_optarg ;;
1409
1410 -localstatedir | --localstatedir | --localstatedi | --localstated \
1411 | --localstate | --localstat | --localsta | --localst | --locals)
1412 ac_prev=localstatedir ;;
1413 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1414 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1415 localstatedir=$ac_optarg ;;
1416
1417 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1418 ac_prev=mandir ;;
1419 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1420 mandir=$ac_optarg ;;
1421
1422 -nfp | --nfp | --nf)
1423 # Obsolete; use --without-fp.
1424 with_fp=no ;;
1425
1426 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1427 | --no-cr | --no-c | -n)
1428 no_create=yes ;;
1429
1430 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1431 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1432 no_recursion=yes ;;
1433
1434 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1435 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1436 | --oldin | --oldi | --old | --ol | --o)
1437 ac_prev=oldincludedir ;;
1438 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1439 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1440 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1441 oldincludedir=$ac_optarg ;;
1442
1443 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1444 ac_prev=prefix ;;
1445 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1446 prefix=$ac_optarg ;;
1447
1448 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1449 | --program-pre | --program-pr | --program-p)
1450 ac_prev=program_prefix ;;
1451 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1452 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1453 program_prefix=$ac_optarg ;;
1454
1455 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1456 | --program-suf | --program-su | --program-s)
1457 ac_prev=program_suffix ;;
1458 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1459 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1460 program_suffix=$ac_optarg ;;
1461
1462 -program-transform-name | --program-transform-name \
1463 | --program-transform-nam | --program-transform-na \
1464 | --program-transform-n | --program-transform- \
1465 | --program-transform | --program-transfor \
1466 | --program-transfo | --program-transf \
1467 | --program-trans | --program-tran \
1468 | --progr-tra | --program-tr | --program-t)
1469 ac_prev=program_transform_name ;;
1470 -program-transform-name=* | --program-transform-name=* \
1471 | --program-transform-nam=* | --program-transform-na=* \
1472 | --program-transform-n=* | --program-transform-=* \
1473 | --program-transform=* | --program-transfor=* \
1474 | --program-transfo=* | --program-transf=* \
1475 | --program-trans=* | --program-tran=* \
1476 | --progr-tra=* | --program-tr=* | --program-t=*)
1477 program_transform_name=$ac_optarg ;;
1478
1479 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1480 ac_prev=pdfdir ;;
1481 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1482 pdfdir=$ac_optarg ;;
1483
1484 -psdir | --psdir | --psdi | --psd | --ps)
1485 ac_prev=psdir ;;
1486 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1487 psdir=$ac_optarg ;;
1488
1489 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1490 | -silent | --silent | --silen | --sile | --sil)
1491 silent=yes ;;
1492
1493 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1494 ac_prev=sbindir ;;
1495 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1496 | --sbi=* | --sb=*)
1497 sbindir=$ac_optarg ;;
1498
1499 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1500 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1501 | --sharedst | --shareds | --shared | --share | --shar \
1502 | --sha | --sh)
1503 ac_prev=sharedstatedir ;;
1504 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1505 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1506 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1507 | --sha=* | --sh=*)
1508 sharedstatedir=$ac_optarg ;;
1509
1510 -site | --site | --sit)
1511 ac_prev=site ;;
1512 -site=* | --site=* | --sit=*)
1513 site=$ac_optarg ;;
1514
1515 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1516 ac_prev=srcdir ;;
1517 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1518 srcdir=$ac_optarg ;;
1519
1520 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1521 | --syscon | --sysco | --sysc | --sys | --sy)
1522 ac_prev=sysconfdir ;;
1523 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1524 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1525 sysconfdir=$ac_optarg ;;
1526
1527 -target | --target | --targe | --targ | --tar | --ta | --t)
1528 ac_prev=target_alias ;;
1529 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1530 target_alias=$ac_optarg ;;
1531
1532 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1533 verbose=yes ;;
1534
1535 -version | --version | --versio | --versi | --vers | -V)
1536 ac_init_version=: ;;
1537
1538 -with-* | --with-*)
1539 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1540 # Reject names that are not valid shell variable names.
1541 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001542 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001543 ac_useropt_orig=$ac_useropt
1544 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1545 case $ac_user_opts in
1546 *"
1547"with_$ac_useropt"
1548"*) ;;
1549 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1550 ac_unrecognized_sep=', ';;
1551 esac
1552 eval with_$ac_useropt=\$ac_optarg ;;
1553
1554 -without-* | --without-*)
1555 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1556 # Reject names that are not valid shell variable names.
1557 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001558 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001559 ac_useropt_orig=$ac_useropt
1560 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1561 case $ac_user_opts in
1562 *"
1563"with_$ac_useropt"
1564"*) ;;
1565 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1566 ac_unrecognized_sep=', ';;
1567 esac
1568 eval with_$ac_useropt=no ;;
1569
1570 --x)
1571 # Obsolete; use --with-x.
1572 with_x=yes ;;
1573
1574 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1575 | --x-incl | --x-inc | --x-in | --x-i)
1576 ac_prev=x_includes ;;
1577 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1578 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1579 x_includes=$ac_optarg ;;
1580
1581 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1582 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1583 ac_prev=x_libraries ;;
1584 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1585 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1586 x_libraries=$ac_optarg ;;
1587
cristy98dddb52010-11-04 00:30:15 +00001588 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1589Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001590 ;;
1591
1592 *=*)
1593 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1594 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001595 case $ac_envvar in #(
1596 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001597 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001598 esac
cristy3ed852e2009-09-05 21:47:34 +00001599 eval $ac_envvar=\$ac_optarg
1600 export $ac_envvar ;;
1601
1602 *)
1603 # FIXME: should be removed in autoconf 3.0.
1604 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1605 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1606 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001607 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001608 ;;
1609
1610 esac
1611done
1612
1613if test -n "$ac_prev"; then
1614 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001615 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001616fi
1617
1618if test -n "$ac_unrecognized_opts"; then
1619 case $enable_option_checking in
1620 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001621 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001622 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1623 esac
1624fi
1625
1626# Check all directory arguments for consistency.
1627for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1628 datadir sysconfdir sharedstatedir localstatedir includedir \
1629 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1630 libdir localedir mandir
1631do
1632 eval ac_val=\$$ac_var
1633 # Remove trailing slashes.
1634 case $ac_val in
1635 */ )
1636 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1637 eval $ac_var=\$ac_val;;
1638 esac
1639 # Be sure to have absolute directory names.
1640 case $ac_val in
1641 [\\/$]* | ?:[\\/]* ) continue;;
1642 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1643 esac
cristy98dddb52010-11-04 00:30:15 +00001644 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001645done
1646
1647# There might be people who depend on the old broken behavior: `$host'
1648# used to hold the argument of --host etc.
1649# FIXME: To remove some day.
1650build=$build_alias
1651host=$host_alias
1652target=$target_alias
1653
1654# FIXME: To remove some day.
1655if test "x$host_alias" != x; then
1656 if test "x$build_alias" = x; then
1657 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001658 elif test "x$build_alias" != "x$host_alias"; then
1659 cross_compiling=yes
1660 fi
1661fi
1662
1663ac_tool_prefix=
1664test -n "$host_alias" && ac_tool_prefix=$host_alias-
1665
1666test "$silent" = yes && exec 6>/dev/null
1667
1668
1669ac_pwd=`pwd` && test -n "$ac_pwd" &&
1670ac_ls_di=`ls -di .` &&
1671ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001672 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001673test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001674 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001675
1676
1677# Find the source files, if location was not specified.
1678if test -z "$srcdir"; then
1679 ac_srcdir_defaulted=yes
1680 # Try the directory containing this script, then the parent directory.
1681 ac_confdir=`$as_dirname -- "$as_myself" ||
1682$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1683 X"$as_myself" : 'X\(//\)[^/]' \| \
1684 X"$as_myself" : 'X\(//\)$' \| \
1685 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1686$as_echo X"$as_myself" |
1687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1688 s//\1/
1689 q
1690 }
1691 /^X\(\/\/\)[^/].*/{
1692 s//\1/
1693 q
1694 }
1695 /^X\(\/\/\)$/{
1696 s//\1/
1697 q
1698 }
1699 /^X\(\/\).*/{
1700 s//\1/
1701 q
1702 }
1703 s/.*/./; q'`
1704 srcdir=$ac_confdir
1705 if test ! -r "$srcdir/$ac_unique_file"; then
1706 srcdir=..
1707 fi
1708else
1709 ac_srcdir_defaulted=no
1710fi
1711if test ! -r "$srcdir/$ac_unique_file"; then
1712 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001713 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001714fi
1715ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1716ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001717 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001718 pwd)`
1719# When building in place, set srcdir=.
1720if test "$ac_abs_confdir" = "$ac_pwd"; then
1721 srcdir=.
1722fi
1723# Remove unnecessary trailing slashes from srcdir.
1724# Double slashes in file names in object file debugging info
1725# mess up M-x gdb in Emacs.
1726case $srcdir in
1727*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1728esac
1729for ac_var in $ac_precious_vars; do
1730 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1731 eval ac_env_${ac_var}_value=\$${ac_var}
1732 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1733 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1734done
1735
1736#
1737# Report the --help message.
1738#
1739if test "$ac_init_help" = "long"; then
1740 # Omit some internal or obsolete options to make the list less imposing.
1741 # This message is too long to be a string in the A/UX 3.1 sh.
1742 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001743\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001744
1745Usage: $0 [OPTION]... [VAR=VALUE]...
1746
1747To assign environment variables (e.g., CC, CFLAGS...), specify them as
1748VAR=VALUE. See below for descriptions of some of the useful variables.
1749
1750Defaults for the options are specified in brackets.
1751
1752Configuration:
1753 -h, --help display this help and exit
1754 --help=short display options specific to this package
1755 --help=recursive display the short help of all the included packages
1756 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001757 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001758 --cache-file=FILE cache test results in FILE [disabled]
1759 -C, --config-cache alias for \`--cache-file=config.cache'
1760 -n, --no-create do not create output files
1761 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1762
1763Installation directories:
1764 --prefix=PREFIX install architecture-independent files in PREFIX
1765 [$ac_default_prefix]
1766 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1767 [PREFIX]
1768
1769By default, \`make install' will install all the files in
1770\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1771an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1772for instance \`--prefix=\$HOME'.
1773
1774For better control, use the options below.
1775
1776Fine tuning of the installation directories:
1777 --bindir=DIR user executables [EPREFIX/bin]
1778 --sbindir=DIR system admin executables [EPREFIX/sbin]
1779 --libexecdir=DIR program executables [EPREFIX/libexec]
1780 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1781 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1782 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1783 --libdir=DIR object code libraries [EPREFIX/lib]
1784 --includedir=DIR C header files [PREFIX/include]
1785 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1786 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1787 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1788 --infodir=DIR info documentation [DATAROOTDIR/info]
1789 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1790 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001791 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001792 --htmldir=DIR html documentation [DOCDIR]
1793 --dvidir=DIR dvi documentation [DOCDIR]
1794 --pdfdir=DIR pdf documentation [DOCDIR]
1795 --psdir=DIR ps documentation [DOCDIR]
1796_ACEOF
1797
1798 cat <<\_ACEOF
1799
cristy73bd4a52010-10-05 11:24:23 +00001800Program names:
1801 --program-prefix=PREFIX prepend PREFIX to installed program names
1802 --program-suffix=SUFFIX append SUFFIX to installed program names
1803 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1804
cristy3ed852e2009-09-05 21:47:34 +00001805X features:
1806 --x-includes=DIR X include files are in DIR
1807 --x-libraries=DIR X library files are in DIR
1808
1809System types:
1810 --build=BUILD configure for building on BUILD [guessed]
1811 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1812 --target=TARGET configure for building compilers for TARGET [HOST]
1813_ACEOF
1814fi
1815
1816if test -n "$ac_init_help"; then
1817 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001818 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001819 esac
1820 cat <<\_ACEOF
1821
1822Optional Features:
1823 --disable-option-checking ignore unrecognized --enable/--with options
1824 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1825 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001826 --enable-silent-rules less verbose build output (undo: "make V=1")
1827 --disable-silent-rules verbose build output (undo: "make V=0")
1828 --enable-dependency-tracking
1829 do not reject slow dependency extractors
1830 --disable-dependency-tracking
1831 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001832 --enable-ld-version-script
1833 enable linker version script (default is enabled
1834 when possible)
cristya3824692012-03-30 17:22:07 +00001835 --enable-bounds-checking
1836 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001837 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001838 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001839 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001840 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001841 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001842 --enable-shared[=PKGS] build shared libraries [default=yes]
1843 --enable-static[=PKGS] build static libraries [default=yes]
1844 --enable-fast-install[=PKGS]
1845 optimize for fast installation [default=yes]
1846 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001847 --enable-delegate-build look for delegate libraries in build directory
1848 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001849 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001850 --disable-installed Formally install ImageMagick under PREFIX
1851 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001852 --enable-zero-configuration
1853 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001854 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001855 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001856 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001857 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001858 --enable-maintainer-mode
1859 enable make rules and dependencies not useful (and
1860 sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001861 --enable-ccmalloc enable 'ccmalloc' memory debug support
1862 --enable-efence enable 'efence' memory debug support
1863 --enable-prof enable 'prof' profiling support
1864 --enable-gprof enable 'gprof' profiling support
1865 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001866 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001867 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001868
1869Optional Packages:
1870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001872 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001873 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001874 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1875 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001876 --includearch-dir=DIR ARCH specific include directory
1877 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001878 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001879 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001880 both]
cristyda16f162011-02-19 23:52:17 +00001881 --with-sysroot=DIR Search for dependent libraries within DIR
1882 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001883 --with-modules enable building dynamically loadable modules
1884 --with-method-prefix=PREFIX
1885 prefix MagickCore API methods
1886 --with-quantum-depth=DEPTH
1887 number of bits in a pixel quantum (default 16)
1888 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1889 memory)
1890 --with-frozenpaths freeze delegate paths
1891 --without-magick-plus-plus
1892 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001893 --with-package-release-name=NAME
1894 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001895 --with-perl enable build/install of PerlMagick
1896 --with-perl-options=OPTIONS
1897 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001898 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001899 --with-umem enable umem memory allocation library support
1900 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1901 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001902 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001903 --without-zlib disable ZLIB support
1904 --with-autotrace enable autotrace support
1905 --without-dps disable Display Postscript support
1906 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001907 --with-dejavu-font-dir=DIR
1908 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001909 --without-fftw disable FFTW support
1910 --without-fpx disable FlashPIX support
1911 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001912 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001913 --without-gslib enable Ghostscript library support
1914 --with-fontpath=DIR prepend to default font search path
1915 --with-gs-font-dir=DIR Ghostscript font directory
cristy1b70dc82012-07-01 23:15:05 +00001916 --with-gvc disable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001917 --without-jbig disable JBIG support
1918 --without-jpeg disable JPEG support
1919 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001920 --without-lcms disable lcms (v1.1X) support
1921 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001922 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001923 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001924 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001925 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001926 --without-png disable PNG support
cristy1164d5f2012-08-15 00:58:25 +00001927 --without-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001928 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001929 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001930 --with-windows-font-dir=DIR
1931 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001932 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001933 --without-xml disable XML support
1934
1935Some influential environment variables:
1936 CC C compiler command
1937 CFLAGS C compiler flags
1938 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1939 nonstandard directory <lib dir>
1940 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001941 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001942 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001943 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001944 CXX C++ compiler command
1945 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001946 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001947 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001948 XMKMF Path to xmkmf, Makefile generator for X Window System
1949 AUTOTRACE_CFLAGS
1950 C compiler flags for AUTOTRACE, overriding pkg-config
1951 AUTOTRACE_LIBS
1952 linker flags for AUTOTRACE, overriding pkg-config
1953 FONTCONFIG_CFLAGS
1954 C compiler flags for FONTCONFIG, overriding pkg-config
1955 FONTCONFIG_LIBS
1956 linker flags for FONTCONFIG, overriding pkg-config
1957 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1958 GVC_LIBS linker flags for GVC, overriding pkg-config
1959 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1960 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001961 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1962 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001963 OPENEXR_CFLAGS
1964 C compiler flags for OPENEXR, overriding pkg-config
1965 OPENEXR_LIBS
1966 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001967 PANGO_CFLAGS
1968 C compiler flags for PANGO, overriding pkg-config
1969 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001970 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1971 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1972 CAIRO_SVG_CFLAGS
1973 C compiler flags for CAIRO_SVG, overriding pkg-config
1974 CAIRO_SVG_LIBS
1975 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001976
1977Use these variables to override the choices made by `configure' or to help
1978it to find libraries and programs with nonstandard names/locations.
1979
1980Report bugs to <http://www.imagemagick.org>.
1981_ACEOF
1982ac_status=$?
1983fi
1984
1985if test "$ac_init_help" = "recursive"; then
1986 # If there are subdirs, report their specific --help.
1987 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1988 test -d "$ac_dir" ||
1989 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1990 continue
1991 ac_builddir=.
1992
1993case "$ac_dir" in
1994.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1995*)
1996 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1997 # A ".." for each directory in $ac_dir_suffix.
1998 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1999 case $ac_top_builddir_sub in
2000 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2001 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2002 esac ;;
2003esac
2004ac_abs_top_builddir=$ac_pwd
2005ac_abs_builddir=$ac_pwd$ac_dir_suffix
2006# for backward compatibility:
2007ac_top_builddir=$ac_top_build_prefix
2008
2009case $srcdir in
2010 .) # We are building in place.
2011 ac_srcdir=.
2012 ac_top_srcdir=$ac_top_builddir_sub
2013 ac_abs_top_srcdir=$ac_pwd ;;
2014 [\\/]* | ?:[\\/]* ) # Absolute name.
2015 ac_srcdir=$srcdir$ac_dir_suffix;
2016 ac_top_srcdir=$srcdir
2017 ac_abs_top_srcdir=$srcdir ;;
2018 *) # Relative name.
2019 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2020 ac_top_srcdir=$ac_top_build_prefix$srcdir
2021 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2022esac
2023ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2024
2025 cd "$ac_dir" || { ac_status=$?; continue; }
2026 # Check for guested configure.
2027 if test -f "$ac_srcdir/configure.gnu"; then
2028 echo &&
2029 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2030 elif test -f "$ac_srcdir/configure"; then
2031 echo &&
2032 $SHELL "$ac_srcdir/configure" --help=recursive
2033 else
2034 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2035 fi || ac_status=$?
2036 cd "$ac_pwd" || { ac_status=$?; break; }
2037 done
2038fi
2039
2040test -n "$ac_init_help" && exit $ac_status
2041if $ac_init_version; then
2042 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002043ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002044generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002045
cristy14fefe52012-05-21 00:59:18 +00002046Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002047This configure script is free software; the Free Software Foundation
2048gives unlimited permission to copy, distribute and modify it.
2049_ACEOF
2050 exit
2051fi
cristy8b350f62009-11-15 23:12:43 +00002052
2053## ------------------------ ##
2054## Autoconf initialization. ##
2055## ------------------------ ##
2056
2057# ac_fn_c_try_compile LINENO
2058# --------------------------
2059# Try to compile conftest.$ac_ext, and return whether this succeeded.
2060ac_fn_c_try_compile ()
2061{
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 rm -f conftest.$ac_objext
2064 if { { ac_try="$ac_compile"
2065case "(($ac_try" in
2066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2067 *) ac_try_echo=$ac_try;;
2068esac
2069eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2070$as_echo "$ac_try_echo"; } >&5
2071 (eval "$ac_compile") 2>conftest.err
2072 ac_status=$?
2073 if test -s conftest.err; then
2074 grep -v '^ *+' conftest.err >conftest.er1
2075 cat conftest.er1 >&5
2076 mv -f conftest.er1 conftest.err
2077 fi
2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079 test $ac_status = 0; } && {
2080 test -z "$ac_c_werror_flag" ||
2081 test ! -s conftest.err
2082 } && test -s conftest.$ac_objext; then :
2083 ac_retval=0
2084else
2085 $as_echo "$as_me: failed program was:" >&5
2086sed 's/^/| /' conftest.$ac_ext >&5
2087
2088 ac_retval=1
2089fi
cristyda16f162011-02-19 23:52:17 +00002090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002091 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002092
2093} # ac_fn_c_try_compile
2094
cristy95646052009-11-28 23:05:30 +00002095# ac_fn_c_try_cpp LINENO
2096# ----------------------
2097# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2098ac_fn_c_try_cpp ()
2099{
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 if { { ac_try="$ac_cpp conftest.$ac_ext"
2102case "(($ac_try" in
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2105esac
2106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107$as_echo "$ac_try_echo"; } >&5
2108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2109 ac_status=$?
2110 if test -s conftest.err; then
2111 grep -v '^ *+' conftest.err >conftest.er1
2112 cat conftest.er1 >&5
2113 mv -f conftest.er1 conftest.err
2114 fi
2115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002116 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2118 test ! -s conftest.err
2119 }; then :
2120 ac_retval=0
2121else
2122 $as_echo "$as_me: failed program was:" >&5
2123sed 's/^/| /' conftest.$ac_ext >&5
2124
2125 ac_retval=1
2126fi
cristyda16f162011-02-19 23:52:17 +00002127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002128 as_fn_set_status $ac_retval
2129
2130} # ac_fn_c_try_cpp
2131
cristy8b350f62009-11-15 23:12:43 +00002132# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2133# -------------------------------------------------------
2134# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2135# the include files in INCLUDES and setting the cache variable VAR
2136# accordingly.
2137ac_fn_c_check_header_mongrel ()
2138{
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002140 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2142$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002143if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002144 $as_echo_n "(cached) " >&6
2145fi
2146eval ac_res=\$$3
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148$as_echo "$ac_res" >&6; }
2149else
2150 # Is the header compilable?
2151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2152$as_echo_n "checking $2 usability... " >&6; }
2153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154/* end confdefs.h. */
2155$4
2156#include <$2>
2157_ACEOF
2158if ac_fn_c_try_compile "$LINENO"; then :
2159 ac_header_compiler=yes
2160else
2161 ac_header_compiler=no
2162fi
2163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2165$as_echo "$ac_header_compiler" >&6; }
2166
2167# Is the header present?
2168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2169$as_echo_n "checking $2 presence... " >&6; }
2170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171/* end confdefs.h. */
2172#include <$2>
2173_ACEOF
2174if ac_fn_c_try_cpp "$LINENO"; then :
2175 ac_header_preproc=yes
2176else
2177 ac_header_preproc=no
2178fi
cristyda16f162011-02-19 23:52:17 +00002179rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2181$as_echo "$ac_header_preproc" >&6; }
2182
2183# So? What about this header?
2184case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2185 yes:no: )
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2187$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2189$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2190 ;;
2191 no:yes:* )
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2193$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2195$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2197$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2199$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2201$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002202( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002203## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002204## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002205 ) | sed "s/^/$as_me: WARNING: /" >&2
2206 ;;
2207esac
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2209$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002210if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002211 $as_echo_n "(cached) " >&6
2212else
2213 eval "$3=\$ac_header_compiler"
2214fi
2215eval ac_res=\$$3
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217$as_echo "$ac_res" >&6; }
2218fi
cristyda16f162011-02-19 23:52:17 +00002219 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002220
2221} # ac_fn_c_check_header_mongrel
2222
2223# ac_fn_c_try_run LINENO
2224# ----------------------
2225# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2226# that executables *can* be run.
2227ac_fn_c_try_run ()
2228{
2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230 if { { ac_try="$ac_link"
2231case "(($ac_try" in
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2234esac
2235eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2236$as_echo "$ac_try_echo"; } >&5
2237 (eval "$ac_link") 2>&5
2238 ac_status=$?
2239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2240 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2241 { { case "(($ac_try" in
2242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2243 *) ac_try_echo=$ac_try;;
2244esac
2245eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2246$as_echo "$ac_try_echo"; } >&5
2247 (eval "$ac_try") 2>&5
2248 ac_status=$?
2249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2250 test $ac_status = 0; }; }; then :
2251 ac_retval=0
2252else
2253 $as_echo "$as_me: program exited with status $ac_status" >&5
2254 $as_echo "$as_me: failed program was:" >&5
2255sed 's/^/| /' conftest.$ac_ext >&5
2256
2257 ac_retval=$ac_status
2258fi
2259 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002261 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002262
2263} # ac_fn_c_try_run
2264
2265# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2266# -------------------------------------------------------
2267# Tests whether HEADER exists and can be compiled using the include files in
2268# INCLUDES, setting the cache variable VAR accordingly.
2269ac_fn_c_check_header_compile ()
2270{
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2273$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002274if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002275 $as_echo_n "(cached) " >&6
2276else
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278/* end confdefs.h. */
2279$4
2280#include <$2>
2281_ACEOF
2282if ac_fn_c_try_compile "$LINENO"; then :
2283 eval "$3=yes"
2284else
2285 eval "$3=no"
2286fi
2287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288fi
2289eval ac_res=\$$3
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2291$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002292 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002293
2294} # ac_fn_c_check_header_compile
2295
cristya0b81c32010-01-22 02:54:33 +00002296# ac_fn_cxx_try_compile LINENO
2297# ----------------------------
2298# Try to compile conftest.$ac_ext, and return whether this succeeded.
2299ac_fn_cxx_try_compile ()
2300{
2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302 rm -f conftest.$ac_objext
2303 if { { ac_try="$ac_compile"
2304case "(($ac_try" in
2305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2306 *) ac_try_echo=$ac_try;;
2307esac
2308eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2309$as_echo "$ac_try_echo"; } >&5
2310 (eval "$ac_compile") 2>conftest.err
2311 ac_status=$?
2312 if test -s conftest.err; then
2313 grep -v '^ *+' conftest.err >conftest.er1
2314 cat conftest.er1 >&5
2315 mv -f conftest.er1 conftest.err
2316 fi
2317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2318 test $ac_status = 0; } && {
2319 test -z "$ac_cxx_werror_flag" ||
2320 test ! -s conftest.err
2321 } && test -s conftest.$ac_objext; then :
2322 ac_retval=0
2323else
2324 $as_echo "$as_me: failed program was:" >&5
2325sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 ac_retval=1
2328fi
cristyda16f162011-02-19 23:52:17 +00002329 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002330 as_fn_set_status $ac_retval
2331
2332} # ac_fn_cxx_try_compile
2333
cristy8b350f62009-11-15 23:12:43 +00002334# ac_fn_c_try_link LINENO
2335# -----------------------
2336# Try to link conftest.$ac_ext, and return whether this succeeded.
2337ac_fn_c_try_link ()
2338{
2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340 rm -f conftest.$ac_objext conftest$ac_exeext
2341 if { { ac_try="$ac_link"
2342case "(($ac_try" in
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2345esac
2346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2347$as_echo "$ac_try_echo"; } >&5
2348 (eval "$ac_link") 2>conftest.err
2349 ac_status=$?
2350 if test -s conftest.err; then
2351 grep -v '^ *+' conftest.err >conftest.er1
2352 cat conftest.er1 >&5
2353 mv -f conftest.er1 conftest.err
2354 fi
2355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2356 test $ac_status = 0; } && {
2357 test -z "$ac_c_werror_flag" ||
2358 test ! -s conftest.err
2359 } && test -s conftest$ac_exeext && {
2360 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002361 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002362 }; then :
2363 ac_retval=0
2364else
2365 $as_echo "$as_me: failed program was:" >&5
2366sed 's/^/| /' conftest.$ac_ext >&5
2367
2368 ac_retval=1
2369fi
2370 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2371 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2372 # interfere with the next link command; also delete a directory that is
2373 # left behind by Apple's compiler. We do this before executing the actions.
2374 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002375 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002376 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002377
2378} # ac_fn_c_try_link
2379
cristy73bd4a52010-10-05 11:24:23 +00002380# ac_fn_c_check_func LINENO FUNC VAR
2381# ----------------------------------
2382# Tests whether FUNC exists, setting the cache variable VAR accordingly
2383ac_fn_c_check_func ()
2384{
2385 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2387$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002388if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002389 $as_echo_n "(cached) " >&6
2390else
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392/* end confdefs.h. */
2393/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2395#define $2 innocuous_$2
2396
2397/* System header to define __stub macros and hopefully few prototypes,
2398 which can conflict with char $2 (); below.
2399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2400 <limits.h> exists even on freestanding compilers. */
2401
2402#ifdef __STDC__
2403# include <limits.h>
2404#else
2405# include <assert.h>
2406#endif
2407
2408#undef $2
2409
2410/* Override any GCC internal prototype to avoid an error.
2411 Use char because int might match the return type of a GCC
2412 builtin and then its argument prototype would still apply. */
2413#ifdef __cplusplus
2414extern "C"
2415#endif
2416char $2 ();
2417/* The GNU C library defines this for functions which it implements
2418 to always fail with ENOSYS. Some functions are actually named
2419 something starting with __ and the normal name is an alias. */
2420#if defined __stub_$2 || defined __stub___$2
2421choke me
2422#endif
2423
2424int
2425main ()
2426{
2427return $2 ();
2428 ;
2429 return 0;
2430}
2431_ACEOF
2432if ac_fn_c_try_link "$LINENO"; then :
2433 eval "$3=yes"
2434else
2435 eval "$3=no"
2436fi
2437rm -f core conftest.err conftest.$ac_objext \
2438 conftest$ac_exeext conftest.$ac_ext
2439fi
2440eval ac_res=\$$3
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002443 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002444
2445} # ac_fn_c_check_func
2446
2447# ac_fn_cxx_try_cpp LINENO
2448# ------------------------
2449# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2450ac_fn_cxx_try_cpp ()
2451{
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 if { { ac_try="$ac_cpp conftest.$ac_ext"
2454case "(($ac_try" in
2455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456 *) ac_try_echo=$ac_try;;
2457esac
2458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2459$as_echo "$ac_try_echo"; } >&5
2460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2461 ac_status=$?
2462 if test -s conftest.err; then
2463 grep -v '^ *+' conftest.err >conftest.er1
2464 cat conftest.er1 >&5
2465 mv -f conftest.er1 conftest.err
2466 fi
2467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002468 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002469 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2470 test ! -s conftest.err
2471 }; then :
2472 ac_retval=0
2473else
2474 $as_echo "$as_me: failed program was:" >&5
2475sed 's/^/| /' conftest.$ac_ext >&5
2476
2477 ac_retval=1
2478fi
cristyda16f162011-02-19 23:52:17 +00002479 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002480 as_fn_set_status $ac_retval
2481
2482} # ac_fn_cxx_try_cpp
2483
2484# ac_fn_cxx_try_link LINENO
2485# -------------------------
2486# Try to link conftest.$ac_ext, and return whether this succeeded.
2487ac_fn_cxx_try_link ()
2488{
2489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2490 rm -f conftest.$ac_objext conftest$ac_exeext
2491 if { { ac_try="$ac_link"
2492case "(($ac_try" in
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2495esac
2496eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2497$as_echo "$ac_try_echo"; } >&5
2498 (eval "$ac_link") 2>conftest.err
2499 ac_status=$?
2500 if test -s conftest.err; then
2501 grep -v '^ *+' conftest.err >conftest.er1
2502 cat conftest.er1 >&5
2503 mv -f conftest.er1 conftest.err
2504 fi
2505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506 test $ac_status = 0; } && {
2507 test -z "$ac_cxx_werror_flag" ||
2508 test ! -s conftest.err
2509 } && test -s conftest$ac_exeext && {
2510 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002511 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002512 }; then :
2513 ac_retval=0
2514else
2515 $as_echo "$as_me: failed program was:" >&5
2516sed 's/^/| /' conftest.$ac_ext >&5
2517
2518 ac_retval=1
2519fi
2520 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2521 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2522 # interfere with the next link command; also delete a directory that is
2523 # left behind by Apple's compiler. We do this before executing the actions.
2524 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002526 as_fn_set_status $ac_retval
2527
2528} # ac_fn_cxx_try_link
2529
cristy8b350f62009-11-15 23:12:43 +00002530# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2531# -------------------------------------------
2532# Tests whether TYPE exists after having included INCLUDES, setting cache
2533# variable VAR accordingly.
2534ac_fn_c_check_type ()
2535{
2536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2538$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002539if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002540 $as_echo_n "(cached) " >&6
2541else
2542 eval "$3=no"
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544/* end confdefs.h. */
2545$4
2546int
2547main ()
2548{
2549if (sizeof ($2))
2550 return 0;
2551 ;
2552 return 0;
2553}
2554_ACEOF
2555if ac_fn_c_try_compile "$LINENO"; then :
2556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2557/* end confdefs.h. */
2558$4
2559int
2560main ()
2561{
2562if (sizeof (($2)))
2563 return 0;
2564 ;
2565 return 0;
2566}
2567_ACEOF
2568if ac_fn_c_try_compile "$LINENO"; then :
2569
2570else
2571 eval "$3=yes"
2572fi
2573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574fi
2575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2576fi
2577eval ac_res=\$$3
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2579$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002581
2582} # ac_fn_c_check_type
2583
cristy92703d82010-04-26 00:18:18 +00002584# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2585# ----------------------------------------------------
2586# Tries to find if the field MEMBER exists in type AGGR, after including
2587# INCLUDES, setting cache variable VAR accordingly.
2588ac_fn_c_check_member ()
2589{
2590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2592$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002593if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002594 $as_echo_n "(cached) " >&6
2595else
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597/* end confdefs.h. */
2598$5
2599int
2600main ()
2601{
2602static $2 ac_aggr;
2603if (ac_aggr.$3)
2604return 0;
2605 ;
2606 return 0;
2607}
2608_ACEOF
2609if ac_fn_c_try_compile "$LINENO"; then :
2610 eval "$4=yes"
2611else
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613/* end confdefs.h. */
2614$5
2615int
2616main ()
2617{
2618static $2 ac_aggr;
2619if (sizeof ac_aggr.$3)
2620return 0;
2621 ;
2622 return 0;
2623}
2624_ACEOF
2625if ac_fn_c_try_compile "$LINENO"; then :
2626 eval "$4=yes"
2627else
2628 eval "$4=no"
2629fi
2630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631fi
2632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633fi
2634eval ac_res=\$$4
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2636$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002638
2639} # ac_fn_c_check_member
2640
cristy5eef09f2012-10-16 12:08:28 +00002641# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2642# ---------------------------------------------
2643# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2644# accordingly.
2645ac_fn_c_check_decl ()
2646{
2647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2648 as_decl_name=`echo $2|sed 's/ *(.*//'`
2649 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2651$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2652if eval \${$3+:} false; then :
2653 $as_echo_n "(cached) " >&6
2654else
2655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2656/* end confdefs.h. */
2657$4
2658int
2659main ()
2660{
2661#ifndef $as_decl_name
2662#ifdef __cplusplus
2663 (void) $as_decl_use;
2664#else
2665 (void) $as_decl_name;
2666#endif
2667#endif
2668
2669 ;
2670 return 0;
2671}
2672_ACEOF
2673if ac_fn_c_try_compile "$LINENO"; then :
2674 eval "$3=yes"
2675else
2676 eval "$3=no"
2677fi
2678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679fi
2680eval ac_res=\$$3
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2682$as_echo "$ac_res" >&6; }
2683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2684
2685} # ac_fn_c_check_decl
2686
cristy501c8042011-05-26 17:46:28 +00002687# ac_fn_c_find_intX_t LINENO BITS VAR
2688# -----------------------------------
2689# Finds a signed integer type with width BITS, setting cache variable VAR
2690# accordingly.
2691ac_fn_c_find_intX_t ()
2692{
2693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2695$as_echo_n "checking for int$2_t... " >&6; }
2696if eval \${$3+:} false; then :
2697 $as_echo_n "(cached) " >&6
2698else
2699 eval "$3=no"
2700 # Order is important - never check a type that is potentially smaller
2701 # than half of the expected target width.
2702 for ac_type in int$2_t 'int' 'long int' \
2703 'long long int' 'short int' 'signed char'; do
2704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2705/* end confdefs.h. */
2706$ac_includes_default
2707 enum { N = $2 / 2 - 1 };
2708int
2709main ()
2710{
2711static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002712test_array [0] = 0;
2713return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002714
2715 ;
2716 return 0;
2717}
2718_ACEOF
2719if ac_fn_c_try_compile "$LINENO"; then :
2720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2721/* end confdefs.h. */
2722$ac_includes_default
2723 enum { N = $2 / 2 - 1 };
2724int
2725main ()
2726{
2727static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2728 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002729test_array [0] = 0;
2730return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002731
2732 ;
2733 return 0;
2734}
2735_ACEOF
2736if ac_fn_c_try_compile "$LINENO"; then :
2737
2738else
2739 case $ac_type in #(
2740 int$2_t) :
2741 eval "$3=yes" ;; #(
2742 *) :
2743 eval "$3=\$ac_type" ;;
2744esac
2745fi
2746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747fi
2748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749 if eval test \"x\$"$3"\" = x"no"; then :
2750
2751else
2752 break
2753fi
2754 done
2755fi
2756eval ac_res=\$$3
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2758$as_echo "$ac_res" >&6; }
2759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2760
2761} # ac_fn_c_find_intX_t
2762
2763# ac_fn_c_find_uintX_t LINENO BITS VAR
2764# ------------------------------------
2765# Finds an unsigned integer type with width BITS, setting cache variable VAR
2766# accordingly.
2767ac_fn_c_find_uintX_t ()
2768{
2769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2771$as_echo_n "checking for uint$2_t... " >&6; }
2772if eval \${$3+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774else
2775 eval "$3=no"
2776 # Order is important - never check a type that is potentially smaller
2777 # than half of the expected target width.
2778 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2779 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2781/* end confdefs.h. */
2782$ac_includes_default
2783int
2784main ()
2785{
2786static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002787test_array [0] = 0;
2788return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002789
2790 ;
2791 return 0;
2792}
2793_ACEOF
2794if ac_fn_c_try_compile "$LINENO"; then :
2795 case $ac_type in #(
2796 uint$2_t) :
2797 eval "$3=yes" ;; #(
2798 *) :
2799 eval "$3=\$ac_type" ;;
2800esac
2801fi
2802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 if eval test \"x\$"$3"\" = x"no"; then :
2804
2805else
2806 break
2807fi
2808 done
2809fi
2810eval ac_res=\$$3
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2812$as_echo "$ac_res" >&6; }
2813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2814
2815} # ac_fn_c_find_uintX_t
2816
cristy8b350f62009-11-15 23:12:43 +00002817# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2818# --------------------------------------------
2819# Tries to find the compile-time value of EXPR in a program that includes
2820# INCLUDES, setting VAR accordingly. Returns whether the value could be
2821# computed
2822ac_fn_c_compute_int ()
2823{
2824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2825 if test "$cross_compiling" = yes; then
2826 # Depending upon the size, compute the lo and hi bounds.
2827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828/* end confdefs.h. */
2829$4
2830int
2831main ()
2832{
2833static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002834test_array [0] = 0;
2835return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002836
2837 ;
2838 return 0;
2839}
2840_ACEOF
2841if ac_fn_c_try_compile "$LINENO"; then :
2842 ac_lo=0 ac_mid=0
2843 while :; do
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845/* end confdefs.h. */
2846$4
2847int
2848main ()
2849{
2850static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002851test_array [0] = 0;
2852return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002853
2854 ;
2855 return 0;
2856}
2857_ACEOF
2858if ac_fn_c_try_compile "$LINENO"; then :
2859 ac_hi=$ac_mid; break
2860else
2861 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2862 if test $ac_lo -le $ac_mid; then
2863 ac_lo= ac_hi=
2864 break
2865 fi
2866 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2867fi
2868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869 done
2870else
2871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2872/* end confdefs.h. */
2873$4
2874int
2875main ()
2876{
2877static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002878test_array [0] = 0;
2879return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002880
2881 ;
2882 return 0;
2883}
2884_ACEOF
2885if ac_fn_c_try_compile "$LINENO"; then :
2886 ac_hi=-1 ac_mid=-1
2887 while :; do
2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889/* end confdefs.h. */
2890$4
2891int
2892main ()
2893{
2894static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002895test_array [0] = 0;
2896return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002897
2898 ;
2899 return 0;
2900}
2901_ACEOF
2902if ac_fn_c_try_compile "$LINENO"; then :
2903 ac_lo=$ac_mid; break
2904else
2905 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2906 if test $ac_mid -le $ac_hi; then
2907 ac_lo= ac_hi=
2908 break
2909 fi
2910 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2911fi
2912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 done
2914else
2915 ac_lo= ac_hi=
2916fi
2917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918fi
2919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920# Binary search between lo and hi bounds.
2921while test "x$ac_lo" != "x$ac_hi"; do
2922 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2924/* end confdefs.h. */
2925$4
2926int
2927main ()
2928{
2929static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002930test_array [0] = 0;
2931return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002932
2933 ;
2934 return 0;
2935}
2936_ACEOF
2937if ac_fn_c_try_compile "$LINENO"; then :
2938 ac_hi=$ac_mid
2939else
2940 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2941fi
2942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2943done
2944case $ac_lo in #((
2945?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2946'') ac_retval=1 ;;
2947esac
2948 else
2949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950/* end confdefs.h. */
2951$4
2952static long int longval () { return $2; }
2953static unsigned long int ulongval () { return $2; }
2954#include <stdio.h>
2955#include <stdlib.h>
2956int
2957main ()
2958{
2959
2960 FILE *f = fopen ("conftest.val", "w");
2961 if (! f)
2962 return 1;
2963 if (($2) < 0)
2964 {
2965 long int i = longval ();
2966 if (i != ($2))
2967 return 1;
2968 fprintf (f, "%ld", i);
2969 }
2970 else
2971 {
2972 unsigned long int i = ulongval ();
2973 if (i != ($2))
2974 return 1;
2975 fprintf (f, "%lu", i);
2976 }
2977 /* Do not output a trailing newline, as this causes \r\n confusion
2978 on some platforms. */
2979 return ferror (f) || fclose (f) != 0;
2980
2981 ;
2982 return 0;
2983}
2984_ACEOF
2985if ac_fn_c_try_run "$LINENO"; then :
2986 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2987else
2988 ac_retval=1
2989fi
2990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2991 conftest.$ac_objext conftest.beam conftest.$ac_ext
2992rm -f conftest.val
2993
2994 fi
cristyda16f162011-02-19 23:52:17 +00002995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002996 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002997
2998} # ac_fn_c_compute_int
2999
3000# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3001# ---------------------------------------------------------
3002# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3003# the include files in INCLUDES and setting the cache variable VAR
3004# accordingly.
3005ac_fn_cxx_check_header_mongrel ()
3006{
3007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003008 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3010$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003011if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003012 $as_echo_n "(cached) " >&6
3013fi
3014eval ac_res=\$$3
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3016$as_echo "$ac_res" >&6; }
3017else
3018 # Is the header compilable?
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3020$as_echo_n "checking $2 usability... " >&6; }
3021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022/* end confdefs.h. */
3023$4
3024#include <$2>
3025_ACEOF
3026if ac_fn_cxx_try_compile "$LINENO"; then :
3027 ac_header_compiler=yes
3028else
3029 ac_header_compiler=no
3030fi
3031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3033$as_echo "$ac_header_compiler" >&6; }
3034
3035# Is the header present?
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3037$as_echo_n "checking $2 presence... " >&6; }
3038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039/* end confdefs.h. */
3040#include <$2>
3041_ACEOF
3042if ac_fn_cxx_try_cpp "$LINENO"; then :
3043 ac_header_preproc=yes
3044else
3045 ac_header_preproc=no
3046fi
cristyda16f162011-02-19 23:52:17 +00003047rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3049$as_echo "$ac_header_preproc" >&6; }
3050
3051# So? What about this header?
3052case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3053 yes:no: )
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3055$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3057$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3058 ;;
3059 no:yes:* )
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3061$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3063$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3065$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3067$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3069$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003070( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003071## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003072## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003073 ) | sed "s/^/$as_me: WARNING: /" >&2
3074 ;;
3075esac
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3077$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003078if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003079 $as_echo_n "(cached) " >&6
3080else
3081 eval "$3=\$ac_header_compiler"
3082fi
3083eval ac_res=\$$3
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3085$as_echo "$ac_res" >&6; }
3086fi
cristyda16f162011-02-19 23:52:17 +00003087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003088
3089} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003090cat >config.log <<_ACEOF
3091This file contains any messages produced by compilers while
3092running configure, to aid debugging if configure makes a mistake.
3093
cristy29eb34e2011-10-16 00:46:08 +00003094It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003095generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003096
3097 $ $0 $@
3098
3099_ACEOF
3100exec 5>>config.log
3101{
3102cat <<_ASUNAME
3103## --------- ##
3104## Platform. ##
3105## --------- ##
3106
3107hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3108uname -m = `(uname -m) 2>/dev/null || echo unknown`
3109uname -r = `(uname -r) 2>/dev/null || echo unknown`
3110uname -s = `(uname -s) 2>/dev/null || echo unknown`
3111uname -v = `(uname -v) 2>/dev/null || echo unknown`
3112
3113/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3114/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3115
3116/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3117/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3118/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3119/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3120/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3121/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3122/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3123
3124_ASUNAME
3125
3126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127for as_dir in $PATH
3128do
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003131 $as_echo "PATH: $as_dir"
3132 done
cristy3ed852e2009-09-05 21:47:34 +00003133IFS=$as_save_IFS
3134
3135} >&5
3136
3137cat >&5 <<_ACEOF
3138
3139
3140## ----------- ##
3141## Core tests. ##
3142## ----------- ##
3143
3144_ACEOF
3145
3146
3147# Keep a trace of the command line.
3148# Strip out --no-create and --no-recursion so they do not pile up.
3149# Strip out --silent because we don't want to record it for future runs.
3150# Also quote any args containing shell meta-characters.
3151# Make two passes to allow for proper duplicate-argument suppression.
3152ac_configure_args=
3153ac_configure_args0=
3154ac_configure_args1=
3155ac_must_keep_next=false
3156for ac_pass in 1 2
3157do
3158 for ac_arg
3159 do
3160 case $ac_arg in
3161 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3163 | -silent | --silent | --silen | --sile | --sil)
3164 continue ;;
3165 *\'*)
3166 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3167 esac
3168 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003169 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003170 2)
cristy8b350f62009-11-15 23:12:43 +00003171 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003172 if test $ac_must_keep_next = true; then
3173 ac_must_keep_next=false # Got value, back to normal.
3174 else
3175 case $ac_arg in
3176 *=* | --config-cache | -C | -disable-* | --disable-* \
3177 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3178 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3179 | -with-* | --with-* | -without-* | --without-* | --x)
3180 case "$ac_configure_args0 " in
3181 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3182 esac
3183 ;;
3184 -* ) ac_must_keep_next=true ;;
3185 esac
3186 fi
cristy8b350f62009-11-15 23:12:43 +00003187 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003188 ;;
3189 esac
3190 done
3191done
cristy8b350f62009-11-15 23:12:43 +00003192{ ac_configure_args0=; unset ac_configure_args0;}
3193{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003194
3195# When interrupted or exit'd, cleanup temporary files, and complete
3196# config.log. We remove comments because anyway the quotes in there
3197# would cause problems or look ugly.
3198# WARNING: Use '\'' to represent an apostrophe within the trap.
3199# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3200trap 'exit_status=$?
3201 # Save into config.log some information that might help in debugging.
3202 {
3203 echo
3204
cristy98dddb52010-11-04 00:30:15 +00003205 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003206## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003207## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003208 echo
3209 # The following way of writing the cache mishandles newlines in values,
3210(
3211 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3212 eval ac_val=\$$ac_var
3213 case $ac_val in #(
3214 *${as_nl}*)
3215 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003216 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003217$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3218 esac
3219 case $ac_var in #(
3220 _ | IFS | as_nl) ;; #(
3221 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003222 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003223 esac ;;
3224 esac
3225 done
3226 (set) 2>&1 |
3227 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3228 *${as_nl}ac_space=\ *)
3229 sed -n \
3230 "s/'\''/'\''\\\\'\'''\''/g;
3231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3232 ;; #(
3233 *)
3234 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3235 ;;
3236 esac |
3237 sort
3238)
3239 echo
3240
cristy98dddb52010-11-04 00:30:15 +00003241 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003242## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003243## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003244 echo
3245 for ac_var in $ac_subst_vars
3246 do
3247 eval ac_val=\$$ac_var
3248 case $ac_val in
3249 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3250 esac
3251 $as_echo "$ac_var='\''$ac_val'\''"
3252 done | sort
3253 echo
3254
3255 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003256 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003257## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003258## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003259 echo
3260 for ac_var in $ac_subst_files
3261 do
3262 eval ac_val=\$$ac_var
3263 case $ac_val in
3264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3265 esac
3266 $as_echo "$ac_var='\''$ac_val'\''"
3267 done | sort
3268 echo
3269 fi
3270
3271 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003272 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003273## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003274## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003275 echo
3276 cat confdefs.h
3277 echo
3278 fi
3279 test "$ac_signal" != 0 &&
3280 $as_echo "$as_me: caught signal $ac_signal"
3281 $as_echo "$as_me: exit $exit_status"
3282 } >&5
3283 rm -f core *.core core.conftest.* &&
3284 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3285 exit $exit_status
3286' 0
3287for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003288 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003289done
3290ac_signal=0
3291
3292# confdefs.h avoids OS command line length limits that DEFS can exceed.
3293rm -f -r conftest* confdefs.h
3294
cristy8b350f62009-11-15 23:12:43 +00003295$as_echo "/* confdefs.h */" > confdefs.h
3296
cristy3ed852e2009-09-05 21:47:34 +00003297# Predefined preprocessor variables.
3298
3299cat >>confdefs.h <<_ACEOF
3300#define PACKAGE_NAME "$PACKAGE_NAME"
3301_ACEOF
3302
cristy3ed852e2009-09-05 21:47:34 +00003303cat >>confdefs.h <<_ACEOF
3304#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3305_ACEOF
3306
cristy3ed852e2009-09-05 21:47:34 +00003307cat >>confdefs.h <<_ACEOF
3308#define PACKAGE_VERSION "$PACKAGE_VERSION"
3309_ACEOF
3310
cristy3ed852e2009-09-05 21:47:34 +00003311cat >>confdefs.h <<_ACEOF
3312#define PACKAGE_STRING "$PACKAGE_STRING"
3313_ACEOF
3314
cristy3ed852e2009-09-05 21:47:34 +00003315cat >>confdefs.h <<_ACEOF
3316#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3317_ACEOF
3318
cristy8b350f62009-11-15 23:12:43 +00003319cat >>confdefs.h <<_ACEOF
3320#define PACKAGE_URL "$PACKAGE_URL"
3321_ACEOF
3322
cristy3ed852e2009-09-05 21:47:34 +00003323
3324# Let the site file select an alternate cache file if it wants to.
3325# Prefer an explicitly selected file to automatically selected ones.
3326ac_site_file1=NONE
3327ac_site_file2=NONE
3328if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003329 # We do not want a PATH search for config.site.
3330 case $CONFIG_SITE in #((
3331 -*) ac_site_file1=./$CONFIG_SITE;;
3332 */*) ac_site_file1=$CONFIG_SITE;;
3333 *) ac_site_file1=./$CONFIG_SITE;;
3334 esac
cristy3ed852e2009-09-05 21:47:34 +00003335elif test "x$prefix" != xNONE; then
3336 ac_site_file1=$prefix/share/config.site
3337 ac_site_file2=$prefix/etc/config.site
3338else
3339 ac_site_file1=$ac_default_prefix/share/config.site
3340 ac_site_file2=$ac_default_prefix/etc/config.site
3341fi
3342for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3343do
3344 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003345 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003346 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003347$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3348 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003349 . "$ac_site_file" \
3350 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352as_fn_error $? "failed to load site script $ac_site_file
3353See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003354 fi
3355done
3356
3357if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003358 # Some versions of bash will fail to source /dev/null (special files
3359 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3360 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003362$as_echo "$as_me: loading cache $cache_file" >&6;}
3363 case $cache_file in
3364 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3365 *) . "./$cache_file";;
3366 esac
3367 fi
3368else
cristy8b350f62009-11-15 23:12:43 +00003369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003370$as_echo "$as_me: creating cache $cache_file" >&6;}
3371 >$cache_file
3372fi
3373
cristycd4c5312009-11-22 01:19:08 +00003374as_fn_append ac_header_list " stdlib.h"
3375as_fn_append ac_header_list " unistd.h"
3376as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003377# Check that the precious variables saved in the cache have kept the same
3378# value.
3379ac_cache_corrupted=false
3380for ac_var in $ac_precious_vars; do
3381 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3382 eval ac_new_set=\$ac_env_${ac_var}_set
3383 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3384 eval ac_new_val=\$ac_env_${ac_var}_value
3385 case $ac_old_set,$ac_new_set in
3386 set,)
cristy8b350f62009-11-15 23:12:43 +00003387 { $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 +00003388$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3389 ac_cache_corrupted=: ;;
3390 ,set)
cristy8b350f62009-11-15 23:12:43 +00003391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003392$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3393 ac_cache_corrupted=: ;;
3394 ,);;
3395 *)
3396 if test "x$ac_old_val" != "x$ac_new_val"; then
3397 # differences in whitespace do not lead to failure.
3398 ac_old_val_w=`echo x $ac_old_val`
3399 ac_new_val_w=`echo x $ac_new_val`
3400 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003402$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3403 ac_cache_corrupted=:
3404 else
cristy8b350f62009-11-15 23:12:43 +00003405 { $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 +00003406$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3407 eval $ac_var=\$ac_old_val
3408 fi
cristy8b350f62009-11-15 23:12:43 +00003409 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003410$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003411 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003412$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3413 fi;;
3414 esac
3415 # Pass precious variables to config.status.
3416 if test "$ac_new_set" = set; then
3417 case $ac_new_val in
3418 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3419 *) ac_arg=$ac_var=$ac_new_val ;;
3420 esac
3421 case " $ac_configure_args " in
3422 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003423 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003424 esac
3425 fi
3426done
3427if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003431$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003432 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003433fi
cristy8b350f62009-11-15 23:12:43 +00003434## -------------------- ##
3435## Main body of script. ##
3436## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003437
3438ac_ext=c
3439ac_cpp='$CPP $CPPFLAGS'
3440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443
3444
3445
3446ac_aux_dir=
3447for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003448 if test -f "$ac_dir/install-sh"; then
3449 ac_aux_dir=$ac_dir
3450 ac_install_sh="$ac_aux_dir/install-sh -c"
3451 break
3452 elif test -f "$ac_dir/install.sh"; then
3453 ac_aux_dir=$ac_dir
3454 ac_install_sh="$ac_aux_dir/install.sh -c"
3455 break
3456 elif test -f "$ac_dir/shtool"; then
3457 ac_aux_dir=$ac_dir
3458 ac_install_sh="$ac_aux_dir/shtool install -c"
3459 break
3460 fi
cristy3ed852e2009-09-05 21:47:34 +00003461done
3462if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003463 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003464fi
3465
3466# These three variables are undocumented and unsupported,
3467# and are intended to be withdrawn in a future Autoconf release.
3468# They can cause serious problems if a builder's source tree is in a directory
3469# whose full name contains unusual characters.
3470ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3471ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3472ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3473
3474
3475
3476
3477ac_config_headers="$ac_config_headers config/config.h"
3478
cristy24fc1fe2010-10-23 21:13:01 +00003479
cristy01ff9f32012-12-01 18:15:29 +00003480ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003481
cristy2df32802012-09-17 01:15:28 +00003482ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003483
3484
3485#
3486# Save initial user-tunable values
3487#
3488USER_LIBS=$LIBS
3489for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3490 eval isset=\${$var+set}
3491 if test "$isset" = 'set'; then
3492 eval val=$`echo $var`
3493 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3494 fi
3495done
3496
3497
3498CONFIGURE_ARGS="$0 ${ac_configure_args}"
3499
3500
3501# Source file containing package/library versioning information.
3502. ${srcdir}/version.sh
3503
cristy15a88782010-01-31 23:24:49 +00003504echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003505# Make sure we can run config.sub.
3506$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003507 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003508
cristy8b350f62009-11-15 23:12:43 +00003509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003510$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003511if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003512 $as_echo_n "(cached) " >&6
3513else
3514 ac_build_alias=$build_alias
3515test "x$ac_build_alias" = x &&
3516 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3517test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003518 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003519ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003520 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003521
3522fi
cristy8b350f62009-11-15 23:12:43 +00003523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003524$as_echo "$ac_cv_build" >&6; }
3525case $ac_cv_build in
3526*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003527*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003528esac
3529build=$ac_cv_build
3530ac_save_IFS=$IFS; IFS='-'
3531set x $ac_cv_build
3532shift
3533build_cpu=$1
3534build_vendor=$2
3535shift; shift
3536# Remember, the first character of IFS is used to create $*,
3537# except with old shells:
3538build_os=$*
3539IFS=$ac_save_IFS
3540case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3541
3542
cristy8b350f62009-11-15 23:12:43 +00003543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003544$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003545if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003546 $as_echo_n "(cached) " >&6
3547else
3548 if test "x$host_alias" = x; then
3549 ac_cv_host=$ac_cv_build
3550else
3551 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003552 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003553fi
3554
3555fi
cristy8b350f62009-11-15 23:12:43 +00003556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003557$as_echo "$ac_cv_host" >&6; }
3558case $ac_cv_host in
3559*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003560*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003561esac
3562host=$ac_cv_host
3563ac_save_IFS=$IFS; IFS='-'
3564set x $ac_cv_host
3565shift
3566host_cpu=$1
3567host_vendor=$2
3568shift; shift
3569# Remember, the first character of IFS is used to create $*,
3570# except with old shells:
3571host_os=$*
3572IFS=$ac_save_IFS
3573case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3574
3575
cristy8b350f62009-11-15 23:12:43 +00003576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003577$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003578if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003579 $as_echo_n "(cached) " >&6
3580else
3581 if test "x$target_alias" = x; then
3582 ac_cv_target=$ac_cv_host
3583else
3584 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003585 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003586fi
3587
3588fi
cristy8b350f62009-11-15 23:12:43 +00003589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003590$as_echo "$ac_cv_target" >&6; }
3591case $ac_cv_target in
3592*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003593*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003594esac
3595target=$ac_cv_target
3596ac_save_IFS=$IFS; IFS='-'
3597set x $ac_cv_target
3598shift
3599target_cpu=$1
3600target_vendor=$2
3601shift; shift
3602# Remember, the first character of IFS is used to create $*,
3603# except with old shells:
3604target_os=$*
3605IFS=$ac_save_IFS
3606case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3607
3608
3609# The aliases save the names the user supplied, while $host etc.
3610# will get canonicalized.
3611test -n "$target_alias" &&
3612 test "$program_prefix$program_suffix$program_transform_name" = \
3613 NONENONEs,x,x, &&
3614 program_prefix=${target_alias}-
3615
cristy837d6dc2010-02-27 01:16:57 +00003616
3617
3618
cristy8be34142012-06-17 14:07:18 +00003619
cristy19615b82011-04-13 20:02:01 +00003620MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003621
3622
cristy27d53d62012-07-29 23:30:07 +00003623cat >>confdefs.h <<_ACEOF
3624#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3625_ACEOF
3626
3627
cristy19615b82011-04-13 20:02:01 +00003628MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003629
3630
cristy27d53d62012-07-29 23:30:07 +00003631cat >>confdefs.h <<_ACEOF
3632#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3633_ACEOF
3634
3635
cristy19615b82011-04-13 20:02:01 +00003636MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003637
3638
cristy27d53d62012-07-29 23:30:07 +00003639cat >>confdefs.h <<_ACEOF
3640#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3641_ACEOF
3642
3643
cristy3ed852e2009-09-05 21:47:34 +00003644# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003645MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3646
3647MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3648
cristycf4a3c22012-12-02 21:47:25 +00003649MAGICK_SVN_REVISION=10080:10087
cristyd694ca32011-03-27 21:42:54 +00003650
cristy3ed852e2009-09-05 21:47:34 +00003651
3652
3653# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3655$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003656# Reject unsafe characters in $srcdir or the absolute working directory
3657# name. Accept space and tab only in the latter.
3658am_lf='
3659'
3660case `pwd` in
3661 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003662 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003663esac
3664case $srcdir in
3665 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003666 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003667esac
cristy3ed852e2009-09-05 21:47:34 +00003668
cristyc0890a62012-07-19 00:18:20 +00003669# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003670# arguments. Must try -L first in case configure is actually a
3671# symlink; some systems play weird games with the mod time of symlinks
3672# (eg FreeBSD returns the mod time of the symlink's containing
3673# directory).
3674if (
cristyc0890a62012-07-19 00:18:20 +00003675 am_has_slept=no
3676 for am_try in 1 2; do
3677 echo "timestamp, slept: $am_has_slept" > conftest.file
3678 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3679 if test "$*" = "X"; then
3680 # -L didn't work.
3681 set X `ls -t "$srcdir/configure" conftest.file`
3682 fi
3683 if test "$*" != "X $srcdir/configure conftest.file" \
3684 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003685
cristyc0890a62012-07-19 00:18:20 +00003686 # If neither matched, then we have a broken ls. This can happen
3687 # if, for instance, CONFIG_SHELL is bash and it inherits a
3688 # broken ls alias from the environment. This has actually
3689 # happened. Such a system could not be considered "sane".
3690 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3691 alias in your environment" "$LINENO" 5
3692 fi
3693 if test "$2" = conftest.file || test $am_try -eq 2; then
3694 break
3695 fi
3696 # Just in case.
3697 sleep 1
3698 am_has_slept=yes
3699 done
cristy73bd4a52010-10-05 11:24:23 +00003700 test "$2" = conftest.file
3701 )
3702then
3703 # Ok.
3704 :
3705else
cristy98dddb52010-11-04 00:30:15 +00003706 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003707Check your system clock" "$LINENO" 5
3708fi
3709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3710$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003711# If we didn't sleep, we still need to ensure time stamps of config.status and
3712# generated files are strictly newer.
3713am_sleep_pid=
3714if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3715 ( sleep 1 ) &
3716 am_sleep_pid=$!
3717fi
cristy73bd4a52010-10-05 11:24:23 +00003718
cristyc0890a62012-07-19 00:18:20 +00003719rm -f conftest.file
3720
3721
3722am__api_version='1.12'
cristy73bd4a52010-10-05 11:24:23 +00003723
3724# Find a good install program. We prefer a C program (faster),
3725# so one script is as good as another. But avoid the broken or
3726# incompatible versions:
3727# SysV /etc/install, /usr/sbin/install
3728# SunOS /usr/etc/install
3729# IRIX /sbin/install
3730# AIX /bin/install
3731# AmigaOS /C/install, which installs bootblocks on floppy discs
3732# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3733# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3734# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3735# OS/2's system install, which has a completely different semantic
3736# ./install, which can be erroneously created by make from ./install.sh.
3737# Reject install programs that cannot install multiple files.
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3739$as_echo_n "checking for a BSD-compatible install... " >&6; }
3740if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003741if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003742 $as_echo_n "(cached) " >&6
3743else
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745for as_dir in $PATH
3746do
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 # Account for people who put trailing slashes in PATH elements.
3750case $as_dir/ in #((
3751 ./ | .// | /[cC]/* | \
3752 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3753 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3754 /usr/ucb/* ) ;;
3755 *)
3756 # OSF1 and SCO ODT 3.0 have their own names for install.
3757 # Don't use installbsd from OSF since it installs stuff as root
3758 # by default.
3759 for ac_prog in ginstall scoinst install; do
3760 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003761 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003762 if test $ac_prog = install &&
3763 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3764 # AIX install. It has an incompatible calling convention.
3765 :
3766 elif test $ac_prog = install &&
3767 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3768 # program-specific install script used by HP pwplus--don't use.
3769 :
3770 else
3771 rm -rf conftest.one conftest.two conftest.dir
3772 echo one > conftest.one
3773 echo two > conftest.two
3774 mkdir conftest.dir
3775 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3776 test -s conftest.one && test -s conftest.two &&
3777 test -s conftest.dir/conftest.one &&
3778 test -s conftest.dir/conftest.two
3779 then
3780 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3781 break 3
3782 fi
3783 fi
3784 fi
3785 done
3786 done
3787 ;;
3788esac
3789
3790 done
3791IFS=$as_save_IFS
3792
3793rm -rf conftest.one conftest.two conftest.dir
3794
3795fi
3796 if test "${ac_cv_path_install+set}" = set; then
3797 INSTALL=$ac_cv_path_install
3798 else
3799 # As a last resort, use the slow shell script. Don't cache a
3800 # value for INSTALL within a source directory, because that will
3801 # break other packages using the cache if that directory is
3802 # removed, or if the value is a relative name.
3803 INSTALL=$ac_install_sh
3804 fi
3805fi
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3807$as_echo "$INSTALL" >&6; }
3808
3809# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3810# It thinks the first close brace ends the variable substitution.
3811test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3812
3813test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3814
3815test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3816
3817test "$program_prefix" != NONE &&
3818 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3819# Use a double $ so make ignores it.
3820test "$program_suffix" != NONE &&
3821 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3822# Double any \ or $.
3823# By default was `s,x,x', remove it if useless.
3824ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3825program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3826
3827# expand $ac_aux_dir to an absolute path
3828am_aux_dir=`cd $ac_aux_dir && pwd`
3829
3830if test x"${MISSING+set}" != xset; then
3831 case $am_aux_dir in
3832 *\ * | *\ *)
3833 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3834 *)
3835 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3836 esac
3837fi
3838# Use eval to expand $SHELL
3839if eval "$MISSING --run true"; then
3840 am_missing_run="$MISSING --run "
3841else
3842 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3844$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003845fi
3846
3847if test x"${install_sh}" != xset; then
3848 case $am_aux_dir in
3849 *\ * | *\ *)
3850 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3851 *)
3852 install_sh="\${SHELL} $am_aux_dir/install-sh"
3853 esac
3854fi
3855
cristyc0890a62012-07-19 00:18:20 +00003856# Installed binaries are usually stripped using 'strip' when the user
3857# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003858# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003859# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003860if test "$cross_compiling" != no; then
3861 if test -n "$ac_tool_prefix"; then
3862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3863set dummy ${ac_tool_prefix}strip; ac_word=$2
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003866if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003867 $as_echo_n "(cached) " >&6
3868else
3869 if test -n "$STRIP"; then
3870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3871else
3872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873for as_dir in $PATH
3874do
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003879 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 break 2
3882 fi
3883done
3884 done
3885IFS=$as_save_IFS
3886
3887fi
3888fi
3889STRIP=$ac_cv_prog_STRIP
3890if test -n "$STRIP"; then
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3892$as_echo "$STRIP" >&6; }
3893else
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895$as_echo "no" >&6; }
3896fi
3897
3898
3899fi
3900if test -z "$ac_cv_prog_STRIP"; then
3901 ac_ct_STRIP=$STRIP
3902 # Extract the first word of "strip", so it can be a program name with args.
3903set dummy strip; ac_word=$2
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003906if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003907 $as_echo_n "(cached) " >&6
3908else
3909 if test -n "$ac_ct_STRIP"; then
3910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3911else
3912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH
3914do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003919 ac_cv_prog_ac_ct_STRIP="strip"
3920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 break 2
3922 fi
3923done
3924 done
3925IFS=$as_save_IFS
3926
3927fi
3928fi
3929ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3930if test -n "$ac_ct_STRIP"; then
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3932$as_echo "$ac_ct_STRIP" >&6; }
3933else
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935$as_echo "no" >&6; }
3936fi
3937
3938 if test "x$ac_ct_STRIP" = x; then
3939 STRIP=":"
3940 else
3941 case $cross_compiling:$ac_tool_warned in
3942yes:)
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3945ac_tool_warned=yes ;;
3946esac
3947 STRIP=$ac_ct_STRIP
3948 fi
3949else
3950 STRIP="$ac_cv_prog_STRIP"
3951fi
3952
3953fi
3954INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3955
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3957$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3958if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003959 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003960 $as_echo_n "(cached) " >&6
3961else
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3964do
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for ac_prog in mkdir gmkdir; do
3968 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003969 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003970 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3971 'mkdir (GNU coreutils) '* | \
3972 'mkdir (coreutils) '* | \
3973 'mkdir (fileutils) '4.1*)
3974 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3975 break 3;;
3976 esac
3977 done
3978 done
3979 done
3980IFS=$as_save_IFS
3981
3982fi
3983
3984 test -d ./--version && rmdir ./--version
3985 if test "${ac_cv_path_mkdir+set}" = set; then
3986 MKDIR_P="$ac_cv_path_mkdir -p"
3987 else
3988 # As a last resort, use the slow shell script. Don't cache a
3989 # value for MKDIR_P within a source directory, because that will
3990 # break other packages using the cache if that directory is
3991 # removed, or if the value is a relative name.
3992 MKDIR_P="$ac_install_sh -d"
3993 fi
3994fi
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3996$as_echo "$MKDIR_P" >&6; }
3997
cristy73bd4a52010-10-05 11:24:23 +00003998for ac_prog in gawk mawk nawk awk
3999do
4000 # Extract the first word of "$ac_prog", so it can be a program name with args.
4001set dummy $ac_prog; ac_word=$2
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004004if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004005 $as_echo_n "(cached) " >&6
4006else
4007 if test -n "$AWK"; then
4008 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4009else
4010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011for as_dir in $PATH
4012do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004017 ac_cv_prog_AWK="$ac_prog"
4018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 break 2
4020 fi
4021done
4022 done
4023IFS=$as_save_IFS
4024
4025fi
4026fi
4027AWK=$ac_cv_prog_AWK
4028if test -n "$AWK"; then
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4030$as_echo "$AWK" >&6; }
4031else
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033$as_echo "no" >&6; }
4034fi
4035
4036
4037 test -n "$AWK" && break
4038done
4039
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4041$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4042set x ${MAKE-make}
4043ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004044if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004045 $as_echo_n "(cached) " >&6
4046else
4047 cat >conftest.make <<\_ACEOF
4048SHELL = /bin/sh
4049all:
4050 @echo '@@@%%%=$(MAKE)=@@@%%%'
4051_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004052# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004053case `${MAKE-make} -f conftest.make 2>/dev/null` in
4054 *@@@%%%=?*=@@@%%%*)
4055 eval ac_cv_prog_make_${ac_make}_set=yes;;
4056 *)
4057 eval ac_cv_prog_make_${ac_make}_set=no;;
4058esac
4059rm -f conftest.make
4060fi
4061if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4063$as_echo "yes" >&6; }
4064 SET_MAKE=
4065else
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067$as_echo "no" >&6; }
4068 SET_MAKE="MAKE=${MAKE-make}"
4069fi
4070
4071rm -rf .tst 2>/dev/null
4072mkdir .tst 2>/dev/null
4073if test -d .tst; then
4074 am__leading_dot=.
4075else
4076 am__leading_dot=_
4077fi
4078rmdir .tst 2>/dev/null
4079
cristya448bd22011-10-14 12:38:13 +00004080# Check whether --enable-silent-rules was given.
4081if test "${enable_silent_rules+set}" = set; then :
4082 enableval=$enable_silent_rules;
4083fi
4084
cristyc0890a62012-07-19 00:18:20 +00004085case $enable_silent_rules in # (((
4086 yes) AM_DEFAULT_VERBOSITY=0;;
4087 no) AM_DEFAULT_VERBOSITY=1;;
4088 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004089esac
cristyc3fb77b2012-02-06 01:49:41 +00004090am_make=${MAKE-make}
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4092$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4093if ${am_cv_make_support_nested_variables+:} false; then :
4094 $as_echo_n "(cached) " >&6
4095else
4096 if $as_echo 'TRUE=$(BAR$(V))
4097BAR0=false
4098BAR1=true
4099V=1
4100am__doit:
4101 @$(TRUE)
4102.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4103 am_cv_make_support_nested_variables=yes
4104else
4105 am_cv_make_support_nested_variables=no
4106fi
4107fi
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4109$as_echo "$am_cv_make_support_nested_variables" >&6; }
4110if test $am_cv_make_support_nested_variables = yes; then
4111 AM_V='$(V)'
4112 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4113else
4114 AM_V=$AM_DEFAULT_VERBOSITY
4115 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4116fi
cristya448bd22011-10-14 12:38:13 +00004117AM_BACKSLASH='\'
4118
cristy73bd4a52010-10-05 11:24:23 +00004119if test "`cd $srcdir && pwd`" != "`pwd`"; then
4120 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4121 # is not polluted with repeated "-I."
4122 am__isrc=' -I$(srcdir)'
4123 # test to see if srcdir already configured
4124 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004125 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004126 fi
4127fi
4128
4129# test whether we have cygpath
4130if test -z "$CYGPATH_W"; then
4131 if (cygpath --version) >/dev/null 2>/dev/null; then
4132 CYGPATH_W='cygpath -w'
4133 else
4134 CYGPATH_W=echo
4135 fi
4136fi
4137
4138
4139# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004140 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004141 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004142
4143
cristya448bd22011-10-14 12:38:13 +00004144cat >>confdefs.h <<_ACEOF
4145#define PACKAGE "$PACKAGE"
4146_ACEOF
4147
4148
4149cat >>confdefs.h <<_ACEOF
4150#define VERSION "$VERSION"
4151_ACEOF
4152
cristy73bd4a52010-10-05 11:24:23 +00004153# Some tools Automake needs.
4154
4155ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4156
4157
4158AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4159
4160
4161AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4162
4163
4164AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4165
4166
4167MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4168
cristyc0890a62012-07-19 00:18:20 +00004169# For better backward compatibility. To be removed once Automake 1.9.x
4170# dies out for good. For more background, see:
4171# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4172# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4173mkdir_p='$(MKDIR_P)'
4174
cristy73bd4a52010-10-05 11:24:23 +00004175# We need awk for the "check" target. The system "awk" is bad on
4176# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004177# Always define AMTAR for backward compatibility. Yes, it's still used
4178# in the wild :-( We should find a proper way to deprecate it ...
4179AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004180
cristyc3fb77b2012-02-06 01:49:41 +00004181am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004182
4183
4184
4185
4186
cristy3ed852e2009-09-05 21:47:34 +00004187
4188# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004189# Check whether --enable-silent-rules was given.
4190if test "${enable_silent_rules+set}" = set; then :
4191 enableval=$enable_silent_rules;
4192fi
4193
cristyc0890a62012-07-19 00:18:20 +00004194case $enable_silent_rules in # (((
4195 yes) AM_DEFAULT_VERBOSITY=0;;
4196 no) AM_DEFAULT_VERBOSITY=1;;
4197 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004198esac
cristyc3fb77b2012-02-06 01:49:41 +00004199am_make=${MAKE-make}
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4201$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4202if ${am_cv_make_support_nested_variables+:} false; then :
4203 $as_echo_n "(cached) " >&6
4204else
4205 if $as_echo 'TRUE=$(BAR$(V))
4206BAR0=false
4207BAR1=true
4208V=1
4209am__doit:
4210 @$(TRUE)
4211.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4212 am_cv_make_support_nested_variables=yes
4213else
4214 am_cv_make_support_nested_variables=no
4215fi
4216fi
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4218$as_echo "$am_cv_make_support_nested_variables" >&6; }
4219if test $am_cv_make_support_nested_variables = yes; then
4220 AM_V='$(V)'
4221 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4222else
4223 AM_V=$AM_DEFAULT_VERBOSITY
4224 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4225fi
cristy73bd4a52010-10-05 11:24:23 +00004226AM_BACKSLASH='\'
4227
cristy3ed852e2009-09-05 21:47:34 +00004228
4229MAGICK_LIB_VERSION="0x"
4230if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4231 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4232fi
4233MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4234if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4235 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4236fi
4237MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4238if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4239 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4240fi
4241MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4242
4243
4244# Definition used to define MagickLibVersionText in version.h
4245MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4246
4247
4248# Definition used to define MagickLibVersionNumber in version.h
4249MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4250
4251
4252# Regenerate config.status if ChangeLog or version.sh is updated.
4253CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4254
4255
4256PERLMAINCC=$CC
4257
4258MAGICK_CFLAGS=''
4259MAGICK_CPPFLAGS=$CPPFLAGS_USER
4260MAGICK_PCFLAGS=$CPPFLAGS_USER
4261MAGICK_LDFLAGS=''
4262MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004263MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004264
4265#
4266# Evaluate shell variable equivalents to Makefile directory variables
4267#
4268if test "x$prefix" = xNONE; then
4269 prefix=$ac_default_prefix
4270fi
4271# Let make expand exec_prefix.
4272if test "x$exec_prefix" = xNONE; then
4273 exec_prefix='${prefix}'
4274fi
4275
4276#
4277eval "eval PREFIX_DIR=${prefix}"
4278
4279eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4280
4281eval "eval BIN_DIR=$bindir"
4282
4283eval "eval SBIN_DIR=$sbindir"
4284
4285eval "eval LIBEXEC_DIR=$libexecdir"
4286
4287eval "eval DATA_DIR=$datadir"
4288
cristy4e65ec22012-04-08 01:33:27 +00004289eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004290
cristy3ed852e2009-09-05 21:47:34 +00004291eval "eval SYSCONF_DIR=$sysconfdir"
4292
4293eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4294
4295eval "eval LOCALSTATE_DIR=$localstatedir"
4296
4297eval "eval LIB_DIR=$libdir"
4298
4299eval "eval INCLUDE_DIR=$includedir"
4300
4301eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4302
4303eval "eval INFO_DIR=$infodir"
4304
4305eval "eval MAN_DIR=$mandir"
4306
4307
4308# Get full paths to source and build directories
4309srcdirfull="`cd $srcdir && pwd`"
4310builddir="`pwd`"
4311
4312#
4313# Compute variables useful for running uninstalled software.
4314#
4315MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4316MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4317MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4318MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4319DIRSEP=':'
4320case "${build_os}" in
4321 mingw* )
4322 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4323 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4324 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4325 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4326 DIRSEP=';'
4327 ;;
4328esac
4329case "${host_os}" in
4330 mingw* )
4331 DIRSEP=';'
4332 ;;
4333esac
4334
4335
4336
4337
4338
4339
cristya0b81c32010-01-22 02:54:33 +00004340
4341#
4342# Enable OS features.
4343#
cristy73bd4a52010-10-05 11:24:23 +00004344DEPDIR="${am__leading_dot}deps"
4345
4346ac_config_commands="$ac_config_commands depfiles"
4347
4348
4349am_make=${MAKE-make}
4350cat > confinc << 'END'
4351am__doit:
4352 @echo this is the am__doit target
4353.PHONY: am__doit
4354END
4355# If we don't find an include directive, just comment out the code.
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4357$as_echo_n "checking for style of include used by $am_make... " >&6; }
4358am__include="#"
4359am__quote=
4360_am_result=none
4361# First try GNU make style include.
4362echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004363# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004364case `$am_make -s -f confmf 2> /dev/null` in #(
4365*the\ am__doit\ target*)
4366 am__include=include
4367 am__quote=
4368 _am_result=GNU
4369 ;;
4370esac
4371# Now try BSD make style include.
4372if test "$am__include" = "#"; then
4373 echo '.include "confinc"' > confmf
4374 case `$am_make -s -f confmf 2> /dev/null` in #(
4375 *the\ am__doit\ target*)
4376 am__include=.include
4377 am__quote="\""
4378 _am_result=BSD
4379 ;;
4380 esac
4381fi
4382
4383
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4385$as_echo "$_am_result" >&6; }
4386rm -f confinc confmf
4387
4388# Check whether --enable-dependency-tracking was given.
4389if test "${enable_dependency_tracking+set}" = set; then :
4390 enableval=$enable_dependency_tracking;
4391fi
4392
4393if test "x$enable_dependency_tracking" != xno; then
4394 am_depcomp="$ac_aux_dir/depcomp"
4395 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004396 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004397fi
4398 if test "x$enable_dependency_tracking" != xno; then
4399 AMDEP_TRUE=
4400 AMDEP_FALSE='#'
4401else
4402 AMDEP_TRUE='#'
4403 AMDEP_FALSE=
4404fi
4405
4406
cristy3ed852e2009-09-05 21:47:34 +00004407ac_ext=c
4408ac_cpp='$CPP $CPPFLAGS'
4409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411ac_compiler_gnu=$ac_cv_c_compiler_gnu
4412if test -n "$ac_tool_prefix"; then
4413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4414set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004416$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004417if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004418 $as_echo_n "(cached) " >&6
4419else
4420 if test -n "$CC"; then
4421 ac_cv_prog_CC="$CC" # Let the user override the test.
4422else
4423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH
4425do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004428 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004432 break 2
4433 fi
4434done
cristy8b350f62009-11-15 23:12:43 +00004435 done
cristy3ed852e2009-09-05 21:47:34 +00004436IFS=$as_save_IFS
4437
4438fi
4439fi
4440CC=$ac_cv_prog_CC
4441if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004443$as_echo "$CC" >&6; }
4444else
cristy8b350f62009-11-15 23:12:43 +00004445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004446$as_echo "no" >&6; }
4447fi
4448
4449
4450fi
4451if test -z "$ac_cv_prog_CC"; then
4452 ac_ct_CC=$CC
4453 # Extract the first word of "gcc", so it can be a program name with args.
4454set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004456$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004457if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004458 $as_echo_n "(cached) " >&6
4459else
4460 if test -n "$ac_ct_CC"; then
4461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4462else
4463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464for as_dir in $PATH
4465do
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004470 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004472 break 2
4473 fi
4474done
cristy8b350f62009-11-15 23:12:43 +00004475 done
cristy3ed852e2009-09-05 21:47:34 +00004476IFS=$as_save_IFS
4477
4478fi
4479fi
4480ac_ct_CC=$ac_cv_prog_ac_ct_CC
4481if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004483$as_echo "$ac_ct_CC" >&6; }
4484else
cristy8b350f62009-11-15 23:12:43 +00004485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004486$as_echo "no" >&6; }
4487fi
4488
4489 if test "x$ac_ct_CC" = x; then
4490 CC=""
4491 else
4492 case $cross_compiling:$ac_tool_warned in
4493yes:)
cristy8b350f62009-11-15 23:12:43 +00004494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4496ac_tool_warned=yes ;;
4497esac
4498 CC=$ac_ct_CC
4499 fi
4500else
4501 CC="$ac_cv_prog_CC"
4502fi
4503
4504if test -z "$CC"; then
4505 if test -n "$ac_tool_prefix"; then
4506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4507set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004509$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004510if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004511 $as_echo_n "(cached) " >&6
4512else
4513 if test -n "$CC"; then
4514 ac_cv_prog_CC="$CC" # Let the user override the test.
4515else
4516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517for as_dir in $PATH
4518do
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004521 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004523 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004525 break 2
4526 fi
4527done
cristy8b350f62009-11-15 23:12:43 +00004528 done
cristy3ed852e2009-09-05 21:47:34 +00004529IFS=$as_save_IFS
4530
4531fi
4532fi
4533CC=$ac_cv_prog_CC
4534if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004536$as_echo "$CC" >&6; }
4537else
cristy8b350f62009-11-15 23:12:43 +00004538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004539$as_echo "no" >&6; }
4540fi
4541
4542
4543 fi
4544fi
4545if test -z "$CC"; then
4546 # Extract the first word of "cc", so it can be a program name with args.
4547set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004549$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004550if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004551 $as_echo_n "(cached) " >&6
4552else
4553 if test -n "$CC"; then
4554 ac_cv_prog_CC="$CC" # Let the user override the test.
4555else
4556 ac_prog_rejected=no
4557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH
4559do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004562 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4565 ac_prog_rejected=yes
4566 continue
4567 fi
4568 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004570 break 2
4571 fi
4572done
cristy8b350f62009-11-15 23:12:43 +00004573 done
cristy3ed852e2009-09-05 21:47:34 +00004574IFS=$as_save_IFS
4575
4576if test $ac_prog_rejected = yes; then
4577 # We found a bogon in the path, so make sure we never use it.
4578 set dummy $ac_cv_prog_CC
4579 shift
4580 if test $# != 0; then
4581 # We chose a different compiler from the bogus one.
4582 # However, it has the same basename, so the bogon will be chosen
4583 # first if we set CC to just the basename; use the full file name.
4584 shift
4585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4586 fi
4587fi
4588fi
4589fi
4590CC=$ac_cv_prog_CC
4591if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004593$as_echo "$CC" >&6; }
4594else
cristy8b350f62009-11-15 23:12:43 +00004595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004596$as_echo "no" >&6; }
4597fi
4598
4599
4600fi
4601if test -z "$CC"; then
4602 if test -n "$ac_tool_prefix"; then
4603 for ac_prog in cl.exe
4604 do
4605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004608$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004609if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004610 $as_echo_n "(cached) " >&6
4611else
4612 if test -n "$CC"; then
4613 ac_cv_prog_CC="$CC" # Let the user override the test.
4614else
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004620 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004624 break 2
4625 fi
4626done
cristy8b350f62009-11-15 23:12:43 +00004627 done
cristy3ed852e2009-09-05 21:47:34 +00004628IFS=$as_save_IFS
4629
4630fi
4631fi
4632CC=$ac_cv_prog_CC
4633if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004635$as_echo "$CC" >&6; }
4636else
cristy8b350f62009-11-15 23:12:43 +00004637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004638$as_echo "no" >&6; }
4639fi
4640
4641
4642 test -n "$CC" && break
4643 done
4644fi
4645if test -z "$CC"; then
4646 ac_ct_CC=$CC
4647 for ac_prog in cl.exe
4648do
4649 # Extract the first word of "$ac_prog", so it can be a program name with args.
4650set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004652$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004653if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004654 $as_echo_n "(cached) " >&6
4655else
4656 if test -n "$ac_ct_CC"; then
4657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004664 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004666 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004668 break 2
4669 fi
4670done
cristy8b350f62009-11-15 23:12:43 +00004671 done
cristy3ed852e2009-09-05 21:47:34 +00004672IFS=$as_save_IFS
4673
4674fi
4675fi
4676ac_ct_CC=$ac_cv_prog_ac_ct_CC
4677if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004679$as_echo "$ac_ct_CC" >&6; }
4680else
cristy8b350f62009-11-15 23:12:43 +00004681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004682$as_echo "no" >&6; }
4683fi
4684
4685
4686 test -n "$ac_ct_CC" && break
4687done
4688
4689 if test "x$ac_ct_CC" = x; then
4690 CC=""
4691 else
4692 case $cross_compiling:$ac_tool_warned in
4693yes:)
cristy8b350f62009-11-15 23:12:43 +00004694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4696ac_tool_warned=yes ;;
4697esac
4698 CC=$ac_ct_CC
4699 fi
4700fi
4701
4702fi
4703
4704
cristy8b350f62009-11-15 23:12:43 +00004705test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004707as_fn_error $? "no acceptable C compiler found in \$PATH
4708See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004709
4710# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004711$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004712set X $ac_compile
4713ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004714for ac_option in --version -v -V -qversion; do
4715 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004716case "(($ac_try" in
4717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4718 *) ac_try_echo=$ac_try;;
4719esac
cristy8b350f62009-11-15 23:12:43 +00004720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4721$as_echo "$ac_try_echo"; } >&5
4722 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004723 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004724 if test -s conftest.err; then
4725 sed '10a\
4726... rest of stderr output deleted ...
4727 10q' conftest.err >conftest.er1
4728 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004729 fi
cristycd4c5312009-11-22 01:19:08 +00004730 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4732 test $ac_status = 0; }
4733done
cristy3ed852e2009-09-05 21:47:34 +00004734
cristy8b350f62009-11-15 23:12:43 +00004735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004736/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004737
cristy3ed852e2009-09-05 21:47:34 +00004738int
4739main ()
4740{
4741
4742 ;
4743 return 0;
4744}
4745_ACEOF
4746ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004747ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004748# Try to create an executable without -o first, disregard a.out.
4749# It will help us diagnose broken compilers, and finding out an intuition
4750# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4752$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004753ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4754
4755# The possible output files:
4756ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4757
4758ac_rmfiles=
4759for ac_file in $ac_files
4760do
4761 case $ac_file in
4762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4763 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4764 esac
4765done
4766rm -f $ac_rmfiles
4767
cristy8b350f62009-11-15 23:12:43 +00004768if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004769case "(($ac_try" in
4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771 *) ac_try_echo=$ac_try;;
4772esac
cristy8b350f62009-11-15 23:12:43 +00004773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4774$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004775 (eval "$ac_link_default") 2>&5
4776 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4778 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004779 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4780# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4781# in a Makefile. We should not override ac_cv_exeext if it was cached,
4782# so that the user can short-circuit this test for compilers unknown to
4783# Autoconf.
4784for ac_file in $ac_files ''
4785do
4786 test -f "$ac_file" || continue
4787 case $ac_file in
4788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4789 ;;
4790 [ab].out )
4791 # We found the default executable, but exeext='' is most
4792 # certainly right.
4793 break;;
4794 *.* )
cristy8b350f62009-11-15 23:12:43 +00004795 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004796 then :; else
4797 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4798 fi
4799 # We set ac_cv_exeext here because the later test for it is not
4800 # safe: cross compilers may not add the suffix if given an `-o'
4801 # argument, so we may need to know it at that point already.
4802 # Even if this section looks crufty: it has the advantage of
4803 # actually working.
4804 break;;
4805 * )
4806 break;;
4807 esac
4808done
4809test "$ac_cv_exeext" = no && ac_cv_exeext=
4810
4811else
4812 ac_file=''
4813fi
cristy8b350f62009-11-15 23:12:43 +00004814if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816$as_echo "no" >&6; }
4817$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004818sed 's/^/| /' conftest.$ac_ext >&5
4819
cristy8b350f62009-11-15 23:12:43 +00004820{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004822as_fn_error 77 "C compiler cannot create executables
4823See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004824else
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4826$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004827fi
cristycd4c5312009-11-22 01:19:08 +00004828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4829$as_echo_n "checking for C compiler default output file name... " >&6; }
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4831$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004832ac_exeext=$ac_cv_exeext
4833
cristycd4c5312009-11-22 01:19:08 +00004834rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004835ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004837$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004838if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004839case "(($ac_try" in
4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4842esac
cristy8b350f62009-11-15 23:12:43 +00004843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4844$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004845 (eval "$ac_link") 2>&5
4846 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4848 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004849 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4850# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4851# work properly (i.e., refer to `conftest.exe'), while it won't with
4852# `rm'.
4853for ac_file in conftest.exe conftest conftest.*; do
4854 test -f "$ac_file" || continue
4855 case $ac_file in
4856 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4857 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4858 break;;
4859 * ) break;;
4860 esac
4861done
4862else
cristy8b350f62009-11-15 23:12:43 +00004863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004865as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4866See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004867fi
cristycd4c5312009-11-22 01:19:08 +00004868rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004870$as_echo "$ac_cv_exeext" >&6; }
4871
4872rm -f conftest.$ac_ext
4873EXEEXT=$ac_cv_exeext
4874ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876/* end confdefs.h. */
4877#include <stdio.h>
4878int
4879main ()
4880{
4881FILE *f = fopen ("conftest.out", "w");
4882 return ferror (f) || fclose (f) != 0;
4883
4884 ;
4885 return 0;
4886}
4887_ACEOF
4888ac_clean_files="$ac_clean_files conftest.out"
4889# Check that the compiler produces executables we can run. If not, either
4890# the compiler is broken, or we cross compile.
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4892$as_echo_n "checking whether we are cross compiling... " >&6; }
4893if test "$cross_compiling" != yes; then
4894 { { ac_try="$ac_link"
4895case "(($ac_try" in
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4898esac
4899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4900$as_echo "$ac_try_echo"; } >&5
4901 (eval "$ac_link") 2>&5
4902 ac_status=$?
4903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4904 test $ac_status = 0; }
4905 if { ac_try='./conftest$ac_cv_exeext'
4906 { { case "(($ac_try" in
4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908 *) ac_try_echo=$ac_try;;
4909esac
4910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4911$as_echo "$ac_try_echo"; } >&5
4912 (eval "$ac_try") 2>&5
4913 ac_status=$?
4914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4915 test $ac_status = 0; }; }; then
4916 cross_compiling=no
4917 else
4918 if test "$cross_compiling" = maybe; then
4919 cross_compiling=yes
4920 else
4921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004923as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004924If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004925See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004926 fi
4927 fi
4928fi
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4930$as_echo "$cross_compiling" >&6; }
4931
4932rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4933ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004935$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004936if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004937 $as_echo_n "(cached) " >&6
4938else
cristy8b350f62009-11-15 23:12:43 +00004939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004940/* end confdefs.h. */
4941
4942int
4943main ()
4944{
4945
4946 ;
4947 return 0;
4948}
4949_ACEOF
4950rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004951if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004952case "(($ac_try" in
4953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954 *) ac_try_echo=$ac_try;;
4955esac
cristy8b350f62009-11-15 23:12:43 +00004956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4957$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004958 (eval "$ac_compile") 2>&5
4959 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4961 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004962 for ac_file in conftest.o conftest.obj conftest.*; do
4963 test -f "$ac_file" || continue;
4964 case $ac_file in
4965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4966 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4967 break;;
4968 esac
4969done
4970else
4971 $as_echo "$as_me: failed program was:" >&5
4972sed 's/^/| /' conftest.$ac_ext >&5
4973
cristy8b350f62009-11-15 23:12:43 +00004974{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004976as_fn_error $? "cannot compute suffix of object files: cannot compile
4977See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004978fi
cristy3ed852e2009-09-05 21:47:34 +00004979rm -f conftest.$ac_cv_objext conftest.$ac_ext
4980fi
cristy8b350f62009-11-15 23:12:43 +00004981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004982$as_echo "$ac_cv_objext" >&6; }
4983OBJEXT=$ac_cv_objext
4984ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004986$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004987if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004988 $as_echo_n "(cached) " >&6
4989else
cristy8b350f62009-11-15 23:12:43 +00004990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004991/* end confdefs.h. */
4992
4993int
4994main ()
4995{
4996#ifndef __GNUC__
4997 choke me
4998#endif
4999
5000 ;
5001 return 0;
5002}
5003_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005004if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005005 ac_compiler_gnu=yes
5006else
cristy8b350f62009-11-15 23:12:43 +00005007 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005008fi
cristy3ed852e2009-09-05 21:47:34 +00005009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010ac_cv_c_compiler_gnu=$ac_compiler_gnu
5011
5012fi
cristy8b350f62009-11-15 23:12:43 +00005013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005014$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5015if test $ac_compiler_gnu = yes; then
5016 GCC=yes
5017else
5018 GCC=
5019fi
5020ac_test_CFLAGS=${CFLAGS+set}
5021ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005023$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005024if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005025 $as_echo_n "(cached) " >&6
5026else
5027 ac_save_c_werror_flag=$ac_c_werror_flag
5028 ac_c_werror_flag=yes
5029 ac_cv_prog_cc_g=no
5030 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005032/* end confdefs.h. */
5033
5034int
5035main ()
5036{
5037
5038 ;
5039 return 0;
5040}
5041_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005042if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005043 ac_cv_prog_cc_g=yes
5044else
cristy8b350f62009-11-15 23:12:43 +00005045 CFLAGS=""
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005047/* end confdefs.h. */
5048
5049int
5050main ()
5051{
5052
5053 ;
5054 return 0;
5055}
5056_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005057if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005058
cristy8b350f62009-11-15 23:12:43 +00005059else
5060 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005061 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005063/* end confdefs.h. */
5064
5065int
5066main ()
5067{
5068
5069 ;
5070 return 0;
5071}
5072_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005073if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005074 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005075fi
cristy3ed852e2009-09-05 21:47:34 +00005076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077fi
cristy3ed852e2009-09-05 21:47:34 +00005078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5079fi
cristy3ed852e2009-09-05 21:47:34 +00005080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081 ac_c_werror_flag=$ac_save_c_werror_flag
5082fi
cristy8b350f62009-11-15 23:12:43 +00005083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005084$as_echo "$ac_cv_prog_cc_g" >&6; }
5085if test "$ac_test_CFLAGS" = set; then
5086 CFLAGS=$ac_save_CFLAGS
5087elif test $ac_cv_prog_cc_g = yes; then
5088 if test "$GCC" = yes; then
5089 CFLAGS="-g -O2"
5090 else
5091 CFLAGS="-g"
5092 fi
5093else
5094 if test "$GCC" = yes; then
5095 CFLAGS="-O2"
5096 else
5097 CFLAGS=
5098 fi
5099fi
cristy8b350f62009-11-15 23:12:43 +00005100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005101$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005102if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005103 $as_echo_n "(cached) " >&6
5104else
5105 ac_cv_prog_cc_c89=no
5106ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005108/* end confdefs.h. */
5109#include <stdarg.h>
5110#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005111struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005112/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5113struct buf { int x; };
5114FILE * (*rcsopen) (struct buf *, struct stat *, int);
5115static char *e (p, i)
5116 char **p;
5117 int i;
5118{
5119 return p[i];
5120}
5121static char *f (char * (*g) (char **, int), char **p, ...)
5122{
5123 char *s;
5124 va_list v;
5125 va_start (v,p);
5126 s = g (p, va_arg (v,int));
5127 va_end (v);
5128 return s;
5129}
5130
5131/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5132 function prototypes and stuff, but not '\xHH' hex character constants.
5133 These don't provoke an error unfortunately, instead are silently treated
5134 as 'x'. The following induces an error, until -std is added to get
5135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5136 array size at least. It's necessary to write '\x00'==0 to get something
5137 that's true only with -std. */
5138int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5139
5140/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5141 inside strings and character constants. */
5142#define FOO(x) 'x'
5143int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5144
5145int test (int i, double x);
5146struct s1 {int (*f) (int a);};
5147struct s2 {int (*f) (double a);};
5148int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5149int argc;
5150char **argv;
5151int
5152main ()
5153{
5154return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5155 ;
5156 return 0;
5157}
5158_ACEOF
5159for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5160 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5161do
5162 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005163 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005164 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005165fi
cristy3ed852e2009-09-05 21:47:34 +00005166rm -f core conftest.err conftest.$ac_objext
5167 test "x$ac_cv_prog_cc_c89" != "xno" && break
5168done
5169rm -f conftest.$ac_ext
5170CC=$ac_save_CC
5171
5172fi
5173# AC_CACHE_VAL
5174case "x$ac_cv_prog_cc_c89" in
5175 x)
cristy8b350f62009-11-15 23:12:43 +00005176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005177$as_echo "none needed" >&6; } ;;
5178 xno)
cristy8b350f62009-11-15 23:12:43 +00005179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005180$as_echo "unsupported" >&6; } ;;
5181 *)
5182 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005184$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5185esac
cristy8b350f62009-11-15 23:12:43 +00005186if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005187
cristy8b350f62009-11-15 23:12:43 +00005188fi
cristy3ed852e2009-09-05 21:47:34 +00005189
5190ac_ext=c
5191ac_cpp='$CPP $CPPFLAGS'
5192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005195
cristy73bd4a52010-10-05 11:24:23 +00005196depcc="$CC" am_compiler_list=
5197
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5199$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005200if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005201 $as_echo_n "(cached) " >&6
5202else
5203 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5204 # We make a subdir and do the tests there. Otherwise we can end up
5205 # making bogus files that we don't know about and never remove. For
5206 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005207 # making a dummy file named 'D' -- because '-MD' means "put the output
5208 # in D".
cristy7247bba2012-02-05 16:37:27 +00005209 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005210 mkdir conftest.dir
5211 # Copy depcomp to subdir because otherwise we won't find it if we're
5212 # using a relative directory.
5213 cp "$am_depcomp" conftest.dir
5214 cd conftest.dir
5215 # We will build objects and dependencies in a subdirectory because
5216 # it helps to detect inapplicable dependency modes. For instance
5217 # both Tru64's cc and ICC support -MD to output dependencies as a
5218 # side effect of compilation, but ICC will put the dependencies in
5219 # the current directory while Tru64 will put them in the object
5220 # directory.
5221 mkdir sub
5222
5223 am_cv_CC_dependencies_compiler_type=none
5224 if test "$am_compiler_list" = ""; then
5225 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5226 fi
5227 am__universal=false
5228 case " $depcc " in #(
5229 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5230 esac
5231
5232 for depmode in $am_compiler_list; do
5233 # Setup a source with many dependencies, because some compilers
5234 # like to wrap large dependency lists on column 80 (with \), and
5235 # we should not choose a depcomp mode which is confused by this.
5236 #
5237 # We need to recreate these files for each test, as the compiler may
5238 # overwrite some of them when testing with obscure command lines.
5239 # This happens at least with the AIX C compiler.
5240 : > sub/conftest.c
5241 for i in 1 2 3 4 5 6; do
5242 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005243 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5244 # Solaris 10 /bin/sh.
5245 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005246 done
5247 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5248
cristyc0890a62012-07-19 00:18:20 +00005249 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005250 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005251 # handle '-M -o', and we need to detect this. Also, some Intel
5252 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005253 am__obj=sub/conftest.${OBJEXT-o}
5254 am__minus_obj="-o $am__obj"
5255 case $depmode in
5256 gcc)
5257 # This depmode causes a compiler race in universal mode.
5258 test "$am__universal" = false || continue
5259 ;;
5260 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005261 # After this tag, mechanisms are not by side-effect, so they'll
5262 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005263 if test "x$enable_dependency_tracking" = xyes; then
5264 continue
5265 else
5266 break
5267 fi
5268 ;;
cristy7247bba2012-02-05 16:37:27 +00005269 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005270 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005271 # not run yet. These depmodes are late enough in the game, and
5272 # so weak that their functioning should not be impacted.
5273 am__obj=conftest.${OBJEXT-o}
5274 am__minus_obj=
5275 ;;
5276 none) break ;;
5277 esac
5278 if depmode=$depmode \
5279 source=sub/conftest.c object=$am__obj \
5280 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5281 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5282 >/dev/null 2>conftest.err &&
5283 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5284 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5285 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5286 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5287 # icc doesn't choke on unknown options, it will just issue warnings
5288 # or remarks (even with -Werror). So we grep stderr for any message
5289 # that says an option was ignored or not supported.
5290 # When given -MP, icc 7.0 and 7.1 complain thusly:
5291 # icc: Command line warning: ignoring option '-M'; no argument required
5292 # The diagnosis changed in icc 8.0:
5293 # icc: Command line remark: option '-MP' not supported
5294 if (grep 'ignoring option' conftest.err ||
5295 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5296 am_cv_CC_dependencies_compiler_type=$depmode
5297 break
5298 fi
5299 fi
5300 done
5301
5302 cd ..
5303 rm -rf conftest.dir
5304else
5305 am_cv_CC_dependencies_compiler_type=none
5306fi
5307
5308fi
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5310$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5311CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5312
5313 if
5314 test "x$enable_dependency_tracking" != xno \
5315 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5316 am__fastdepCC_TRUE=
5317 am__fastdepCC_FALSE='#'
5318else
5319 am__fastdepCC_TRUE='#'
5320 am__fastdepCC_FALSE=
5321fi
5322
5323
cristy3ed852e2009-09-05 21:47:34 +00005324
cristya0b81c32010-01-22 02:54:33 +00005325ac_ext=c
5326ac_cpp='$CPP $CPPFLAGS'
5327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5329ac_compiler_gnu=$ac_cv_c_compiler_gnu
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5331$as_echo_n "checking how to run the C preprocessor... " >&6; }
5332# On Suns, sometimes $CPP names a directory.
5333if test -n "$CPP" && test -d "$CPP"; then
5334 CPP=
5335fi
5336if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005337 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005338 $as_echo_n "(cached) " >&6
5339else
5340 # Double quotes because CPP needs to be expanded
5341 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5342 do
5343 ac_preproc_ok=false
5344for ac_c_preproc_warn_flag in '' yes
5345do
5346 # Use a header file that comes with gcc, so configuring glibc
5347 # with a fresh cross-compiler works.
5348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5349 # <limits.h> exists even on freestanding compilers.
5350 # On the NeXT, cc -E runs the code through the compiler's parser,
5351 # not just through cpp. "Syntax error" is here to catch this case.
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353/* end confdefs.h. */
5354#ifdef __STDC__
5355# include <limits.h>
5356#else
5357# include <assert.h>
5358#endif
5359 Syntax error
5360_ACEOF
5361if ac_fn_c_try_cpp "$LINENO"; then :
5362
5363else
5364 # Broken: fails on valid input.
5365continue
5366fi
cristyda16f162011-02-19 23:52:17 +00005367rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005368
5369 # OK, works on sane cases. Now check whether nonexistent headers
5370 # can be detected and how.
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372/* end confdefs.h. */
5373#include <ac_nonexistent.h>
5374_ACEOF
5375if ac_fn_c_try_cpp "$LINENO"; then :
5376 # Broken: success on invalid input.
5377continue
5378else
5379 # Passes both tests.
5380ac_preproc_ok=:
5381break
5382fi
cristyda16f162011-02-19 23:52:17 +00005383rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005384
5385done
5386# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005387rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005388if $ac_preproc_ok; then :
5389 break
5390fi
5391
5392 done
5393 ac_cv_prog_CPP=$CPP
5394
5395fi
5396 CPP=$ac_cv_prog_CPP
5397else
5398 ac_cv_prog_CPP=$CPP
5399fi
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5401$as_echo "$CPP" >&6; }
5402ac_preproc_ok=false
5403for ac_c_preproc_warn_flag in '' yes
5404do
5405 # Use a header file that comes with gcc, so configuring glibc
5406 # with a fresh cross-compiler works.
5407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5408 # <limits.h> exists even on freestanding compilers.
5409 # On the NeXT, cc -E runs the code through the compiler's parser,
5410 # not just through cpp. "Syntax error" is here to catch this case.
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412/* end confdefs.h. */
5413#ifdef __STDC__
5414# include <limits.h>
5415#else
5416# include <assert.h>
5417#endif
5418 Syntax error
5419_ACEOF
5420if ac_fn_c_try_cpp "$LINENO"; then :
5421
5422else
5423 # Broken: fails on valid input.
5424continue
5425fi
cristyda16f162011-02-19 23:52:17 +00005426rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005427
5428 # OK, works on sane cases. Now check whether nonexistent headers
5429 # can be detected and how.
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431/* end confdefs.h. */
5432#include <ac_nonexistent.h>
5433_ACEOF
5434if ac_fn_c_try_cpp "$LINENO"; then :
5435 # Broken: success on invalid input.
5436continue
5437else
5438 # Passes both tests.
5439ac_preproc_ok=:
5440break
5441fi
cristyda16f162011-02-19 23:52:17 +00005442rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005443
5444done
5445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005446rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005447if $ac_preproc_ok; then :
5448
5449else
5450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005452as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5453See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005454fi
5455
5456ac_ext=c
5457ac_cpp='$CPP $CPPFLAGS'
5458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5460ac_compiler_gnu=$ac_cv_c_compiler_gnu
5461
5462
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5464$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005465if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005466 $as_echo_n "(cached) " >&6
5467else
5468 if test -z "$GREP"; then
5469 ac_path_GREP_found=false
5470 # Loop through the user's path and test for each of PROGNAME-LIST
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5473do
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 for ac_prog in grep ggrep; do
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005479 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005480# Check for GNU ac_path_GREP and select it if it is found.
5481 # Check for GNU $ac_path_GREP
5482case `"$ac_path_GREP" --version 2>&1` in
5483*GNU*)
5484 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5485*)
5486 ac_count=0
5487 $as_echo_n 0123456789 >"conftest.in"
5488 while :
5489 do
5490 cat "conftest.in" "conftest.in" >"conftest.tmp"
5491 mv "conftest.tmp" "conftest.in"
5492 cp "conftest.in" "conftest.nl"
5493 $as_echo 'GREP' >> "conftest.nl"
5494 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5495 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5496 as_fn_arith $ac_count + 1 && ac_count=$as_val
5497 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5498 # Best one so far, save it but keep looking for a better one
5499 ac_cv_path_GREP="$ac_path_GREP"
5500 ac_path_GREP_max=$ac_count
5501 fi
5502 # 10*(2^10) chars as input seems more than enough
5503 test $ac_count -gt 10 && break
5504 done
5505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5506esac
5507
5508 $ac_path_GREP_found && break 3
5509 done
5510 done
5511 done
5512IFS=$as_save_IFS
5513 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005514 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005515 fi
5516else
5517 ac_cv_path_GREP=$GREP
5518fi
5519
5520fi
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5522$as_echo "$ac_cv_path_GREP" >&6; }
5523 GREP="$ac_cv_path_GREP"
5524
5525
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5527$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005528if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005529 $as_echo_n "(cached) " >&6
5530else
5531 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5532 then ac_cv_path_EGREP="$GREP -E"
5533 else
5534 if test -z "$EGREP"; then
5535 ac_path_EGREP_found=false
5536 # Loop through the user's path and test for each of PROGNAME-LIST
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5539do
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_prog in egrep; do
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005545 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005546# Check for GNU ac_path_EGREP and select it if it is found.
5547 # Check for GNU $ac_path_EGREP
5548case `"$ac_path_EGREP" --version 2>&1` in
5549*GNU*)
5550 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5551*)
5552 ac_count=0
5553 $as_echo_n 0123456789 >"conftest.in"
5554 while :
5555 do
5556 cat "conftest.in" "conftest.in" >"conftest.tmp"
5557 mv "conftest.tmp" "conftest.in"
5558 cp "conftest.in" "conftest.nl"
5559 $as_echo 'EGREP' >> "conftest.nl"
5560 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5562 as_fn_arith $ac_count + 1 && ac_count=$as_val
5563 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5564 # Best one so far, save it but keep looking for a better one
5565 ac_cv_path_EGREP="$ac_path_EGREP"
5566 ac_path_EGREP_max=$ac_count
5567 fi
5568 # 10*(2^10) chars as input seems more than enough
5569 test $ac_count -gt 10 && break
5570 done
5571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5572esac
5573
5574 $ac_path_EGREP_found && break 3
5575 done
5576 done
5577 done
5578IFS=$as_save_IFS
5579 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005580 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005581 fi
5582else
5583 ac_cv_path_EGREP=$EGREP
5584fi
5585
5586 fi
5587fi
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5589$as_echo "$ac_cv_path_EGREP" >&6; }
5590 EGREP="$ac_cv_path_EGREP"
5591
5592
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5594$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005595if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005596 $as_echo_n "(cached) " >&6
5597else
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599/* end confdefs.h. */
5600#include <stdlib.h>
5601#include <stdarg.h>
5602#include <string.h>
5603#include <float.h>
5604
5605int
5606main ()
5607{
5608
5609 ;
5610 return 0;
5611}
5612_ACEOF
5613if ac_fn_c_try_compile "$LINENO"; then :
5614 ac_cv_header_stdc=yes
5615else
5616 ac_cv_header_stdc=no
5617fi
5618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619
5620if test $ac_cv_header_stdc = yes; then
5621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623/* end confdefs.h. */
5624#include <string.h>
5625
5626_ACEOF
5627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5628 $EGREP "memchr" >/dev/null 2>&1; then :
5629
5630else
5631 ac_cv_header_stdc=no
5632fi
5633rm -f conftest*
5634
5635fi
5636
5637if test $ac_cv_header_stdc = yes; then
5638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640/* end confdefs.h. */
5641#include <stdlib.h>
5642
5643_ACEOF
5644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5645 $EGREP "free" >/dev/null 2>&1; then :
5646
5647else
5648 ac_cv_header_stdc=no
5649fi
5650rm -f conftest*
5651
5652fi
5653
5654if test $ac_cv_header_stdc = yes; then
5655 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5656 if test "$cross_compiling" = yes; then :
5657 :
5658else
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660/* end confdefs.h. */
5661#include <ctype.h>
5662#include <stdlib.h>
5663#if ((' ' & 0x0FF) == 0x020)
5664# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5665# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5666#else
5667# define ISLOWER(c) \
5668 (('a' <= (c) && (c) <= 'i') \
5669 || ('j' <= (c) && (c) <= 'r') \
5670 || ('s' <= (c) && (c) <= 'z'))
5671# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5672#endif
5673
5674#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5675int
5676main ()
5677{
5678 int i;
5679 for (i = 0; i < 256; i++)
5680 if (XOR (islower (i), ISLOWER (i))
5681 || toupper (i) != TOUPPER (i))
5682 return 2;
5683 return 0;
5684}
5685_ACEOF
5686if ac_fn_c_try_run "$LINENO"; then :
5687
5688else
5689 ac_cv_header_stdc=no
5690fi
5691rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5692 conftest.$ac_objext conftest.beam conftest.$ac_ext
5693fi
5694
5695fi
5696fi
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5698$as_echo "$ac_cv_header_stdc" >&6; }
5699if test $ac_cv_header_stdc = yes; then
5700
5701$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5702
5703fi
5704
5705# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5706for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5707 inttypes.h stdint.h unistd.h
5708do :
5709 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5710ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5711"
cristy98dddb52010-11-04 00:30:15 +00005712if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005713 cat >>confdefs.h <<_ACEOF
5714#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5715_ACEOF
5716
5717fi
5718
5719done
5720
5721
5722
5723 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 +00005724if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005725 MINIX=yes
5726else
5727 MINIX=
5728fi
5729
5730
5731 if test "$MINIX" = yes; then
5732
5733$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5734
5735
5736$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5737
5738
5739$as_echo "#define _MINIX 1" >>confdefs.h
5740
5741 fi
5742
5743
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5745$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005746if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005747 $as_echo_n "(cached) " >&6
5748else
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750/* end confdefs.h. */
5751
cristy14fefe52012-05-21 00:59:18 +00005752# define __EXTENSIONS__ 1
5753 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005754int
5755main ()
5756{
5757
5758 ;
5759 return 0;
5760}
5761_ACEOF
5762if ac_fn_c_try_compile "$LINENO"; then :
5763 ac_cv_safe_to_define___extensions__=yes
5764else
5765 ac_cv_safe_to_define___extensions__=no
5766fi
5767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5768fi
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5770$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5771 test $ac_cv_safe_to_define___extensions__ = yes &&
5772 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5773
5774 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5775
5776 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5777
5778 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5779
5780 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5781
5782
5783
5784# Check for programs
5785ac_ext=c
5786ac_cpp='$CPP $CPPFLAGS'
5787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5789ac_compiler_gnu=$ac_cv_c_compiler_gnu
5790if test -n "$ac_tool_prefix"; then
5791 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5792set dummy ${ac_tool_prefix}gcc; ac_word=$2
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005795if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005796 $as_echo_n "(cached) " >&6
5797else
5798 if test -n "$CC"; then
5799 ac_cv_prog_CC="$CC" # Let the user override the test.
5800else
5801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802for as_dir in $PATH
5803do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005808 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 break 2
5811 fi
5812done
5813 done
5814IFS=$as_save_IFS
5815
5816fi
5817fi
5818CC=$ac_cv_prog_CC
5819if test -n "$CC"; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5821$as_echo "$CC" >&6; }
5822else
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824$as_echo "no" >&6; }
5825fi
5826
5827
5828fi
5829if test -z "$ac_cv_prog_CC"; then
5830 ac_ct_CC=$CC
5831 # Extract the first word of "gcc", so it can be a program name with args.
5832set dummy gcc; ac_word=$2
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5834$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005835if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005836 $as_echo_n "(cached) " >&6
5837else
5838 if test -n "$ac_ct_CC"; then
5839 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5840else
5841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842for as_dir in $PATH
5843do
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005848 ac_cv_prog_ac_ct_CC="gcc"
5849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5851 fi
5852done
5853 done
5854IFS=$as_save_IFS
5855
5856fi
5857fi
5858ac_ct_CC=$ac_cv_prog_ac_ct_CC
5859if test -n "$ac_ct_CC"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5861$as_echo "$ac_ct_CC" >&6; }
5862else
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864$as_echo "no" >&6; }
5865fi
5866
5867 if test "x$ac_ct_CC" = x; then
5868 CC=""
5869 else
5870 case $cross_compiling:$ac_tool_warned in
5871yes:)
5872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5874ac_tool_warned=yes ;;
5875esac
5876 CC=$ac_ct_CC
5877 fi
5878else
5879 CC="$ac_cv_prog_CC"
5880fi
5881
5882if test -z "$CC"; then
5883 if test -n "$ac_tool_prefix"; then
5884 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5885set dummy ${ac_tool_prefix}cc; ac_word=$2
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005888if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005889 $as_echo_n "(cached) " >&6
5890else
5891 if test -n "$CC"; then
5892 ac_cv_prog_CC="$CC" # Let the user override the test.
5893else
5894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895for as_dir in $PATH
5896do
5897 IFS=$as_save_IFS
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005901 ac_cv_prog_CC="${ac_tool_prefix}cc"
5902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 break 2
5904 fi
5905done
5906 done
5907IFS=$as_save_IFS
5908
5909fi
5910fi
5911CC=$ac_cv_prog_CC
5912if test -n "$CC"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5914$as_echo "$CC" >&6; }
5915else
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917$as_echo "no" >&6; }
5918fi
5919
5920
5921 fi
5922fi
5923if test -z "$CC"; then
5924 # Extract the first word of "cc", so it can be a program name with args.
5925set dummy cc; ac_word=$2
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005928if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005929 $as_echo_n "(cached) " >&6
5930else
5931 if test -n "$CC"; then
5932 ac_cv_prog_CC="$CC" # Let the user override the test.
5933else
5934 ac_prog_rejected=no
5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936for as_dir in $PATH
5937do
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005942 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5943 ac_prog_rejected=yes
5944 continue
5945 fi
5946 ac_cv_prog_CC="cc"
5947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 break 2
5949 fi
5950done
5951 done
5952IFS=$as_save_IFS
5953
5954if test $ac_prog_rejected = yes; then
5955 # We found a bogon in the path, so make sure we never use it.
5956 set dummy $ac_cv_prog_CC
5957 shift
5958 if test $# != 0; then
5959 # We chose a different compiler from the bogus one.
5960 # However, it has the same basename, so the bogon will be chosen
5961 # first if we set CC to just the basename; use the full file name.
5962 shift
5963 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5964 fi
5965fi
5966fi
5967fi
5968CC=$ac_cv_prog_CC
5969if test -n "$CC"; then
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5971$as_echo "$CC" >&6; }
5972else
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974$as_echo "no" >&6; }
5975fi
5976
5977
5978fi
5979if test -z "$CC"; then
5980 if test -n "$ac_tool_prefix"; then
5981 for ac_prog in cl.exe
5982 do
5983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5984set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005987if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005988 $as_echo_n "(cached) " >&6
5989else
5990 if test -n "$CC"; then
5991 ac_cv_prog_CC="$CC" # Let the user override the test.
5992else
5993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994for as_dir in $PATH
5995do
5996 IFS=$as_save_IFS
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006000 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 break 2
6003 fi
6004done
6005 done
6006IFS=$as_save_IFS
6007
6008fi
6009fi
6010CC=$ac_cv_prog_CC
6011if test -n "$CC"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6013$as_echo "$CC" >&6; }
6014else
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016$as_echo "no" >&6; }
6017fi
6018
6019
6020 test -n "$CC" && break
6021 done
6022fi
6023if test -z "$CC"; then
6024 ac_ct_CC=$CC
6025 for ac_prog in cl.exe
6026do
6027 # Extract the first word of "$ac_prog", so it can be a program name with args.
6028set dummy $ac_prog; ac_word=$2
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006031if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006032 $as_echo_n "(cached) " >&6
6033else
6034 if test -n "$ac_ct_CC"; then
6035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6036else
6037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038for as_dir in $PATH
6039do
6040 IFS=$as_save_IFS
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006044 ac_cv_prog_ac_ct_CC="$ac_prog"
6045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6046 break 2
6047 fi
6048done
6049 done
6050IFS=$as_save_IFS
6051
6052fi
6053fi
6054ac_ct_CC=$ac_cv_prog_ac_ct_CC
6055if test -n "$ac_ct_CC"; then
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6057$as_echo "$ac_ct_CC" >&6; }
6058else
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060$as_echo "no" >&6; }
6061fi
6062
6063
6064 test -n "$ac_ct_CC" && break
6065done
6066
6067 if test "x$ac_ct_CC" = x; then
6068 CC=""
6069 else
6070 case $cross_compiling:$ac_tool_warned in
6071yes:)
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6074ac_tool_warned=yes ;;
6075esac
6076 CC=$ac_ct_CC
6077 fi
6078fi
6079
6080fi
6081
6082
6083test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006085as_fn_error $? "no acceptable C compiler found in \$PATH
6086See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006087
6088# Provide some information about the compiler.
6089$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6090set X $ac_compile
6091ac_compiler=$2
6092for ac_option in --version -v -V -qversion; do
6093 { { ac_try="$ac_compiler $ac_option >&5"
6094case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6097esac
6098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6099$as_echo "$ac_try_echo"; } >&5
6100 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6101 ac_status=$?
6102 if test -s conftest.err; then
6103 sed '10a\
6104... rest of stderr output deleted ...
6105 10q' conftest.err >conftest.er1
6106 cat conftest.er1 >&5
6107 fi
6108 rm -f conftest.er1 conftest.err
6109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6110 test $ac_status = 0; }
6111done
6112
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6114$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006115if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006116 $as_echo_n "(cached) " >&6
6117else
6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119/* end confdefs.h. */
6120
6121int
6122main ()
6123{
6124#ifndef __GNUC__
6125 choke me
6126#endif
6127
6128 ;
6129 return 0;
6130}
6131_ACEOF
6132if ac_fn_c_try_compile "$LINENO"; then :
6133 ac_compiler_gnu=yes
6134else
6135 ac_compiler_gnu=no
6136fi
6137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138ac_cv_c_compiler_gnu=$ac_compiler_gnu
6139
6140fi
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6142$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6143if test $ac_compiler_gnu = yes; then
6144 GCC=yes
6145else
6146 GCC=
6147fi
6148ac_test_CFLAGS=${CFLAGS+set}
6149ac_save_CFLAGS=$CFLAGS
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6151$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006152if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006153 $as_echo_n "(cached) " >&6
6154else
6155 ac_save_c_werror_flag=$ac_c_werror_flag
6156 ac_c_werror_flag=yes
6157 ac_cv_prog_cc_g=no
6158 CFLAGS="-g"
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160/* end confdefs.h. */
6161
6162int
6163main ()
6164{
6165
6166 ;
6167 return 0;
6168}
6169_ACEOF
6170if ac_fn_c_try_compile "$LINENO"; then :
6171 ac_cv_prog_cc_g=yes
6172else
6173 CFLAGS=""
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175/* end confdefs.h. */
6176
6177int
6178main ()
6179{
6180
6181 ;
6182 return 0;
6183}
6184_ACEOF
6185if ac_fn_c_try_compile "$LINENO"; then :
6186
6187else
6188 ac_c_werror_flag=$ac_save_c_werror_flag
6189 CFLAGS="-g"
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191/* end confdefs.h. */
6192
6193int
6194main ()
6195{
6196
6197 ;
6198 return 0;
6199}
6200_ACEOF
6201if ac_fn_c_try_compile "$LINENO"; then :
6202 ac_cv_prog_cc_g=yes
6203fi
6204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205fi
6206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207fi
6208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209 ac_c_werror_flag=$ac_save_c_werror_flag
6210fi
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6212$as_echo "$ac_cv_prog_cc_g" >&6; }
6213if test "$ac_test_CFLAGS" = set; then
6214 CFLAGS=$ac_save_CFLAGS
6215elif test $ac_cv_prog_cc_g = yes; then
6216 if test "$GCC" = yes; then
6217 CFLAGS="-g -O2"
6218 else
6219 CFLAGS="-g"
6220 fi
6221else
6222 if test "$GCC" = yes; then
6223 CFLAGS="-O2"
6224 else
6225 CFLAGS=
6226 fi
6227fi
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6229$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006230if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006231 $as_echo_n "(cached) " >&6
6232else
6233 ac_cv_prog_cc_c89=no
6234ac_save_CC=$CC
6235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236/* end confdefs.h. */
6237#include <stdarg.h>
6238#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006239struct stat;
cristya0b81c32010-01-22 02:54:33 +00006240/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6241struct buf { int x; };
6242FILE * (*rcsopen) (struct buf *, struct stat *, int);
6243static char *e (p, i)
6244 char **p;
6245 int i;
6246{
6247 return p[i];
6248}
6249static char *f (char * (*g) (char **, int), char **p, ...)
6250{
6251 char *s;
6252 va_list v;
6253 va_start (v,p);
6254 s = g (p, va_arg (v,int));
6255 va_end (v);
6256 return s;
6257}
6258
6259/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6260 function prototypes and stuff, but not '\xHH' hex character constants.
6261 These don't provoke an error unfortunately, instead are silently treated
6262 as 'x'. The following induces an error, until -std is added to get
6263 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6264 array size at least. It's necessary to write '\x00'==0 to get something
6265 that's true only with -std. */
6266int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6267
6268/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6269 inside strings and character constants. */
6270#define FOO(x) 'x'
6271int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6272
6273int test (int i, double x);
6274struct s1 {int (*f) (int a);};
6275struct s2 {int (*f) (double a);};
6276int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6277int argc;
6278char **argv;
6279int
6280main ()
6281{
6282return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6283 ;
6284 return 0;
6285}
6286_ACEOF
6287for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6288 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6289do
6290 CC="$ac_save_CC $ac_arg"
6291 if ac_fn_c_try_compile "$LINENO"; then :
6292 ac_cv_prog_cc_c89=$ac_arg
6293fi
6294rm -f core conftest.err conftest.$ac_objext
6295 test "x$ac_cv_prog_cc_c89" != "xno" && break
6296done
6297rm -f conftest.$ac_ext
6298CC=$ac_save_CC
6299
6300fi
6301# AC_CACHE_VAL
6302case "x$ac_cv_prog_cc_c89" in
6303 x)
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6305$as_echo "none needed" >&6; } ;;
6306 xno)
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6308$as_echo "unsupported" >&6; } ;;
6309 *)
6310 CC="$CC $ac_cv_prog_cc_c89"
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6312$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6313esac
6314if test "x$ac_cv_prog_cc_c89" != xno; then :
6315
6316fi
6317
6318ac_ext=c
6319ac_cpp='$CPP $CPPFLAGS'
6320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6322ac_compiler_gnu=$ac_cv_c_compiler_gnu
6323
cristy73bd4a52010-10-05 11:24:23 +00006324depcc="$CC" am_compiler_list=
6325
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6327$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006328if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006329 $as_echo_n "(cached) " >&6
6330else
6331 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6332 # We make a subdir and do the tests there. Otherwise we can end up
6333 # making bogus files that we don't know about and never remove. For
6334 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006335 # making a dummy file named 'D' -- because '-MD' means "put the output
6336 # in D".
cristy7247bba2012-02-05 16:37:27 +00006337 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006338 mkdir conftest.dir
6339 # Copy depcomp to subdir because otherwise we won't find it if we're
6340 # using a relative directory.
6341 cp "$am_depcomp" conftest.dir
6342 cd conftest.dir
6343 # We will build objects and dependencies in a subdirectory because
6344 # it helps to detect inapplicable dependency modes. For instance
6345 # both Tru64's cc and ICC support -MD to output dependencies as a
6346 # side effect of compilation, but ICC will put the dependencies in
6347 # the current directory while Tru64 will put them in the object
6348 # directory.
6349 mkdir sub
6350
6351 am_cv_CC_dependencies_compiler_type=none
6352 if test "$am_compiler_list" = ""; then
6353 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6354 fi
6355 am__universal=false
6356 case " $depcc " in #(
6357 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6358 esac
6359
6360 for depmode in $am_compiler_list; do
6361 # Setup a source with many dependencies, because some compilers
6362 # like to wrap large dependency lists on column 80 (with \), and
6363 # we should not choose a depcomp mode which is confused by this.
6364 #
6365 # We need to recreate these files for each test, as the compiler may
6366 # overwrite some of them when testing with obscure command lines.
6367 # This happens at least with the AIX C compiler.
6368 : > sub/conftest.c
6369 for i in 1 2 3 4 5 6; do
6370 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006371 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6372 # Solaris 10 /bin/sh.
6373 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006374 done
6375 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6376
cristyc0890a62012-07-19 00:18:20 +00006377 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006378 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006379 # handle '-M -o', and we need to detect this. Also, some Intel
6380 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006381 am__obj=sub/conftest.${OBJEXT-o}
6382 am__minus_obj="-o $am__obj"
6383 case $depmode in
6384 gcc)
6385 # This depmode causes a compiler race in universal mode.
6386 test "$am__universal" = false || continue
6387 ;;
6388 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006389 # After this tag, mechanisms are not by side-effect, so they'll
6390 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006391 if test "x$enable_dependency_tracking" = xyes; then
6392 continue
6393 else
6394 break
6395 fi
6396 ;;
cristy7247bba2012-02-05 16:37:27 +00006397 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006398 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006399 # not run yet. These depmodes are late enough in the game, and
6400 # so weak that their functioning should not be impacted.
6401 am__obj=conftest.${OBJEXT-o}
6402 am__minus_obj=
6403 ;;
6404 none) break ;;
6405 esac
6406 if depmode=$depmode \
6407 source=sub/conftest.c object=$am__obj \
6408 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6409 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6410 >/dev/null 2>conftest.err &&
6411 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6412 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6413 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6414 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6415 # icc doesn't choke on unknown options, it will just issue warnings
6416 # or remarks (even with -Werror). So we grep stderr for any message
6417 # that says an option was ignored or not supported.
6418 # When given -MP, icc 7.0 and 7.1 complain thusly:
6419 # icc: Command line warning: ignoring option '-M'; no argument required
6420 # The diagnosis changed in icc 8.0:
6421 # icc: Command line remark: option '-MP' not supported
6422 if (grep 'ignoring option' conftest.err ||
6423 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6424 am_cv_CC_dependencies_compiler_type=$depmode
6425 break
6426 fi
6427 fi
6428 done
6429
6430 cd ..
6431 rm -rf conftest.dir
6432else
6433 am_cv_CC_dependencies_compiler_type=none
6434fi
6435
6436fi
6437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6438$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6439CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6440
6441 if
6442 test "x$enable_dependency_tracking" != xno \
6443 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6444 am__fastdepCC_TRUE=
6445 am__fastdepCC_FALSE='#'
6446else
6447 am__fastdepCC_TRUE='#'
6448 am__fastdepCC_FALSE=
6449fi
6450
6451
cristy95646052009-11-28 23:05:30 +00006452ac_ext=cpp
6453ac_cpp='$CXXCPP $CPPFLAGS'
6454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6457if test -z "$CXX"; then
6458 if test -n "$CCC"; then
6459 CXX=$CCC
6460 else
6461 if test -n "$ac_tool_prefix"; then
6462 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6463 do
6464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6465set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006468if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006469 $as_echo_n "(cached) " >&6
6470else
6471 if test -n "$CXX"; then
6472 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6473else
6474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475for as_dir in $PATH
6476do
6477 IFS=$as_save_IFS
6478 test -z "$as_dir" && as_dir=.
6479 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006481 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 break 2
6484 fi
6485done
6486 done
6487IFS=$as_save_IFS
6488
6489fi
6490fi
6491CXX=$ac_cv_prog_CXX
6492if test -n "$CXX"; then
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6494$as_echo "$CXX" >&6; }
6495else
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497$as_echo "no" >&6; }
6498fi
6499
6500
6501 test -n "$CXX" && break
6502 done
6503fi
6504if test -z "$CXX"; then
6505 ac_ct_CXX=$CXX
6506 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6507do
6508 # Extract the first word of "$ac_prog", so it can be a program name with args.
6509set dummy $ac_prog; ac_word=$2
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006512if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006513 $as_echo_n "(cached) " >&6
6514else
6515 if test -n "$ac_ct_CXX"; then
6516 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6517else
6518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519for as_dir in $PATH
6520do
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006525 ac_cv_prog_ac_ct_CXX="$ac_prog"
6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 break 2
6528 fi
6529done
6530 done
6531IFS=$as_save_IFS
6532
6533fi
6534fi
6535ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6536if test -n "$ac_ct_CXX"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6538$as_echo "$ac_ct_CXX" >&6; }
6539else
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541$as_echo "no" >&6; }
6542fi
6543
6544
6545 test -n "$ac_ct_CXX" && break
6546done
6547
6548 if test "x$ac_ct_CXX" = x; then
6549 CXX="g++"
6550 else
6551 case $cross_compiling:$ac_tool_warned in
6552yes:)
6553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6555ac_tool_warned=yes ;;
6556esac
6557 CXX=$ac_ct_CXX
6558 fi
6559fi
6560
6561 fi
6562fi
6563# Provide some information about the compiler.
6564$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6565set X $ac_compile
6566ac_compiler=$2
6567for ac_option in --version -v -V -qversion; do
6568 { { ac_try="$ac_compiler $ac_option >&5"
6569case "(($ac_try" in
6570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6571 *) ac_try_echo=$ac_try;;
6572esac
6573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6574$as_echo "$ac_try_echo"; } >&5
6575 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6576 ac_status=$?
6577 if test -s conftest.err; then
6578 sed '10a\
6579... rest of stderr output deleted ...
6580 10q' conftest.err >conftest.er1
6581 cat conftest.er1 >&5
6582 fi
6583 rm -f conftest.er1 conftest.err
6584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6585 test $ac_status = 0; }
6586done
6587
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6589$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006590if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006591 $as_echo_n "(cached) " >&6
6592else
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594/* end confdefs.h. */
6595
6596int
6597main ()
6598{
6599#ifndef __GNUC__
6600 choke me
6601#endif
6602
6603 ;
6604 return 0;
6605}
6606_ACEOF
6607if ac_fn_cxx_try_compile "$LINENO"; then :
6608 ac_compiler_gnu=yes
6609else
6610 ac_compiler_gnu=no
6611fi
6612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6614
6615fi
6616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6617$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6618if test $ac_compiler_gnu = yes; then
6619 GXX=yes
6620else
6621 GXX=
6622fi
6623ac_test_CXXFLAGS=${CXXFLAGS+set}
6624ac_save_CXXFLAGS=$CXXFLAGS
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6626$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006627if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006628 $as_echo_n "(cached) " >&6
6629else
6630 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6631 ac_cxx_werror_flag=yes
6632 ac_cv_prog_cxx_g=no
6633 CXXFLAGS="-g"
6634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6635/* end confdefs.h. */
6636
6637int
6638main ()
6639{
6640
6641 ;
6642 return 0;
6643}
6644_ACEOF
6645if ac_fn_cxx_try_compile "$LINENO"; then :
6646 ac_cv_prog_cxx_g=yes
6647else
6648 CXXFLAGS=""
6649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650/* end confdefs.h. */
6651
6652int
6653main ()
6654{
6655
6656 ;
6657 return 0;
6658}
6659_ACEOF
6660if ac_fn_cxx_try_compile "$LINENO"; then :
6661
6662else
6663 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6664 CXXFLAGS="-g"
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666/* end confdefs.h. */
6667
6668int
6669main ()
6670{
6671
6672 ;
6673 return 0;
6674}
6675_ACEOF
6676if ac_fn_cxx_try_compile "$LINENO"; then :
6677 ac_cv_prog_cxx_g=yes
6678fi
6679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680fi
6681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682fi
6683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6685fi
6686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6687$as_echo "$ac_cv_prog_cxx_g" >&6; }
6688if test "$ac_test_CXXFLAGS" = set; then
6689 CXXFLAGS=$ac_save_CXXFLAGS
6690elif test $ac_cv_prog_cxx_g = yes; then
6691 if test "$GXX" = yes; then
6692 CXXFLAGS="-g -O2"
6693 else
6694 CXXFLAGS="-g"
6695 fi
6696else
6697 if test "$GXX" = yes; then
6698 CXXFLAGS="-O2"
6699 else
6700 CXXFLAGS=
6701 fi
6702fi
6703ac_ext=c
6704ac_cpp='$CPP $CPPFLAGS'
6705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6707ac_compiler_gnu=$ac_cv_c_compiler_gnu
6708
cristy73bd4a52010-10-05 11:24:23 +00006709depcc="$CXX" am_compiler_list=
6710
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6712$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006713if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006714 $as_echo_n "(cached) " >&6
6715else
6716 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6717 # We make a subdir and do the tests there. Otherwise we can end up
6718 # making bogus files that we don't know about and never remove. For
6719 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006720 # making a dummy file named 'D' -- because '-MD' means "put the output
6721 # in D".
cristy7247bba2012-02-05 16:37:27 +00006722 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006723 mkdir conftest.dir
6724 # Copy depcomp to subdir because otherwise we won't find it if we're
6725 # using a relative directory.
6726 cp "$am_depcomp" conftest.dir
6727 cd conftest.dir
6728 # We will build objects and dependencies in a subdirectory because
6729 # it helps to detect inapplicable dependency modes. For instance
6730 # both Tru64's cc and ICC support -MD to output dependencies as a
6731 # side effect of compilation, but ICC will put the dependencies in
6732 # the current directory while Tru64 will put them in the object
6733 # directory.
6734 mkdir sub
6735
6736 am_cv_CXX_dependencies_compiler_type=none
6737 if test "$am_compiler_list" = ""; then
6738 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6739 fi
6740 am__universal=false
6741 case " $depcc " in #(
6742 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6743 esac
6744
6745 for depmode in $am_compiler_list; do
6746 # Setup a source with many dependencies, because some compilers
6747 # like to wrap large dependency lists on column 80 (with \), and
6748 # we should not choose a depcomp mode which is confused by this.
6749 #
6750 # We need to recreate these files for each test, as the compiler may
6751 # overwrite some of them when testing with obscure command lines.
6752 # This happens at least with the AIX C compiler.
6753 : > sub/conftest.c
6754 for i in 1 2 3 4 5 6; do
6755 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006756 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6757 # Solaris 10 /bin/sh.
6758 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006759 done
6760 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6761
cristyc0890a62012-07-19 00:18:20 +00006762 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006763 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006764 # handle '-M -o', and we need to detect this. Also, some Intel
6765 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006766 am__obj=sub/conftest.${OBJEXT-o}
6767 am__minus_obj="-o $am__obj"
6768 case $depmode in
6769 gcc)
6770 # This depmode causes a compiler race in universal mode.
6771 test "$am__universal" = false || continue
6772 ;;
6773 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006774 # After this tag, mechanisms are not by side-effect, so they'll
6775 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006776 if test "x$enable_dependency_tracking" = xyes; then
6777 continue
6778 else
6779 break
6780 fi
6781 ;;
cristy7247bba2012-02-05 16:37:27 +00006782 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006783 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006784 # not run yet. These depmodes are late enough in the game, and
6785 # so weak that their functioning should not be impacted.
6786 am__obj=conftest.${OBJEXT-o}
6787 am__minus_obj=
6788 ;;
6789 none) break ;;
6790 esac
6791 if depmode=$depmode \
6792 source=sub/conftest.c object=$am__obj \
6793 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6794 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6795 >/dev/null 2>conftest.err &&
6796 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6797 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6798 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6799 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6800 # icc doesn't choke on unknown options, it will just issue warnings
6801 # or remarks (even with -Werror). So we grep stderr for any message
6802 # that says an option was ignored or not supported.
6803 # When given -MP, icc 7.0 and 7.1 complain thusly:
6804 # icc: Command line warning: ignoring option '-M'; no argument required
6805 # The diagnosis changed in icc 8.0:
6806 # icc: Command line remark: option '-MP' not supported
6807 if (grep 'ignoring option' conftest.err ||
6808 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6809 am_cv_CXX_dependencies_compiler_type=$depmode
6810 break
6811 fi
6812 fi
6813 done
6814
6815 cd ..
6816 rm -rf conftest.dir
6817else
6818 am_cv_CXX_dependencies_compiler_type=none
6819fi
6820
6821fi
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6823$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6824CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6825
6826 if
6827 test "x$enable_dependency_tracking" != xno \
6828 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6829 am__fastdepCXX_TRUE=
6830 am__fastdepCXX_FALSE='#'
6831else
6832 am__fastdepCXX_TRUE='#'
6833 am__fastdepCXX_FALSE=
6834fi
6835
6836
cristy8b350f62009-11-15 23:12:43 +00006837 case $ac_cv_prog_cc_stdc in #(
6838 no) :
6839 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6840 *) :
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006842$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006843if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006844 $as_echo_n "(cached) " >&6
6845else
6846 ac_cv_prog_cc_c99=no
6847ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006849/* end confdefs.h. */
6850#include <stdarg.h>
6851#include <stdbool.h>
6852#include <stdlib.h>
6853#include <wchar.h>
6854#include <stdio.h>
6855
6856// Check varargs macros. These examples are taken from C99 6.10.3.5.
6857#define debug(...) fprintf (stderr, __VA_ARGS__)
6858#define showlist(...) puts (#__VA_ARGS__)
6859#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6860static void
6861test_varargs_macros (void)
6862{
6863 int x = 1234;
6864 int y = 5678;
6865 debug ("Flag");
6866 debug ("X = %d\n", x);
6867 showlist (The first, second, and third items.);
6868 report (x>y, "x is %d but y is %d", x, y);
6869}
6870
6871// Check long long types.
6872#define BIG64 18446744073709551615ull
6873#define BIG32 4294967295ul
6874#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6875#if !BIG_OK
6876 your preprocessor is broken;
6877#endif
6878#if BIG_OK
6879#else
6880 your preprocessor is broken;
6881#endif
6882static long long int bignum = -9223372036854775807LL;
6883static unsigned long long int ubignum = BIG64;
6884
6885struct incomplete_array
6886{
6887 int datasize;
6888 double data[];
6889};
6890
6891struct named_init {
6892 int number;
6893 const wchar_t *name;
6894 double average;
6895};
6896
6897typedef const char *ccp;
6898
6899static inline int
6900test_restrict (ccp restrict text)
6901{
6902 // See if C++-style comments work.
6903 // Iterate through items via the restricted pointer.
6904 // Also check for declarations in for loops.
6905 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6906 continue;
6907 return 0;
6908}
6909
6910// Check varargs and va_copy.
6911static void
6912test_varargs (const char *format, ...)
6913{
6914 va_list args;
6915 va_start (args, format);
6916 va_list args_copy;
6917 va_copy (args_copy, args);
6918
6919 const char *str;
6920 int number;
6921 float fnumber;
6922
6923 while (*format)
6924 {
6925 switch (*format++)
6926 {
6927 case 's': // string
6928 str = va_arg (args_copy, const char *);
6929 break;
6930 case 'd': // int
6931 number = va_arg (args_copy, int);
6932 break;
6933 case 'f': // float
6934 fnumber = va_arg (args_copy, double);
6935 break;
6936 default:
6937 break;
6938 }
6939 }
6940 va_end (args_copy);
6941 va_end (args);
6942}
6943
6944int
6945main ()
6946{
6947
6948 // Check bool.
6949 _Bool success = false;
6950
6951 // Check restrict.
6952 if (test_restrict ("String literal") == 0)
6953 success = true;
6954 char *restrict newvar = "Another string";
6955
6956 // Check varargs.
6957 test_varargs ("s, d' f .", "string", 65, 34.234);
6958 test_varargs_macros ();
6959
6960 // Check flexible array members.
6961 struct incomplete_array *ia =
6962 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6963 ia->datasize = 10;
6964 for (int i = 0; i < ia->datasize; ++i)
6965 ia->data[i] = i * 1.234;
6966
6967 // Check named initializers.
6968 struct named_init ni = {
6969 .number = 34,
6970 .name = L"Test wide string",
6971 .average = 543.34343,
6972 };
6973
6974 ni.number = 58;
6975
6976 int dynamic_array[ni.number];
6977 dynamic_array[ni.number - 1] = 543;
6978
6979 // work around unused variable warnings
6980 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6981 || dynamic_array[ni.number - 1] != 543);
6982
6983 ;
6984 return 0;
6985}
6986_ACEOF
cristy14fefe52012-05-21 00:59:18 +00006987for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00006988do
6989 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006990 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006991 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006992fi
cristy3ed852e2009-09-05 21:47:34 +00006993rm -f core conftest.err conftest.$ac_objext
6994 test "x$ac_cv_prog_cc_c99" != "xno" && break
6995done
6996rm -f conftest.$ac_ext
6997CC=$ac_save_CC
6998
6999fi
7000# AC_CACHE_VAL
7001case "x$ac_cv_prog_cc_c99" in
7002 x)
cristy8b350f62009-11-15 23:12:43 +00007003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007004$as_echo "none needed" >&6; } ;;
7005 xno)
cristy8b350f62009-11-15 23:12:43 +00007006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007007$as_echo "unsupported" >&6; } ;;
7008 *)
7009 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007011$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7012esac
cristy8b350f62009-11-15 23:12:43 +00007013if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007014 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7015else
cristy8b350f62009-11-15 23:12:43 +00007016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007017$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007018if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007019 $as_echo_n "(cached) " >&6
7020else
7021 ac_cv_prog_cc_c89=no
7022ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007024/* end confdefs.h. */
7025#include <stdarg.h>
7026#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007027struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007028/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7029struct buf { int x; };
7030FILE * (*rcsopen) (struct buf *, struct stat *, int);
7031static char *e (p, i)
7032 char **p;
7033 int i;
7034{
7035 return p[i];
7036}
7037static char *f (char * (*g) (char **, int), char **p, ...)
7038{
7039 char *s;
7040 va_list v;
7041 va_start (v,p);
7042 s = g (p, va_arg (v,int));
7043 va_end (v);
7044 return s;
7045}
7046
7047/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7048 function prototypes and stuff, but not '\xHH' hex character constants.
7049 These don't provoke an error unfortunately, instead are silently treated
7050 as 'x'. The following induces an error, until -std is added to get
7051 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7052 array size at least. It's necessary to write '\x00'==0 to get something
7053 that's true only with -std. */
7054int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7055
7056/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7057 inside strings and character constants. */
7058#define FOO(x) 'x'
7059int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7060
7061int test (int i, double x);
7062struct s1 {int (*f) (int a);};
7063struct s2 {int (*f) (double a);};
7064int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7065int argc;
7066char **argv;
7067int
7068main ()
7069{
7070return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7071 ;
7072 return 0;
7073}
7074_ACEOF
7075for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7076 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7077do
7078 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007079 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007080 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007081fi
cristy3ed852e2009-09-05 21:47:34 +00007082rm -f core conftest.err conftest.$ac_objext
7083 test "x$ac_cv_prog_cc_c89" != "xno" && break
7084done
7085rm -f conftest.$ac_ext
7086CC=$ac_save_CC
7087
7088fi
7089# AC_CACHE_VAL
7090case "x$ac_cv_prog_cc_c89" in
7091 x)
cristy8b350f62009-11-15 23:12:43 +00007092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007093$as_echo "none needed" >&6; } ;;
7094 xno)
cristy8b350f62009-11-15 23:12:43 +00007095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007096$as_echo "unsupported" >&6; } ;;
7097 *)
7098 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007100$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7101esac
cristy8b350f62009-11-15 23:12:43 +00007102if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007103 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7104else
7105 ac_cv_prog_cc_stdc=no
7106fi
7107
cristy3ed852e2009-09-05 21:47:34 +00007108fi
cristy3ed852e2009-09-05 21:47:34 +00007109 ;;
7110esac
cristy8b350f62009-11-15 23:12:43 +00007111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007112$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007113 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007114 $as_echo_n "(cached) " >&6
7115fi
7116
cristy8b350f62009-11-15 23:12:43 +00007117 case $ac_cv_prog_cc_stdc in #(
7118 no) :
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7120$as_echo "unsupported" >&6; } ;; #(
7121 '') :
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7123$as_echo "none needed" >&6; } ;; #(
7124 *) :
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007126$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7127esac
7128
cristy3ed852e2009-09-05 21:47:34 +00007129ac_ext=c
7130ac_cpp='$CPP $CPPFLAGS'
7131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7133ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007135$as_echo_n "checking how to run the C preprocessor... " >&6; }
7136# On Suns, sometimes $CPP names a directory.
7137if test -n "$CPP" && test -d "$CPP"; then
7138 CPP=
7139fi
7140if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007141 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007142 $as_echo_n "(cached) " >&6
7143else
7144 # Double quotes because CPP needs to be expanded
7145 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7146 do
7147 ac_preproc_ok=false
7148for ac_c_preproc_warn_flag in '' yes
7149do
7150 # Use a header file that comes with gcc, so configuring glibc
7151 # with a fresh cross-compiler works.
7152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7153 # <limits.h> exists even on freestanding compilers.
7154 # On the NeXT, cc -E runs the code through the compiler's parser,
7155 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007157/* end confdefs.h. */
7158#ifdef __STDC__
7159# include <limits.h>
7160#else
7161# include <assert.h>
7162#endif
7163 Syntax error
7164_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007165if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007166
cristy8b350f62009-11-15 23:12:43 +00007167else
cristy3ed852e2009-09-05 21:47:34 +00007168 # Broken: fails on valid input.
7169continue
7170fi
cristyda16f162011-02-19 23:52:17 +00007171rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007172
7173 # OK, works on sane cases. Now check whether nonexistent headers
7174 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007176/* end confdefs.h. */
7177#include <ac_nonexistent.h>
7178_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007179if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007180 # Broken: success on invalid input.
7181continue
7182else
cristy3ed852e2009-09-05 21:47:34 +00007183 # Passes both tests.
7184ac_preproc_ok=:
7185break
7186fi
cristyda16f162011-02-19 23:52:17 +00007187rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007188
7189done
7190# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007191rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007192if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007193 break
7194fi
7195
7196 done
7197 ac_cv_prog_CPP=$CPP
7198
7199fi
7200 CPP=$ac_cv_prog_CPP
7201else
7202 ac_cv_prog_CPP=$CPP
7203fi
cristy8b350f62009-11-15 23:12:43 +00007204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007205$as_echo "$CPP" >&6; }
7206ac_preproc_ok=false
7207for ac_c_preproc_warn_flag in '' yes
7208do
7209 # Use a header file that comes with gcc, so configuring glibc
7210 # with a fresh cross-compiler works.
7211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7212 # <limits.h> exists even on freestanding compilers.
7213 # On the NeXT, cc -E runs the code through the compiler's parser,
7214 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007216/* end confdefs.h. */
7217#ifdef __STDC__
7218# include <limits.h>
7219#else
7220# include <assert.h>
7221#endif
7222 Syntax error
7223_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007224if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007225
cristy8b350f62009-11-15 23:12:43 +00007226else
cristy3ed852e2009-09-05 21:47:34 +00007227 # Broken: fails on valid input.
7228continue
7229fi
cristyda16f162011-02-19 23:52:17 +00007230rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007231
7232 # OK, works on sane cases. Now check whether nonexistent headers
7233 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007235/* end confdefs.h. */
7236#include <ac_nonexistent.h>
7237_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007238if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007239 # Broken: success on invalid input.
7240continue
7241else
cristy3ed852e2009-09-05 21:47:34 +00007242 # Passes both tests.
7243ac_preproc_ok=:
7244break
7245fi
cristyda16f162011-02-19 23:52:17 +00007246rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007247
7248done
7249# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007250rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007251if $ac_preproc_ok; then :
7252
cristy3ed852e2009-09-05 21:47:34 +00007253else
cristy8b350f62009-11-15 23:12:43 +00007254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007256as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7257See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007258fi
7259
7260ac_ext=c
7261ac_cpp='$CPP $CPPFLAGS'
7262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7264ac_compiler_gnu=$ac_cv_c_compiler_gnu
7265
cristy73bd4a52010-10-05 11:24:23 +00007266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7267$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007268if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007269 $as_echo_n "(cached) " >&6
7270else
7271 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7272 for ac_i in 1 2 3 4 5 6 7; do
7273 ac_script="$ac_script$as_nl$ac_script"
7274 done
7275 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7276 { ac_script=; unset ac_script;}
7277 if test -z "$SED"; then
7278 ac_path_SED_found=false
7279 # Loop through the user's path and test for each of PROGNAME-LIST
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281for as_dir in $PATH
7282do
7283 IFS=$as_save_IFS
7284 test -z "$as_dir" && as_dir=.
7285 for ac_prog in sed gsed; do
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007288 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007289# Check for GNU ac_path_SED and select it if it is found.
7290 # Check for GNU $ac_path_SED
7291case `"$ac_path_SED" --version 2>&1` in
7292*GNU*)
7293 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7294*)
7295 ac_count=0
7296 $as_echo_n 0123456789 >"conftest.in"
7297 while :
7298 do
7299 cat "conftest.in" "conftest.in" >"conftest.tmp"
7300 mv "conftest.tmp" "conftest.in"
7301 cp "conftest.in" "conftest.nl"
7302 $as_echo '' >> "conftest.nl"
7303 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7305 as_fn_arith $ac_count + 1 && ac_count=$as_val
7306 if test $ac_count -gt ${ac_path_SED_max-0}; then
7307 # Best one so far, save it but keep looking for a better one
7308 ac_cv_path_SED="$ac_path_SED"
7309 ac_path_SED_max=$ac_count
7310 fi
7311 # 10*(2^10) chars as input seems more than enough
7312 test $ac_count -gt 10 && break
7313 done
7314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7315esac
7316
7317 $ac_path_SED_found && break 3
7318 done
7319 done
7320 done
7321IFS=$as_save_IFS
7322 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007323 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007324 fi
7325else
7326 ac_cv_path_SED=$SED
7327fi
7328
7329fi
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7331$as_echo "$ac_cv_path_SED" >&6; }
7332 SED="$ac_cv_path_SED"
7333 rm -f conftest.sed
7334
7335test -z "$SED" && SED=sed
7336Xsed="$SED -e 1s/^X//"
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7349$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007350if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007351 $as_echo_n "(cached) " >&6
7352else
7353 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7354 then ac_cv_path_FGREP="$GREP -F"
7355 else
7356 if test -z "$FGREP"; then
7357 ac_path_FGREP_found=false
7358 # Loop through the user's path and test for each of PROGNAME-LIST
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7361do
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_prog in fgrep; do
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007367 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007368# Check for GNU ac_path_FGREP and select it if it is found.
7369 # Check for GNU $ac_path_FGREP
7370case `"$ac_path_FGREP" --version 2>&1` in
7371*GNU*)
7372 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7373*)
7374 ac_count=0
7375 $as_echo_n 0123456789 >"conftest.in"
7376 while :
7377 do
7378 cat "conftest.in" "conftest.in" >"conftest.tmp"
7379 mv "conftest.tmp" "conftest.in"
7380 cp "conftest.in" "conftest.nl"
7381 $as_echo 'FGREP' >> "conftest.nl"
7382 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7384 as_fn_arith $ac_count + 1 && ac_count=$as_val
7385 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7386 # Best one so far, save it but keep looking for a better one
7387 ac_cv_path_FGREP="$ac_path_FGREP"
7388 ac_path_FGREP_max=$ac_count
7389 fi
7390 # 10*(2^10) chars as input seems more than enough
7391 test $ac_count -gt 10 && break
7392 done
7393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7394esac
7395
7396 $ac_path_FGREP_found && break 3
7397 done
7398 done
7399 done
7400IFS=$as_save_IFS
7401 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007402 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007403 fi
7404else
7405 ac_cv_path_FGREP=$FGREP
7406fi
7407
7408 fi
7409fi
7410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7411$as_echo "$ac_cv_path_FGREP" >&6; }
7412 FGREP="$ac_cv_path_FGREP"
7413
7414
7415test -z "$GREP" && GREP=grep
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
cristy0c60a692010-11-04 01:09:47 +00007433ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7434ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7435ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7436
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7438$as_echo_n "checking how to print strings... " >&6; }
7439# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007440if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007441 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7442 ECHO='print -r --'
7443elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7444 ECHO='printf %s\n'
7445else
7446 # Use this function as a fallback that always works.
7447 func_fallback_echo ()
7448 {
7449 eval 'cat <<_LTECHO_EOF
7450$1
7451_LTECHO_EOF'
7452 }
7453 ECHO='func_fallback_echo'
7454fi
7455
7456# func_echo_all arg...
7457# Invoke $ECHO with all args, space-separated.
7458func_echo_all ()
7459{
7460 $ECHO ""
7461}
7462
7463case "$ECHO" in
7464 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7465$as_echo "printf" >&6; } ;;
7466 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7467$as_echo "print -r" >&6; } ;;
7468 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7469$as_echo "cat" >&6; } ;;
7470esac
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
cristy73bd4a52010-10-05 11:24:23 +00007485
7486
7487# Check whether --with-gnu-ld was given.
7488if test "${with_gnu_ld+set}" = set; then :
7489 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7490else
7491 with_gnu_ld=no
7492fi
7493
7494ac_prog=ld
7495if test "$GCC" = yes; then
7496 # Check if gcc -print-prog-name=ld gives a path.
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7498$as_echo_n "checking for ld used by $CC... " >&6; }
7499 case $host in
7500 *-*-mingw*)
7501 # gcc leaves a trailing carriage return which upsets mingw
7502 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7503 *)
7504 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7505 esac
7506 case $ac_prog in
7507 # Accept absolute paths.
7508 [\\/]* | ?:[\\/]*)
7509 re_direlt='/[^/][^/]*/\.\./'
7510 # Canonicalize the pathname of ld
7511 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7512 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7513 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7514 done
7515 test -z "$LD" && LD="$ac_prog"
7516 ;;
7517 "")
7518 # If it fails, then pretend we aren't using GCC.
7519 ac_prog=ld
7520 ;;
7521 *)
7522 # If it is relative, then search for the first ld in PATH.
7523 with_gnu_ld=unknown
7524 ;;
7525 esac
7526elif test "$with_gnu_ld" = yes; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7528$as_echo_n "checking for GNU ld... " >&6; }
7529else
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7531$as_echo_n "checking for non-GNU ld... " >&6; }
7532fi
cristyda16f162011-02-19 23:52:17 +00007533if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007534 $as_echo_n "(cached) " >&6
7535else
7536 if test -z "$LD"; then
7537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7538 for ac_dir in $PATH; do
7539 IFS="$lt_save_ifs"
7540 test -z "$ac_dir" && ac_dir=.
7541 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7542 lt_cv_path_LD="$ac_dir/$ac_prog"
7543 # Check to see if the program is GNU ld. I'd rather use --version,
7544 # but apparently some variants of GNU ld only accept -v.
7545 # Break only if it was the GNU/non-GNU ld that we prefer.
7546 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7547 *GNU* | *'with BFD'*)
7548 test "$with_gnu_ld" != no && break
7549 ;;
7550 *)
7551 test "$with_gnu_ld" != yes && break
7552 ;;
7553 esac
7554 fi
7555 done
7556 IFS="$lt_save_ifs"
7557else
7558 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7559fi
7560fi
7561
7562LD="$lt_cv_path_LD"
7563if test -n "$LD"; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7565$as_echo "$LD" >&6; }
7566else
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568$as_echo "no" >&6; }
7569fi
cristy98dddb52010-11-04 00:30:15 +00007570test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7572$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007573if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007574 $as_echo_n "(cached) " >&6
7575else
7576 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7577case `$LD -v 2>&1 </dev/null` in
7578*GNU* | *'with BFD'*)
7579 lt_cv_prog_gnu_ld=yes
7580 ;;
7581*)
7582 lt_cv_prog_gnu_ld=no
7583 ;;
7584esac
7585fi
7586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7587$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7588with_gnu_ld=$lt_cv_prog_gnu_ld
7589
7590
7591
7592
7593
7594
7595
7596
7597
cristy3ed852e2009-09-05 21:47:34 +00007598
cristy837d6dc2010-02-27 01:16:57 +00007599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7600$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007601if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007602 $as_echo_n "(cached) " >&6
7603else
7604 ac_cv_prog_cc_c99=no
7605ac_save_CC=$CC
7606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607/* end confdefs.h. */
7608#include <stdarg.h>
7609#include <stdbool.h>
7610#include <stdlib.h>
7611#include <wchar.h>
7612#include <stdio.h>
7613
7614// Check varargs macros. These examples are taken from C99 6.10.3.5.
7615#define debug(...) fprintf (stderr, __VA_ARGS__)
7616#define showlist(...) puts (#__VA_ARGS__)
7617#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7618static void
7619test_varargs_macros (void)
7620{
7621 int x = 1234;
7622 int y = 5678;
7623 debug ("Flag");
7624 debug ("X = %d\n", x);
7625 showlist (The first, second, and third items.);
7626 report (x>y, "x is %d but y is %d", x, y);
7627}
7628
7629// Check long long types.
7630#define BIG64 18446744073709551615ull
7631#define BIG32 4294967295ul
7632#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7633#if !BIG_OK
7634 your preprocessor is broken;
7635#endif
7636#if BIG_OK
7637#else
7638 your preprocessor is broken;
7639#endif
7640static long long int bignum = -9223372036854775807LL;
7641static unsigned long long int ubignum = BIG64;
7642
7643struct incomplete_array
7644{
7645 int datasize;
7646 double data[];
7647};
7648
7649struct named_init {
7650 int number;
7651 const wchar_t *name;
7652 double average;
7653};
7654
7655typedef const char *ccp;
7656
7657static inline int
7658test_restrict (ccp restrict text)
7659{
7660 // See if C++-style comments work.
7661 // Iterate through items via the restricted pointer.
7662 // Also check for declarations in for loops.
7663 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7664 continue;
7665 return 0;
7666}
7667
7668// Check varargs and va_copy.
7669static void
7670test_varargs (const char *format, ...)
7671{
7672 va_list args;
7673 va_start (args, format);
7674 va_list args_copy;
7675 va_copy (args_copy, args);
7676
7677 const char *str;
7678 int number;
7679 float fnumber;
7680
7681 while (*format)
7682 {
7683 switch (*format++)
7684 {
7685 case 's': // string
7686 str = va_arg (args_copy, const char *);
7687 break;
7688 case 'd': // int
7689 number = va_arg (args_copy, int);
7690 break;
7691 case 'f': // float
7692 fnumber = va_arg (args_copy, double);
7693 break;
7694 default:
7695 break;
7696 }
7697 }
7698 va_end (args_copy);
7699 va_end (args);
7700}
7701
7702int
7703main ()
7704{
7705
7706 // Check bool.
7707 _Bool success = false;
7708
7709 // Check restrict.
7710 if (test_restrict ("String literal") == 0)
7711 success = true;
7712 char *restrict newvar = "Another string";
7713
7714 // Check varargs.
7715 test_varargs ("s, d' f .", "string", 65, 34.234);
7716 test_varargs_macros ();
7717
7718 // Check flexible array members.
7719 struct incomplete_array *ia =
7720 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7721 ia->datasize = 10;
7722 for (int i = 0; i < ia->datasize; ++i)
7723 ia->data[i] = i * 1.234;
7724
7725 // Check named initializers.
7726 struct named_init ni = {
7727 .number = 34,
7728 .name = L"Test wide string",
7729 .average = 543.34343,
7730 };
7731
7732 ni.number = 58;
7733
7734 int dynamic_array[ni.number];
7735 dynamic_array[ni.number - 1] = 543;
7736
7737 // work around unused variable warnings
7738 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7739 || dynamic_array[ni.number - 1] != 543);
7740
7741 ;
7742 return 0;
7743}
7744_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007745for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007746do
7747 CC="$ac_save_CC $ac_arg"
7748 if ac_fn_c_try_compile "$LINENO"; then :
7749 ac_cv_prog_cc_c99=$ac_arg
7750fi
7751rm -f core conftest.err conftest.$ac_objext
7752 test "x$ac_cv_prog_cc_c99" != "xno" && break
7753done
7754rm -f conftest.$ac_ext
7755CC=$ac_save_CC
7756
7757fi
7758# AC_CACHE_VAL
7759case "x$ac_cv_prog_cc_c99" in
7760 x)
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7762$as_echo "none needed" >&6; } ;;
7763 xno)
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7765$as_echo "unsupported" >&6; } ;;
7766 *)
7767 CC="$CC $ac_cv_prog_cc_c99"
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7769$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7770esac
7771if test "x$ac_cv_prog_cc_c99" != xno; then :
7772
7773fi
7774
7775
cristy73bd4a52010-10-05 11:24:23 +00007776if test "x$CC" != xcc; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7778$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7779else
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7781$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7782fi
7783set dummy $CC; ac_cc=`$as_echo "$2" |
7784 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007785if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007786 $as_echo_n "(cached) " >&6
7787else
cristy73bd4a52010-10-05 11:24:23 +00007788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789/* end confdefs.h. */
7790
7791int
7792main ()
7793{
7794
7795 ;
7796 return 0;
7797}
7798_ACEOF
7799# Make sure it works both with $CC and with simple cc.
7800# We do the test twice because some compilers refuse to overwrite an
7801# existing .o file with -o, though they will create one.
7802ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7803rm -f conftest2.*
7804if { { case "(($ac_try" in
7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806 *) ac_try_echo=$ac_try;;
7807esac
7808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7809$as_echo "$ac_try_echo"; } >&5
7810 (eval "$ac_try") 2>&5
7811 ac_status=$?
7812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7813 test $ac_status = 0; } &&
7814 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816 *) ac_try_echo=$ac_try;;
7817esac
7818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7819$as_echo "$ac_try_echo"; } >&5
7820 (eval "$ac_try") 2>&5
7821 ac_status=$?
7822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7823 test $ac_status = 0; };
7824then
7825 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7826 if test "x$CC" != xcc; then
7827 # Test first that cc exists at all.
7828 if { ac_try='cc -c conftest.$ac_ext >&5'
7829 { { case "(($ac_try" in
7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831 *) ac_try_echo=$ac_try;;
7832esac
7833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7834$as_echo "$ac_try_echo"; } >&5
7835 (eval "$ac_try") 2>&5
7836 ac_status=$?
7837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7838 test $ac_status = 0; }; }; then
7839 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7840 rm -f conftest2.*
7841 if { { case "(($ac_try" in
7842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843 *) ac_try_echo=$ac_try;;
7844esac
7845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7846$as_echo "$ac_try_echo"; } >&5
7847 (eval "$ac_try") 2>&5
7848 ac_status=$?
7849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7850 test $ac_status = 0; } &&
7851 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7854esac
7855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7856$as_echo "$ac_try_echo"; } >&5
7857 (eval "$ac_try") 2>&5
7858 ac_status=$?
7859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7860 test $ac_status = 0; };
7861 then
7862 # cc works too.
7863 :
7864 else
7865 # cc exists but doesn't like -o.
7866 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7867 fi
7868 fi
7869 fi
7870else
7871 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7872fi
7873rm -f core conftest*
7874
7875fi
7876if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7878$as_echo "yes" >&6; }
7879else
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881$as_echo "no" >&6; }
7882
7883$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7884
7885fi
7886
7887# FIXME: we rely on the cache variable name because
7888# there is no other way.
7889set dummy $CC
7890am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7891eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7892if test "$am_t" != yes; then
7893 # Losing compiler, so override with the script.
7894 # FIXME: It is wrong to rewrite CC.
7895 # But if we don't then we get into trouble of one sort or another.
7896 # A longer-term fix would be to have automake use am__CC in this case,
7897 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7898 CC="$am_aux_dir/compile $CC"
7899fi
7900
7901
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7903$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007904if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007905 $as_echo_n "(cached) " >&6
7906else
7907 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007908 ac_ext=c
7909ac_cpp='$CPP $CPPFLAGS'
7910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7912ac_compiler_gnu=$ac_cv_c_compiler_gnu
7913
7914 ac_save_CFLAGS="$CFLAGS"
7915for 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" #
7916do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918/* end confdefs.h. */
7919
7920int
7921main ()
7922{
cristy24fc1fe2010-10-23 21:13:01 +00007923
cristy73bd4a52010-10-05 11:24:23 +00007924 ;
7925 return 0;
7926}
7927_ACEOF
7928if ac_fn_c_try_compile "$LINENO"; then :
7929 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7930fi
7931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932done
7933 CFLAGS="$ac_save_CFLAGS"
7934 ac_ext=c
7935ac_cpp='$CPP $CPPFLAGS'
7936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7938ac_compiler_gnu=$ac_cv_c_compiler_gnu
7939
7940
7941fi
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7943$as_echo "$ac_cv_cflags_warn_all" >&6; }
7944case ".$ac_cv_cflags_warn_all" in
7945 .ok|.ok,*) ;;
7946 .|.no|.no,*)
7947 ;;
7948 *)
7949 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7950 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7951 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7952 ac_status=$?
7953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7954 test $ac_status = 0; }
7955 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7956 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7957 ac_status=$?
7958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7959 test $ac_status = 0; }
7960 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7961 fi
7962 ;;
nicolas6237c462010-10-05 06:11:49 +00007963esac
cristy3ed852e2009-09-05 21:47:34 +00007964
cristy568c2d42012-07-27 01:41:20 +00007965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7966$as_echo_n "checking for C compiler vendor... " >&6; }
7967if ${ax_cv_c_compiler_vendor+:} false; then :
7968 $as_echo_n "(cached) " >&6
7969else
7970 # note: don't check for gcc first since some other compilers define __GNUC__
7971 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
7972 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
7973 pathscale: __PATHCC__,__PATHSCALE__
7974 clang: __clang__
7975 gnu: __GNUC__
7976 sun: __SUNPRO_C,__SUNPRO_CC
7977 hp: __HP_cc,__HP_aCC
7978 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
7979 borland: __BORLANDC__,__TURBOC__
7980 comeau: __COMO__
7981 cray: _CRAYC
7982 kai: __KCC
7983 lcc: __LCC__
7984 sgi: __sgi,sgi
7985 microsoft: _MSC_VER
7986 metrowerks: __MWERKS__
7987 watcom: __WATCOMC__
7988 portland: __PGI
7989 unknown: UNKNOWN"
7990 for ventest in $vendors; do
7991 case $ventest in
7992 *:) vendor=$ventest; continue ;;
7993 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
7994 esac
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996/* end confdefs.h. */
7997
7998int
7999main ()
8000{
8001
8002 #if !($vencpp)
8003 thisisanerror;
8004 #endif
8005
8006 ;
8007 return 0;
8008}
8009_ACEOF
8010if ac_fn_c_try_compile "$LINENO"; then :
8011 break
8012fi
8013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 done
8015 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8016
8017fi
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8019$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8020
cristya0b81c32010-01-22 02:54:33 +00008021
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8023$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8024set x ${MAKE-make}
8025ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008026if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008027 $as_echo_n "(cached) " >&6
8028else
8029 cat >conftest.make <<\_ACEOF
8030SHELL = /bin/sh
8031all:
8032 @echo '@@@%%%=$(MAKE)=@@@%%%'
8033_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008034# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008035case `${MAKE-make} -f conftest.make 2>/dev/null` in
8036 *@@@%%%=?*=@@@%%%*)
8037 eval ac_cv_prog_make_${ac_make}_set=yes;;
8038 *)
8039 eval ac_cv_prog_make_${ac_make}_set=no;;
8040esac
8041rm -f conftest.make
8042fi
8043if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8045$as_echo "yes" >&6; }
8046 SET_MAKE=
8047else
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049$as_echo "no" >&6; }
8050 SET_MAKE="MAKE=${MAKE-make}"
8051fi
8052
cristy8b350f62009-11-15 23:12:43 +00008053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008054$as_echo_n "checking whether ln -s works... " >&6; }
8055LN_S=$as_ln_s
8056if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008058$as_echo "yes" >&6; }
8059else
cristy8b350f62009-11-15 23:12:43 +00008060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008061$as_echo "no, using $LN_S" >&6; }
8062fi
8063
cristybc556452012-08-17 19:44:03 +00008064for ac_prog in gawk mawk nawk awk
8065do
8066 # Extract the first word of "$ac_prog", so it can be a program name with args.
8067set dummy $ac_prog; ac_word=$2
8068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069$as_echo_n "checking for $ac_word... " >&6; }
8070if ${ac_cv_prog_AWK+:} false; then :
8071 $as_echo_n "(cached) " >&6
8072else
8073 if test -n "$AWK"; then
8074 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8075else
8076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077for as_dir in $PATH
8078do
8079 IFS=$as_save_IFS
8080 test -z "$as_dir" && as_dir=.
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8083 ac_cv_prog_AWK="$ac_prog"
8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8085 break 2
8086 fi
8087done
8088 done
8089IFS=$as_save_IFS
8090
8091fi
8092fi
8093AWK=$ac_cv_prog_AWK
8094if test -n "$AWK"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8096$as_echo "$AWK" >&6; }
8097else
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099$as_echo "no" >&6; }
8100fi
8101
8102
8103 test -n "$AWK" && break
8104done
8105
cristy73bd4a52010-10-05 11:24:23 +00008106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8107$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8108
8109# Check whether --with-dmalloc was given.
8110if test "${with_dmalloc+set}" = set; then :
8111 withval=$with_dmalloc; if test "$withval" = yes; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8113$as_echo "yes" >&6; }
8114
8115$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8116
8117 LIBS="$LIBS -ldmalloc"
8118 LDFLAGS="$LDFLAGS -g"
8119else
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121$as_echo "no" >&6; }
8122fi
8123else
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125$as_echo "no" >&6; }
8126fi
8127
8128
8129
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8131$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008132if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008133 $as_echo_n "(cached) " >&6
8134else
8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136/* end confdefs.h. */
8137#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008138 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008139 static void
8140 foo(void) {
8141 exit(1);
8142 }
8143
8144int
8145main ()
8146{
8147
8148 ;
8149 return 0;
8150}
8151_ACEOF
8152if ac_fn_c_try_compile "$LINENO"; then :
8153 ax_cv___attribute__=yes
8154else
8155 ax_cv___attribute__=no
8156
8157fi
8158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159
8160fi
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8162$as_echo "$ax_cv___attribute__" >&6; }
8163 if test "$ax_cv___attribute__" = "yes"; then
8164
8165$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8166
8167 fi
8168
8169
8170
cristy37110d62012-03-01 18:38:20 +00008171
8172
8173# Check whether --with-gcc-arch was given.
8174if test "${with_gcc_arch+set}" = set; then :
8175 withval=$with_gcc_arch; ax_gcc_arch=$withval
8176else
cristya32d1812012-03-02 19:24:21 +00008177 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008178fi
8179
8180
8181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8182$as_echo_n "checking for gcc architecture flag... " >&6; }
8183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8184$as_echo "" >&6; }
8185if ${ax_cv_gcc_archflag+:} false; then :
8186 $as_echo_n "(cached) " >&6
8187else
8188
8189ax_cv_gcc_archflag="unknown"
8190
8191if test "$GCC" = yes; then
8192
8193if test "x$ax_gcc_arch" = xyes; then
8194ax_gcc_arch=""
8195if test "$cross_compiling" = no; then
8196case $host_cpu in
8197 i[3456]86*|x86_64*) # use cpuid codes
8198
8199ac_ext=c
8200ac_cpp='$CPP $CPPFLAGS'
8201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8203ac_compiler_gnu=$ac_cv_c_compiler_gnu
8204
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8206$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8207if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8208 $as_echo_n "(cached) " >&6
8209else
8210 if test "$cross_compiling" = yes; then :
8211 ax_cv_gcc_x86_cpuid_0=unknown
8212else
8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214/* end confdefs.h. */
8215#include <stdio.h>
8216int
8217main ()
8218{
8219
8220 int op = 0, eax, ebx, ecx, edx;
8221 FILE *f;
8222 __asm__("cpuid"
8223 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8224 : "a" (op));
8225 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8226 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8227 fclose(f);
8228 return 0;
8229
8230 ;
8231 return 0;
8232}
8233_ACEOF
8234if ac_fn_c_try_run "$LINENO"; then :
8235 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8236else
8237 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8238fi
8239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8240 conftest.$ac_objext conftest.beam conftest.$ac_ext
8241fi
8242
8243fi
8244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8245$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8246ac_ext=c
8247ac_cpp='$CPP $CPPFLAGS'
8248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8250ac_compiler_gnu=$ac_cv_c_compiler_gnu
8251
8252
8253
8254ac_ext=c
8255ac_cpp='$CPP $CPPFLAGS'
8256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8258ac_compiler_gnu=$ac_cv_c_compiler_gnu
8259
8260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8261$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8262if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8263 $as_echo_n "(cached) " >&6
8264else
8265 if test "$cross_compiling" = yes; then :
8266 ax_cv_gcc_x86_cpuid_1=unknown
8267else
8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269/* end confdefs.h. */
8270#include <stdio.h>
8271int
8272main ()
8273{
8274
8275 int op = 1, eax, ebx, ecx, edx;
8276 FILE *f;
8277 __asm__("cpuid"
8278 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8279 : "a" (op));
8280 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8281 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8282 fclose(f);
8283 return 0;
8284
8285 ;
8286 return 0;
8287}
8288_ACEOF
8289if ac_fn_c_try_run "$LINENO"; then :
8290 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8291else
8292 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8293fi
8294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8295 conftest.$ac_objext conftest.beam conftest.$ac_ext
8296fi
8297
8298fi
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8300$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8301ac_ext=c
8302ac_cpp='$CPP $CPPFLAGS'
8303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8305ac_compiler_gnu=$ac_cv_c_compiler_gnu
8306
8307
8308 case $ax_cv_gcc_x86_cpuid_0 in
8309 *:756e6547:*:*) # Intel
8310 case $ax_cv_gcc_x86_cpuid_1 in
8311 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8312 *5??:*:*:*) ax_gcc_arch=pentium ;;
8313 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8314 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8315 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8316 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8317 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8318 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8319 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8320 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8321 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8322 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8323 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8324 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8325 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8326 case $host_cpu in
8327 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8328 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8329 esac ;;
8330 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8331 esac ;;
8332 *:68747541:*:*) # AMD
8333 case $ax_cv_gcc_x86_cpuid_1 in
8334 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8335 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8336 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8337 *60?:*:*:*) ax_gcc_arch=k7 ;;
8338 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8339 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8340 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8341 *6[68a]?:*:*:*)
8342
8343ac_ext=c
8344ac_cpp='$CPP $CPPFLAGS'
8345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8347ac_compiler_gnu=$ac_cv_c_compiler_gnu
8348
8349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8350$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8351if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8352 $as_echo_n "(cached) " >&6
8353else
8354 if test "$cross_compiling" = yes; then :
8355 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8356else
8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358/* end confdefs.h. */
8359#include <stdio.h>
8360int
8361main ()
8362{
8363
8364 int op = 0x80000006, eax, ebx, ecx, edx;
8365 FILE *f;
8366 __asm__("cpuid"
8367 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8368 : "a" (op));
8369 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8370 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8371 fclose(f);
8372 return 0;
8373
8374 ;
8375 return 0;
8376}
8377_ACEOF
8378if ac_fn_c_try_run "$LINENO"; then :
8379 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8380else
8381 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8382fi
8383rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8384 conftest.$ac_objext conftest.beam conftest.$ac_ext
8385fi
8386
8387fi
8388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8389$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8390ac_ext=c
8391ac_cpp='$CPP $CPPFLAGS'
8392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8394ac_compiler_gnu=$ac_cv_c_compiler_gnu
8395
8396 # L2 cache size
8397 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8398 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8399 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8400 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8401 esac ;;
8402 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8403 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8404 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8405 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8406 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8407 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8408 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8409 esac ;;
8410 *:746e6543:*:*) # IDT
8411 case $ax_cv_gcc_x86_cpuid_1 in
8412 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8413 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8414 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8415 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8416 esac ;;
8417 esac
8418 if test x"$ax_gcc_arch" = x; then # fallback
8419 case $host_cpu in
8420 i586*) ax_gcc_arch=pentium ;;
8421 i686*) ax_gcc_arch=pentiumpro ;;
8422 esac
8423 fi
8424 ;;
8425
8426 sparc*)
8427 # Extract the first word of "prtdiag", so it can be a program name with args.
8428set dummy prtdiag; ac_word=$2
8429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430$as_echo_n "checking for $ac_word... " >&6; }
8431if ${ac_cv_path_PRTDIAG+:} false; then :
8432 $as_echo_n "(cached) " >&6
8433else
8434 case $PRTDIAG in
8435 [\\/]* | ?:[\\/]*)
8436 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8437 ;;
8438 *)
8439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8441for as_dir in $as_dummy
8442do
8443 IFS=$as_save_IFS
8444 test -z "$as_dir" && as_dir=.
8445 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008447 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8449 break 2
8450 fi
8451done
8452 done
8453IFS=$as_save_IFS
8454
8455 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8456 ;;
8457esac
8458fi
8459PRTDIAG=$ac_cv_path_PRTDIAG
8460if test -n "$PRTDIAG"; then
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8462$as_echo "$PRTDIAG" >&6; }
8463else
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465$as_echo "no" >&6; }
8466fi
8467
8468
8469 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`
8470 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8471 case $cputype in
8472 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8473 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8474 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8475 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8476 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8477 *cypress*) ax_gcc_arch=cypress ;;
8478 esac ;;
8479
8480 alphaev5) ax_gcc_arch=ev5 ;;
8481 alphaev56) ax_gcc_arch=ev56 ;;
8482 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8483 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8484 alphaev6) ax_gcc_arch=ev6 ;;
8485 alphaev67) ax_gcc_arch=ev67 ;;
8486 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8487 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8488 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8489 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8490
8491 powerpc*)
8492 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`
8493 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8494 case $cputype in
8495 *750*) ax_gcc_arch="750 G3" ;;
8496 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8497 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8498 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8499 *970*) ax_gcc_arch="970 G5 power4";;
8500 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8501 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8502 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8503 *) ax_gcc_arch=$cputype ;;
8504 esac
8505 ax_gcc_arch="$ax_gcc_arch powerpc"
8506 ;;
8507esac
8508fi # not cross-compiling
8509fi # guess arch
8510
8511if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8512for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008513 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008514 flags="-mtune=$arch"
8515 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8516 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8517 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8518 else
8519 flags="-march=$arch -mcpu=$arch -m$arch"
8520 fi
8521 for flag in $flags; do
8522 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8524$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8525if eval \${$as_CACHEVAR+:} false; then :
8526 $as_echo_n "(cached) " >&6
8527else
8528
8529 ax_check_save_flags=$CFLAGS
8530 CFLAGS="$CFLAGS $flag"
8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532/* end confdefs.h. */
8533
8534int
8535main ()
8536{
8537
8538 ;
8539 return 0;
8540}
8541_ACEOF
8542if ac_fn_c_try_compile "$LINENO"; then :
8543 eval "$as_CACHEVAR=yes"
8544else
8545 eval "$as_CACHEVAR=no"
8546fi
8547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548 CFLAGS=$ax_check_save_flags
8549fi
8550eval ac_res=\$$as_CACHEVAR
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8552$as_echo "$ac_res" >&6; }
8553if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8554 ax_cv_gcc_archflag=$flag; break
8555else
8556 :
8557fi
8558
8559 done
8560 test "x$ax_cv_gcc_archflag" = xunknown || break
8561done
8562fi
8563
8564fi # $GCC=yes
8565
8566fi
8567
8568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8569$as_echo_n "checking for gcc architecture flag... " >&6; }
8570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8571$as_echo "$ax_cv_gcc_archflag" >&6; }
8572if test "x$ax_cv_gcc_archflag" = xunknown; then
8573 :
8574else
8575 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8576fi
8577
8578
8579
cristy73bd4a52010-10-05 11:24:23 +00008580if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8581 if test -n "$ac_tool_prefix"; then
8582 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8583set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8585$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008586if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008587 $as_echo_n "(cached) " >&6
8588else
8589 case $PKG_CONFIG in
8590 [\\/]* | ?:[\\/]*)
8591 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8592 ;;
8593 *)
8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595for as_dir in $PATH
8596do
8597 IFS=$as_save_IFS
8598 test -z "$as_dir" && as_dir=.
8599 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008601 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 break 2
8604 fi
8605done
8606 done
8607IFS=$as_save_IFS
8608
8609 ;;
8610esac
8611fi
8612PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8613if test -n "$PKG_CONFIG"; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8615$as_echo "$PKG_CONFIG" >&6; }
8616else
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618$as_echo "no" >&6; }
8619fi
8620
8621
8622fi
8623if test -z "$ac_cv_path_PKG_CONFIG"; then
8624 ac_pt_PKG_CONFIG=$PKG_CONFIG
8625 # Extract the first word of "pkg-config", so it can be a program name with args.
8626set dummy pkg-config; ac_word=$2
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008629if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008630 $as_echo_n "(cached) " >&6
8631else
8632 case $ac_pt_PKG_CONFIG in
8633 [\\/]* | ?:[\\/]*)
8634 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8635 ;;
8636 *)
8637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638for as_dir in $PATH
8639do
8640 IFS=$as_save_IFS
8641 test -z "$as_dir" && as_dir=.
8642 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008644 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8646 break 2
8647 fi
8648done
8649 done
8650IFS=$as_save_IFS
8651
8652 ;;
8653esac
8654fi
8655ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8656if test -n "$ac_pt_PKG_CONFIG"; then
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8658$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8659else
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8661$as_echo "no" >&6; }
8662fi
8663
8664 if test "x$ac_pt_PKG_CONFIG" = x; then
8665 PKG_CONFIG=""
8666 else
8667 case $cross_compiling:$ac_tool_warned in
8668yes:)
8669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8671ac_tool_warned=yes ;;
8672esac
8673 PKG_CONFIG=$ac_pt_PKG_CONFIG
8674 fi
8675else
8676 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8677fi
8678
8679fi
8680if test -n "$PKG_CONFIG"; then
8681 _pkg_min_version=0.9.0
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8683$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8684 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8686$as_echo "yes" >&6; }
8687 else
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8689$as_echo "no" >&6; }
8690 PKG_CONFIG=""
8691 fi
8692
8693fi
cristy3ed852e2009-09-05 21:47:34 +00008694
cristy9b86f202012-11-28 21:55:35 +00008695# Check for linker script support
8696
8697 # Check whether --enable-ld-version-script was given.
8698if test "${enable_ld_version_script+set}" = set; then :
8699 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8700fi
8701
8702 if test -z "$have_ld_version_script"; then
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8704$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8705 save_LDFLAGS="$LDFLAGS"
8706 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8707 cat > conftest.map <<EOF
8708foo
8709EOF
8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711/* end confdefs.h. */
8712
8713int
8714main ()
8715{
8716
8717 ;
8718 return 0;
8719}
8720_ACEOF
8721if ac_fn_c_try_link "$LINENO"; then :
8722 accepts_syntax_errors=yes
8723else
8724 accepts_syntax_errors=no
8725fi
8726rm -f core conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8728 if test "$accepts_syntax_errors" = no; then
8729 cat > conftest.map <<EOF
8730VERS_1 {
8731 global: sym;
8732};
8733
8734VERS_2 {
8735 global: sym;
8736} VERS_1;
8737EOF
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739/* end confdefs.h. */
8740
8741int
8742main ()
8743{
8744
8745 ;
8746 return 0;
8747}
8748_ACEOF
8749if ac_fn_c_try_link "$LINENO"; then :
8750 have_ld_version_script=yes
8751else
8752 have_ld_version_script=no
8753fi
8754rm -f core conftest.err conftest.$ac_objext \
8755 conftest$ac_exeext conftest.$ac_ext
8756 else
8757 have_ld_version_script=no
8758 fi
8759 rm -f conftest.map
8760 LDFLAGS="$save_LDFLAGS"
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8762$as_echo "$have_ld_version_script" >&6; }
8763 fi
8764 if test "$have_ld_version_script" = "yes"; then
8765 HAVE_LD_VERSION_SCRIPT_TRUE=
8766 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8767else
8768 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8769 HAVE_LD_VERSION_SCRIPT_FALSE=
8770fi
8771
8772
8773
cristy3ed852e2009-09-05 21:47:34 +00008774#
cristy3ed852e2009-09-05 21:47:34 +00008775# Enable run-time checking.
8776#
8777# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008778if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008779 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8780else
8781 enable_bounds_checking='no'
8782fi
8783
8784
8785if test "$enable_bounds_checking" = yes; then
8786
cristy8b350f62009-11-15 23:12:43 +00008787$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008788
8789fi
8790
8791#
8792# Tests for Windows
8793#
8794
8795
8796
8797GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008798native_win32_build='no'
8799cygwin_build='no'
8800case "${host_os}" in
8801 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008802 cygwin_build='yes'
8803 GDI32_LIBS='-lgdi32'
8804 ;;
8805 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008806 native_win32_build='yes'
8807 GDI32_LIBS='-lgdi32'
8808 ;;
8809esac
8810if test "${GDI32_LIBS}x" != 'x'; then
8811
cristy8b350f62009-11-15 23:12:43 +00008812$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008813
8814fi
8815
cristy73bd4a52010-10-05 11:24:23 +00008816 if test "${GDI32_LIBS}x" != 'x' ; then
8817 WINGDI32_DELEGATE_TRUE=
8818 WINGDI32_DELEGATE_FALSE='#'
8819else
8820 WINGDI32_DELEGATE_TRUE='#'
8821 WINGDI32_DELEGATE_FALSE=
8822fi
8823
8824 if test "${native_win32_build}" = 'yes' ; then
8825 WIN32_NATIVE_BUILD_TRUE=
8826 WIN32_NATIVE_BUILD_FALSE='#'
8827else
8828 WIN32_NATIVE_BUILD_TRUE='#'
8829 WIN32_NATIVE_BUILD_FALSE=
8830fi
8831
8832 if test "${cygwin_build}" = 'yes' ; then
8833 CYGWIN_BUILD_TRUE=
8834 CYGWIN_BUILD_FALSE='#'
8835else
8836 CYGWIN_BUILD_TRUE='#'
8837 CYGWIN_BUILD_FALSE=
8838fi
8839
8840 if test "x${CC}" = 'xcl.exe' ; then
8841 USING_CL_TRUE=
8842 USING_CL_FALSE='#'
8843else
8844 USING_CL_TRUE='#'
8845 USING_CL_FALSE=
8846fi
8847
cristy3ed852e2009-09-05 21:47:34 +00008848
8849WinPathScript="${srcdirfull}/winpath.sh"
8850
8851
8852#
8853# Compiler flags tweaks
8854#
8855if test "${GCC}" != "yes"; then
8856 case "${host}" in
8857 *-*-hpux* )
8858 # aCC: HP ANSI C++ B3910B A.03.34
8859 CFLAGS="${CFLAGS} -Wp,-H30000"
8860 if test -n "${CXXFLAGS}"; then
8861 CXXFLAGS='-AA'
8862 else
8863 CXXFLAGS="${CXXFLAGS} -AA"
8864 fi
8865 ;;
8866 *-dec-osf5.* )
8867 # Compaq alphaev68-dec-osf5.1 compiler
8868 if test -n "${CXXFLAGS}"; then
8869 CXXFLAGS='-std strict_ansi -noimplicit_include'
8870 else
8871 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8872 fi
8873 esac
8874fi
8875
8876# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008878$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008879if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008880 $as_echo_n "(cached) " >&6
8881else
8882
8883im_cv_ld_lazyload='none'
8884case "${host}" in
8885 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8886 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8887 im_cv_ld_lazyload='-Wl,-zlazyload'
8888 fi
8889 ;;
8890esac
8891
8892fi
cristy8b350f62009-11-15 23:12:43 +00008893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008894$as_echo "$im_cv_ld_lazyload" >&6; }
8895if test "${im_cv_ld_lazyload}" != 'none' ; then
8896 if test -z "${LDFLAGS}" ; then
8897 LDFLAGS="${im_cv_ld_lazyload}"
8898 else
8899 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8900 fi
8901fi
8902
8903case "$host" in
8904*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008905 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008906if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008907 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8908else
8909 build_osxuniversal=no
8910fi
8911
8912
8913 if test "${build_osxuniversal}" != no ; then
8914 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008915 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008916Please re-run configure with these options:
8917 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008918 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008919 fi
8920 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8921 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8922 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8923 fi
8924 ;;
8925esac
8926
cristy0151ae12011-10-28 16:32:29 +00008927#
8928# ARCH specific include directory
8929#
8930
cristy670aa3c2011-11-03 00:54:00 +00008931# Check whether --with-includearch-dir was given.
8932if test "${with_includearch_dir+set}" = set; then :
8933 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008934else
cristy670aa3c2011-11-03 00:54:00 +00008935 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008936fi
8937
8938
cristy670aa3c2011-11-03 00:54:00 +00008939eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008940
cristy0151ae12011-10-28 16:32:29 +00008941
8942#
8943# ARCH specific configuration directory
8944#
8945
cristy670aa3c2011-11-03 00:54:00 +00008946# Check whether --with-sharearch-dir was given.
8947if test "${with_sharearch_dir+set}" = set; then :
8948 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008949else
cristy408ebcd2011-11-14 01:36:57 +00008950 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008951fi
8952
8953
cristy670aa3c2011-11-03 00:54:00 +00008954eval "eval SHAREARCH_DIR=$sharearch_dir"
8955SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008956
cristy0151ae12011-10-28 16:32:29 +00008957
8958#
cristy3ed852e2009-09-05 21:47:34 +00008959# Enable support for threads
8960
8961# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008962if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008963 withval=$with_threads; with_threads=$withval
8964else
8965 with_threads='yes'
8966fi
8967
8968
8969have_threads=no
8970if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008971
8972
cristy73bd4a52010-10-05 11:24:23 +00008973ac_ext=c
8974ac_cpp='$CPP $CPPFLAGS'
8975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8977ac_compiler_gnu=$ac_cv_c_compiler_gnu
8978
8979ax_pthread_ok=no
8980
8981# We used to check for pthread.h first, but this fails if pthread.h
8982# requires special compiler flags (e.g. on True64 or Sequent).
8983# It gets checked for in the link test anyway.
8984
8985# First of all, check if the user has set any of the PTHREAD_LIBS,
8986# etcetera environment variables, and if threads linking works using
8987# them:
8988if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8989 save_CFLAGS="$CFLAGS"
8990 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8991 save_LIBS="$LIBS"
8992 LIBS="$PTHREAD_LIBS $LIBS"
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8994$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996/* end confdefs.h. */
8997
8998/* Override any GCC internal prototype to avoid an error.
8999 Use char because int might match the return type of a GCC
9000 builtin and then its argument prototype would still apply. */
9001#ifdef __cplusplus
9002extern "C"
9003#endif
9004char pthread_join ();
9005int
9006main ()
9007{
9008return pthread_join ();
9009 ;
9010 return 0;
9011}
9012_ACEOF
9013if ac_fn_c_try_link "$LINENO"; then :
9014 ax_pthread_ok=yes
9015fi
9016rm -f core conftest.err conftest.$ac_objext \
9017 conftest$ac_exeext conftest.$ac_ext
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9019$as_echo "$ax_pthread_ok" >&6; }
9020 if test x"$ax_pthread_ok" = xno; then
9021 PTHREAD_LIBS=""
9022 PTHREAD_CFLAGS=""
9023 fi
9024 LIBS="$save_LIBS"
9025 CFLAGS="$save_CFLAGS"
9026fi
9027
9028# We must check for the threads library under a number of different
9029# names; the ordering is very important because some systems
9030# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9031# libraries is broken (non-POSIX).
9032
9033# Create a list of thread flags to try. Items starting with a "-" are
9034# C compiler flags, and other items are library names, except for "none"
9035# which indicates that we try without any flags at all, and "pthread-config"
9036# which is a program returning the flags for the Pth emulation library.
9037
cristy18307f12011-12-30 01:20:16 +00009038ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009039
9040# The ordering *is* (sometimes) important. Some notes on the
9041# individual items follow:
9042
9043# pthreads: AIX (must check this before -lpthread)
9044# none: in case threads are in libc; should be tried before -Kthread and
9045# other compiler flags to prevent continual compiler warnings
9046# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9047# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9048# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9049# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9050# -pthreads: Solaris/gcc
9051# -mthreads: Mingw32/gcc, Lynx/gcc
9052# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9053# doesn't hurt to check since this sometimes defines pthreads too;
9054# also defines -D_REENTRANT)
9055# ... -mt is also the pthreads flag for HP/aCC
9056# pthread: Linux, etcetera
9057# --thread-safe: KAI C++
9058# pthread-config: use pthread-config program (for GNU Pth library)
9059
9060case "${host_cpu}-${host_os}" in
9061 *solaris*)
9062
9063 # On Solaris (at least, for some versions), libc contains stubbed
9064 # (non-functional) versions of the pthreads routines, so link-based
9065 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9066 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9067 # a function called by this macro, so we could check for that, but
9068 # who knows whether they'll stub that too in a future libc.) So,
9069 # we'll just look for -pthreads and -lpthread first:
9070
9071 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9072 ;;
9073
cristya316db12011-10-24 00:49:45 +00009074 *-darwin*)
9075 ax_pthread_flags="-pthread $ax_pthread_flags"
9076 ;;
cristy73bd4a52010-10-05 11:24:23 +00009077esac
9078
9079if test x"$ax_pthread_ok" = xno; then
9080for flag in $ax_pthread_flags; do
9081
9082 case $flag in
9083 none)
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9085$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9086 ;;
9087
9088 -*)
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9090$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9091 PTHREAD_CFLAGS="$flag"
9092 ;;
9093
cristya316db12011-10-24 00:49:45 +00009094 pthread-config)
9095 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009096set dummy pthread-config; ac_word=$2
9097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9098$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009099if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009100 $as_echo_n "(cached) " >&6
9101else
9102 if test -n "$ax_pthread_config"; then
9103 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9104else
9105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9106for as_dir in $PATH
9107do
9108 IFS=$as_save_IFS
9109 test -z "$as_dir" && as_dir=.
9110 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009112 ac_cv_prog_ax_pthread_config="yes"
9113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9114 break 2
9115 fi
9116done
9117 done
9118IFS=$as_save_IFS
9119
9120 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9121fi
9122fi
9123ax_pthread_config=$ac_cv_prog_ax_pthread_config
9124if test -n "$ax_pthread_config"; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9126$as_echo "$ax_pthread_config" >&6; }
9127else
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129$as_echo "no" >&6; }
9130fi
9131
9132
cristya316db12011-10-24 00:49:45 +00009133 if test x"$ax_pthread_config" = xno; then continue; fi
9134 PTHREAD_CFLAGS="`pthread-config --cflags`"
9135 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9136 ;;
cristy73bd4a52010-10-05 11:24:23 +00009137
9138 *)
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9140$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9141 PTHREAD_LIBS="-l$flag"
9142 ;;
9143 esac
9144
9145 save_LIBS="$LIBS"
9146 save_CFLAGS="$CFLAGS"
9147 LIBS="$PTHREAD_LIBS $LIBS"
9148 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9149
9150 # Check for various functions. We must include pthread.h,
9151 # since some functions may be macros. (On the Sequent, we
9152 # need a special flag -Kthread to make this header compile.)
9153 # We check for pthread_join because it is in -lpthread on IRIX
9154 # while pthread_create is in libc. We check for pthread_attr_init
9155 # due to DEC craziness with -lpthreads. We check for
9156 # pthread_cleanup_push because it is one of the few pthread
9157 # functions on Solaris that doesn't have a non-functional libc stub.
9158 # We try pthread_create on general principles.
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160/* end confdefs.h. */
9161#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009162 static void routine(void *a) { a = 0; }
9163 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009164int
9165main ()
9166{
9167pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009168 pthread_create(&th, 0, start_routine, 0);
9169 pthread_join(th, 0);
9170 pthread_attr_init(&attr);
9171 pthread_cleanup_push(routine, 0);
9172 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009173 ;
9174 return 0;
9175}
9176_ACEOF
9177if ac_fn_c_try_link "$LINENO"; then :
9178 ax_pthread_ok=yes
9179fi
9180rm -f core conftest.err conftest.$ac_objext \
9181 conftest$ac_exeext conftest.$ac_ext
9182
9183 LIBS="$save_LIBS"
9184 CFLAGS="$save_CFLAGS"
9185
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9187$as_echo "$ax_pthread_ok" >&6; }
9188 if test "x$ax_pthread_ok" = xyes; then
9189 break;
9190 fi
9191
9192 PTHREAD_LIBS=""
9193 PTHREAD_CFLAGS=""
9194done
9195fi
9196
9197# Various other checks:
9198if test "x$ax_pthread_ok" = xyes; then
9199 save_LIBS="$LIBS"
9200 LIBS="$PTHREAD_LIBS $LIBS"
9201 save_CFLAGS="$CFLAGS"
9202 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9203
9204 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009206$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009207 attr_name=unknown
9208 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009210/* end confdefs.h. */
9211#include <pthread.h>
9212int
9213main ()
9214{
cristya316db12011-10-24 00:49:45 +00009215int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009216 ;
9217 return 0;
9218}
9219_ACEOF
9220if ac_fn_c_try_link "$LINENO"; then :
9221 attr_name=$attr; break
9222fi
9223rm -f core conftest.err conftest.$ac_objext \
9224 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009225 done
cristy73bd4a52010-10-05 11:24:23 +00009226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9227$as_echo "$attr_name" >&6; }
9228 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9229
9230cat >>confdefs.h <<_ACEOF
9231#define PTHREAD_CREATE_JOINABLE $attr_name
9232_ACEOF
9233
9234 fi
9235
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9237$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9238 flag=no
9239 case "${host_cpu}-${host_os}" in
9240 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9241 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9242 esac
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9244$as_echo "${flag}" >&6; }
9245 if test "x$flag" != xno; then
9246 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9247 fi
9248
cristya316db12011-10-24 00:49:45 +00009249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9250$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9251if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9252 $as_echo_n "(cached) " >&6
9253else
9254
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256/* end confdefs.h. */
9257
9258 #include <pthread.h>
9259int
9260main ()
9261{
9262int i = PTHREAD_PRIO_INHERIT;
9263 ;
9264 return 0;
9265}
9266_ACEOF
9267if ac_fn_c_try_link "$LINENO"; then :
9268 ax_cv_PTHREAD_PRIO_INHERIT=yes
9269else
9270 ax_cv_PTHREAD_PRIO_INHERIT=no
9271fi
9272rm -f core conftest.err conftest.$ac_objext \
9273 conftest$ac_exeext conftest.$ac_ext
9274
9275fi
9276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9277$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9278 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9279
9280$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9281
9282fi
9283
cristy73bd4a52010-10-05 11:24:23 +00009284 LIBS="$save_LIBS"
9285 CFLAGS="$save_CFLAGS"
9286
9287 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009288 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009289 for ac_prog in xlc_r cc_r
9290do
9291 # Extract the first word of "$ac_prog", so it can be a program name with args.
9292set dummy $ac_prog; ac_word=$2
9293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9294$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009295if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009296 $as_echo_n "(cached) " >&6
9297else
9298 if test -n "$PTHREAD_CC"; then
9299 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9300else
9301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302for as_dir in $PATH
9303do
9304 IFS=$as_save_IFS
9305 test -z "$as_dir" && as_dir=.
9306 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009308 ac_cv_prog_PTHREAD_CC="$ac_prog"
9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9310 break 2
9311 fi
9312done
9313 done
9314IFS=$as_save_IFS
9315
9316fi
9317fi
9318PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9319if test -n "$PTHREAD_CC"; then
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9321$as_echo "$PTHREAD_CC" >&6; }
9322else
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9324$as_echo "no" >&6; }
9325fi
9326
9327
9328 test -n "$PTHREAD_CC" && break
9329done
9330test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9331
9332 else
9333 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009334 fi
cristy73bd4a52010-10-05 11:24:23 +00009335else
9336 PTHREAD_CC="$CC"
9337fi
9338
9339
9340
9341
9342
9343# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9344if test x"$ax_pthread_ok" = xyes; then
9345
9346$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9347
9348 :
9349else
9350 ax_pthread_ok=no
9351
9352fi
9353ac_ext=c
9354ac_cpp='$CPP $CPPFLAGS'
9355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9357ac_compiler_gnu=$ac_cv_c_compiler_gnu
9358
9359
cristy7acf8fb2010-09-23 19:58:53 +00009360 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009361 have_threads=yes
9362 DEF_THREAD="$PTHREAD_CFLAGS"
9363 CFLAGS="$CFLAGS $DEF_THREAD"
9364 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9365 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009366 { $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 +00009367$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9368 CC="$PTHREAD_CC"
9369 fi
cristy55bf91c2010-09-24 00:29:41 +00009370
9371$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9372
cristy3ed852e2009-09-05 21:47:34 +00009373 fi
9374fi
9375
9376# Enable support for OpenMP
9377if test "$have_threads" != 'yes'; then
9378 ac_cv_prog_c_openmp=unsupported
9379fi
9380
9381 OPENMP_CFLAGS=
9382 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009383if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009384 enableval=$enable_openmp;
9385fi
9386
9387 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009389$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009390if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009391 $as_echo_n "(cached) " >&6
9392else
cristy8b350f62009-11-15 23:12:43 +00009393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009395
9396#ifndef _OPENMP
9397 choke me
9398#endif
9399#include <omp.h>
9400int main () { return omp_get_num_threads (); }
9401
9402_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009403if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009404 ac_cv_prog_c_openmp='none needed'
9405else
cristy8b350f62009-11-15 23:12:43 +00009406 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009407 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9408 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009409 ac_save_CFLAGS=$CFLAGS
9410 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009413
9414#ifndef _OPENMP
9415 choke me
9416#endif
9417#include <omp.h>
9418int main () { return omp_get_num_threads (); }
9419
9420_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009421if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009422 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009423fi
cristy8b350f62009-11-15 23:12:43 +00009424rm -f core conftest.err conftest.$ac_objext \
9425 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009426 CFLAGS=$ac_save_CFLAGS
9427 if test "$ac_cv_prog_c_openmp" != unsupported; then
9428 break
9429 fi
9430 done
9431fi
cristy8b350f62009-11-15 23:12:43 +00009432rm -f core conftest.err conftest.$ac_objext \
9433 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009434fi
cristy8b350f62009-11-15 23:12:43 +00009435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009436$as_echo "$ac_cv_prog_c_openmp" >&6; }
9437 case $ac_cv_prog_c_openmp in #(
9438 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009439 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009440 *)
cristy8b350f62009-11-15 23:12:43 +00009441 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009442 esac
9443 fi
9444
9445
9446CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9447MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9448
cristy391f1ce2010-09-09 17:23:28 +00009449if test "$enable_openmp" != no; then
9450 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9451 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9452 fi
9453fi
cristy3ed852e2009-09-05 21:47:34 +00009454
cristy736173a2009-09-20 21:18:22 +00009455# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009456
9457
cristy73bd4a52010-10-05 11:24:23 +00009458ac_ext=c
9459ac_cpp='$CPP $CPPFLAGS'
9460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9462ac_compiler_gnu=$ac_cv_c_compiler_gnu
9463
9464ax_pthread_ok=no
9465
9466# We used to check for pthread.h first, but this fails if pthread.h
9467# requires special compiler flags (e.g. on True64 or Sequent).
9468# It gets checked for in the link test anyway.
9469
9470# First of all, check if the user has set any of the PTHREAD_LIBS,
9471# etcetera environment variables, and if threads linking works using
9472# them:
9473if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9474 save_CFLAGS="$CFLAGS"
9475 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9476 save_LIBS="$LIBS"
9477 LIBS="$PTHREAD_LIBS $LIBS"
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9479$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481/* end confdefs.h. */
9482
9483/* Override any GCC internal prototype to avoid an error.
9484 Use char because int might match the return type of a GCC
9485 builtin and then its argument prototype would still apply. */
9486#ifdef __cplusplus
9487extern "C"
9488#endif
9489char pthread_join ();
9490int
9491main ()
9492{
9493return pthread_join ();
9494 ;
9495 return 0;
9496}
9497_ACEOF
9498if ac_fn_c_try_link "$LINENO"; then :
9499 ax_pthread_ok=yes
9500fi
9501rm -f core conftest.err conftest.$ac_objext \
9502 conftest$ac_exeext conftest.$ac_ext
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9504$as_echo "$ax_pthread_ok" >&6; }
9505 if test x"$ax_pthread_ok" = xno; then
9506 PTHREAD_LIBS=""
9507 PTHREAD_CFLAGS=""
9508 fi
9509 LIBS="$save_LIBS"
9510 CFLAGS="$save_CFLAGS"
9511fi
9512
9513# We must check for the threads library under a number of different
9514# names; the ordering is very important because some systems
9515# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9516# libraries is broken (non-POSIX).
9517
9518# Create a list of thread flags to try. Items starting with a "-" are
9519# C compiler flags, and other items are library names, except for "none"
9520# which indicates that we try without any flags at all, and "pthread-config"
9521# which is a program returning the flags for the Pth emulation library.
9522
cristy18307f12011-12-30 01:20:16 +00009523ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009524
9525# The ordering *is* (sometimes) important. Some notes on the
9526# individual items follow:
9527
9528# pthreads: AIX (must check this before -lpthread)
9529# none: in case threads are in libc; should be tried before -Kthread and
9530# other compiler flags to prevent continual compiler warnings
9531# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9532# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9533# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9534# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9535# -pthreads: Solaris/gcc
9536# -mthreads: Mingw32/gcc, Lynx/gcc
9537# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9538# doesn't hurt to check since this sometimes defines pthreads too;
9539# also defines -D_REENTRANT)
9540# ... -mt is also the pthreads flag for HP/aCC
9541# pthread: Linux, etcetera
9542# --thread-safe: KAI C++
9543# pthread-config: use pthread-config program (for GNU Pth library)
9544
9545case "${host_cpu}-${host_os}" in
9546 *solaris*)
9547
9548 # On Solaris (at least, for some versions), libc contains stubbed
9549 # (non-functional) versions of the pthreads routines, so link-based
9550 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9551 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9552 # a function called by this macro, so we could check for that, but
9553 # who knows whether they'll stub that too in a future libc.) So,
9554 # we'll just look for -pthreads and -lpthread first:
9555
9556 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9557 ;;
9558
cristya316db12011-10-24 00:49:45 +00009559 *-darwin*)
9560 ax_pthread_flags="-pthread $ax_pthread_flags"
9561 ;;
cristy73bd4a52010-10-05 11:24:23 +00009562esac
9563
9564if test x"$ax_pthread_ok" = xno; then
9565for flag in $ax_pthread_flags; do
9566
9567 case $flag in
9568 none)
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9570$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9571 ;;
9572
9573 -*)
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9575$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9576 PTHREAD_CFLAGS="$flag"
9577 ;;
9578
cristya316db12011-10-24 00:49:45 +00009579 pthread-config)
9580 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009581set dummy pthread-config; ac_word=$2
9582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9583$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009584if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009585 $as_echo_n "(cached) " >&6
9586else
9587 if test -n "$ax_pthread_config"; then
9588 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9589else
9590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9591for as_dir in $PATH
9592do
9593 IFS=$as_save_IFS
9594 test -z "$as_dir" && as_dir=.
9595 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009597 ac_cv_prog_ax_pthread_config="yes"
9598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9599 break 2
9600 fi
9601done
9602 done
9603IFS=$as_save_IFS
9604
9605 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9606fi
9607fi
9608ax_pthread_config=$ac_cv_prog_ax_pthread_config
9609if test -n "$ax_pthread_config"; then
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9611$as_echo "$ax_pthread_config" >&6; }
9612else
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9614$as_echo "no" >&6; }
9615fi
9616
9617
cristya316db12011-10-24 00:49:45 +00009618 if test x"$ax_pthread_config" = xno; then continue; fi
9619 PTHREAD_CFLAGS="`pthread-config --cflags`"
9620 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9621 ;;
cristy73bd4a52010-10-05 11:24:23 +00009622
9623 *)
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9625$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9626 PTHREAD_LIBS="-l$flag"
9627 ;;
9628 esac
9629
9630 save_LIBS="$LIBS"
9631 save_CFLAGS="$CFLAGS"
9632 LIBS="$PTHREAD_LIBS $LIBS"
9633 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9634
9635 # Check for various functions. We must include pthread.h,
9636 # since some functions may be macros. (On the Sequent, we
9637 # need a special flag -Kthread to make this header compile.)
9638 # We check for pthread_join because it is in -lpthread on IRIX
9639 # while pthread_create is in libc. We check for pthread_attr_init
9640 # due to DEC craziness with -lpthreads. We check for
9641 # pthread_cleanup_push because it is one of the few pthread
9642 # functions on Solaris that doesn't have a non-functional libc stub.
9643 # We try pthread_create on general principles.
9644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645/* end confdefs.h. */
9646#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009647 static void routine(void *a) { a = 0; }
9648 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009649int
9650main ()
9651{
9652pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009653 pthread_create(&th, 0, start_routine, 0);
9654 pthread_join(th, 0);
9655 pthread_attr_init(&attr);
9656 pthread_cleanup_push(routine, 0);
9657 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009658 ;
9659 return 0;
9660}
9661_ACEOF
9662if ac_fn_c_try_link "$LINENO"; then :
9663 ax_pthread_ok=yes
9664fi
9665rm -f core conftest.err conftest.$ac_objext \
9666 conftest$ac_exeext conftest.$ac_ext
9667
9668 LIBS="$save_LIBS"
9669 CFLAGS="$save_CFLAGS"
9670
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9672$as_echo "$ax_pthread_ok" >&6; }
9673 if test "x$ax_pthread_ok" = xyes; then
9674 break;
9675 fi
9676
9677 PTHREAD_LIBS=""
9678 PTHREAD_CFLAGS=""
9679done
9680fi
9681
9682# Various other checks:
9683if test "x$ax_pthread_ok" = xyes; then
9684 save_LIBS="$LIBS"
9685 LIBS="$PTHREAD_LIBS $LIBS"
9686 save_CFLAGS="$CFLAGS"
9687 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9688
9689 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009691$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009692 attr_name=unknown
9693 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009695/* end confdefs.h. */
9696#include <pthread.h>
9697int
9698main ()
9699{
cristya316db12011-10-24 00:49:45 +00009700int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009701 ;
9702 return 0;
9703}
9704_ACEOF
9705if ac_fn_c_try_link "$LINENO"; then :
9706 attr_name=$attr; break
9707fi
9708rm -f core conftest.err conftest.$ac_objext \
9709 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009710 done
cristy73bd4a52010-10-05 11:24:23 +00009711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9712$as_echo "$attr_name" >&6; }
9713 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9714
9715cat >>confdefs.h <<_ACEOF
9716#define PTHREAD_CREATE_JOINABLE $attr_name
9717_ACEOF
9718
9719 fi
9720
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9722$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9723 flag=no
9724 case "${host_cpu}-${host_os}" in
9725 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9726 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9727 esac
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9729$as_echo "${flag}" >&6; }
9730 if test "x$flag" != xno; then
9731 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9732 fi
9733
cristya316db12011-10-24 00:49:45 +00009734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9735$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9736if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9737 $as_echo_n "(cached) " >&6
9738else
9739
9740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741/* end confdefs.h. */
9742
9743 #include <pthread.h>
9744int
9745main ()
9746{
9747int i = PTHREAD_PRIO_INHERIT;
9748 ;
9749 return 0;
9750}
9751_ACEOF
9752if ac_fn_c_try_link "$LINENO"; then :
9753 ax_cv_PTHREAD_PRIO_INHERIT=yes
9754else
9755 ax_cv_PTHREAD_PRIO_INHERIT=no
9756fi
9757rm -f core conftest.err conftest.$ac_objext \
9758 conftest$ac_exeext conftest.$ac_ext
9759
9760fi
9761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9762$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9763 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9764
9765$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9766
9767fi
9768
cristy73bd4a52010-10-05 11:24:23 +00009769 LIBS="$save_LIBS"
9770 CFLAGS="$save_CFLAGS"
9771
9772 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009773 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009774 for ac_prog in xlc_r cc_r
9775do
9776 # Extract the first word of "$ac_prog", so it can be a program name with args.
9777set dummy $ac_prog; ac_word=$2
9778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9779$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009780if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009781 $as_echo_n "(cached) " >&6
9782else
9783 if test -n "$PTHREAD_CC"; then
9784 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9785else
9786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9787for as_dir in $PATH
9788do
9789 IFS=$as_save_IFS
9790 test -z "$as_dir" && as_dir=.
9791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009793 ac_cv_prog_PTHREAD_CC="$ac_prog"
9794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9795 break 2
9796 fi
9797done
9798 done
9799IFS=$as_save_IFS
9800
9801fi
9802fi
9803PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9804if test -n "$PTHREAD_CC"; then
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9806$as_echo "$PTHREAD_CC" >&6; }
9807else
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9809$as_echo "no" >&6; }
9810fi
9811
9812
9813 test -n "$PTHREAD_CC" && break
9814done
9815test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9816
9817 else
9818 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009819 fi
cristy73bd4a52010-10-05 11:24:23 +00009820else
9821 PTHREAD_CC="$CC"
9822fi
9823
9824
9825
9826
9827
9828# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9829if test x"$ax_pthread_ok" = xyes; then
9830
9831$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9832
9833 :
9834else
9835 ax_pthread_ok=no
9836
9837fi
9838ac_ext=c
9839ac_cpp='$CPP $CPPFLAGS'
9840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9842ac_compiler_gnu=$ac_cv_c_compiler_gnu
9843
9844
9845
9846# Check whether --enable-opencl was given.
9847if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +00009848 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +00009849else
cristy48794642012-09-02 15:19:08 +00009850 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +00009851fi
9852
9853
cristy48794642012-09-02 15:19:08 +00009854if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +00009855 ac_ext=c
9856ac_cpp='$CPP $CPPFLAGS'
9857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9859ac_compiler_gnu=$ac_cv_c_compiler_gnu
9860
cristy75314cc2012-09-15 23:08:29 +00009861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9862$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9863if ${ax_cv_c_compiler_ms+:} false; then :
9864 $as_echo_n "(cached) " >&6
9865else
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867/* end confdefs.h. */
9868
9869int
9870main ()
9871{
9872#ifndef _MSC_VER
9873 choke me
9874#endif
9875
9876 ;
9877 return 0;
9878}
9879_ACEOF
9880if ac_fn_c_try_compile "$LINENO"; then :
9881 ax_compiler_ms=yes
9882else
9883 ax_compiler_ms=no
9884fi
9885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9886ax_cv_c_compiler_ms=$ax_compiler_ms
9887
9888fi
9889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9890$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009891 if test X$ax_compiler_ms = Xno; then :
9892 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9893fi
9894
9895 ax_save_CPPFLAGS=$CPPFLAGS
9896 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9897 for ac_header in CL/cl.h OpenCL/cl.h
9898do :
9899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9900ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009901if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009902 cat >>confdefs.h <<_ACEOF
9903#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9904_ACEOF
9905
9906fi
9907
9908done
9909
9910 CPPFLAGS=$ax_save_CPPFLAGS
9911
9912 for ac_header in windows.h
9913do :
9914 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009915if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009916 cat >>confdefs.h <<_ACEOF
9917#define HAVE_WINDOWS_H 1
9918_ACEOF
9919
9920fi
9921
9922done
9923
9924
9925
9926
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9928$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009929if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009930 $as_echo_n "(cached) " >&6
9931else
9932 ax_cv_check_cl_libcl=no
9933 case $host_cpu in
9934 x86_64) ax_check_cl_libdir=lib64 ;;
9935 *) ax_check_cl_libdir=lib ;;
9936 esac
9937 ax_save_CPPFLAGS=$CPPFLAGS
9938 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9939 ax_save_LIBS=$LIBS
9940 LIBS=""
9941 ax_check_libs="-lOpenCL -lCL -lclparser"
9942 for ax_lib in $ax_check_libs; do
9943 if test X$ax_compiler_ms = Xyes; then :
9944 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9945else
9946 ax_try_lib=$ax_lib
9947fi
9948 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950/* end confdefs.h. */
9951
9952 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9953 # include <windows.h>
9954 # endif
9955 # ifdef HAVE_CL_CL_H
9956 # include <CL/cl.h>
9957 # elif defined(HAVE_OPENCL_CL_H)
9958 # include <OpenCL/cl.h>
9959 # else
9960 # error no CL.h
9961 # endif
9962int
9963main ()
9964{
9965clCreateContextFromType(0,0,0,0,0)
9966 ;
9967 return 0;
9968}
9969_ACEOF
9970if ac_fn_c_try_link "$LINENO"; then :
9971 ax_cv_check_cl_libcl=$ax_try_lib; break
9972else
9973 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"
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975/* end confdefs.h. */
9976
9977 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9978 # include <windows.h>
9979 # endif
9980 # ifdef HAVE_CL_CL_H
9981 # include <CL/cl.h>
9982 # elif defined(HAVE_OPENCL_CL_H)
9983 # include <OpenCL/cl.h>
9984 # else
9985 # error no CL.h
9986 # endif
9987int
9988main ()
9989{
9990clCreateContextFromType(0,0,0,0,0)
9991 ;
9992 return 0;
9993}
9994_ACEOF
9995if ac_fn_c_try_link "$LINENO"; then :
9996 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9997else
cristy78c5a0c2010-12-04 20:00:59 +00009998 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 +00009999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000/* end confdefs.h. */
10001
10002 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10003 # include <windows.h>
10004 # endif
10005 # ifdef HAVE_CL_CL_H
10006 # include <CL/cl.h>
10007 # elif defined(HAVE_OPENCL_CL_H)
10008 # include <OpenCL/cl.h>
10009 # else
10010 # error no CL.h
10011 # endif
10012int
10013main ()
10014{
10015clCreateContextFromType(0,0,0,0,0)
10016 ;
10017 return 0;
10018}
10019_ACEOF
10020if ac_fn_c_try_link "$LINENO"; then :
10021 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10022fi
10023rm -f core conftest.err conftest.$ac_objext \
10024 conftest$ac_exeext conftest.$ac_ext
10025fi
10026rm -f core conftest.err conftest.$ac_objext \
10027 conftest$ac_exeext conftest.$ac_ext
10028fi
10029rm -f core conftest.err conftest.$ac_objext \
10030 conftest$ac_exeext conftest.$ac_ext
10031 done
10032
cristyc3f8b8e2011-12-22 14:55:16 +000010033 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010034 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036/* end confdefs.h. */
10037
10038 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10039 # include <windows.h>
10040 # endif
10041 # ifdef HAVE_CL_CL_H
10042 # include <CL/cl.h>
10043 # elif defined(HAVE_OPENCL_CL_H)
10044 # include <OpenCL/cl.h>
10045 # else
10046 # error no CL.h
10047 # endif
10048int
10049main ()
10050{
10051clCreateContextFromType(0,0,0,0,0)
10052 ;
10053 return 0;
10054}
10055_ACEOF
10056if ac_fn_c_try_link "$LINENO"; then :
10057 ax_cv_check_cl_libcl=$LIBS
10058fi
10059rm -f core conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10061fi
10062
10063 LIBS=$ax_save_LIBS
10064 CPPFLAGS=$ax_save_CPPFLAGS
10065fi
10066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10067$as_echo "$ax_cv_check_cl_libcl" >&6; }
10068
10069 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10070 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10071else
10072 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10073$as_echo "#define _OPENCL 1" >>confdefs.h
10074
10075fi
10076 ac_ext=c
10077ac_cpp='$CPP $CPPFLAGS'
10078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10080ac_compiler_gnu=$ac_cv_c_compiler_gnu
10081
10082fi
10083
10084
10085
10086
cristyc7083c12009-10-14 03:16:55 +000010087CFLAGS="$CL_CFLAGS $CFLAGS"
10088LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010089
cristy391f1ce2010-09-09 17:23:28 +000010090if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010091 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010092 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10093 fi
cristyfd9dcd42010-08-08 18:07:02 +000010094fi
cristy2e8b51d2009-10-17 18:26:15 +000010095
cristy3ed852e2009-09-05 21:47:34 +000010096########
10097#
10098# Check for large file support
10099#
10100########
10101# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010102if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010103 enableval=$enable_largefile;
10104fi
10105
10106if test "$enable_largefile" != no; then
10107
cristy8b350f62009-11-15 23:12:43 +000010108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010109$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010110if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010111 $as_echo_n "(cached) " >&6
10112else
10113 ac_cv_sys_largefile_CC=no
10114 if test "$GCC" != yes; then
10115 ac_save_CC=$CC
10116 while :; do
10117 # IRIX 6.2 and later do not support large files by default,
10118 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010120/* end confdefs.h. */
10121#include <sys/types.h>
10122 /* Check that off_t can represent 2**63 - 1 correctly.
10123 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10124 since some C++ compilers masquerading as C compilers
10125 incorrectly reject 9223372036854775807. */
10126#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10127 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10128 && LARGE_OFF_T % 2147483647 == 1)
10129 ? 1 : -1];
10130int
10131main ()
10132{
10133
10134 ;
10135 return 0;
10136}
10137_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010138 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010139 break
cristy3ed852e2009-09-05 21:47:34 +000010140fi
cristy3ed852e2009-09-05 21:47:34 +000010141rm -f core conftest.err conftest.$ac_objext
10142 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010143 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010144 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010145fi
cristy3ed852e2009-09-05 21:47:34 +000010146rm -f core conftest.err conftest.$ac_objext
10147 break
10148 done
10149 CC=$ac_save_CC
10150 rm -f conftest.$ac_ext
10151 fi
10152fi
cristy8b350f62009-11-15 23:12:43 +000010153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010154$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10155 if test "$ac_cv_sys_largefile_CC" != no; then
10156 CC=$CC$ac_cv_sys_largefile_CC
10157 fi
10158
cristy8b350f62009-11-15 23:12:43 +000010159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010160$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010161if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010162 $as_echo_n "(cached) " >&6
10163else
10164 while :; do
cristy8b350f62009-11-15 23:12:43 +000010165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010166/* end confdefs.h. */
10167#include <sys/types.h>
10168 /* Check that off_t can represent 2**63 - 1 correctly.
10169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10170 since some C++ compilers masquerading as C compilers
10171 incorrectly reject 9223372036854775807. */
10172#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10174 && LARGE_OFF_T % 2147483647 == 1)
10175 ? 1 : -1];
10176int
10177main ()
10178{
10179
10180 ;
10181 return 0;
10182}
10183_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010184if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010185 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010186fi
cristy3ed852e2009-09-05 21:47:34 +000010187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010189/* end confdefs.h. */
10190#define _FILE_OFFSET_BITS 64
10191#include <sys/types.h>
10192 /* Check that off_t can represent 2**63 - 1 correctly.
10193 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10194 since some C++ compilers masquerading as C compilers
10195 incorrectly reject 9223372036854775807. */
10196#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10197 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10198 && LARGE_OFF_T % 2147483647 == 1)
10199 ? 1 : -1];
10200int
10201main ()
10202{
10203
10204 ;
10205 return 0;
10206}
10207_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010208if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010209 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010210fi
cristy3ed852e2009-09-05 21:47:34 +000010211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10212 ac_cv_sys_file_offset_bits=unknown
10213 break
10214done
10215fi
cristy8b350f62009-11-15 23:12:43 +000010216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010217$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10218case $ac_cv_sys_file_offset_bits in #(
10219 no | unknown) ;;
10220 *)
10221cat >>confdefs.h <<_ACEOF
10222#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10223_ACEOF
10224;;
10225esac
10226rm -rf conftest*
10227 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010229$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010230if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010231 $as_echo_n "(cached) " >&6
10232else
10233 while :; do
cristy8b350f62009-11-15 23:12:43 +000010234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010235/* end confdefs.h. */
10236#include <sys/types.h>
10237 /* Check that off_t can represent 2**63 - 1 correctly.
10238 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10239 since some C++ compilers masquerading as C compilers
10240 incorrectly reject 9223372036854775807. */
10241#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10242 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10243 && LARGE_OFF_T % 2147483647 == 1)
10244 ? 1 : -1];
10245int
10246main ()
10247{
10248
10249 ;
10250 return 0;
10251}
10252_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010253if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010254 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010255fi
cristy3ed852e2009-09-05 21:47:34 +000010256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010258/* end confdefs.h. */
10259#define _LARGE_FILES 1
10260#include <sys/types.h>
10261 /* Check that off_t can represent 2**63 - 1 correctly.
10262 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10263 since some C++ compilers masquerading as C compilers
10264 incorrectly reject 9223372036854775807. */
10265#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10266 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10267 && LARGE_OFF_T % 2147483647 == 1)
10268 ? 1 : -1];
10269int
10270main ()
10271{
10272
10273 ;
10274 return 0;
10275}
10276_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010277if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010278 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010279fi
cristy3ed852e2009-09-05 21:47:34 +000010280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10281 ac_cv_sys_large_files=unknown
10282 break
10283done
10284fi
cristy8b350f62009-11-15 23:12:43 +000010285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010286$as_echo "$ac_cv_sys_large_files" >&6; }
10287case $ac_cv_sys_large_files in #(
10288 no | unknown) ;;
10289 *)
10290cat >>confdefs.h <<_ACEOF
10291#define _LARGE_FILES $ac_cv_sys_large_files
10292_ACEOF
10293;;
10294esac
10295rm -rf conftest*
10296 fi
cristy14fefe52012-05-21 00:59:18 +000010297
10298
cristy3ed852e2009-09-05 21:47:34 +000010299fi
10300
cristy8b350f62009-11-15 23:12:43 +000010301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010302$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010303if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010304 $as_echo_n "(cached) " >&6
10305else
10306 while :; do
cristy8b350f62009-11-15 23:12:43 +000010307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010308/* end confdefs.h. */
10309#include <sys/types.h> /* for off_t */
10310 #include <stdio.h>
10311int
10312main ()
10313{
10314int (*fp) (FILE *, off_t, int) = fseeko;
10315 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10316 ;
10317 return 0;
10318}
10319_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010320if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010321 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010322fi
cristy8b350f62009-11-15 23:12:43 +000010323rm -f core conftest.err conftest.$ac_objext \
10324 conftest$ac_exeext conftest.$ac_ext
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010326/* end confdefs.h. */
10327#define _LARGEFILE_SOURCE 1
10328#include <sys/types.h> /* for off_t */
10329 #include <stdio.h>
10330int
10331main ()
10332{
10333int (*fp) (FILE *, off_t, int) = fseeko;
10334 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10335 ;
10336 return 0;
10337}
10338_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010339if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010340 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010341fi
cristy8b350f62009-11-15 23:12:43 +000010342rm -f core conftest.err conftest.$ac_objext \
10343 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010344 ac_cv_sys_largefile_source=unknown
10345 break
10346done
10347fi
cristy8b350f62009-11-15 23:12:43 +000010348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010349$as_echo "$ac_cv_sys_largefile_source" >&6; }
10350case $ac_cv_sys_largefile_source in #(
10351 no | unknown) ;;
10352 *)
10353cat >>confdefs.h <<_ACEOF
10354#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10355_ACEOF
10356;;
10357esac
10358rm -rf conftest*
10359
10360# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10361# in glibc 2.1.3, but that breaks too many other things.
10362# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10363if test $ac_cv_sys_largefile_source != unknown; then
10364
cristy8b350f62009-11-15 23:12:43 +000010365$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010366
10367fi
10368
10369LFS_CPPFLAGS=''
10370if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010371 case $ac_cv_sys_file_offset_bits in
10372 no)
10373 # nothing to do here as the host supports LFS fine
10374 ;;
10375 unknown)
cristy8b350f62009-11-15 23:12:43 +000010376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010377$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010378 if test "$cross_compiling" = yes; then :
10379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010381as_fn_error $? "cannot run test program while cross compiling
10382See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010383else
cristy8b350f62009-11-15 23:12:43 +000010384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010386#include <unistd.h>
10387 main () {
10388 exit(!(sizeof(off_t) == 8));
10389 }
cristyda16f162011-02-19 23:52:17 +000010390int
10391main ()
10392{
10393
10394 ;
10395 return 0;
10396}
cristy3ed852e2009-09-05 21:47:34 +000010397_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010398if ac_fn_c_try_run "$LINENO"; then :
10399 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010400
cristy09b53e12011-10-14 12:47:22 +000010401 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10402$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010403else
cristy09b53e12011-10-14 12:47:22 +000010404 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10405$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010406fi
cristy8b350f62009-11-15 23:12:43 +000010407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10408 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010409fi
10410
cristyc1e0cc12011-09-21 16:41:16 +000010411 ;;
10412 *)
10413 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10414 ;;
10415 esac
cristy3ed852e2009-09-05 21:47:34 +000010416 if test "$ac_cv_sys_large_files" != 'no'; then
10417 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10418 fi
10419 if test "$ac_cv_sys_largefile_source" != 'no'; then
10420 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10421 fi
10422fi
10423
10424
cristy3ed852e2009-09-05 21:47:34 +000010425# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010426enable_dlopen=yes
10427
10428
10429
10430case `pwd` in
10431 *\ * | *\ *)
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10433$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10434esac
10435
10436
10437
cristy99bd5232011-12-07 14:38:20 +000010438macro_version='2.4.2'
10439macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453ltmain="$ac_aux_dir/ltmain.sh"
10454
cristy0c60a692010-11-04 01:09:47 +000010455# Backslashify metacharacters that are still active within
10456# double-quoted strings.
10457sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10458
10459# Same as above, but do not quote variable references.
10460double_quote_subst='s/\(["`\\]\)/\\\1/g'
10461
10462# Sed substitution to delay expansion of an escaped shell variable in a
10463# double_quote_subst'ed string.
10464delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10465
10466# Sed substitution to delay expansion of an escaped single quote.
10467delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10468
10469# Sed substitution to avoid accidental globbing in evaled expressions
10470no_glob_subst='s/\*/\\\*/g'
10471
cristy73bd4a52010-10-05 11:24:23 +000010472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10473$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010474if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010475 $as_echo_n "(cached) " >&6
10476else
10477 if test -n "$NM"; then
10478 # Let the user override the test.
10479 lt_cv_path_NM="$NM"
10480else
10481 lt_nm_to_check="${ac_tool_prefix}nm"
10482 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10483 lt_nm_to_check="$lt_nm_to_check nm"
10484 fi
10485 for lt_tmp_nm in $lt_nm_to_check; do
10486 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10487 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10488 IFS="$lt_save_ifs"
10489 test -z "$ac_dir" && ac_dir=.
10490 tmp_nm="$ac_dir/$lt_tmp_nm"
10491 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10492 # Check to see if the nm accepts a BSD-compat flag.
10493 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10494 # nm: unknown option "B" ignored
10495 # Tru64's nm complains that /dev/null is an invalid object file
10496 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10497 */dev/null* | *'Invalid file or object type'*)
10498 lt_cv_path_NM="$tmp_nm -B"
10499 break
10500 ;;
10501 *)
10502 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10503 */dev/null*)
10504 lt_cv_path_NM="$tmp_nm -p"
10505 break
10506 ;;
10507 *)
10508 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10509 continue # so that we can try to find one that supports BSD flags
10510 ;;
10511 esac
10512 ;;
10513 esac
10514 fi
10515 done
10516 IFS="$lt_save_ifs"
10517 done
10518 : ${lt_cv_path_NM=no}
10519fi
10520fi
10521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10522$as_echo "$lt_cv_path_NM" >&6; }
10523if test "$lt_cv_path_NM" != "no"; then
10524 NM="$lt_cv_path_NM"
10525else
10526 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010527 if test -n "$DUMPBIN"; then :
10528 # Let the user override the test.
10529 else
10530 if test -n "$ac_tool_prefix"; then
10531 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010532 do
10533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10534set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010537if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010538 $as_echo_n "(cached) " >&6
10539else
10540 if test -n "$DUMPBIN"; then
10541 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10542else
10543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544for as_dir in $PATH
10545do
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010550 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 break 2
10553 fi
10554done
10555 done
10556IFS=$as_save_IFS
10557
10558fi
10559fi
10560DUMPBIN=$ac_cv_prog_DUMPBIN
10561if test -n "$DUMPBIN"; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10563$as_echo "$DUMPBIN" >&6; }
10564else
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566$as_echo "no" >&6; }
10567fi
10568
10569
10570 test -n "$DUMPBIN" && break
10571 done
10572fi
10573if test -z "$DUMPBIN"; then
10574 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010575 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010576do
10577 # Extract the first word of "$ac_prog", so it can be a program name with args.
10578set dummy $ac_prog; ac_word=$2
10579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10580$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010581if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010582 $as_echo_n "(cached) " >&6
10583else
10584 if test -n "$ac_ct_DUMPBIN"; then
10585 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10586else
10587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10588for as_dir in $PATH
10589do
10590 IFS=$as_save_IFS
10591 test -z "$as_dir" && as_dir=.
10592 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010594 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10596 break 2
10597 fi
10598done
10599 done
10600IFS=$as_save_IFS
10601
10602fi
10603fi
10604ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10605if test -n "$ac_ct_DUMPBIN"; then
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10607$as_echo "$ac_ct_DUMPBIN" >&6; }
10608else
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10610$as_echo "no" >&6; }
10611fi
10612
10613
10614 test -n "$ac_ct_DUMPBIN" && break
10615done
10616
10617 if test "x$ac_ct_DUMPBIN" = x; then
10618 DUMPBIN=":"
10619 else
10620 case $cross_compiling:$ac_tool_warned in
10621yes:)
10622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10624ac_tool_warned=yes ;;
10625esac
10626 DUMPBIN=$ac_ct_DUMPBIN
10627 fi
10628fi
10629
cristy0c60a692010-11-04 01:09:47 +000010630 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10631 *COFF*)
10632 DUMPBIN="$DUMPBIN -symbols"
10633 ;;
10634 *)
10635 DUMPBIN=:
10636 ;;
10637 esac
10638 fi
cristy73bd4a52010-10-05 11:24:23 +000010639
10640 if test "$DUMPBIN" != ":"; then
10641 NM="$DUMPBIN"
10642 fi
10643fi
10644test -z "$NM" && NM=nm
10645
10646
10647
10648
10649
10650
10651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10652$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010653if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010654 $as_echo_n "(cached) " >&6
10655else
10656 lt_cv_nm_interface="BSD nm"
10657 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010658 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010659 (eval "$ac_compile" 2>conftest.err)
10660 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010661 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010662 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10663 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010664 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010665 cat conftest.out >&5
10666 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10667 lt_cv_nm_interface="MS dumpbin"
10668 fi
10669 rm -f conftest*
10670fi
10671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10672$as_echo "$lt_cv_nm_interface" >&6; }
10673
10674# find the maximum length of command line arguments
10675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10676$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010677if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010678 $as_echo_n "(cached) " >&6
10679else
10680 i=0
10681 teststring="ABCD"
10682
10683 case $build_os in
10684 msdosdjgpp*)
10685 # On DJGPP, this test can blow up pretty badly due to problems in libc
10686 # (any single argument exceeding 2000 bytes causes a buffer overrun
10687 # during glob expansion). Even if it were fixed, the result of this
10688 # check would be larger than it should be.
10689 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10690 ;;
10691
10692 gnu*)
10693 # Under GNU Hurd, this test is not required because there is
10694 # no limit to the length of command line arguments.
10695 # Libtool will interpret -1 as no limit whatsoever
10696 lt_cv_sys_max_cmd_len=-1;
10697 ;;
10698
10699 cygwin* | mingw* | cegcc*)
10700 # On Win9x/ME, this test blows up -- it succeeds, but takes
10701 # about 5 minutes as the teststring grows exponentially.
10702 # Worse, since 9x/ME are not pre-emptively multitasking,
10703 # you end up with a "frozen" computer, even though with patience
10704 # the test eventually succeeds (with a max line length of 256k).
10705 # Instead, let's just punt: use the minimum linelength reported by
10706 # all of the supported platforms: 8192 (on NT/2K/XP).
10707 lt_cv_sys_max_cmd_len=8192;
10708 ;;
10709
cristy0c60a692010-11-04 01:09:47 +000010710 mint*)
10711 # On MiNT this can take a long time and run out of memory.
10712 lt_cv_sys_max_cmd_len=8192;
10713 ;;
10714
cristy73bd4a52010-10-05 11:24:23 +000010715 amigaos*)
10716 # On AmigaOS with pdksh, this test takes hours, literally.
10717 # So we just punt and use a minimum line length of 8192.
10718 lt_cv_sys_max_cmd_len=8192;
10719 ;;
10720
10721 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10722 # This has been around since 386BSD, at least. Likely further.
10723 if test -x /sbin/sysctl; then
10724 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10725 elif test -x /usr/sbin/sysctl; then
10726 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10727 else
10728 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10729 fi
10730 # And add a safety zone
10731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10733 ;;
10734
10735 interix*)
10736 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10737 lt_cv_sys_max_cmd_len=196608
10738 ;;
10739
cristy99bd5232011-12-07 14:38:20 +000010740 os2*)
10741 # The test takes a long time on OS/2.
10742 lt_cv_sys_max_cmd_len=8192
10743 ;;
10744
cristy73bd4a52010-10-05 11:24:23 +000010745 osf*)
10746 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10747 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10748 # nice to cause kernel panics so lets avoid the loop below.
10749 # First set a reasonable default.
10750 lt_cv_sys_max_cmd_len=16384
10751 #
10752 if test -x /sbin/sysconfig; then
10753 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10754 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10755 esac
10756 fi
10757 ;;
10758 sco3.2v5*)
10759 lt_cv_sys_max_cmd_len=102400
10760 ;;
10761 sysv5* | sco5v6* | sysv4.2uw2*)
10762 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10763 if test -n "$kargmax"; then
10764 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10765 else
10766 lt_cv_sys_max_cmd_len=32768
10767 fi
10768 ;;
10769 *)
10770 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10771 if test -n "$lt_cv_sys_max_cmd_len"; then
10772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10774 else
10775 # Make teststring a little bigger before we do anything with it.
10776 # a 1K string should be a reasonable start.
10777 for i in 1 2 3 4 5 6 7 8 ; do
10778 teststring=$teststring$teststring
10779 done
10780 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10781 # If test is not a shell built-in, we'll probably end up computing a
10782 # maximum length that is only half of the actual maximum length, but
10783 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010784 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010785 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010786 test $i != 17 # 1/2 MB should be enough
10787 do
10788 i=`expr $i + 1`
10789 teststring=$teststring$teststring
10790 done
10791 # Only check the string length outside the loop.
10792 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10793 teststring=
10794 # Add a significant safety factor because C++ compilers can tack on
10795 # massive amounts of additional arguments before passing them to the
10796 # linker. It appears as though 1/2 is a usable value.
10797 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10798 fi
10799 ;;
10800 esac
10801
10802fi
10803
10804if test -n $lt_cv_sys_max_cmd_len ; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10806$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10807else
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10809$as_echo "none" >&6; }
10810fi
10811max_cmd_len=$lt_cv_sys_max_cmd_len
10812
10813
10814
10815
10816
10817
10818: ${CP="cp -f"}
10819: ${MV="mv -f"}
10820: ${RM="rm -f"}
10821
10822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10823$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10824# Try some XSI features
10825xsi_shell=no
10826( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010827 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10828 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010829 && eval 'test $(( 1 + 1 )) -eq 2 \
10830 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10831 && xsi_shell=yes
10832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10833$as_echo "$xsi_shell" >&6; }
10834
10835
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10837$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10838lt_shell_append=no
10839( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10840 >/dev/null 2>&1 \
10841 && lt_shell_append=yes
10842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10843$as_echo "$lt_shell_append" >&6; }
10844
10845
10846if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10847 lt_unset=unset
10848else
10849 lt_unset=false
10850fi
10851
10852
10853
10854
10855
10856# test EBCDIC or ASCII
10857case `echo X|tr X '\101'` in
10858 A) # ASCII based system
10859 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10860 lt_SP2NL='tr \040 \012'
10861 lt_NL2SP='tr \015\012 \040\040'
10862 ;;
10863 *) # EBCDIC based system
10864 lt_SP2NL='tr \100 \n'
10865 lt_NL2SP='tr \r\n \100\100'
10866 ;;
10867esac
10868
10869
10870
10871
10872
10873
10874
10875
10876
cristyda16f162011-02-19 23:52:17 +000010877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10878$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10879if ${lt_cv_to_host_file_cmd+:} false; then :
10880 $as_echo_n "(cached) " >&6
10881else
10882 case $host in
10883 *-*-mingw* )
10884 case $build in
10885 *-*-mingw* ) # actually msys
10886 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10887 ;;
10888 *-*-cygwin* )
10889 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10890 ;;
10891 * ) # otherwise, assume *nix
10892 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10893 ;;
10894 esac
10895 ;;
10896 *-*-cygwin* )
10897 case $build in
10898 *-*-mingw* ) # actually msys
10899 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10900 ;;
10901 *-*-cygwin* )
10902 lt_cv_to_host_file_cmd=func_convert_file_noop
10903 ;;
10904 * ) # otherwise, assume *nix
10905 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10906 ;;
10907 esac
10908 ;;
10909 * ) # unhandled hosts (and "normal" native builds)
10910 lt_cv_to_host_file_cmd=func_convert_file_noop
10911 ;;
10912esac
10913
10914fi
10915
10916to_host_file_cmd=$lt_cv_to_host_file_cmd
10917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10918$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10919
10920
10921
10922
10923
10924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10925$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10926if ${lt_cv_to_tool_file_cmd+:} false; then :
10927 $as_echo_n "(cached) " >&6
10928else
10929 #assume ordinary cross tools, or native build.
10930lt_cv_to_tool_file_cmd=func_convert_file_noop
10931case $host in
10932 *-*-mingw* )
10933 case $build in
10934 *-*-mingw* ) # actually msys
10935 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10936 ;;
10937 esac
10938 ;;
10939esac
10940
10941fi
10942
10943to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10945$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10946
10947
10948
10949
10950
cristy73bd4a52010-10-05 11:24:23 +000010951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10952$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010953if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010954 $as_echo_n "(cached) " >&6
10955else
10956 lt_cv_ld_reload_flag='-r'
10957fi
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10959$as_echo "$lt_cv_ld_reload_flag" >&6; }
10960reload_flag=$lt_cv_ld_reload_flag
10961case $reload_flag in
10962"" | " "*) ;;
10963*) reload_flag=" $reload_flag" ;;
10964esac
10965reload_cmds='$LD$reload_flag -o $output$reload_objs'
10966case $host_os in
cristyda16f162011-02-19 23:52:17 +000010967 cygwin* | mingw* | pw32* | cegcc*)
10968 if test "$GCC" != yes; then
10969 reload_cmds=false
10970 fi
10971 ;;
cristy73bd4a52010-10-05 11:24:23 +000010972 darwin*)
10973 if test "$GCC" = yes; then
10974 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10975 else
10976 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10977 fi
10978 ;;
10979esac
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989if test -n "$ac_tool_prefix"; then
10990 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10991set dummy ${ac_tool_prefix}objdump; ac_word=$2
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010994if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010995 $as_echo_n "(cached) " >&6
10996else
10997 if test -n "$OBJDUMP"; then
10998 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10999else
11000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001for as_dir in $PATH
11002do
11003 IFS=$as_save_IFS
11004 test -z "$as_dir" && as_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011007 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11009 break 2
11010 fi
11011done
11012 done
11013IFS=$as_save_IFS
11014
11015fi
11016fi
11017OBJDUMP=$ac_cv_prog_OBJDUMP
11018if test -n "$OBJDUMP"; then
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11020$as_echo "$OBJDUMP" >&6; }
11021else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023$as_echo "no" >&6; }
11024fi
11025
11026
11027fi
11028if test -z "$ac_cv_prog_OBJDUMP"; then
11029 ac_ct_OBJDUMP=$OBJDUMP
11030 # Extract the first word of "objdump", so it can be a program name with args.
11031set dummy objdump; ac_word=$2
11032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11033$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011034if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011035 $as_echo_n "(cached) " >&6
11036else
11037 if test -n "$ac_ct_OBJDUMP"; then
11038 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11039else
11040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041for as_dir in $PATH
11042do
11043 IFS=$as_save_IFS
11044 test -z "$as_dir" && as_dir=.
11045 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011047 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11049 break 2
11050 fi
11051done
11052 done
11053IFS=$as_save_IFS
11054
11055fi
11056fi
11057ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11058if test -n "$ac_ct_OBJDUMP"; then
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11060$as_echo "$ac_ct_OBJDUMP" >&6; }
11061else
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063$as_echo "no" >&6; }
11064fi
11065
11066 if test "x$ac_ct_OBJDUMP" = x; then
11067 OBJDUMP="false"
11068 else
11069 case $cross_compiling:$ac_tool_warned in
11070yes:)
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11073ac_tool_warned=yes ;;
11074esac
11075 OBJDUMP=$ac_ct_OBJDUMP
11076 fi
11077else
11078 OBJDUMP="$ac_cv_prog_OBJDUMP"
11079fi
11080
11081test -z "$OBJDUMP" && OBJDUMP=objdump
11082
11083
11084
11085
11086
11087
11088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11089$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011090if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011091 $as_echo_n "(cached) " >&6
11092else
11093 lt_cv_file_magic_cmd='$MAGIC_CMD'
11094lt_cv_file_magic_test_file=
11095lt_cv_deplibs_check_method='unknown'
11096# Need to set the preceding variable on all platforms that support
11097# interlibrary dependencies.
11098# 'none' -- dependencies not supported.
11099# `unknown' -- same as none, but documents that we really don't know.
11100# 'pass_all' -- all dependencies passed with no checks.
11101# 'test_compile' -- check by making test program.
11102# 'file_magic [[regex]]' -- check by looking for files in library path
11103# which responds to the $file_magic_cmd with a given extended regex.
11104# If you have `file' or equivalent on your system and you're not sure
11105# whether `pass_all' will *always* work, you probably want this one.
11106
11107case $host_os in
11108aix[4-9]*)
11109 lt_cv_deplibs_check_method=pass_all
11110 ;;
11111
11112beos*)
11113 lt_cv_deplibs_check_method=pass_all
11114 ;;
11115
11116bsdi[45]*)
11117 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11118 lt_cv_file_magic_cmd='/usr/bin/file -L'
11119 lt_cv_file_magic_test_file=/shlib/libc.so
11120 ;;
11121
11122cygwin*)
11123 # func_win32_libid is a shell function defined in ltmain.sh
11124 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11125 lt_cv_file_magic_cmd='func_win32_libid'
11126 ;;
11127
11128mingw* | pw32*)
11129 # Base MSYS/MinGW do not provide the 'file' command needed by
11130 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11131 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011132 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11133 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011134 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11135 lt_cv_file_magic_cmd='func_win32_libid'
11136 else
cristy0c60a692010-11-04 01:09:47 +000011137 # Keep this pattern in sync with the one in func_win32_libid.
11138 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 +000011139 lt_cv_file_magic_cmd='$OBJDUMP -f'
11140 fi
11141 ;;
11142
cristy0c60a692010-11-04 01:09:47 +000011143cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011144 # use the weaker test based on 'objdump'. See mingw*.
11145 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11146 lt_cv_file_magic_cmd='$OBJDUMP -f'
11147 ;;
11148
11149darwin* | rhapsody*)
11150 lt_cv_deplibs_check_method=pass_all
11151 ;;
11152
11153freebsd* | dragonfly*)
11154 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11155 case $host_cpu in
11156 i*86 )
11157 # Not sure whether the presence of OpenBSD here was a mistake.
11158 # Let's accept both of them until this is cleared up.
11159 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11160 lt_cv_file_magic_cmd=/usr/bin/file
11161 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11162 ;;
11163 esac
11164 else
11165 lt_cv_deplibs_check_method=pass_all
11166 fi
11167 ;;
11168
11169gnu*)
11170 lt_cv_deplibs_check_method=pass_all
11171 ;;
11172
cristy0c60a692010-11-04 01:09:47 +000011173haiku*)
11174 lt_cv_deplibs_check_method=pass_all
11175 ;;
11176
cristy73bd4a52010-10-05 11:24:23 +000011177hpux10.20* | hpux11*)
11178 lt_cv_file_magic_cmd=/usr/bin/file
11179 case $host_cpu in
11180 ia64*)
11181 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11182 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11183 ;;
11184 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011185 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 +000011186 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11187 ;;
11188 *)
cristy0c60a692010-11-04 01:09:47 +000011189 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 +000011190 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11191 ;;
11192 esac
11193 ;;
11194
11195interix[3-9]*)
11196 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11198 ;;
11199
11200irix5* | irix6* | nonstopux*)
11201 case $LD in
11202 *-32|*"-32 ") libmagic=32-bit;;
11203 *-n32|*"-n32 ") libmagic=N32;;
11204 *-64|*"-64 ") libmagic=64-bit;;
11205 *) libmagic=never-match;;
11206 esac
11207 lt_cv_deplibs_check_method=pass_all
11208 ;;
11209
cristy99bd5232011-12-07 14:38:20 +000011210# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011211linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011212 lt_cv_deplibs_check_method=pass_all
11213 ;;
11214
11215netbsd*)
11216 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11218 else
11219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11220 fi
11221 ;;
11222
11223newos6*)
11224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11225 lt_cv_file_magic_cmd=/usr/bin/file
11226 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11227 ;;
11228
11229*nto* | *qnx*)
11230 lt_cv_deplibs_check_method=pass_all
11231 ;;
11232
11233openbsd*)
11234 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11236 else
11237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11238 fi
11239 ;;
11240
11241osf3* | osf4* | osf5*)
11242 lt_cv_deplibs_check_method=pass_all
11243 ;;
11244
11245rdos*)
11246 lt_cv_deplibs_check_method=pass_all
11247 ;;
11248
11249solaris*)
11250 lt_cv_deplibs_check_method=pass_all
11251 ;;
11252
11253sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11254 lt_cv_deplibs_check_method=pass_all
11255 ;;
11256
11257sysv4 | sysv4.3*)
11258 case $host_vendor in
11259 motorola)
11260 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]'
11261 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11262 ;;
11263 ncr)
11264 lt_cv_deplibs_check_method=pass_all
11265 ;;
11266 sequent)
11267 lt_cv_file_magic_cmd='/bin/file'
11268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11269 ;;
11270 sni)
11271 lt_cv_file_magic_cmd='/bin/file'
11272 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11273 lt_cv_file_magic_test_file=/lib/libc.so
11274 ;;
11275 siemens)
11276 lt_cv_deplibs_check_method=pass_all
11277 ;;
11278 pc)
11279 lt_cv_deplibs_check_method=pass_all
11280 ;;
11281 esac
11282 ;;
11283
11284tpf*)
11285 lt_cv_deplibs_check_method=pass_all
11286 ;;
11287esac
11288
11289fi
11290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11291$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011292
11293file_magic_glob=
11294want_nocaseglob=no
11295if test "$build" = "$host"; then
11296 case $host_os in
11297 mingw* | pw32*)
11298 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11299 want_nocaseglob=yes
11300 else
11301 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11302 fi
11303 ;;
11304 esac
11305fi
11306
cristy73bd4a52010-10-05 11:24:23 +000011307file_magic_cmd=$lt_cv_file_magic_cmd
11308deplibs_check_method=$lt_cv_deplibs_check_method
11309test -z "$deplibs_check_method" && deplibs_check_method=unknown
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
cristyda16f162011-02-19 23:52:17 +000011322
11323
11324
11325
11326
11327
11328
11329
11330
11331
cristy73bd4a52010-10-05 11:24:23 +000011332if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011333 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11334set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11336$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011337if ${ac_cv_prog_DLLTOOL+:} false; then :
11338 $as_echo_n "(cached) " >&6
11339else
11340 if test -n "$DLLTOOL"; then
11341 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11342else
11343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344for as_dir in $PATH
11345do
11346 IFS=$as_save_IFS
11347 test -z "$as_dir" && as_dir=.
11348 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011350 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11352 break 2
11353 fi
11354done
11355 done
11356IFS=$as_save_IFS
11357
11358fi
11359fi
11360DLLTOOL=$ac_cv_prog_DLLTOOL
11361if test -n "$DLLTOOL"; then
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11363$as_echo "$DLLTOOL" >&6; }
11364else
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366$as_echo "no" >&6; }
11367fi
11368
11369
11370fi
11371if test -z "$ac_cv_prog_DLLTOOL"; then
11372 ac_ct_DLLTOOL=$DLLTOOL
11373 # Extract the first word of "dlltool", so it can be a program name with args.
11374set dummy dlltool; ac_word=$2
11375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11376$as_echo_n "checking for $ac_word... " >&6; }
11377if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11378 $as_echo_n "(cached) " >&6
11379else
11380 if test -n "$ac_ct_DLLTOOL"; then
11381 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11382else
11383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384for as_dir in $PATH
11385do
11386 IFS=$as_save_IFS
11387 test -z "$as_dir" && as_dir=.
11388 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011390 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11392 break 2
11393 fi
11394done
11395 done
11396IFS=$as_save_IFS
11397
11398fi
11399fi
11400ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11401if test -n "$ac_ct_DLLTOOL"; then
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11403$as_echo "$ac_ct_DLLTOOL" >&6; }
11404else
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406$as_echo "no" >&6; }
11407fi
11408
11409 if test "x$ac_ct_DLLTOOL" = x; then
11410 DLLTOOL="false"
11411 else
11412 case $cross_compiling:$ac_tool_warned in
11413yes:)
11414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11416ac_tool_warned=yes ;;
11417esac
11418 DLLTOOL=$ac_ct_DLLTOOL
11419 fi
11420else
11421 DLLTOOL="$ac_cv_prog_DLLTOOL"
11422fi
11423
11424test -z "$DLLTOOL" && DLLTOOL=dlltool
11425
11426
11427
11428
11429
11430
11431
11432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11433$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11434if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11435 $as_echo_n "(cached) " >&6
11436else
11437 lt_cv_sharedlib_from_linklib_cmd='unknown'
11438
11439case $host_os in
11440cygwin* | mingw* | pw32* | cegcc*)
11441 # two different shell functions defined in ltmain.sh
11442 # decide which to use based on capabilities of $DLLTOOL
11443 case `$DLLTOOL --help 2>&1` in
11444 *--identify-strict*)
11445 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11446 ;;
11447 *)
11448 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11449 ;;
11450 esac
11451 ;;
11452*)
11453 # fallback: assume linklib IS sharedlib
11454 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11455 ;;
11456esac
11457
11458fi
11459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11460$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11461sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11462test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11463
11464
11465
11466
11467
11468
11469
11470if test -n "$ac_tool_prefix"; then
11471 for ac_prog in ar
11472 do
11473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11474set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11476$as_echo_n "checking for $ac_word... " >&6; }
11477if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011478 $as_echo_n "(cached) " >&6
11479else
11480 if test -n "$AR"; then
11481 ac_cv_prog_AR="$AR" # Let the user override the test.
11482else
11483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484for as_dir in $PATH
11485do
11486 IFS=$as_save_IFS
11487 test -z "$as_dir" && as_dir=.
11488 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011490 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11492 break 2
11493 fi
11494done
11495 done
11496IFS=$as_save_IFS
11497
11498fi
11499fi
11500AR=$ac_cv_prog_AR
11501if test -n "$AR"; then
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11503$as_echo "$AR" >&6; }
11504else
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506$as_echo "no" >&6; }
11507fi
11508
11509
cristyda16f162011-02-19 23:52:17 +000011510 test -n "$AR" && break
11511 done
cristy73bd4a52010-10-05 11:24:23 +000011512fi
cristyda16f162011-02-19 23:52:17 +000011513if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011514 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011515 for ac_prog in ar
11516do
11517 # Extract the first word of "$ac_prog", so it can be a program name with args.
11518set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11520$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011521if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011522 $as_echo_n "(cached) " >&6
11523else
11524 if test -n "$ac_ct_AR"; then
11525 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11526else
11527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11528for as_dir in $PATH
11529do
11530 IFS=$as_save_IFS
11531 test -z "$as_dir" && as_dir=.
11532 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011534 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11536 break 2
11537 fi
11538done
11539 done
11540IFS=$as_save_IFS
11541
11542fi
11543fi
11544ac_ct_AR=$ac_cv_prog_ac_ct_AR
11545if test -n "$ac_ct_AR"; then
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11547$as_echo "$ac_ct_AR" >&6; }
11548else
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550$as_echo "no" >&6; }
11551fi
11552
cristyda16f162011-02-19 23:52:17 +000011553
11554 test -n "$ac_ct_AR" && break
11555done
11556
cristy73bd4a52010-10-05 11:24:23 +000011557 if test "x$ac_ct_AR" = x; then
11558 AR="false"
11559 else
11560 case $cross_compiling:$ac_tool_warned in
11561yes:)
11562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11564ac_tool_warned=yes ;;
11565esac
11566 AR=$ac_ct_AR
11567 fi
cristy73bd4a52010-10-05 11:24:23 +000011568fi
11569
cristyda16f162011-02-19 23:52:17 +000011570: ${AR=ar}
11571: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
cristyda16f162011-02-19 23:52:17 +000011583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11584$as_echo_n "checking for archiver @FILE support... " >&6; }
11585if ${lt_cv_ar_at_file+:} false; then :
11586 $as_echo_n "(cached) " >&6
11587else
11588 lt_cv_ar_at_file=no
11589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11590/* end confdefs.h. */
11591
11592int
11593main ()
11594{
11595
11596 ;
11597 return 0;
11598}
11599_ACEOF
11600if ac_fn_c_try_compile "$LINENO"; then :
11601 echo conftest.$ac_objext > conftest.lst
11602 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11604 (eval $lt_ar_try) 2>&5
11605 ac_status=$?
11606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11607 test $ac_status = 0; }
11608 if test "$ac_status" -eq 0; then
11609 # Ensure the archiver fails upon bogus file names.
11610 rm -f conftest.$ac_objext libconftest.a
11611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11612 (eval $lt_ar_try) 2>&5
11613 ac_status=$?
11614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11615 test $ac_status = 0; }
11616 if test "$ac_status" -ne 0; then
11617 lt_cv_ar_at_file=@
11618 fi
11619 fi
11620 rm -f conftest.* libconftest.a
11621
11622fi
11623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11624
11625fi
11626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11627$as_echo "$lt_cv_ar_at_file" >&6; }
11628
11629if test "x$lt_cv_ar_at_file" = xno; then
11630 archiver_list_spec=
11631else
11632 archiver_list_spec=$lt_cv_ar_at_file
11633fi
11634
11635
11636
11637
11638
11639
11640
cristy73bd4a52010-10-05 11:24:23 +000011641if test -n "$ac_tool_prefix"; then
11642 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11643set dummy ${ac_tool_prefix}strip; ac_word=$2
11644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11645$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011646if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011647 $as_echo_n "(cached) " >&6
11648else
11649 if test -n "$STRIP"; then
11650 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11651else
11652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653for as_dir in $PATH
11654do
11655 IFS=$as_save_IFS
11656 test -z "$as_dir" && as_dir=.
11657 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011659 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11661 break 2
11662 fi
11663done
11664 done
11665IFS=$as_save_IFS
11666
11667fi
11668fi
11669STRIP=$ac_cv_prog_STRIP
11670if test -n "$STRIP"; then
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11672$as_echo "$STRIP" >&6; }
11673else
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675$as_echo "no" >&6; }
11676fi
11677
11678
11679fi
11680if test -z "$ac_cv_prog_STRIP"; then
11681 ac_ct_STRIP=$STRIP
11682 # Extract the first word of "strip", so it can be a program name with args.
11683set dummy strip; ac_word=$2
11684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11685$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011686if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011687 $as_echo_n "(cached) " >&6
11688else
11689 if test -n "$ac_ct_STRIP"; then
11690 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11691else
11692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693for as_dir in $PATH
11694do
11695 IFS=$as_save_IFS
11696 test -z "$as_dir" && as_dir=.
11697 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011699 ac_cv_prog_ac_ct_STRIP="strip"
11700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11701 break 2
11702 fi
11703done
11704 done
11705IFS=$as_save_IFS
11706
11707fi
11708fi
11709ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11710if test -n "$ac_ct_STRIP"; then
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11712$as_echo "$ac_ct_STRIP" >&6; }
11713else
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715$as_echo "no" >&6; }
11716fi
11717
11718 if test "x$ac_ct_STRIP" = x; then
11719 STRIP=":"
11720 else
11721 case $cross_compiling:$ac_tool_warned in
11722yes:)
11723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11725ac_tool_warned=yes ;;
11726esac
11727 STRIP=$ac_ct_STRIP
11728 fi
11729else
11730 STRIP="$ac_cv_prog_STRIP"
11731fi
11732
11733test -z "$STRIP" && STRIP=:
11734
11735
11736
11737
11738
11739
11740if test -n "$ac_tool_prefix"; then
11741 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11742set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011745if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011746 $as_echo_n "(cached) " >&6
11747else
11748 if test -n "$RANLIB"; then
11749 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11750else
11751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752for as_dir in $PATH
11753do
11754 IFS=$as_save_IFS
11755 test -z "$as_dir" && as_dir=.
11756 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011758 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11760 break 2
11761 fi
11762done
11763 done
11764IFS=$as_save_IFS
11765
11766fi
11767fi
11768RANLIB=$ac_cv_prog_RANLIB
11769if test -n "$RANLIB"; then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11771$as_echo "$RANLIB" >&6; }
11772else
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774$as_echo "no" >&6; }
11775fi
11776
11777
11778fi
11779if test -z "$ac_cv_prog_RANLIB"; then
11780 ac_ct_RANLIB=$RANLIB
11781 # Extract the first word of "ranlib", so it can be a program name with args.
11782set dummy ranlib; ac_word=$2
11783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11784$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011785if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011786 $as_echo_n "(cached) " >&6
11787else
11788 if test -n "$ac_ct_RANLIB"; then
11789 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11790else
11791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792for as_dir in $PATH
11793do
11794 IFS=$as_save_IFS
11795 test -z "$as_dir" && as_dir=.
11796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011798 ac_cv_prog_ac_ct_RANLIB="ranlib"
11799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11800 break 2
11801 fi
11802done
11803 done
11804IFS=$as_save_IFS
11805
11806fi
11807fi
11808ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11809if test -n "$ac_ct_RANLIB"; then
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11811$as_echo "$ac_ct_RANLIB" >&6; }
11812else
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814$as_echo "no" >&6; }
11815fi
11816
11817 if test "x$ac_ct_RANLIB" = x; then
11818 RANLIB=":"
11819 else
11820 case $cross_compiling:$ac_tool_warned in
11821yes:)
11822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11824ac_tool_warned=yes ;;
11825esac
11826 RANLIB=$ac_ct_RANLIB
11827 fi
11828else
11829 RANLIB="$ac_cv_prog_RANLIB"
11830fi
11831
11832test -z "$RANLIB" && RANLIB=:
11833
11834
11835
11836
11837
11838
11839# Determine commands to create old-style static archives.
11840old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11841old_postinstall_cmds='chmod 644 $oldlib'
11842old_postuninstall_cmds=
11843
11844if test -n "$RANLIB"; then
11845 case $host_os in
11846 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011847 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011848 ;;
11849 *)
cristy99bd5232011-12-07 14:38:20 +000011850 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011851 ;;
11852 esac
cristy99bd5232011-12-07 14:38:20 +000011853 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011854fi
11855
cristy0c60a692010-11-04 01:09:47 +000011856case $host_os in
11857 darwin*)
11858 lock_old_archive_extraction=yes ;;
11859 *)
11860 lock_old_archive_extraction=no ;;
11861esac
11862
11863
11864
11865
11866
11867
cristy73bd4a52010-10-05 11:24:23 +000011868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901# If no C compiler was specified, use CC.
11902LTCC=${LTCC-"$CC"}
11903
11904# If no C compiler flags were specified, use CFLAGS.
11905LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11906
11907# Allow CC to be a program name with arguments.
11908compiler=$CC
11909
11910
11911# Check for command to grab the raw symbol name followed by C symbol from nm.
11912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11913$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011914if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011915 $as_echo_n "(cached) " >&6
11916else
11917
11918# These are sane defaults that work on at least a few old systems.
11919# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11920
11921# Character class describing NM global symbol codes.
11922symcode='[BCDEGRST]'
11923
11924# Regexp to match symbols that can be accessed directly from C.
11925sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11926
11927# Define system-specific variables.
11928case $host_os in
11929aix*)
11930 symcode='[BCDT]'
11931 ;;
11932cygwin* | mingw* | pw32* | cegcc*)
11933 symcode='[ABCDGISTW]'
11934 ;;
11935hpux*)
11936 if test "$host_cpu" = ia64; then
11937 symcode='[ABCDEGRST]'
11938 fi
11939 ;;
11940irix* | nonstopux*)
11941 symcode='[BCDEGRST]'
11942 ;;
11943osf*)
11944 symcode='[BCDEGQRST]'
11945 ;;
11946solaris*)
11947 symcode='[BDRT]'
11948 ;;
11949sco3.2v5*)
11950 symcode='[DT]'
11951 ;;
11952sysv4.2uw2*)
11953 symcode='[DT]'
11954 ;;
11955sysv5* | sco5v6* | unixware* | OpenUNIX*)
11956 symcode='[ABDT]'
11957 ;;
11958sysv4)
11959 symcode='[DFNSTU]'
11960 ;;
11961esac
11962
11963# If we're using GNU nm, then use its standard symbol codes.
11964case `$NM -V 2>&1` in
11965*GNU* | *'with BFD'*)
11966 symcode='[ABCDGIRSTW]' ;;
11967esac
11968
11969# Transform an extracted symbol line into a proper C declaration.
11970# Some systems (esp. on ia64) link data and code symbols differently,
11971# so use this general approach.
11972lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11973
11974# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011975lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11976lt_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 +000011977
11978# Handle CRLF in mingw tool chain
11979opt_cr=
11980case $build_os in
11981mingw*)
11982 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11983 ;;
11984esac
11985
11986# Try without a prefix underscore, then with it.
11987for ac_symprfx in "" "_"; do
11988
11989 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11990 symxfrm="\\1 $ac_symprfx\\2 \\2"
11991
11992 # Write the raw and C identifiers.
11993 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11994 # Fake it for dumpbin and say T for any non-static function
11995 # and D for any global variable.
11996 # Also find C++ and __fastcall symbols from MSVC++,
11997 # which start with @ or ?.
11998 lt_cv_sys_global_symbol_pipe="$AWK '"\
11999" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012000" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012001" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12002" \$ 0!~/External *\|/{next};"\
12003" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12004" {if(hide[section]) next};"\
12005" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12006" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12007" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12008" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12009" ' prfx=^$ac_symprfx"
12010 else
12011 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12012 fi
cristyda16f162011-02-19 23:52:17 +000012013 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012014
12015 # Check to see that the pipe works correctly.
12016 pipe_works=no
12017
12018 rm -f conftest*
12019 cat > conftest.$ac_ext <<_LT_EOF
12020#ifdef __cplusplus
12021extern "C" {
12022#endif
12023char nm_test_var;
12024void nm_test_func(void);
12025void nm_test_func(void){}
12026#ifdef __cplusplus
12027}
12028#endif
12029int main(){nm_test_var='a';nm_test_func();return(0);}
12030_LT_EOF
12031
12032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12033 (eval $ac_compile) 2>&5
12034 ac_status=$?
12035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12036 test $ac_status = 0; }; then
12037 # Now try to grab the symbols.
12038 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12040 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012041 ac_status=$?
12042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12043 test $ac_status = 0; } && test -s "$nlist"; then
12044 # Try sorting and uniquifying the output.
12045 if sort "$nlist" | uniq > "$nlist"T; then
12046 mv -f "$nlist"T "$nlist"
12047 else
12048 rm -f "$nlist"T
12049 fi
12050
12051 # Make sure that we snagged all the symbols we need.
12052 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12053 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12054 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012055/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12056#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12057/* DATA imports from DLLs on WIN32 con't be const, because runtime
12058 relocations are performed -- see ld's documentation on pseudo-relocs. */
12059# define LT_DLSYM_CONST
12060#elif defined(__osf__)
12061/* This system does not cope well with relocations in const data. */
12062# define LT_DLSYM_CONST
12063#else
12064# define LT_DLSYM_CONST const
12065#endif
12066
cristy73bd4a52010-10-05 11:24:23 +000012067#ifdef __cplusplus
12068extern "C" {
12069#endif
12070
12071_LT_EOF
12072 # Now generate the symbol file.
12073 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12074
12075 cat <<_LT_EOF >> conftest.$ac_ext
12076
12077/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012078LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012079 const char *name;
12080 void *address;
12081}
12082lt__PROGRAM__LTX_preloaded_symbols[] =
12083{
12084 { "@PROGRAM@", (void *) 0 },
12085_LT_EOF
12086 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12087 cat <<\_LT_EOF >> conftest.$ac_ext
12088 {0, (void *) 0}
12089};
12090
12091/* This works around a problem in FreeBSD linker */
12092#ifdef FREEBSD_WORKAROUND
12093static const void *lt_preloaded_setup() {
12094 return lt__PROGRAM__LTX_preloaded_symbols;
12095}
12096#endif
12097
12098#ifdef __cplusplus
12099}
12100#endif
12101_LT_EOF
12102 # Now try linking the two files.
12103 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012104 lt_globsym_save_LIBS=$LIBS
12105 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012106 LIBS="conftstm.$ac_objext"
12107 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12109 (eval $ac_link) 2>&5
12110 ac_status=$?
12111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12112 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12113 pipe_works=yes
12114 fi
cristyda16f162011-02-19 23:52:17 +000012115 LIBS=$lt_globsym_save_LIBS
12116 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012117 else
12118 echo "cannot find nm_test_func in $nlist" >&5
12119 fi
12120 else
12121 echo "cannot find nm_test_var in $nlist" >&5
12122 fi
12123 else
12124 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12125 fi
12126 else
12127 echo "$progname: failed program was:" >&5
12128 cat conftest.$ac_ext >&5
12129 fi
12130 rm -rf conftest* conftst*
12131
12132 # Do not use the global_symbol_pipe unless it works.
12133 if test "$pipe_works" = yes; then
12134 break
12135 else
12136 lt_cv_sys_global_symbol_pipe=
12137 fi
12138done
12139
12140fi
12141
12142if test -z "$lt_cv_sys_global_symbol_pipe"; then
12143 lt_cv_sys_global_symbol_to_cdecl=
12144fi
12145if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12147$as_echo "failed" >&6; }
12148else
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12150$as_echo "ok" >&6; }
12151fi
12152
cristyda16f162011-02-19 23:52:17 +000012153# Response file support.
12154if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12155 nm_file_list_spec='@'
12156elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12157 nm_file_list_spec='@'
12158fi
cristy73bd4a52010-10-05 11:24:23 +000012159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
cristyda16f162011-02-19 23:52:17 +000012180
12181
12182
12183
12184
12185
12186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12187$as_echo_n "checking for sysroot... " >&6; }
12188
12189# Check whether --with-sysroot was given.
12190if test "${with_sysroot+set}" = set; then :
12191 withval=$with_sysroot;
12192else
12193 with_sysroot=no
12194fi
12195
12196
12197lt_sysroot=
12198case ${with_sysroot} in #(
12199 yes)
12200 if test "$GCC" = yes; then
12201 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12202 fi
12203 ;; #(
12204 /*)
12205 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12206 ;; #(
12207 no|'')
12208 ;; #(
12209 *)
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12211$as_echo "${with_sysroot}" >&6; }
12212 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12213 ;;
12214esac
12215
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12217$as_echo "${lt_sysroot:-no}" >&6; }
12218
12219
12220
12221
12222
cristy73bd4a52010-10-05 11:24:23 +000012223# Check whether --enable-libtool-lock was given.
12224if test "${enable_libtool_lock+set}" = set; then :
12225 enableval=$enable_libtool_lock;
12226fi
12227
12228test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12229
12230# Some flags need to be propagated to the compiler or linker for good
12231# libtool support.
12232case $host in
12233ia64-*-hpux*)
12234 # Find out which ABI we are using.
12235 echo 'int i;' > conftest.$ac_ext
12236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12237 (eval $ac_compile) 2>&5
12238 ac_status=$?
12239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12240 test $ac_status = 0; }; then
12241 case `/usr/bin/file conftest.$ac_objext` in
12242 *ELF-32*)
12243 HPUX_IA64_MODE="32"
12244 ;;
12245 *ELF-64*)
12246 HPUX_IA64_MODE="64"
12247 ;;
12248 esac
12249 fi
12250 rm -rf conftest*
12251 ;;
12252*-*-irix6*)
12253 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012254 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12256 (eval $ac_compile) 2>&5
12257 ac_status=$?
12258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12259 test $ac_status = 0; }; then
12260 if test "$lt_cv_prog_gnu_ld" = yes; then
12261 case `/usr/bin/file conftest.$ac_objext` in
12262 *32-bit*)
12263 LD="${LD-ld} -melf32bsmip"
12264 ;;
12265 *N32*)
12266 LD="${LD-ld} -melf32bmipn32"
12267 ;;
12268 *64-bit*)
12269 LD="${LD-ld} -melf64bmip"
12270 ;;
12271 esac
12272 else
12273 case `/usr/bin/file conftest.$ac_objext` in
12274 *32-bit*)
12275 LD="${LD-ld} -32"
12276 ;;
12277 *N32*)
12278 LD="${LD-ld} -n32"
12279 ;;
12280 *64-bit*)
12281 LD="${LD-ld} -64"
12282 ;;
12283 esac
12284 fi
12285 fi
12286 rm -rf conftest*
12287 ;;
12288
12289x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12290s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12291 # Find out which ABI we are using.
12292 echo 'int i;' > conftest.$ac_ext
12293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12294 (eval $ac_compile) 2>&5
12295 ac_status=$?
12296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12297 test $ac_status = 0; }; then
12298 case `/usr/bin/file conftest.o` in
12299 *32-bit*)
12300 case $host in
12301 x86_64-*kfreebsd*-gnu)
12302 LD="${LD-ld} -m elf_i386_fbsd"
12303 ;;
12304 x86_64-*linux*)
12305 LD="${LD-ld} -m elf_i386"
12306 ;;
12307 ppc64-*linux*|powerpc64-*linux*)
12308 LD="${LD-ld} -m elf32ppclinux"
12309 ;;
12310 s390x-*linux*)
12311 LD="${LD-ld} -m elf_s390"
12312 ;;
12313 sparc64-*linux*)
12314 LD="${LD-ld} -m elf32_sparc"
12315 ;;
12316 esac
12317 ;;
12318 *64-bit*)
12319 case $host in
12320 x86_64-*kfreebsd*-gnu)
12321 LD="${LD-ld} -m elf_x86_64_fbsd"
12322 ;;
12323 x86_64-*linux*)
12324 LD="${LD-ld} -m elf_x86_64"
12325 ;;
12326 ppc*-*linux*|powerpc*-*linux*)
12327 LD="${LD-ld} -m elf64ppc"
12328 ;;
12329 s390*-*linux*|s390*-*tpf*)
12330 LD="${LD-ld} -m elf64_s390"
12331 ;;
12332 sparc*-*linux*)
12333 LD="${LD-ld} -m elf64_sparc"
12334 ;;
12335 esac
12336 ;;
12337 esac
12338 fi
12339 rm -rf conftest*
12340 ;;
12341
12342*-*-sco3.2v5*)
12343 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12344 SAVE_CFLAGS="$CFLAGS"
12345 CFLAGS="$CFLAGS -belf"
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12347$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012348if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012349 $as_echo_n "(cached) " >&6
12350else
12351 ac_ext=c
12352ac_cpp='$CPP $CPPFLAGS'
12353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12355ac_compiler_gnu=$ac_cv_c_compiler_gnu
12356
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358/* end confdefs.h. */
12359
12360int
12361main ()
12362{
12363
12364 ;
12365 return 0;
12366}
12367_ACEOF
12368if ac_fn_c_try_link "$LINENO"; then :
12369 lt_cv_cc_needs_belf=yes
12370else
12371 lt_cv_cc_needs_belf=no
12372fi
12373rm -f core conftest.err conftest.$ac_objext \
12374 conftest$ac_exeext conftest.$ac_ext
12375 ac_ext=c
12376ac_cpp='$CPP $CPPFLAGS'
12377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12379ac_compiler_gnu=$ac_cv_c_compiler_gnu
12380
12381fi
12382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12383$as_echo "$lt_cv_cc_needs_belf" >&6; }
12384 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12385 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12386 CFLAGS="$SAVE_CFLAGS"
12387 fi
12388 ;;
cristy99bd5232011-12-07 14:38:20 +000012389*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012390 # Find out which ABI we are using.
12391 echo 'int i;' > conftest.$ac_ext
12392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12393 (eval $ac_compile) 2>&5
12394 ac_status=$?
12395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12396 test $ac_status = 0; }; then
12397 case `/usr/bin/file conftest.o` in
12398 *64-bit*)
12399 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012400 yes*)
12401 case $host in
12402 i?86-*-solaris*)
12403 LD="${LD-ld} -m elf_x86_64"
12404 ;;
12405 sparc*-*-solaris*)
12406 LD="${LD-ld} -m elf64_sparc"
12407 ;;
12408 esac
12409 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12410 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12411 LD="${LD-ld}_sol2"
12412 fi
12413 ;;
cristy73bd4a52010-10-05 11:24:23 +000012414 *)
12415 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12416 LD="${LD-ld} -64"
12417 fi
12418 ;;
12419 esac
12420 ;;
12421 esac
12422 fi
12423 rm -rf conftest*
12424 ;;
12425esac
12426
12427need_locks="$enable_libtool_lock"
12428
cristyda16f162011-02-19 23:52:17 +000012429if test -n "$ac_tool_prefix"; then
12430 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12431set dummy ${ac_tool_prefix}mt; ac_word=$2
12432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12433$as_echo_n "checking for $ac_word... " >&6; }
12434if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12435 $as_echo_n "(cached) " >&6
12436else
12437 if test -n "$MANIFEST_TOOL"; then
12438 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12439else
12440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12441for as_dir in $PATH
12442do
12443 IFS=$as_save_IFS
12444 test -z "$as_dir" && as_dir=.
12445 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012447 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12449 break 2
12450 fi
12451done
12452 done
12453IFS=$as_save_IFS
12454
12455fi
12456fi
12457MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12458if test -n "$MANIFEST_TOOL"; then
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12460$as_echo "$MANIFEST_TOOL" >&6; }
12461else
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463$as_echo "no" >&6; }
12464fi
12465
12466
12467fi
12468if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12469 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12470 # Extract the first word of "mt", so it can be a program name with args.
12471set dummy mt; ac_word=$2
12472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473$as_echo_n "checking for $ac_word... " >&6; }
12474if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12475 $as_echo_n "(cached) " >&6
12476else
12477 if test -n "$ac_ct_MANIFEST_TOOL"; then
12478 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12479else
12480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481for as_dir in $PATH
12482do
12483 IFS=$as_save_IFS
12484 test -z "$as_dir" && as_dir=.
12485 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012487 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12489 break 2
12490 fi
12491done
12492 done
12493IFS=$as_save_IFS
12494
12495fi
12496fi
12497ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12498if test -n "$ac_ct_MANIFEST_TOOL"; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12500$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12501else
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503$as_echo "no" >&6; }
12504fi
12505
12506 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12507 MANIFEST_TOOL=":"
12508 else
12509 case $cross_compiling:$ac_tool_warned in
12510yes:)
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12513ac_tool_warned=yes ;;
12514esac
12515 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12516 fi
12517else
12518 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12519fi
12520
12521test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12523$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12524if ${lt_cv_path_mainfest_tool+:} false; then :
12525 $as_echo_n "(cached) " >&6
12526else
12527 lt_cv_path_mainfest_tool=no
12528 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12529 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12530 cat conftest.err >&5
12531 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12532 lt_cv_path_mainfest_tool=yes
12533 fi
12534 rm -f conftest*
12535fi
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12537$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12538if test "x$lt_cv_path_mainfest_tool" != xyes; then
12539 MANIFEST_TOOL=:
12540fi
12541
12542
12543
12544
12545
cristy73bd4a52010-10-05 11:24:23 +000012546
12547 case $host_os in
12548 rhapsody* | darwin*)
12549 if test -n "$ac_tool_prefix"; then
12550 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12551set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12553$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012554if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012555 $as_echo_n "(cached) " >&6
12556else
12557 if test -n "$DSYMUTIL"; then
12558 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12559else
12560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12561for as_dir in $PATH
12562do
12563 IFS=$as_save_IFS
12564 test -z "$as_dir" && as_dir=.
12565 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012567 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12569 break 2
12570 fi
12571done
12572 done
12573IFS=$as_save_IFS
12574
12575fi
12576fi
12577DSYMUTIL=$ac_cv_prog_DSYMUTIL
12578if test -n "$DSYMUTIL"; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12580$as_echo "$DSYMUTIL" >&6; }
12581else
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583$as_echo "no" >&6; }
12584fi
12585
12586
12587fi
12588if test -z "$ac_cv_prog_DSYMUTIL"; then
12589 ac_ct_DSYMUTIL=$DSYMUTIL
12590 # Extract the first word of "dsymutil", so it can be a program name with args.
12591set dummy dsymutil; ac_word=$2
12592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12593$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012594if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012595 $as_echo_n "(cached) " >&6
12596else
12597 if test -n "$ac_ct_DSYMUTIL"; then
12598 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12599else
12600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601for as_dir in $PATH
12602do
12603 IFS=$as_save_IFS
12604 test -z "$as_dir" && as_dir=.
12605 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012607 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12609 break 2
12610 fi
12611done
12612 done
12613IFS=$as_save_IFS
12614
12615fi
12616fi
12617ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12618if test -n "$ac_ct_DSYMUTIL"; then
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12620$as_echo "$ac_ct_DSYMUTIL" >&6; }
12621else
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623$as_echo "no" >&6; }
12624fi
12625
12626 if test "x$ac_ct_DSYMUTIL" = x; then
12627 DSYMUTIL=":"
12628 else
12629 case $cross_compiling:$ac_tool_warned in
12630yes:)
12631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12633ac_tool_warned=yes ;;
12634esac
12635 DSYMUTIL=$ac_ct_DSYMUTIL
12636 fi
12637else
12638 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12639fi
12640
12641 if test -n "$ac_tool_prefix"; then
12642 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12643set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12645$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012646if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012647 $as_echo_n "(cached) " >&6
12648else
12649 if test -n "$NMEDIT"; then
12650 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12651else
12652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12653for as_dir in $PATH
12654do
12655 IFS=$as_save_IFS
12656 test -z "$as_dir" && as_dir=.
12657 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012659 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12661 break 2
12662 fi
12663done
12664 done
12665IFS=$as_save_IFS
12666
12667fi
12668fi
12669NMEDIT=$ac_cv_prog_NMEDIT
12670if test -n "$NMEDIT"; then
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12672$as_echo "$NMEDIT" >&6; }
12673else
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675$as_echo "no" >&6; }
12676fi
12677
12678
12679fi
12680if test -z "$ac_cv_prog_NMEDIT"; then
12681 ac_ct_NMEDIT=$NMEDIT
12682 # Extract the first word of "nmedit", so it can be a program name with args.
12683set dummy nmedit; ac_word=$2
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12685$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012686if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012687 $as_echo_n "(cached) " >&6
12688else
12689 if test -n "$ac_ct_NMEDIT"; then
12690 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12691else
12692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12693for as_dir in $PATH
12694do
12695 IFS=$as_save_IFS
12696 test -z "$as_dir" && as_dir=.
12697 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012699 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12701 break 2
12702 fi
12703done
12704 done
12705IFS=$as_save_IFS
12706
12707fi
12708fi
12709ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12710if test -n "$ac_ct_NMEDIT"; then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12712$as_echo "$ac_ct_NMEDIT" >&6; }
12713else
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12715$as_echo "no" >&6; }
12716fi
12717
12718 if test "x$ac_ct_NMEDIT" = x; then
12719 NMEDIT=":"
12720 else
12721 case $cross_compiling:$ac_tool_warned in
12722yes:)
12723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12725ac_tool_warned=yes ;;
12726esac
12727 NMEDIT=$ac_ct_NMEDIT
12728 fi
12729else
12730 NMEDIT="$ac_cv_prog_NMEDIT"
12731fi
12732
12733 if test -n "$ac_tool_prefix"; then
12734 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12735set dummy ${ac_tool_prefix}lipo; ac_word=$2
12736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12737$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012738if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012739 $as_echo_n "(cached) " >&6
12740else
12741 if test -n "$LIPO"; then
12742 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12743else
12744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12745for as_dir in $PATH
12746do
12747 IFS=$as_save_IFS
12748 test -z "$as_dir" && as_dir=.
12749 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012751 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12753 break 2
12754 fi
12755done
12756 done
12757IFS=$as_save_IFS
12758
12759fi
12760fi
12761LIPO=$ac_cv_prog_LIPO
12762if test -n "$LIPO"; then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12764$as_echo "$LIPO" >&6; }
12765else
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767$as_echo "no" >&6; }
12768fi
12769
12770
12771fi
12772if test -z "$ac_cv_prog_LIPO"; then
12773 ac_ct_LIPO=$LIPO
12774 # Extract the first word of "lipo", so it can be a program name with args.
12775set dummy lipo; ac_word=$2
12776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012778if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012779 $as_echo_n "(cached) " >&6
12780else
12781 if test -n "$ac_ct_LIPO"; then
12782 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12783else
12784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785for as_dir in $PATH
12786do
12787 IFS=$as_save_IFS
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012791 ac_cv_prog_ac_ct_LIPO="lipo"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793 break 2
12794 fi
12795done
12796 done
12797IFS=$as_save_IFS
12798
12799fi
12800fi
12801ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12802if test -n "$ac_ct_LIPO"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12804$as_echo "$ac_ct_LIPO" >&6; }
12805else
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807$as_echo "no" >&6; }
12808fi
12809
12810 if test "x$ac_ct_LIPO" = x; then
12811 LIPO=":"
12812 else
12813 case $cross_compiling:$ac_tool_warned in
12814yes:)
12815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12817ac_tool_warned=yes ;;
12818esac
12819 LIPO=$ac_ct_LIPO
12820 fi
12821else
12822 LIPO="$ac_cv_prog_LIPO"
12823fi
12824
12825 if test -n "$ac_tool_prefix"; then
12826 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12827set dummy ${ac_tool_prefix}otool; ac_word=$2
12828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12829$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012830if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012831 $as_echo_n "(cached) " >&6
12832else
12833 if test -n "$OTOOL"; then
12834 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12835else
12836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837for as_dir in $PATH
12838do
12839 IFS=$as_save_IFS
12840 test -z "$as_dir" && as_dir=.
12841 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012843 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12845 break 2
12846 fi
12847done
12848 done
12849IFS=$as_save_IFS
12850
12851fi
12852fi
12853OTOOL=$ac_cv_prog_OTOOL
12854if test -n "$OTOOL"; then
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12856$as_echo "$OTOOL" >&6; }
12857else
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12859$as_echo "no" >&6; }
12860fi
12861
12862
12863fi
12864if test -z "$ac_cv_prog_OTOOL"; then
12865 ac_ct_OTOOL=$OTOOL
12866 # Extract the first word of "otool", so it can be a program name with args.
12867set dummy otool; ac_word=$2
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12869$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012870if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012871 $as_echo_n "(cached) " >&6
12872else
12873 if test -n "$ac_ct_OTOOL"; then
12874 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12875else
12876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877for as_dir in $PATH
12878do
12879 IFS=$as_save_IFS
12880 test -z "$as_dir" && as_dir=.
12881 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012883 ac_cv_prog_ac_ct_OTOOL="otool"
12884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12885 break 2
12886 fi
12887done
12888 done
12889IFS=$as_save_IFS
12890
12891fi
12892fi
12893ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12894if test -n "$ac_ct_OTOOL"; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12896$as_echo "$ac_ct_OTOOL" >&6; }
12897else
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12899$as_echo "no" >&6; }
12900fi
12901
12902 if test "x$ac_ct_OTOOL" = x; then
12903 OTOOL=":"
12904 else
12905 case $cross_compiling:$ac_tool_warned in
12906yes:)
12907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12909ac_tool_warned=yes ;;
12910esac
12911 OTOOL=$ac_ct_OTOOL
12912 fi
12913else
12914 OTOOL="$ac_cv_prog_OTOOL"
12915fi
12916
12917 if test -n "$ac_tool_prefix"; then
12918 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12919set dummy ${ac_tool_prefix}otool64; ac_word=$2
12920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12921$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012922if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012923 $as_echo_n "(cached) " >&6
12924else
12925 if test -n "$OTOOL64"; then
12926 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12927else
12928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929for as_dir in $PATH
12930do
12931 IFS=$as_save_IFS
12932 test -z "$as_dir" && as_dir=.
12933 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012935 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12937 break 2
12938 fi
12939done
12940 done
12941IFS=$as_save_IFS
12942
12943fi
12944fi
12945OTOOL64=$ac_cv_prog_OTOOL64
12946if test -n "$OTOOL64"; then
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12948$as_echo "$OTOOL64" >&6; }
12949else
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951$as_echo "no" >&6; }
12952fi
12953
12954
12955fi
12956if test -z "$ac_cv_prog_OTOOL64"; then
12957 ac_ct_OTOOL64=$OTOOL64
12958 # Extract the first word of "otool64", so it can be a program name with args.
12959set dummy otool64; ac_word=$2
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012962if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012963 $as_echo_n "(cached) " >&6
12964else
12965 if test -n "$ac_ct_OTOOL64"; then
12966 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12967else
12968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12969for as_dir in $PATH
12970do
12971 IFS=$as_save_IFS
12972 test -z "$as_dir" && as_dir=.
12973 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012975 ac_cv_prog_ac_ct_OTOOL64="otool64"
12976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12977 break 2
12978 fi
12979done
12980 done
12981IFS=$as_save_IFS
12982
12983fi
12984fi
12985ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12986if test -n "$ac_ct_OTOOL64"; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12988$as_echo "$ac_ct_OTOOL64" >&6; }
12989else
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991$as_echo "no" >&6; }
12992fi
12993
12994 if test "x$ac_ct_OTOOL64" = x; then
12995 OTOOL64=":"
12996 else
12997 case $cross_compiling:$ac_tool_warned in
12998yes:)
12999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13001ac_tool_warned=yes ;;
13002esac
13003 OTOOL64=$ac_ct_OTOOL64
13004 fi
13005else
13006 OTOOL64="$ac_cv_prog_OTOOL64"
13007fi
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13036$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013037if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013038 $as_echo_n "(cached) " >&6
13039else
13040 lt_cv_apple_cc_single_mod=no
13041 if test -z "${LT_MULTI_MODULE}"; then
13042 # By default we will add the -single_module flag. You can override
13043 # by either setting the environment variable LT_MULTI_MODULE
13044 # non-empty at configure time, or by adding -multi_module to the
13045 # link flags.
13046 rm -rf libconftest.dylib*
13047 echo "int foo(void){return 1;}" > conftest.c
13048 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13049-dynamiclib -Wl,-single_module conftest.c" >&5
13050 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13051 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13052 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013053 # If there is a non-empty error log, and "single_module"
13054 # appears in it, assume the flag caused a linker warning
13055 if test -s conftest.err && $GREP single_module conftest.err; then
13056 cat conftest.err >&5
13057 # Otherwise, if the output was created with a 0 exit code from
13058 # the compiler, it worked.
13059 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013060 lt_cv_apple_cc_single_mod=yes
13061 else
13062 cat conftest.err >&5
13063 fi
13064 rm -rf libconftest.dylib*
13065 rm -f conftest.*
13066 fi
13067fi
13068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13069$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013070
cristy73bd4a52010-10-05 11:24:23 +000013071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13072$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013073if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013074 $as_echo_n "(cached) " >&6
13075else
13076 lt_cv_ld_exported_symbols_list=no
13077 save_LDFLAGS=$LDFLAGS
13078 echo "_main" > conftest.sym
13079 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13081/* end confdefs.h. */
13082
13083int
13084main ()
13085{
13086
13087 ;
13088 return 0;
13089}
13090_ACEOF
13091if ac_fn_c_try_link "$LINENO"; then :
13092 lt_cv_ld_exported_symbols_list=yes
13093else
13094 lt_cv_ld_exported_symbols_list=no
13095fi
13096rm -f core conftest.err conftest.$ac_objext \
13097 conftest$ac_exeext conftest.$ac_ext
13098 LDFLAGS="$save_LDFLAGS"
13099
13100fi
13101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13102$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013103
cristy0c60a692010-11-04 01:09:47 +000013104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13105$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013106if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013107 $as_echo_n "(cached) " >&6
13108else
13109 lt_cv_ld_force_load=no
13110 cat > conftest.c << _LT_EOF
13111int forced_loaded() { return 2;}
13112_LT_EOF
13113 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13114 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13115 echo "$AR cru libconftest.a conftest.o" >&5
13116 $AR cru libconftest.a conftest.o 2>&5
13117 echo "$RANLIB libconftest.a" >&5
13118 $RANLIB libconftest.a 2>&5
13119 cat > conftest.c << _LT_EOF
13120int main() { return 0;}
13121_LT_EOF
13122 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13123 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13124 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013125 if test -s conftest.err && $GREP force_load conftest.err; then
13126 cat conftest.err >&5
13127 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013128 lt_cv_ld_force_load=yes
13129 else
13130 cat conftest.err >&5
13131 fi
13132 rm -f conftest.err libconftest.a conftest conftest.c
13133 rm -rf conftest.dSYM
13134
13135fi
13136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13137$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013138 case $host_os in
13139 rhapsody* | darwin1.[012])
13140 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13141 darwin1.*)
13142 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13143 darwin*) # darwin 5.x on
13144 # if running on 10.5 or later, the deployment target defaults
13145 # to the OS version, if on x86, and 10.4, the deployment
13146 # target defaults to 10.4. Don't you love it?
13147 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13148 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13149 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13150 10.[012]*)
13151 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13152 10.*)
13153 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13154 esac
13155 ;;
13156 esac
13157 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13158 _lt_dar_single_mod='$single_module'
13159 fi
13160 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13161 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13162 else
13163 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13164 fi
cristy0c60a692010-11-04 01:09:47 +000013165 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013166 _lt_dsymutil='~$DSYMUTIL $lib || :'
13167 else
13168 _lt_dsymutil=
13169 fi
13170 ;;
13171 esac
13172
13173for ac_header in dlfcn.h
13174do :
13175 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13176"
cristyda16f162011-02-19 23:52:17 +000013177if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013178 cat >>confdefs.h <<_ACEOF
13179#define HAVE_DLFCN_H 1
13180_ACEOF
13181
13182fi
13183
13184done
13185
13186
13187
cristy73bd4a52010-10-05 11:24:23 +000013188
cristyda16f162011-02-19 23:52:17 +000013189func_stripname_cnf ()
13190{
13191 case ${2} in
13192 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13193 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13194 esac
13195} # func_stripname_cnf
13196
13197
13198
cristy73bd4a52010-10-05 11:24:23 +000013199
13200
13201# Set options
13202enable_win32_dll=yes
13203
13204case $host in
cristy0c60a692010-11-04 01:09:47 +000013205*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013206 if test -n "$ac_tool_prefix"; then
13207 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13208set dummy ${ac_tool_prefix}as; ac_word=$2
13209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13210$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013211if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013212 $as_echo_n "(cached) " >&6
13213else
13214 if test -n "$AS"; then
13215 ac_cv_prog_AS="$AS" # Let the user override the test.
13216else
13217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13218for as_dir in $PATH
13219do
13220 IFS=$as_save_IFS
13221 test -z "$as_dir" && as_dir=.
13222 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013224 ac_cv_prog_AS="${ac_tool_prefix}as"
13225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13226 break 2
13227 fi
13228done
13229 done
13230IFS=$as_save_IFS
13231
13232fi
13233fi
13234AS=$ac_cv_prog_AS
13235if test -n "$AS"; then
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13237$as_echo "$AS" >&6; }
13238else
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13240$as_echo "no" >&6; }
13241fi
13242
13243
13244fi
13245if test -z "$ac_cv_prog_AS"; then
13246 ac_ct_AS=$AS
13247 # Extract the first word of "as", so it can be a program name with args.
13248set dummy as; ac_word=$2
13249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13250$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013251if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013252 $as_echo_n "(cached) " >&6
13253else
13254 if test -n "$ac_ct_AS"; then
13255 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13256else
13257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258for as_dir in $PATH
13259do
13260 IFS=$as_save_IFS
13261 test -z "$as_dir" && as_dir=.
13262 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013264 ac_cv_prog_ac_ct_AS="as"
13265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13266 break 2
13267 fi
13268done
13269 done
13270IFS=$as_save_IFS
13271
13272fi
13273fi
13274ac_ct_AS=$ac_cv_prog_ac_ct_AS
13275if test -n "$ac_ct_AS"; then
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13277$as_echo "$ac_ct_AS" >&6; }
13278else
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13280$as_echo "no" >&6; }
13281fi
13282
13283 if test "x$ac_ct_AS" = x; then
13284 AS="false"
13285 else
13286 case $cross_compiling:$ac_tool_warned in
13287yes:)
13288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13290ac_tool_warned=yes ;;
13291esac
13292 AS=$ac_ct_AS
13293 fi
13294else
13295 AS="$ac_cv_prog_AS"
13296fi
13297
13298 if test -n "$ac_tool_prefix"; then
13299 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13300set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13302$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013303if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013304 $as_echo_n "(cached) " >&6
13305else
13306 if test -n "$DLLTOOL"; then
13307 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13308else
13309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310for as_dir in $PATH
13311do
13312 IFS=$as_save_IFS
13313 test -z "$as_dir" && as_dir=.
13314 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013316 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13318 break 2
13319 fi
13320done
13321 done
13322IFS=$as_save_IFS
13323
13324fi
13325fi
13326DLLTOOL=$ac_cv_prog_DLLTOOL
13327if test -n "$DLLTOOL"; then
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13329$as_echo "$DLLTOOL" >&6; }
13330else
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13332$as_echo "no" >&6; }
13333fi
13334
13335
13336fi
13337if test -z "$ac_cv_prog_DLLTOOL"; then
13338 ac_ct_DLLTOOL=$DLLTOOL
13339 # Extract the first word of "dlltool", so it can be a program name with args.
13340set dummy dlltool; ac_word=$2
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13342$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013343if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013344 $as_echo_n "(cached) " >&6
13345else
13346 if test -n "$ac_ct_DLLTOOL"; then
13347 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13348else
13349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13350for as_dir in $PATH
13351do
13352 IFS=$as_save_IFS
13353 test -z "$as_dir" && as_dir=.
13354 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013356 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13358 break 2
13359 fi
13360done
13361 done
13362IFS=$as_save_IFS
13363
13364fi
13365fi
13366ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13367if test -n "$ac_ct_DLLTOOL"; then
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13369$as_echo "$ac_ct_DLLTOOL" >&6; }
13370else
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372$as_echo "no" >&6; }
13373fi
13374
13375 if test "x$ac_ct_DLLTOOL" = x; then
13376 DLLTOOL="false"
13377 else
13378 case $cross_compiling:$ac_tool_warned in
13379yes:)
13380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13382ac_tool_warned=yes ;;
13383esac
13384 DLLTOOL=$ac_ct_DLLTOOL
13385 fi
13386else
13387 DLLTOOL="$ac_cv_prog_DLLTOOL"
13388fi
13389
13390 if test -n "$ac_tool_prefix"; then
13391 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13392set dummy ${ac_tool_prefix}objdump; ac_word=$2
13393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13394$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013395if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013396 $as_echo_n "(cached) " >&6
13397else
13398 if test -n "$OBJDUMP"; then
13399 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13400else
13401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13402for as_dir in $PATH
13403do
13404 IFS=$as_save_IFS
13405 test -z "$as_dir" && as_dir=.
13406 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013408 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13410 break 2
13411 fi
13412done
13413 done
13414IFS=$as_save_IFS
13415
13416fi
13417fi
13418OBJDUMP=$ac_cv_prog_OBJDUMP
13419if test -n "$OBJDUMP"; then
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13421$as_echo "$OBJDUMP" >&6; }
13422else
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13424$as_echo "no" >&6; }
13425fi
13426
13427
13428fi
13429if test -z "$ac_cv_prog_OBJDUMP"; then
13430 ac_ct_OBJDUMP=$OBJDUMP
13431 # Extract the first word of "objdump", so it can be a program name with args.
13432set dummy objdump; ac_word=$2
13433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13434$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013435if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013436 $as_echo_n "(cached) " >&6
13437else
13438 if test -n "$ac_ct_OBJDUMP"; then
13439 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13440else
13441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442for as_dir in $PATH
13443do
13444 IFS=$as_save_IFS
13445 test -z "$as_dir" && as_dir=.
13446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013448 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13450 break 2
13451 fi
13452done
13453 done
13454IFS=$as_save_IFS
13455
13456fi
13457fi
13458ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13459if test -n "$ac_ct_OBJDUMP"; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13461$as_echo "$ac_ct_OBJDUMP" >&6; }
13462else
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464$as_echo "no" >&6; }
13465fi
13466
13467 if test "x$ac_ct_OBJDUMP" = x; then
13468 OBJDUMP="false"
13469 else
13470 case $cross_compiling:$ac_tool_warned in
13471yes:)
13472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13474ac_tool_warned=yes ;;
13475esac
13476 OBJDUMP=$ac_ct_OBJDUMP
13477 fi
13478else
13479 OBJDUMP="$ac_cv_prog_OBJDUMP"
13480fi
13481
13482 ;;
13483esac
13484
13485test -z "$AS" && AS=as
13486
13487
13488
13489
13490
13491test -z "$DLLTOOL" && DLLTOOL=dlltool
13492
13493
13494
13495
13496
13497test -z "$OBJDUMP" && OBJDUMP=objdump
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507 # Check whether --enable-shared was given.
13508if test "${enable_shared+set}" = set; then :
13509 enableval=$enable_shared; p=${PACKAGE-default}
13510 case $enableval in
13511 yes) enable_shared=yes ;;
13512 no) enable_shared=no ;;
13513 *)
13514 enable_shared=no
13515 # Look at the argument we got. We use all the common list separators.
13516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13517 for pkg in $enableval; do
13518 IFS="$lt_save_ifs"
13519 if test "X$pkg" = "X$p"; then
13520 enable_shared=yes
13521 fi
13522 done
13523 IFS="$lt_save_ifs"
13524 ;;
13525 esac
13526else
13527 enable_shared=yes
13528fi
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538 # Check whether --enable-static was given.
13539if test "${enable_static+set}" = set; then :
13540 enableval=$enable_static; p=${PACKAGE-default}
13541 case $enableval in
13542 yes) enable_static=yes ;;
13543 no) enable_static=no ;;
13544 *)
13545 enable_static=no
13546 # Look at the argument we got. We use all the common list separators.
13547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13548 for pkg in $enableval; do
13549 IFS="$lt_save_ifs"
13550 if test "X$pkg" = "X$p"; then
13551 enable_static=yes
13552 fi
13553 done
13554 IFS="$lt_save_ifs"
13555 ;;
13556 esac
13557else
13558 enable_static=yes
13559fi
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570# Check whether --with-pic was given.
13571if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013572 withval=$with_pic; lt_p=${PACKAGE-default}
13573 case $withval in
13574 yes|no) pic_mode=$withval ;;
13575 *)
13576 pic_mode=default
13577 # Look at the argument we got. We use all the common list separators.
13578 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13579 for lt_pkg in $withval; do
13580 IFS="$lt_save_ifs"
13581 if test "X$lt_pkg" = "X$lt_p"; then
13582 pic_mode=yes
13583 fi
13584 done
13585 IFS="$lt_save_ifs"
13586 ;;
13587 esac
cristy73bd4a52010-10-05 11:24:23 +000013588else
13589 pic_mode=default
13590fi
13591
13592
13593test -z "$pic_mode" && pic_mode=default
13594
13595
13596
13597
13598
13599
13600
13601 # Check whether --enable-fast-install was given.
13602if test "${enable_fast_install+set}" = set; then :
13603 enableval=$enable_fast_install; p=${PACKAGE-default}
13604 case $enableval in
13605 yes) enable_fast_install=yes ;;
13606 no) enable_fast_install=no ;;
13607 *)
13608 enable_fast_install=no
13609 # Look at the argument we got. We use all the common list separators.
13610 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13611 for pkg in $enableval; do
13612 IFS="$lt_save_ifs"
13613 if test "X$pkg" = "X$p"; then
13614 enable_fast_install=yes
13615 fi
13616 done
13617 IFS="$lt_save_ifs"
13618 ;;
13619 esac
13620else
13621 enable_fast_install=yes
13622fi
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634# This can be used to rebuild libtool when needed
13635LIBTOOL_DEPS="$ltmain"
13636
13637# Always use our own libtool.
13638LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
cristy0c60a692010-11-04 01:09:47 +000013664
cristy99bd5232011-12-07 14:38:20 +000013665
13666
13667
13668
cristy73bd4a52010-10-05 11:24:23 +000013669test -z "$LN_S" && LN_S="ln -s"
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684if test -n "${ZSH_VERSION+set}" ; then
13685 setopt NO_GLOB_SUBST
13686fi
13687
13688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13689$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013690if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013691 $as_echo_n "(cached) " >&6
13692else
13693 rm -f .libs 2>/dev/null
13694mkdir .libs 2>/dev/null
13695if test -d .libs; then
13696 lt_cv_objdir=.libs
13697else
13698 # MS-DOS does not allow filenames that begin with a dot.
13699 lt_cv_objdir=_libs
13700fi
13701rmdir .libs 2>/dev/null
13702fi
13703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13704$as_echo "$lt_cv_objdir" >&6; }
13705objdir=$lt_cv_objdir
13706
13707
13708
13709
13710
13711cat >>confdefs.h <<_ACEOF
13712#define LT_OBJDIR "$lt_cv_objdir/"
13713_ACEOF
13714
13715
13716
13717
cristy73bd4a52010-10-05 11:24:23 +000013718case $host_os in
13719aix3*)
13720 # AIX sometimes has problems with the GCC collect2 program. For some
13721 # reason, if we set the COLLECT_NAMES environment variable, the problems
13722 # vanish in a puff of smoke.
13723 if test "X${COLLECT_NAMES+set}" != Xset; then
13724 COLLECT_NAMES=
13725 export COLLECT_NAMES
13726 fi
13727 ;;
13728esac
13729
cristy73bd4a52010-10-05 11:24:23 +000013730# Global variables:
13731ofile=libtool
13732can_build_shared=yes
13733
13734# All known linkers require a `.a' archive for static linking (except MSVC,
13735# which needs '.lib').
13736libext=a
13737
13738with_gnu_ld="$lt_cv_prog_gnu_ld"
13739
13740old_CC="$CC"
13741old_CFLAGS="$CFLAGS"
13742
13743# Set sane defaults for various variables
13744test -z "$CC" && CC=cc
13745test -z "$LTCC" && LTCC=$CC
13746test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13747test -z "$LD" && LD=ld
13748test -z "$ac_objext" && ac_objext=o
13749
13750for cc_temp in $compiler""; do
13751 case $cc_temp in
13752 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13753 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13754 \-*) ;;
13755 *) break;;
13756 esac
13757done
cristy0c60a692010-11-04 01:09:47 +000013758cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013759
13760
13761# Only perform the check for file, if the check method requires it
13762test -z "$MAGIC_CMD" && MAGIC_CMD=file
13763case $deplibs_check_method in
13764file_magic*)
13765 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13767$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013768if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013769 $as_echo_n "(cached) " >&6
13770else
13771 case $MAGIC_CMD in
13772[\\/*] | ?:[\\/]*)
13773 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13774 ;;
13775*)
13776 lt_save_MAGIC_CMD="$MAGIC_CMD"
13777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13778 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13779 for ac_dir in $ac_dummy; do
13780 IFS="$lt_save_ifs"
13781 test -z "$ac_dir" && ac_dir=.
13782 if test -f $ac_dir/${ac_tool_prefix}file; then
13783 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13784 if test -n "$file_magic_test_file"; then
13785 case $deplibs_check_method in
13786 "file_magic "*)
13787 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13788 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13789 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13790 $EGREP "$file_magic_regex" > /dev/null; then
13791 :
13792 else
13793 cat <<_LT_EOF 1>&2
13794
13795*** Warning: the command libtool uses to detect shared libraries,
13796*** $file_magic_cmd, produces output that libtool cannot recognize.
13797*** The result is that libtool may fail to recognize shared libraries
13798*** as such. This will affect the creation of libtool libraries that
13799*** depend on shared libraries, but programs linked with such libtool
13800*** libraries will work regardless of this problem. Nevertheless, you
13801*** may want to report the problem to your system manager and/or to
13802*** bug-libtool@gnu.org
13803
13804_LT_EOF
13805 fi ;;
13806 esac
13807 fi
13808 break
13809 fi
13810 done
13811 IFS="$lt_save_ifs"
13812 MAGIC_CMD="$lt_save_MAGIC_CMD"
13813 ;;
13814esac
13815fi
13816
13817MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13818if test -n "$MAGIC_CMD"; then
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13820$as_echo "$MAGIC_CMD" >&6; }
13821else
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13823$as_echo "no" >&6; }
13824fi
13825
13826
13827
13828
13829
13830if test -z "$lt_cv_path_MAGIC_CMD"; then
13831 if test -n "$ac_tool_prefix"; then
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13833$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013834if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013835 $as_echo_n "(cached) " >&6
13836else
13837 case $MAGIC_CMD in
13838[\\/*] | ?:[\\/]*)
13839 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13840 ;;
13841*)
13842 lt_save_MAGIC_CMD="$MAGIC_CMD"
13843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13844 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13845 for ac_dir in $ac_dummy; do
13846 IFS="$lt_save_ifs"
13847 test -z "$ac_dir" && ac_dir=.
13848 if test -f $ac_dir/file; then
13849 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13850 if test -n "$file_magic_test_file"; then
13851 case $deplibs_check_method in
13852 "file_magic "*)
13853 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13854 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13855 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13856 $EGREP "$file_magic_regex" > /dev/null; then
13857 :
13858 else
13859 cat <<_LT_EOF 1>&2
13860
13861*** Warning: the command libtool uses to detect shared libraries,
13862*** $file_magic_cmd, produces output that libtool cannot recognize.
13863*** The result is that libtool may fail to recognize shared libraries
13864*** as such. This will affect the creation of libtool libraries that
13865*** depend on shared libraries, but programs linked with such libtool
13866*** libraries will work regardless of this problem. Nevertheless, you
13867*** may want to report the problem to your system manager and/or to
13868*** bug-libtool@gnu.org
13869
13870_LT_EOF
13871 fi ;;
13872 esac
13873 fi
13874 break
13875 fi
13876 done
13877 IFS="$lt_save_ifs"
13878 MAGIC_CMD="$lt_save_MAGIC_CMD"
13879 ;;
13880esac
13881fi
13882
13883MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13884if test -n "$MAGIC_CMD"; then
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13886$as_echo "$MAGIC_CMD" >&6; }
13887else
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13889$as_echo "no" >&6; }
13890fi
13891
13892
13893 else
13894 MAGIC_CMD=:
13895 fi
13896fi
13897
13898 fi
13899 ;;
13900esac
13901
13902# Use C for the default configuration in the libtool script
13903
13904lt_save_CC="$CC"
13905ac_ext=c
13906ac_cpp='$CPP $CPPFLAGS'
13907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13909ac_compiler_gnu=$ac_cv_c_compiler_gnu
13910
13911
13912# Source file extension for C test sources.
13913ac_ext=c
13914
13915# Object file extension for compiled C test sources.
13916objext=o
13917objext=$objext
13918
13919# Code to be used in simple compile tests
13920lt_simple_compile_test_code="int some_variable = 0;"
13921
13922# Code to be used in simple link tests
13923lt_simple_link_test_code='int main(){return(0);}'
13924
13925
13926
13927
13928
13929
13930
13931# If no C compiler was specified, use CC.
13932LTCC=${LTCC-"$CC"}
13933
13934# If no C compiler flags were specified, use CFLAGS.
13935LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13936
13937# Allow CC to be a program name with arguments.
13938compiler=$CC
13939
13940# Save the default compiler, since it gets overwritten when the other
13941# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13942compiler_DEFAULT=$CC
13943
13944# save warnings/boilerplate of simple test code
13945ac_outfile=conftest.$ac_objext
13946echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13947eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13948_lt_compiler_boilerplate=`cat conftest.err`
13949$RM conftest*
13950
13951ac_outfile=conftest.$ac_objext
13952echo "$lt_simple_link_test_code" >conftest.$ac_ext
13953eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13954_lt_linker_boilerplate=`cat conftest.err`
13955$RM -r conftest*
13956
13957
13958## CAVEAT EMPTOR:
13959## There is no encapsulation within the following macros, do not change
13960## the running order or otherwise move them around unless you know exactly
13961## what you are doing...
13962if test -n "$compiler"; then
13963
13964lt_prog_compiler_no_builtin_flag=
13965
13966if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013967 case $cc_basename in
13968 nvcc*)
13969 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13970 *)
13971 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13972 esac
cristy73bd4a52010-10-05 11:24:23 +000013973
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13975$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013976if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013977 $as_echo_n "(cached) " >&6
13978else
13979 lt_cv_prog_compiler_rtti_exceptions=no
13980 ac_outfile=conftest.$ac_objext
13981 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13982 lt_compiler_flag="-fno-rtti -fno-exceptions"
13983 # Insert the option either (1) after the last *FLAGS variable, or
13984 # (2) before a word containing "conftest.", or (3) at the end.
13985 # Note that $ac_compile itself does not contain backslashes and begins
13986 # with a dollar sign (not a hyphen), so the echo should work correctly.
13987 # The option is referenced via a variable to avoid confusing sed.
13988 lt_compile=`echo "$ac_compile" | $SED \
13989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13991 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013992 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013993 (eval "$lt_compile" 2>conftest.err)
13994 ac_status=$?
13995 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013997 if (exit $ac_status) && test -s "$ac_outfile"; then
13998 # The compiler can only warn and ignore the option if not recognized
13999 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014000 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014001 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14002 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14003 lt_cv_prog_compiler_rtti_exceptions=yes
14004 fi
14005 fi
14006 $RM conftest*
14007
14008fi
14009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14010$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14011
14012if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14013 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14014else
14015 :
14016fi
14017
14018fi
14019
14020
14021
14022
14023
14024
14025 lt_prog_compiler_wl=
14026lt_prog_compiler_pic=
14027lt_prog_compiler_static=
14028
cristy73bd4a52010-10-05 11:24:23 +000014029
14030 if test "$GCC" = yes; then
14031 lt_prog_compiler_wl='-Wl,'
14032 lt_prog_compiler_static='-static'
14033
14034 case $host_os in
14035 aix*)
14036 # All AIX code is PIC.
14037 if test "$host_cpu" = ia64; then
14038 # AIX 5 now supports IA64 processor
14039 lt_prog_compiler_static='-Bstatic'
14040 fi
14041 ;;
14042
14043 amigaos*)
14044 case $host_cpu in
14045 powerpc)
14046 # see comment about AmigaOS4 .so support
14047 lt_prog_compiler_pic='-fPIC'
14048 ;;
14049 m68k)
14050 # FIXME: we need at least 68020 code to build shared libraries, but
14051 # adding the `-m68020' flag to GCC prevents building anything better,
14052 # like `-m68040'.
14053 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14054 ;;
14055 esac
14056 ;;
14057
14058 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14059 # PIC is the default for these OSes.
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 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14066 # (--disable-auto-import) libraries
14067 lt_prog_compiler_pic='-DDLL_EXPORT'
14068 ;;
14069
14070 darwin* | rhapsody*)
14071 # PIC is the default on this platform
14072 # Common symbols not allowed in MH_DYLIB files
14073 lt_prog_compiler_pic='-fno-common'
14074 ;;
14075
cristy0c60a692010-11-04 01:09:47 +000014076 haiku*)
14077 # PIC is the default for Haiku.
14078 # The "-static" flag exists, but is broken.
14079 lt_prog_compiler_static=
14080 ;;
14081
cristy73bd4a52010-10-05 11:24:23 +000014082 hpux*)
14083 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14084 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14085 # sets the default TLS model and affects inlining.
14086 case $host_cpu in
14087 hppa*64*)
14088 # +Z the default
14089 ;;
14090 *)
14091 lt_prog_compiler_pic='-fPIC'
14092 ;;
14093 esac
14094 ;;
14095
14096 interix[3-9]*)
14097 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14098 # Instead, we relocate shared libraries at runtime.
14099 ;;
14100
14101 msdosdjgpp*)
14102 # Just because we use GCC doesn't mean we suddenly get shared libraries
14103 # on systems that don't support them.
14104 lt_prog_compiler_can_build_shared=no
14105 enable_shared=no
14106 ;;
14107
14108 *nto* | *qnx*)
14109 # QNX uses GNU C++, but need to define -shared option too, otherwise
14110 # it will coredump.
14111 lt_prog_compiler_pic='-fPIC -shared'
14112 ;;
14113
14114 sysv4*MP*)
14115 if test -d /usr/nec; then
14116 lt_prog_compiler_pic=-Kconform_pic
14117 fi
14118 ;;
14119
14120 *)
14121 lt_prog_compiler_pic='-fPIC'
14122 ;;
14123 esac
cristy0c60a692010-11-04 01:09:47 +000014124
14125 case $cc_basename in
14126 nvcc*) # Cuda Compiler Driver 2.2
14127 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014128 if test -n "$lt_prog_compiler_pic"; then
14129 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14130 fi
cristy0c60a692010-11-04 01:09:47 +000014131 ;;
14132 esac
cristy73bd4a52010-10-05 11:24:23 +000014133 else
14134 # PORTME Check for flag to pass linker flags through the system compiler.
14135 case $host_os in
14136 aix*)
14137 lt_prog_compiler_wl='-Wl,'
14138 if test "$host_cpu" = ia64; then
14139 # AIX 5 now supports IA64 processor
14140 lt_prog_compiler_static='-Bstatic'
14141 else
14142 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14143 fi
14144 ;;
14145
14146 mingw* | cygwin* | pw32* | os2* | cegcc*)
14147 # This hack is so that the source file can tell whether it is being
14148 # built for inclusion in a dll (and should export symbols for example).
14149 lt_prog_compiler_pic='-DDLL_EXPORT'
14150 ;;
14151
14152 hpux9* | hpux10* | hpux11*)
14153 lt_prog_compiler_wl='-Wl,'
14154 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14155 # not for PA HP-UX.
14156 case $host_cpu in
14157 hppa*64*|ia64*)
14158 # +Z the default
14159 ;;
14160 *)
14161 lt_prog_compiler_pic='+Z'
14162 ;;
14163 esac
14164 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14165 lt_prog_compiler_static='${wl}-a ${wl}archive'
14166 ;;
14167
14168 irix5* | irix6* | nonstopux*)
14169 lt_prog_compiler_wl='-Wl,'
14170 # PIC (with -KPIC) is the default.
14171 lt_prog_compiler_static='-non_shared'
14172 ;;
14173
cristy0c60a692010-11-04 01:09:47 +000014174 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014175 case $cc_basename in
14176 # old Intel for x86_64 which still supported -KPIC.
14177 ecc*)
14178 lt_prog_compiler_wl='-Wl,'
14179 lt_prog_compiler_pic='-KPIC'
14180 lt_prog_compiler_static='-static'
14181 ;;
14182 # icc used to be incompatible with GCC.
14183 # ICC 10 doesn't accept -KPIC any more.
14184 icc* | ifort*)
14185 lt_prog_compiler_wl='-Wl,'
14186 lt_prog_compiler_pic='-fPIC'
14187 lt_prog_compiler_static='-static'
14188 ;;
14189 # Lahey Fortran 8.1.
14190 lf95*)
14191 lt_prog_compiler_wl='-Wl,'
14192 lt_prog_compiler_pic='--shared'
14193 lt_prog_compiler_static='--static'
14194 ;;
cristyda16f162011-02-19 23:52:17 +000014195 nagfor*)
14196 # NAG Fortran compiler
14197 lt_prog_compiler_wl='-Wl,-Wl,,'
14198 lt_prog_compiler_pic='-PIC'
14199 lt_prog_compiler_static='-Bstatic'
14200 ;;
cristy0c60a692010-11-04 01:09:47 +000014201 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014202 # Portland Group compilers (*not* the Pentium gcc compiler,
14203 # which looks to be a dead project)
14204 lt_prog_compiler_wl='-Wl,'
14205 lt_prog_compiler_pic='-fpic'
14206 lt_prog_compiler_static='-Bstatic'
14207 ;;
14208 ccc*)
14209 lt_prog_compiler_wl='-Wl,'
14210 # All Alpha code is PIC.
14211 lt_prog_compiler_static='-non_shared'
14212 ;;
cristy0c60a692010-11-04 01:09:47 +000014213 xl* | bgxl* | bgf* | mpixl*)
14214 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014215 lt_prog_compiler_wl='-Wl,'
14216 lt_prog_compiler_pic='-qpic'
14217 lt_prog_compiler_static='-qstaticlink'
14218 ;;
14219 *)
14220 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014221 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014222 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14223 lt_prog_compiler_pic='-KPIC'
14224 lt_prog_compiler_static='-Bstatic'
14225 lt_prog_compiler_wl=''
14226 ;;
cristy99bd5232011-12-07 14:38:20 +000014227 *Sun\ F* | *Sun*Fortran*)
14228 lt_prog_compiler_pic='-KPIC'
14229 lt_prog_compiler_static='-Bstatic'
14230 lt_prog_compiler_wl='-Qoption ld '
14231 ;;
cristy73bd4a52010-10-05 11:24:23 +000014232 *Sun\ C*)
14233 # Sun C 5.9
14234 lt_prog_compiler_pic='-KPIC'
14235 lt_prog_compiler_static='-Bstatic'
14236 lt_prog_compiler_wl='-Wl,'
14237 ;;
cristy99bd5232011-12-07 14:38:20 +000014238 *Intel*\ [CF]*Compiler*)
14239 lt_prog_compiler_wl='-Wl,'
14240 lt_prog_compiler_pic='-fPIC'
14241 lt_prog_compiler_static='-static'
14242 ;;
14243 *Portland\ Group*)
14244 lt_prog_compiler_wl='-Wl,'
14245 lt_prog_compiler_pic='-fpic'
14246 lt_prog_compiler_static='-Bstatic'
14247 ;;
cristy73bd4a52010-10-05 11:24:23 +000014248 esac
14249 ;;
14250 esac
14251 ;;
14252
14253 newsos6)
14254 lt_prog_compiler_pic='-KPIC'
14255 lt_prog_compiler_static='-Bstatic'
14256 ;;
14257
14258 *nto* | *qnx*)
14259 # QNX uses GNU C++, but need to define -shared option too, otherwise
14260 # it will coredump.
14261 lt_prog_compiler_pic='-fPIC -shared'
14262 ;;
14263
14264 osf3* | osf4* | osf5*)
14265 lt_prog_compiler_wl='-Wl,'
14266 # All OSF/1 code is PIC.
14267 lt_prog_compiler_static='-non_shared'
14268 ;;
14269
14270 rdos*)
14271 lt_prog_compiler_static='-non_shared'
14272 ;;
14273
14274 solaris*)
14275 lt_prog_compiler_pic='-KPIC'
14276 lt_prog_compiler_static='-Bstatic'
14277 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014278 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014279 lt_prog_compiler_wl='-Qoption ld ';;
14280 *)
14281 lt_prog_compiler_wl='-Wl,';;
14282 esac
14283 ;;
14284
14285 sunos4*)
14286 lt_prog_compiler_wl='-Qoption ld '
14287 lt_prog_compiler_pic='-PIC'
14288 lt_prog_compiler_static='-Bstatic'
14289 ;;
14290
14291 sysv4 | sysv4.2uw2* | sysv4.3*)
14292 lt_prog_compiler_wl='-Wl,'
14293 lt_prog_compiler_pic='-KPIC'
14294 lt_prog_compiler_static='-Bstatic'
14295 ;;
14296
14297 sysv4*MP*)
14298 if test -d /usr/nec ;then
14299 lt_prog_compiler_pic='-Kconform_pic'
14300 lt_prog_compiler_static='-Bstatic'
14301 fi
14302 ;;
14303
14304 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14305 lt_prog_compiler_wl='-Wl,'
14306 lt_prog_compiler_pic='-KPIC'
14307 lt_prog_compiler_static='-Bstatic'
14308 ;;
14309
14310 unicos*)
14311 lt_prog_compiler_wl='-Wl,'
14312 lt_prog_compiler_can_build_shared=no
14313 ;;
14314
14315 uts4*)
14316 lt_prog_compiler_pic='-pic'
14317 lt_prog_compiler_static='-Bstatic'
14318 ;;
14319
14320 *)
14321 lt_prog_compiler_can_build_shared=no
14322 ;;
14323 esac
14324 fi
14325
14326case $host_os in
14327 # For platforms which do not support PIC, -DPIC is meaningless:
14328 *djgpp*)
14329 lt_prog_compiler_pic=
14330 ;;
14331 *)
14332 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14333 ;;
14334esac
cristy73bd4a52010-10-05 11:24:23 +000014335
cristyda16f162011-02-19 23:52:17 +000014336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14337$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14338if ${lt_cv_prog_compiler_pic+:} false; then :
14339 $as_echo_n "(cached) " >&6
14340else
14341 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14342fi
14343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14344$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14345lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014346
14347#
14348# Check to make sure the PIC flag actually works.
14349#
14350if test -n "$lt_prog_compiler_pic"; then
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14352$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014353if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014354 $as_echo_n "(cached) " >&6
14355else
14356 lt_cv_prog_compiler_pic_works=no
14357 ac_outfile=conftest.$ac_objext
14358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14359 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14360 # Insert the option either (1) after the last *FLAGS variable, or
14361 # (2) before a word containing "conftest.", or (3) at the end.
14362 # Note that $ac_compile itself does not contain backslashes and begins
14363 # with a dollar sign (not a hyphen), so the echo should work correctly.
14364 # The option is referenced via a variable to avoid confusing sed.
14365 lt_compile=`echo "$ac_compile" | $SED \
14366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14368 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014369 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014370 (eval "$lt_compile" 2>conftest.err)
14371 ac_status=$?
14372 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014374 if (exit $ac_status) && test -s "$ac_outfile"; then
14375 # The compiler can only warn and ignore the option if not recognized
14376 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014377 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14379 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14380 lt_cv_prog_compiler_pic_works=yes
14381 fi
14382 fi
14383 $RM conftest*
14384
14385fi
14386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14387$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14388
14389if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14390 case $lt_prog_compiler_pic in
14391 "" | " "*) ;;
14392 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14393 esac
14394else
14395 lt_prog_compiler_pic=
14396 lt_prog_compiler_can_build_shared=no
14397fi
14398
14399fi
14400
14401
14402
14403
14404
14405
cristyda16f162011-02-19 23:52:17 +000014406
14407
14408
14409
14410
cristy73bd4a52010-10-05 11:24:23 +000014411#
14412# Check to make sure the static flag actually works.
14413#
14414wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14416$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014417if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014418 $as_echo_n "(cached) " >&6
14419else
14420 lt_cv_prog_compiler_static_works=no
14421 save_LDFLAGS="$LDFLAGS"
14422 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14423 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14424 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14425 # The linker can only warn and ignore the option if not recognized
14426 # So say no if there are warnings
14427 if test -s conftest.err; then
14428 # Append any errors to the config.log.
14429 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014430 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14432 if diff conftest.exp conftest.er2 >/dev/null; then
14433 lt_cv_prog_compiler_static_works=yes
14434 fi
14435 else
14436 lt_cv_prog_compiler_static_works=yes
14437 fi
14438 fi
14439 $RM -r conftest*
14440 LDFLAGS="$save_LDFLAGS"
14441
14442fi
14443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14444$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14445
14446if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14447 :
14448else
14449 lt_prog_compiler_static=
14450fi
14451
14452
14453
14454
14455
14456
14457
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14459$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014460if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014461 $as_echo_n "(cached) " >&6
14462else
14463 lt_cv_prog_compiler_c_o=no
14464 $RM -r conftest 2>/dev/null
14465 mkdir conftest
14466 cd conftest
14467 mkdir out
14468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14469
14470 lt_compiler_flag="-o out/conftest2.$ac_objext"
14471 # Insert the option either (1) after the last *FLAGS variable, or
14472 # (2) before a word containing "conftest.", or (3) at the end.
14473 # Note that $ac_compile itself does not contain backslashes and begins
14474 # with a dollar sign (not a hyphen), so the echo should work correctly.
14475 lt_compile=`echo "$ac_compile" | $SED \
14476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14478 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014479 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014480 (eval "$lt_compile" 2>out/conftest.err)
14481 ac_status=$?
14482 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014484 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14485 then
14486 # The compiler can only warn and ignore the option if not recognized
14487 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014488 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014489 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14490 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14491 lt_cv_prog_compiler_c_o=yes
14492 fi
14493 fi
14494 chmod u+w . 2>&5
14495 $RM conftest*
14496 # SGI C++ compiler will create directory out/ii_files/ for
14497 # template instantiation
14498 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14499 $RM out/* && rmdir out
14500 cd ..
14501 $RM -r conftest
14502 $RM conftest*
14503
14504fi
14505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14506$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14507
14508
14509
14510
14511
14512
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14514$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014515if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014516 $as_echo_n "(cached) " >&6
14517else
14518 lt_cv_prog_compiler_c_o=no
14519 $RM -r conftest 2>/dev/null
14520 mkdir conftest
14521 cd conftest
14522 mkdir out
14523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14524
14525 lt_compiler_flag="-o out/conftest2.$ac_objext"
14526 # Insert the option either (1) after the last *FLAGS variable, or
14527 # (2) before a word containing "conftest.", or (3) at the end.
14528 # Note that $ac_compile itself does not contain backslashes and begins
14529 # with a dollar sign (not a hyphen), so the echo should work correctly.
14530 lt_compile=`echo "$ac_compile" | $SED \
14531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14533 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014534 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014535 (eval "$lt_compile" 2>out/conftest.err)
14536 ac_status=$?
14537 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014539 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14540 then
14541 # The compiler can only warn and ignore the option if not recognized
14542 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014543 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014544 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14545 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14546 lt_cv_prog_compiler_c_o=yes
14547 fi
14548 fi
14549 chmod u+w . 2>&5
14550 $RM conftest*
14551 # SGI C++ compiler will create directory out/ii_files/ for
14552 # template instantiation
14553 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14554 $RM out/* && rmdir out
14555 cd ..
14556 $RM -r conftest
14557 $RM conftest*
14558
14559fi
14560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14561$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14562
14563
14564
14565
14566hard_links="nottested"
14567if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14568 # do not overwrite the value of need_locks provided by the user
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14570$as_echo_n "checking if we can lock with hard links... " >&6; }
14571 hard_links=yes
14572 $RM conftest*
14573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14574 touch conftest.a
14575 ln conftest.a conftest.b 2>&5 || hard_links=no
14576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14578$as_echo "$hard_links" >&6; }
14579 if test "$hard_links" = no; then
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14581$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14582 need_locks=warn
14583 fi
14584else
14585 need_locks=no
14586fi
14587
14588
14589
14590
14591
14592
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14594$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14595
14596 runpath_var=
14597 allow_undefined_flag=
14598 always_export_symbols=no
14599 archive_cmds=
14600 archive_expsym_cmds=
14601 compiler_needs_object=no
14602 enable_shared_with_static_runtimes=no
14603 export_dynamic_flag_spec=
14604 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14605 hardcode_automatic=no
14606 hardcode_direct=no
14607 hardcode_direct_absolute=no
14608 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014609 hardcode_libdir_separator=
14610 hardcode_minus_L=no
14611 hardcode_shlibpath_var=unsupported
14612 inherit_rpath=no
14613 link_all_deplibs=unknown
14614 module_cmds=
14615 module_expsym_cmds=
14616 old_archive_from_new_cmds=
14617 old_archive_from_expsyms_cmds=
14618 thread_safe_flag_spec=
14619 whole_archive_flag_spec=
14620 # include_expsyms should be a list of space-separated symbols to be *always*
14621 # included in the symbol list
14622 include_expsyms=
14623 # exclude_expsyms can be an extended regexp of symbols to exclude
14624 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14625 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14626 # as well as any symbol that contains `d'.
14627 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14628 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14629 # platforms (ab)use it in PIC code, but their linkers get confused if
14630 # the symbol is explicitly referenced. Since portable code cannot
14631 # rely on this symbol name, it's probably fine to never include it in
14632 # preloaded symbol tables.
14633 # Exclude shared library initialization/finalization symbols.
14634 extract_expsyms_cmds=
14635
14636 case $host_os in
14637 cygwin* | mingw* | pw32* | cegcc*)
14638 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14639 # When not using gcc, we currently assume that we are using
14640 # Microsoft Visual C++.
14641 if test "$GCC" != yes; then
14642 with_gnu_ld=no
14643 fi
14644 ;;
14645 interix*)
14646 # we just hope/assume this is gcc and not c89 (= MSVC++)
14647 with_gnu_ld=yes
14648 ;;
14649 openbsd*)
14650 with_gnu_ld=no
14651 ;;
14652 esac
14653
14654 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014655
14656 # On some targets, GNU ld is compatible enough with the native linker
14657 # that we're better off using the native interface for both.
14658 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014659 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014660 case $host_os in
14661 aix*)
14662 # The AIX port of GNU ld has always aspired to compatibility
14663 # with the native linker. However, as the warning in the GNU ld
14664 # block says, versions before 2.19.5* couldn't really create working
14665 # shared libraries, regardless of the interface used.
14666 case `$LD -v 2>&1` in
14667 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14668 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14669 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14670 *)
14671 lt_use_gnu_ld_interface=yes
14672 ;;
14673 esac
14674 ;;
14675 *)
14676 lt_use_gnu_ld_interface=yes
14677 ;;
14678 esac
14679 fi
14680
14681 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014682 # If archive_cmds runs LD, not CC, wlarc should be empty
14683 wlarc='${wl}'
14684
14685 # Set some defaults for GNU ld with shared library support. These
14686 # are reset later if shared libraries are not supported. Putting them
14687 # here allows them to be overridden if necessary.
14688 runpath_var=LD_RUN_PATH
14689 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14690 export_dynamic_flag_spec='${wl}--export-dynamic'
14691 # ancient GNU ld didn't support --whole-archive et. al.
14692 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14693 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14694 else
14695 whole_archive_flag_spec=
14696 fi
14697 supports_anon_versioning=no
14698 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014699 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014700 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14701 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14702 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14703 *\ 2.11.*) ;; # other 2.11 versions
14704 *) supports_anon_versioning=yes ;;
14705 esac
14706
14707 # See if GNU ld supports shared libraries.
14708 case $host_os in
14709 aix[3-9]*)
14710 # On AIX/PPC, the GNU linker is very broken
14711 if test "$host_cpu" != ia64; then
14712 ld_shlibs=no
14713 cat <<_LT_EOF 1>&2
14714
cristy0c60a692010-11-04 01:09:47 +000014715*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014716*** to be unable to reliably create shared libraries on AIX.
14717*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014718*** really care for shared libraries, you may want to install binutils
14719*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14720*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014721
14722_LT_EOF
14723 fi
14724 ;;
14725
14726 amigaos*)
14727 case $host_cpu in
14728 powerpc)
14729 # see comment about AmigaOS4 .so support
14730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14731 archive_expsym_cmds=''
14732 ;;
14733 m68k)
14734 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)'
14735 hardcode_libdir_flag_spec='-L$libdir'
14736 hardcode_minus_L=yes
14737 ;;
14738 esac
14739 ;;
14740
14741 beos*)
14742 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14743 allow_undefined_flag=unsupported
14744 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14745 # support --undefined. This deserves some investigation. FIXME
14746 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14747 else
14748 ld_shlibs=no
14749 fi
14750 ;;
14751
14752 cygwin* | mingw* | pw32* | cegcc*)
14753 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14754 # as there is no search path for DLLs.
14755 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014756 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014757 allow_undefined_flag=unsupported
14758 always_export_symbols=no
14759 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014760 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'
14761 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 +000014762
14763 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14765 # If the export-symbols file already is a .def file (1st line
14766 # is EXPORTS), use it as is; otherwise, prepend...
14767 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14768 cp $export_symbols $output_objdir/$soname.def;
14769 else
14770 echo EXPORTS > $output_objdir/$soname.def;
14771 cat $export_symbols >> $output_objdir/$soname.def;
14772 fi~
14773 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14774 else
14775 ld_shlibs=no
14776 fi
14777 ;;
14778
cristy0c60a692010-11-04 01:09:47 +000014779 haiku*)
14780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14781 link_all_deplibs=yes
14782 ;;
14783
cristy73bd4a52010-10-05 11:24:23 +000014784 interix[3-9]*)
14785 hardcode_direct=no
14786 hardcode_shlibpath_var=no
14787 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14788 export_dynamic_flag_spec='${wl}-E'
14789 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14790 # Instead, shared libraries are loaded at an image base (0x10000000 by
14791 # default) and relocated if they conflict, which is a slow very memory
14792 # consuming and fragmenting process. To avoid this, we pick a random,
14793 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14794 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14795 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14796 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'
14797 ;;
14798
cristy0c60a692010-11-04 01:09:47 +000014799 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014800 tmp_diet=no
14801 if test "$host_os" = linux-dietlibc; then
14802 case $cc_basename in
14803 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14804 esac
14805 fi
14806 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14807 && test "$tmp_diet" = no
14808 then
cristyda16f162011-02-19 23:52:17 +000014809 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014810 tmp_sharedflag='-shared'
14811 case $cc_basename,$host_cpu in
14812 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014813 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 +000014814 tmp_addflag=' $pic_flag'
14815 ;;
cristy0c60a692010-11-04 01:09:47 +000014816 pgf77* | pgf90* | pgf95* | pgfortran*)
14817 # Portland Group f77 and f90 compilers
14818 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 +000014819 tmp_addflag=' $pic_flag -Mnomain' ;;
14820 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14821 tmp_addflag=' -i_dynamic' ;;
14822 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14823 tmp_addflag=' -i_dynamic -nofor_main' ;;
14824 ifc* | ifort*) # Intel Fortran compiler
14825 tmp_addflag=' -nofor_main' ;;
14826 lf95*) # Lahey Fortran 8.1
14827 whole_archive_flag_spec=
14828 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014829 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014830 tmp_sharedflag='-qmkshrobj'
14831 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014832 nvcc*) # Cuda Compiler Driver 2.2
14833 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'
14834 compiler_needs_object=yes
14835 ;;
cristy73bd4a52010-10-05 11:24:23 +000014836 esac
14837 case `$CC -V 2>&1 | sed 5q` in
14838 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014839 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 +000014840 compiler_needs_object=yes
14841 tmp_sharedflag='-G' ;;
14842 *Sun\ F*) # Sun Fortran 8.3
14843 tmp_sharedflag='-G' ;;
14844 esac
14845 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14846
14847 if test "x$supports_anon_versioning" = xyes; then
14848 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14849 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14850 echo "local: *; };" >> $output_objdir/$libname.ver~
14851 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14852 fi
14853
14854 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014855 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014856 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14857 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014859 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014860 if test "x$supports_anon_versioning" = xyes; then
14861 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14862 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14863 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014864 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014865 fi
14866 ;;
14867 esac
14868 else
14869 ld_shlibs=no
14870 fi
14871 ;;
14872
14873 netbsd*)
14874 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14875 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14876 wlarc=
14877 else
cristyda16f162011-02-19 23:52:17 +000014878 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14879 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 +000014880 fi
14881 ;;
14882
14883 solaris*)
14884 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14885 ld_shlibs=no
14886 cat <<_LT_EOF 1>&2
14887
14888*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14889*** create shared libraries on Solaris systems. Therefore, libtool
14890*** is disabling shared libraries support. We urge you to upgrade GNU
14891*** binutils to release 2.9.1 or newer. Another option is to modify
14892*** your PATH or compiler configuration so that the native linker is
14893*** used, and then restart.
14894
14895_LT_EOF
14896 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014897 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14898 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 +000014899 else
14900 ld_shlibs=no
14901 fi
14902 ;;
14903
14904 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14905 case `$LD -v 2>&1` in
14906 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14907 ld_shlibs=no
14908 cat <<_LT_EOF 1>&2
14909
14910*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14911*** reliably create shared libraries on SCO systems. Therefore, libtool
14912*** is disabling shared libraries support. We urge you to upgrade GNU
14913*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14914*** your PATH or compiler configuration so that the native linker is
14915*** used, and then restart.
14916
14917_LT_EOF
14918 ;;
14919 *)
14920 # For security reasons, it is highly recommended that you always
14921 # use absolute paths for naming shared libraries, and exclude the
14922 # DT_RUNPATH tag from executables and libraries. But doing so
14923 # requires that you compile everything twice, which is a pain.
14924 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14927 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14928 else
14929 ld_shlibs=no
14930 fi
14931 ;;
14932 esac
14933 ;;
14934
14935 sunos4*)
14936 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14937 wlarc=
14938 hardcode_direct=yes
14939 hardcode_shlibpath_var=no
14940 ;;
14941
14942 *)
14943 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014944 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14945 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 +000014946 else
14947 ld_shlibs=no
14948 fi
14949 ;;
14950 esac
14951
14952 if test "$ld_shlibs" = no; then
14953 runpath_var=
14954 hardcode_libdir_flag_spec=
14955 export_dynamic_flag_spec=
14956 whole_archive_flag_spec=
14957 fi
14958 else
14959 # PORTME fill in a description of your system's linker (not GNU ld)
14960 case $host_os in
14961 aix3*)
14962 allow_undefined_flag=unsupported
14963 always_export_symbols=yes
14964 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'
14965 # Note: this linker hardcodes the directories in LIBPATH if there
14966 # are no directories specified by -L.
14967 hardcode_minus_L=yes
14968 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14969 # Neither direct hardcoding nor static linking is supported with a
14970 # broken collect2.
14971 hardcode_direct=unsupported
14972 fi
14973 ;;
14974
14975 aix[4-9]*)
14976 if test "$host_cpu" = ia64; then
14977 # On IA64, the linker does run time linking by default, so we don't
14978 # have to do anything special.
14979 aix_use_runtimelinking=no
14980 exp_sym_flag='-Bexport'
14981 no_entry_flag=""
14982 else
14983 # If we're using GNU nm, then we don't want the "-C" option.
14984 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014985 # Also, AIX nm treats weak defined symbols like other global
14986 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014987 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014988 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 +000014989 else
14990 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'
14991 fi
14992 aix_use_runtimelinking=no
14993
14994 # Test if we are trying to use run time linking or normal
14995 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14996 # need to do runtime linking.
14997 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14998 for ld_flag in $LDFLAGS; do
14999 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15000 aix_use_runtimelinking=yes
15001 break
15002 fi
15003 done
15004 ;;
15005 esac
15006
15007 exp_sym_flag='-bexport'
15008 no_entry_flag='-bnoentry'
15009 fi
15010
15011 # When large executables or shared objects are built, AIX ld can
15012 # have problems creating the table of contents. If linking a library
15013 # or program results in "error TOC overflow" add -mminimal-toc to
15014 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15015 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15016
15017 archive_cmds=''
15018 hardcode_direct=yes
15019 hardcode_direct_absolute=yes
15020 hardcode_libdir_separator=':'
15021 link_all_deplibs=yes
15022 file_list_spec='${wl}-f,'
15023
15024 if test "$GCC" = yes; then
15025 case $host_os in aix4.[012]|aix4.[012].*)
15026 # We only want to do this on AIX 4.2 and lower, the check
15027 # below for broken collect2 doesn't work under 4.3+
15028 collect2name=`${CC} -print-prog-name=collect2`
15029 if test -f "$collect2name" &&
15030 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15031 then
15032 # We have reworked collect2
15033 :
15034 else
15035 # We have old collect2
15036 hardcode_direct=unsupported
15037 # It fails to find uninstalled libraries when the uninstalled
15038 # path is not listed in the libpath. Setting hardcode_minus_L
15039 # to unsupported forces relinking
15040 hardcode_minus_L=yes
15041 hardcode_libdir_flag_spec='-L$libdir'
15042 hardcode_libdir_separator=
15043 fi
15044 ;;
15045 esac
15046 shared_flag='-shared'
15047 if test "$aix_use_runtimelinking" = yes; then
15048 shared_flag="$shared_flag "'${wl}-G'
15049 fi
15050 else
15051 # not using gcc
15052 if test "$host_cpu" = ia64; then
15053 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15054 # chokes on -Wl,-G. The following line is correct:
15055 shared_flag='-G'
15056 else
15057 if test "$aix_use_runtimelinking" = yes; then
15058 shared_flag='${wl}-G'
15059 else
15060 shared_flag='${wl}-bM:SRE'
15061 fi
15062 fi
15063 fi
15064
15065 export_dynamic_flag_spec='${wl}-bexpall'
15066 # It seems that -bexpall does not export symbols beginning with
15067 # underscore (_), so it is better to generate a list of symbols to export.
15068 always_export_symbols=yes
15069 if test "$aix_use_runtimelinking" = yes; then
15070 # Warning - without using the other runtime loading flags (-brtl),
15071 # -berok will link without error, but may produce a broken library.
15072 allow_undefined_flag='-berok'
15073 # Determine the default libpath from the value encoded in an
15074 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015075 if test "${lt_cv_aix_libpath+set}" = set; then
15076 aix_libpath=$lt_cv_aix_libpath
15077else
15078 if ${lt_cv_aix_libpath_+:} false; then :
15079 $as_echo_n "(cached) " >&6
15080else
15081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015082/* end confdefs.h. */
15083
15084int
15085main ()
15086{
15087
15088 ;
15089 return 0;
15090}
15091_ACEOF
15092if ac_fn_c_try_link "$LINENO"; then :
15093
cristyda16f162011-02-19 23:52:17 +000015094 lt_aix_libpath_sed='
15095 /Import File Strings/,/^$/ {
15096 /^0/ {
15097 s/^0 *\([^ ]*\) *$/\1/
15098 p
15099 }
15100 }'
15101 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15102 # Check for a 64-bit object if we didn't find anything.
15103 if test -z "$lt_cv_aix_libpath_"; then
15104 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15105 fi
cristy73bd4a52010-10-05 11:24:23 +000015106fi
15107rm -f core conftest.err conftest.$ac_objext \
15108 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015109 if test -z "$lt_cv_aix_libpath_"; then
15110 lt_cv_aix_libpath_="/usr/lib:/lib"
15111 fi
15112
15113fi
15114
15115 aix_libpath=$lt_cv_aix_libpath_
15116fi
cristy73bd4a52010-10-05 11:24:23 +000015117
15118 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015119 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 +000015120 else
15121 if test "$host_cpu" = ia64; then
15122 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15123 allow_undefined_flag="-z nodefs"
15124 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"
15125 else
15126 # Determine the default libpath from the value encoded in an
15127 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015128 if test "${lt_cv_aix_libpath+set}" = set; then
15129 aix_libpath=$lt_cv_aix_libpath
15130else
15131 if ${lt_cv_aix_libpath_+:} false; then :
15132 $as_echo_n "(cached) " >&6
15133else
15134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015135/* end confdefs.h. */
15136
15137int
15138main ()
15139{
15140
15141 ;
15142 return 0;
15143}
15144_ACEOF
15145if ac_fn_c_try_link "$LINENO"; then :
15146
cristyda16f162011-02-19 23:52:17 +000015147 lt_aix_libpath_sed='
15148 /Import File Strings/,/^$/ {
15149 /^0/ {
15150 s/^0 *\([^ ]*\) *$/\1/
15151 p
15152 }
15153 }'
15154 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15155 # Check for a 64-bit object if we didn't find anything.
15156 if test -z "$lt_cv_aix_libpath_"; then
15157 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15158 fi
cristy73bd4a52010-10-05 11:24:23 +000015159fi
15160rm -f core conftest.err conftest.$ac_objext \
15161 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015162 if test -z "$lt_cv_aix_libpath_"; then
15163 lt_cv_aix_libpath_="/usr/lib:/lib"
15164 fi
15165
15166fi
15167
15168 aix_libpath=$lt_cv_aix_libpath_
15169fi
cristy73bd4a52010-10-05 11:24:23 +000015170
15171 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15172 # Warning - without using the other run time loading flags,
15173 # -berok will link without error, but may produce a broken library.
15174 no_undefined_flag=' ${wl}-bernotok'
15175 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015176 if test "$with_gnu_ld" = yes; then
15177 # We only use this code for GNU lds that support --whole-archive.
15178 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15179 else
15180 # Exported symbols can be pulled into shared objects from archives
15181 whole_archive_flag_spec='$convenience'
15182 fi
cristy73bd4a52010-10-05 11:24:23 +000015183 archive_cmds_need_lc=yes
15184 # This is similar to how AIX traditionally builds its shared libraries.
15185 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'
15186 fi
15187 fi
15188 ;;
15189
15190 amigaos*)
15191 case $host_cpu in
15192 powerpc)
15193 # see comment about AmigaOS4 .so support
15194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15195 archive_expsym_cmds=''
15196 ;;
15197 m68k)
15198 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)'
15199 hardcode_libdir_flag_spec='-L$libdir'
15200 hardcode_minus_L=yes
15201 ;;
15202 esac
15203 ;;
15204
15205 bsdi[45]*)
15206 export_dynamic_flag_spec=-rdynamic
15207 ;;
15208
15209 cygwin* | mingw* | pw32* | cegcc*)
15210 # When not using gcc, we currently assume that we are using
15211 # Microsoft Visual C++.
15212 # hardcode_libdir_flag_spec is actually meaningless, as there is
15213 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015214 case $cc_basename in
15215 cl*)
15216 # Native MSVC
15217 hardcode_libdir_flag_spec=' '
15218 allow_undefined_flag=unsupported
15219 always_export_symbols=yes
15220 file_list_spec='@'
15221 # Tell ltmain to make .lib files, not .a files.
15222 libext=lib
15223 # Tell ltmain to make .dll files, not .so files.
15224 shrext_cmds=".dll"
15225 # FIXME: Setting linknames here is a bad hack.
15226 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15227 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15228 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15229 else
15230 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15231 fi~
15232 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15233 linknames='
15234 # The linker will not automatically build a static lib if we build a DLL.
15235 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15236 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015237 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015238 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15239 # Don't use ranlib
15240 old_postinstall_cmds='chmod 644 $oldlib'
15241 postlink_cmds='lt_outputfile="@OUTPUT@"~
15242 lt_tool_outputfile="@TOOL_OUTPUT@"~
15243 case $lt_outputfile in
15244 *.exe|*.EXE) ;;
15245 *)
15246 lt_outputfile="$lt_outputfile.exe"
15247 lt_tool_outputfile="$lt_tool_outputfile.exe"
15248 ;;
15249 esac~
15250 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15251 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15252 $RM "$lt_outputfile.manifest";
15253 fi'
15254 ;;
15255 *)
15256 # Assume MSVC wrapper
15257 hardcode_libdir_flag_spec=' '
15258 allow_undefined_flag=unsupported
15259 # Tell ltmain to make .lib files, not .a files.
15260 libext=lib
15261 # Tell ltmain to make .dll files, not .so files.
15262 shrext_cmds=".dll"
15263 # FIXME: Setting linknames here is a bad hack.
15264 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15265 # The linker will automatically build a .lib file if we build a DLL.
15266 old_archive_from_new_cmds='true'
15267 # FIXME: Should let the user specify the lib program.
15268 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15269 enable_shared_with_static_runtimes=yes
15270 ;;
15271 esac
cristy73bd4a52010-10-05 11:24:23 +000015272 ;;
15273
15274 darwin* | rhapsody*)
15275
15276
15277 archive_cmds_need_lc=no
15278 hardcode_direct=no
15279 hardcode_automatic=yes
15280 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015281 if test "$lt_cv_ld_force_load" = "yes"; then
15282 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 +000015283
cristy0c60a692010-11-04 01:09:47 +000015284 else
15285 whole_archive_flag_spec=''
15286 fi
cristy73bd4a52010-10-05 11:24:23 +000015287 link_all_deplibs=yes
15288 allow_undefined_flag="$_lt_dar_allow_undefined"
15289 case $cc_basename in
15290 ifort*) _lt_dar_can_shared=yes ;;
15291 *) _lt_dar_can_shared=$GCC ;;
15292 esac
15293 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015294 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015295 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15296 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15297 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}"
15298 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}"
15299
15300 else
15301 ld_shlibs=no
15302 fi
15303
15304 ;;
15305
15306 dgux*)
15307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15308 hardcode_libdir_flag_spec='-L$libdir'
15309 hardcode_shlibpath_var=no
15310 ;;
15311
cristy73bd4a52010-10-05 11:24:23 +000015312 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15313 # support. Future versions do this automatically, but an explicit c++rt0.o
15314 # does not break anything, and helps significantly (at the cost of a little
15315 # extra space).
15316 freebsd2.2*)
15317 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15318 hardcode_libdir_flag_spec='-R$libdir'
15319 hardcode_direct=yes
15320 hardcode_shlibpath_var=no
15321 ;;
15322
15323 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015324 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015325 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15326 hardcode_direct=yes
15327 hardcode_minus_L=yes
15328 hardcode_shlibpath_var=no
15329 ;;
15330
15331 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15332 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015333 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015334 hardcode_libdir_flag_spec='-R$libdir'
15335 hardcode_direct=yes
15336 hardcode_shlibpath_var=no
15337 ;;
15338
15339 hpux9*)
15340 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015341 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 +000015342 else
15343 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'
15344 fi
15345 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15346 hardcode_libdir_separator=:
15347 hardcode_direct=yes
15348
15349 # hardcode_minus_L: Not really in the search PATH,
15350 # but as the default location of the library.
15351 hardcode_minus_L=yes
15352 export_dynamic_flag_spec='${wl}-E'
15353 ;;
15354
15355 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015356 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015357 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 +000015358 else
15359 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15360 fi
15361 if test "$with_gnu_ld" = no; then
15362 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015363 hardcode_libdir_separator=:
15364 hardcode_direct=yes
15365 hardcode_direct_absolute=yes
15366 export_dynamic_flag_spec='${wl}-E'
15367 # hardcode_minus_L: Not really in the search PATH,
15368 # but as the default location of the library.
15369 hardcode_minus_L=yes
15370 fi
15371 ;;
15372
15373 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015374 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015375 case $host_cpu in
15376 hppa*64*)
15377 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15378 ;;
15379 ia64*)
cristyda16f162011-02-19 23:52:17 +000015380 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015381 ;;
15382 *)
cristyda16f162011-02-19 23:52:17 +000015383 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 +000015384 ;;
15385 esac
15386 else
15387 case $host_cpu in
15388 hppa*64*)
15389 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15390 ;;
15391 ia64*)
15392 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15393 ;;
15394 *)
cristy0c60a692010-11-04 01:09:47 +000015395
15396 # Older versions of the 11.00 compiler do not understand -b yet
15397 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15399$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015400if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015401 $as_echo_n "(cached) " >&6
15402else
15403 lt_cv_prog_compiler__b=no
15404 save_LDFLAGS="$LDFLAGS"
15405 LDFLAGS="$LDFLAGS -b"
15406 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15407 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15408 # The linker can only warn and ignore the option if not recognized
15409 # So say no if there are warnings
15410 if test -s conftest.err; then
15411 # Append any errors to the config.log.
15412 cat conftest.err 1>&5
15413 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15415 if diff conftest.exp conftest.er2 >/dev/null; then
15416 lt_cv_prog_compiler__b=yes
15417 fi
15418 else
15419 lt_cv_prog_compiler__b=yes
15420 fi
15421 fi
15422 $RM -r conftest*
15423 LDFLAGS="$save_LDFLAGS"
15424
15425fi
15426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15427$as_echo "$lt_cv_prog_compiler__b" >&6; }
15428
15429if test x"$lt_cv_prog_compiler__b" = xyes; then
15430 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15431else
15432 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15433fi
15434
cristy73bd4a52010-10-05 11:24:23 +000015435 ;;
15436 esac
15437 fi
15438 if test "$with_gnu_ld" = no; then
15439 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15440 hardcode_libdir_separator=:
15441
15442 case $host_cpu in
15443 hppa*64*|ia64*)
15444 hardcode_direct=no
15445 hardcode_shlibpath_var=no
15446 ;;
15447 *)
15448 hardcode_direct=yes
15449 hardcode_direct_absolute=yes
15450 export_dynamic_flag_spec='${wl}-E'
15451
15452 # hardcode_minus_L: Not really in the search PATH,
15453 # but as the default location of the library.
15454 hardcode_minus_L=yes
15455 ;;
15456 esac
15457 fi
15458 ;;
15459
15460 irix5* | irix6* | nonstopux*)
15461 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015462 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 +000015463 # Try to use the -exported_symbol ld option, if it does not
15464 # work, assume that -exports_file does not work either and
15465 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015466 # This should be the same for all languages, so no per-tag cache variable.
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15468$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15469if ${lt_cv_irix_exported_symbol+:} false; then :
15470 $as_echo_n "(cached) " >&6
15471else
15472 save_LDFLAGS="$LDFLAGS"
15473 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015475/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015476int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015477_ACEOF
15478if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015479 lt_cv_irix_exported_symbol=yes
15480else
15481 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015482fi
15483rm -f core conftest.err conftest.$ac_objext \
15484 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015485 LDFLAGS="$save_LDFLAGS"
15486fi
15487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15488$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15489 if test "$lt_cv_irix_exported_symbol" = yes; then
15490 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'
15491 fi
cristy73bd4a52010-10-05 11:24:23 +000015492 else
cristy0c60a692010-11-04 01:09:47 +000015493 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'
15494 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 +000015495 fi
15496 archive_cmds_need_lc='no'
15497 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15498 hardcode_libdir_separator=:
15499 inherit_rpath=yes
15500 link_all_deplibs=yes
15501 ;;
15502
15503 netbsd*)
15504 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15505 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15506 else
15507 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15508 fi
15509 hardcode_libdir_flag_spec='-R$libdir'
15510 hardcode_direct=yes
15511 hardcode_shlibpath_var=no
15512 ;;
15513
15514 newsos6)
15515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15516 hardcode_direct=yes
15517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15518 hardcode_libdir_separator=:
15519 hardcode_shlibpath_var=no
15520 ;;
15521
15522 *nto* | *qnx*)
15523 ;;
15524
15525 openbsd*)
15526 if test -f /usr/libexec/ld.so; then
15527 hardcode_direct=yes
15528 hardcode_shlibpath_var=no
15529 hardcode_direct_absolute=yes
15530 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15531 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15532 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15533 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15534 export_dynamic_flag_spec='${wl}-E'
15535 else
15536 case $host_os in
15537 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15538 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15539 hardcode_libdir_flag_spec='-R$libdir'
15540 ;;
15541 *)
15542 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15543 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15544 ;;
15545 esac
15546 fi
15547 else
15548 ld_shlibs=no
15549 fi
15550 ;;
15551
15552 os2*)
15553 hardcode_libdir_flag_spec='-L$libdir'
15554 hardcode_minus_L=yes
15555 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015556 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 +000015557 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15558 ;;
15559
15560 osf3*)
15561 if test "$GCC" = yes; then
15562 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015563 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 +000015564 else
15565 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015566 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 +000015567 fi
15568 archive_cmds_need_lc='no'
15569 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15570 hardcode_libdir_separator=:
15571 ;;
15572
15573 osf4* | osf5*) # as osf3* with the addition of -msym flag
15574 if test "$GCC" = yes; then
15575 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015576 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 +000015577 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15578 else
15579 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015580 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 +000015581 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 +000015582 $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 +000015583
15584 # Both c and cxx compiler support -rpath directly
15585 hardcode_libdir_flag_spec='-rpath $libdir'
15586 fi
15587 archive_cmds_need_lc='no'
15588 hardcode_libdir_separator=:
15589 ;;
15590
15591 solaris*)
15592 no_undefined_flag=' -z defs'
15593 if test "$GCC" = yes; then
15594 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015595 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 +000015596 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 +000015597 $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 +000015598 else
15599 case `$CC -V 2>&1` in
15600 *"Compilers 5.0"*)
15601 wlarc=''
15602 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15603 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15604 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15605 ;;
15606 *)
15607 wlarc='${wl}'
15608 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15609 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15610 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15611 ;;
15612 esac
15613 fi
15614 hardcode_libdir_flag_spec='-R$libdir'
15615 hardcode_shlibpath_var=no
15616 case $host_os in
15617 solaris2.[0-5] | solaris2.[0-5].*) ;;
15618 *)
15619 # The compiler driver will combine and reorder linker options,
15620 # but understands `-z linker_flag'. GCC discards it without `$wl',
15621 # but is careful enough not to reorder.
15622 # Supported since Solaris 2.6 (maybe 2.5.1?)
15623 if test "$GCC" = yes; then
15624 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15625 else
15626 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15627 fi
15628 ;;
15629 esac
15630 link_all_deplibs=yes
15631 ;;
15632
15633 sunos4*)
15634 if test "x$host_vendor" = xsequent; then
15635 # Use $CC to link under sequent, because it throws in some extra .o
15636 # files that make .init and .fini sections work.
15637 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15638 else
15639 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15640 fi
15641 hardcode_libdir_flag_spec='-L$libdir'
15642 hardcode_direct=yes
15643 hardcode_minus_L=yes
15644 hardcode_shlibpath_var=no
15645 ;;
15646
15647 sysv4)
15648 case $host_vendor in
15649 sni)
15650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15651 hardcode_direct=yes # is this really true???
15652 ;;
15653 siemens)
15654 ## LD is ld it makes a PLAMLIB
15655 ## CC just makes a GrossModule.
15656 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15657 reload_cmds='$CC -r -o $output$reload_objs'
15658 hardcode_direct=no
15659 ;;
15660 motorola)
15661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15662 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15663 ;;
15664 esac
15665 runpath_var='LD_RUN_PATH'
15666 hardcode_shlibpath_var=no
15667 ;;
15668
15669 sysv4.3*)
15670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15671 hardcode_shlibpath_var=no
15672 export_dynamic_flag_spec='-Bexport'
15673 ;;
15674
15675 sysv4*MP*)
15676 if test -d /usr/nec; then
15677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15678 hardcode_shlibpath_var=no
15679 runpath_var=LD_RUN_PATH
15680 hardcode_runpath_var=yes
15681 ld_shlibs=yes
15682 fi
15683 ;;
15684
15685 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15686 no_undefined_flag='${wl}-z,text'
15687 archive_cmds_need_lc=no
15688 hardcode_shlibpath_var=no
15689 runpath_var='LD_RUN_PATH'
15690
15691 if test "$GCC" = yes; then
15692 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15693 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15694 else
15695 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15696 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15697 fi
15698 ;;
15699
15700 sysv5* | sco3.2v5* | sco5v6*)
15701 # Note: We can NOT use -z defs as we might desire, because we do not
15702 # link with -lc, and that would cause any symbols used from libc to
15703 # always be unresolved, which means just about no library would
15704 # ever link correctly. If we're not using GNU ld we use -z text
15705 # though, which does catch some bad symbols but isn't as heavy-handed
15706 # as -z defs.
15707 no_undefined_flag='${wl}-z,text'
15708 allow_undefined_flag='${wl}-z,nodefs'
15709 archive_cmds_need_lc=no
15710 hardcode_shlibpath_var=no
15711 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15712 hardcode_libdir_separator=':'
15713 link_all_deplibs=yes
15714 export_dynamic_flag_spec='${wl}-Bexport'
15715 runpath_var='LD_RUN_PATH'
15716
15717 if test "$GCC" = yes; then
15718 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15719 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15720 else
15721 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15722 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15723 fi
15724 ;;
15725
15726 uts4*)
15727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15728 hardcode_libdir_flag_spec='-L$libdir'
15729 hardcode_shlibpath_var=no
15730 ;;
15731
15732 *)
15733 ld_shlibs=no
15734 ;;
15735 esac
15736
15737 if test x$host_vendor = xsni; then
15738 case $host in
15739 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15740 export_dynamic_flag_spec='${wl}-Blargedynsym'
15741 ;;
15742 esac
15743 fi
15744 fi
15745
15746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15747$as_echo "$ld_shlibs" >&6; }
15748test "$ld_shlibs" = no && can_build_shared=no
15749
15750with_gnu_ld=$with_gnu_ld
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766#
15767# Do we need to explicitly link libc?
15768#
15769case "x$archive_cmds_need_lc" in
15770x|xyes)
15771 # Assume -lc should be added
15772 archive_cmds_need_lc=yes
15773
15774 if test "$enable_shared" = yes && test "$GCC" = yes; then
15775 case $archive_cmds in
15776 *'~'*)
15777 # FIXME: we may have to deal with multi-command sequences.
15778 ;;
15779 '$CC '*)
15780 # Test whether the compiler implicitly links with -lc since on some
15781 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15782 # to ld, don't add -lc before -lgcc.
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15784$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015785if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015786 $as_echo_n "(cached) " >&6
15787else
15788 $RM conftest*
15789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015790
cristy0c60a692010-11-04 01:09:47 +000015791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015792 (eval $ac_compile) 2>&5
15793 ac_status=$?
15794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15795 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015796 soname=conftest
15797 lib=conftest
15798 libobjs=conftest.$ac_objext
15799 deplibs=
15800 wl=$lt_prog_compiler_wl
15801 pic_flag=$lt_prog_compiler_pic
15802 compiler_flags=-v
15803 linker_flags=-v
15804 verstring=
15805 output_objdir=.
15806 libname=conftest
15807 lt_save_allow_undefined_flag=$allow_undefined_flag
15808 allow_undefined_flag=
15809 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 +000015810 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15811 ac_status=$?
15812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15813 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015814 then
15815 lt_cv_archive_cmds_need_lc=no
15816 else
15817 lt_cv_archive_cmds_need_lc=yes
15818 fi
15819 allow_undefined_flag=$lt_save_allow_undefined_flag
15820 else
15821 cat conftest.err 1>&5
15822 fi
15823 $RM conftest*
15824
15825fi
15826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15827$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15828 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015829 ;;
15830 esac
15831 fi
15832 ;;
15833esac
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
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
cristy73bd4a52010-10-05 11:24:23 +000015986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15987$as_echo_n "checking dynamic linker characteristics... " >&6; }
15988
15989if test "$GCC" = yes; then
15990 case $host_os in
15991 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15992 *) lt_awk_arg="/^libraries:/" ;;
15993 esac
cristy0c60a692010-11-04 01:09:47 +000015994 case $host_os in
15995 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15996 *) lt_sed_strip_eq="s,=/,/,g" ;;
15997 esac
15998 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15999 case $lt_search_path_spec in
16000 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016001 # if the path contains ";" then we assume it to be the separator
16002 # otherwise default to the standard path separator (i.e. ":") - it is
16003 # assumed that no part of a normal pathname contains ";" but that should
16004 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016005 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16006 ;;
16007 *)
16008 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16009 ;;
16010 esac
cristy73bd4a52010-10-05 11:24:23 +000016011 # Ok, now we have the path, separated by spaces, we can step through it
16012 # and add multilib dir if necessary.
16013 lt_tmp_lt_search_path_spec=
16014 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16015 for lt_sys_path in $lt_search_path_spec; do
16016 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16017 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16018 else
16019 test -d "$lt_sys_path" && \
16020 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16021 fi
16022 done
cristy0c60a692010-11-04 01:09:47 +000016023 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016024BEGIN {RS=" "; FS="/|\n";} {
16025 lt_foo="";
16026 lt_count=0;
16027 for (lt_i = NF; lt_i > 0; lt_i--) {
16028 if ($lt_i != "" && $lt_i != ".") {
16029 if ($lt_i == "..") {
16030 lt_count++;
16031 } else {
16032 if (lt_count == 0) {
16033 lt_foo="/" $lt_i lt_foo;
16034 } else {
16035 lt_count--;
16036 }
16037 }
16038 }
16039 }
16040 if (lt_foo != "") { lt_freq[lt_foo]++; }
16041 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16042}'`
cristy0c60a692010-11-04 01:09:47 +000016043 # AWK program above erroneously prepends '/' to C:/dos/paths
16044 # for these hosts.
16045 case $host_os in
16046 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16047 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16048 esac
16049 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016050else
16051 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16052fi
16053library_names_spec=
16054libname_spec='lib$name'
16055soname_spec=
16056shrext_cmds=".so"
16057postinstall_cmds=
16058postuninstall_cmds=
16059finish_cmds=
16060finish_eval=
16061shlibpath_var=
16062shlibpath_overrides_runpath=unknown
16063version_type=none
16064dynamic_linker="$host_os ld.so"
16065sys_lib_dlsearch_path_spec="/lib /usr/lib"
16066need_lib_prefix=unknown
16067hardcode_into_libs=no
16068
16069# when you set need_version to no, make sure it does not cause -set_version
16070# flags to be left without arguments
16071need_version=unknown
16072
16073case $host_os in
16074aix3*)
cristy99bd5232011-12-07 14:38:20 +000016075 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16077 shlibpath_var=LIBPATH
16078
16079 # AIX 3 has no versioning support, so we append a major version to the name.
16080 soname_spec='${libname}${release}${shared_ext}$major'
16081 ;;
16082
16083aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016084 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016085 need_lib_prefix=no
16086 need_version=no
16087 hardcode_into_libs=yes
16088 if test "$host_cpu" = ia64; then
16089 # AIX 5 supports IA64
16090 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16091 shlibpath_var=LD_LIBRARY_PATH
16092 else
16093 # With GCC up to 2.95.x, collect2 would create an import file
16094 # for dependence libraries. The import file would start with
16095 # the line `#! .'. This would cause the generated library to
16096 # depend on `.', always an invalid library. This was fixed in
16097 # development snapshots of GCC prior to 3.0.
16098 case $host_os in
16099 aix4 | aix4.[01] | aix4.[01].*)
16100 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16101 echo ' yes '
16102 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16103 :
16104 else
16105 can_build_shared=no
16106 fi
16107 ;;
16108 esac
16109 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16110 # soname into executable. Probably we can add versioning support to
16111 # collect2, so additional links can be useful in future.
16112 if test "$aix_use_runtimelinking" = yes; then
16113 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16114 # instead of lib<name>.a to let people know that these are not
16115 # typical AIX shared libraries.
16116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117 else
16118 # We preserve .a as extension for shared libraries through AIX4.2
16119 # and later when we are not doing run time linking.
16120 library_names_spec='${libname}${release}.a $libname.a'
16121 soname_spec='${libname}${release}${shared_ext}$major'
16122 fi
16123 shlibpath_var=LIBPATH
16124 fi
16125 ;;
16126
16127amigaos*)
16128 case $host_cpu in
16129 powerpc)
16130 # Since July 2007 AmigaOS4 officially supports .so libraries.
16131 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16133 ;;
16134 m68k)
16135 library_names_spec='$libname.ixlibrary $libname.a'
16136 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016137 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 +000016138 ;;
16139 esac
16140 ;;
16141
16142beos*)
16143 library_names_spec='${libname}${shared_ext}'
16144 dynamic_linker="$host_os ld.so"
16145 shlibpath_var=LIBRARY_PATH
16146 ;;
16147
16148bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016149 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016150 need_version=no
16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16152 soname_spec='${libname}${release}${shared_ext}$major'
16153 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16154 shlibpath_var=LD_LIBRARY_PATH
16155 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16156 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16157 # the default ld.so.conf also contains /usr/contrib/lib and
16158 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16159 # libtool to hard-code these into programs
16160 ;;
16161
16162cygwin* | mingw* | pw32* | cegcc*)
16163 version_type=windows
16164 shrext_cmds=".dll"
16165 need_version=no
16166 need_lib_prefix=no
16167
cristyda16f162011-02-19 23:52:17 +000016168 case $GCC,$cc_basename in
16169 yes,*)
16170 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016171 library_names_spec='$libname.dll.a'
16172 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16173 postinstall_cmds='base_file=`basename \${file}`~
16174 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16175 dldir=$destdir/`dirname \$dlpath`~
16176 test -d \$dldir || mkdir -p \$dldir~
16177 $install_prog $dir/$dlname \$dldir/$dlname~
16178 chmod a+x \$dldir/$dlname~
16179 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16180 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16181 fi'
16182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16183 dlpath=$dir/\$dldll~
16184 $RM \$dlpath'
16185 shlibpath_overrides_runpath=yes
16186
16187 case $host_os in
16188 cygwin*)
16189 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16190 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016191
16192 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016193 ;;
16194 mingw* | cegcc*)
16195 # MinGW DLLs use traditional 'lib' prefix
16196 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016197 ;;
16198 pw32*)
16199 # pw32 DLLs use 'pw' prefix rather than 'lib'
16200 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16201 ;;
16202 esac
cristyda16f162011-02-19 23:52:17 +000016203 dynamic_linker='Win32 ld.exe'
16204 ;;
16205
16206 *,cl*)
16207 # Native MSVC
16208 libname_spec='$name'
16209 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16210 library_names_spec='${libname}.dll.lib'
16211
16212 case $build_os in
16213 mingw*)
16214 sys_lib_search_path_spec=
16215 lt_save_ifs=$IFS
16216 IFS=';'
16217 for lt_path in $LIB
16218 do
16219 IFS=$lt_save_ifs
16220 # Let DOS variable expansion print the short 8.3 style file name.
16221 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16222 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16223 done
16224 IFS=$lt_save_ifs
16225 # Convert to MSYS style.
16226 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16227 ;;
16228 cygwin*)
16229 # Convert to unix form, then to dos form, then back to unix form
16230 # but this time dos style (no spaces!) so that the unix form looks
16231 # like /cygdrive/c/PROGRA~1:/cygdr...
16232 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16233 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16234 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16235 ;;
16236 *)
16237 sys_lib_search_path_spec="$LIB"
16238 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16239 # It is most probably a Windows format PATH.
16240 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16241 else
16242 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16243 fi
16244 # FIXME: find the short name or the path components, as spaces are
16245 # common. (e.g. "Program Files" -> "PROGRA~1")
16246 ;;
16247 esac
16248
16249 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16250 postinstall_cmds='base_file=`basename \${file}`~
16251 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16252 dldir=$destdir/`dirname \$dlpath`~
16253 test -d \$dldir || mkdir -p \$dldir~
16254 $install_prog $dir/$dlname \$dldir/$dlname'
16255 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16256 dlpath=$dir/\$dldll~
16257 $RM \$dlpath'
16258 shlibpath_overrides_runpath=yes
16259 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016260 ;;
16261
16262 *)
cristyda16f162011-02-19 23:52:17 +000016263 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016264 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016265 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016266 ;;
16267 esac
cristy73bd4a52010-10-05 11:24:23 +000016268 # FIXME: first we should search . and the directory the executable is in
16269 shlibpath_var=PATH
16270 ;;
16271
16272darwin* | rhapsody*)
16273 dynamic_linker="$host_os dyld"
16274 version_type=darwin
16275 need_lib_prefix=no
16276 need_version=no
16277 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16278 soname_spec='${libname}${release}${major}$shared_ext'
16279 shlibpath_overrides_runpath=yes
16280 shlibpath_var=DYLD_LIBRARY_PATH
16281 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16282
16283 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16284 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16285 ;;
16286
16287dgux*)
cristy99bd5232011-12-07 14:38:20 +000016288 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016289 need_lib_prefix=no
16290 need_version=no
16291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16292 soname_spec='${libname}${release}${shared_ext}$major'
16293 shlibpath_var=LD_LIBRARY_PATH
16294 ;;
16295
cristy73bd4a52010-10-05 11:24:23 +000016296freebsd* | dragonfly*)
16297 # DragonFly does not have aout. When/if they implement a new
16298 # versioning mechanism, adjust this.
16299 if test -x /usr/bin/objformat; then
16300 objformat=`/usr/bin/objformat`
16301 else
16302 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016303 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016304 *) objformat=elf ;;
16305 esac
16306 fi
16307 version_type=freebsd-$objformat
16308 case $version_type in
16309 freebsd-elf*)
16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16311 need_version=no
16312 need_lib_prefix=no
16313 ;;
16314 freebsd-*)
16315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16316 need_version=yes
16317 ;;
16318 esac
16319 shlibpath_var=LD_LIBRARY_PATH
16320 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016321 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016322 shlibpath_overrides_runpath=yes
16323 ;;
16324 freebsd3.[01]* | freebsdelf3.[01]*)
16325 shlibpath_overrides_runpath=yes
16326 hardcode_into_libs=yes
16327 ;;
16328 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16329 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16330 shlibpath_overrides_runpath=no
16331 hardcode_into_libs=yes
16332 ;;
16333 *) # from 4.6 on, and DragonFly
16334 shlibpath_overrides_runpath=yes
16335 hardcode_into_libs=yes
16336 ;;
16337 esac
16338 ;;
16339
16340gnu*)
cristy99bd5232011-12-07 14:38:20 +000016341 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016342 need_lib_prefix=no
16343 need_version=no
16344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16345 soname_spec='${libname}${release}${shared_ext}$major'
16346 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016347 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016348 hardcode_into_libs=yes
16349 ;;
16350
cristy0c60a692010-11-04 01:09:47 +000016351haiku*)
cristy99bd5232011-12-07 14:38:20 +000016352 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016353 need_lib_prefix=no
16354 need_version=no
16355 dynamic_linker="$host_os runtime_loader"
16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16357 soname_spec='${libname}${release}${shared_ext}$major'
16358 shlibpath_var=LIBRARY_PATH
16359 shlibpath_overrides_runpath=yes
16360 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16361 hardcode_into_libs=yes
16362 ;;
16363
cristy73bd4a52010-10-05 11:24:23 +000016364hpux9* | hpux10* | hpux11*)
16365 # Give a soname corresponding to the major version so that dld.sl refuses to
16366 # link against other versions.
16367 version_type=sunos
16368 need_lib_prefix=no
16369 need_version=no
16370 case $host_cpu in
16371 ia64*)
16372 shrext_cmds='.so'
16373 hardcode_into_libs=yes
16374 dynamic_linker="$host_os dld.so"
16375 shlibpath_var=LD_LIBRARY_PATH
16376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378 soname_spec='${libname}${release}${shared_ext}$major'
16379 if test "X$HPUX_IA64_MODE" = X32; then
16380 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16381 else
16382 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16383 fi
16384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16385 ;;
16386 hppa*64*)
16387 shrext_cmds='.sl'
16388 hardcode_into_libs=yes
16389 dynamic_linker="$host_os dld.sl"
16390 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16393 soname_spec='${libname}${release}${shared_ext}$major'
16394 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16396 ;;
16397 *)
16398 shrext_cmds='.sl'
16399 dynamic_linker="$host_os dld.sl"
16400 shlibpath_var=SHLIB_PATH
16401 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16403 soname_spec='${libname}${release}${shared_ext}$major'
16404 ;;
16405 esac
cristy0c60a692010-11-04 01:09:47 +000016406 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016407 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016408 # or fails outright, so override atomically:
16409 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016410 ;;
16411
16412interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016413 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016414 need_lib_prefix=no
16415 need_version=no
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16417 soname_spec='${libname}${release}${shared_ext}$major'
16418 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16419 shlibpath_var=LD_LIBRARY_PATH
16420 shlibpath_overrides_runpath=no
16421 hardcode_into_libs=yes
16422 ;;
16423
16424irix5* | irix6* | nonstopux*)
16425 case $host_os in
16426 nonstopux*) version_type=nonstopux ;;
16427 *)
16428 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016429 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016430 else
16431 version_type=irix
16432 fi ;;
16433 esac
16434 need_lib_prefix=no
16435 need_version=no
16436 soname_spec='${libname}${release}${shared_ext}$major'
16437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16438 case $host_os in
16439 irix5* | nonstopux*)
16440 libsuff= shlibsuff=
16441 ;;
16442 *)
16443 case $LD in # libtool.m4 will add one of these switches to LD
16444 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16445 libsuff= shlibsuff= libmagic=32-bit;;
16446 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16447 libsuff=32 shlibsuff=N32 libmagic=N32;;
16448 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16449 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16450 *) libsuff= shlibsuff= libmagic=never-match;;
16451 esac
16452 ;;
16453 esac
16454 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16455 shlibpath_overrides_runpath=no
16456 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16457 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16458 hardcode_into_libs=yes
16459 ;;
16460
16461# No shared lib support for Linux oldld, aout, or coff.
16462linux*oldld* | linux*aout* | linux*coff*)
16463 dynamic_linker=no
16464 ;;
16465
cristy99bd5232011-12-07 14:38:20 +000016466# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016467linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016468 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016469 need_lib_prefix=no
16470 need_version=no
16471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16472 soname_spec='${libname}${release}${shared_ext}$major'
16473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16474 shlibpath_var=LD_LIBRARY_PATH
16475 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016476
cristy73bd4a52010-10-05 11:24:23 +000016477 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016478 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016479 $as_echo_n "(cached) " >&6
16480else
16481 lt_cv_shlibpath_overrides_runpath=no
16482 save_LDFLAGS=$LDFLAGS
16483 save_libdir=$libdir
16484 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16485 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016487/* end confdefs.h. */
16488
16489int
16490main ()
16491{
16492
16493 ;
16494 return 0;
16495}
16496_ACEOF
16497if ac_fn_c_try_link "$LINENO"; then :
16498 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016499 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016500fi
16501fi
16502rm -f core conftest.err conftest.$ac_objext \
16503 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016504 LDFLAGS=$save_LDFLAGS
16505 libdir=$save_libdir
16506
16507fi
16508
16509 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016510
16511 # This implies no fast_install, which is unacceptable.
16512 # Some rework will be needed to allow for fast_install
16513 # before this can be enabled.
16514 hardcode_into_libs=yes
16515
16516 # Add ABI-specific directories to the system library path.
16517 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16518
16519 # Append ld.so.conf contents to the search path
16520 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016521 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 +000016522 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016523
cristy73bd4a52010-10-05 11:24:23 +000016524 fi
16525
16526 # We used to test for /lib/ld.so.1 and disable shared libraries on
16527 # powerpc, because MkLinux only supported shared libraries with the
16528 # GNU dynamic linker. Since this was broken with cross compilers,
16529 # most powerpc-linux boxes support dynamic linking these days and
16530 # people can always --disable-shared, the test was removed, and we
16531 # assume the GNU/Linux dynamic linker is in use.
16532 dynamic_linker='GNU/Linux ld.so'
16533 ;;
16534
16535netbsd*)
16536 version_type=sunos
16537 need_lib_prefix=no
16538 need_version=no
16539 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16542 dynamic_linker='NetBSD (a.out) ld.so'
16543 else
16544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16545 soname_spec='${libname}${release}${shared_ext}$major'
16546 dynamic_linker='NetBSD ld.elf_so'
16547 fi
16548 shlibpath_var=LD_LIBRARY_PATH
16549 shlibpath_overrides_runpath=yes
16550 hardcode_into_libs=yes
16551 ;;
16552
16553newsos6)
cristy99bd5232011-12-07 14:38:20 +000016554 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556 shlibpath_var=LD_LIBRARY_PATH
16557 shlibpath_overrides_runpath=yes
16558 ;;
16559
16560*nto* | *qnx*)
16561 version_type=qnx
16562 need_lib_prefix=no
16563 need_version=no
16564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16565 soname_spec='${libname}${release}${shared_ext}$major'
16566 shlibpath_var=LD_LIBRARY_PATH
16567 shlibpath_overrides_runpath=no
16568 hardcode_into_libs=yes
16569 dynamic_linker='ldqnx.so'
16570 ;;
16571
16572openbsd*)
16573 version_type=sunos
16574 sys_lib_dlsearch_path_spec="/usr/lib"
16575 need_lib_prefix=no
16576 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16577 case $host_os in
16578 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16579 *) need_version=no ;;
16580 esac
16581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16583 shlibpath_var=LD_LIBRARY_PATH
16584 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16585 case $host_os in
16586 openbsd2.[89] | openbsd2.[89].*)
16587 shlibpath_overrides_runpath=no
16588 ;;
16589 *)
16590 shlibpath_overrides_runpath=yes
16591 ;;
16592 esac
16593 else
16594 shlibpath_overrides_runpath=yes
16595 fi
16596 ;;
16597
16598os2*)
16599 libname_spec='$name'
16600 shrext_cmds=".dll"
16601 need_lib_prefix=no
16602 library_names_spec='$libname${shared_ext} $libname.a'
16603 dynamic_linker='OS/2 ld.exe'
16604 shlibpath_var=LIBPATH
16605 ;;
16606
16607osf3* | osf4* | osf5*)
16608 version_type=osf
16609 need_lib_prefix=no
16610 need_version=no
16611 soname_spec='${libname}${release}${shared_ext}$major'
16612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16613 shlibpath_var=LD_LIBRARY_PATH
16614 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16615 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16616 ;;
16617
16618rdos*)
16619 dynamic_linker=no
16620 ;;
16621
16622solaris*)
cristy99bd5232011-12-07 14:38:20 +000016623 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016624 need_lib_prefix=no
16625 need_version=no
16626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16627 soname_spec='${libname}${release}${shared_ext}$major'
16628 shlibpath_var=LD_LIBRARY_PATH
16629 shlibpath_overrides_runpath=yes
16630 hardcode_into_libs=yes
16631 # ldd complains unless libraries are executable
16632 postinstall_cmds='chmod +x $lib'
16633 ;;
16634
16635sunos4*)
16636 version_type=sunos
16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16638 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16639 shlibpath_var=LD_LIBRARY_PATH
16640 shlibpath_overrides_runpath=yes
16641 if test "$with_gnu_ld" = yes; then
16642 need_lib_prefix=no
16643 fi
16644 need_version=yes
16645 ;;
16646
16647sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016648 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16650 soname_spec='${libname}${release}${shared_ext}$major'
16651 shlibpath_var=LD_LIBRARY_PATH
16652 case $host_vendor in
16653 sni)
16654 shlibpath_overrides_runpath=no
16655 need_lib_prefix=no
16656 runpath_var=LD_RUN_PATH
16657 ;;
16658 siemens)
16659 need_lib_prefix=no
16660 ;;
16661 motorola)
16662 need_lib_prefix=no
16663 need_version=no
16664 shlibpath_overrides_runpath=no
16665 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16666 ;;
16667 esac
16668 ;;
16669
16670sysv4*MP*)
16671 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016672 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016673 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16674 soname_spec='$libname${shared_ext}.$major'
16675 shlibpath_var=LD_LIBRARY_PATH
16676 fi
16677 ;;
16678
16679sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16680 version_type=freebsd-elf
16681 need_lib_prefix=no
16682 need_version=no
16683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16684 soname_spec='${libname}${release}${shared_ext}$major'
16685 shlibpath_var=LD_LIBRARY_PATH
16686 shlibpath_overrides_runpath=yes
16687 hardcode_into_libs=yes
16688 if test "$with_gnu_ld" = yes; then
16689 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16690 else
16691 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16692 case $host_os in
16693 sco3.2v5*)
16694 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16695 ;;
16696 esac
16697 fi
16698 sys_lib_dlsearch_path_spec='/usr/lib'
16699 ;;
16700
16701tpf*)
16702 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016703 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016704 need_lib_prefix=no
16705 need_version=no
16706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707 shlibpath_var=LD_LIBRARY_PATH
16708 shlibpath_overrides_runpath=no
16709 hardcode_into_libs=yes
16710 ;;
16711
16712uts4*)
cristy99bd5232011-12-07 14:38:20 +000016713 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16715 soname_spec='${libname}${release}${shared_ext}$major'
16716 shlibpath_var=LD_LIBRARY_PATH
16717 ;;
16718
16719*)
16720 dynamic_linker=no
16721 ;;
16722esac
16723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16724$as_echo "$dynamic_linker" >&6; }
16725test "$dynamic_linker" = no && can_build_shared=no
16726
16727variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16728if test "$GCC" = yes; then
16729 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16730fi
16731
16732if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16733 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16734fi
16735if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16736 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16737fi
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
cristy0c60a692010-11-04 01:09:47 +000016825
16826
16827
16828
16829
cristy73bd4a52010-10-05 11:24:23 +000016830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16831$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16832hardcode_action=
16833if test -n "$hardcode_libdir_flag_spec" ||
16834 test -n "$runpath_var" ||
16835 test "X$hardcode_automatic" = "Xyes" ; then
16836
16837 # We can hardcode non-existent directories.
16838 if test "$hardcode_direct" != no &&
16839 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16840 # have to relink, otherwise we might link with an installed library
16841 # when we should be linking with a yet-to-be-installed one
16842 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16843 test "$hardcode_minus_L" != no; then
16844 # Linking always hardcodes the temporary library directory.
16845 hardcode_action=relink
16846 else
16847 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16848 hardcode_action=immediate
16849 fi
16850else
16851 # We cannot hardcode anything, or else we can only hardcode existing
16852 # directories.
16853 hardcode_action=unsupported
16854fi
16855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16856$as_echo "$hardcode_action" >&6; }
16857
16858if test "$hardcode_action" = relink ||
16859 test "$inherit_rpath" = yes; then
16860 # Fast installation is not supported
16861 enable_fast_install=no
16862elif test "$shlibpath_overrides_runpath" = yes ||
16863 test "$enable_shared" = no; then
16864 # Fast installation is not necessary
16865 enable_fast_install=needless
16866fi
16867
16868
16869
16870
16871
16872
16873 if test "x$enable_dlopen" != xyes; then
16874 enable_dlopen=unknown
16875 enable_dlopen_self=unknown
16876 enable_dlopen_self_static=unknown
16877else
16878 lt_cv_dlopen=no
16879 lt_cv_dlopen_libs=
16880
16881 case $host_os in
16882 beos*)
16883 lt_cv_dlopen="load_add_on"
16884 lt_cv_dlopen_libs=
16885 lt_cv_dlopen_self=yes
16886 ;;
16887
16888 mingw* | pw32* | cegcc*)
16889 lt_cv_dlopen="LoadLibrary"
16890 lt_cv_dlopen_libs=
16891 ;;
16892
16893 cygwin*)
16894 lt_cv_dlopen="dlopen"
16895 lt_cv_dlopen_libs=
16896 ;;
16897
16898 darwin*)
16899 # if libdl is installed we need to link against it
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16901$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016902if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016903 $as_echo_n "(cached) " >&6
16904else
16905 ac_check_lib_save_LIBS=$LIBS
16906LIBS="-ldl $LIBS"
16907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16908/* end confdefs.h. */
16909
16910/* Override any GCC internal prototype to avoid an error.
16911 Use char because int might match the return type of a GCC
16912 builtin and then its argument prototype would still apply. */
16913#ifdef __cplusplus
16914extern "C"
16915#endif
16916char dlopen ();
16917int
16918main ()
16919{
16920return dlopen ();
16921 ;
16922 return 0;
16923}
16924_ACEOF
16925if ac_fn_c_try_link "$LINENO"; then :
16926 ac_cv_lib_dl_dlopen=yes
16927else
16928 ac_cv_lib_dl_dlopen=no
16929fi
16930rm -f core conftest.err conftest.$ac_objext \
16931 conftest$ac_exeext conftest.$ac_ext
16932LIBS=$ac_check_lib_save_LIBS
16933fi
16934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16935$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016936if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016937 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16938else
16939
16940 lt_cv_dlopen="dyld"
16941 lt_cv_dlopen_libs=
16942 lt_cv_dlopen_self=yes
16943
16944fi
16945
16946 ;;
16947
16948 *)
16949 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016950if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016951 lt_cv_dlopen="shl_load"
16952else
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16954$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016955if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016956 $as_echo_n "(cached) " >&6
16957else
16958 ac_check_lib_save_LIBS=$LIBS
16959LIBS="-ldld $LIBS"
16960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16961/* end confdefs.h. */
16962
16963/* Override any GCC internal prototype to avoid an error.
16964 Use char because int might match the return type of a GCC
16965 builtin and then its argument prototype would still apply. */
16966#ifdef __cplusplus
16967extern "C"
16968#endif
16969char shl_load ();
16970int
16971main ()
16972{
16973return shl_load ();
16974 ;
16975 return 0;
16976}
16977_ACEOF
16978if ac_fn_c_try_link "$LINENO"; then :
16979 ac_cv_lib_dld_shl_load=yes
16980else
16981 ac_cv_lib_dld_shl_load=no
16982fi
16983rm -f core conftest.err conftest.$ac_objext \
16984 conftest$ac_exeext conftest.$ac_ext
16985LIBS=$ac_check_lib_save_LIBS
16986fi
16987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16988$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016989if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016990 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16991else
16992 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016993if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016994 lt_cv_dlopen="dlopen"
16995else
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16997$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016998if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016999 $as_echo_n "(cached) " >&6
17000else
17001 ac_check_lib_save_LIBS=$LIBS
17002LIBS="-ldl $LIBS"
17003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17004/* end confdefs.h. */
17005
17006/* Override any GCC internal prototype to avoid an error.
17007 Use char because int might match the return type of a GCC
17008 builtin and then its argument prototype would still apply. */
17009#ifdef __cplusplus
17010extern "C"
17011#endif
17012char dlopen ();
17013int
17014main ()
17015{
17016return dlopen ();
17017 ;
17018 return 0;
17019}
17020_ACEOF
17021if ac_fn_c_try_link "$LINENO"; then :
17022 ac_cv_lib_dl_dlopen=yes
17023else
17024 ac_cv_lib_dl_dlopen=no
17025fi
17026rm -f core conftest.err conftest.$ac_objext \
17027 conftest$ac_exeext conftest.$ac_ext
17028LIBS=$ac_check_lib_save_LIBS
17029fi
17030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17031$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017032if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17034else
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17036$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017037if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017038 $as_echo_n "(cached) " >&6
17039else
17040 ac_check_lib_save_LIBS=$LIBS
17041LIBS="-lsvld $LIBS"
17042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043/* end confdefs.h. */
17044
17045/* Override any GCC internal prototype to avoid an error.
17046 Use char because int might match the return type of a GCC
17047 builtin and then its argument prototype would still apply. */
17048#ifdef __cplusplus
17049extern "C"
17050#endif
17051char dlopen ();
17052int
17053main ()
17054{
17055return dlopen ();
17056 ;
17057 return 0;
17058}
17059_ACEOF
17060if ac_fn_c_try_link "$LINENO"; then :
17061 ac_cv_lib_svld_dlopen=yes
17062else
17063 ac_cv_lib_svld_dlopen=no
17064fi
17065rm -f core conftest.err conftest.$ac_objext \
17066 conftest$ac_exeext conftest.$ac_ext
17067LIBS=$ac_check_lib_save_LIBS
17068fi
17069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17070$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017071if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017072 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17073else
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17075$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017076if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017077 $as_echo_n "(cached) " >&6
17078else
17079 ac_check_lib_save_LIBS=$LIBS
17080LIBS="-ldld $LIBS"
17081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082/* end confdefs.h. */
17083
17084/* Override any GCC internal prototype to avoid an error.
17085 Use char because int might match the return type of a GCC
17086 builtin and then its argument prototype would still apply. */
17087#ifdef __cplusplus
17088extern "C"
17089#endif
17090char dld_link ();
17091int
17092main ()
17093{
17094return dld_link ();
17095 ;
17096 return 0;
17097}
17098_ACEOF
17099if ac_fn_c_try_link "$LINENO"; then :
17100 ac_cv_lib_dld_dld_link=yes
17101else
17102 ac_cv_lib_dld_dld_link=no
17103fi
17104rm -f core conftest.err conftest.$ac_objext \
17105 conftest$ac_exeext conftest.$ac_ext
17106LIBS=$ac_check_lib_save_LIBS
17107fi
17108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17109$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017110if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017111 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17112fi
17113
17114
17115fi
17116
17117
17118fi
17119
17120
17121fi
17122
17123
17124fi
17125
17126
17127fi
17128
17129 ;;
17130 esac
17131
17132 if test "x$lt_cv_dlopen" != xno; then
17133 enable_dlopen=yes
17134 else
17135 enable_dlopen=no
17136 fi
17137
17138 case $lt_cv_dlopen in
17139 dlopen)
17140 save_CPPFLAGS="$CPPFLAGS"
17141 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17142
17143 save_LDFLAGS="$LDFLAGS"
17144 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17145
17146 save_LIBS="$LIBS"
17147 LIBS="$lt_cv_dlopen_libs $LIBS"
17148
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17150$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017151if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017152 $as_echo_n "(cached) " >&6
17153else
17154 if test "$cross_compiling" = yes; then :
17155 lt_cv_dlopen_self=cross
17156else
17157 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17158 lt_status=$lt_dlunknown
17159 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017160#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017161#include "confdefs.h"
17162
17163#if HAVE_DLFCN_H
17164#include <dlfcn.h>
17165#endif
17166
17167#include <stdio.h>
17168
17169#ifdef RTLD_GLOBAL
17170# define LT_DLGLOBAL RTLD_GLOBAL
17171#else
17172# ifdef DL_GLOBAL
17173# define LT_DLGLOBAL DL_GLOBAL
17174# else
17175# define LT_DLGLOBAL 0
17176# endif
17177#endif
17178
17179/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17180 find out it does not work in some platform. */
17181#ifndef LT_DLLAZY_OR_NOW
17182# ifdef RTLD_LAZY
17183# define LT_DLLAZY_OR_NOW RTLD_LAZY
17184# else
17185# ifdef DL_LAZY
17186# define LT_DLLAZY_OR_NOW DL_LAZY
17187# else
17188# ifdef RTLD_NOW
17189# define LT_DLLAZY_OR_NOW RTLD_NOW
17190# else
17191# ifdef DL_NOW
17192# define LT_DLLAZY_OR_NOW DL_NOW
17193# else
17194# define LT_DLLAZY_OR_NOW 0
17195# endif
17196# endif
17197# endif
17198# endif
17199#endif
17200
cristy0c60a692010-11-04 01:09:47 +000017201/* When -fvisbility=hidden is used, assume the code has been annotated
17202 correspondingly for the symbols needed. */
17203#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017204int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017205#endif
17206
cristyda16f162011-02-19 23:52:17 +000017207int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017208int main ()
17209{
17210 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17211 int status = $lt_dlunknown;
17212
17213 if (self)
17214 {
17215 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017216 else
17217 {
17218 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17219 else puts (dlerror ());
17220 }
cristy73bd4a52010-10-05 11:24:23 +000017221 /* dlclose (self); */
17222 }
17223 else
17224 puts (dlerror ());
17225
17226 return status;
17227}
17228_LT_EOF
17229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17230 (eval $ac_link) 2>&5
17231 ac_status=$?
17232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17233 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17234 (./conftest; exit; ) >&5 2>/dev/null
17235 lt_status=$?
17236 case x$lt_status in
17237 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17238 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17239 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17240 esac
17241 else :
17242 # compilation failed
17243 lt_cv_dlopen_self=no
17244 fi
17245fi
17246rm -fr conftest*
17247
17248
17249fi
17250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17251$as_echo "$lt_cv_dlopen_self" >&6; }
17252
17253 if test "x$lt_cv_dlopen_self" = xyes; then
17254 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17256$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017257if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017258 $as_echo_n "(cached) " >&6
17259else
17260 if test "$cross_compiling" = yes; then :
17261 lt_cv_dlopen_self_static=cross
17262else
17263 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17264 lt_status=$lt_dlunknown
17265 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017266#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017267#include "confdefs.h"
17268
17269#if HAVE_DLFCN_H
17270#include <dlfcn.h>
17271#endif
17272
17273#include <stdio.h>
17274
17275#ifdef RTLD_GLOBAL
17276# define LT_DLGLOBAL RTLD_GLOBAL
17277#else
17278# ifdef DL_GLOBAL
17279# define LT_DLGLOBAL DL_GLOBAL
17280# else
17281# define LT_DLGLOBAL 0
17282# endif
17283#endif
17284
17285/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17286 find out it does not work in some platform. */
17287#ifndef LT_DLLAZY_OR_NOW
17288# ifdef RTLD_LAZY
17289# define LT_DLLAZY_OR_NOW RTLD_LAZY
17290# else
17291# ifdef DL_LAZY
17292# define LT_DLLAZY_OR_NOW DL_LAZY
17293# else
17294# ifdef RTLD_NOW
17295# define LT_DLLAZY_OR_NOW RTLD_NOW
17296# else
17297# ifdef DL_NOW
17298# define LT_DLLAZY_OR_NOW DL_NOW
17299# else
17300# define LT_DLLAZY_OR_NOW 0
17301# endif
17302# endif
17303# endif
17304# endif
17305#endif
17306
cristy0c60a692010-11-04 01:09:47 +000017307/* When -fvisbility=hidden is used, assume the code has been annotated
17308 correspondingly for the symbols needed. */
17309#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017310int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017311#endif
17312
cristyda16f162011-02-19 23:52:17 +000017313int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017314int main ()
17315{
17316 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17317 int status = $lt_dlunknown;
17318
17319 if (self)
17320 {
17321 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017322 else
17323 {
17324 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17325 else puts (dlerror ());
17326 }
cristy73bd4a52010-10-05 11:24:23 +000017327 /* dlclose (self); */
17328 }
17329 else
17330 puts (dlerror ());
17331
17332 return status;
17333}
17334_LT_EOF
17335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17336 (eval $ac_link) 2>&5
17337 ac_status=$?
17338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17339 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17340 (./conftest; exit; ) >&5 2>/dev/null
17341 lt_status=$?
17342 case x$lt_status in
17343 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17344 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17345 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17346 esac
17347 else :
17348 # compilation failed
17349 lt_cv_dlopen_self_static=no
17350 fi
17351fi
17352rm -fr conftest*
17353
17354
17355fi
17356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17357$as_echo "$lt_cv_dlopen_self_static" >&6; }
17358 fi
17359
17360 CPPFLAGS="$save_CPPFLAGS"
17361 LDFLAGS="$save_LDFLAGS"
17362 LIBS="$save_LIBS"
17363 ;;
17364 esac
17365
17366 case $lt_cv_dlopen_self in
17367 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17368 *) enable_dlopen_self=unknown ;;
17369 esac
17370
17371 case $lt_cv_dlopen_self_static in
17372 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17373 *) enable_dlopen_self_static=unknown ;;
17374 esac
17375fi
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393striplib=
17394old_striplib=
17395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17396$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17397if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17398 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17399 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17401$as_echo "yes" >&6; }
17402else
17403# FIXME - insert some real tests, host_os isn't really good enough
17404 case $host_os in
17405 darwin*)
17406 if test -n "$STRIP" ; then
17407 striplib="$STRIP -x"
17408 old_striplib="$STRIP -S"
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17410$as_echo "yes" >&6; }
17411 else
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17413$as_echo "no" >&6; }
17414 fi
17415 ;;
17416 *)
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17418$as_echo "no" >&6; }
17419 ;;
17420 esac
17421fi
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434 # Report which library types will actually be built
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17436$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17438$as_echo "$can_build_shared" >&6; }
17439
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17441$as_echo_n "checking whether to build shared libraries... " >&6; }
17442 test "$can_build_shared" = "no" && enable_shared=no
17443
17444 # On AIX, shared libraries and static libraries use the same namespace, and
17445 # are all built from PIC.
17446 case $host_os in
17447 aix3*)
17448 test "$enable_shared" = yes && enable_static=no
17449 if test -n "$RANLIB"; then
17450 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17451 postinstall_cmds='$RANLIB $lib'
17452 fi
17453 ;;
17454
17455 aix[4-9]*)
17456 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17457 test "$enable_shared" = yes && enable_static=no
17458 fi
17459 ;;
17460 esac
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17462$as_echo "$enable_shared" >&6; }
17463
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17465$as_echo_n "checking whether to build static libraries... " >&6; }
17466 # Make sure either enable_shared or enable_static is yes.
17467 test "$enable_shared" = yes || enable_static=yes
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17469$as_echo "$enable_static" >&6; }
17470
17471
17472
17473
17474fi
17475ac_ext=c
17476ac_cpp='$CPP $CPPFLAGS'
17477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17479ac_compiler_gnu=$ac_cv_c_compiler_gnu
17480
17481CC="$lt_save_CC"
17482
cristy0c60a692010-11-04 01:09:47 +000017483 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17484 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17485 (test "X$CXX" != "Xg++"))) ; then
17486 ac_ext=cpp
17487ac_cpp='$CXXCPP $CPPFLAGS'
17488ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17489ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17490ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17492$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17493if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017494 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017495 $as_echo_n "(cached) " >&6
17496else
17497 # Double quotes because CXXCPP needs to be expanded
17498 for CXXCPP in "$CXX -E" "/lib/cpp"
17499 do
17500 ac_preproc_ok=false
17501for ac_cxx_preproc_warn_flag in '' yes
17502do
17503 # Use a header file that comes with gcc, so configuring glibc
17504 # with a fresh cross-compiler works.
17505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17506 # <limits.h> exists even on freestanding compilers.
17507 # On the NeXT, cc -E runs the code through the compiler's parser,
17508 # not just through cpp. "Syntax error" is here to catch this case.
17509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510/* end confdefs.h. */
17511#ifdef __STDC__
17512# include <limits.h>
17513#else
17514# include <assert.h>
17515#endif
17516 Syntax error
17517_ACEOF
17518if ac_fn_cxx_try_cpp "$LINENO"; then :
17519
17520else
17521 # Broken: fails on valid input.
17522continue
17523fi
cristyda16f162011-02-19 23:52:17 +000017524rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017525
17526 # OK, works on sane cases. Now check whether nonexistent headers
17527 # can be detected and how.
17528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17529/* end confdefs.h. */
17530#include <ac_nonexistent.h>
17531_ACEOF
17532if ac_fn_cxx_try_cpp "$LINENO"; then :
17533 # Broken: success on invalid input.
17534continue
17535else
17536 # Passes both tests.
17537ac_preproc_ok=:
17538break
17539fi
cristyda16f162011-02-19 23:52:17 +000017540rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017541
17542done
17543# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017544rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017545if $ac_preproc_ok; then :
17546 break
17547fi
17548
17549 done
17550 ac_cv_prog_CXXCPP=$CXXCPP
17551
17552fi
17553 CXXCPP=$ac_cv_prog_CXXCPP
17554else
17555 ac_cv_prog_CXXCPP=$CXXCPP
17556fi
17557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17558$as_echo "$CXXCPP" >&6; }
17559ac_preproc_ok=false
17560for ac_cxx_preproc_warn_flag in '' yes
17561do
17562 # Use a header file that comes with gcc, so configuring glibc
17563 # with a fresh cross-compiler works.
17564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17565 # <limits.h> exists even on freestanding compilers.
17566 # On the NeXT, cc -E runs the code through the compiler's parser,
17567 # not just through cpp. "Syntax error" is here to catch this case.
17568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17569/* end confdefs.h. */
17570#ifdef __STDC__
17571# include <limits.h>
17572#else
17573# include <assert.h>
17574#endif
17575 Syntax error
17576_ACEOF
17577if ac_fn_cxx_try_cpp "$LINENO"; then :
17578
17579else
17580 # Broken: fails on valid input.
17581continue
17582fi
cristyda16f162011-02-19 23:52:17 +000017583rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017584
17585 # OK, works on sane cases. Now check whether nonexistent headers
17586 # can be detected and how.
17587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17588/* end confdefs.h. */
17589#include <ac_nonexistent.h>
17590_ACEOF
17591if ac_fn_cxx_try_cpp "$LINENO"; then :
17592 # Broken: success on invalid input.
17593continue
17594else
17595 # Passes both tests.
17596ac_preproc_ok=:
17597break
17598fi
cristyda16f162011-02-19 23:52:17 +000017599rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017600
17601done
17602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017603rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017604if $ac_preproc_ok; then :
17605
17606else
17607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17609as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17610See \`config.log' for more details" "$LINENO" 5; }
17611fi
17612
17613ac_ext=c
17614ac_cpp='$CPP $CPPFLAGS'
17615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17617ac_compiler_gnu=$ac_cv_c_compiler_gnu
17618
17619else
17620 _lt_caught_CXX_error=yes
17621fi
cristy73bd4a52010-10-05 11:24:23 +000017622
17623ac_ext=cpp
17624ac_cpp='$CXXCPP $CPPFLAGS'
17625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17628
17629archive_cmds_need_lc_CXX=no
17630allow_undefined_flag_CXX=
17631always_export_symbols_CXX=no
17632archive_expsym_cmds_CXX=
17633compiler_needs_object_CXX=no
17634export_dynamic_flag_spec_CXX=
17635hardcode_direct_CXX=no
17636hardcode_direct_absolute_CXX=no
17637hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017638hardcode_libdir_separator_CXX=
17639hardcode_minus_L_CXX=no
17640hardcode_shlibpath_var_CXX=unsupported
17641hardcode_automatic_CXX=no
17642inherit_rpath_CXX=no
17643module_cmds_CXX=
17644module_expsym_cmds_CXX=
17645link_all_deplibs_CXX=unknown
17646old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017647reload_flag_CXX=$reload_flag
17648reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017649no_undefined_flag_CXX=
17650whole_archive_flag_spec_CXX=
17651enable_shared_with_static_runtimes_CXX=no
17652
17653# Source file extension for C++ test sources.
17654ac_ext=cpp
17655
17656# Object file extension for compiled C++ test sources.
17657objext=o
17658objext_CXX=$objext
17659
17660# No sense in running all these tests if we already determined that
17661# the CXX compiler isn't working. Some variables (like enable_shared)
17662# are currently assumed to apply to all compilers on this platform,
17663# and will be corrupted by setting them based on a non-working compiler.
17664if test "$_lt_caught_CXX_error" != yes; then
17665 # Code to be used in simple compile tests
17666 lt_simple_compile_test_code="int some_variable = 0;"
17667
17668 # Code to be used in simple link tests
17669 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17670
17671 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17672
17673
17674
17675
17676
17677
17678# If no C compiler was specified, use CC.
17679LTCC=${LTCC-"$CC"}
17680
17681# If no C compiler flags were specified, use CFLAGS.
17682LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17683
17684# Allow CC to be a program name with arguments.
17685compiler=$CC
17686
17687
17688 # save warnings/boilerplate of simple test code
17689 ac_outfile=conftest.$ac_objext
17690echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17691eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17692_lt_compiler_boilerplate=`cat conftest.err`
17693$RM conftest*
17694
17695 ac_outfile=conftest.$ac_objext
17696echo "$lt_simple_link_test_code" >conftest.$ac_ext
17697eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17698_lt_linker_boilerplate=`cat conftest.err`
17699$RM -r conftest*
17700
17701
17702 # Allow CC to be a program name with arguments.
17703 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017704 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017705 lt_save_LD=$LD
17706 lt_save_GCC=$GCC
17707 GCC=$GXX
17708 lt_save_with_gnu_ld=$with_gnu_ld
17709 lt_save_path_LD=$lt_cv_path_LD
17710 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17711 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17712 else
17713 $as_unset lt_cv_prog_gnu_ld
17714 fi
17715 if test -n "${lt_cv_path_LDCXX+set}"; then
17716 lt_cv_path_LD=$lt_cv_path_LDCXX
17717 else
17718 $as_unset lt_cv_path_LD
17719 fi
17720 test -z "${LDCXX+set}" || LD=$LDCXX
17721 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017722 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017723 compiler=$CC
17724 compiler_CXX=$CC
17725 for cc_temp in $compiler""; do
17726 case $cc_temp in
17727 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17728 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17729 \-*) ;;
17730 *) break;;
17731 esac
17732done
cristy0c60a692010-11-04 01:09:47 +000017733cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017734
17735
17736 if test -n "$compiler"; then
17737 # We don't want -fno-exception when compiling C++ code, so set the
17738 # no_builtin_flag separately
17739 if test "$GXX" = yes; then
17740 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17741 else
17742 lt_prog_compiler_no_builtin_flag_CXX=
17743 fi
17744
17745 if test "$GXX" = yes; then
17746 # Set up default GNU C++ configuration
17747
17748
17749
17750# Check whether --with-gnu-ld was given.
17751if test "${with_gnu_ld+set}" = set; then :
17752 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17753else
17754 with_gnu_ld=no
17755fi
17756
17757ac_prog=ld
17758if test "$GCC" = yes; then
17759 # Check if gcc -print-prog-name=ld gives a path.
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17761$as_echo_n "checking for ld used by $CC... " >&6; }
17762 case $host in
17763 *-*-mingw*)
17764 # gcc leaves a trailing carriage return which upsets mingw
17765 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17766 *)
17767 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17768 esac
17769 case $ac_prog in
17770 # Accept absolute paths.
17771 [\\/]* | ?:[\\/]*)
17772 re_direlt='/[^/][^/]*/\.\./'
17773 # Canonicalize the pathname of ld
17774 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17775 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17776 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17777 done
17778 test -z "$LD" && LD="$ac_prog"
17779 ;;
17780 "")
17781 # If it fails, then pretend we aren't using GCC.
17782 ac_prog=ld
17783 ;;
17784 *)
17785 # If it is relative, then search for the first ld in PATH.
17786 with_gnu_ld=unknown
17787 ;;
17788 esac
17789elif test "$with_gnu_ld" = yes; then
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17791$as_echo_n "checking for GNU ld... " >&6; }
17792else
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17794$as_echo_n "checking for non-GNU ld... " >&6; }
17795fi
cristyda16f162011-02-19 23:52:17 +000017796if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017797 $as_echo_n "(cached) " >&6
17798else
17799 if test -z "$LD"; then
17800 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17801 for ac_dir in $PATH; do
17802 IFS="$lt_save_ifs"
17803 test -z "$ac_dir" && ac_dir=.
17804 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17805 lt_cv_path_LD="$ac_dir/$ac_prog"
17806 # Check to see if the program is GNU ld. I'd rather use --version,
17807 # but apparently some variants of GNU ld only accept -v.
17808 # Break only if it was the GNU/non-GNU ld that we prefer.
17809 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17810 *GNU* | *'with BFD'*)
17811 test "$with_gnu_ld" != no && break
17812 ;;
17813 *)
17814 test "$with_gnu_ld" != yes && break
17815 ;;
17816 esac
17817 fi
17818 done
17819 IFS="$lt_save_ifs"
17820else
17821 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17822fi
17823fi
17824
17825LD="$lt_cv_path_LD"
17826if test -n "$LD"; then
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17828$as_echo "$LD" >&6; }
17829else
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17831$as_echo "no" >&6; }
17832fi
cristy98dddb52010-11-04 00:30:15 +000017833test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17835$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017836if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017837 $as_echo_n "(cached) " >&6
17838else
17839 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17840case `$LD -v 2>&1 </dev/null` in
17841*GNU* | *'with BFD'*)
17842 lt_cv_prog_gnu_ld=yes
17843 ;;
17844*)
17845 lt_cv_prog_gnu_ld=no
17846 ;;
17847esac
17848fi
17849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17850$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17851with_gnu_ld=$lt_cv_prog_gnu_ld
17852
17853
17854
17855
17856
17857
17858
17859 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17860 # archiving commands below assume that GNU ld is being used.
17861 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017862 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17863 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 +000017864
17865 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17866 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17867
17868 # If archive_cmds runs LD, not CC, wlarc should be empty
17869 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17870 # investigate it a little bit more. (MM)
17871 wlarc='${wl}'
17872
17873 # ancient GNU ld didn't support --whole-archive et. al.
17874 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17875 $GREP 'no-whole-archive' > /dev/null; then
17876 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17877 else
17878 whole_archive_flag_spec_CXX=
17879 fi
17880 else
17881 with_gnu_ld=no
17882 wlarc=
17883
17884 # A generic and very simple default shared library creation
17885 # command for GNU C++ for the case where it uses the native
17886 # linker, instead of GNU ld. If possible, this setting should
17887 # overridden to take advantage of the native linker features on
17888 # the platform it is being used on.
17889 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17890 fi
17891
17892 # Commands to make compiler produce verbose output that lists
17893 # what "hidden" libraries, object files and flags are used when
17894 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017895 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017896
17897 else
17898 GXX=no
17899 with_gnu_ld=no
17900 wlarc=
17901 fi
17902
17903 # PORTME: fill in a description of your system's C++ link characteristics
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17905$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17906 ld_shlibs_CXX=yes
17907 case $host_os in
17908 aix3*)
17909 # FIXME: insert proper C++ library support
17910 ld_shlibs_CXX=no
17911 ;;
17912 aix[4-9]*)
17913 if test "$host_cpu" = ia64; then
17914 # On IA64, the linker does run time linking by default, so we don't
17915 # have to do anything special.
17916 aix_use_runtimelinking=no
17917 exp_sym_flag='-Bexport'
17918 no_entry_flag=""
17919 else
17920 aix_use_runtimelinking=no
17921
17922 # Test if we are trying to use run time linking or normal
17923 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17924 # need to do runtime linking.
17925 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17926 for ld_flag in $LDFLAGS; do
17927 case $ld_flag in
17928 *-brtl*)
17929 aix_use_runtimelinking=yes
17930 break
17931 ;;
17932 esac
17933 done
17934 ;;
17935 esac
17936
17937 exp_sym_flag='-bexport'
17938 no_entry_flag='-bnoentry'
17939 fi
17940
17941 # When large executables or shared objects are built, AIX ld can
17942 # have problems creating the table of contents. If linking a library
17943 # or program results in "error TOC overflow" add -mminimal-toc to
17944 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17945 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17946
17947 archive_cmds_CXX=''
17948 hardcode_direct_CXX=yes
17949 hardcode_direct_absolute_CXX=yes
17950 hardcode_libdir_separator_CXX=':'
17951 link_all_deplibs_CXX=yes
17952 file_list_spec_CXX='${wl}-f,'
17953
17954 if test "$GXX" = yes; then
17955 case $host_os in aix4.[012]|aix4.[012].*)
17956 # We only want to do this on AIX 4.2 and lower, the check
17957 # below for broken collect2 doesn't work under 4.3+
17958 collect2name=`${CC} -print-prog-name=collect2`
17959 if test -f "$collect2name" &&
17960 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17961 then
17962 # We have reworked collect2
17963 :
17964 else
17965 # We have old collect2
17966 hardcode_direct_CXX=unsupported
17967 # It fails to find uninstalled libraries when the uninstalled
17968 # path is not listed in the libpath. Setting hardcode_minus_L
17969 # to unsupported forces relinking
17970 hardcode_minus_L_CXX=yes
17971 hardcode_libdir_flag_spec_CXX='-L$libdir'
17972 hardcode_libdir_separator_CXX=
17973 fi
17974 esac
17975 shared_flag='-shared'
17976 if test "$aix_use_runtimelinking" = yes; then
17977 shared_flag="$shared_flag "'${wl}-G'
17978 fi
17979 else
17980 # not using gcc
17981 if test "$host_cpu" = ia64; then
17982 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17983 # chokes on -Wl,-G. The following line is correct:
17984 shared_flag='-G'
17985 else
17986 if test "$aix_use_runtimelinking" = yes; then
17987 shared_flag='${wl}-G'
17988 else
17989 shared_flag='${wl}-bM:SRE'
17990 fi
17991 fi
17992 fi
17993
17994 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17995 # It seems that -bexpall does not export symbols beginning with
17996 # underscore (_), so it is better to generate a list of symbols to
17997 # export.
17998 always_export_symbols_CXX=yes
17999 if test "$aix_use_runtimelinking" = yes; then
18000 # Warning - without using the other runtime loading flags (-brtl),
18001 # -berok will link without error, but may produce a broken library.
18002 allow_undefined_flag_CXX='-berok'
18003 # Determine the default libpath from the value encoded in an empty
18004 # executable.
cristyda16f162011-02-19 23:52:17 +000018005 if test "${lt_cv_aix_libpath+set}" = set; then
18006 aix_libpath=$lt_cv_aix_libpath
18007else
18008 if ${lt_cv_aix_libpath__CXX+:} false; then :
18009 $as_echo_n "(cached) " >&6
18010else
18011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018012/* end confdefs.h. */
18013
18014int
18015main ()
18016{
18017
18018 ;
18019 return 0;
18020}
18021_ACEOF
18022if ac_fn_cxx_try_link "$LINENO"; then :
18023
cristyda16f162011-02-19 23:52:17 +000018024 lt_aix_libpath_sed='
18025 /Import File Strings/,/^$/ {
18026 /^0/ {
18027 s/^0 *\([^ ]*\) *$/\1/
18028 p
18029 }
18030 }'
18031 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18032 # Check for a 64-bit object if we didn't find anything.
18033 if test -z "$lt_cv_aix_libpath__CXX"; then
18034 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18035 fi
cristy73bd4a52010-10-05 11:24:23 +000018036fi
18037rm -f core conftest.err conftest.$ac_objext \
18038 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018039 if test -z "$lt_cv_aix_libpath__CXX"; then
18040 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18041 fi
18042
18043fi
18044
18045 aix_libpath=$lt_cv_aix_libpath__CXX
18046fi
cristy73bd4a52010-10-05 11:24:23 +000018047
18048 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18049
cristy0c60a692010-11-04 01:09:47 +000018050 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 +000018051 else
18052 if test "$host_cpu" = ia64; then
18053 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18054 allow_undefined_flag_CXX="-z nodefs"
18055 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"
18056 else
18057 # Determine the default libpath from the value encoded in an
18058 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018059 if test "${lt_cv_aix_libpath+set}" = set; then
18060 aix_libpath=$lt_cv_aix_libpath
18061else
18062 if ${lt_cv_aix_libpath__CXX+:} false; then :
18063 $as_echo_n "(cached) " >&6
18064else
18065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018066/* end confdefs.h. */
18067
18068int
18069main ()
18070{
18071
18072 ;
18073 return 0;
18074}
18075_ACEOF
18076if ac_fn_cxx_try_link "$LINENO"; then :
18077
cristyda16f162011-02-19 23:52:17 +000018078 lt_aix_libpath_sed='
18079 /Import File Strings/,/^$/ {
18080 /^0/ {
18081 s/^0 *\([^ ]*\) *$/\1/
18082 p
18083 }
18084 }'
18085 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18086 # Check for a 64-bit object if we didn't find anything.
18087 if test -z "$lt_cv_aix_libpath__CXX"; then
18088 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18089 fi
cristy73bd4a52010-10-05 11:24:23 +000018090fi
18091rm -f core conftest.err conftest.$ac_objext \
18092 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018093 if test -z "$lt_cv_aix_libpath__CXX"; then
18094 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18095 fi
18096
18097fi
18098
18099 aix_libpath=$lt_cv_aix_libpath__CXX
18100fi
cristy73bd4a52010-10-05 11:24:23 +000018101
18102 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18103 # Warning - without using the other run time loading flags,
18104 # -berok will link without error, but may produce a broken library.
18105 no_undefined_flag_CXX=' ${wl}-bernotok'
18106 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018107 if test "$with_gnu_ld" = yes; then
18108 # We only use this code for GNU lds that support --whole-archive.
18109 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18110 else
18111 # Exported symbols can be pulled into shared objects from archives
18112 whole_archive_flag_spec_CXX='$convenience'
18113 fi
cristy73bd4a52010-10-05 11:24:23 +000018114 archive_cmds_need_lc_CXX=yes
18115 # This is similar to how AIX traditionally builds its shared
18116 # libraries.
18117 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'
18118 fi
18119 fi
18120 ;;
18121
18122 beos*)
18123 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18124 allow_undefined_flag_CXX=unsupported
18125 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18126 # support --undefined. This deserves some investigation. FIXME
18127 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18128 else
18129 ld_shlibs_CXX=no
18130 fi
18131 ;;
18132
18133 chorus*)
18134 case $cc_basename in
18135 *)
18136 # FIXME: insert proper C++ library support
18137 ld_shlibs_CXX=no
18138 ;;
18139 esac
18140 ;;
18141
18142 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018143 case $GXX,$cc_basename in
18144 ,cl* | no,cl*)
18145 # Native MSVC
18146 # hardcode_libdir_flag_spec is actually meaningless, as there is
18147 # no search path for DLLs.
18148 hardcode_libdir_flag_spec_CXX=' '
18149 allow_undefined_flag_CXX=unsupported
18150 always_export_symbols_CXX=yes
18151 file_list_spec_CXX='@'
18152 # Tell ltmain to make .lib files, not .a files.
18153 libext=lib
18154 # Tell ltmain to make .dll files, not .so files.
18155 shrext_cmds=".dll"
18156 # FIXME: Setting linknames here is a bad hack.
18157 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18158 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18159 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18160 else
18161 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18162 fi~
18163 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18164 linknames='
18165 # The linker will not automatically build a static lib if we build a DLL.
18166 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18167 enable_shared_with_static_runtimes_CXX=yes
18168 # Don't use ranlib
18169 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18170 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18171 lt_tool_outputfile="@TOOL_OUTPUT@"~
18172 case $lt_outputfile in
18173 *.exe|*.EXE) ;;
18174 *)
18175 lt_outputfile="$lt_outputfile.exe"
18176 lt_tool_outputfile="$lt_tool_outputfile.exe"
18177 ;;
18178 esac~
18179 func_to_tool_file "$lt_outputfile"~
18180 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18181 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18182 $RM "$lt_outputfile.manifest";
18183 fi'
18184 ;;
18185 *)
18186 # g++
18187 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18188 # as there is no search path for DLLs.
18189 hardcode_libdir_flag_spec_CXX='-L$libdir'
18190 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18191 allow_undefined_flag_CXX=unsupported
18192 always_export_symbols_CXX=no
18193 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018194
cristyda16f162011-02-19 23:52:17 +000018195 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18196 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'
18197 # If the export-symbols file already is a .def file (1st line
18198 # is EXPORTS), use it as is; otherwise, prepend...
18199 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18200 cp $export_symbols $output_objdir/$soname.def;
18201 else
18202 echo EXPORTS > $output_objdir/$soname.def;
18203 cat $export_symbols >> $output_objdir/$soname.def;
18204 fi~
18205 $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'
18206 else
18207 ld_shlibs_CXX=no
18208 fi
18209 ;;
18210 esac
18211 ;;
cristy73bd4a52010-10-05 11:24:23 +000018212 darwin* | rhapsody*)
18213
18214
18215 archive_cmds_need_lc_CXX=no
18216 hardcode_direct_CXX=no
18217 hardcode_automatic_CXX=yes
18218 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018219 if test "$lt_cv_ld_force_load" = "yes"; then
18220 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 +000018221
cristy0c60a692010-11-04 01:09:47 +000018222 else
18223 whole_archive_flag_spec_CXX=''
18224 fi
cristy73bd4a52010-10-05 11:24:23 +000018225 link_all_deplibs_CXX=yes
18226 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18227 case $cc_basename in
18228 ifort*) _lt_dar_can_shared=yes ;;
18229 *) _lt_dar_can_shared=$GCC ;;
18230 esac
18231 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018232 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018233 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}"
18234 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18235 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}"
18236 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}"
18237 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18238 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}"
18239 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}"
18240 fi
18241
18242 else
18243 ld_shlibs_CXX=no
18244 fi
18245
18246 ;;
18247
18248 dgux*)
18249 case $cc_basename in
18250 ec++*)
18251 # FIXME: insert proper C++ library support
18252 ld_shlibs_CXX=no
18253 ;;
18254 ghcx*)
18255 # Green Hills C++ Compiler
18256 # FIXME: insert proper C++ library support
18257 ld_shlibs_CXX=no
18258 ;;
18259 *)
18260 # FIXME: insert proper C++ library support
18261 ld_shlibs_CXX=no
18262 ;;
18263 esac
18264 ;;
18265
cristy99bd5232011-12-07 14:38:20 +000018266 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018267 # C++ shared libraries reported to be fairly broken before
18268 # switch to ELF
18269 ld_shlibs_CXX=no
18270 ;;
18271
18272 freebsd-elf*)
18273 archive_cmds_need_lc_CXX=no
18274 ;;
18275
18276 freebsd* | dragonfly*)
18277 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18278 # conventions
18279 ld_shlibs_CXX=yes
18280 ;;
18281
18282 gnu*)
18283 ;;
18284
cristy0c60a692010-11-04 01:09:47 +000018285 haiku*)
18286 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18287 link_all_deplibs_CXX=yes
18288 ;;
18289
cristy73bd4a52010-10-05 11:24:23 +000018290 hpux9*)
18291 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18292 hardcode_libdir_separator_CXX=:
18293 export_dynamic_flag_spec_CXX='${wl}-E'
18294 hardcode_direct_CXX=yes
18295 hardcode_minus_L_CXX=yes # Not in the search PATH,
18296 # but as the default
18297 # location of the library.
18298
18299 case $cc_basename in
18300 CC*)
18301 # FIXME: insert proper C++ library support
18302 ld_shlibs_CXX=no
18303 ;;
18304 aCC*)
18305 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'
18306 # Commands to make compiler produce verbose output that lists
18307 # what "hidden" libraries, object files and flags are used when
18308 # linking a shared library.
18309 #
18310 # There doesn't appear to be a way to prevent this compiler from
18311 # explicitly linking system object files so we need to strip them
18312 # from the output so that they don't get included in the library
18313 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018314 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 +000018315 ;;
18316 *)
18317 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018318 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 +000018319 else
18320 # FIXME: insert proper C++ library support
18321 ld_shlibs_CXX=no
18322 fi
18323 ;;
18324 esac
18325 ;;
18326
18327 hpux10*|hpux11*)
18328 if test $with_gnu_ld = no; then
18329 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18330 hardcode_libdir_separator_CXX=:
18331
18332 case $host_cpu in
18333 hppa*64*|ia64*)
18334 ;;
18335 *)
18336 export_dynamic_flag_spec_CXX='${wl}-E'
18337 ;;
18338 esac
18339 fi
18340 case $host_cpu in
18341 hppa*64*|ia64*)
18342 hardcode_direct_CXX=no
18343 hardcode_shlibpath_var_CXX=no
18344 ;;
18345 *)
18346 hardcode_direct_CXX=yes
18347 hardcode_direct_absolute_CXX=yes
18348 hardcode_minus_L_CXX=yes # Not in the search PATH,
18349 # but as the default
18350 # location of the library.
18351 ;;
18352 esac
18353
18354 case $cc_basename in
18355 CC*)
18356 # FIXME: insert proper C++ library support
18357 ld_shlibs_CXX=no
18358 ;;
18359 aCC*)
18360 case $host_cpu in
18361 hppa*64*)
18362 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18363 ;;
18364 ia64*)
18365 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18366 ;;
18367 *)
18368 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18369 ;;
18370 esac
18371 # Commands to make compiler produce verbose output that lists
18372 # what "hidden" libraries, object files and flags are used when
18373 # linking a shared library.
18374 #
18375 # There doesn't appear to be a way to prevent this compiler from
18376 # explicitly linking system object files so we need to strip them
18377 # from the output so that they don't get included in the library
18378 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018379 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 +000018380 ;;
18381 *)
18382 if test "$GXX" = yes; then
18383 if test $with_gnu_ld = no; then
18384 case $host_cpu in
18385 hppa*64*)
18386 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18387 ;;
18388 ia64*)
cristyda16f162011-02-19 23:52:17 +000018389 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 +000018390 ;;
18391 *)
cristyda16f162011-02-19 23:52:17 +000018392 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 +000018393 ;;
18394 esac
18395 fi
18396 else
18397 # FIXME: insert proper C++ library support
18398 ld_shlibs_CXX=no
18399 fi
18400 ;;
18401 esac
18402 ;;
18403
18404 interix[3-9]*)
18405 hardcode_direct_CXX=no
18406 hardcode_shlibpath_var_CXX=no
18407 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18408 export_dynamic_flag_spec_CXX='${wl}-E'
18409 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18410 # Instead, shared libraries are loaded at an image base (0x10000000 by
18411 # default) and relocated if they conflict, which is a slow very memory
18412 # consuming and fragmenting process. To avoid this, we pick a random,
18413 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18414 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18415 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'
18416 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'
18417 ;;
18418 irix5* | irix6*)
18419 case $cc_basename in
18420 CC*)
18421 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018422 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 +000018423
18424 # Archives containing C++ object files must be created using
18425 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18426 # necessary to make sure instantiated templates are included
18427 # in the archive.
18428 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18429 ;;
18430 *)
18431 if test "$GXX" = yes; then
18432 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018433 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 +000018434 else
cristyda16f162011-02-19 23:52:17 +000018435 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 +000018436 fi
18437 fi
18438 link_all_deplibs_CXX=yes
18439 ;;
18440 esac
18441 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18442 hardcode_libdir_separator_CXX=:
18443 inherit_rpath_CXX=yes
18444 ;;
18445
cristy0c60a692010-11-04 01:09:47 +000018446 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018447 case $cc_basename in
18448 KCC*)
18449 # Kuck and Associates, Inc. (KAI) C++ Compiler
18450
18451 # KCC will only create a shared library if the output file
18452 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18453 # to its proper name (with version) after linking.
18454 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'
18455 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'
18456 # Commands to make compiler produce verbose output that lists
18457 # what "hidden" libraries, object files and flags are used when
18458 # linking a shared library.
18459 #
18460 # There doesn't appear to be a way to prevent this compiler from
18461 # explicitly linking system object files so we need to strip them
18462 # from the output so that they don't get included in the library
18463 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018464 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 +000018465
18466 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18467 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18468
18469 # Archives containing C++ object files must be created using
18470 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18471 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18472 ;;
18473 icpc* | ecpc* )
18474 # Intel C++
18475 with_gnu_ld=yes
18476 # version 8.0 and above of icpc choke on multiply defined symbols
18477 # if we add $predep_objects and $postdep_objects, however 7.1 and
18478 # earlier do not add the objects themselves.
18479 case `$CC -V 2>&1` in
18480 *"Version 7."*)
18481 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18482 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'
18483 ;;
18484 *) # Version 8.0 or newer
18485 tmp_idyn=
18486 case $host_cpu in
18487 ia64*) tmp_idyn=' -i_dynamic';;
18488 esac
18489 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18490 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'
18491 ;;
18492 esac
18493 archive_cmds_need_lc_CXX=no
18494 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18495 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18496 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18497 ;;
18498 pgCC* | pgcpp*)
18499 # Portland Group C++ compiler
18500 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018501 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018502 prelink_cmds_CXX='tpldir=Template.dir~
18503 rm -rf $tpldir~
18504 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018505 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018506 old_archive_cmds_CXX='tpldir=Template.dir~
18507 rm -rf $tpldir~
18508 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018509 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018510 $RANLIB $oldlib'
18511 archive_cmds_CXX='tpldir=Template.dir~
18512 rm -rf $tpldir~
18513 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018514 $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 +000018515 archive_expsym_cmds_CXX='tpldir=Template.dir~
18516 rm -rf $tpldir~
18517 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018518 $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 +000018519 ;;
cristy0c60a692010-11-04 01:09:47 +000018520 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018521 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18522 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'
18523 ;;
18524 esac
18525
18526 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18527 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018528 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 +000018529 ;;
18530 cxx*)
18531 # Compaq C++
18532 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18533 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'
18534
18535 runpath_var=LD_RUN_PATH
18536 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18537 hardcode_libdir_separator_CXX=:
18538
18539 # Commands to make compiler produce verbose output that lists
18540 # what "hidden" libraries, object files and flags are used when
18541 # linking a shared library.
18542 #
18543 # There doesn't appear to be a way to prevent this compiler from
18544 # explicitly linking system object files so we need to strip them
18545 # from the output so that they don't get included in the library
18546 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018547 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 +000018548 ;;
cristy0c60a692010-11-04 01:09:47 +000018549 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018550 # IBM XL 8.0 on PPC, with GNU ld
18551 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18552 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18553 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18554 if test "x$supports_anon_versioning" = xyes; then
18555 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18556 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18557 echo "local: *; };" >> $output_objdir/$libname.ver~
18558 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18559 fi
18560 ;;
18561 *)
18562 case `$CC -V 2>&1 | sed 5q` in
18563 *Sun\ C*)
18564 # Sun C++ 5.9
18565 no_undefined_flag_CXX=' -zdefs'
18566 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18567 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'
18568 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018569 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 +000018570 compiler_needs_object_CXX=yes
18571
18572 # Not sure whether something based on
18573 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18574 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018575 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018576
18577 # Archives containing C++ object files must be created using
18578 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18579 # necessary to make sure instantiated templates are included
18580 # in the archive.
18581 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18582 ;;
18583 esac
18584 ;;
18585 esac
18586 ;;
18587
18588 lynxos*)
18589 # FIXME: insert proper C++ library support
18590 ld_shlibs_CXX=no
18591 ;;
18592
18593 m88k*)
18594 # FIXME: insert proper C++ library support
18595 ld_shlibs_CXX=no
18596 ;;
18597
18598 mvs*)
18599 case $cc_basename in
18600 cxx*)
18601 # FIXME: insert proper C++ library support
18602 ld_shlibs_CXX=no
18603 ;;
18604 *)
18605 # FIXME: insert proper C++ library support
18606 ld_shlibs_CXX=no
18607 ;;
18608 esac
18609 ;;
18610
18611 netbsd*)
18612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18613 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18614 wlarc=
18615 hardcode_libdir_flag_spec_CXX='-R$libdir'
18616 hardcode_direct_CXX=yes
18617 hardcode_shlibpath_var_CXX=no
18618 fi
18619 # Workaround some broken pre-1.5 toolchains
18620 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18621 ;;
18622
18623 *nto* | *qnx*)
18624 ld_shlibs_CXX=yes
18625 ;;
18626
18627 openbsd2*)
18628 # C++ shared libraries are fairly broken
18629 ld_shlibs_CXX=no
18630 ;;
18631
18632 openbsd*)
18633 if test -f /usr/libexec/ld.so; then
18634 hardcode_direct_CXX=yes
18635 hardcode_shlibpath_var_CXX=no
18636 hardcode_direct_absolute_CXX=yes
18637 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18638 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18639 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18640 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18641 export_dynamic_flag_spec_CXX='${wl}-E'
18642 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18643 fi
cristy0c60a692010-11-04 01:09:47 +000018644 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018645 else
18646 ld_shlibs_CXX=no
18647 fi
18648 ;;
18649
18650 osf3* | osf4* | osf5*)
18651 case $cc_basename in
18652 KCC*)
18653 # Kuck and Associates, Inc. (KAI) C++ Compiler
18654
18655 # KCC will only create a shared library if the output file
18656 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18657 # to its proper name (with version) after linking.
18658 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'
18659
18660 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18661 hardcode_libdir_separator_CXX=:
18662
18663 # Archives containing C++ object files must be created using
18664 # the KAI C++ compiler.
18665 case $host in
18666 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18667 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18668 esac
18669 ;;
18670 RCC*)
18671 # Rational C++ 2.4.1
18672 # FIXME: insert proper C++ library support
18673 ld_shlibs_CXX=no
18674 ;;
18675 cxx*)
18676 case $host in
18677 osf3*)
18678 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018679 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 +000018680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18681 ;;
18682 *)
18683 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018684 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 +000018685 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18686 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018687 $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 +000018688 $RM $lib.exp'
18689 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18690 ;;
18691 esac
18692
18693 hardcode_libdir_separator_CXX=:
18694
18695 # Commands to make compiler produce verbose output that lists
18696 # what "hidden" libraries, object files and flags are used when
18697 # linking a shared library.
18698 #
18699 # There doesn't appear to be a way to prevent this compiler from
18700 # explicitly linking system object files so we need to strip them
18701 # from the output so that they don't get included in the library
18702 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018703 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 +000018704 ;;
18705 *)
18706 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18707 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18708 case $host in
18709 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018710 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 +000018711 ;;
18712 *)
cristyda16f162011-02-19 23:52:17 +000018713 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 +000018714 ;;
18715 esac
18716
18717 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18718 hardcode_libdir_separator_CXX=:
18719
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
18725 else
18726 # FIXME: insert proper C++ library support
18727 ld_shlibs_CXX=no
18728 fi
18729 ;;
18730 esac
18731 ;;
18732
18733 psos*)
18734 # FIXME: insert proper C++ library support
18735 ld_shlibs_CXX=no
18736 ;;
18737
18738 sunos4*)
18739 case $cc_basename in
18740 CC*)
18741 # Sun C++ 4.x
18742 # FIXME: insert proper C++ library support
18743 ld_shlibs_CXX=no
18744 ;;
18745 lcc*)
18746 # Lucid
18747 # FIXME: insert proper C++ library support
18748 ld_shlibs_CXX=no
18749 ;;
18750 *)
18751 # FIXME: insert proper C++ library support
18752 ld_shlibs_CXX=no
18753 ;;
18754 esac
18755 ;;
18756
18757 solaris*)
18758 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018759 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018760 # Sun C++ 4.2, 5.x and Centerline C++
18761 archive_cmds_need_lc_CXX=yes
18762 no_undefined_flag_CXX=' -zdefs'
18763 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18764 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18765 $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'
18766
18767 hardcode_libdir_flag_spec_CXX='-R$libdir'
18768 hardcode_shlibpath_var_CXX=no
18769 case $host_os in
18770 solaris2.[0-5] | solaris2.[0-5].*) ;;
18771 *)
18772 # The compiler driver will combine and reorder linker options,
18773 # but understands `-z linker_flag'.
18774 # Supported since Solaris 2.6 (maybe 2.5.1?)
18775 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18776 ;;
18777 esac
18778 link_all_deplibs_CXX=yes
18779
cristy0c60a692010-11-04 01:09:47 +000018780 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018781
18782 # Archives containing C++ object files must be created using
18783 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18784 # necessary to make sure instantiated templates are included
18785 # in the archive.
18786 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18787 ;;
18788 gcx*)
18789 # Green Hills C++ Compiler
18790 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18791
18792 # The C++ compiler must be used to create the archive.
18793 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18794 ;;
18795 *)
18796 # GNU C++ compiler with Solaris linker
18797 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18798 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18799 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018800 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 +000018801 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 +000018802 $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 +000018803
18804 # Commands to make compiler produce verbose output that lists
18805 # what "hidden" libraries, object files and flags are used when
18806 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018807 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018808 else
18809 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18810 # platform.
18811 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18812 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18813 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18814
18815 # Commands to make compiler produce verbose output that lists
18816 # what "hidden" libraries, object files and flags are used when
18817 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018818 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018819 fi
18820
18821 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18822 case $host_os in
18823 solaris2.[0-5] | solaris2.[0-5].*) ;;
18824 *)
18825 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18826 ;;
18827 esac
18828 fi
18829 ;;
18830 esac
18831 ;;
18832
18833 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18834 no_undefined_flag_CXX='${wl}-z,text'
18835 archive_cmds_need_lc_CXX=no
18836 hardcode_shlibpath_var_CXX=no
18837 runpath_var='LD_RUN_PATH'
18838
18839 case $cc_basename in
18840 CC*)
18841 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18842 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18843 ;;
18844 *)
18845 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18846 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18847 ;;
18848 esac
18849 ;;
18850
18851 sysv5* | sco3.2v5* | sco5v6*)
18852 # Note: We can NOT use -z defs as we might desire, because we do not
18853 # link with -lc, and that would cause any symbols used from libc to
18854 # always be unresolved, which means just about no library would
18855 # ever link correctly. If we're not using GNU ld we use -z text
18856 # though, which does catch some bad symbols but isn't as heavy-handed
18857 # as -z defs.
18858 no_undefined_flag_CXX='${wl}-z,text'
18859 allow_undefined_flag_CXX='${wl}-z,nodefs'
18860 archive_cmds_need_lc_CXX=no
18861 hardcode_shlibpath_var_CXX=no
18862 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18863 hardcode_libdir_separator_CXX=':'
18864 link_all_deplibs_CXX=yes
18865 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18866 runpath_var='LD_RUN_PATH'
18867
18868 case $cc_basename in
18869 CC*)
18870 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18871 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 +000018872 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18873 '"$old_archive_cmds_CXX"
18874 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18875 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018876 ;;
18877 *)
18878 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18879 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18880 ;;
18881 esac
18882 ;;
18883
18884 tandem*)
18885 case $cc_basename in
18886 NCC*)
18887 # NonStop-UX NCC 3.20
18888 # FIXME: insert proper C++ library support
18889 ld_shlibs_CXX=no
18890 ;;
18891 *)
18892 # FIXME: insert proper C++ library support
18893 ld_shlibs_CXX=no
18894 ;;
18895 esac
18896 ;;
18897
18898 vxworks*)
18899 # FIXME: insert proper C++ library support
18900 ld_shlibs_CXX=no
18901 ;;
18902
18903 *)
18904 # FIXME: insert proper C++ library support
18905 ld_shlibs_CXX=no
18906 ;;
18907 esac
18908
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18910$as_echo "$ld_shlibs_CXX" >&6; }
18911 test "$ld_shlibs_CXX" = no && can_build_shared=no
18912
18913 GCC_CXX="$GXX"
18914 LD_CXX="$LD"
18915
18916 ## CAVEAT EMPTOR:
18917 ## There is no encapsulation within the following macros, do not change
18918 ## the running order or otherwise move them around unless you know exactly
18919 ## what you are doing...
18920 # Dependencies to place before and after the object being linked:
18921predep_objects_CXX=
18922postdep_objects_CXX=
18923predeps_CXX=
18924postdeps_CXX=
18925compiler_lib_search_path_CXX=
18926
18927cat > conftest.$ac_ext <<_LT_EOF
18928class Foo
18929{
18930public:
18931 Foo (void) { a = 0; }
18932private:
18933 int a;
18934};
18935_LT_EOF
18936
cristyda16f162011-02-19 23:52:17 +000018937
18938_lt_libdeps_save_CFLAGS=$CFLAGS
18939case "$CC $CFLAGS " in #(
18940*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18941*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018942*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018943esac
18944
cristy73bd4a52010-10-05 11:24:23 +000018945if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18946 (eval $ac_compile) 2>&5
18947 ac_status=$?
18948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18949 test $ac_status = 0; }; then
18950 # Parse the compiler output and extract the necessary
18951 # objects, libraries and library flags.
18952
18953 # Sentinel used to keep track of whether or not we are before
18954 # the conftest object file.
18955 pre_test_object_deps_done=no
18956
18957 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018958 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018959
18960 -L* | -R* | -l*)
18961 # Some compilers place space between "-{L,R}" and the path.
18962 # Remove the space.
18963 if test $p = "-L" ||
18964 test $p = "-R"; then
18965 prev=$p
18966 continue
cristy73bd4a52010-10-05 11:24:23 +000018967 fi
18968
cristyda16f162011-02-19 23:52:17 +000018969 # Expand the sysroot to ease extracting the directories later.
18970 if test -z "$prev"; then
18971 case $p in
18972 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18973 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18974 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18975 esac
18976 fi
18977 case $p in
18978 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18979 esac
cristy73bd4a52010-10-05 11:24:23 +000018980 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018981 case ${prev} in
18982 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018983 # Internal compiler library paths should come after those
18984 # provided the user. The postdeps already come after the
18985 # user supplied libs so there is no need to process them.
18986 if test -z "$compiler_lib_search_path_CXX"; then
18987 compiler_lib_search_path_CXX="${prev}${p}"
18988 else
18989 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18990 fi
18991 ;;
18992 # The "-l" case would never come before the object being
18993 # linked, so don't bother handling this case.
18994 esac
18995 else
18996 if test -z "$postdeps_CXX"; then
18997 postdeps_CXX="${prev}${p}"
18998 else
18999 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19000 fi
19001 fi
cristyda16f162011-02-19 23:52:17 +000019002 prev=
cristy73bd4a52010-10-05 11:24:23 +000019003 ;;
19004
cristyda16f162011-02-19 23:52:17 +000019005 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019006 *.$objext)
19007 # This assumes that the test object file only shows up
19008 # once in the compiler output.
19009 if test "$p" = "conftest.$objext"; then
19010 pre_test_object_deps_done=yes
19011 continue
19012 fi
19013
19014 if test "$pre_test_object_deps_done" = no; then
19015 if test -z "$predep_objects_CXX"; then
19016 predep_objects_CXX="$p"
19017 else
19018 predep_objects_CXX="$predep_objects_CXX $p"
19019 fi
19020 else
19021 if test -z "$postdep_objects_CXX"; then
19022 postdep_objects_CXX="$p"
19023 else
19024 postdep_objects_CXX="$postdep_objects_CXX $p"
19025 fi
19026 fi
19027 ;;
19028
19029 *) ;; # Ignore the rest.
19030
19031 esac
19032 done
19033
19034 # Clean up.
19035 rm -f a.out a.exe
19036else
19037 echo "libtool.m4: error: problem compiling CXX test program"
19038fi
19039
19040$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019041CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019042
19043# PORTME: override above test on systems where it is broken
19044case $host_os in
19045interix[3-9]*)
19046 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19047 # hack all around it, let's just trust "g++" to DTRT.
19048 predep_objects_CXX=
19049 postdep_objects_CXX=
19050 postdeps_CXX=
19051 ;;
19052
19053linux*)
19054 case `$CC -V 2>&1 | sed 5q` in
19055 *Sun\ C*)
19056 # Sun C++ 5.9
19057
19058 # The more standards-conforming stlport4 library is
19059 # incompatible with the Cstd library. Avoid specifying
19060 # it if it's in CXXFLAGS. Ignore libCrun as
19061 # -library=stlport4 depends on it.
19062 case " $CXX $CXXFLAGS " in
19063 *" -library=stlport4 "*)
19064 solaris_use_stlport4=yes
19065 ;;
19066 esac
19067
19068 if test "$solaris_use_stlport4" != yes; then
19069 postdeps_CXX='-library=Cstd -library=Crun'
19070 fi
19071 ;;
19072 esac
19073 ;;
19074
19075solaris*)
19076 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019077 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019078 # The more standards-conforming stlport4 library is
19079 # incompatible with the Cstd library. Avoid specifying
19080 # it if it's in CXXFLAGS. Ignore libCrun as
19081 # -library=stlport4 depends on it.
19082 case " $CXX $CXXFLAGS " in
19083 *" -library=stlport4 "*)
19084 solaris_use_stlport4=yes
19085 ;;
19086 esac
19087
19088 # Adding this requires a known-good setup of shared libraries for
19089 # Sun compiler versions before 5.6, else PIC objects from an old
19090 # archive will be linked into the output, leading to subtle bugs.
19091 if test "$solaris_use_stlport4" != yes; then
19092 postdeps_CXX='-library=Cstd -library=Crun'
19093 fi
19094 ;;
19095 esac
19096 ;;
19097esac
19098
19099
19100case " $postdeps_CXX " in
19101*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19102esac
19103 compiler_lib_search_dirs_CXX=
19104if test -n "${compiler_lib_search_path_CXX}"; then
19105 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19106fi
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138 lt_prog_compiler_wl_CXX=
19139lt_prog_compiler_pic_CXX=
19140lt_prog_compiler_static_CXX=
19141
cristy73bd4a52010-10-05 11:24:23 +000019142
19143 # C++ specific cases for pic, static, wl, etc.
19144 if test "$GXX" = yes; then
19145 lt_prog_compiler_wl_CXX='-Wl,'
19146 lt_prog_compiler_static_CXX='-static'
19147
19148 case $host_os in
19149 aix*)
19150 # All AIX code is PIC.
19151 if test "$host_cpu" = ia64; then
19152 # AIX 5 now supports IA64 processor
19153 lt_prog_compiler_static_CXX='-Bstatic'
19154 fi
19155 ;;
19156
19157 amigaos*)
19158 case $host_cpu in
19159 powerpc)
19160 # see comment about AmigaOS4 .so support
19161 lt_prog_compiler_pic_CXX='-fPIC'
19162 ;;
19163 m68k)
19164 # FIXME: we need at least 68020 code to build shared libraries, but
19165 # adding the `-m68020' flag to GCC prevents building anything better,
19166 # like `-m68040'.
19167 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19168 ;;
19169 esac
19170 ;;
19171
19172 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19173 # PIC is the default for these OSes.
19174 ;;
19175 mingw* | cygwin* | os2* | pw32* | cegcc*)
19176 # This hack is so that the source file can tell whether it is being
19177 # built for inclusion in a dll (and should export symbols for example).
19178 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19179 # (--disable-auto-import) libraries
19180 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19181 ;;
19182 darwin* | rhapsody*)
19183 # PIC is the default on this platform
19184 # Common symbols not allowed in MH_DYLIB files
19185 lt_prog_compiler_pic_CXX='-fno-common'
19186 ;;
19187 *djgpp*)
19188 # DJGPP does not support shared libraries at all
19189 lt_prog_compiler_pic_CXX=
19190 ;;
cristy0c60a692010-11-04 01:09:47 +000019191 haiku*)
19192 # PIC is the default for Haiku.
19193 # The "-static" flag exists, but is broken.
19194 lt_prog_compiler_static_CXX=
19195 ;;
cristy73bd4a52010-10-05 11:24:23 +000019196 interix[3-9]*)
19197 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19198 # Instead, we relocate shared libraries at runtime.
19199 ;;
19200 sysv4*MP*)
19201 if test -d /usr/nec; then
19202 lt_prog_compiler_pic_CXX=-Kconform_pic
19203 fi
19204 ;;
19205 hpux*)
19206 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19207 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19208 # sets the default TLS model and affects inlining.
19209 case $host_cpu in
19210 hppa*64*)
19211 ;;
19212 *)
19213 lt_prog_compiler_pic_CXX='-fPIC'
19214 ;;
19215 esac
19216 ;;
19217 *qnx* | *nto*)
19218 # QNX uses GNU C++, but need to define -shared option too, otherwise
19219 # it will coredump.
19220 lt_prog_compiler_pic_CXX='-fPIC -shared'
19221 ;;
19222 *)
19223 lt_prog_compiler_pic_CXX='-fPIC'
19224 ;;
19225 esac
19226 else
19227 case $host_os in
19228 aix[4-9]*)
19229 # All AIX code is PIC.
19230 if test "$host_cpu" = ia64; then
19231 # AIX 5 now supports IA64 processor
19232 lt_prog_compiler_static_CXX='-Bstatic'
19233 else
19234 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19235 fi
19236 ;;
19237 chorus*)
19238 case $cc_basename in
19239 cxch68*)
19240 # Green Hills C++ Compiler
19241 # _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"
19242 ;;
19243 esac
19244 ;;
cristyda16f162011-02-19 23:52:17 +000019245 mingw* | cygwin* | os2* | pw32* | cegcc*)
19246 # This hack is so that the source file can tell whether it is being
19247 # built for inclusion in a dll (and should export symbols for example).
19248 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19249 ;;
cristy73bd4a52010-10-05 11:24:23 +000019250 dgux*)
19251 case $cc_basename in
19252 ec++*)
19253 lt_prog_compiler_pic_CXX='-KPIC'
19254 ;;
19255 ghcx*)
19256 # Green Hills C++ Compiler
19257 lt_prog_compiler_pic_CXX='-pic'
19258 ;;
19259 *)
19260 ;;
19261 esac
19262 ;;
19263 freebsd* | dragonfly*)
19264 # FreeBSD uses GNU C++
19265 ;;
19266 hpux9* | hpux10* | hpux11*)
19267 case $cc_basename in
19268 CC*)
19269 lt_prog_compiler_wl_CXX='-Wl,'
19270 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19271 if test "$host_cpu" != ia64; then
19272 lt_prog_compiler_pic_CXX='+Z'
19273 fi
19274 ;;
19275 aCC*)
19276 lt_prog_compiler_wl_CXX='-Wl,'
19277 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19278 case $host_cpu in
19279 hppa*64*|ia64*)
19280 # +Z the default
19281 ;;
19282 *)
19283 lt_prog_compiler_pic_CXX='+Z'
19284 ;;
19285 esac
19286 ;;
19287 *)
19288 ;;
19289 esac
19290 ;;
19291 interix*)
19292 # This is c89, which is MS Visual C++ (no shared libs)
19293 # Anyone wants to do a port?
19294 ;;
19295 irix5* | irix6* | nonstopux*)
19296 case $cc_basename in
19297 CC*)
19298 lt_prog_compiler_wl_CXX='-Wl,'
19299 lt_prog_compiler_static_CXX='-non_shared'
19300 # CC pic flag -KPIC is the default.
19301 ;;
19302 *)
19303 ;;
19304 esac
19305 ;;
cristy0c60a692010-11-04 01:09:47 +000019306 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019307 case $cc_basename in
19308 KCC*)
19309 # KAI C++ Compiler
19310 lt_prog_compiler_wl_CXX='--backend -Wl,'
19311 lt_prog_compiler_pic_CXX='-fPIC'
19312 ;;
19313 ecpc* )
19314 # old Intel C++ for x86_64 which still supported -KPIC.
19315 lt_prog_compiler_wl_CXX='-Wl,'
19316 lt_prog_compiler_pic_CXX='-KPIC'
19317 lt_prog_compiler_static_CXX='-static'
19318 ;;
19319 icpc* )
19320 # Intel C++, used to be incompatible with GCC.
19321 # ICC 10 doesn't accept -KPIC any more.
19322 lt_prog_compiler_wl_CXX='-Wl,'
19323 lt_prog_compiler_pic_CXX='-fPIC'
19324 lt_prog_compiler_static_CXX='-static'
19325 ;;
19326 pgCC* | pgcpp*)
19327 # Portland Group C++ compiler
19328 lt_prog_compiler_wl_CXX='-Wl,'
19329 lt_prog_compiler_pic_CXX='-fpic'
19330 lt_prog_compiler_static_CXX='-Bstatic'
19331 ;;
19332 cxx*)
19333 # Compaq C++
19334 # Make sure the PIC flag is empty. It appears that all Alpha
19335 # Linux and Compaq Tru64 Unix objects are PIC.
19336 lt_prog_compiler_pic_CXX=
19337 lt_prog_compiler_static_CXX='-non_shared'
19338 ;;
cristy0c60a692010-11-04 01:09:47 +000019339 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19340 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019341 lt_prog_compiler_wl_CXX='-Wl,'
19342 lt_prog_compiler_pic_CXX='-qpic'
19343 lt_prog_compiler_static_CXX='-qstaticlink'
19344 ;;
19345 *)
19346 case `$CC -V 2>&1 | sed 5q` in
19347 *Sun\ C*)
19348 # Sun C++ 5.9
19349 lt_prog_compiler_pic_CXX='-KPIC'
19350 lt_prog_compiler_static_CXX='-Bstatic'
19351 lt_prog_compiler_wl_CXX='-Qoption ld '
19352 ;;
19353 esac
19354 ;;
19355 esac
19356 ;;
19357 lynxos*)
19358 ;;
19359 m88k*)
19360 ;;
19361 mvs*)
19362 case $cc_basename in
19363 cxx*)
19364 lt_prog_compiler_pic_CXX='-W c,exportall'
19365 ;;
19366 *)
19367 ;;
19368 esac
19369 ;;
19370 netbsd*)
19371 ;;
19372 *qnx* | *nto*)
19373 # QNX uses GNU C++, but need to define -shared option too, otherwise
19374 # it will coredump.
19375 lt_prog_compiler_pic_CXX='-fPIC -shared'
19376 ;;
19377 osf3* | osf4* | osf5*)
19378 case $cc_basename in
19379 KCC*)
19380 lt_prog_compiler_wl_CXX='--backend -Wl,'
19381 ;;
19382 RCC*)
19383 # Rational C++ 2.4.1
19384 lt_prog_compiler_pic_CXX='-pic'
19385 ;;
19386 cxx*)
19387 # Digital/Compaq C++
19388 lt_prog_compiler_wl_CXX='-Wl,'
19389 # Make sure the PIC flag is empty. It appears that all Alpha
19390 # Linux and Compaq Tru64 Unix objects are PIC.
19391 lt_prog_compiler_pic_CXX=
19392 lt_prog_compiler_static_CXX='-non_shared'
19393 ;;
19394 *)
19395 ;;
19396 esac
19397 ;;
19398 psos*)
19399 ;;
19400 solaris*)
19401 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019402 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019403 # Sun C++ 4.2, 5.x and Centerline C++
19404 lt_prog_compiler_pic_CXX='-KPIC'
19405 lt_prog_compiler_static_CXX='-Bstatic'
19406 lt_prog_compiler_wl_CXX='-Qoption ld '
19407 ;;
19408 gcx*)
19409 # Green Hills C++ Compiler
19410 lt_prog_compiler_pic_CXX='-PIC'
19411 ;;
19412 *)
19413 ;;
19414 esac
19415 ;;
19416 sunos4*)
19417 case $cc_basename in
19418 CC*)
19419 # Sun C++ 4.x
19420 lt_prog_compiler_pic_CXX='-pic'
19421 lt_prog_compiler_static_CXX='-Bstatic'
19422 ;;
19423 lcc*)
19424 # Lucid
19425 lt_prog_compiler_pic_CXX='-pic'
19426 ;;
19427 *)
19428 ;;
19429 esac
19430 ;;
19431 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19432 case $cc_basename in
19433 CC*)
19434 lt_prog_compiler_wl_CXX='-Wl,'
19435 lt_prog_compiler_pic_CXX='-KPIC'
19436 lt_prog_compiler_static_CXX='-Bstatic'
19437 ;;
19438 esac
19439 ;;
19440 tandem*)
19441 case $cc_basename in
19442 NCC*)
19443 # NonStop-UX NCC 3.20
19444 lt_prog_compiler_pic_CXX='-KPIC'
19445 ;;
19446 *)
19447 ;;
19448 esac
19449 ;;
19450 vxworks*)
19451 ;;
19452 *)
19453 lt_prog_compiler_can_build_shared_CXX=no
19454 ;;
19455 esac
19456 fi
19457
19458case $host_os in
19459 # For platforms which do not support PIC, -DPIC is meaningless:
19460 *djgpp*)
19461 lt_prog_compiler_pic_CXX=
19462 ;;
19463 *)
19464 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19465 ;;
19466esac
cristy73bd4a52010-10-05 11:24:23 +000019467
cristyda16f162011-02-19 23:52:17 +000019468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19469$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19470if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19471 $as_echo_n "(cached) " >&6
19472else
19473 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19474fi
19475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19476$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19477lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019478
19479#
19480# Check to make sure the PIC flag actually works.
19481#
19482if test -n "$lt_prog_compiler_pic_CXX"; then
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19484$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019485if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019486 $as_echo_n "(cached) " >&6
19487else
19488 lt_cv_prog_compiler_pic_works_CXX=no
19489 ac_outfile=conftest.$ac_objext
19490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19491 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19492 # Insert the option either (1) after the last *FLAGS variable, or
19493 # (2) before a word containing "conftest.", or (3) at the end.
19494 # Note that $ac_compile itself does not contain backslashes and begins
19495 # with a dollar sign (not a hyphen), so the echo should work correctly.
19496 # The option is referenced via a variable to avoid confusing sed.
19497 lt_compile=`echo "$ac_compile" | $SED \
19498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19500 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019501 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019502 (eval "$lt_compile" 2>conftest.err)
19503 ac_status=$?
19504 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019506 if (exit $ac_status) && test -s "$ac_outfile"; then
19507 # The compiler can only warn and ignore the option if not recognized
19508 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019509 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19511 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19512 lt_cv_prog_compiler_pic_works_CXX=yes
19513 fi
19514 fi
19515 $RM conftest*
19516
19517fi
19518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19519$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19520
19521if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19522 case $lt_prog_compiler_pic_CXX in
19523 "" | " "*) ;;
19524 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19525 esac
19526else
19527 lt_prog_compiler_pic_CXX=
19528 lt_prog_compiler_can_build_shared_CXX=no
19529fi
19530
19531fi
19532
19533
19534
cristyda16f162011-02-19 23:52:17 +000019535
19536
cristy73bd4a52010-10-05 11:24:23 +000019537#
19538# Check to make sure the static flag actually works.
19539#
19540wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19542$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019543if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019544 $as_echo_n "(cached) " >&6
19545else
19546 lt_cv_prog_compiler_static_works_CXX=no
19547 save_LDFLAGS="$LDFLAGS"
19548 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19549 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19550 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19551 # The linker can only warn and ignore the option if not recognized
19552 # So say no if there are warnings
19553 if test -s conftest.err; then
19554 # Append any errors to the config.log.
19555 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019556 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19558 if diff conftest.exp conftest.er2 >/dev/null; then
19559 lt_cv_prog_compiler_static_works_CXX=yes
19560 fi
19561 else
19562 lt_cv_prog_compiler_static_works_CXX=yes
19563 fi
19564 fi
19565 $RM -r conftest*
19566 LDFLAGS="$save_LDFLAGS"
19567
19568fi
19569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19570$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19571
19572if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19573 :
19574else
19575 lt_prog_compiler_static_CXX=
19576fi
19577
19578
19579
19580
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19582$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019583if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019584 $as_echo_n "(cached) " >&6
19585else
19586 lt_cv_prog_compiler_c_o_CXX=no
19587 $RM -r conftest 2>/dev/null
19588 mkdir conftest
19589 cd conftest
19590 mkdir out
19591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19592
19593 lt_compiler_flag="-o out/conftest2.$ac_objext"
19594 # Insert the option either (1) after the last *FLAGS variable, or
19595 # (2) before a word containing "conftest.", or (3) at the end.
19596 # Note that $ac_compile itself does not contain backslashes and begins
19597 # with a dollar sign (not a hyphen), so the echo should work correctly.
19598 lt_compile=`echo "$ac_compile" | $SED \
19599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19601 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019603 (eval "$lt_compile" 2>out/conftest.err)
19604 ac_status=$?
19605 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019607 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19608 then
19609 # The compiler can only warn and ignore the option if not recognized
19610 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19614 lt_cv_prog_compiler_c_o_CXX=yes
19615 fi
19616 fi
19617 chmod u+w . 2>&5
19618 $RM conftest*
19619 # SGI C++ compiler will create directory out/ii_files/ for
19620 # template instantiation
19621 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19622 $RM out/* && rmdir out
19623 cd ..
19624 $RM -r conftest
19625 $RM conftest*
19626
19627fi
19628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19629$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19630
19631
19632
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19634$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019635if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019636 $as_echo_n "(cached) " >&6
19637else
19638 lt_cv_prog_compiler_c_o_CXX=no
19639 $RM -r conftest 2>/dev/null
19640 mkdir conftest
19641 cd conftest
19642 mkdir out
19643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19644
19645 lt_compiler_flag="-o out/conftest2.$ac_objext"
19646 # Insert the option either (1) after the last *FLAGS variable, or
19647 # (2) before a word containing "conftest.", or (3) at the end.
19648 # Note that $ac_compile itself does not contain backslashes and begins
19649 # with a dollar sign (not a hyphen), so the echo should work correctly.
19650 lt_compile=`echo "$ac_compile" | $SED \
19651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19653 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019655 (eval "$lt_compile" 2>out/conftest.err)
19656 ac_status=$?
19657 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19660 then
19661 # The compiler can only warn and ignore the option if not recognized
19662 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19666 lt_cv_prog_compiler_c_o_CXX=yes
19667 fi
19668 fi
19669 chmod u+w . 2>&5
19670 $RM conftest*
19671 # SGI C++ compiler will create directory out/ii_files/ for
19672 # template instantiation
19673 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19674 $RM out/* && rmdir out
19675 cd ..
19676 $RM -r conftest
19677 $RM conftest*
19678
19679fi
19680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19681$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19682
19683
19684
19685
19686hard_links="nottested"
19687if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19688 # do not overwrite the value of need_locks provided by the user
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19690$as_echo_n "checking if we can lock with hard links... " >&6; }
19691 hard_links=yes
19692 $RM conftest*
19693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19694 touch conftest.a
19695 ln conftest.a conftest.b 2>&5 || hard_links=no
19696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19698$as_echo "$hard_links" >&6; }
19699 if test "$hard_links" = no; then
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19701$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19702 need_locks=warn
19703 fi
19704else
19705 need_locks=no
19706fi
19707
19708
19709
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19711$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19712
19713 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019714 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019715 case $host_os in
19716 aix[4-9]*)
19717 # If we're using GNU nm, then we don't want the "-C" option.
19718 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019719 # Also, AIX nm treats weak defined symbols like other global defined
19720 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019721 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019722 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 +000019723 else
19724 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'
19725 fi
19726 ;;
19727 pw32*)
19728 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019729 ;;
cristy73bd4a52010-10-05 11:24:23 +000019730 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019731 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019732 cl*)
19733 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19734 ;;
cristyda16f162011-02-19 23:52:17 +000019735 *)
19736 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'
19737 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19738 ;;
19739 esac
19740 ;;
cristy73bd4a52010-10-05 11:24:23 +000019741 *)
19742 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019743 ;;
cristy73bd4a52010-10-05 11:24:23 +000019744 esac
cristy73bd4a52010-10-05 11:24:23 +000019745
19746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19747$as_echo "$ld_shlibs_CXX" >&6; }
19748test "$ld_shlibs_CXX" = no && can_build_shared=no
19749
19750with_gnu_ld_CXX=$with_gnu_ld
19751
19752
19753
19754
19755
19756
19757#
19758# Do we need to explicitly link libc?
19759#
19760case "x$archive_cmds_need_lc_CXX" in
19761x|xyes)
19762 # Assume -lc should be added
19763 archive_cmds_need_lc_CXX=yes
19764
19765 if test "$enable_shared" = yes && test "$GCC" = yes; then
19766 case $archive_cmds_CXX in
19767 *'~'*)
19768 # FIXME: we may have to deal with multi-command sequences.
19769 ;;
19770 '$CC '*)
19771 # Test whether the compiler implicitly links with -lc since on some
19772 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19773 # to ld, don't add -lc before -lgcc.
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19775$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019776if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019777 $as_echo_n "(cached) " >&6
19778else
19779 $RM conftest*
19780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019781
cristy0c60a692010-11-04 01:09:47 +000019782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019783 (eval $ac_compile) 2>&5
19784 ac_status=$?
19785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19786 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019787 soname=conftest
19788 lib=conftest
19789 libobjs=conftest.$ac_objext
19790 deplibs=
19791 wl=$lt_prog_compiler_wl_CXX
19792 pic_flag=$lt_prog_compiler_pic_CXX
19793 compiler_flags=-v
19794 linker_flags=-v
19795 verstring=
19796 output_objdir=.
19797 libname=conftest
19798 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19799 allow_undefined_flag_CXX=
19800 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 +000019801 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19802 ac_status=$?
19803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19804 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019805 then
19806 lt_cv_archive_cmds_need_lc_CXX=no
19807 else
19808 lt_cv_archive_cmds_need_lc_CXX=yes
19809 fi
19810 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19811 else
19812 cat conftest.err 1>&5
19813 fi
19814 $RM conftest*
19815
19816fi
19817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19818$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19819 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019820 ;;
19821 esac
19822 fi
19823 ;;
19824esac
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
cristy73bd4a52010-10-05 11:24:23 +000019887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19888$as_echo_n "checking dynamic linker characteristics... " >&6; }
19889
19890library_names_spec=
19891libname_spec='lib$name'
19892soname_spec=
19893shrext_cmds=".so"
19894postinstall_cmds=
19895postuninstall_cmds=
19896finish_cmds=
19897finish_eval=
19898shlibpath_var=
19899shlibpath_overrides_runpath=unknown
19900version_type=none
19901dynamic_linker="$host_os ld.so"
19902sys_lib_dlsearch_path_spec="/lib /usr/lib"
19903need_lib_prefix=unknown
19904hardcode_into_libs=no
19905
19906# when you set need_version to no, make sure it does not cause -set_version
19907# flags to be left without arguments
19908need_version=unknown
19909
19910case $host_os in
19911aix3*)
cristy99bd5232011-12-07 14:38:20 +000019912 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019913 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19914 shlibpath_var=LIBPATH
19915
19916 # AIX 3 has no versioning support, so we append a major version to the name.
19917 soname_spec='${libname}${release}${shared_ext}$major'
19918 ;;
19919
19920aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019921 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019922 need_lib_prefix=no
19923 need_version=no
19924 hardcode_into_libs=yes
19925 if test "$host_cpu" = ia64; then
19926 # AIX 5 supports IA64
19927 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19928 shlibpath_var=LD_LIBRARY_PATH
19929 else
19930 # With GCC up to 2.95.x, collect2 would create an import file
19931 # for dependence libraries. The import file would start with
19932 # the line `#! .'. This would cause the generated library to
19933 # depend on `.', always an invalid library. This was fixed in
19934 # development snapshots of GCC prior to 3.0.
19935 case $host_os in
19936 aix4 | aix4.[01] | aix4.[01].*)
19937 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19938 echo ' yes '
19939 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19940 :
19941 else
19942 can_build_shared=no
19943 fi
19944 ;;
19945 esac
19946 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19947 # soname into executable. Probably we can add versioning support to
19948 # collect2, so additional links can be useful in future.
19949 if test "$aix_use_runtimelinking" = yes; then
19950 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19951 # instead of lib<name>.a to let people know that these are not
19952 # typical AIX shared libraries.
19953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19954 else
19955 # We preserve .a as extension for shared libraries through AIX4.2
19956 # and later when we are not doing run time linking.
19957 library_names_spec='${libname}${release}.a $libname.a'
19958 soname_spec='${libname}${release}${shared_ext}$major'
19959 fi
19960 shlibpath_var=LIBPATH
19961 fi
19962 ;;
19963
19964amigaos*)
19965 case $host_cpu in
19966 powerpc)
19967 # Since July 2007 AmigaOS4 officially supports .so libraries.
19968 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19970 ;;
19971 m68k)
19972 library_names_spec='$libname.ixlibrary $libname.a'
19973 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019974 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 +000019975 ;;
19976 esac
19977 ;;
19978
19979beos*)
19980 library_names_spec='${libname}${shared_ext}'
19981 dynamic_linker="$host_os ld.so"
19982 shlibpath_var=LIBRARY_PATH
19983 ;;
19984
19985bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019986 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019987 need_version=no
19988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19989 soname_spec='${libname}${release}${shared_ext}$major'
19990 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19991 shlibpath_var=LD_LIBRARY_PATH
19992 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19993 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19994 # the default ld.so.conf also contains /usr/contrib/lib and
19995 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19996 # libtool to hard-code these into programs
19997 ;;
19998
19999cygwin* | mingw* | pw32* | cegcc*)
20000 version_type=windows
20001 shrext_cmds=".dll"
20002 need_version=no
20003 need_lib_prefix=no
20004
cristyda16f162011-02-19 23:52:17 +000020005 case $GCC,$cc_basename in
20006 yes,*)
20007 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020008 library_names_spec='$libname.dll.a'
20009 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20010 postinstall_cmds='base_file=`basename \${file}`~
20011 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20012 dldir=$destdir/`dirname \$dlpath`~
20013 test -d \$dldir || mkdir -p \$dldir~
20014 $install_prog $dir/$dlname \$dldir/$dlname~
20015 chmod a+x \$dldir/$dlname~
20016 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20017 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20018 fi'
20019 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20020 dlpath=$dir/\$dldll~
20021 $RM \$dlpath'
20022 shlibpath_overrides_runpath=yes
20023
20024 case $host_os in
20025 cygwin*)
20026 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20027 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020028
cristy73bd4a52010-10-05 11:24:23 +000020029 ;;
20030 mingw* | cegcc*)
20031 # MinGW DLLs use traditional 'lib' prefix
20032 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020033 ;;
20034 pw32*)
20035 # pw32 DLLs use 'pw' prefix rather than 'lib'
20036 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20037 ;;
20038 esac
cristyda16f162011-02-19 23:52:17 +000020039 dynamic_linker='Win32 ld.exe'
20040 ;;
20041
20042 *,cl*)
20043 # Native MSVC
20044 libname_spec='$name'
20045 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20046 library_names_spec='${libname}.dll.lib'
20047
20048 case $build_os in
20049 mingw*)
20050 sys_lib_search_path_spec=
20051 lt_save_ifs=$IFS
20052 IFS=';'
20053 for lt_path in $LIB
20054 do
20055 IFS=$lt_save_ifs
20056 # Let DOS variable expansion print the short 8.3 style file name.
20057 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20058 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20059 done
20060 IFS=$lt_save_ifs
20061 # Convert to MSYS style.
20062 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20063 ;;
20064 cygwin*)
20065 # Convert to unix form, then to dos form, then back to unix form
20066 # but this time dos style (no spaces!) so that the unix form looks
20067 # like /cygdrive/c/PROGRA~1:/cygdr...
20068 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20069 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20070 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20071 ;;
20072 *)
20073 sys_lib_search_path_spec="$LIB"
20074 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20075 # It is most probably a Windows format PATH.
20076 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20077 else
20078 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20079 fi
20080 # FIXME: find the short name or the path components, as spaces are
20081 # common. (e.g. "Program Files" -> "PROGRA~1")
20082 ;;
20083 esac
20084
20085 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20086 postinstall_cmds='base_file=`basename \${file}`~
20087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20088 dldir=$destdir/`dirname \$dlpath`~
20089 test -d \$dldir || mkdir -p \$dldir~
20090 $install_prog $dir/$dlname \$dldir/$dlname'
20091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20092 dlpath=$dir/\$dldll~
20093 $RM \$dlpath'
20094 shlibpath_overrides_runpath=yes
20095 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020096 ;;
20097
20098 *)
cristyda16f162011-02-19 23:52:17 +000020099 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020100 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020101 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020102 ;;
20103 esac
cristy73bd4a52010-10-05 11:24:23 +000020104 # FIXME: first we should search . and the directory the executable is in
20105 shlibpath_var=PATH
20106 ;;
20107
20108darwin* | rhapsody*)
20109 dynamic_linker="$host_os dyld"
20110 version_type=darwin
20111 need_lib_prefix=no
20112 need_version=no
20113 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20114 soname_spec='${libname}${release}${major}$shared_ext'
20115 shlibpath_overrides_runpath=yes
20116 shlibpath_var=DYLD_LIBRARY_PATH
20117 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20118
20119 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20120 ;;
20121
20122dgux*)
cristy99bd5232011-12-07 14:38:20 +000020123 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020124 need_lib_prefix=no
20125 need_version=no
20126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20127 soname_spec='${libname}${release}${shared_ext}$major'
20128 shlibpath_var=LD_LIBRARY_PATH
20129 ;;
20130
cristy73bd4a52010-10-05 11:24:23 +000020131freebsd* | dragonfly*)
20132 # DragonFly does not have aout. When/if they implement a new
20133 # versioning mechanism, adjust this.
20134 if test -x /usr/bin/objformat; then
20135 objformat=`/usr/bin/objformat`
20136 else
20137 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020138 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020139 *) objformat=elf ;;
20140 esac
20141 fi
20142 version_type=freebsd-$objformat
20143 case $version_type in
20144 freebsd-elf*)
20145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20146 need_version=no
20147 need_lib_prefix=no
20148 ;;
20149 freebsd-*)
20150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20151 need_version=yes
20152 ;;
20153 esac
20154 shlibpath_var=LD_LIBRARY_PATH
20155 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020156 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020157 shlibpath_overrides_runpath=yes
20158 ;;
20159 freebsd3.[01]* | freebsdelf3.[01]*)
20160 shlibpath_overrides_runpath=yes
20161 hardcode_into_libs=yes
20162 ;;
20163 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20164 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20165 shlibpath_overrides_runpath=no
20166 hardcode_into_libs=yes
20167 ;;
20168 *) # from 4.6 on, and DragonFly
20169 shlibpath_overrides_runpath=yes
20170 hardcode_into_libs=yes
20171 ;;
20172 esac
20173 ;;
20174
20175gnu*)
cristy99bd5232011-12-07 14:38:20 +000020176 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020177 need_lib_prefix=no
20178 need_version=no
20179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20180 soname_spec='${libname}${release}${shared_ext}$major'
20181 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020182 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020183 hardcode_into_libs=yes
20184 ;;
20185
cristy0c60a692010-11-04 01:09:47 +000020186haiku*)
cristy99bd5232011-12-07 14:38:20 +000020187 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020188 need_lib_prefix=no
20189 need_version=no
20190 dynamic_linker="$host_os runtime_loader"
20191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20192 soname_spec='${libname}${release}${shared_ext}$major'
20193 shlibpath_var=LIBRARY_PATH
20194 shlibpath_overrides_runpath=yes
20195 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20196 hardcode_into_libs=yes
20197 ;;
20198
cristy73bd4a52010-10-05 11:24:23 +000020199hpux9* | hpux10* | hpux11*)
20200 # Give a soname corresponding to the major version so that dld.sl refuses to
20201 # link against other versions.
20202 version_type=sunos
20203 need_lib_prefix=no
20204 need_version=no
20205 case $host_cpu in
20206 ia64*)
20207 shrext_cmds='.so'
20208 hardcode_into_libs=yes
20209 dynamic_linker="$host_os dld.so"
20210 shlibpath_var=LD_LIBRARY_PATH
20211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20213 soname_spec='${libname}${release}${shared_ext}$major'
20214 if test "X$HPUX_IA64_MODE" = X32; then
20215 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20216 else
20217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20218 fi
20219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20220 ;;
20221 hppa*64*)
20222 shrext_cmds='.sl'
20223 hardcode_into_libs=yes
20224 dynamic_linker="$host_os dld.sl"
20225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20228 soname_spec='${libname}${release}${shared_ext}$major'
20229 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20231 ;;
20232 *)
20233 shrext_cmds='.sl'
20234 dynamic_linker="$host_os dld.sl"
20235 shlibpath_var=SHLIB_PATH
20236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20238 soname_spec='${libname}${release}${shared_ext}$major'
20239 ;;
20240 esac
cristy0c60a692010-11-04 01:09:47 +000020241 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020242 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020243 # or fails outright, so override atomically:
20244 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020245 ;;
20246
20247interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020248 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020249 need_lib_prefix=no
20250 need_version=no
20251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20252 soname_spec='${libname}${release}${shared_ext}$major'
20253 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20254 shlibpath_var=LD_LIBRARY_PATH
20255 shlibpath_overrides_runpath=no
20256 hardcode_into_libs=yes
20257 ;;
20258
20259irix5* | irix6* | nonstopux*)
20260 case $host_os in
20261 nonstopux*) version_type=nonstopux ;;
20262 *)
20263 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020264 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020265 else
20266 version_type=irix
20267 fi ;;
20268 esac
20269 need_lib_prefix=no
20270 need_version=no
20271 soname_spec='${libname}${release}${shared_ext}$major'
20272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20273 case $host_os in
20274 irix5* | nonstopux*)
20275 libsuff= shlibsuff=
20276 ;;
20277 *)
20278 case $LD in # libtool.m4 will add one of these switches to LD
20279 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20280 libsuff= shlibsuff= libmagic=32-bit;;
20281 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20282 libsuff=32 shlibsuff=N32 libmagic=N32;;
20283 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20284 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20285 *) libsuff= shlibsuff= libmagic=never-match;;
20286 esac
20287 ;;
20288 esac
20289 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20290 shlibpath_overrides_runpath=no
20291 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20292 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20293 hardcode_into_libs=yes
20294 ;;
20295
20296# No shared lib support for Linux oldld, aout, or coff.
20297linux*oldld* | linux*aout* | linux*coff*)
20298 dynamic_linker=no
20299 ;;
20300
cristy99bd5232011-12-07 14:38:20 +000020301# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020302linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020303 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020304 need_lib_prefix=no
20305 need_version=no
20306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20307 soname_spec='${libname}${release}${shared_ext}$major'
20308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20309 shlibpath_var=LD_LIBRARY_PATH
20310 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020311
cristy73bd4a52010-10-05 11:24:23 +000020312 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020313 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020314 $as_echo_n "(cached) " >&6
20315else
20316 lt_cv_shlibpath_overrides_runpath=no
20317 save_LDFLAGS=$LDFLAGS
20318 save_libdir=$libdir
20319 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20320 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020322/* end confdefs.h. */
20323
20324int
20325main ()
20326{
20327
20328 ;
20329 return 0;
20330}
20331_ACEOF
20332if ac_fn_cxx_try_link "$LINENO"; then :
20333 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020334 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020335fi
20336fi
20337rm -f core conftest.err conftest.$ac_objext \
20338 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020339 LDFLAGS=$save_LDFLAGS
20340 libdir=$save_libdir
20341
20342fi
20343
20344 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020345
20346 # This implies no fast_install, which is unacceptable.
20347 # Some rework will be needed to allow for fast_install
20348 # before this can be enabled.
20349 hardcode_into_libs=yes
20350
20351 # Add ABI-specific directories to the system library path.
20352 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20353
20354 # Append ld.so.conf contents to the search path
20355 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020356 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 +000020357 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020358
cristy73bd4a52010-10-05 11:24:23 +000020359 fi
20360
20361 # We used to test for /lib/ld.so.1 and disable shared libraries on
20362 # powerpc, because MkLinux only supported shared libraries with the
20363 # GNU dynamic linker. Since this was broken with cross compilers,
20364 # most powerpc-linux boxes support dynamic linking these days and
20365 # people can always --disable-shared, the test was removed, and we
20366 # assume the GNU/Linux dynamic linker is in use.
20367 dynamic_linker='GNU/Linux ld.so'
20368 ;;
20369
20370netbsd*)
20371 version_type=sunos
20372 need_lib_prefix=no
20373 need_version=no
20374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20377 dynamic_linker='NetBSD (a.out) ld.so'
20378 else
20379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20380 soname_spec='${libname}${release}${shared_ext}$major'
20381 dynamic_linker='NetBSD ld.elf_so'
20382 fi
20383 shlibpath_var=LD_LIBRARY_PATH
20384 shlibpath_overrides_runpath=yes
20385 hardcode_into_libs=yes
20386 ;;
20387
20388newsos6)
cristy99bd5232011-12-07 14:38:20 +000020389 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20391 shlibpath_var=LD_LIBRARY_PATH
20392 shlibpath_overrides_runpath=yes
20393 ;;
20394
20395*nto* | *qnx*)
20396 version_type=qnx
20397 need_lib_prefix=no
20398 need_version=no
20399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20400 soname_spec='${libname}${release}${shared_ext}$major'
20401 shlibpath_var=LD_LIBRARY_PATH
20402 shlibpath_overrides_runpath=no
20403 hardcode_into_libs=yes
20404 dynamic_linker='ldqnx.so'
20405 ;;
20406
20407openbsd*)
20408 version_type=sunos
20409 sys_lib_dlsearch_path_spec="/usr/lib"
20410 need_lib_prefix=no
20411 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20412 case $host_os in
20413 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20414 *) need_version=no ;;
20415 esac
20416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20418 shlibpath_var=LD_LIBRARY_PATH
20419 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20420 case $host_os in
20421 openbsd2.[89] | openbsd2.[89].*)
20422 shlibpath_overrides_runpath=no
20423 ;;
20424 *)
20425 shlibpath_overrides_runpath=yes
20426 ;;
20427 esac
20428 else
20429 shlibpath_overrides_runpath=yes
20430 fi
20431 ;;
20432
20433os2*)
20434 libname_spec='$name'
20435 shrext_cmds=".dll"
20436 need_lib_prefix=no
20437 library_names_spec='$libname${shared_ext} $libname.a'
20438 dynamic_linker='OS/2 ld.exe'
20439 shlibpath_var=LIBPATH
20440 ;;
20441
20442osf3* | osf4* | osf5*)
20443 version_type=osf
20444 need_lib_prefix=no
20445 need_version=no
20446 soname_spec='${libname}${release}${shared_ext}$major'
20447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20448 shlibpath_var=LD_LIBRARY_PATH
20449 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20450 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20451 ;;
20452
20453rdos*)
20454 dynamic_linker=no
20455 ;;
20456
20457solaris*)
cristy99bd5232011-12-07 14:38:20 +000020458 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020459 need_lib_prefix=no
20460 need_version=no
20461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20462 soname_spec='${libname}${release}${shared_ext}$major'
20463 shlibpath_var=LD_LIBRARY_PATH
20464 shlibpath_overrides_runpath=yes
20465 hardcode_into_libs=yes
20466 # ldd complains unless libraries are executable
20467 postinstall_cmds='chmod +x $lib'
20468 ;;
20469
20470sunos4*)
20471 version_type=sunos
20472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20473 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20474 shlibpath_var=LD_LIBRARY_PATH
20475 shlibpath_overrides_runpath=yes
20476 if test "$with_gnu_ld" = yes; then
20477 need_lib_prefix=no
20478 fi
20479 need_version=yes
20480 ;;
20481
20482sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020483 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20485 soname_spec='${libname}${release}${shared_ext}$major'
20486 shlibpath_var=LD_LIBRARY_PATH
20487 case $host_vendor in
20488 sni)
20489 shlibpath_overrides_runpath=no
20490 need_lib_prefix=no
20491 runpath_var=LD_RUN_PATH
20492 ;;
20493 siemens)
20494 need_lib_prefix=no
20495 ;;
20496 motorola)
20497 need_lib_prefix=no
20498 need_version=no
20499 shlibpath_overrides_runpath=no
20500 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20501 ;;
20502 esac
20503 ;;
20504
20505sysv4*MP*)
20506 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020507 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020508 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20509 soname_spec='$libname${shared_ext}.$major'
20510 shlibpath_var=LD_LIBRARY_PATH
20511 fi
20512 ;;
20513
20514sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20515 version_type=freebsd-elf
20516 need_lib_prefix=no
20517 need_version=no
20518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20519 soname_spec='${libname}${release}${shared_ext}$major'
20520 shlibpath_var=LD_LIBRARY_PATH
20521 shlibpath_overrides_runpath=yes
20522 hardcode_into_libs=yes
20523 if test "$with_gnu_ld" = yes; then
20524 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20525 else
20526 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20527 case $host_os in
20528 sco3.2v5*)
20529 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20530 ;;
20531 esac
20532 fi
20533 sys_lib_dlsearch_path_spec='/usr/lib'
20534 ;;
20535
20536tpf*)
20537 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020538 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020539 need_lib_prefix=no
20540 need_version=no
20541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20542 shlibpath_var=LD_LIBRARY_PATH
20543 shlibpath_overrides_runpath=no
20544 hardcode_into_libs=yes
20545 ;;
20546
20547uts4*)
cristy99bd5232011-12-07 14:38:20 +000020548 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20550 soname_spec='${libname}${release}${shared_ext}$major'
20551 shlibpath_var=LD_LIBRARY_PATH
20552 ;;
20553
20554*)
20555 dynamic_linker=no
20556 ;;
20557esac
20558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20559$as_echo "$dynamic_linker" >&6; }
20560test "$dynamic_linker" = no && can_build_shared=no
20561
20562variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20563if test "$GCC" = yes; then
20564 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20565fi
20566
20567if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20568 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20569fi
20570if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20571 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20572fi
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
cristy0c60a692010-11-04 01:09:47 +000020609
20610
cristy73bd4a52010-10-05 11:24:23 +000020611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20612$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20613hardcode_action_CXX=
20614if test -n "$hardcode_libdir_flag_spec_CXX" ||
20615 test -n "$runpath_var_CXX" ||
20616 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20617
20618 # We can hardcode non-existent directories.
20619 if test "$hardcode_direct_CXX" != no &&
20620 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20621 # have to relink, otherwise we might link with an installed library
20622 # when we should be linking with a yet-to-be-installed one
20623 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20624 test "$hardcode_minus_L_CXX" != no; then
20625 # Linking always hardcodes the temporary library directory.
20626 hardcode_action_CXX=relink
20627 else
20628 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20629 hardcode_action_CXX=immediate
20630 fi
20631else
20632 # We cannot hardcode anything, or else we can only hardcode existing
20633 # directories.
20634 hardcode_action_CXX=unsupported
20635fi
20636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20637$as_echo "$hardcode_action_CXX" >&6; }
20638
20639if test "$hardcode_action_CXX" = relink ||
20640 test "$inherit_rpath_CXX" = yes; then
20641 # Fast installation is not supported
20642 enable_fast_install=no
20643elif test "$shlibpath_overrides_runpath" = yes ||
20644 test "$enable_shared" = no; then
20645 # Fast installation is not necessary
20646 enable_fast_install=needless
20647fi
20648
20649
20650
20651
20652
20653
20654
20655 fi # test -n "$compiler"
20656
20657 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020658 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020659 LDCXX=$LD
20660 LD=$lt_save_LD
20661 GCC=$lt_save_GCC
20662 with_gnu_ld=$lt_save_with_gnu_ld
20663 lt_cv_path_LDCXX=$lt_cv_path_LD
20664 lt_cv_path_LD=$lt_save_path_LD
20665 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20666 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20667fi # test "$_lt_caught_CXX_error" != yes
20668
20669ac_ext=c
20670ac_cpp='$CPP $CPPFLAGS'
20671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20673ac_compiler_gnu=$ac_cv_c_compiler_gnu
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
cristy99bd5232011-12-07 14:38:20 +000020687
20688
cristy73bd4a52010-10-05 11:24:23 +000020689 ac_config_commands="$ac_config_commands libtool"
20690
20691
20692
20693
20694# Only expand once:
20695
20696
20697
cristy3ed852e2009-09-05 21:47:34 +000020698
20699
cristy3ed852e2009-09-05 21:47:34 +000020700# Check to see if building shared libraries
20701libtool_build_shared_libs='no'
20702if test "$enable_shared" = 'yes'; then
20703 libtool_build_shared_libs='yes'
20704fi
20705
20706# Check to see if building static libraries
20707libtool_build_static_libs='no'
20708if test "$enable_static" = 'yes'; then
20709 libtool_build_static_libs='yes'
20710fi
20711
cristy73bd4a52010-10-05 11:24:23 +000020712 if test "${libtool_build_shared_libs}" = 'yes'; then
20713 WITH_SHARED_LIBS_TRUE=
20714 WITH_SHARED_LIBS_FALSE='#'
20715else
20716 WITH_SHARED_LIBS_TRUE='#'
20717 WITH_SHARED_LIBS_FALSE=
20718fi
20719
cristy3ed852e2009-09-05 21:47:34 +000020720#
20721# Enable support for building loadable modules
20722#
cristyaf4cbf32012-10-16 23:47:41 +000020723build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020724
20725# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020726if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020727 withval=$with_modules; with_modules=$withval
20728else
cristy5a1cefd2010-01-06 20:42:35 +000020729 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020730fi
20731
20732
20733# Only allow building loadable modules if we are building shared libraries
20734if test "$with_modules" != 'no' ; then
20735 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020736 { $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 +000020737$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020738 build_modules='no'
20739 else
20740 build_modules='yes'
20741 fi
cristy3ed852e2009-09-05 21:47:34 +000020742fi
cristyc6722092012-10-14 00:19:31 +000020743if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020744
cristy8b350f62009-11-15 23:12:43 +000020745$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020746
20747fi
cristyc6722092012-10-14 00:19:31 +000020748 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020749 WITH_MODULES_TRUE=
20750 WITH_MODULES_FALSE='#'
20751else
20752 WITH_MODULES_TRUE='#'
20753 WITH_MODULES_FALSE=
20754fi
20755
cristy3ed852e2009-09-05 21:47:34 +000020756
cristy3ed852e2009-09-05 21:47:34 +000020757# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020758# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020759# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020760if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020761 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20762else
20763 enable_delegate_build='no'
20764fi
20765
20766
20767# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020768if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020769 enableval=$enable_deprecated; enable_deprecated=$enableval
20770else
20771 enable_deprecated='no'
20772fi
20773
20774
20775if test "$enable_deprecated" = 'yes'; then
20776
cristy8b350f62009-11-15 23:12:43 +000020777$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020778
20779else
20780 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20781fi
20782
20783# Build a version of ImageMagick which operates uninstalled.
20784# Used to build distributions located via MAGICK_HOME / executable path
20785# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020786if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020787 enableval=$enable_installed; enable_installed=$enableval
20788else
20789 enable_installed='yes'
20790fi
20791
20792
20793if test "$enable_installed" = 'yes'; then
20794
cristy8b350f62009-11-15 23:12:43 +000020795$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020796
20797else
20798 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20799fi
20800
20801# Permit enciphering and deciphering image pixels.
20802# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020803if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020804 enableval=$enable_cipher; enable_cipher=$enableval
20805else
20806 enable_cipher='yes'
20807fi
20808
20809
20810if test "$enable_cipher" = 'yes'; then
20811
cristy8b350f62009-11-15 23:12:43 +000020812$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020813
20814fi
20815
cristy6e3607c2011-09-13 13:59:17 +000020816# Build a zero-configuration version of ImageMagick.
20817# Check whether --enable-zero-configuration was given.
20818if test "${enable_zero_configuration+set}" = set; then :
20819 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000020820else
cristy6e3607c2011-09-13 13:59:17 +000020821 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000020822fi
20823
20824
cristy6e3607c2011-09-13 13:59:17 +000020825if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000020826
cristy6e3607c2011-09-13 13:59:17 +000020827$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020828
cristy81af5702011-09-13 14:20:58 +000020829 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020830fi
20831
20832# Build a high dynamic range version of ImageMagick.
20833# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020834if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020835 enableval=$enable_hdri; enable_hdri=$enableval
20836else
cristy191c0b72012-08-12 16:29:52 +000020837 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000020838fi
20839
20840
20841MAGICK_HDRI=""
20842if test "$enable_hdri" = 'yes'; then
20843 MAGICK_HDRI="HDRI"
20844
cristy8b350f62009-11-15 23:12:43 +000020845$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020846
cristyfd9dcd42010-08-08 18:07:02 +000020847 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020848fi
20849
cristy3ed852e2009-09-05 21:47:34 +000020850# Build a version of ImageMagick with assert statements.
20851# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020852if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020853 enableval=$enable_assert; enable_assert=$enableval
20854else
20855 enable_assert='yes'
20856fi
20857
20858
20859if test "$enable_assert" = 'no'; then
20860
cristy8b350f62009-11-15 23:12:43 +000020861$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020862
20863fi
20864
cristya448bd22011-10-14 12:38:13 +000020865# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000020866
20867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20868$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20869 # Check whether --enable-maintainer-mode was given.
20870if test "${enable_maintainer_mode+set}" = set; then :
20871 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20872else
20873 USE_MAINTAINER_MODE=no
20874fi
20875
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20877$as_echo "$USE_MAINTAINER_MODE" >&6; }
20878 if test $USE_MAINTAINER_MODE = yes; then
20879 MAINTAINER_MODE_TRUE=
20880 MAINTAINER_MODE_FALSE='#'
20881else
20882 MAINTAINER_MODE_TRUE='#'
20883 MAINTAINER_MODE_FALSE=
20884fi
20885
20886 MAINT=$MAINTAINER_MODE_TRUE
20887
20888
cristy3ed852e2009-09-05 21:47:34 +000020889
cristy3ed852e2009-09-05 21:47:34 +000020890# Enable ccmalloc memory debugging support
20891# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020892if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020893 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20894else
20895 enable_ccmalloc='no'
20896fi
20897
20898
20899# Enable Electric Fence memory debugging support
20900# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020901if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020902 enableval=$enable_efence; enable_efence=$enableval
20903else
20904 enable_efence='no'
20905fi
20906
20907
20908# Enable prof-based profiling support
20909# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020910if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020911 enableval=$enable_prof; enable_prof=$enableval
20912else
20913 enable_prof='no'
20914fi
20915
20916
20917# Enable gprof-based profiling support
20918# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020919if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020920 enableval=$enable_gprof; enable_gprof=$enableval
20921else
20922 enable_gprof='no'
20923fi
20924
20925
20926# Enable gcov-based profiling support
20927# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020928if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020929 enableval=$enable_gcov; enable_gcov=$enableval
20930else
20931 enable_gcov='no'
20932fi
20933
20934
20935enable_profiling='no'
20936if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20937 enable_profiling='yes'
20938 if test "$libtool_build_shared_libs" = 'yes'; then
20939 echo "Warning: Can not profile code using shared libraries"
20940 fi
20941fi
20942
20943# Magick API method prefix
20944
20945# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020946if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000020947 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000020948else
cristyfc3d0222012-02-07 15:05:57 +000020949 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000020950fi
20951
20952
cristyfc3d0222012-02-07 15:05:57 +000020953if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000020954
20955cat >>confdefs.h <<_ACEOF
20956#define NAMESPACE_PREFIX $with_method_prefix
20957_ACEOF
20958
cristyfc3d0222012-02-07 15:05:57 +000020959 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000020960fi
20961
cristy71d8c202012-03-20 17:05:01 +000020962# Enable legacy support (default no)
20963# Check whether --enable-legacy-support was given.
20964if test "${enable_legacy_support+set}" = set; then :
20965 enableval=$enable_legacy_support; with_legacy_support=$enableval
20966else
20967 with_legacy_support='no'
20968fi
20969
20970 if test "$with_legacy_support" != 'no'; then
20971 LEGACY_SUPPORT_TRUE=
20972 LEGACY_SUPPORT_FALSE='#'
20973else
20974 LEGACY_SUPPORT_TRUE='#'
20975 LEGACY_SUPPORT_FALSE=
20976fi
20977
20978
cristy3ed852e2009-09-05 21:47:34 +000020979# Number of bits in a Quantum
20980
20981# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020982if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020983 withval=$with_quantum_depth; with_quantum_depth=$withval
20984else
20985 with_quantum_depth=16
20986fi
20987
20988
20989if test "$with_quantum_depth" != '8'; then
20990 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20991fi
20992
20993case "${with_quantum_depth}" in
20994 8 ) ;;
20995 16 ) ;;
20996 32 ) ;;
20997 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000020998 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020999esac
21000QUANTUM_DEPTH="$with_quantum_depth"
21001
21002cat >>confdefs.h <<_ACEOF
21003#define QUANTUM_DEPTH $QUANTUM_DEPTH
21004_ACEOF
21005
21006
cristy01ff9f32012-12-01 18:15:29 +000021007# define a lib suffix for abi purpose
cristycf4a3c22012-12-02 21:47:25 +000021008ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021009if test "$enable_hdri" = 'yes'; then
cristycf4a3c22012-12-02 21:47:25 +000021010 ABI_SUFFIX="Q${QUANTUM_DEPTH}-${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021011fi
cristy01ff9f32012-12-01 18:15:29 +000021012
21013
cristy3ed852e2009-09-05 21:47:34 +000021014# Set pixel cache threshold
21015
21016# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021017if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021018 withval=$with_cache; with_cache=$withval
21019else
21020 with_cache=''
21021fi
21022
21023
21024if test "$with_cache" != ''; then
21025
21026cat >>confdefs.h <<_ACEOF
21027#define PixelCacheThreshold $with_cache
21028_ACEOF
21029
21030 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21031fi
21032
21033# Disable/Enable support for full delegate paths
21034
21035# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021036if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021037 withval=$with_frozenpaths; with_frozenpaths=$withval
21038else
21039 with_frozenpaths='no'
21040fi
21041
21042
21043# Enable build/install of Magick++
21044
21045# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021046if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021047 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21048else
21049 with_magick_plus_plus='yes'
21050fi
21051
21052
cristy3a75f062012-09-08 23:29:40 +000021053# Encode the this name into the shared library.
21054
21055# Check whether --with-package-release-name was given.
21056if test "${with_package_release_name+set}" = set; then :
21057 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21058fi
21059
21060
21061
cristy3ed852e2009-09-05 21:47:34 +000021062# Disable build/install of PerlMagick.
21063
21064# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021065if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021066 withval=$with_perl; with_perl=$withval
21067else
cristyb5f4e2f2010-04-25 00:49:11 +000021068 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021069fi
21070
21071
21072# Options to pass when configuring PerlMagick
21073
21074# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021075if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021076 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021077fi
21078
21079
cristy3ed852e2009-09-05 21:47:34 +000021080
21081# Enable umem, object-caching memory allocation library.
21082
21083# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021084if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021085 withval=$with_umem; with_umem=$withval
21086else
21087 with_umem='no'
21088fi
21089
21090if test "$with_umem" != 'yes' ; then
21091 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21092fi
21093
21094#
21095# Specify path to shared libstdc++ if not in normal location
21096#
21097
21098# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021099if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021100 withval=$with_libstdc; with_libstdc=$withval
21101else
21102 with_libstdc=''
21103fi
21104
21105
21106if test "$with_libstdc" != ''; then
21107 if test -d "$with_libstdc"; then
21108 LIBSTDCLDFLAGS="-L$with_libstdc"
21109 fi
21110fi
21111
21112
21113# Does gcc required -traditional?
21114if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021116$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021117if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021118 $as_echo_n "(cached) " >&6
21119else
21120 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021122/* end confdefs.h. */
21123#include <sgtty.h>
21124Autoconf TIOCGETP
21125_ACEOF
21126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021127 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021128 ac_cv_prog_gcc_traditional=yes
21129else
21130 ac_cv_prog_gcc_traditional=no
21131fi
21132rm -f conftest*
21133
21134
21135 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021137/* end confdefs.h. */
21138#include <termio.h>
21139Autoconf TCGETA
21140_ACEOF
21141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021142 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021143 ac_cv_prog_gcc_traditional=yes
21144fi
21145rm -f conftest*
21146
21147 fi
21148fi
cristy8b350f62009-11-15 23:12:43 +000021149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021150$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21151 if test $ac_cv_prog_gcc_traditional = yes; then
21152 CC="$CC -traditional"
21153 fi
21154fi
21155
21156
21157########
21158#
21159# Set defines required to build DLLs and modules using MinGW
21160#
21161########
21162# These options are set for multi-thread DLL module build
21163# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21164# module: _DLL
21165# executable/Magick++: _DLL _MAGICKMOD_
21166MODULE_EXTRA_CPPFLAGS=''
21167LIBRARY_EXTRA_CPPFLAGS=''
21168if test "${native_win32_build}" = 'yes'; then
21169 if test "${libtool_build_shared_libs}" = 'yes'; then
21170 CPPFLAGS="$CPPFLAGS -D_DLL"
21171 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21172 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21173 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021174 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021175 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21176 else
21177 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21178 fi
21179 else
21180 CPPFLAGS="$CPPFLAGS -D_LIB"
21181 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21182 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21183 fi
21184 if test "$with_threads" = 'yes'; then
21185 CPPFLAGS="$CPPFLAGS -D_MT"
21186 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21187 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21188 fi
21189fi
21190
21191
21192
21193# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021195$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021196if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021197 $as_echo_n "(cached) " >&6
21198else
cristy8b350f62009-11-15 23:12:43 +000021199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021200/* end confdefs.h. */
21201#include <stdlib.h>
21202#include <stdarg.h>
21203#include <string.h>
21204#include <float.h>
21205
21206int
21207main ()
21208{
21209
21210 ;
21211 return 0;
21212}
21213_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021214if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021215 ac_cv_header_stdc=yes
21216else
cristy8b350f62009-11-15 23:12:43 +000021217 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021218fi
cristy3ed852e2009-09-05 21:47:34 +000021219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21220
21221if test $ac_cv_header_stdc = yes; then
21222 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021224/* end confdefs.h. */
21225#include <string.h>
21226
21227_ACEOF
21228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021229 $EGREP "memchr" >/dev/null 2>&1; then :
21230
cristy3ed852e2009-09-05 21:47:34 +000021231else
21232 ac_cv_header_stdc=no
21233fi
21234rm -f conftest*
21235
21236fi
21237
21238if test $ac_cv_header_stdc = yes; then
21239 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021241/* end confdefs.h. */
21242#include <stdlib.h>
21243
21244_ACEOF
21245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021246 $EGREP "free" >/dev/null 2>&1; then :
21247
cristy3ed852e2009-09-05 21:47:34 +000021248else
21249 ac_cv_header_stdc=no
21250fi
21251rm -f conftest*
21252
21253fi
21254
21255if test $ac_cv_header_stdc = yes; then
21256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021257 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021258 :
21259else
cristy8b350f62009-11-15 23:12:43 +000021260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021261/* end confdefs.h. */
21262#include <ctype.h>
21263#include <stdlib.h>
21264#if ((' ' & 0x0FF) == 0x020)
21265# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21266# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21267#else
21268# define ISLOWER(c) \
21269 (('a' <= (c) && (c) <= 'i') \
21270 || ('j' <= (c) && (c) <= 'r') \
21271 || ('s' <= (c) && (c) <= 'z'))
21272# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21273#endif
21274
21275#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21276int
21277main ()
21278{
21279 int i;
21280 for (i = 0; i < 256; i++)
21281 if (XOR (islower (i), ISLOWER (i))
21282 || toupper (i) != TOUPPER (i))
21283 return 2;
21284 return 0;
21285}
21286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021287if ac_fn_c_try_run "$LINENO"; then :
21288
cristy3ed852e2009-09-05 21:47:34 +000021289else
cristy8b350f62009-11-15 23:12:43 +000021290 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021291fi
cristy8b350f62009-11-15 23:12:43 +000021292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21293 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021294fi
21295
cristy3ed852e2009-09-05 21:47:34 +000021296fi
21297fi
cristy8b350f62009-11-15 23:12:43 +000021298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021299$as_echo "$ac_cv_header_stdc" >&6; }
21300if test $ac_cv_header_stdc = yes; then
21301
cristy8b350f62009-11-15 23:12:43 +000021302$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021303
21304fi
21305
21306if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021307 { $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 +000021308 header files. Compilation cannot proceed. Please install the ANSI C
21309 headers and rerun this script." >&5
21310$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21311 header files. Compilation cannot proceed. Please install the ANSI C
21312 headers and rerun this script." >&2;};
21313fi
cristya0b81c32010-01-22 02:54:33 +000021314
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21316$as_echo_n "checking whether to enable assertions... " >&6; }
21317 # Check whether --enable-assert was given.
21318if test "${enable_assert+set}" = set; then :
21319 enableval=$enable_assert; ac_enable_assert=$enableval
21320 if test "x$enableval" = xno; then :
21321
21322$as_echo "#define NDEBUG 1" >>confdefs.h
21323
21324elif test "x$enableval" != xyes; then :
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21326$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21327 ac_enable_assert=yes
21328fi
21329else
21330 ac_enable_assert=yes
21331fi
21332
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21334$as_echo "$ac_enable_assert" >&6; }
21335
cristy3ed852e2009-09-05 21:47:34 +000021336ac_header_dirent=no
21337for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21338 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021340$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021341if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021342 $as_echo_n "(cached) " >&6
21343else
cristy8b350f62009-11-15 23:12:43 +000021344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021345/* end confdefs.h. */
21346#include <sys/types.h>
21347#include <$ac_hdr>
21348
21349int
21350main ()
21351{
21352if ((DIR *) 0)
21353return 0;
21354 ;
21355 return 0;
21356}
21357_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021358if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021359 eval "$as_ac_Header=yes"
21360else
cristy8b350f62009-11-15 23:12:43 +000021361 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021362fi
cristy3ed852e2009-09-05 21:47:34 +000021363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21364fi
cristy8b350f62009-11-15 23:12:43 +000021365eval ac_res=\$$as_ac_Header
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021367$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021368if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021369 cat >>confdefs.h <<_ACEOF
21370#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21371_ACEOF
21372
21373ac_header_dirent=$ac_hdr; break
21374fi
21375
21376done
21377# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21378if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021380$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021381if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021382 $as_echo_n "(cached) " >&6
21383else
21384 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021386/* end confdefs.h. */
21387
21388/* Override any GCC internal prototype to avoid an error.
21389 Use char because int might match the return type of a GCC
21390 builtin and then its argument prototype would still apply. */
21391#ifdef __cplusplus
21392extern "C"
21393#endif
21394char opendir ();
21395int
21396main ()
21397{
21398return opendir ();
21399 ;
21400 return 0;
21401}
21402_ACEOF
21403for ac_lib in '' dir; do
21404 if test -z "$ac_lib"; then
21405 ac_res="none required"
21406 else
21407 ac_res=-l$ac_lib
21408 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21409 fi
cristy8b350f62009-11-15 23:12:43 +000021410 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021411 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021412fi
cristy8b350f62009-11-15 23:12:43 +000021413rm -f core conftest.err conftest.$ac_objext \
21414 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021415 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021416 break
21417fi
21418done
cristyda16f162011-02-19 23:52:17 +000021419if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021420
cristy3ed852e2009-09-05 21:47:34 +000021421else
21422 ac_cv_search_opendir=no
21423fi
21424rm conftest.$ac_ext
21425LIBS=$ac_func_search_save_LIBS
21426fi
cristy8b350f62009-11-15 23:12:43 +000021427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021428$as_echo "$ac_cv_search_opendir" >&6; }
21429ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021430if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021431 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21432
21433fi
21434
21435else
cristy8b350f62009-11-15 23:12:43 +000021436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021437$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021438if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021439 $as_echo_n "(cached) " >&6
21440else
21441 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021443/* end confdefs.h. */
21444
21445/* Override any GCC internal prototype to avoid an error.
21446 Use char because int might match the return type of a GCC
21447 builtin and then its argument prototype would still apply. */
21448#ifdef __cplusplus
21449extern "C"
21450#endif
21451char opendir ();
21452int
21453main ()
21454{
21455return opendir ();
21456 ;
21457 return 0;
21458}
21459_ACEOF
21460for ac_lib in '' x; do
21461 if test -z "$ac_lib"; then
21462 ac_res="none required"
21463 else
21464 ac_res=-l$ac_lib
21465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21466 fi
cristy8b350f62009-11-15 23:12:43 +000021467 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021468 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021469fi
cristy8b350f62009-11-15 23:12:43 +000021470rm -f core conftest.err conftest.$ac_objext \
21471 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021472 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021473 break
21474fi
21475done
cristyda16f162011-02-19 23:52:17 +000021476if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021477
cristy3ed852e2009-09-05 21:47:34 +000021478else
21479 ac_cv_search_opendir=no
21480fi
21481rm conftest.$ac_ext
21482LIBS=$ac_func_search_save_LIBS
21483fi
cristy8b350f62009-11-15 23:12:43 +000021484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021485$as_echo "$ac_cv_search_opendir" >&6; }
21486ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021487if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21489
21490fi
21491
21492fi
21493
21494
21495# Check additional headers
cristy58945e42012-09-04 14:33:54 +000021496for 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 +000021497do :
21498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21499ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021500if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021501 cat >>confdefs.h <<_ACEOF
21502#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21503_ACEOF
21504
21505fi
21506
21507done
21508
21509
21510########
21511#
21512# Checks for typedefs, structures, and compiler characteristics.
21513#
21514########
21515
cristy8b350f62009-11-15 23:12:43 +000021516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021517$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021518if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021519 $as_echo_n "(cached) " >&6
21520else
cristy8b350f62009-11-15 23:12:43 +000021521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021522/* end confdefs.h. */
21523
cristy14fefe52012-05-21 00:59:18 +000021524 #include <stdbool.h>
21525 #ifndef bool
21526 "error: bool is not defined"
21527 #endif
21528 #ifndef false
21529 "error: false is not defined"
21530 #endif
21531 #if false
21532 "error: false is not 0"
21533 #endif
21534 #ifndef true
21535 "error: true is not defined"
21536 #endif
21537 #if true != 1
21538 "error: true is not 1"
21539 #endif
21540 #ifndef __bool_true_false_are_defined
21541 "error: __bool_true_false_are_defined is not defined"
21542 #endif
cristy3ed852e2009-09-05 21:47:34 +000021543
cristy14fefe52012-05-21 00:59:18 +000021544 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021545
cristy14fefe52012-05-21 00:59:18 +000021546 char a[true == 1 ? 1 : -1];
21547 char b[false == 0 ? 1 : -1];
21548 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21549 char d[(bool) 0.5 == true ? 1 : -1];
21550 /* See body of main program for 'e'. */
21551 char f[(_Bool) 0.0 == false ? 1 : -1];
21552 char g[true];
21553 char h[sizeof (_Bool)];
21554 char i[sizeof s.t];
21555 enum { j = false, k = true, l = false * true, m = true * 256 };
21556 /* The following fails for
21557 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21558 _Bool n[m];
21559 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21560 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21561 /* Catch a bug in an HP-UX C compiler. See
21562 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21563 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21564 */
21565 _Bool q = true;
21566 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021567
21568int
21569main ()
21570{
21571
cristy14fefe52012-05-21 00:59:18 +000021572 bool e = &s;
21573 *pq |= q;
21574 *pq |= ! q;
21575 /* Refer to every declared value, to avoid compiler optimizations. */
21576 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21577 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021578
21579 ;
21580 return 0;
21581}
21582_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021583if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021584 ac_cv_header_stdbool_h=yes
21585else
cristy8b350f62009-11-15 23:12:43 +000021586 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021587fi
cristy3ed852e2009-09-05 21:47:34 +000021588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21589fi
cristy8b350f62009-11-15 23:12:43 +000021590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021591$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021592 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021593if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021594
21595cat >>confdefs.h <<_ACEOF
21596#define HAVE__BOOL 1
21597_ACEOF
21598
21599
21600fi
21601
cristy14fefe52012-05-21 00:59:18 +000021602
cristy3ed852e2009-09-05 21:47:34 +000021603if test $ac_cv_header_stdbool_h = yes; then
21604
cristy8b350f62009-11-15 23:12:43 +000021605$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021606
21607fi
21608
cristy8b350f62009-11-15 23:12:43 +000021609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021610$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021611if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021612 $as_echo_n "(cached) " >&6
21613else
cristy8b350f62009-11-15 23:12:43 +000021614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021615/* end confdefs.h. */
21616
21617int
21618main ()
21619{
21620
21621volatile int x;
21622int * volatile y = (int *) 0;
21623return !x && !y;
21624 ;
21625 return 0;
21626}
21627_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021628if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021629 ac_cv_c_volatile=yes
21630else
cristy8b350f62009-11-15 23:12:43 +000021631 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021632fi
cristy3ed852e2009-09-05 21:47:34 +000021633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21634fi
cristy8b350f62009-11-15 23:12:43 +000021635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021636$as_echo "$ac_cv_c_volatile" >&6; }
21637if test $ac_cv_c_volatile = no; then
21638
cristy8b350f62009-11-15 23:12:43 +000021639$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021640
21641fi
21642
cristy8b350f62009-11-15 23:12:43 +000021643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021644$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021645if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021646 $as_echo_n "(cached) " >&6
21647else
cristy8b350f62009-11-15 23:12:43 +000021648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021649/* end confdefs.h. */
21650#define x(y) #y
21651
21652char *s = x(teststring);
21653_ACEOF
21654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021655 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021656 ac_cv_c_stringize=no
21657else
21658 ac_cv_c_stringize=yes
21659fi
21660rm -f conftest*
21661
21662fi
cristy8b350f62009-11-15 23:12:43 +000021663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021664$as_echo "$ac_cv_c_stringize" >&6; }
21665if test $ac_cv_c_stringize = yes; then
21666
cristy8b350f62009-11-15 23:12:43 +000021667$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021668
21669fi
21670
cristy8b350f62009-11-15 23:12:43 +000021671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021672$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021673if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021674 $as_echo_n "(cached) " >&6
21675else
cristy8b350f62009-11-15 23:12:43 +000021676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021677/* end confdefs.h. */
21678#include <sys/types.h>
21679#include <sys/stat.h>
21680
21681#if defined S_ISBLK && defined S_IFDIR
21682extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21683#endif
21684
21685#if defined S_ISBLK && defined S_IFCHR
21686extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21687#endif
21688
21689#if defined S_ISLNK && defined S_IFREG
21690extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21691#endif
21692
21693#if defined S_ISSOCK && defined S_IFREG
21694extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21695#endif
21696
21697_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021698if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021699 ac_cv_header_stat_broken=no
21700else
cristy8b350f62009-11-15 23:12:43 +000021701 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021702fi
cristy3ed852e2009-09-05 21:47:34 +000021703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21704fi
cristy8b350f62009-11-15 23:12:43 +000021705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021706$as_echo "$ac_cv_header_stat_broken" >&6; }
21707if test $ac_cv_header_stat_broken = yes; then
21708
cristy8b350f62009-11-15 23:12:43 +000021709$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021710
21711fi
21712
cristy8b350f62009-11-15 23:12:43 +000021713{ $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 +000021714$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021715if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021716 $as_echo_n "(cached) " >&6
21717else
cristy8b350f62009-11-15 23:12:43 +000021718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021719/* end confdefs.h. */
21720#include <sys/types.h>
21721#include <sys/time.h>
21722#include <time.h>
21723
21724int
21725main ()
21726{
21727if ((struct tm *) 0)
21728return 0;
21729 ;
21730 return 0;
21731}
21732_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021733if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021734 ac_cv_header_time=yes
21735else
cristy8b350f62009-11-15 23:12:43 +000021736 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021737fi
cristy3ed852e2009-09-05 21:47:34 +000021738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21739fi
cristy8b350f62009-11-15 23:12:43 +000021740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021741$as_echo "$ac_cv_header_time" >&6; }
21742if test $ac_cv_header_time = yes; then
21743
cristy8b350f62009-11-15 23:12:43 +000021744$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021745
21746fi
21747
cristy8b350f62009-11-15 23:12:43 +000021748{ $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 +000021749$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021750if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021751 $as_echo_n "(cached) " >&6
21752else
cristy8b350f62009-11-15 23:12:43 +000021753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021754/* end confdefs.h. */
21755#include <sys/types.h>
21756#include <time.h>
21757
21758int
21759main ()
21760{
21761struct tm tm;
21762 int *p = &tm.tm_sec;
21763 return !p;
21764 ;
21765 return 0;
21766}
21767_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021768if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021769 ac_cv_struct_tm=time.h
21770else
cristy8b350f62009-11-15 23:12:43 +000021771 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021772fi
cristy3ed852e2009-09-05 21:47:34 +000021773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21774fi
cristy8b350f62009-11-15 23:12:43 +000021775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021776$as_echo "$ac_cv_struct_tm" >&6; }
21777if test $ac_cv_struct_tm = sys/time.h; then
21778
cristy8b350f62009-11-15 23:12:43 +000021779$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021780
21781fi
21782
cristy92703d82010-04-26 00:18:18 +000021783ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21784#include <$ac_cv_struct_tm>
21785
21786"
cristyda16f162011-02-19 23:52:17 +000021787if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021788
21789cat >>confdefs.h <<_ACEOF
21790#define HAVE_STRUCT_TM_TM_ZONE 1
21791_ACEOF
21792
21793
21794fi
21795
21796if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21797
21798$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21799
21800else
21801 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21802"
cristyda16f162011-02-19 23:52:17 +000021803if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021804 ac_have_decl=1
21805else
21806 ac_have_decl=0
21807fi
21808
21809cat >>confdefs.h <<_ACEOF
21810#define HAVE_DECL_TZNAME $ac_have_decl
21811_ACEOF
21812
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21814$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021815if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021816 $as_echo_n "(cached) " >&6
21817else
21818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21819/* end confdefs.h. */
21820#include <time.h>
21821#if !HAVE_DECL_TZNAME
21822extern char *tzname[];
21823#endif
21824
21825int
21826main ()
21827{
21828return tzname[0][0];
21829 ;
21830 return 0;
21831}
21832_ACEOF
21833if ac_fn_c_try_link "$LINENO"; then :
21834 ac_cv_var_tzname=yes
21835else
21836 ac_cv_var_tzname=no
21837fi
21838rm -f core conftest.err conftest.$ac_objext \
21839 conftest$ac_exeext conftest.$ac_ext
21840fi
21841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21842$as_echo "$ac_cv_var_tzname" >&6; }
21843 if test $ac_cv_var_tzname = yes; then
21844
21845$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21846
21847 fi
21848fi
21849
cristy8b350f62009-11-15 23:12:43 +000021850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021851$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021852if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021853 $as_echo_n "(cached) " >&6
21854else
21855 echo '#! /bin/cat
21856exit 69
21857' >conftest
21858chmod u+x conftest
21859(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21860if test $? -ne 69; then
21861 ac_cv_sys_interpreter=yes
21862else
21863 ac_cv_sys_interpreter=no
21864fi
21865rm -f conftest
21866fi
cristy8b350f62009-11-15 23:12:43 +000021867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021868$as_echo "$ac_cv_sys_interpreter" >&6; }
21869interpval=$ac_cv_sys_interpreter
21870
21871
cristy3ed852e2009-09-05 21:47:34 +000021872# If the C compiler supports the keyword inline, do nothing. Otherwise
21873# define inline to __inline__ or __inline if it accepts one of those,
21874# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021876$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021877if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021878 $as_echo_n "(cached) " >&6
21879else
21880 ac_cv_c_inline=no
21881for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021883/* end confdefs.h. */
21884#ifndef __cplusplus
21885typedef int foo_t;
21886static $ac_kw foo_t static_foo () {return 0; }
21887$ac_kw foo_t foo () {return 0; }
21888#endif
21889
21890_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021891if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021892 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021893fi
cristy3ed852e2009-09-05 21:47:34 +000021894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21895 test "$ac_cv_c_inline" != no && break
21896done
21897
21898fi
cristy8b350f62009-11-15 23:12:43 +000021899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021900$as_echo "$ac_cv_c_inline" >&6; }
21901
cristy3ed852e2009-09-05 21:47:34 +000021902case $ac_cv_c_inline in
21903 inline | yes) ;;
21904 *)
21905 case $ac_cv_c_inline in
21906 no) ac_val=;;
21907 *) ac_val=$ac_cv_c_inline;;
21908 esac
21909 cat >>confdefs.h <<_ACEOF
21910#ifndef __cplusplus
21911#define inline $ac_val
21912#endif
21913_ACEOF
21914 ;;
21915esac
21916
21917
21918# If the C compiler supports the keyword restrict, do nothing. Otherwise
21919# define restrict to __restrict__ or __restrict if it accepts one of those,
21920# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021922$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021923if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021924 $as_echo_n "(cached) " >&6
21925else
21926 ac_cv_c_restrict=no
21927 # The order here caters to the fact that C++ does not require restrict.
21928 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021930/* end confdefs.h. */
21931typedef int * int_ptr;
21932 int foo (int_ptr $ac_kw ip) {
21933 return ip[0];
21934 }
21935int
21936main ()
21937{
21938int s[1];
21939 int * $ac_kw t = s;
21940 t[0] = 0;
21941 return foo(t)
21942 ;
21943 return 0;
21944}
21945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021946if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021947 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021948fi
cristy3ed852e2009-09-05 21:47:34 +000021949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21950 test "$ac_cv_c_restrict" != no && break
21951 done
21952
21953fi
cristy8b350f62009-11-15 23:12:43 +000021954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021955$as_echo "$ac_cv_c_restrict" >&6; }
21956
cristy3ed852e2009-09-05 21:47:34 +000021957 case $ac_cv_c_restrict in
21958 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021959 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021960 ;;
21961 *) cat >>confdefs.h <<_ACEOF
21962#define restrict $ac_cv_c_restrict
21963_ACEOF
21964 ;;
21965 esac
21966
21967
21968# If words are stored with the most significant byte first (like
21969# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021971$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021972if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021973 $as_echo_n "(cached) " >&6
21974else
21975 ac_cv_c_bigendian=unknown
21976 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021978/* end confdefs.h. */
21979#ifndef __APPLE_CC__
21980 not a universal capable compiler
21981 #endif
21982 typedef int dummy;
21983
21984_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021985if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021986
21987 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021988 # there are at least two -arch flags with different values.
21989 ac_arch=
21990 ac_prev=
21991 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21992 if test -n "$ac_prev"; then
21993 case $ac_word in
21994 i?86 | x86_64 | ppc | ppc64)
21995 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21996 ac_arch=$ac_word
21997 else
21998 ac_cv_c_bigendian=universal
21999 break
22000 fi
22001 ;;
22002 esac
22003 ac_prev=
22004 elif test "x$ac_word" = "x-arch"; then
22005 ac_prev=arch
22006 fi
22007 done
cristy3ed852e2009-09-05 21:47:34 +000022008fi
cristy3ed852e2009-09-05 21:47:34 +000022009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22010 if test $ac_cv_c_bigendian = unknown; then
22011 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022013/* end confdefs.h. */
22014#include <sys/types.h>
22015 #include <sys/param.h>
22016
22017int
22018main ()
22019{
22020#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22021 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22022 && LITTLE_ENDIAN)
22023 bogus endian macros
22024 #endif
22025
22026 ;
22027 return 0;
22028}
22029_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022030if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022031 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022033/* end confdefs.h. */
22034#include <sys/types.h>
22035 #include <sys/param.h>
22036
22037int
22038main ()
22039{
22040#if BYTE_ORDER != BIG_ENDIAN
22041 not big endian
22042 #endif
22043
22044 ;
22045 return 0;
22046}
22047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022048if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022049 ac_cv_c_bigendian=yes
22050else
cristy8b350f62009-11-15 23:12:43 +000022051 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022052fi
cristy3ed852e2009-09-05 21:47:34 +000022053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022054fi
cristy3ed852e2009-09-05 21:47:34 +000022055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22056 fi
22057 if test $ac_cv_c_bigendian = unknown; then
22058 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022060/* end confdefs.h. */
22061#include <limits.h>
22062
22063int
22064main ()
22065{
22066#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22067 bogus endian macros
22068 #endif
22069
22070 ;
22071 return 0;
22072}
22073_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022074if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022075 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022077/* end confdefs.h. */
22078#include <limits.h>
22079
22080int
22081main ()
22082{
22083#ifndef _BIG_ENDIAN
22084 not big endian
22085 #endif
22086
22087 ;
22088 return 0;
22089}
22090_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022091if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022092 ac_cv_c_bigendian=yes
22093else
cristy8b350f62009-11-15 23:12:43 +000022094 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022095fi
cristy3ed852e2009-09-05 21:47:34 +000022096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022097fi
cristy3ed852e2009-09-05 21:47:34 +000022098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22099 fi
22100 if test $ac_cv_c_bigendian = unknown; then
22101 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022102 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022103 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022105/* end confdefs.h. */
22106short int ascii_mm[] =
22107 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22108 short int ascii_ii[] =
22109 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22110 int use_ascii (int i) {
22111 return ascii_mm[i] + ascii_ii[i];
22112 }
22113 short int ebcdic_ii[] =
22114 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22115 short int ebcdic_mm[] =
22116 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22117 int use_ebcdic (int i) {
22118 return ebcdic_mm[i] + ebcdic_ii[i];
22119 }
22120 extern int foo;
22121
22122int
22123main ()
22124{
22125return use_ascii (foo) == use_ebcdic (foo);
22126 ;
22127 return 0;
22128}
22129_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022130if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022131 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22132 ac_cv_c_bigendian=yes
22133 fi
22134 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22135 if test "$ac_cv_c_bigendian" = unknown; then
22136 ac_cv_c_bigendian=no
22137 else
22138 # finding both strings is unlikely to happen, but who knows?
22139 ac_cv_c_bigendian=unknown
22140 fi
22141 fi
cristy3ed852e2009-09-05 21:47:34 +000022142fi
cristy3ed852e2009-09-05 21:47:34 +000022143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22144else
cristy8b350f62009-11-15 23:12:43 +000022145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022146/* end confdefs.h. */
22147$ac_includes_default
22148int
22149main ()
22150{
22151
22152 /* Are we little or big endian? From Harbison&Steele. */
22153 union
22154 {
22155 long int l;
22156 char c[sizeof (long int)];
22157 } u;
22158 u.l = 1;
22159 return u.c[sizeof (long int) - 1] == 1;
22160
22161 ;
22162 return 0;
22163}
22164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022165if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022166 ac_cv_c_bigendian=no
22167else
cristy8b350f62009-11-15 23:12:43 +000022168 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022169fi
cristy8b350f62009-11-15 23:12:43 +000022170rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22171 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022172fi
22173
cristy3ed852e2009-09-05 21:47:34 +000022174 fi
22175fi
cristy8b350f62009-11-15 23:12:43 +000022176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022177$as_echo "$ac_cv_c_bigendian" >&6; }
22178 case $ac_cv_c_bigendian in #(
22179 yes)
cristy8b350f62009-11-15 23:12:43 +000022180 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022181;; #(
22182 no)
22183 ;; #(
22184 universal)
22185
cristy8b350f62009-11-15 23:12:43 +000022186$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022187
22188 ;; #(
22189 *)
cristy98dddb52010-11-04 00:30:15 +000022190 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022191 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022192 esac
22193
22194
cristy501c8042011-05-26 17:46:28 +000022195# Define to a suitable type, if standard headers do not define it.
22196ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22197case $ac_cv_c_int8_t in #(
22198 no|yes) ;; #(
22199 *)
cristy3ed852e2009-09-05 21:47:34 +000022200
22201cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022202#define int8_t $ac_cv_c_int8_t
22203_ACEOF
22204;;
22205esac
22206
22207ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22208case $ac_cv_c_int16_t in #(
22209 no|yes) ;; #(
22210 *)
22211
22212cat >>confdefs.h <<_ACEOF
22213#define int16_t $ac_cv_c_int16_t
22214_ACEOF
22215;;
22216esac
22217
22218ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22219case $ac_cv_c_int32_t in #(
22220 no|yes) ;; #(
22221 *)
22222
22223cat >>confdefs.h <<_ACEOF
22224#define int32_t $ac_cv_c_int32_t
22225_ACEOF
22226;;
22227esac
22228
22229ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22230case $ac_cv_c_int64_t in #(
22231 no|yes) ;; #(
22232 *)
22233
22234cat >>confdefs.h <<_ACEOF
22235#define int64_t $ac_cv_c_int64_t
22236_ACEOF
22237;;
22238esac
22239
22240
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22242$as_echo_n "checking for long long int... " >&6; }
22243if ${ac_cv_type_long_long_int+:} false; then :
22244 $as_echo_n "(cached) " >&6
22245else
22246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22247/* end confdefs.h. */
22248
22249 /* For now, do not test the preprocessor; as of 2007 there are too many
22250 implementations with broken preprocessors. Perhaps this can
22251 be revisited in 2012. In the meantime, code should not expect
22252 #if to work with literals wider than 32 bits. */
22253 /* Test literals. */
22254 long long int ll = 9223372036854775807ll;
22255 long long int nll = -9223372036854775807LL;
22256 unsigned long long int ull = 18446744073709551615ULL;
22257 /* Test constant expressions. */
22258 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22259 ? 1 : -1)];
22260 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22261 ? 1 : -1)];
22262 int i = 63;
22263int
22264main ()
22265{
22266/* Test availability of runtime routines for shift and division. */
22267 long long int llmax = 9223372036854775807ll;
22268 unsigned long long int ullmax = 18446744073709551615ull;
22269 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22270 | (llmax / ll) | (llmax % ll)
22271 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22272 | (ullmax / ull) | (ullmax % ull));
22273 ;
22274 return 0;
22275}
22276
22277_ACEOF
22278if ac_fn_c_try_link "$LINENO"; then :
22279 if test "$cross_compiling" = yes; then :
22280 ac_cv_type_long_long_int=yes
22281else
22282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22283/* end confdefs.h. */
22284#include <limits.h>
22285 #ifndef LLONG_MAX
22286 # define HALF \
22287 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22288 # define LLONG_MAX (HALF - 1 + HALF)
22289 #endif
22290int
22291main ()
22292{
22293long long int n = 1;
22294 int i;
22295 for (i = 0; ; i++)
22296 {
22297 long long int m = n << i;
22298 if (m >> i != n)
22299 return 1;
22300 if (LLONG_MAX / 2 < m)
22301 break;
22302 }
22303 return 0;
22304 ;
22305 return 0;
22306}
22307_ACEOF
22308if ac_fn_c_try_run "$LINENO"; then :
22309 ac_cv_type_long_long_int=yes
22310else
22311 ac_cv_type_long_long_int=no
22312fi
22313rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22314 conftest.$ac_objext conftest.beam conftest.$ac_ext
22315fi
22316
22317else
22318 ac_cv_type_long_long_int=no
22319fi
22320rm -f core conftest.err conftest.$ac_objext \
22321 conftest$ac_exeext conftest.$ac_ext
22322fi
22323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22324$as_echo "$ac_cv_type_long_long_int" >&6; }
22325 if test $ac_cv_type_long_long_int = yes; then
22326
22327$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22328
22329 fi
22330
22331
22332
22333 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22334if test "x$ac_cv_type_intmax_t" = xyes; then :
22335
22336$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22337
22338else
22339 test $ac_cv_type_long_long_int = yes \
22340 && ac_type='long long int' \
22341 || ac_type='long int'
22342
22343cat >>confdefs.h <<_ACEOF
22344#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022345_ACEOF
22346
22347fi
22348
22349
cristy501c8042011-05-26 17:46:28 +000022350
22351 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22352if test "x$ac_cv_type_intptr_t" = xyes; then :
22353
22354$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022355
cristy3ed852e2009-09-05 21:47:34 +000022356else
cristy501c8042011-05-26 17:46:28 +000022357 for ac_type in 'int' 'long int' 'long long int'; do
22358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22359/* end confdefs.h. */
22360$ac_includes_default
22361int
22362main ()
22363{
22364static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022365test_array [0] = 0;
22366return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022367
22368 ;
22369 return 0;
22370}
22371_ACEOF
22372if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022373
22374cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022375#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022376_ACEOF
22377
cristy501c8042011-05-26 17:46:28 +000022378 ac_type=
22379fi
22380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22381 test -z "$ac_type" && break
22382 done
cristy3ed852e2009-09-05 21:47:34 +000022383fi
22384
22385
cristy3ed852e2009-09-05 21:47:34 +000022386
cristy501c8042011-05-26 17:46:28 +000022387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22388$as_echo_n "checking for long double... " >&6; }
22389if ${ac_cv_type_long_double+:} false; then :
22390 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022391else
cristy501c8042011-05-26 17:46:28 +000022392 if test "$GCC" = yes; then
22393 ac_cv_type_long_double=yes
22394 else
22395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22396/* end confdefs.h. */
22397/* The Stardent Vistra knows sizeof (long double), but does
22398 not support it. */
22399 long double foo = 0.0L;
22400int
22401main ()
22402{
22403static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22404 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022405test_array [0] = 0;
22406return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022407
cristy501c8042011-05-26 17:46:28 +000022408 ;
22409 return 0;
22410}
cristy3ed852e2009-09-05 21:47:34 +000022411_ACEOF
cristy501c8042011-05-26 17:46:28 +000022412if ac_fn_c_try_compile "$LINENO"; then :
22413 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022414else
cristy501c8042011-05-26 17:46:28 +000022415 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022416fi
cristy501c8042011-05-26 17:46:28 +000022417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22418 fi
cristy3ed852e2009-09-05 21:47:34 +000022419fi
cristy501c8042011-05-26 17:46:28 +000022420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22421$as_echo "$ac_cv_type_long_double" >&6; }
22422 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022423
cristy501c8042011-05-26 17:46:28 +000022424$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022425
cristy501c8042011-05-26 17:46:28 +000022426 fi
22427
cristy3ed852e2009-09-05 21:47:34 +000022428
cristy8b350f62009-11-15 23:12:43 +000022429 { $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 +000022430$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022431if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022432 $as_echo_n "(cached) " >&6
22433else
cristy8b350f62009-11-15 23:12:43 +000022434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022435/* end confdefs.h. */
22436#include <float.h>
22437 long double const a[] =
22438 {
22439 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22440 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22441 };
22442 long double
22443 f (long double x)
22444 {
22445 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22446 + (x ? f (x) : 'c'));
22447 }
22448
22449int
22450main ()
22451{
22452static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22453 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22454 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22455 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22456 && (int) LDBL_EPSILON == 0
22457 )];
cristy14fefe52012-05-21 00:59:18 +000022458test_array [0] = 0;
22459return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022460
22461 ;
22462 return 0;
22463}
22464_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022465if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022466 ac_cv_type_long_double_wider=yes
22467else
cristy8b350f62009-11-15 23:12:43 +000022468 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022469fi
cristy3ed852e2009-09-05 21:47:34 +000022470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22471fi
cristy8b350f62009-11-15 23:12:43 +000022472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022473$as_echo "$ac_cv_type_long_double_wider" >&6; }
22474 if test $ac_cv_type_long_double_wider = yes; then
22475
cristy8b350f62009-11-15 23:12:43 +000022476$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022477
22478 fi
22479
22480
cristy501c8042011-05-26 17:46:28 +000022481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22482$as_echo_n "checking for long long int... " >&6; }
22483if ${ac_cv_type_long_long_int+:} false; then :
22484 $as_echo_n "(cached) " >&6
22485else
22486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22487/* end confdefs.h. */
22488
22489 /* For now, do not test the preprocessor; as of 2007 there are too many
22490 implementations with broken preprocessors. Perhaps this can
22491 be revisited in 2012. In the meantime, code should not expect
22492 #if to work with literals wider than 32 bits. */
22493 /* Test literals. */
22494 long long int ll = 9223372036854775807ll;
22495 long long int nll = -9223372036854775807LL;
22496 unsigned long long int ull = 18446744073709551615ULL;
22497 /* Test constant expressions. */
22498 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22499 ? 1 : -1)];
22500 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22501 ? 1 : -1)];
22502 int i = 63;
22503int
22504main ()
22505{
22506/* Test availability of runtime routines for shift and division. */
22507 long long int llmax = 9223372036854775807ll;
22508 unsigned long long int ullmax = 18446744073709551615ull;
22509 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22510 | (llmax / ll) | (llmax % ll)
22511 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22512 | (ullmax / ull) | (ullmax % ull));
22513 ;
22514 return 0;
22515}
22516
22517_ACEOF
22518if ac_fn_c_try_link "$LINENO"; then :
22519 if test "$cross_compiling" = yes; then :
22520 ac_cv_type_long_long_int=yes
22521else
22522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22523/* end confdefs.h. */
22524#include <limits.h>
22525 #ifndef LLONG_MAX
22526 # define HALF \
22527 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22528 # define LLONG_MAX (HALF - 1 + HALF)
22529 #endif
22530int
22531main ()
22532{
22533long long int n = 1;
22534 int i;
22535 for (i = 0; ; i++)
22536 {
22537 long long int m = n << i;
22538 if (m >> i != n)
22539 return 1;
22540 if (LLONG_MAX / 2 < m)
22541 break;
22542 }
22543 return 0;
22544 ;
22545 return 0;
22546}
22547_ACEOF
22548if ac_fn_c_try_run "$LINENO"; then :
22549 ac_cv_type_long_long_int=yes
22550else
22551 ac_cv_type_long_long_int=no
22552fi
22553rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22554 conftest.$ac_objext conftest.beam conftest.$ac_ext
22555fi
22556
22557else
22558 ac_cv_type_long_long_int=no
22559fi
22560rm -f core conftest.err conftest.$ac_objext \
22561 conftest$ac_exeext conftest.$ac_ext
22562fi
22563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22564$as_echo "$ac_cv_type_long_long_int" >&6; }
22565 if test $ac_cv_type_long_long_int = yes; then
22566
22567$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22568
22569 fi
22570
22571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22572$as_echo_n "checking for mbstate_t... " >&6; }
22573if ${ac_cv_type_mbstate_t+:} false; then :
22574 $as_echo_n "(cached) " >&6
22575else
22576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22577/* end confdefs.h. */
22578$ac_includes_default
22579# include <wchar.h>
22580int
22581main ()
22582{
22583mbstate_t x; return sizeof x;
22584 ;
22585 return 0;
22586}
22587_ACEOF
22588if ac_fn_c_try_compile "$LINENO"; then :
22589 ac_cv_type_mbstate_t=yes
22590else
22591 ac_cv_type_mbstate_t=no
22592fi
22593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22594fi
22595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22596$as_echo "$ac_cv_type_mbstate_t" >&6; }
22597 if test $ac_cv_type_mbstate_t = yes; then
22598
22599$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22600
22601 else
22602
22603$as_echo "#define mbstate_t int" >>confdefs.h
22604
22605 fi
22606ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22607if test "x$ac_cv_type_mode_t" = xyes; then :
22608
22609else
22610
22611cat >>confdefs.h <<_ACEOF
22612#define mode_t int
22613_ACEOF
22614
22615fi
22616
22617ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22618if test "x$ac_cv_type_off_t" = xyes; then :
22619
22620else
22621
22622cat >>confdefs.h <<_ACEOF
22623#define off_t long int
22624_ACEOF
22625
22626fi
22627
22628ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22629if test "x$ac_cv_type_pid_t" = xyes; then :
22630
22631else
22632
22633cat >>confdefs.h <<_ACEOF
22634#define pid_t int
22635_ACEOF
22636
22637fi
22638
22639ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22640if test "x$ac_cv_type_size_t" = xyes; then :
22641
22642else
22643
22644cat >>confdefs.h <<_ACEOF
22645#define size_t unsigned int
22646_ACEOF
22647
22648fi
22649
22650ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22651if test "x$ac_cv_type_ssize_t" = xyes; then :
22652
22653else
22654
22655cat >>confdefs.h <<_ACEOF
22656#define ssize_t int
22657_ACEOF
22658
22659fi
22660
22661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22662$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22663if ${ac_cv_type_uid_t+:} false; then :
22664 $as_echo_n "(cached) " >&6
22665else
22666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22667/* end confdefs.h. */
22668#include <sys/types.h>
22669
22670_ACEOF
22671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22672 $EGREP "uid_t" >/dev/null 2>&1; then :
22673 ac_cv_type_uid_t=yes
22674else
22675 ac_cv_type_uid_t=no
22676fi
22677rm -f conftest*
22678
22679fi
22680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22681$as_echo "$ac_cv_type_uid_t" >&6; }
22682if test $ac_cv_type_uid_t = no; then
22683
22684$as_echo "#define uid_t int" >>confdefs.h
22685
22686
22687$as_echo "#define gid_t int" >>confdefs.h
22688
22689fi
22690
22691ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22692case $ac_cv_c_uint8_t in #(
22693 no|yes) ;; #(
22694 *)
22695
22696$as_echo "#define _UINT8_T 1" >>confdefs.h
22697
22698
22699cat >>confdefs.h <<_ACEOF
22700#define uint8_t $ac_cv_c_uint8_t
22701_ACEOF
22702;;
22703 esac
22704
22705ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22706case $ac_cv_c_uint16_t in #(
22707 no|yes) ;; #(
22708 *)
22709
22710
22711cat >>confdefs.h <<_ACEOF
22712#define uint16_t $ac_cv_c_uint16_t
22713_ACEOF
22714;;
22715 esac
22716
22717ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22718case $ac_cv_c_uint32_t in #(
22719 no|yes) ;; #(
22720 *)
22721
22722$as_echo "#define _UINT32_T 1" >>confdefs.h
22723
22724
22725cat >>confdefs.h <<_ACEOF
22726#define uint32_t $ac_cv_c_uint32_t
22727_ACEOF
22728;;
22729 esac
22730
22731ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22732case $ac_cv_c_uint64_t in #(
22733 no|yes) ;; #(
22734 *)
22735
22736$as_echo "#define _UINT64_T 1" >>confdefs.h
22737
22738
22739cat >>confdefs.h <<_ACEOF
22740#define uint64_t $ac_cv_c_uint64_t
22741_ACEOF
22742;;
22743 esac
22744
22745
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22747$as_echo_n "checking for unsigned long long int... " >&6; }
22748if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22749 $as_echo_n "(cached) " >&6
22750else
22751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22752/* end confdefs.h. */
22753
22754 /* For now, do not test the preprocessor; as of 2007 there are too many
22755 implementations with broken preprocessors. Perhaps this can
22756 be revisited in 2012. In the meantime, code should not expect
22757 #if to work with literals wider than 32 bits. */
22758 /* Test literals. */
22759 long long int ll = 9223372036854775807ll;
22760 long long int nll = -9223372036854775807LL;
22761 unsigned long long int ull = 18446744073709551615ULL;
22762 /* Test constant expressions. */
22763 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22764 ? 1 : -1)];
22765 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22766 ? 1 : -1)];
22767 int i = 63;
22768int
22769main ()
22770{
22771/* Test availability of runtime routines for shift and division. */
22772 long long int llmax = 9223372036854775807ll;
22773 unsigned long long int ullmax = 18446744073709551615ull;
22774 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22775 | (llmax / ll) | (llmax % ll)
22776 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22777 | (ullmax / ull) | (ullmax % ull));
22778 ;
22779 return 0;
22780}
22781
22782_ACEOF
22783if ac_fn_c_try_link "$LINENO"; then :
22784 ac_cv_type_unsigned_long_long_int=yes
22785else
22786 ac_cv_type_unsigned_long_long_int=no
22787fi
22788rm -f core conftest.err conftest.$ac_objext \
22789 conftest$ac_exeext conftest.$ac_ext
22790fi
22791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22792$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22793 if test $ac_cv_type_unsigned_long_long_int = yes; then
22794
22795$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22796
22797 fi
22798
22799
22800
22801 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22802if test "x$ac_cv_type_uintmax_t" = xyes; then :
22803
22804$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22805
22806else
22807 test $ac_cv_type_unsigned_long_long_int = yes \
22808 && ac_type='unsigned long long int' \
22809 || ac_type='unsigned long int'
22810
22811cat >>confdefs.h <<_ACEOF
22812#define uintmax_t $ac_type
22813_ACEOF
22814
22815fi
22816
22817
22818
22819 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
22820if test "x$ac_cv_type_uintptr_t" = xyes; then :
22821
22822$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
22823
22824else
22825 for ac_type in 'unsigned int' 'unsigned long int' \
22826 'unsigned long long int'; do
22827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22828/* end confdefs.h. */
22829$ac_includes_default
22830int
22831main ()
22832{
22833static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022834test_array [0] = 0;
22835return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022836
22837 ;
22838 return 0;
22839}
22840_ACEOF
22841if ac_fn_c_try_compile "$LINENO"; then :
22842
22843cat >>confdefs.h <<_ACEOF
22844#define uintptr_t $ac_type
22845_ACEOF
22846
22847 ac_type=
22848fi
22849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22850 test -z "$ac_type" && break
22851 done
22852fi
22853
22854
22855
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22857$as_echo_n "checking for unsigned long long int... " >&6; }
22858if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22859 $as_echo_n "(cached) " >&6
22860else
22861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22862/* end confdefs.h. */
22863
22864 /* For now, do not test the preprocessor; as of 2007 there are too many
22865 implementations with broken preprocessors. Perhaps this can
22866 be revisited in 2012. In the meantime, code should not expect
22867 #if to work with literals wider than 32 bits. */
22868 /* Test literals. */
22869 long long int ll = 9223372036854775807ll;
22870 long long int nll = -9223372036854775807LL;
22871 unsigned long long int ull = 18446744073709551615ULL;
22872 /* Test constant expressions. */
22873 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22874 ? 1 : -1)];
22875 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22876 ? 1 : -1)];
22877 int i = 63;
22878int
22879main ()
22880{
22881/* Test availability of runtime routines for shift and division. */
22882 long long int llmax = 9223372036854775807ll;
22883 unsigned long long int ullmax = 18446744073709551615ull;
22884 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22885 | (llmax / ll) | (llmax % ll)
22886 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22887 | (ullmax / ull) | (ullmax % ull));
22888 ;
22889 return 0;
22890}
22891
22892_ACEOF
22893if ac_fn_c_try_link "$LINENO"; then :
22894 ac_cv_type_unsigned_long_long_int=yes
22895else
22896 ac_cv_type_unsigned_long_long_int=no
22897fi
22898rm -f core conftest.err conftest.$ac_objext \
22899 conftest$ac_exeext conftest.$ac_ext
22900fi
22901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22902$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22903 if test $ac_cv_type_unsigned_long_long_int = yes; then
22904
22905$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22906
22907 fi
22908
22909
cristy3ed852e2009-09-05 21:47:34 +000022910# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
22911# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000022912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022913$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022914if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022915 $as_echo_n "(cached) " >&6
22916else
cristy8b350f62009-11-15 23:12:43 +000022917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022918/* end confdefs.h. */
22919$ac_includes_default
22920int
22921main ()
22922{
22923static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000022924test_array [0] = 0;
22925return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022926
22927 ;
22928 return 0;
22929}
22930_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022931if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022932 ac_cv_c_char_unsigned=no
22933else
cristy8b350f62009-11-15 23:12:43 +000022934 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000022935fi
cristy3ed852e2009-09-05 21:47:34 +000022936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22937fi
cristy8b350f62009-11-15 23:12:43 +000022938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022939$as_echo "$ac_cv_c_char_unsigned" >&6; }
22940if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000022941 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022942
22943fi
22944
22945
cristy9b86f202012-11-28 21:55:35 +000022946# Float_t and double_t are intended to be the the most efficient type.
cristyf0cf9a22012-10-24 12:05:01 +000022947ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
22948"
22949if test "x$ac_cv_type_float_t" = xyes; then :
22950
22951cat >>confdefs.h <<_ACEOF
22952#define HAVE_FLOAT_T 1
22953_ACEOF
22954
22955
22956fi
22957
22958ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
22959"
22960if test "x$ac_cv_type_double_t" = xyes; then :
22961
22962cat >>confdefs.h <<_ACEOF
22963#define HAVE_DOUBLE_T 1
22964_ACEOF
22965
22966
22967fi
22968
cristy9b86f202012-11-28 21:55:35 +000022969# The cast to long int works around a bug in the HP C Compiler
22970# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22971# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22972# This bug is HP SR number 8606223364.
22973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
22974$as_echo_n "checking size of float_t... " >&6; }
22975if ${ac_cv_sizeof_float_t+:} false; then :
22976 $as_echo_n "(cached) " >&6
22977else
22978 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
22979"; then :
22980
22981else
22982 if test "$ac_cv_type_float_t" = yes; then
22983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22984$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22985as_fn_error 77 "cannot compute sizeof (float_t)
22986See \`config.log' for more details" "$LINENO" 5; }
22987 else
22988 ac_cv_sizeof_float_t=0
22989 fi
22990fi
22991
22992fi
22993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
22994$as_echo "$ac_cv_sizeof_float_t" >&6; }
22995
22996
22997
22998cat >>confdefs.h <<_ACEOF
22999#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23000_ACEOF
23001
23002
23003# The cast to long int works around a bug in the HP C Compiler
23004# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23005# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23006# This bug is HP SR number 8606223364.
23007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23008$as_echo_n "checking size of double_t... " >&6; }
23009if ${ac_cv_sizeof_double_t+:} false; then :
23010 $as_echo_n "(cached) " >&6
23011else
23012 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23013"; then :
23014
23015else
23016 if test "$ac_cv_type_double_t" = yes; then
23017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23018$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23019as_fn_error 77 "cannot compute sizeof (double_t)
23020See \`config.log' for more details" "$LINENO" 5; }
23021 else
23022 ac_cv_sizeof_double_t=0
23023 fi
23024fi
23025
23026fi
23027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23028$as_echo "$ac_cv_sizeof_double_t" >&6; }
23029
23030
23031
23032cat >>confdefs.h <<_ACEOF
23033#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23034_ACEOF
23035
23036
23037
23038# Get size of float, double and long double for comparaison.
23039# The cast to long int works around a bug in the HP C Compiler
23040# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23041# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23042# This bug is HP SR number 8606223364.
23043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23044$as_echo_n "checking size of float... " >&6; }
23045if ${ac_cv_sizeof_float+:} false; then :
23046 $as_echo_n "(cached) " >&6
23047else
23048 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23049
23050else
23051 if test "$ac_cv_type_float" = yes; then
23052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23054as_fn_error 77 "cannot compute sizeof (float)
23055See \`config.log' for more details" "$LINENO" 5; }
23056 else
23057 ac_cv_sizeof_float=0
23058 fi
23059fi
23060
23061fi
23062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23063$as_echo "$ac_cv_sizeof_float" >&6; }
23064
23065
23066
23067cat >>confdefs.h <<_ACEOF
23068#define SIZEOF_FLOAT $ac_cv_sizeof_float
23069_ACEOF
23070
23071
23072# The cast to long int works around a bug in the HP C Compiler
23073# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23074# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23075# This bug is HP SR number 8606223364.
23076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23077$as_echo_n "checking size of double... " >&6; }
23078if ${ac_cv_sizeof_double+:} false; then :
23079 $as_echo_n "(cached) " >&6
23080else
23081 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23082
23083else
23084 if test "$ac_cv_type_double" = yes; then
23085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23087as_fn_error 77 "cannot compute sizeof (double)
23088See \`config.log' for more details" "$LINENO" 5; }
23089 else
23090 ac_cv_sizeof_double=0
23091 fi
23092fi
23093
23094fi
23095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23096$as_echo "$ac_cv_sizeof_double" >&6; }
23097
23098
23099
23100cat >>confdefs.h <<_ACEOF
23101#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23102_ACEOF
23103
23104
23105# The cast to long int works around a bug in the HP C Compiler
23106# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23107# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23108# This bug is HP SR number 8606223364.
23109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23110$as_echo_n "checking size of long double... " >&6; }
23111if ${ac_cv_sizeof_long_double+:} false; then :
23112 $as_echo_n "(cached) " >&6
23113else
23114 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23115
23116else
23117 if test "$ac_cv_type_long_double" = yes; then
23118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23120as_fn_error 77 "cannot compute sizeof (long double)
23121See \`config.log' for more details" "$LINENO" 5; }
23122 else
23123 ac_cv_sizeof_long_double=0
23124 fi
23125fi
23126
23127fi
23128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23129$as_echo "$ac_cv_sizeof_long_double" >&6; }
23130
23131
23132
23133cat >>confdefs.h <<_ACEOF
23134#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23135_ACEOF
23136
23137
cristyf0cf9a22012-10-24 12:05:01 +000023138
cristy3ed852e2009-09-05 21:47:34 +000023139# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23140# The cast to long int works around a bug in the HP C Compiler
23141# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23142# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23143# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023145$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023146if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023147 $as_echo_n "(cached) " >&6
23148else
cristy8b350f62009-11-15 23:12:43 +000023149 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 +000023150
cristy3ed852e2009-09-05 21:47:34 +000023151else
cristy8b350f62009-11-15 23:12:43 +000023152 if test "$ac_cv_type_signed_short" = yes; then
23153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023155as_fn_error 77 "cannot compute sizeof (signed short)
23156See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023157 else
23158 ac_cv_sizeof_signed_short=0
23159 fi
23160fi
cristy8b350f62009-11-15 23:12:43 +000023161
cristy3ed852e2009-09-05 21:47:34 +000023162fi
cristy8b350f62009-11-15 23:12:43 +000023163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023164$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23165
23166
23167
23168cat >>confdefs.h <<_ACEOF
23169#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23170_ACEOF
23171
23172
23173
23174# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23175# The cast to long int works around a bug in the HP C Compiler
23176# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23177# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23178# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023180$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023181if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023182 $as_echo_n "(cached) " >&6
23183else
cristy8b350f62009-11-15 23:12:43 +000023184 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 +000023185
cristy3ed852e2009-09-05 21:47:34 +000023186else
cristy8b350f62009-11-15 23:12:43 +000023187 if test "$ac_cv_type_unsigned_short" = yes; then
23188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023190as_fn_error 77 "cannot compute sizeof (unsigned short)
23191See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023192 else
23193 ac_cv_sizeof_unsigned_short=0
23194 fi
23195fi
cristy8b350f62009-11-15 23:12:43 +000023196
cristy3ed852e2009-09-05 21:47:34 +000023197fi
cristy8b350f62009-11-15 23:12:43 +000023198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023199$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23200
23201
23202
23203cat >>confdefs.h <<_ACEOF
23204#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23205_ACEOF
23206
23207
23208
23209# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23210# The cast to long int works around a bug in the HP C Compiler
23211# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23212# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23213# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023215$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023216if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023217 $as_echo_n "(cached) " >&6
23218else
cristy8b350f62009-11-15 23:12:43 +000023219 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 +000023220
cristy3ed852e2009-09-05 21:47:34 +000023221else
cristy8b350f62009-11-15 23:12:43 +000023222 if test "$ac_cv_type_signed_int" = yes; then
23223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023225as_fn_error 77 "cannot compute sizeof (signed int)
23226See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023227 else
23228 ac_cv_sizeof_signed_int=0
23229 fi
23230fi
cristy8b350f62009-11-15 23:12:43 +000023231
cristy3ed852e2009-09-05 21:47:34 +000023232fi
cristy8b350f62009-11-15 23:12:43 +000023233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023234$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23235
23236
23237
23238cat >>confdefs.h <<_ACEOF
23239#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23240_ACEOF
23241
23242
23243
23244# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23245# The cast to long int works around a bug in the HP C Compiler
23246# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23247# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23248# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023250$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023251if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023252 $as_echo_n "(cached) " >&6
23253else
cristy8b350f62009-11-15 23:12:43 +000023254 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 +000023255
cristy3ed852e2009-09-05 21:47:34 +000023256else
cristy8b350f62009-11-15 23:12:43 +000023257 if test "$ac_cv_type_unsigned_int" = yes; then
23258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023260as_fn_error 77 "cannot compute sizeof (unsigned int)
23261See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023262 else
23263 ac_cv_sizeof_unsigned_int=0
23264 fi
23265fi
cristy8b350f62009-11-15 23:12:43 +000023266
cristy3ed852e2009-09-05 21:47:34 +000023267fi
cristy8b350f62009-11-15 23:12:43 +000023268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023269$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23270
23271
23272
23273cat >>confdefs.h <<_ACEOF
23274#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23275_ACEOF
23276
23277
23278
23279# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23280# The cast to long int works around a bug in the HP C Compiler
23281# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23282# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23283# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023285$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023286if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023287 $as_echo_n "(cached) " >&6
23288else
cristy8b350f62009-11-15 23:12:43 +000023289 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023290
cristy3ed852e2009-09-05 21:47:34 +000023291else
cristy8b350f62009-11-15 23:12:43 +000023292 if test "$ac_cv_type_signed_long" = yes; then
23293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023295as_fn_error 77 "cannot compute sizeof (signed long)
23296See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023297 else
23298 ac_cv_sizeof_signed_long=0
23299 fi
23300fi
cristy8b350f62009-11-15 23:12:43 +000023301
cristy3ed852e2009-09-05 21:47:34 +000023302fi
cristy8b350f62009-11-15 23:12:43 +000023303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023304$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23305
23306
23307
23308cat >>confdefs.h <<_ACEOF
23309#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23310_ACEOF
23311
23312
23313
23314# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23315# The cast to long int works around a bug in the HP C Compiler
23316# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23317# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23318# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023320$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023321if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023322 $as_echo_n "(cached) " >&6
23323else
cristy8b350f62009-11-15 23:12:43 +000023324 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023325
cristy3ed852e2009-09-05 21:47:34 +000023326else
cristy8b350f62009-11-15 23:12:43 +000023327 if test "$ac_cv_type_unsigned_long" = yes; then
23328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023330as_fn_error 77 "cannot compute sizeof (unsigned long)
23331See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023332 else
23333 ac_cv_sizeof_unsigned_long=0
23334 fi
23335fi
cristy8b350f62009-11-15 23:12:43 +000023336
cristy3ed852e2009-09-05 21:47:34 +000023337fi
cristy8b350f62009-11-15 23:12:43 +000023338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023339$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23340
23341
23342
23343cat >>confdefs.h <<_ACEOF
23344#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23345_ACEOF
23346
23347
23348
23349# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23350# 'signed long long' is not supported then the value defined is zero.
23351# The cast to long int works around a bug in the HP C Compiler
23352# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23353# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23354# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023356$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023357if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023358 $as_echo_n "(cached) " >&6
23359else
cristy8b350f62009-11-15 23:12:43 +000023360 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 +000023361
cristy3ed852e2009-09-05 21:47:34 +000023362else
cristy8b350f62009-11-15 23:12:43 +000023363 if test "$ac_cv_type_signed_long_long" = yes; then
23364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023366as_fn_error 77 "cannot compute sizeof (signed long long)
23367See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023368 else
23369 ac_cv_sizeof_signed_long_long=0
23370 fi
23371fi
cristy8b350f62009-11-15 23:12:43 +000023372
cristy3ed852e2009-09-05 21:47:34 +000023373fi
cristy8b350f62009-11-15 23:12:43 +000023374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023375$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23376
23377
23378
23379cat >>confdefs.h <<_ACEOF
23380#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23381_ACEOF
23382
23383
23384
23385# Obtain size of a 'unsigned long long' and define as
23386# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23387# supported then the value defined is zero.
23388# The cast to long int works around a bug in the HP C Compiler
23389# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23390# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23391# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023393$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023394if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023395 $as_echo_n "(cached) " >&6
23396else
cristy8b350f62009-11-15 23:12:43 +000023397 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 +000023398
cristy3ed852e2009-09-05 21:47:34 +000023399else
cristy8b350f62009-11-15 23:12:43 +000023400 if test "$ac_cv_type_unsigned_long_long" = yes; then
23401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023403as_fn_error 77 "cannot compute sizeof (unsigned long long)
23404See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023405 else
23406 ac_cv_sizeof_unsigned_long_long=0
23407 fi
23408fi
cristy8b350f62009-11-15 23:12:43 +000023409
cristy3ed852e2009-09-05 21:47:34 +000023410fi
cristy8b350f62009-11-15 23:12:43 +000023411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023412$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23413
23414
23415
23416cat >>confdefs.h <<_ACEOF
23417#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23418_ACEOF
23419
23420
23421
23422# Obtain size of off_t and define as SIZEOF_OFF_T
23423# The cast to long int works around a bug in the HP C Compiler
23424# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23425# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23426# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023428$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023429if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023430 $as_echo_n "(cached) " >&6
23431else
cristy8b350f62009-11-15 23:12:43 +000023432 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 +000023433
cristy3ed852e2009-09-05 21:47:34 +000023434else
cristy8b350f62009-11-15 23:12:43 +000023435 if test "$ac_cv_type_off_t" = yes; then
23436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023438as_fn_error 77 "cannot compute sizeof (off_t)
23439See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023440 else
23441 ac_cv_sizeof_off_t=0
23442 fi
23443fi
cristy8b350f62009-11-15 23:12:43 +000023444
cristy3ed852e2009-09-05 21:47:34 +000023445fi
cristy8b350f62009-11-15 23:12:43 +000023446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023447$as_echo "$ac_cv_sizeof_off_t" >&6; }
23448
23449
23450
23451cat >>confdefs.h <<_ACEOF
23452#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23453_ACEOF
23454
23455
23456
23457# Obtain size of size_t and define as SIZEOF_SIZE_T
23458# The cast to long int works around a bug in the HP C Compiler
23459# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23460# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23461# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023463$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023464if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023465 $as_echo_n "(cached) " >&6
23466else
cristy8b350f62009-11-15 23:12:43 +000023467 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 +000023468
cristy3ed852e2009-09-05 21:47:34 +000023469else
cristy8b350f62009-11-15 23:12:43 +000023470 if test "$ac_cv_type_size_t" = yes; then
23471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023473as_fn_error 77 "cannot compute sizeof (size_t)
23474See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023475 else
23476 ac_cv_sizeof_size_t=0
23477 fi
23478fi
cristy8b350f62009-11-15 23:12:43 +000023479
cristy3ed852e2009-09-05 21:47:34 +000023480fi
cristy8b350f62009-11-15 23:12:43 +000023481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023482$as_echo "$ac_cv_sizeof_size_t" >&6; }
23483
23484
23485
23486cat >>confdefs.h <<_ACEOF
23487#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23488_ACEOF
23489
23490
23491
cristy330e9352010-06-01 18:42:49 +000023492# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23493# The cast to long int works around a bug in the HP C Compiler
23494# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23495# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23496# This bug is HP SR number 8606223364.
23497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23498$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023499if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023500 $as_echo_n "(cached) " >&6
23501else
23502 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23503
23504else
23505 if test "$ac_cv_type_ssize_t" = yes; then
23506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023508as_fn_error 77 "cannot compute sizeof (ssize_t)
23509See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023510 else
23511 ac_cv_sizeof_ssize_t=0
23512 fi
23513fi
23514
23515fi
23516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23517$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23518
23519
23520
23521cat >>confdefs.h <<_ACEOF
23522#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23523_ACEOF
23524
23525
23526
cristy3ed852e2009-09-05 21:47:34 +000023527# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23528# The cast to long int works around a bug in the HP C Compiler
23529# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23530# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23531# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023533$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023534if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023535 $as_echo_n "(cached) " >&6
23536else
cristy8b350f62009-11-15 23:12:43 +000023537 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023538
cristy3ed852e2009-09-05 21:47:34 +000023539else
cristy8b350f62009-11-15 23:12:43 +000023540 if test "$ac_cv_type_unsigned_intp" = yes; then
23541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023543as_fn_error 77 "cannot compute sizeof (unsigned int*)
23544See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023545 else
23546 ac_cv_sizeof_unsigned_intp=0
23547 fi
23548fi
cristy8b350f62009-11-15 23:12:43 +000023549
cristy3ed852e2009-09-05 21:47:34 +000023550fi
cristy8b350f62009-11-15 23:12:43 +000023551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023552$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23553
23554
23555
23556cat >>confdefs.h <<_ACEOF
23557#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23558_ACEOF
23559
23560
23561
23562#
23563# Compute sized types for current CPU and compiler options.
23564#
23565
cristy8b350f62009-11-15 23:12:43 +000023566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023567$as_echo_n "checking for signed 8-bit type... " >&6; }
23568INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000023569{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23570$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023571
23572
cristy8b350f62009-11-15 23:12:43 +000023573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023574$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23575UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000023576{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23577$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023578
23579
cristy8b350f62009-11-15 23:12:43 +000023580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023581$as_echo_n "checking for signed 16-bit type... " >&6; }
23582INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000023583{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23584$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023585
23586
cristy8b350f62009-11-15 23:12:43 +000023587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023588$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23589UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000023590{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23591$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023592
23593
cristy8b350f62009-11-15 23:12:43 +000023594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023595$as_echo_n "checking for signed 32-bit type... " >&6; }
23596INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023597INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023598if test $ac_cv_sizeof_signed_int -eq 4; then
23599 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023600 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023601elif test $ac_cv_sizeof_signed_long -eq 4; then
23602 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023603 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023604fi
cristy09b53e12011-10-14 12:47:22 +000023605{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23606$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023607
23608
cristy6d5e20f2011-04-25 13:48:54 +000023609
cristy8b350f62009-11-15 23:12:43 +000023610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023611$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23612UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023613UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023614if test $ac_cv_sizeof_unsigned_int -eq 4; then
23615 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023616 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023617elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23618 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023619 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023620fi
cristy09b53e12011-10-14 12:47:22 +000023621{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23622$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023623
23624
cristy6d5e20f2011-04-25 13:48:54 +000023625
cristy8b350f62009-11-15 23:12:43 +000023626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023627$as_echo_n "checking for signed 64-bit type... " >&6; }
23628INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023629INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023630if test $ac_cv_sizeof_signed_long -eq 8; then
23631 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023632 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023633elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23634 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023635 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023636fi
cristy3a99dcf2011-12-17 01:29:40 +000023637case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023638 mingw* )
23639 INT64_F='"I64"'
23640 ;;
23641esac
cristy09b53e12011-10-14 12:47:22 +000023642{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23643$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023644
23645
cristy6d5e20f2011-04-25 13:48:54 +000023646
cristy8b350f62009-11-15 23:12:43 +000023647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023648$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23649UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023650UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023651if test $ac_cv_sizeof_unsigned_long -eq 8; then
23652 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023653 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023654elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23655 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023656 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023657fi
cristy3a99dcf2011-12-17 01:29:40 +000023658case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023659 mingw* )
23660 UINT64_F='"I64"'
23661 ;;
23662esac
cristy09b53e12011-10-14 12:47:22 +000023663{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23664$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023665
23666
cristy6d5e20f2011-04-25 13:48:54 +000023667
cristy8b350f62009-11-15 23:12:43 +000023668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023669$as_echo_n "checking for unsigned maximum type... " >&6; }
23670UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023671UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023672if test "$UINT64_T" != 'none'; then
23673 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023674 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023675elif test "$UINT32_T" != 'none'; then
23676 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023677 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023678fi
cristy09b53e12011-10-14 12:47:22 +000023679{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23680$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023681
23682
cristy6d5e20f2011-04-25 13:48:54 +000023683
cristy8b350f62009-11-15 23:12:43 +000023684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023685$as_echo_n "checking for pointer difference type... " >&6; }
23686UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023687UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023688if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23689 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023690 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023691elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23692 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023693 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023694fi
cristy09b53e12011-10-14 12:47:22 +000023695{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23696$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023697
23698
cristy6d5e20f2011-04-25 13:48:54 +000023699
cristy8b350f62009-11-15 23:12:43 +000023700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023701$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023703/* end confdefs.h. */
23704
23705int
23706main ()
23707{
23708{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23709 ;
23710 return 0;
23711}
23712_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023713if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023714 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23715$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023716else
cristy09b53e12011-10-14 12:47:22 +000023717 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23718$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000023719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023720$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023722/* end confdefs.h. */
23723
23724int
23725main ()
23726{
23727{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23728 ;
23729 return 0;
23730}
23731_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023732if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023733 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23734$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023735
cristy8b350f62009-11-15 23:12:43 +000023736$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023737
23738else
cristy09b53e12011-10-14 12:47:22 +000023739 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23740$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023741
cristy8b350f62009-11-15 23:12:43 +000023742$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023743
23744fi
cristy3ed852e2009-09-05 21:47:34 +000023745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23746fi
cristy3ed852e2009-09-05 21:47:34 +000023747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23748
23749########
23750#
23751# Check for functions
23752#
23753########
cristy73bd4a52010-10-05 11:24:23 +000023754for ac_header in stdlib.h unistd.h
23755do :
23756 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23757ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023758if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023759 cat >>confdefs.h <<_ACEOF
23760#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23761_ACEOF
23762
23763fi
23764
23765done
23766
23767for ac_func in getpagesize
23768do :
23769 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023770if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023771 cat >>confdefs.h <<_ACEOF
23772#define HAVE_GETPAGESIZE 1
23773_ACEOF
23774
23775fi
23776done
23777
23778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23779$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023780if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023781 $as_echo_n "(cached) " >&6
23782else
23783 if test "$cross_compiling" = yes; then :
23784 magick_cv_func_mmap_fileio=no
23785else
23786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23787/* end confdefs.h. */
23788$ac_includes_default
23789/* malloc might have been renamed as rpl_malloc. */
23790#undef malloc
23791
23792/*
23793 This test is derived from GNU Autoconf's similar macro.
23794 The purpose of this test is to verify that files may be memory
23795 mapped, and that memory mapping and file I/O are coherent.
23796
23797 The test creates a test file, memory maps the file, updates
23798 the file using the memory map, and then reads the file using
23799 file I/O to verify that the file contains the updates.
23800*/
23801
23802#include <fcntl.h>
23803#include <sys/mman.h>
23804
23805#if !STDC_HEADERS && !HAVE_STDLIB_H
23806char *malloc ();
23807#endif
23808
23809/* This mess was copied from the GNU getpagesize.h. */
23810#if !HAVE_GETPAGESIZE
23811/* Assume that all systems that can run configure have sys/param.h. */
23812# if !HAVE_SYS_PARAM_H
23813# define HAVE_SYS_PARAM_H 1
23814# endif
23815
23816# ifdef _SC_PAGESIZE
23817# define getpagesize() sysconf(_SC_PAGESIZE)
23818# else /* no _SC_PAGESIZE */
23819# if HAVE_SYS_PARAM_H
23820# include <sys/param.h>
23821# ifdef EXEC_PAGESIZE
23822# define getpagesize() EXEC_PAGESIZE
23823# else /* no EXEC_PAGESIZE */
23824# ifdef NBPG
23825# define getpagesize() NBPG * CLSIZE
23826# ifndef CLSIZE
23827# define CLSIZE 1
23828# endif /* no CLSIZE */
23829# else /* no NBPG */
23830# ifdef NBPC
23831# define getpagesize() NBPC
23832# else /* no NBPC */
23833# ifdef PAGESIZE
23834# define getpagesize() PAGESIZE
23835# endif /* PAGESIZE */
23836# endif /* no NBPC */
23837# endif /* no NBPG */
23838# endif /* no EXEC_PAGESIZE */
23839# else /* no HAVE_SYS_PARAM_H */
23840# define getpagesize() 8192 /* punt totally */
23841# endif /* no HAVE_SYS_PARAM_H */
23842# endif /* no _SC_PAGESIZE */
23843
23844#endif /* no HAVE_GETPAGESIZE */
23845
23846int
23847main ()
23848{
23849 char *data, *data2, *data3;
23850 int i, pagesize;
23851 int fd;
23852
23853 pagesize = getpagesize ();
23854
23855 /* First, make a file with some known garbage in it. */
23856 data = (char *) malloc (pagesize);
23857 if (!data)
23858 exit (1);
23859 for (i = 0; i < pagesize; ++i)
23860 *(data + i) = rand ();
23861 umask (0);
23862 fd = creat ("conftest.mmap", 0600);
23863 if (fd < 0)
23864 exit (1);
23865 if (write (fd, data, pagesize) != pagesize)
23866 exit (1);
23867 close (fd);
23868
23869 /* Mmap the file as read/write/shared and verify that we see the
23870 same garbage. */
23871 fd = open ("conftest.mmap", O_RDWR);
23872 if (fd < 0)
23873 exit (1);
23874 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23875 if (data2 == 0)
23876 exit (1);
23877 for (i = 0; i < pagesize; ++i)
23878 if (*(data + i) != *(data2 + i))
23879 exit (1);
23880
23881 /* Finally, make sure that changes to the mapped area
23882 percolate back to the file as seen by read(). */
23883 for (i = 0; i < pagesize; ++i)
23884 *(data2 + i) = *(data2 + i) + 1;
23885 data3 = (char *) malloc (pagesize);
23886 if (!data3)
23887 exit (1);
23888 if (read (fd, data3, pagesize) != pagesize)
23889 exit (1);
23890 for (i = 0; i < pagesize; ++i)
23891 if (*(data2 + i) != *(data3 + i))
23892 exit (1);
23893 close (fd);
23894 exit (0);
23895}
23896_ACEOF
23897if ac_fn_c_try_run "$LINENO"; then :
23898 magick_cv_func_mmap_fileio=yes
23899else
23900 magick_cv_func_mmap_fileio=no
23901fi
23902rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23903 conftest.$ac_objext conftest.beam conftest.$ac_ext
23904fi
23905
23906fi
23907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23908$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23909if test $magick_cv_func_mmap_fileio = yes; then
23910
23911$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23912
23913fi
23914rm -f conftest.mmap
23915
cristy8b350f62009-11-15 23:12:43 +000023916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023917$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023918if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023919 $as_echo_n "(cached) " >&6
23920else
cristy8b350f62009-11-15 23:12:43 +000023921 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023922 ac_cv_func_closedir_void=yes
23923else
cristy8b350f62009-11-15 23:12:43 +000023924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023925/* end confdefs.h. */
23926$ac_includes_default
23927#include <$ac_header_dirent>
23928#ifndef __cplusplus
23929int closedir ();
23930#endif
23931
23932int
23933main ()
23934{
23935return closedir (opendir (".")) != 0;
23936 ;
23937 return 0;
23938}
23939_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023940if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023941 ac_cv_func_closedir_void=no
23942else
cristy8b350f62009-11-15 23:12:43 +000023943 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023944fi
cristy8b350f62009-11-15 23:12:43 +000023945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23946 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023947fi
23948
cristy3ed852e2009-09-05 21:47:34 +000023949fi
cristy8b350f62009-11-15 23:12:43 +000023950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023951$as_echo "$ac_cv_func_closedir_void" >&6; }
23952if test $ac_cv_func_closedir_void = yes; then
23953
cristy8b350f62009-11-15 23:12:43 +000023954$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023955
23956fi
23957
cristycd4c5312009-11-22 01:19:08 +000023958
23959
23960
23961 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023962do :
23963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023964ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23965"
cristy98dddb52010-11-04 00:30:15 +000023966if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023967 cat >>confdefs.h <<_ACEOF
23968#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23969_ACEOF
23970
23971fi
23972
23973done
23974
cristycd4c5312009-11-22 01:19:08 +000023975
23976
23977
23978
23979
23980
23981
cristy3ed852e2009-09-05 21:47:34 +000023982for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023983do :
23984 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023985if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023986 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023987#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023988_ACEOF
23989
23990fi
23991done
23992
cristy8b350f62009-11-15 23:12:43 +000023993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023994$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023995if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023996 $as_echo_n "(cached) " >&6
23997else
cristy8b350f62009-11-15 23:12:43 +000023998 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023999 ac_cv_func_mmap_fixed_mapped=no
24000else
cristy8b350f62009-11-15 23:12:43 +000024001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024002/* end confdefs.h. */
24003$ac_includes_default
24004/* malloc might have been renamed as rpl_malloc. */
24005#undef malloc
24006
24007/* Thanks to Mike Haertel and Jim Avera for this test.
24008 Here is a matrix of mmap possibilities:
24009 mmap private not fixed
24010 mmap private fixed at somewhere currently unmapped
24011 mmap private fixed at somewhere already mapped
24012 mmap shared not fixed
24013 mmap shared fixed at somewhere currently unmapped
24014 mmap shared fixed at somewhere already mapped
24015 For private mappings, we should verify that changes cannot be read()
24016 back from the file, nor mmap's back from the file at a different
24017 address. (There have been systems where private was not correctly
24018 implemented like the infamous i386 svr4.0, and systems where the
24019 VM page cache was not coherent with the file system buffer cache
24020 like early versions of FreeBSD and possibly contemporary NetBSD.)
24021 For shared mappings, we should conversely verify that changes get
24022 propagated back to all the places they're supposed to be.
24023
24024 Grep wants private fixed already mapped.
24025 The main things grep needs to know about mmap are:
24026 * does it exist and is it safe to write into the mmap'd area
24027 * how to use it (BSD variants) */
24028
24029#include <fcntl.h>
24030#include <sys/mman.h>
24031
24032#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24033char *malloc ();
24034#endif
24035
24036/* This mess was copied from the GNU getpagesize.h. */
24037#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024038# ifdef _SC_PAGESIZE
24039# define getpagesize() sysconf(_SC_PAGESIZE)
24040# else /* no _SC_PAGESIZE */
24041# ifdef HAVE_SYS_PARAM_H
24042# include <sys/param.h>
24043# ifdef EXEC_PAGESIZE
24044# define getpagesize() EXEC_PAGESIZE
24045# else /* no EXEC_PAGESIZE */
24046# ifdef NBPG
24047# define getpagesize() NBPG * CLSIZE
24048# ifndef CLSIZE
24049# define CLSIZE 1
24050# endif /* no CLSIZE */
24051# else /* no NBPG */
24052# ifdef NBPC
24053# define getpagesize() NBPC
24054# else /* no NBPC */
24055# ifdef PAGESIZE
24056# define getpagesize() PAGESIZE
24057# endif /* PAGESIZE */
24058# endif /* no NBPC */
24059# endif /* no NBPG */
24060# endif /* no EXEC_PAGESIZE */
24061# else /* no HAVE_SYS_PARAM_H */
24062# define getpagesize() 8192 /* punt totally */
24063# endif /* no HAVE_SYS_PARAM_H */
24064# endif /* no _SC_PAGESIZE */
24065
24066#endif /* no HAVE_GETPAGESIZE */
24067
24068int
24069main ()
24070{
24071 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024072 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024073 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024074 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024075
24076 pagesize = getpagesize ();
24077
24078 /* First, make a file with some known garbage in it. */
24079 data = (char *) malloc (pagesize);
24080 if (!data)
24081 return 1;
24082 for (i = 0; i < pagesize; ++i)
24083 *(data + i) = rand ();
24084 umask (0);
24085 fd = creat ("conftest.mmap", 0600);
24086 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024087 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024088 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024089 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024090 close (fd);
24091
cristycd4c5312009-11-22 01:19:08 +000024092 /* Next, check that the tail of a page is zero-filled. File must have
24093 non-zero length, otherwise we risk SIGBUS for entire page. */
24094 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24095 if (fd2 < 0)
24096 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024097 cdata2 = "";
24098 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024099 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024100 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024101 if (data2 == MAP_FAILED)
24102 return 6;
24103 for (i = 0; i < pagesize; ++i)
24104 if (*(data2 + i))
24105 return 7;
24106 close (fd2);
24107 if (munmap (data2, pagesize))
24108 return 8;
24109
cristy3ed852e2009-09-05 21:47:34 +000024110 /* Next, try to mmap the file at a fixed address which already has
24111 something else allocated at it. If we can, also make sure that
24112 we see the same garbage. */
24113 fd = open ("conftest.mmap", O_RDWR);
24114 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024115 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024116 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24117 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024118 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024119 for (i = 0; i < pagesize; ++i)
24120 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024121 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024122
24123 /* Finally, make sure that changes to the mapped area do not
24124 percolate back to the file as seen by read(). (This is a bug on
24125 some variants of i386 svr4.0.) */
24126 for (i = 0; i < pagesize; ++i)
24127 *(data2 + i) = *(data2 + i) + 1;
24128 data3 = (char *) malloc (pagesize);
24129 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024130 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024131 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024132 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024133 for (i = 0; i < pagesize; ++i)
24134 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024135 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024136 close (fd);
24137 return 0;
24138}
24139_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024140if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024141 ac_cv_func_mmap_fixed_mapped=yes
24142else
cristy8b350f62009-11-15 23:12:43 +000024143 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024144fi
cristy8b350f62009-11-15 23:12:43 +000024145rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24146 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024147fi
24148
cristy3ed852e2009-09-05 21:47:34 +000024149fi
cristy8b350f62009-11-15 23:12:43 +000024150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024151$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24152if test $ac_cv_func_mmap_fixed_mapped = yes; then
24153
cristy8b350f62009-11-15 23:12:43 +000024154$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024155
24156fi
cristycd4c5312009-11-22 01:19:08 +000024157rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024158
cristy3ed852e2009-09-05 21:47:34 +000024159for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024160do :
24161 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024162if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024163 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024164#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024165_ACEOF
24166
24167fi
24168
24169done
24170
cristy3ed852e2009-09-05 21:47:34 +000024171for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024172do :
24173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24174ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024175if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024176 cat >>confdefs.h <<_ACEOF
24177#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24178_ACEOF
24179
24180fi
24181done
24182
24183if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024185$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024186if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024187 $as_echo_n "(cached) " >&6
24188else
cristy8b350f62009-11-15 23:12:43 +000024189 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024190 ac_cv_func_fork_works=cross
24191else
cristy8b350f62009-11-15 23:12:43 +000024192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024193/* end confdefs.h. */
24194$ac_includes_default
24195int
24196main ()
24197{
24198
24199 /* By Ruediger Kuhlmann. */
24200 return fork () < 0;
24201
24202 ;
24203 return 0;
24204}
24205_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024206if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024207 ac_cv_func_fork_works=yes
24208else
cristy8b350f62009-11-15 23:12:43 +000024209 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024210fi
cristy8b350f62009-11-15 23:12:43 +000024211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24212 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024213fi
24214
cristy3ed852e2009-09-05 21:47:34 +000024215fi
cristy8b350f62009-11-15 23:12:43 +000024216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024217$as_echo "$ac_cv_func_fork_works" >&6; }
24218
24219else
24220 ac_cv_func_fork_works=$ac_cv_func_fork
24221fi
24222if test "x$ac_cv_func_fork_works" = xcross; then
24223 case $host in
24224 *-*-amigaos* | *-*-msdosdjgpp*)
24225 # Override, as these systems have only a dummy fork() stub
24226 ac_cv_func_fork_works=no
24227 ;;
24228 *)
24229 ac_cv_func_fork_works=yes
24230 ;;
24231 esac
cristy8b350f62009-11-15 23:12:43 +000024232 { $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 +000024233$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24234fi
24235ac_cv_func_vfork_works=$ac_cv_func_vfork
24236if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024238$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024239if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024240 $as_echo_n "(cached) " >&6
24241else
cristy8b350f62009-11-15 23:12:43 +000024242 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024243 ac_cv_func_vfork_works=cross
24244else
cristy8b350f62009-11-15 23:12:43 +000024245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024246/* end confdefs.h. */
24247/* Thanks to Paul Eggert for this test. */
24248$ac_includes_default
24249#include <sys/wait.h>
24250#ifdef HAVE_VFORK_H
24251# include <vfork.h>
24252#endif
24253/* On some sparc systems, changes by the child to local and incoming
24254 argument registers are propagated back to the parent. The compiler
24255 is told about this with #include <vfork.h>, but some compilers
24256 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24257 static variable whose address is put into a register that is
24258 clobbered by the vfork. */
24259static void
24260#ifdef __cplusplus
24261sparc_address_test (int arg)
24262# else
24263sparc_address_test (arg) int arg;
24264#endif
24265{
24266 static pid_t child;
24267 if (!child) {
24268 child = vfork ();
24269 if (child < 0) {
24270 perror ("vfork");
24271 _exit(2);
24272 }
24273 if (!child) {
24274 arg = getpid();
24275 write(-1, "", 0);
24276 _exit (arg);
24277 }
24278 }
24279}
24280
24281int
24282main ()
24283{
24284 pid_t parent = getpid ();
24285 pid_t child;
24286
24287 sparc_address_test (0);
24288
24289 child = vfork ();
24290
24291 if (child == 0) {
24292 /* Here is another test for sparc vfork register problems. This
24293 test uses lots of local variables, at least as many local
24294 variables as main has allocated so far including compiler
24295 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24296 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24297 reuse the register of parent for one of the local variables,
24298 since it will think that parent can't possibly be used any more
24299 in this routine. Assigning to the local variable will thus
24300 munge parent in the parent process. */
24301 pid_t
24302 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24303 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24304 /* Convince the compiler that p..p7 are live; otherwise, it might
24305 use the same hardware register for all 8 local variables. */
24306 if (p != p1 || p != p2 || p != p3 || p != p4
24307 || p != p5 || p != p6 || p != p7)
24308 _exit(1);
24309
24310 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24311 from child file descriptors. If the child closes a descriptor
24312 before it execs or exits, this munges the parent's descriptor
24313 as well. Test for this by closing stdout in the child. */
24314 _exit(close(fileno(stdout)) != 0);
24315 } else {
24316 int status;
24317 struct stat st;
24318
24319 while (wait(&status) != child)
24320 ;
24321 return (
24322 /* Was there some problem with vforking? */
24323 child < 0
24324
24325 /* Did the child fail? (This shouldn't happen.) */
24326 || status
24327
24328 /* Did the vfork/compiler bug occur? */
24329 || parent != getpid()
24330
24331 /* Did the file descriptor bug occur? */
24332 || fstat(fileno(stdout), &st) != 0
24333 );
24334 }
24335}
24336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024337if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024338 ac_cv_func_vfork_works=yes
24339else
cristy8b350f62009-11-15 23:12:43 +000024340 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024341fi
cristy8b350f62009-11-15 23:12:43 +000024342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24343 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024344fi
24345
cristy3ed852e2009-09-05 21:47:34 +000024346fi
cristy8b350f62009-11-15 23:12:43 +000024347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024348$as_echo "$ac_cv_func_vfork_works" >&6; }
24349
24350fi;
24351if test "x$ac_cv_func_fork_works" = xcross; then
24352 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024353 { $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 +000024354$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24355fi
24356
24357if test "x$ac_cv_func_vfork_works" = xyes; then
24358
cristy8b350f62009-11-15 23:12:43 +000024359$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024360
24361else
24362
cristy8b350f62009-11-15 23:12:43 +000024363$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024364
24365fi
24366if test "x$ac_cv_func_fork_works" = xyes; then
24367
cristy8b350f62009-11-15 23:12:43 +000024368$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024369
24370fi
24371
cristy8b350f62009-11-15 23:12:43 +000024372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024373$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024374if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024375 $as_echo_n "(cached) " >&6
24376else
cristy8b350f62009-11-15 23:12:43 +000024377 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024378 ac_cv_func_memcmp_working=no
24379else
cristy8b350f62009-11-15 23:12:43 +000024380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024381/* end confdefs.h. */
24382$ac_includes_default
24383int
24384main ()
24385{
24386
24387 /* Some versions of memcmp are not 8-bit clean. */
24388 char c0 = '\100', c1 = '\200', c2 = '\201';
24389 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24390 return 1;
24391
24392 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24393 or more and with at least one buffer not starting on a 4-byte boundary.
24394 William Lewis provided this test program. */
24395 {
24396 char foo[21];
24397 char bar[21];
24398 int i;
24399 for (i = 0; i < 4; i++)
24400 {
24401 char *a = foo + i;
24402 char *b = bar + i;
24403 strcpy (a, "--------01111111");
24404 strcpy (b, "--------10000000");
24405 if (memcmp (a, b, 16) >= 0)
24406 return 1;
24407 }
24408 return 0;
24409 }
24410
24411 ;
24412 return 0;
24413}
24414_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024415if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024416 ac_cv_func_memcmp_working=yes
24417else
cristy8b350f62009-11-15 23:12:43 +000024418 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024419fi
cristy8b350f62009-11-15 23:12:43 +000024420rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24421 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024422fi
24423
cristy3ed852e2009-09-05 21:47:34 +000024424fi
cristy8b350f62009-11-15 23:12:43 +000024425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024426$as_echo "$ac_cv_func_memcmp_working" >&6; }
24427test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24428 *" memcmp.$ac_objext "* ) ;;
24429 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24430 ;;
24431esac
24432
24433
cristy3ed852e2009-09-05 21:47:34 +000024434for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024435do :
24436 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24437ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024438if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024439 cat >>confdefs.h <<_ACEOF
24440#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24441_ACEOF
24442
24443fi
24444
24445done
24446
cristy8b350f62009-11-15 23:12:43 +000024447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024448$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024449if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024450 $as_echo_n "(cached) " >&6
24451else
24452 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24453 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24454 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024456/* end confdefs.h. */
24457$ac_includes_default
24458#ifdef HAVE_SYS_SELECT_H
24459# include <sys/select.h>
24460#endif
24461#ifdef HAVE_SYS_SOCKET_H
24462# include <sys/socket.h>
24463#endif
24464
24465int
24466main ()
24467{
24468extern int select ($ac_arg1,
24469 $ac_arg234, $ac_arg234, $ac_arg234,
24470 $ac_arg5);
24471 ;
24472 return 0;
24473}
24474_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024475if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024476 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024477fi
cristy3ed852e2009-09-05 21:47:34 +000024478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24479 done
24480 done
24481done
24482# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024483: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024484
24485fi
cristy8b350f62009-11-15 23:12:43 +000024486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024487$as_echo "$ac_cv_func_select_args" >&6; }
24488ac_save_IFS=$IFS; IFS=','
24489set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24490IFS=$ac_save_IFS
24491shift
24492
24493cat >>confdefs.h <<_ACEOF
24494#define SELECT_TYPE_ARG1 $1
24495_ACEOF
24496
24497
24498cat >>confdefs.h <<_ACEOF
24499#define SELECT_TYPE_ARG234 ($2)
24500_ACEOF
24501
24502
24503cat >>confdefs.h <<_ACEOF
24504#define SELECT_TYPE_ARG5 ($3)
24505_ACEOF
24506
24507rm -f conftest*
24508
cristyda16f162011-02-19 23:52:17 +000024509if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024510 $as_echo_n "(cached) " >&6
24511else
24512 ac_cv_func_setvbuf_reversed=no
24513fi
24514
24515
cristy8b350f62009-11-15 23:12:43 +000024516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024517$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024518if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024519 $as_echo_n "(cached) " >&6
24520else
cristy8b350f62009-11-15 23:12:43 +000024521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024522/* end confdefs.h. */
24523#include <sys/types.h>
24524#include <signal.h>
24525
24526int
24527main ()
24528{
24529return *(signal (0, 0)) (0) == 1;
24530 ;
24531 return 0;
24532}
24533_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024534if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024535 ac_cv_type_signal=int
24536else
cristy8b350f62009-11-15 23:12:43 +000024537 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024538fi
cristy3ed852e2009-09-05 21:47:34 +000024539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24540fi
cristy8b350f62009-11-15 23:12:43 +000024541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024542$as_echo "$ac_cv_type_signal" >&6; }
24543
24544cat >>confdefs.h <<_ACEOF
24545#define RETSIGTYPE $ac_cv_type_signal
24546_ACEOF
24547
24548
cristy8b350f62009-11-15 23:12:43 +000024549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024550$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024551if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024552 $as_echo_n "(cached) " >&6
24553else
cristy8b350f62009-11-15 23:12:43 +000024554 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024555 ac_cv_func_strtod=no
24556else
cristy8b350f62009-11-15 23:12:43 +000024557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024558/* end confdefs.h. */
24559
24560$ac_includes_default
24561#ifndef strtod
24562double strtod ();
24563#endif
24564int
24565main()
24566{
24567 {
24568 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24569 char *string = " +69";
24570 char *term;
24571 double value;
24572 value = strtod (string, &term);
24573 if (value != 69 || term != (string + 4))
24574 return 1;
24575 }
24576
24577 {
24578 /* Under Solaris 2.4, strtod returns the wrong value for the
24579 terminating character under some conditions. */
24580 char *string = "NaN";
24581 char *term;
24582 strtod (string, &term);
24583 if (term != string && *(term - 1) == 0)
24584 return 1;
24585 }
24586 return 0;
24587}
24588
24589_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024590if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024591 ac_cv_func_strtod=yes
24592else
cristy8b350f62009-11-15 23:12:43 +000024593 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024594fi
cristy8b350f62009-11-15 23:12:43 +000024595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24596 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024597fi
24598
cristy3ed852e2009-09-05 21:47:34 +000024599fi
cristy8b350f62009-11-15 23:12:43 +000024600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024601$as_echo "$ac_cv_func_strtod" >&6; }
24602if test $ac_cv_func_strtod = no; then
24603 case " $LIBOBJS " in
24604 *" strtod.$ac_objext "* ) ;;
24605 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24606 ;;
24607esac
24608
cristy8b350f62009-11-15 23:12:43 +000024609ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024610if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024611
cristy3ed852e2009-09-05 21:47:34 +000024612fi
24613
cristy3ed852e2009-09-05 21:47:34 +000024614if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024616$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024617if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024618 $as_echo_n "(cached) " >&6
24619else
24620 ac_check_lib_save_LIBS=$LIBS
24621LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024623/* end confdefs.h. */
24624
24625/* Override any GCC internal prototype to avoid an error.
24626 Use char because int might match the return type of a GCC
24627 builtin and then its argument prototype would still apply. */
24628#ifdef __cplusplus
24629extern "C"
24630#endif
24631char pow ();
24632int
24633main ()
24634{
24635return pow ();
24636 ;
24637 return 0;
24638}
24639_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024640if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024641 ac_cv_lib_m_pow=yes
24642else
cristy8b350f62009-11-15 23:12:43 +000024643 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024644fi
cristy8b350f62009-11-15 23:12:43 +000024645rm -f core conftest.err conftest.$ac_objext \
24646 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024647LIBS=$ac_check_lib_save_LIBS
24648fi
cristy8b350f62009-11-15 23:12:43 +000024649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024650$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024651if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024652 POW_LIB=-lm
24653else
cristy8b350f62009-11-15 23:12:43 +000024654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024655$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24656fi
24657
24658fi
24659
24660fi
24661
cristy7d4a1d62011-10-13 15:54:12 +000024662ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24663if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24664 ac_have_decl=1
24665else
24666 ac_have_decl=0
24667fi
24668
24669cat >>confdefs.h <<_ACEOF
24670#define HAVE_DECL_STRERROR_R $ac_have_decl
24671_ACEOF
24672
24673for ac_func in strerror_r
24674do :
24675 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24676if test "x$ac_cv_func_strerror_r" = xyes; then :
24677 cat >>confdefs.h <<_ACEOF
24678#define HAVE_STRERROR_R 1
24679_ACEOF
24680
24681fi
24682done
24683
24684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24685$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24686if ${ac_cv_func_strerror_r_char_p+:} false; then :
24687 $as_echo_n "(cached) " >&6
24688else
24689
24690 ac_cv_func_strerror_r_char_p=no
24691 if test $ac_cv_have_decl_strerror_r = yes; then
24692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24693/* end confdefs.h. */
24694$ac_includes_default
24695int
24696main ()
24697{
24698
24699 char buf[100];
24700 char x = *strerror_r (0, buf, sizeof buf);
24701 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024702 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024703
24704 ;
24705 return 0;
24706}
24707_ACEOF
24708if ac_fn_c_try_compile "$LINENO"; then :
24709 ac_cv_func_strerror_r_char_p=yes
24710fi
24711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24712 else
24713 # strerror_r is not declared. Choose between
24714 # systems that have relatively inaccessible declarations for the
24715 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24716 # former has a strerror_r that returns char*, while the latter
24717 # has a strerror_r that returns `int'.
24718 # This test should segfault on the DEC system.
24719 if test "$cross_compiling" = yes; then :
24720 :
24721else
24722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24723/* end confdefs.h. */
24724$ac_includes_default
24725 extern char *strerror_r ();
24726int
24727main ()
24728{
24729char buf[100];
24730 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024731 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024732 ;
24733 return 0;
24734}
24735_ACEOF
24736if ac_fn_c_try_run "$LINENO"; then :
24737 ac_cv_func_strerror_r_char_p=yes
24738fi
24739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24740 conftest.$ac_objext conftest.beam conftest.$ac_ext
24741fi
24742
24743 fi
24744
24745fi
24746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24747$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24748if test $ac_cv_func_strerror_r_char_p = yes; then
24749
24750$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24751
24752fi
24753
cristy3ed852e2009-09-05 21:47:34 +000024754for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024755do :
24756 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024757if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024758 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024759#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024760_ACEOF
24761
cristy8b350f62009-11-15 23:12:43 +000024762ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024763if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024764
cristy8b350f62009-11-15 23:12:43 +000024765$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024766
24767fi
24768
24769fi
24770done
24771
24772
24773
cristy161b9262010-03-20 19:34:32 +000024774#
24775# Find math library
24776#
24777MATH_LIBS=''
24778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24779$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024780if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024781 $as_echo_n "(cached) " >&6
24782else
24783 ac_check_lib_save_LIBS=$LIBS
24784LIBS="-lm $LIBS"
24785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24786/* end confdefs.h. */
24787
24788/* Override any GCC internal prototype to avoid an error.
24789 Use char because int might match the return type of a GCC
24790 builtin and then its argument prototype would still apply. */
24791#ifdef __cplusplus
24792extern "C"
24793#endif
24794char sqrt ();
24795int
24796main ()
24797{
24798return sqrt ();
24799 ;
24800 return 0;
24801}
24802_ACEOF
24803if ac_fn_c_try_link "$LINENO"; then :
24804 ac_cv_lib_m_sqrt=yes
24805else
24806 ac_cv_lib_m_sqrt=no
24807fi
24808rm -f core conftest.err conftest.$ac_objext \
24809 conftest$ac_exeext conftest.$ac_ext
24810LIBS=$ac_check_lib_save_LIBS
24811fi
24812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24813$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024814if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024815 MATH_LIBS="-lm"
24816fi
24817
24818LIBS="$MATH_LIBS $LIBS"
24819
24820
cristy568c2d42012-07-27 01:41:20 +000024821for 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 +000024822do :
24823 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24824ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024825if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024826 cat >>confdefs.h <<_ACEOF
24827#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24828_ACEOF
24829
24830fi
24831done
24832
24833
cristye43a45e2009-09-28 14:49:00 +000024834#
24835# Check for clock_gettime().
24836#
cristy8b350f62009-11-15 23:12:43 +000024837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024838$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024839if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024840 $as_echo_n "(cached) " >&6
24841else
24842 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024844/* end confdefs.h. */
24845
24846/* Override any GCC internal prototype to avoid an error.
24847 Use char because int might match the return type of a GCC
24848 builtin and then its argument prototype would still apply. */
24849#ifdef __cplusplus
24850extern "C"
24851#endif
24852char clock_gettime ();
24853int
24854main ()
24855{
24856return clock_gettime ();
24857 ;
24858 return 0;
24859}
24860_ACEOF
24861for ac_lib in '' rt; do
24862 if test -z "$ac_lib"; then
24863 ac_res="none required"
24864 else
24865 ac_res=-l$ac_lib
24866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24867 fi
cristy8b350f62009-11-15 23:12:43 +000024868 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024869 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024870fi
cristy8b350f62009-11-15 23:12:43 +000024871rm -f core conftest.err conftest.$ac_objext \
24872 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024873 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024874 break
24875fi
24876done
cristyda16f162011-02-19 23:52:17 +000024877if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024878
cristye43a45e2009-09-28 14:49:00 +000024879else
24880 ac_cv_search_clock_gettime=no
24881fi
24882rm conftest.$ac_ext
24883LIBS=$ac_func_search_save_LIBS
24884fi
cristy8b350f62009-11-15 23:12:43 +000024885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024886$as_echo "$ac_cv_search_clock_gettime" >&6; }
24887ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024888if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24890
24891
cristy8b350f62009-11-15 23:12:43 +000024892$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024893
cristy8b350f62009-11-15 23:12:43 +000024894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024895$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024897/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024898
24899 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024900int
24901main ()
24902{
24903clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024904 ;
24905 return 0;
24906}
24907_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024908if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024909
cristy09b53e12011-10-14 12:47:22 +000024910 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24911$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000024912
cristy8b350f62009-11-15 23:12:43 +000024913$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024914
24915
24916else
cristy09b53e12011-10-14 12:47:22 +000024917 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24918$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000024919
24920fi
cristye43a45e2009-09-28 14:49:00 +000024921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24922
24923else
24924
cristy8b350f62009-11-15 23:12:43 +000024925 for ac_func in gettimeofday ftime
24926do :
24927 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24928ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024929if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024930 cat >>confdefs.h <<_ACEOF
24931#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24932_ACEOF
24933 break
24934fi
24935done
24936
24937
24938
24939fi
24940
24941
cristy3ed852e2009-09-05 21:47:34 +000024942########
24943#
24944# Check for function prototypes
24945#
24946########
24947
cristy8b350f62009-11-15 23:12:43 +000024948ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024949#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024950"
cristyda16f162011-02-19 23:52:17 +000024951if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024952 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024953else
cristy8b350f62009-11-15 23:12:43 +000024954 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024955fi
24956
cristy3ed852e2009-09-05 21:47:34 +000024957cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024958#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024959_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024960ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024961#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024962"
cristyda16f162011-02-19 23:52:17 +000024963if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024964 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024965else
cristy8b350f62009-11-15 23:12:43 +000024966 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024967fi
24968
cristy3ed852e2009-09-05 21:47:34 +000024969cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024970#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024971_ACEOF
24972
24973
cristy8b350f62009-11-15 23:12:43 +000024974ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024975#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024976"
cristyda16f162011-02-19 23:52:17 +000024977if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024978 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024979else
cristy8b350f62009-11-15 23:12:43 +000024980 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024981fi
24982
cristy3ed852e2009-09-05 21:47:34 +000024983cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024984#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024985_ACEOF
24986
24987
cristy8b350f62009-11-15 23:12:43 +000024988ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024989#include <stdio.h>
24990#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024991"
cristyda16f162011-02-19 23:52:17 +000024992if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024993 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024994else
cristy8b350f62009-11-15 23:12:43 +000024995 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024996fi
24997
cristy3ed852e2009-09-05 21:47:34 +000024998cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024999#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025000_ACEOF
25001
25002
cristy3ed852e2009-09-05 21:47:34 +000025003########
25004#
25005# C++ Support Tests (For Magick++)
25006#
25007########
25008have_magick_plus_plus='no'
25009if test "$with_magick_plus_plus" = 'yes'; then
25010 OLIBS="$LIBS"
25011 LIBS=''
25012 ac_ext=cpp
25013ac_cpp='$CXXCPP $CPPFLAGS'
25014ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25015ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25016ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25017
25018
25019 # Full set of headers used...
25020 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25021 # functional iomanip iosfwd iostream iterator list string strstream utility
25022 ac_ext=cpp
25023ac_cpp='$CXXCPP $CPPFLAGS'
25024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25027
25028 ac_ext=cpp
25029ac_cpp='$CXXCPP $CPPFLAGS'
25030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25033if test -z "$CXX"; then
25034 if test -n "$CCC"; then
25035 CXX=$CCC
25036 else
25037 if test -n "$ac_tool_prefix"; then
25038 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25039 do
25040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25041set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025043$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025044if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025045 $as_echo_n "(cached) " >&6
25046else
25047 if test -n "$CXX"; then
25048 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25049else
25050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25051for as_dir in $PATH
25052do
25053 IFS=$as_save_IFS
25054 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025055 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025057 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025059 break 2
25060 fi
25061done
cristy8b350f62009-11-15 23:12:43 +000025062 done
cristy3ed852e2009-09-05 21:47:34 +000025063IFS=$as_save_IFS
25064
25065fi
25066fi
25067CXX=$ac_cv_prog_CXX
25068if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025070$as_echo "$CXX" >&6; }
25071else
cristy8b350f62009-11-15 23:12:43 +000025072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025073$as_echo "no" >&6; }
25074fi
25075
25076
25077 test -n "$CXX" && break
25078 done
25079fi
25080if test -z "$CXX"; then
25081 ac_ct_CXX=$CXX
25082 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25083do
25084 # Extract the first word of "$ac_prog", so it can be a program name with args.
25085set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025087$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025088if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025089 $as_echo_n "(cached) " >&6
25090else
25091 if test -n "$ac_ct_CXX"; then
25092 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25093else
25094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25095for as_dir in $PATH
25096do
25097 IFS=$as_save_IFS
25098 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025099 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025101 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025103 break 2
25104 fi
25105done
cristy8b350f62009-11-15 23:12:43 +000025106 done
cristy3ed852e2009-09-05 21:47:34 +000025107IFS=$as_save_IFS
25108
25109fi
25110fi
25111ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25112if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025114$as_echo "$ac_ct_CXX" >&6; }
25115else
cristy8b350f62009-11-15 23:12:43 +000025116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025117$as_echo "no" >&6; }
25118fi
25119
25120
25121 test -n "$ac_ct_CXX" && break
25122done
25123
25124 if test "x$ac_ct_CXX" = x; then
25125 CXX="g++"
25126 else
25127 case $cross_compiling:$ac_tool_warned in
25128yes:)
cristy8b350f62009-11-15 23:12:43 +000025129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25131ac_tool_warned=yes ;;
25132esac
25133 CXX=$ac_ct_CXX
25134 fi
25135fi
25136
25137 fi
25138fi
25139# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025140$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025141set X $ac_compile
25142ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025143for ac_option in --version -v -V -qversion; do
25144 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025145case "(($ac_try" in
25146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25147 *) ac_try_echo=$ac_try;;
25148esac
cristy8b350f62009-11-15 23:12:43 +000025149eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25150$as_echo "$ac_try_echo"; } >&5
25151 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025152 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025153 if test -s conftest.err; then
25154 sed '10a\
25155... rest of stderr output deleted ...
25156 10q' conftest.err >conftest.er1
25157 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025158 fi
cristycd4c5312009-11-22 01:19:08 +000025159 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25161 test $ac_status = 0; }
25162done
cristy3ed852e2009-09-05 21:47:34 +000025163
cristy8b350f62009-11-15 23:12:43 +000025164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025165$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025166if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025167 $as_echo_n "(cached) " >&6
25168else
cristy8b350f62009-11-15 23:12:43 +000025169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025170/* end confdefs.h. */
25171
25172int
25173main ()
25174{
25175#ifndef __GNUC__
25176 choke me
25177#endif
25178
25179 ;
25180 return 0;
25181}
25182_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025183if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025184 ac_compiler_gnu=yes
25185else
cristy8b350f62009-11-15 23:12:43 +000025186 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025187fi
cristy3ed852e2009-09-05 21:47:34 +000025188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25189ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25190
25191fi
cristy8b350f62009-11-15 23:12:43 +000025192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025193$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25194if test $ac_compiler_gnu = yes; then
25195 GXX=yes
25196else
25197 GXX=
25198fi
25199ac_test_CXXFLAGS=${CXXFLAGS+set}
25200ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025202$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025203if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025204 $as_echo_n "(cached) " >&6
25205else
25206 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25207 ac_cxx_werror_flag=yes
25208 ac_cv_prog_cxx_g=no
25209 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025211/* end confdefs.h. */
25212
25213int
25214main ()
25215{
25216
25217 ;
25218 return 0;
25219}
25220_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025221if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025222 ac_cv_prog_cxx_g=yes
25223else
cristy8b350f62009-11-15 23:12:43 +000025224 CXXFLAGS=""
25225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025226/* end confdefs.h. */
25227
25228int
25229main ()
25230{
25231
25232 ;
25233 return 0;
25234}
25235_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025236if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025237
cristy8b350f62009-11-15 23:12:43 +000025238else
25239 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025240 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025242/* end confdefs.h. */
25243
25244int
25245main ()
25246{
25247
25248 ;
25249 return 0;
25250}
25251_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025252if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025253 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025254fi
cristy3ed852e2009-09-05 21:47:34 +000025255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25256fi
cristy3ed852e2009-09-05 21:47:34 +000025257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25258fi
cristy3ed852e2009-09-05 21:47:34 +000025259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25260 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25261fi
cristy8b350f62009-11-15 23:12:43 +000025262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025263$as_echo "$ac_cv_prog_cxx_g" >&6; }
25264if test "$ac_test_CXXFLAGS" = set; then
25265 CXXFLAGS=$ac_save_CXXFLAGS
25266elif test $ac_cv_prog_cxx_g = yes; then
25267 if test "$GXX" = yes; then
25268 CXXFLAGS="-g -O2"
25269 else
25270 CXXFLAGS="-g"
25271 fi
25272else
25273 if test "$GXX" = yes; then
25274 CXXFLAGS="-O2"
25275 else
25276 CXXFLAGS=
25277 fi
25278fi
25279ac_ext=cpp
25280ac_cpp='$CXXCPP $CPPFLAGS'
25281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25284
cristy73bd4a52010-10-05 11:24:23 +000025285depcc="$CXX" am_compiler_list=
25286
25287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25288$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025289if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025290 $as_echo_n "(cached) " >&6
25291else
25292 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25293 # We make a subdir and do the tests there. Otherwise we can end up
25294 # making bogus files that we don't know about and never remove. For
25295 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025296 # making a dummy file named 'D' -- because '-MD' means "put the output
25297 # in D".
cristy7247bba2012-02-05 16:37:27 +000025298 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025299 mkdir conftest.dir
25300 # Copy depcomp to subdir because otherwise we won't find it if we're
25301 # using a relative directory.
25302 cp "$am_depcomp" conftest.dir
25303 cd conftest.dir
25304 # We will build objects and dependencies in a subdirectory because
25305 # it helps to detect inapplicable dependency modes. For instance
25306 # both Tru64's cc and ICC support -MD to output dependencies as a
25307 # side effect of compilation, but ICC will put the dependencies in
25308 # the current directory while Tru64 will put them in the object
25309 # directory.
25310 mkdir sub
25311
25312 am_cv_CXX_dependencies_compiler_type=none
25313 if test "$am_compiler_list" = ""; then
25314 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25315 fi
25316 am__universal=false
25317 case " $depcc " in #(
25318 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25319 esac
25320
25321 for depmode in $am_compiler_list; do
25322 # Setup a source with many dependencies, because some compilers
25323 # like to wrap large dependency lists on column 80 (with \), and
25324 # we should not choose a depcomp mode which is confused by this.
25325 #
25326 # We need to recreate these files for each test, as the compiler may
25327 # overwrite some of them when testing with obscure command lines.
25328 # This happens at least with the AIX C compiler.
25329 : > sub/conftest.c
25330 for i in 1 2 3 4 5 6; do
25331 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025332 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25333 # Solaris 10 /bin/sh.
25334 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025335 done
25336 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25337
cristyc0890a62012-07-19 00:18:20 +000025338 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025339 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025340 # handle '-M -o', and we need to detect this. Also, some Intel
25341 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025342 am__obj=sub/conftest.${OBJEXT-o}
25343 am__minus_obj="-o $am__obj"
25344 case $depmode in
25345 gcc)
25346 # This depmode causes a compiler race in universal mode.
25347 test "$am__universal" = false || continue
25348 ;;
25349 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025350 # After this tag, mechanisms are not by side-effect, so they'll
25351 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025352 if test "x$enable_dependency_tracking" = xyes; then
25353 continue
25354 else
25355 break
25356 fi
25357 ;;
cristy7247bba2012-02-05 16:37:27 +000025358 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025359 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025360 # not run yet. These depmodes are late enough in the game, and
25361 # so weak that their functioning should not be impacted.
25362 am__obj=conftest.${OBJEXT-o}
25363 am__minus_obj=
25364 ;;
25365 none) break ;;
25366 esac
25367 if depmode=$depmode \
25368 source=sub/conftest.c object=$am__obj \
25369 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25370 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25371 >/dev/null 2>conftest.err &&
25372 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25373 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25374 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25375 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25376 # icc doesn't choke on unknown options, it will just issue warnings
25377 # or remarks (even with -Werror). So we grep stderr for any message
25378 # that says an option was ignored or not supported.
25379 # When given -MP, icc 7.0 and 7.1 complain thusly:
25380 # icc: Command line warning: ignoring option '-M'; no argument required
25381 # The diagnosis changed in icc 8.0:
25382 # icc: Command line remark: option '-MP' not supported
25383 if (grep 'ignoring option' conftest.err ||
25384 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25385 am_cv_CXX_dependencies_compiler_type=$depmode
25386 break
25387 fi
25388 fi
25389 done
25390
25391 cd ..
25392 rm -rf conftest.dir
25393else
25394 am_cv_CXX_dependencies_compiler_type=none
25395fi
25396
25397fi
25398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25399$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25400CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25401
25402 if
25403 test "x$enable_dependency_tracking" != xno \
25404 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25405 am__fastdepCXX_TRUE=
25406 am__fastdepCXX_FALSE='#'
25407else
25408 am__fastdepCXX_TRUE='#'
25409 am__fastdepCXX_FALSE=
25410fi
25411
25412
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25414$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025415if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025416 $as_echo_n "(cached) " >&6
25417else
25418
25419 ac_ext=cpp
25420ac_cpp='$CXXCPP $CPPFLAGS'
25421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25424
25425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25426/* end confdefs.h. */
25427
25428int f(int x){return 1;}
25429int f(char x){return 1;}
25430int f(bool x){return 1;}
25431
25432int
25433main ()
25434{
25435bool b = true; return f(b);
25436 ;
25437 return 0;
25438}
25439_ACEOF
25440if ac_fn_cxx_try_compile "$LINENO"; then :
25441 ax_cv_cxx_bool=yes
25442else
25443 ax_cv_cxx_bool=no
25444fi
25445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25446 ac_ext=cpp
25447ac_cpp='$CXXCPP $CPPFLAGS'
25448ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25449ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25450ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25451
25452
25453fi
25454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25455$as_echo "$ax_cv_cxx_bool" >&6; }
25456if test "$ax_cv_cxx_bool" = yes; then
25457
25458$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25459
25460fi
25461
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25463$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025464if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025465 $as_echo_n "(cached) " >&6
25466else
25467
25468 ac_ext=cpp
25469ac_cpp='$CXXCPP $CPPFLAGS'
25470ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25471ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25472ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25473
25474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25475/* end confdefs.h. */
25476namespace Outer { namespace Inner { int i = 0; }}
25477int
25478main ()
25479{
25480using namespace Outer::Inner; return i;
25481 ;
25482 return 0;
25483}
25484_ACEOF
25485if ac_fn_cxx_try_compile "$LINENO"; then :
25486 ax_cv_cxx_namespaces=yes
25487else
25488 ax_cv_cxx_namespaces=no
25489fi
25490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25491 ac_ext=cpp
25492ac_cpp='$CXXCPP $CPPFLAGS'
25493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25496
25497
25498fi
25499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25500$as_echo "$ax_cv_cxx_namespaces" >&6; }
25501if test "$ax_cv_cxx_namespaces" = yes; then
25502
25503$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25504
25505fi
25506
25507
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25509$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025510if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025511 $as_echo_n "(cached) " >&6
25512else
25513
25514 ac_ext=cpp
25515ac_cpp='$CXXCPP $CPPFLAGS'
25516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25519
25520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25521/* end confdefs.h. */
25522#include <iostream>
25523 std::istream& is = std::cin;
25524int
25525main ()
25526{
25527
25528 ;
25529 return 0;
25530}
25531_ACEOF
25532if ac_fn_cxx_try_compile "$LINENO"; then :
25533 ax_cv_cxx_have_std_namespace=yes
25534else
25535 ax_cv_cxx_have_std_namespace=no
25536fi
25537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25538 ac_ext=cpp
25539ac_cpp='$CXXCPP $CPPFLAGS'
25540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25543
25544
25545fi
25546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25547$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25548 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25549
25550$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25551
25552 fi
25553
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25555$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025556if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025557 $as_echo_n "(cached) " >&6
25558else
25559
25560
25561 ac_ext=cpp
25562ac_cpp='$CXXCPP $CPPFLAGS'
25563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25566
25567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25568/* end confdefs.h. */
25569#include <iostream>
25570#include <map>
25571#include <iomanip>
25572#include <cmath>
25573#ifdef HAVE_NAMESPACES
25574using namespace std;
25575#endif
25576int
25577main ()
25578{
25579return 0;
25580 ;
25581 return 0;
25582}
25583_ACEOF
25584if ac_fn_cxx_try_compile "$LINENO"; then :
25585 ac_cv_cxx_have_std_libs=yes
25586else
25587 ac_cv_cxx_have_std_libs=no
25588fi
25589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25590 ac_ext=cpp
25591ac_cpp='$CXXCPP $CPPFLAGS'
25592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25595
25596
25597fi
25598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25599$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25600if test "$ac_cv_cxx_have_std_libs" = yes; then
25601
25602$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25603
25604fi
25605
cristy3ed852e2009-09-05 21:47:34 +000025606
25607 OPENMP_CXXFLAGS=
25608 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025609if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025610 enableval=$enable_openmp;
25611fi
25612
25613 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25615$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025616if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025617 $as_echo_n "(cached) " >&6
25618else
cristy8b350f62009-11-15 23:12:43 +000025619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25620/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025621
25622#ifndef _OPENMP
25623 choke me
25624#endif
25625#include <omp.h>
25626int main () { return omp_get_num_threads (); }
25627
25628_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025629if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025630 ac_cv_prog_cxx_openmp='none needed'
25631else
cristy8b350f62009-11-15 23:12:43 +000025632 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025633 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25634 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025635 ac_save_CXXFLAGS=$CXXFLAGS
25636 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25638/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025639
25640#ifndef _OPENMP
25641 choke me
25642#endif
25643#include <omp.h>
25644int main () { return omp_get_num_threads (); }
25645
25646_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025647if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025648 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025649fi
cristy8b350f62009-11-15 23:12:43 +000025650rm -f core conftest.err conftest.$ac_objext \
25651 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025652 CXXFLAGS=$ac_save_CXXFLAGS
25653 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25654 break
25655 fi
25656 done
25657fi
cristy8b350f62009-11-15 23:12:43 +000025658rm -f core conftest.err conftest.$ac_objext \
25659 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025660fi
cristy8b350f62009-11-15 23:12:43 +000025661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025662$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25663 case $ac_cv_prog_cxx_openmp in #(
25664 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025665 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025666 *)
cristy8b350f62009-11-15 23:12:43 +000025667 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025668 esac
25669 fi
25670
25671
25672 ac_ext=c
25673ac_cpp='$CPP $CPPFLAGS'
25674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25676ac_compiler_gnu=$ac_cv_c_compiler_gnu
25677
25678
cristy8b350f62009-11-15 23:12:43 +000025679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025680$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25681 if \
cristy964cb7f2010-04-25 23:18:00 +000025682 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025683 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025684 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025685 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025686 have_magick_plus_plus='yes'
25687 else
25688 have_magick_plus_plus='no (failed tests)'
25689 fi
cristy09b53e12011-10-14 12:47:22 +000025690 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25691$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025692 LIBS="$OLIBS"
25693fi
cristy73bd4a52010-10-05 11:24:23 +000025694 if test "$have_magick_plus_plus" = 'yes'; then
25695 WITH_MAGICK_PLUS_PLUS_TRUE=
25696 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25697else
25698 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25699 WITH_MAGICK_PLUS_PLUS_FALSE=
25700fi
25701
cristy3ed852e2009-09-05 21:47:34 +000025702
25703# Only check for delegate libraries in subdirectories if requested.
25704if test "$enable_delegate_build" != 'no'; then
25705 # Check for delegate sub-directories and add -I & -L options as required.
25706 # This presumes that delegates are installed as detailed in the ImageMagick
25707 # README. If delegates are installed in a standard location where the
25708 # compiler will automatically find them then these options should not be
25709 # required.
25710
25711 #
25712 # Most delegates have includes in the same directory as the library, but not all...
25713 #
25714 # Includes
cristy2542fc62011-12-06 17:50:25 +000025715 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 +000025716 if test -d "$builddir/$dir"; then
25717 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25718 else
25719 if test -d "$srcdirfull/$dir"; then
25720 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25721 fi
25722 fi
25723 done
25724
25725 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025726 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 +000025727 if test -d "$builddir/$dir/.libs"; then
25728 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25729 else
25730 if test -d "$srcdirfull/$dir/.libs"; then
25731 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25732 fi
25733 fi
25734 if test -d "$builddir/$dir"; then
25735 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25736 else
25737 if test -d "$srcdirfull/$dir"; then
25738 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25739 fi
25740 fi
25741 done
25742fi
25743
25744# Assume that delegate headers reside under same directory as ImageMagick
25745# installation prefix.
25746MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25747
25748#
25749# Find the X11 RGB database
25750#
cristy8b350f62009-11-15 23:12:43 +000025751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025752$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025753if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025754 $as_echo_n "(cached) " >&6
25755else
25756 # Look for the header file in a standard set of common directories.
25757# Check X11 before X11Rn because it is often a symlink to the current release.
25758 for ac_dir in \
25759 /lib/usr/lib/X11 \
25760 /usr/X11/lib \
25761 /usr/X11R4/lib \
25762 /usr/X11R5/lib \
25763 /usr/X11R6/lib \
25764 /usr/X11R7/lib \
25765 /usr/X386/lib \
25766 /usr/XFree86/lib/X11 \
25767 /usr/athena/lib \
25768 /usr/lib \
25769 /usr/lib/X11 \
25770 /usr/lib/X11R4 \
25771 /usr/lib/X11R5 \
25772 /usr/lib/X11R6 \
25773 /usr/lib/X11R7 \
25774 /usr/local/X11/lib \
25775 /usr/local/X11R4/lib \
25776 /usr/local/X11R5/lib \
25777 /usr/local/X11R6/lib \
25778 /usr/local/lib \
25779 /usr/local/lib/X11 \
25780 /usr/local/lib/X11R4 \
25781 /usr/local/lib/X11R5 \
25782 /usr/local/lib/X11R6 \
25783 /usr/local/lib/X11R7 \
25784 /usr/local/x11r5/lib \
25785 /usr/lpp/Xamples/lib \
25786 /usr/openwin/lib \
25787 /usr/openwin/share/lib \
25788 /usr/unsupported/lib \
25789 /usr/x386/lib \
25790 ; do
25791 if test -f "$ac_dir/X11/rgb.txt"; then
25792 im_cv_x_configure="$ac_dir/X11/"
25793 break
25794 elif test -f "$ac_dir/rgb.txt"; then
25795 im_cv_x_configure="$ac_dir/"
25796 break
25797 fi
25798
25799 done
25800fi
cristy8b350f62009-11-15 23:12:43 +000025801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025802$as_echo "$im_cv_x_configure" >&6; }
25803X11_CONFIGURE_PATH="$im_cv_x_configure"
25804case "${build_os}" in
25805 mingw* )
25806 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25807 ;;
25808esac
25809
25810cat >>confdefs.h <<_ACEOF
25811#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25812_ACEOF
25813
25814
25815#
25816# Find OpenMP library
25817#
25818GOMP_LIBS=''
25819if test "$enable_openmp" != 'no'; then
25820 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000025821 # Open64 (passes for GCC but uses different OpenMP implementation)
25822 if test "x$GOMP_LIBS" = x ; then
25823 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
25824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
25825$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
25826if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
25827 $as_echo_n "(cached) " >&6
25828else
25829 ac_check_lib_save_LIBS=$LIBS
25830LIBS="-lopenmp $LIBS"
25831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25832/* end confdefs.h. */
25833
25834/* Override any GCC internal prototype to avoid an error.
25835 Use char because int might match the return type of a GCC
25836 builtin and then its argument prototype would still apply. */
25837#ifdef __cplusplus
25838extern "C"
25839#endif
25840char omp_get_num_procs ();
25841int
25842main ()
25843{
25844return omp_get_num_procs ();
25845 ;
25846 return 0;
25847}
25848_ACEOF
25849if ac_fn_c_try_link "$LINENO"; then :
25850 ac_cv_lib_openmp_omp_get_num_procs=yes
25851else
25852 ac_cv_lib_openmp_omp_get_num_procs=no
25853fi
25854rm -f core conftest.err conftest.$ac_objext \
25855 conftest$ac_exeext conftest.$ac_ext
25856LIBS=$ac_check_lib_save_LIBS
25857fi
25858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
25859$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
25860if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
25861 GOMP_LIBS="-lopenmp"
25862fi
25863
25864 fi
25865 fi
25866 # GCC
25867 if test "x$GOMP_LIBS" = x ; then
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025869$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025870if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025871 $as_echo_n "(cached) " >&6
25872else
25873 ac_check_lib_save_LIBS=$LIBS
25874LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025876/* end confdefs.h. */
25877
25878/* Override any GCC internal prototype to avoid an error.
25879 Use char because int might match the return type of a GCC
25880 builtin and then its argument prototype would still apply. */
25881#ifdef __cplusplus
25882extern "C"
25883#endif
25884char GOMP_parallel_start ();
25885int
25886main ()
25887{
25888return GOMP_parallel_start ();
25889 ;
25890 return 0;
25891}
25892_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025893if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025894 ac_cv_lib_gomp_GOMP_parallel_start=yes
25895else
cristy8b350f62009-11-15 23:12:43 +000025896 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025897fi
cristy8b350f62009-11-15 23:12:43 +000025898rm -f core conftest.err conftest.$ac_objext \
25899 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025900LIBS=$ac_check_lib_save_LIBS
25901fi
cristy8b350f62009-11-15 23:12:43 +000025902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025903$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025904if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025905 GOMP_LIBS="-lgomp"
25906fi
cristy18307f12011-12-30 01:20:16 +000025907
25908 fi
cristy3ed852e2009-09-05 21:47:34 +000025909 else
cristy18307f12011-12-30 01:20:16 +000025910 # Sun CC
25911 if test "x$GOMP_LIBS" = x ; then
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025913$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025914if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025915 $as_echo_n "(cached) " >&6
25916else
25917 ac_check_lib_save_LIBS=$LIBS
25918LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025920/* end confdefs.h. */
25921
25922/* Override any GCC internal prototype to avoid an error.
25923 Use char because int might match the return type of a GCC
25924 builtin and then its argument prototype would still apply. */
25925#ifdef __cplusplus
25926extern "C"
25927#endif
25928char sunw_mp_register_warn ();
25929int
25930main ()
25931{
25932return sunw_mp_register_warn ();
25933 ;
25934 return 0;
25935}
25936_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025937if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025938 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25939else
cristy8b350f62009-11-15 23:12:43 +000025940 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025941fi
cristy8b350f62009-11-15 23:12:43 +000025942rm -f core conftest.err conftest.$ac_objext \
25943 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025944LIBS=$ac_check_lib_save_LIBS
25945fi
cristy8b350f62009-11-15 23:12:43 +000025946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025947$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025948if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025949 GOMP_LIBS="-lmtsk"
25950fi
cristy18307f12011-12-30 01:20:16 +000025951
25952 fi
25953 # AIX xlc
25954 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000025955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025956$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025957if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025958 $as_echo_n "(cached) " >&6
25959else
25960 ac_check_lib_save_LIBS=$LIBS
25961LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025963/* end confdefs.h. */
25964
25965/* Override any GCC internal prototype to avoid an error.
25966 Use char because int might match the return type of a GCC
25967 builtin and then its argument prototype would still apply. */
25968#ifdef __cplusplus
25969extern "C"
25970#endif
25971char _xlsmpFlush ();
25972int
25973main ()
25974{
25975return _xlsmpFlush ();
25976 ;
25977 return 0;
25978}
25979_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025980if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025981 ac_cv_lib_xlsmp__xlsmpFlush=yes
25982else
cristy8b350f62009-11-15 23:12:43 +000025983 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025984fi
cristy8b350f62009-11-15 23:12:43 +000025985rm -f core conftest.err conftest.$ac_objext \
25986 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025987LIBS=$ac_check_lib_save_LIBS
25988fi
cristy8b350f62009-11-15 23:12:43 +000025989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025990$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025991if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025992 GOMP_LIBS="-lxlsmp"
25993fi
cristy18307f12011-12-30 01:20:16 +000025994
25995 fi
25996 # SGI IRIX 6.5 MIPSpro C/C++
25997 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000025998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025999$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026000if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026001 $as_echo_n "(cached) " >&6
26002else
26003 ac_check_lib_save_LIBS=$LIBS
26004LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026006/* end confdefs.h. */
26007
26008/* Override any GCC internal prototype to avoid an error.
26009 Use char because int might match the return type of a GCC
26010 builtin and then its argument prototype would still apply. */
26011#ifdef __cplusplus
26012extern "C"
26013#endif
26014char mp_destroy ();
26015int
26016main ()
26017{
26018return mp_destroy ();
26019 ;
26020 return 0;
26021}
26022_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026023if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026024 ac_cv_lib_mp_mp_destroy=yes
26025else
cristy8b350f62009-11-15 23:12:43 +000026026 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026027fi
cristy8b350f62009-11-15 23:12:43 +000026028rm -f core conftest.err conftest.$ac_objext \
26029 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026030LIBS=$ac_check_lib_save_LIBS
26031fi
cristy8b350f62009-11-15 23:12:43 +000026032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026033$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026034if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026035 GOMP_LIBS="-lmp"
26036fi
cristy18307f12011-12-30 01:20:16 +000026037
26038 fi
cristy3ed852e2009-09-05 21:47:34 +000026039 fi
26040 LIBS="$GOMP_LIBS $LIBS"
26041fi
26042
26043
26044#
26045# Find Posix threads library
26046#
26047THREAD_LIBS=''
26048if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26049
26050 if test "x$PTHREAD_LIBS" = "x"; then
26051 case "${host_cpu}-${host_os}" in
26052 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026053
26054
26055
26056ac_ext=c
26057ac_cpp='$CPP $CPPFLAGS'
26058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26060ac_compiler_gnu=$ac_cv_c_compiler_gnu
26061
26062magick_pthread_lib_ok=no
26063
26064LIB=-lc_r
26065save_LIBS="$LIBS"
26066LIBS="$LIBS $LIB"
26067
26068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26069$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26071/* end confdefs.h. */
26072#include <pthread.h>
26073int
26074main ()
26075{
26076 pthread_t th;
26077 pthread_join(th, 0);
26078 pthread_attr_init(0);
26079 pthread_cleanup_push(0, 0);
26080 pthread_create(0,0,0,0);
26081 pthread_cleanup_pop(0);
26082 ;
26083 return 0;
26084}
26085_ACEOF
26086if ac_fn_c_try_link "$LINENO"; then :
26087 magick_pthread_lib_ok=yes
26088fi
26089rm -f core conftest.err conftest.$ac_objext \
26090 conftest$ac_exeext conftest.$ac_ext
26091
26092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26093$as_echo "${magick_pthread_lib_ok}" >&6; }
26094if test "$magick_pthread_lib_ok" = yes
26095then
26096 PTHREAD_LIBS=-lc_r
26097 :
26098else
26099
26100 :
26101fi
26102
26103LIBS="$save_LIBS"
26104
26105ac_ext=c
26106ac_cpp='$CPP $CPPFLAGS'
26107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26109ac_compiler_gnu=$ac_cv_c_compiler_gnu
26110
26111 ;;
cristy3ed852e2009-09-05 21:47:34 +000026112 esac
26113 fi
26114
26115 for lib in pthread pthreads; do
26116 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026117
26118
26119
26120ac_ext=c
26121ac_cpp='$CPP $CPPFLAGS'
26122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26124ac_compiler_gnu=$ac_cv_c_compiler_gnu
26125
26126magick_pthread_lib_ok=no
26127
26128LIB=-l$lib
26129save_LIBS="$LIBS"
26130LIBS="$LIBS $LIB"
26131
26132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26133$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26135/* end confdefs.h. */
26136#include <pthread.h>
26137int
26138main ()
26139{
26140 pthread_t th;
26141 pthread_join(th, 0);
26142 pthread_attr_init(0);
26143 pthread_cleanup_push(0, 0);
26144 pthread_create(0,0,0,0);
26145 pthread_cleanup_pop(0);
26146 ;
26147 return 0;
26148}
26149_ACEOF
26150if ac_fn_c_try_link "$LINENO"; then :
26151 magick_pthread_lib_ok=yes
26152fi
26153rm -f core conftest.err conftest.$ac_objext \
26154 conftest$ac_exeext conftest.$ac_ext
26155
26156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26157$as_echo "${magick_pthread_lib_ok}" >&6; }
26158if test "$magick_pthread_lib_ok" = yes
26159then
26160 PTHREAD_LIBS=-l$lib
26161 :
26162else
26163
26164 :
26165fi
26166
26167LIBS="$save_LIBS"
26168
26169ac_ext=c
26170ac_cpp='$CPP $CPPFLAGS'
26171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26173ac_compiler_gnu=$ac_cv_c_compiler_gnu
26174
26175
cristy3ed852e2009-09-05 21:47:34 +000026176 fi
26177 done
26178
26179 THREAD_LIBS="$PTHREAD_LIBS"
26180 LIBS="$LIBS $THREAD_LIBS"
26181fi
26182
26183
26184#
26185# Check for umem.
26186#
26187have_umem='no'
26188UMEM_LIBS=''
26189if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026191$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026192 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26193$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026194 failed=0
26195 passed=0
cristy8b350f62009-11-15 23:12:43 +000026196 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026197if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026198 passed=`expr $passed + 1`
26199else
26200 failed=`expr $failed + 1`
26201fi
26202
26203
cristy8b350f62009-11-15 23:12:43 +000026204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026205$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026206if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026207 $as_echo_n "(cached) " >&6
26208else
26209 ac_check_lib_save_LIBS=$LIBS
26210LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026212/* end confdefs.h. */
26213
26214/* Override any GCC internal prototype to avoid an error.
26215 Use char because int might match the return type of a GCC
26216 builtin and then its argument prototype would still apply. */
26217#ifdef __cplusplus
26218extern "C"
26219#endif
26220char umem_alloc ();
26221int
26222main ()
26223{
26224return umem_alloc ();
26225 ;
26226 return 0;
26227}
26228_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026229if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026230 ac_cv_lib_umem_umem_alloc=yes
26231else
cristy8b350f62009-11-15 23:12:43 +000026232 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026233fi
cristy8b350f62009-11-15 23:12:43 +000026234rm -f core conftest.err conftest.$ac_objext \
26235 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026236LIBS=$ac_check_lib_save_LIBS
26237fi
cristy8b350f62009-11-15 23:12:43 +000026238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026239$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026240if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026241 passed=`expr $passed + 1`
26242else
26243 failed=`expr $failed + 1`
26244fi
26245
cristy8b350f62009-11-15 23:12:43 +000026246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026247$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026248if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026249 $as_echo_n "(cached) " >&6
26250else
26251 ac_check_lib_save_LIBS=$LIBS
26252LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026254/* end confdefs.h. */
26255
26256/* Override any GCC internal prototype to avoid an error.
26257 Use char because int might match the return type of a GCC
26258 builtin and then its argument prototype would still apply. */
26259#ifdef __cplusplus
26260extern "C"
26261#endif
26262char umem_free ();
26263int
26264main ()
26265{
26266return umem_free ();
26267 ;
26268 return 0;
26269}
26270_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026271if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026272 ac_cv_lib_umem_umem_free=yes
26273else
cristy8b350f62009-11-15 23:12:43 +000026274 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026275fi
cristy8b350f62009-11-15 23:12:43 +000026276rm -f core conftest.err conftest.$ac_objext \
26277 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026278LIBS=$ac_check_lib_save_LIBS
26279fi
cristy8b350f62009-11-15 23:12:43 +000026280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026281$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026282if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026283 passed=`expr $passed + 1`
26284else
26285 failed=`expr $failed + 1`
26286fi
26287
cristy8b350f62009-11-15 23:12:43 +000026288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026289$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26290 if test $passed -gt 0; then
26291 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026292 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26293$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026294 have_umem='no (failed tests)'
26295 else
26296 UMEM_LIBS='-lumem'
26297 LIBS="$UMEM_LIBS $LIBS"
26298
cristy8b350f62009-11-15 23:12:43 +000026299$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026300
cristy09b53e12011-10-14 12:47:22 +000026301 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26302$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026303 have_umem='yes'
26304 fi
26305 else
cristy09b53e12011-10-14 12:47:22 +000026306 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26307$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026308 fi
26309fi
cristy73bd4a52010-10-05 11:24:23 +000026310 if test "$have_umem" = 'yes'; then
26311 HasUMEM_TRUE=
26312 HasUMEM_FALSE='#'
26313else
26314 HasUMEM_TRUE='#'
26315 HasUMEM_FALSE=
26316fi
26317
cristy3ed852e2009-09-05 21:47:34 +000026318
26319
26320#
26321# Add support for ccmalloc memory debugging library if requested
26322#
26323have_ccmalloc='no'
26324CCMALLOC_LIBS=''
26325if test "$enable_ccmalloc" = 'yes'; then
26326 # Extract the first word of "ccmalloc", so it can be a program name with args.
26327set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026329$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026330if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026331 $as_echo_n "(cached) " >&6
26332else
26333 case $CCMALLOCDelegate in
26334 [\\/]* | ?:[\\/]*)
26335 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26336 ;;
26337 *)
26338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26339for as_dir in $PATH
26340do
26341 IFS=$as_save_IFS
26342 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026343 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026345 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026347 break 2
26348 fi
26349done
cristy8b350f62009-11-15 23:12:43 +000026350 done
cristy3ed852e2009-09-05 21:47:34 +000026351IFS=$as_save_IFS
26352
26353 ;;
26354esac
26355fi
26356CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26357if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026359$as_echo "$CCMALLOCDelegate" >&6; }
26360else
cristy8b350f62009-11-15 23:12:43 +000026361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026362$as_echo "no" >&6; }
26363fi
26364
26365
26366 if test -n "$CCMALLOCDelegate"; then
26367 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26368 OLIBS="$LIBS"
26369 # Assume that gcc is used with ccmalloc.
26370 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026372$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026373if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026374 $as_echo_n "(cached) " >&6
26375else
26376 ac_check_lib_save_LIBS=$LIBS
26377LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026379/* end confdefs.h. */
26380
26381/* Override any GCC internal prototype to avoid an error.
26382 Use char because int might match the return type of a GCC
26383 builtin and then its argument prototype would still apply. */
26384#ifdef __cplusplus
26385extern "C"
26386#endif
26387char ccmalloc_malloc ();
26388int
26389main ()
26390{
26391return ccmalloc_malloc ();
26392 ;
26393 return 0;
26394}
26395_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026396if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026397 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26398else
cristy8b350f62009-11-15 23:12:43 +000026399 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026400fi
cristy8b350f62009-11-15 23:12:43 +000026401rm -f core conftest.err conftest.$ac_objext \
26402 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026403LIBS=$ac_check_lib_save_LIBS
26404fi
cristy8b350f62009-11-15 23:12:43 +000026405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026406$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026407if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026408 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26409fi
26410
26411 if test -n "$CCMALLOC_LIBS"; then
26412 LIBS="$OLIBS"
26413 LIBS="$LIBS $CCMALLOC_LIBS"
26414 have_ccmalloc='yes'
26415 else
26416 LIBS="$OLIBS"
26417 fi
26418 fi
26419fi
26420
26421#
26422# Add support for efence memory debugging library if requested
26423#
26424if test "$enable_efence" = 'yes'; then
26425 EFENCE_LIBS='-lefence'
26426 LIBS="$EFENCE_LIBS $LIBS"
26427fi
26428
cristy3ed852e2009-09-05 21:47:34 +000026429
26430#
26431# Check for BZLIB
26432#
26433
26434
26435# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026436if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026437 withval=$with_bzlib; with_bzlib=$withval
26438else
26439 with_bzlib='yes'
26440fi
26441
26442
26443if test "$with_bzlib" != 'yes'; then
26444 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26445fi
26446
26447have_bzlib='no'
26448if test "$with_bzlib" != 'no'; then
26449 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000026450 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26451$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026453$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026454 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26455$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026456 failed=0
26457 passed=0
26458 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026459 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026460if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026461 passed=`expr $passed + 1`
26462else
26463 failed=`expr $failed + 1`
26464fi
26465
26466
cristy8b350f62009-11-15 23:12:43 +000026467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026468$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026469if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026470 $as_echo_n "(cached) " >&6
26471else
26472 ac_check_lib_save_LIBS=$LIBS
26473LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026475/* end confdefs.h. */
26476
26477/* Override any GCC internal prototype to avoid an error.
26478 Use char because int might match the return type of a GCC
26479 builtin and then its argument prototype would still apply. */
26480#ifdef __cplusplus
26481extern "C"
26482#endif
26483char BZ2_bzDecompress ();
26484int
26485main ()
26486{
26487return BZ2_bzDecompress ();
26488 ;
26489 return 0;
26490}
26491_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026492if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026493 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26494else
cristy8b350f62009-11-15 23:12:43 +000026495 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026496fi
cristy8b350f62009-11-15 23:12:43 +000026497rm -f core conftest.err conftest.$ac_objext \
26498 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026499LIBS=$ac_check_lib_save_LIBS
26500fi
cristy8b350f62009-11-15 23:12:43 +000026501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026502$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026503if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026504 found_libbz=`expr $found_libbz + 1`
26505fi
26506
26507 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026509$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026510if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026511 $as_echo_n "(cached) " >&6
26512else
26513 ac_check_lib_save_LIBS=$LIBS
26514LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026516/* end confdefs.h. */
26517
26518/* Override any GCC internal prototype to avoid an error.
26519 Use char because int might match the return type of a GCC
26520 builtin and then its argument prototype would still apply. */
26521#ifdef __cplusplus
26522extern "C"
26523#endif
26524char _imp__BZ2_decompress ();
26525int
26526main ()
26527{
26528return _imp__BZ2_decompress ();
26529 ;
26530 return 0;
26531}
26532_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026533if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026534 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26535else
cristy8b350f62009-11-15 23:12:43 +000026536 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026537fi
cristy8b350f62009-11-15 23:12:43 +000026538rm -f core conftest.err conftest.$ac_objext \
26539 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026540LIBS=$ac_check_lib_save_LIBS
26541fi
cristy8b350f62009-11-15 23:12:43 +000026542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026543$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026544if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026545 found_libbz=`expr $found_libbz + 1`
26546fi
26547
26548 fi
26549 if test $found_libbz -gt 0; then
26550 passed=`expr $passed + 1`
26551 else
26552 failed=`expr $failed + 1`
26553 fi
cristy8b350f62009-11-15 23:12:43 +000026554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026555$as_echo_n "checking if BZLIB package is complete... " >&6; }
26556 if test $passed -gt 0; then
26557 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026558 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26559$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026560 have_bzlib='no (failed tests)'
26561 else
26562 BZLIB_LIBS='-lbz2'
26563 LIBS="$BZLIB_LIBS $LIBS"
26564
cristy8b350f62009-11-15 23:12:43 +000026565$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026566
cristy09b53e12011-10-14 12:47:22 +000026567 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26568$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026569 have_bzlib='yes'
26570 fi
26571 else
cristy09b53e12011-10-14 12:47:22 +000026572 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26573$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026574 fi
26575fi
cristy73bd4a52010-10-05 11:24:23 +000026576 if test "$have_bzlib" = 'yes'; then
26577 BZLIB_DELEGATE_TRUE=
26578 BZLIB_DELEGATE_FALSE='#'
26579else
26580 BZLIB_DELEGATE_TRUE='#'
26581 BZLIB_DELEGATE_FALSE=
26582fi
26583
cristy3ed852e2009-09-05 21:47:34 +000026584
26585
26586#
26587# Find the X11 include and library directories.
26588#
26589IPC_LIBS=''
26590X11_LIBS=''
26591XEXT_LIBS=''
26592XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026594$as_echo_n "checking for X... " >&6; }
26595
26596
26597# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026598if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026599 withval=$with_x;
26600fi
26601
26602# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26603if test "x$with_x" = xno; then
26604 # The user explicitly disabled X.
26605 have_x=disabled
26606else
26607 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026608 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026609 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026610 $as_echo_n "(cached) " >&6
26611else
26612 # One or both of the vars are not set, and there is no cached value.
26613ac_x_includes=no ac_x_libraries=no
26614rm -f -r conftest.dir
26615if mkdir conftest.dir; then
26616 cd conftest.dir
26617 cat >Imakefile <<'_ACEOF'
26618incroot:
26619 @echo incroot='${INCROOT}'
26620usrlibdir:
26621 @echo usrlibdir='${USRLIBDIR}'
26622libdir:
26623 @echo libdir='${LIBDIR}'
26624_ACEOF
26625 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026626 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026627 for ac_var in incroot usrlibdir libdir; do
26628 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26629 done
26630 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26631 for ac_extension in a so sl dylib la dll; do
26632 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26633 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26634 ac_im_usrlibdir=$ac_im_libdir; break
26635 fi
26636 done
26637 # Screen out bogus values from the imake configuration. They are
26638 # bogus both because they are the default anyway, and because
26639 # using them would break gcc on systems where it needs fixed includes.
26640 case $ac_im_incroot in
26641 /usr/include) ac_x_includes= ;;
26642 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26643 esac
26644 case $ac_im_usrlibdir in
26645 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26646 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26647 esac
26648 fi
26649 cd ..
26650 rm -f -r conftest.dir
26651fi
26652
26653# Standard set of common directories for X headers.
26654# Check X11 before X11Rn because it is often a symlink to the current release.
26655ac_x_header_dirs='
26656/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026657/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026658/usr/X11R6/include
26659/usr/X11R5/include
26660/usr/X11R4/include
26661
26662/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026663/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026664/usr/include/X11R6
26665/usr/include/X11R5
26666/usr/include/X11R4
26667
26668/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026669/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026670/usr/local/X11R6/include
26671/usr/local/X11R5/include
26672/usr/local/X11R4/include
26673
26674/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026675/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026676/usr/local/include/X11R6
26677/usr/local/include/X11R5
26678/usr/local/include/X11R4
26679
26680/usr/X386/include
26681/usr/x386/include
26682/usr/XFree86/include/X11
26683
26684/usr/include
26685/usr/local/include
26686/usr/unsupported/include
26687/usr/athena/include
26688/usr/local/x11r5/include
26689/usr/lpp/Xamples/include
26690
26691/usr/openwin/include
26692/usr/openwin/share/include'
26693
26694if test "$ac_x_includes" = no; then
26695 # Guess where to find include files, by looking for Xlib.h.
26696 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026698/* end confdefs.h. */
26699#include <X11/Xlib.h>
26700_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026701if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026702 # We can compile using X headers with no special include directory.
26703ac_x_includes=
26704else
cristyc7083c12009-10-14 03:16:55 +000026705 for ac_dir in $ac_x_header_dirs; do
26706 if test -r "$ac_dir/X11/Xlib.h"; then
26707 ac_x_includes=$ac_dir
26708 break
26709 fi
26710done
26711fi
cristyda16f162011-02-19 23:52:17 +000026712rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026713fi # $ac_x_includes = no
26714
26715if test "$ac_x_libraries" = no; then
26716 # Check for the libraries.
26717 # See if we find them without any special options.
26718 # Don't add to $LIBS permanently.
26719 ac_save_LIBS=$LIBS
26720 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026722/* end confdefs.h. */
26723#include <X11/Xlib.h>
26724int
26725main ()
26726{
26727XrmInitialize ()
26728 ;
26729 return 0;
26730}
26731_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026732if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026733 LIBS=$ac_save_LIBS
26734# We can link X programs with no special library path.
26735ac_x_libraries=
26736else
cristy8b350f62009-11-15 23:12:43 +000026737 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026738for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26739do
26740 # Don't even attempt the hair of trying to link an X program!
26741 for ac_extension in a so sl dylib la dll; do
26742 if test -r "$ac_dir/libX11.$ac_extension"; then
26743 ac_x_libraries=$ac_dir
26744 break 2
26745 fi
26746 done
26747done
26748fi
cristy8b350f62009-11-15 23:12:43 +000026749rm -f core conftest.err conftest.$ac_objext \
26750 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026751fi # $ac_x_libraries = no
26752
26753case $ac_x_includes,$ac_x_libraries in #(
26754 no,* | *,no | *\'*)
26755 # Didn't find X, or a directory has "'" in its name.
26756 ac_cv_have_x="have_x=no";; #(
26757 *)
26758 # Record where we found X for the cache.
26759 ac_cv_have_x="have_x=yes\
26760 ac_x_includes='$ac_x_includes'\
26761 ac_x_libraries='$ac_x_libraries'"
26762esac
26763fi
26764;; #(
26765 *) have_x=yes;;
26766 esac
26767 eval "$ac_cv_have_x"
26768fi # $with_x != no
26769
26770if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026772$as_echo "$have_x" >&6; }
26773 no_x=yes
26774else
26775 # If each of the values was on the command line, it overrides each guess.
26776 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26777 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26778 # Update the cache value to reflect the command line values.
26779 ac_cv_have_x="have_x=yes\
26780 ac_x_includes='$x_includes'\
26781 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026783$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26784fi
26785
cristy3ed852e2009-09-05 21:47:34 +000026786if test "$no_x" = yes; then
26787 # Not all programs may use this symbol, but it does not hurt to define it.
26788
cristy8b350f62009-11-15 23:12:43 +000026789$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026790
26791 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26792else
26793 if test -n "$x_includes"; then
26794 X_CFLAGS="$X_CFLAGS -I$x_includes"
26795 fi
26796
26797 # It would also be nice to do this for all -L options, not just this one.
26798 if test -n "$x_libraries"; then
26799 X_LIBS="$X_LIBS -L$x_libraries"
26800 # For Solaris; some versions of Sun CC require a space after -R and
26801 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026803$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26804 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26805 ac_xsave_c_werror_flag=$ac_c_werror_flag
26806 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026808/* end confdefs.h. */
26809
26810int
26811main ()
26812{
26813
26814 ;
26815 return 0;
26816}
26817_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026818if ac_fn_c_try_link "$LINENO"; then :
26819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026820$as_echo "no" >&6; }
26821 X_LIBS="$X_LIBS -R$x_libraries"
26822else
cristy8b350f62009-11-15 23:12:43 +000026823 LIBS="$ac_xsave_LIBS -R $x_libraries"
26824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026825/* end confdefs.h. */
26826
26827int
26828main ()
26829{
26830
26831 ;
26832 return 0;
26833}
26834_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026835if ac_fn_c_try_link "$LINENO"; then :
26836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026837$as_echo "yes" >&6; }
26838 X_LIBS="$X_LIBS -R $x_libraries"
26839else
cristy8b350f62009-11-15 23:12:43 +000026840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026841$as_echo "neither works" >&6; }
26842fi
cristy8b350f62009-11-15 23:12:43 +000026843rm -f core conftest.err conftest.$ac_objext \
26844 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026845fi
cristy8b350f62009-11-15 23:12:43 +000026846rm -f core conftest.err conftest.$ac_objext \
26847 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026848 ac_c_werror_flag=$ac_xsave_c_werror_flag
26849 LIBS=$ac_xsave_LIBS
26850 fi
26851
26852 # Check for system-dependent libraries X programs must link with.
26853 # Do this before checking for the system-independent R6 libraries
26854 # (-lICE), since we may need -lsocket or whatever for X linking.
26855
26856 if test "$ISC" = yes; then
26857 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26858 else
26859 # Martyn Johnson says this is needed for Ultrix, if the X
26860 # libraries were built with DECnet support. And Karl Berry says
26861 # the Alpha needs dnet_stub (dnet does not exist).
26862 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026864/* end confdefs.h. */
26865
26866/* Override any GCC internal prototype to avoid an error.
26867 Use char because int might match the return type of a GCC
26868 builtin and then its argument prototype would still apply. */
26869#ifdef __cplusplus
26870extern "C"
26871#endif
26872char XOpenDisplay ();
26873int
26874main ()
26875{
26876return XOpenDisplay ();
26877 ;
26878 return 0;
26879}
26880_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026881if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026882
cristy8b350f62009-11-15 23:12:43 +000026883else
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026885$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026886if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026887 $as_echo_n "(cached) " >&6
26888else
26889 ac_check_lib_save_LIBS=$LIBS
26890LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026892/* end confdefs.h. */
26893
26894/* Override any GCC internal prototype to avoid an error.
26895 Use char because int might match the return type of a GCC
26896 builtin and then its argument prototype would still apply. */
26897#ifdef __cplusplus
26898extern "C"
26899#endif
26900char dnet_ntoa ();
26901int
26902main ()
26903{
26904return dnet_ntoa ();
26905 ;
26906 return 0;
26907}
26908_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026909if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026910 ac_cv_lib_dnet_dnet_ntoa=yes
26911else
cristy8b350f62009-11-15 23:12:43 +000026912 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026913fi
cristy8b350f62009-11-15 23:12:43 +000026914rm -f core conftest.err conftest.$ac_objext \
26915 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026916LIBS=$ac_check_lib_save_LIBS
26917fi
cristy8b350f62009-11-15 23:12:43 +000026918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026919$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026920if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026921 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26922fi
26923
26924 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026926$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026927if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026928 $as_echo_n "(cached) " >&6
26929else
26930 ac_check_lib_save_LIBS=$LIBS
26931LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026933/* end confdefs.h. */
26934
26935/* Override any GCC internal prototype to avoid an error.
26936 Use char because int might match the return type of a GCC
26937 builtin and then its argument prototype would still apply. */
26938#ifdef __cplusplus
26939extern "C"
26940#endif
26941char dnet_ntoa ();
26942int
26943main ()
26944{
26945return dnet_ntoa ();
26946 ;
26947 return 0;
26948}
26949_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026950if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026951 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26952else
cristy8b350f62009-11-15 23:12:43 +000026953 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026954fi
cristy8b350f62009-11-15 23:12:43 +000026955rm -f core conftest.err conftest.$ac_objext \
26956 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026957LIBS=$ac_check_lib_save_LIBS
26958fi
cristy8b350f62009-11-15 23:12:43 +000026959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026960$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026961if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026962 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26963fi
26964
26965 fi
26966fi
cristy8b350f62009-11-15 23:12:43 +000026967rm -f core conftest.err conftest.$ac_objext \
26968 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026969 LIBS="$ac_xsave_LIBS"
26970
26971 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26972 # to get the SysV transport functions.
26973 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26974 # needs -lnsl.
26975 # The nsl library prevents programs from opening the X display
26976 # on Irix 5.2, according to T.E. Dickey.
26977 # The functions gethostbyname, getservbyname, and inet_addr are
26978 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026979 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026980if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026981
cristy3ed852e2009-09-05 21:47:34 +000026982fi
26983
cristy3ed852e2009-09-05 21:47:34 +000026984 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026986$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026987if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026988 $as_echo_n "(cached) " >&6
26989else
26990 ac_check_lib_save_LIBS=$LIBS
26991LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026993/* end confdefs.h. */
26994
26995/* Override any GCC internal prototype to avoid an error.
26996 Use char because int might match the return type of a GCC
26997 builtin and then its argument prototype would still apply. */
26998#ifdef __cplusplus
26999extern "C"
27000#endif
27001char gethostbyname ();
27002int
27003main ()
27004{
27005return gethostbyname ();
27006 ;
27007 return 0;
27008}
27009_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027010if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027011 ac_cv_lib_nsl_gethostbyname=yes
27012else
cristy8b350f62009-11-15 23:12:43 +000027013 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027014fi
cristy8b350f62009-11-15 23:12:43 +000027015rm -f core conftest.err conftest.$ac_objext \
27016 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027017LIBS=$ac_check_lib_save_LIBS
27018fi
cristy8b350f62009-11-15 23:12:43 +000027019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027020$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027021if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027022 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27023fi
27024
27025 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027027$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027028if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027029 $as_echo_n "(cached) " >&6
27030else
27031 ac_check_lib_save_LIBS=$LIBS
27032LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027034/* end confdefs.h. */
27035
27036/* Override any GCC internal prototype to avoid an error.
27037 Use char because int might match the return type of a GCC
27038 builtin and then its argument prototype would still apply. */
27039#ifdef __cplusplus
27040extern "C"
27041#endif
27042char gethostbyname ();
27043int
27044main ()
27045{
27046return gethostbyname ();
27047 ;
27048 return 0;
27049}
27050_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027051if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027052 ac_cv_lib_bsd_gethostbyname=yes
27053else
cristy8b350f62009-11-15 23:12:43 +000027054 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027055fi
cristy8b350f62009-11-15 23:12:43 +000027056rm -f core conftest.err conftest.$ac_objext \
27057 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027058LIBS=$ac_check_lib_save_LIBS
27059fi
cristy8b350f62009-11-15 23:12:43 +000027060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027061$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027062if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027063 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27064fi
27065
27066 fi
27067 fi
27068
27069 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27070 # socket/setsockopt and other routines are undefined under SCO ODT
27071 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27072 # on later versions), says Simon Leinen: it contains gethostby*
27073 # variants that don't use the name server (or something). -lsocket
27074 # must be given before -lnsl if both are needed. We assume that
27075 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027076 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027077if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027078
cristy3ed852e2009-09-05 21:47:34 +000027079fi
27080
cristy3ed852e2009-09-05 21:47:34 +000027081 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027083$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027084if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027085 $as_echo_n "(cached) " >&6
27086else
27087 ac_check_lib_save_LIBS=$LIBS
27088LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027090/* end confdefs.h. */
27091
27092/* Override any GCC internal prototype to avoid an error.
27093 Use char because int might match the return type of a GCC
27094 builtin and then its argument prototype would still apply. */
27095#ifdef __cplusplus
27096extern "C"
27097#endif
27098char connect ();
27099int
27100main ()
27101{
27102return connect ();
27103 ;
27104 return 0;
27105}
27106_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027107if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027108 ac_cv_lib_socket_connect=yes
27109else
cristy8b350f62009-11-15 23:12:43 +000027110 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027111fi
cristy8b350f62009-11-15 23:12:43 +000027112rm -f core conftest.err conftest.$ac_objext \
27113 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027114LIBS=$ac_check_lib_save_LIBS
27115fi
cristy8b350f62009-11-15 23:12:43 +000027116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027117$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027118if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027119 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27120fi
27121
27122 fi
27123
27124 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027125 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027126if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027127
cristy3ed852e2009-09-05 21:47:34 +000027128fi
27129
cristy3ed852e2009-09-05 21:47:34 +000027130 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027132$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027133if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027134 $as_echo_n "(cached) " >&6
27135else
27136 ac_check_lib_save_LIBS=$LIBS
27137LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027139/* end confdefs.h. */
27140
27141/* Override any GCC internal prototype to avoid an error.
27142 Use char because int might match the return type of a GCC
27143 builtin and then its argument prototype would still apply. */
27144#ifdef __cplusplus
27145extern "C"
27146#endif
27147char remove ();
27148int
27149main ()
27150{
27151return remove ();
27152 ;
27153 return 0;
27154}
27155_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027156if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027157 ac_cv_lib_posix_remove=yes
27158else
cristy8b350f62009-11-15 23:12:43 +000027159 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027160fi
cristy8b350f62009-11-15 23:12:43 +000027161rm -f core conftest.err conftest.$ac_objext \
27162 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027163LIBS=$ac_check_lib_save_LIBS
27164fi
cristy8b350f62009-11-15 23:12:43 +000027165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027166$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027167if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027168 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27169fi
27170
27171 fi
27172
27173 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027174 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027175if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027176
cristy3ed852e2009-09-05 21:47:34 +000027177fi
27178
cristy3ed852e2009-09-05 21:47:34 +000027179 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027181$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027182if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027183 $as_echo_n "(cached) " >&6
27184else
27185 ac_check_lib_save_LIBS=$LIBS
27186LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027188/* end confdefs.h. */
27189
27190/* Override any GCC internal prototype to avoid an error.
27191 Use char because int might match the return type of a GCC
27192 builtin and then its argument prototype would still apply. */
27193#ifdef __cplusplus
27194extern "C"
27195#endif
27196char shmat ();
27197int
27198main ()
27199{
27200return shmat ();
27201 ;
27202 return 0;
27203}
27204_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027205if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027206 ac_cv_lib_ipc_shmat=yes
27207else
cristy8b350f62009-11-15 23:12:43 +000027208 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027209fi
cristy8b350f62009-11-15 23:12:43 +000027210rm -f core conftest.err conftest.$ac_objext \
27211 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027212LIBS=$ac_check_lib_save_LIBS
27213fi
cristy8b350f62009-11-15 23:12:43 +000027214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027215$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027216if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027217 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27218fi
27219
27220 fi
27221 fi
27222
27223 # Check for libraries that X11R6 Xt/Xaw programs need.
27224 ac_save_LDFLAGS=$LDFLAGS
27225 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27226 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27227 # check for ICE first), but we must link in the order -lSM -lICE or
27228 # we get undefined symbols. So assume we have SM if we have ICE.
27229 # These have to be linked with before -lX11, unlike the other
27230 # libraries we check for below, so use a different variable.
27231 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027233$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027234if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027235 $as_echo_n "(cached) " >&6
27236else
27237 ac_check_lib_save_LIBS=$LIBS
27238LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027240/* end confdefs.h. */
27241
27242/* Override any GCC internal prototype to avoid an error.
27243 Use char because int might match the return type of a GCC
27244 builtin and then its argument prototype would still apply. */
27245#ifdef __cplusplus
27246extern "C"
27247#endif
27248char IceConnectionNumber ();
27249int
27250main ()
27251{
27252return IceConnectionNumber ();
27253 ;
27254 return 0;
27255}
27256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027257if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027258 ac_cv_lib_ICE_IceConnectionNumber=yes
27259else
cristy8b350f62009-11-15 23:12:43 +000027260 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027261fi
cristy8b350f62009-11-15 23:12:43 +000027262rm -f core conftest.err conftest.$ac_objext \
27263 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027264LIBS=$ac_check_lib_save_LIBS
27265fi
cristy8b350f62009-11-15 23:12:43 +000027266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027267$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027268if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027269 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27270fi
27271
27272 LDFLAGS=$ac_save_LDFLAGS
27273
27274fi
27275
27276if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027277 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27278$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027280$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027281 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27282$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027283 LDFLAGS="$LDFLAGS $X_LIBS"
27284 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27285 LIBS="$X11_LIBS $LIBS"
27286 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27287
27288
cristy8b350f62009-11-15 23:12:43 +000027289$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027290
27291 #
27292 # Check for X11 shared memory extension
27293 #
27294 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027295 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027296if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027297 have_shmctl='yes'
27298fi
27299
27300 if test "$have_shmctl" != 'yes'; then
27301 PERSIST_LIBS=$LIBS
27302 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027304/* end confdefs.h. */
27305
27306/* Override any GCC internal prototype to avoid an error.
27307 Use char because int might match the return type of a GCC
27308 builtin and then its argument prototype would still apply. */
27309#ifdef __cplusplus
27310extern "C"
27311#endif
27312char shmctl ();
27313int
27314main ()
27315{
27316return shmctl ();
27317 ;
27318 return 0;
27319}
27320_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027321if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027322 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027323fi
cristy8b350f62009-11-15 23:12:43 +000027324rm -f core conftest.err conftest.$ac_objext \
27325 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027326 LIBS=$PERSIST_LIBS
27327 fi
27328
27329 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027331$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027332if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027333 $as_echo_n "(cached) " >&6
27334else
27335 ac_check_lib_save_LIBS=$LIBS
27336LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027338/* end confdefs.h. */
27339
27340/* Override any GCC internal prototype to avoid an error.
27341 Use char because int might match the return type of a GCC
27342 builtin and then its argument prototype would still apply. */
27343#ifdef __cplusplus
27344extern "C"
27345#endif
27346char XShmAttach ();
27347int
27348main ()
27349{
27350return XShmAttach ();
27351 ;
27352 return 0;
27353}
27354_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027355if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027356 ac_cv_lib_Xext_XShmAttach=yes
27357else
cristy8b350f62009-11-15 23:12:43 +000027358 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027359fi
cristy8b350f62009-11-15 23:12:43 +000027360rm -f core conftest.err conftest.$ac_objext \
27361 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027362LIBS=$ac_check_lib_save_LIBS
27363fi
cristy8b350f62009-11-15 23:12:43 +000027364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027365$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027366if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027367 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027368$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027369
27370fi
27371
27372 fi
27373
27374 #
27375 # Check for X11 shape extension
27376 #
cristy8b350f62009-11-15 23:12:43 +000027377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027378$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027379if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027380 $as_echo_n "(cached) " >&6
27381else
27382 ac_check_lib_save_LIBS=$LIBS
27383LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027385/* end confdefs.h. */
27386
27387/* Override any GCC internal prototype to avoid an error.
27388 Use char because int might match the return type of a GCC
27389 builtin and then its argument prototype would still apply. */
27390#ifdef __cplusplus
27391extern "C"
27392#endif
27393char XShapeCombineMask ();
27394int
27395main ()
27396{
27397return XShapeCombineMask ();
27398 ;
27399 return 0;
27400}
27401_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027402if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027403 ac_cv_lib_Xext_XShapeCombineMask=yes
27404else
cristy8b350f62009-11-15 23:12:43 +000027405 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027406fi
cristy8b350f62009-11-15 23:12:43 +000027407rm -f core conftest.err conftest.$ac_objext \
27408 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027409LIBS=$ac_check_lib_save_LIBS
27410fi
cristy8b350f62009-11-15 23:12:43 +000027411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027412$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027413if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027414 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027415$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027416
27417fi
27418
cristy8b350f62009-11-15 23:12:43 +000027419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027420$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027421if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027422 $as_echo_n "(cached) " >&6
27423else
27424 ac_check_lib_save_LIBS=$LIBS
27425LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027427/* end confdefs.h. */
27428
27429/* Override any GCC internal prototype to avoid an error.
27430 Use char because int might match the return type of a GCC
27431 builtin and then its argument prototype would still apply. */
27432#ifdef __cplusplus
27433extern "C"
27434#endif
27435char XtSetEventDispatcher ();
27436int
27437main ()
27438{
27439return XtSetEventDispatcher ();
27440 ;
27441 return 0;
27442}
27443_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027444if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027445 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27446else
cristy8b350f62009-11-15 23:12:43 +000027447 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027448fi
cristy8b350f62009-11-15 23:12:43 +000027449rm -f core conftest.err conftest.$ac_objext \
27450 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027451LIBS=$ac_check_lib_save_LIBS
27452fi
cristy8b350f62009-11-15 23:12:43 +000027453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027454$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027455if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027456 XT_LIBS='-lXt'
27457fi
27458
27459 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27460fi
27461if test "$no_x" != 'yes'; then
27462 have_x='yes'
27463else
27464 have_x='no'
27465fi
cristy73bd4a52010-10-05 11:24:23 +000027466 if test "$have_x" = 'yes'; then
27467 X11_DELEGATE_TRUE=
27468 X11_DELEGATE_FALSE='#'
27469else
27470 X11_DELEGATE_TRUE='#'
27471 X11_DELEGATE_FALSE=
27472fi
27473
cristy3ed852e2009-09-05 21:47:34 +000027474
27475
27476
27477
27478#
27479# Check for ZLIB
27480#
27481
27482# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027483if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027484 withval=$with_zlib; with_zlib=$withval
27485else
27486 with_zlib='yes'
27487fi
27488
27489
27490if test "$with_zlib" != 'yes'; then
27491 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27492fi
27493
27494have_zlib='no'
27495ZLIB_LIBS=''
27496if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027497 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27498$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027500$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027501 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27502$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027503 ZLIB_LIBS=''
27504 failed=0
27505 passed=0
cristy8b350f62009-11-15 23:12:43 +000027506 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027507if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027508 passed=`expr $passed + 1`
27509else
27510 failed=`expr $failed + 1`
27511fi
27512
27513
cristy8b350f62009-11-15 23:12:43 +000027514 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027515if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027516 passed=`expr $passed + 1`
27517else
27518 failed=`expr $failed + 1`
27519fi
27520
27521
cristy8b350f62009-11-15 23:12:43 +000027522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027523$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027524if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027525 $as_echo_n "(cached) " >&6
27526else
27527 ac_check_lib_save_LIBS=$LIBS
27528LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027530/* end confdefs.h. */
27531
27532/* Override any GCC internal prototype to avoid an error.
27533 Use char because int might match the return type of a GCC
27534 builtin and then its argument prototype would still apply. */
27535#ifdef __cplusplus
27536extern "C"
27537#endif
27538char compress ();
27539int
27540main ()
27541{
27542return compress ();
27543 ;
27544 return 0;
27545}
27546_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027547if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027548 ac_cv_lib_z_compress=yes
27549else
cristy8b350f62009-11-15 23:12:43 +000027550 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027551fi
cristy8b350f62009-11-15 23:12:43 +000027552rm -f core conftest.err conftest.$ac_objext \
27553 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027554LIBS=$ac_check_lib_save_LIBS
27555fi
cristy8b350f62009-11-15 23:12:43 +000027556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027557$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027558if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027559 passed=`expr $passed + 1`
27560else
27561 failed=`expr $failed + 1`
27562fi
27563
cristy8b350f62009-11-15 23:12:43 +000027564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027565$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027566if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027567 $as_echo_n "(cached) " >&6
27568else
27569 ac_check_lib_save_LIBS=$LIBS
27570LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027572/* end confdefs.h. */
27573
27574/* Override any GCC internal prototype to avoid an error.
27575 Use char because int might match the return type of a GCC
27576 builtin and then its argument prototype would still apply. */
27577#ifdef __cplusplus
27578extern "C"
27579#endif
27580char uncompress ();
27581int
27582main ()
27583{
27584return uncompress ();
27585 ;
27586 return 0;
27587}
27588_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027589if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027590 ac_cv_lib_z_uncompress=yes
27591else
cristy8b350f62009-11-15 23:12:43 +000027592 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027593fi
cristy8b350f62009-11-15 23:12:43 +000027594rm -f core conftest.err conftest.$ac_objext \
27595 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027596LIBS=$ac_check_lib_save_LIBS
27597fi
cristy8b350f62009-11-15 23:12:43 +000027598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027599$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027600if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027601 passed=`expr $passed + 1`
27602else
27603 failed=`expr $failed + 1`
27604fi
27605
cristy8b350f62009-11-15 23:12:43 +000027606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027607$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027608if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027609 $as_echo_n "(cached) " >&6
27610else
27611 ac_check_lib_save_LIBS=$LIBS
27612LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027614/* end confdefs.h. */
27615
27616/* Override any GCC internal prototype to avoid an error.
27617 Use char because int might match the return type of a GCC
27618 builtin and then its argument prototype would still apply. */
27619#ifdef __cplusplus
27620extern "C"
27621#endif
27622char deflate ();
27623int
27624main ()
27625{
27626return deflate ();
27627 ;
27628 return 0;
27629}
27630_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027631if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027632 ac_cv_lib_z_deflate=yes
27633else
cristy8b350f62009-11-15 23:12:43 +000027634 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027635fi
cristy8b350f62009-11-15 23:12:43 +000027636rm -f core conftest.err conftest.$ac_objext \
27637 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027638LIBS=$ac_check_lib_save_LIBS
27639fi
cristy8b350f62009-11-15 23:12:43 +000027640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027641$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027642if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027643 passed=`expr $passed + 1`
27644else
27645 failed=`expr $failed + 1`
27646fi
27647
cristy8b350f62009-11-15 23:12:43 +000027648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027649$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027650if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027651 $as_echo_n "(cached) " >&6
27652else
27653 ac_check_lib_save_LIBS=$LIBS
27654LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027656/* end confdefs.h. */
27657
27658/* Override any GCC internal prototype to avoid an error.
27659 Use char because int might match the return type of a GCC
27660 builtin and then its argument prototype would still apply. */
27661#ifdef __cplusplus
27662extern "C"
27663#endif
27664char inflate ();
27665int
27666main ()
27667{
27668return inflate ();
27669 ;
27670 return 0;
27671}
27672_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027673if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027674 ac_cv_lib_z_inflate=yes
27675else
cristy8b350f62009-11-15 23:12:43 +000027676 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027677fi
cristy8b350f62009-11-15 23:12:43 +000027678rm -f core conftest.err conftest.$ac_objext \
27679 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027680LIBS=$ac_check_lib_save_LIBS
27681fi
cristy8b350f62009-11-15 23:12:43 +000027682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027683$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027684if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027685 passed=`expr $passed + 1`
27686else
27687 failed=`expr $failed + 1`
27688fi
27689
cristy8b350f62009-11-15 23:12:43 +000027690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027691$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027692if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027693 $as_echo_n "(cached) " >&6
27694else
27695 ac_check_lib_save_LIBS=$LIBS
27696LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027698/* end confdefs.h. */
27699
27700/* Override any GCC internal prototype to avoid an error.
27701 Use char because int might match the return type of a GCC
27702 builtin and then its argument prototype would still apply. */
27703#ifdef __cplusplus
27704extern "C"
27705#endif
27706char gzseek ();
27707int
27708main ()
27709{
27710return gzseek ();
27711 ;
27712 return 0;
27713}
27714_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027715if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027716 ac_cv_lib_z_gzseek=yes
27717else
cristy8b350f62009-11-15 23:12:43 +000027718 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027719fi
cristy8b350f62009-11-15 23:12:43 +000027720rm -f core conftest.err conftest.$ac_objext \
27721 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027722LIBS=$ac_check_lib_save_LIBS
27723fi
cristy8b350f62009-11-15 23:12:43 +000027724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027725$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027726if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027727 passed=`expr $passed + 1`
27728else
27729 failed=`expr $failed + 1`
27730fi
27731
cristy8b350f62009-11-15 23:12:43 +000027732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027733$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027734if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027735 $as_echo_n "(cached) " >&6
27736else
27737 ac_check_lib_save_LIBS=$LIBS
27738LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027740/* end confdefs.h. */
27741
27742/* Override any GCC internal prototype to avoid an error.
27743 Use char because int might match the return type of a GCC
27744 builtin and then its argument prototype would still apply. */
27745#ifdef __cplusplus
27746extern "C"
27747#endif
27748char gztell ();
27749int
27750main ()
27751{
27752return gztell ();
27753 ;
27754 return 0;
27755}
27756_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027757if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027758 ac_cv_lib_z_gztell=yes
27759else
cristy8b350f62009-11-15 23:12:43 +000027760 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027761fi
cristy8b350f62009-11-15 23:12:43 +000027762rm -f core conftest.err conftest.$ac_objext \
27763 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027764LIBS=$ac_check_lib_save_LIBS
27765fi
cristy8b350f62009-11-15 23:12:43 +000027766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027767$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027768if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027769 passed=`expr $passed + 1`
27770else
27771 failed=`expr $failed + 1`
27772fi
27773
cristy8b350f62009-11-15 23:12:43 +000027774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027775$as_echo_n "checking if ZLIB package is complete... " >&6; }
27776 if test $passed -gt 0; then
27777 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027778 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27779$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027780 have_zlib='no (failed tests)'
27781 else
27782 ZLIB_LIBS='-lz'
27783 LIBS="$ZLIB_LIBS $LIBS"
27784
cristy8b350f62009-11-15 23:12:43 +000027785$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027786
cristy09b53e12011-10-14 12:47:22 +000027787 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27788$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027789 have_zlib='yes'
27790 fi
27791 else
cristy09b53e12011-10-14 12:47:22 +000027792 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27793$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027794 fi
27795fi
cristy73bd4a52010-10-05 11:24:23 +000027796 if test "$have_zlib" = 'yes'; then
27797 ZLIB_DELEGATE_TRUE=
27798 ZLIB_DELEGATE_FALSE='#'
27799else
27800 ZLIB_DELEGATE_TRUE='#'
27801 ZLIB_DELEGATE_FALSE=
27802fi
27803
cristy3ed852e2009-09-05 21:47:34 +000027804
27805
cristy5eef09f2012-10-16 12:08:28 +000027806# whether modules are built or not.
27807with_ltdl='yes'
27808have_ltdl='no'
27809LTDL_LIBS=''
27810if test "$build_modules" != 'no' ; then
27811 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27812$as_echo "$as_me: -------------------------------------------------------------" >&6;}
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
27814$as_echo_n "checking for libltdl... " >&6; }
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27816$as_echo "$as_me: " >&6;}
27817 failed=0
27818 passed=0
27819 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
27820if test "x$ac_cv_header_ltdl_h" = xyes; then :
27821 passed=`expr $passed + 1`
27822else
27823 failed=`expr $failed + 1`
27824fi
27825
27826
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
27828$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
27829if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
27830 $as_echo_n "(cached) " >&6
27831else
27832 ac_check_lib_save_LIBS=$LIBS
27833LIBS="-lltdl $LIBS"
27834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27835/* end confdefs.h. */
27836
27837/* Override any GCC internal prototype to avoid an error.
27838 Use char because int might match the return type of a GCC
27839 builtin and then its argument prototype would still apply. */
27840#ifdef __cplusplus
27841extern "C"
27842#endif
27843char lt_dlinit ();
27844int
27845main ()
27846{
27847return lt_dlinit ();
27848 ;
27849 return 0;
27850}
27851_ACEOF
27852if ac_fn_c_try_link "$LINENO"; then :
27853 ac_cv_lib_ltdl_lt_dlinit=yes
27854else
27855 ac_cv_lib_ltdl_lt_dlinit=no
27856fi
27857rm -f core conftest.err conftest.$ac_objext \
27858 conftest$ac_exeext conftest.$ac_ext
27859LIBS=$ac_check_lib_save_LIBS
27860fi
27861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
27862$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
27863if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
27864 passed=`expr $passed + 1`
27865else
27866 failed=`expr $failed + 1`
27867fi
27868
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
27870$as_echo_n "checking if libltdl package is complete... " >&6; }
27871 if test $passed -gt 0 ; then
27872 if test $failed -gt 0 ; then
27873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27874$as_echo "no -- some components failed test" >&6; }
27875 have_ltdl='no (failed tests)'
27876 else
27877 LTDL_LIBS='-lltdl'
27878 LIBS="$LTDL_LIBS $LIBS"
27879
27880$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
27881
27882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27883$as_echo "yes" >&6; }
27884 have_ltdl='yes'
27885 fi
27886 else
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27888$as_echo "no" >&6; }
27889 fi
cristyaf4cbf32012-10-16 23:47:41 +000027890 if test "$have_ltdl" != 'yes' ; then
27891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27893as_fn_error 1 "libltdl is required for modules build
27894See \`config.log' for more details" "$LINENO" 5; }
27895 fi
cristy5eef09f2012-10-16 12:08:28 +000027896fi
27897 if test "$have_ltdl" != 'no'; then
27898 WITH_LTDL_TRUE=
27899 WITH_LTDL_FALSE='#'
27900else
27901 WITH_LTDL_TRUE='#'
27902 WITH_LTDL_FALSE=
27903fi
27904
27905
cristy3ed852e2009-09-05 21:47:34 +000027906#
27907# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27908#
27909LIB_DL=''
27910if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027912$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027913if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027914 $as_echo_n "(cached) " >&6
27915else
27916 ac_check_lib_save_LIBS=$LIBS
27917LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027919/* end confdefs.h. */
27920
27921/* Override any GCC internal prototype to avoid an error.
27922 Use char because int might match the return type of a GCC
27923 builtin and then its argument prototype would still apply. */
27924#ifdef __cplusplus
27925extern "C"
27926#endif
27927char dlopen ();
27928int
27929main ()
27930{
27931return dlopen ();
27932 ;
27933 return 0;
27934}
27935_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027936if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027937 ac_cv_lib_dl_dlopen=yes
27938else
cristy8b350f62009-11-15 23:12:43 +000027939 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027940fi
cristy8b350f62009-11-15 23:12:43 +000027941rm -f core conftest.err conftest.$ac_objext \
27942 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027943LIBS=$ac_check_lib_save_LIBS
27944fi
cristy8b350f62009-11-15 23:12:43 +000027945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027946$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027947if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027948 LIB_DL='-ldl'
27949fi
27950
27951 LIBS="$LIB_DL $LIBS"
27952fi
27953
27954
27955
27956#
27957# Check for Autotrace delegate library.
27958#
27959
27960# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027961if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027962 withval=$with_autotrace; with_autotrace=$withval
27963else
27964 with_autotrace='no'
27965fi
27966
27967
27968if test "$with_autotrace" != 'yes'; then
27969 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27970fi
27971
27972have_autotrace='no'
27973AUTOTRACE_CFLAGS=""
27974AUTOTRACE_LIBS=""
27975AUTOTRACE_PKG=""
27976if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000027977 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27978$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000027979
27980pkg_failed=no
27981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27982$as_echo_n "checking for AUTOTRACE... " >&6; }
27983
27984if test -n "$AUTOTRACE_CFLAGS"; then
27985 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27986 elif test -n "$PKG_CONFIG"; then
27987 if test -n "$PKG_CONFIG" && \
27988 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27989 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27990 ac_status=$?
27991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27992 test $ac_status = 0; }; then
27993 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27994else
27995 pkg_failed=yes
27996fi
27997 else
27998 pkg_failed=untried
27999fi
28000if test -n "$AUTOTRACE_LIBS"; then
28001 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28002 elif test -n "$PKG_CONFIG"; then
28003 if test -n "$PKG_CONFIG" && \
28004 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28005 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28006 ac_status=$?
28007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28008 test $ac_status = 0; }; then
28009 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28010else
28011 pkg_failed=yes
28012fi
28013 else
28014 pkg_failed=untried
28015fi
28016
28017
28018
28019if test $pkg_failed = yes; then
28020
28021if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28022 _pkg_short_errors_supported=yes
28023else
28024 _pkg_short_errors_supported=no
28025fi
28026 if test $_pkg_short_errors_supported = yes; then
28027 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28028 else
28029 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28030 fi
28031 # Put the nasty error message in config.log where it belongs
28032 echo "$AUTOTRACE_PKG_ERRORS" >&5
28033
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28035$as_echo "no" >&6; }
28036 have_autotrace=no
28037elif test $pkg_failed = untried; then
28038 have_autotrace=no
28039else
28040 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28041 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28043$as_echo "yes" >&6; }
28044 have_autotrace=yes
28045fi
cristy09b53e12011-10-14 12:47:22 +000028046 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28047$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028048fi
28049
28050if test "$have_autotrace" = 'yes'; then
28051 failed=0
28052
cristy8b350f62009-11-15 23:12:43 +000028053$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028054
cristyc6722092012-10-14 00:19:31 +000028055 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028056 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28057 fi
28058fi
28059
cristy73bd4a52010-10-05 11:24:23 +000028060 if test "$have_autotrace" = 'yes'; then
28061 AUTOTRACE_DELEGATE_TRUE=
28062 AUTOTRACE_DELEGATE_FALSE='#'
28063else
28064 AUTOTRACE_DELEGATE_TRUE='#'
28065 AUTOTRACE_DELEGATE_FALSE=
28066fi
28067
cristy3ed852e2009-09-05 21:47:34 +000028068
28069
28070
28071
28072#
28073# Check for Display Postscript delegate library.
28074#
28075
28076# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028077if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028078 withval=$with_dps; with_dps=$withval
28079else
28080 with_dps='yes'
28081fi
28082
28083
28084if test "$with_dps" != 'yes'; then
28085 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28086fi
28087
28088have_dps='no'
28089DPS_LIBS=''
28090if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028091 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28092$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028094$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028095 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28096$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028097 failed=0
28098 passed=0
28099 PERSIST_CPPFLAGS="$CPPFLAGS"
28100 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028101 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 +000028102if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028103 passed=`expr $passed + 1`
28104else
28105 failed=`expr $failed + 1`
28106fi
28107
28108
28109 # DPS issues:
28110 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28111 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28112 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28113 # ImageMagick itself doesn't use -lXt.
28114 have_libdps='no'
28115 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028117$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028118if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028119 $as_echo_n "(cached) " >&6
28120else
28121 ac_check_lib_save_LIBS=$LIBS
28122LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028124/* end confdefs.h. */
28125
28126/* Override any GCC internal prototype to avoid an error.
28127 Use char because int might match the return type of a GCC
28128 builtin and then its argument prototype would still apply. */
28129#ifdef __cplusplus
28130extern "C"
28131#endif
28132char DPSInitialize ();
28133int
28134main ()
28135{
28136return DPSInitialize ();
28137 ;
28138 return 0;
28139}
28140_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028141if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028142 ac_cv_lib_dps_DPSInitialize=yes
28143else
cristy8b350f62009-11-15 23:12:43 +000028144 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028145fi
cristy8b350f62009-11-15 23:12:43 +000028146rm -f core conftest.err conftest.$ac_objext \
28147 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028148LIBS=$ac_check_lib_save_LIBS
28149fi
cristy8b350f62009-11-15 23:12:43 +000028150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028151$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028152if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028153 have_libdps='yes'
28154else
28155 have_libdps='no'
28156fi
28157
28158 if test "$have_libdps" != 'yes'; then
28159 # Unset cache variable so we can try again.
28160 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028162$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028163if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028164 $as_echo_n "(cached) " >&6
28165else
28166 ac_check_lib_save_LIBS=$LIBS
28167LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028169/* end confdefs.h. */
28170
28171/* Override any GCC internal prototype to avoid an error.
28172 Use char because int might match the return type of a GCC
28173 builtin and then its argument prototype would still apply. */
28174#ifdef __cplusplus
28175extern "C"
28176#endif
28177char DPSInitialize ();
28178int
28179main ()
28180{
28181return DPSInitialize ();
28182 ;
28183 return 0;
28184}
28185_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028186if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028187 ac_cv_lib_dps_DPSInitialize=yes
28188else
cristy8b350f62009-11-15 23:12:43 +000028189 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028190fi
cristy8b350f62009-11-15 23:12:43 +000028191rm -f core conftest.err conftest.$ac_objext \
28192 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028193LIBS=$ac_check_lib_save_LIBS
28194fi
cristy8b350f62009-11-15 23:12:43 +000028195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028196$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028197if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028198 have_libdps='yes'
28199else
28200 have_libdps='no'
28201fi
28202
28203 if test "$have_libdps" = 'yes'; then
28204 LIBDPS_XT='-lXt'
28205 fi
28206 fi
28207 if test "$have_libdps" = 'yes'; then
28208 passed=`expr $passed + 1`
28209 else
28210 failed=`expr $failed + 1`
28211 fi
cristy8b350f62009-11-15 23:12:43 +000028212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028213$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028214if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028215 $as_echo_n "(cached) " >&6
28216else
28217 ac_check_lib_save_LIBS=$LIBS
28218LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028220/* end confdefs.h. */
28221
28222/* Override any GCC internal prototype to avoid an error.
28223 Use char because int might match the return type of a GCC
28224 builtin and then its argument prototype would still apply. */
28225#ifdef __cplusplus
28226extern "C"
28227#endif
28228char XDPSPixelsPerPoint ();
28229int
28230main ()
28231{
28232return XDPSPixelsPerPoint ();
28233 ;
28234 return 0;
28235}
28236_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028237if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028238 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28239else
cristy8b350f62009-11-15 23:12:43 +000028240 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028241fi
cristy8b350f62009-11-15 23:12:43 +000028242rm -f core conftest.err conftest.$ac_objext \
28243 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028244LIBS=$ac_check_lib_save_LIBS
28245fi
cristy8b350f62009-11-15 23:12:43 +000028246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028247$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028248if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028249 passed=`expr $passed + 1`
28250else
28251 failed=`expr $failed + 1`
28252fi
28253
cristy8b350f62009-11-15 23:12:43 +000028254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028255$as_echo_n "checking if DPS package is complete... " >&6; }
28256 if test $passed -gt 0; then
28257 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028258 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28259$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028260 have_dps='no (failed tests)'
28261 CPPFLAGS="$PERSIST_CPPFLAGS"
28262 else
28263 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28264 LIBS="$DPS_LIBS $LIBS"
28265
cristy8b350f62009-11-15 23:12:43 +000028266$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028267
cristy09b53e12011-10-14 12:47:22 +000028268 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28269$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028270 have_dps='yes'
28271 fi
28272 else
cristy09b53e12011-10-14 12:47:22 +000028273 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28274$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028275 CPPFLAGS=$PERSIST_CPPFLAGS
28276 fi
28277fi
cristy73bd4a52010-10-05 11:24:23 +000028278 if test "$have_dps" = 'yes'; then
28279 DPS_DELEGATE_TRUE=
28280 DPS_DELEGATE_FALSE='#'
28281else
28282 DPS_DELEGATE_TRUE='#'
28283 DPS_DELEGATE_FALSE=
28284fi
28285
cristy3ed852e2009-09-05 21:47:34 +000028286
28287
28288
28289#
28290# Check for DJVU delegate library.
28291#
28292
28293# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028294if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028295 withval=$with_djvu; with_djvu=$withval
28296else
28297 with_djvu='yes'
28298fi
28299
28300
28301if test "$with_djvu" != 'yes'; then
28302 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28303fi
28304
28305have_djvu='no'
28306DJVU_LIBS=''
28307if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028308 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28309$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028311$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028312 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28313$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028314 failed=0
28315 passed=0
cristy8b350f62009-11-15 23:12:43 +000028316 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 +000028317if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028318 passed=`expr $passed + 1`
28319else
28320 failed=`expr $failed + 1`
28321fi
28322
28323
cristy8b350f62009-11-15 23:12:43 +000028324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028325$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028326if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028327 $as_echo_n "(cached) " >&6
28328else
28329 ac_check_lib_save_LIBS=$LIBS
28330LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028332/* end confdefs.h. */
28333
28334/* Override any GCC internal prototype to avoid an error.
28335 Use char because int might match the return type of a GCC
28336 builtin and then its argument prototype would still apply. */
28337#ifdef __cplusplus
28338extern "C"
28339#endif
28340char ddjvu_context_create ();
28341int
28342main ()
28343{
28344return ddjvu_context_create ();
28345 ;
28346 return 0;
28347}
28348_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028349if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028350 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28351else
cristy8b350f62009-11-15 23:12:43 +000028352 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028353fi
cristy8b350f62009-11-15 23:12:43 +000028354rm -f core conftest.err conftest.$ac_objext \
28355 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028356LIBS=$ac_check_lib_save_LIBS
28357fi
cristy8b350f62009-11-15 23:12:43 +000028358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028359$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028360if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028361 passed=`expr $passed + 1`
28362else
28363 failed=`expr $failed + 1`
28364fi
28365
cristy8b350f62009-11-15 23:12:43 +000028366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028367$as_echo_n "checking if DJVU package is complete... " >&6; }
28368 if test $passed -gt 0; then
28369 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028370 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28371$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028372 have_djvu='no (failed tests)'
28373 else
28374 DJVU_LIBS='-ldjvulibre'
28375 LIBS="$DJVU_LIBS $LIBS"
28376
cristy8b350f62009-11-15 23:12:43 +000028377$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028378
cristy09b53e12011-10-14 12:47:22 +000028379 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28380$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028381 have_djvu='yes'
28382 fi
28383 else
cristy09b53e12011-10-14 12:47:22 +000028384 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28385$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028386 fi
28387fi
cristy73bd4a52010-10-05 11:24:23 +000028388 if test "$have_djvu" = 'yes'; then
28389 DJVU_DELEGATE_TRUE=
28390 DJVU_DELEGATE_FALSE='#'
28391else
28392 DJVU_DELEGATE_TRUE='#'
28393 DJVU_DELEGATE_FALSE=
28394fi
28395
cristy3ed852e2009-09-05 21:47:34 +000028396
28397
28398
28399#
cristy430a7312010-01-21 20:44:04 +000028400# Set DejaVu font directory.
28401#
28402
28403# Check whether --with-dejavu-font-dir was given.
28404if test "${with_dejavu_font_dir+set}" = set; then :
28405 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28406else
28407 with_dejavu_font_dir='default'
28408fi
28409
28410
28411if test "$with_dejavu_font_dir" != 'default'; then
28412 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28413fi
28414
28415
28416#
cristy3ed852e2009-09-05 21:47:34 +000028417# Check for FFTW delegate library.
28418#
28419
28420# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028421if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028422 withval=$with_fftw; with_fftw=$withval
28423else
28424 with_fftw='yes'
28425fi
28426
28427
28428if test "$with_fftw" != 'yes'; then
28429 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28430fi
28431
cristy81beccd2011-10-03 18:17:24 +000028432have_fftw='no'
28433FFTW_LIBS=''
28434if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028435 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28436$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28438$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028439 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28440$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028441 failed=0
28442 passed=0
28443 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28444if test "x$ac_cv_header_fftw3_h" = xyes; then :
28445 passed=`expr $passed + 1`
28446else
28447 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028448fi
28449
cristy81beccd2011-10-03 18:17:24 +000028450
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28452$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28453if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28454 $as_echo_n "(cached) " >&6
28455else
28456 ac_check_lib_save_LIBS=$LIBS
28457LIBS="-lfftw3 $LIBS"
28458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28459/* end confdefs.h. */
28460
28461/* Override any GCC internal prototype to avoid an error.
28462 Use char because int might match the return type of a GCC
28463 builtin and then its argument prototype would still apply. */
28464#ifdef __cplusplus
28465extern "C"
28466#endif
28467char fftw_execute ();
28468int
28469main ()
28470{
28471return fftw_execute ();
28472 ;
28473 return 0;
28474}
28475_ACEOF
28476if ac_fn_c_try_link "$LINENO"; then :
28477 ac_cv_lib_fftw3_fftw_execute=yes
28478else
28479 ac_cv_lib_fftw3_fftw_execute=no
28480fi
28481rm -f core conftest.err conftest.$ac_objext \
28482 conftest$ac_exeext conftest.$ac_ext
28483LIBS=$ac_check_lib_save_LIBS
28484fi
28485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28486$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28487if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28488 passed=`expr $passed + 1`
28489else
28490 failed=`expr $failed + 1`
28491fi
28492
28493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28494$as_echo_n "checking if FFTW package is complete... " >&6; }
28495 if test $passed -gt 0; then
28496 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028497 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28498$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028499 have_fftw='no (failed tests)'
28500 else
28501 FFTW_LIBS='-lfftw3'
28502 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028503
cristy8b350f62009-11-15 23:12:43 +000028504$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028505
cristy09b53e12011-10-14 12:47:22 +000028506 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28507$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028508 have_fftw='yes'
28509 fi
28510 else
cristy09b53e12011-10-14 12:47:22 +000028511 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28512$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028513 fi
28514fi
cristy73bd4a52010-10-05 11:24:23 +000028515 if test "$have_fftw" = 'yes'; then
28516 FFTW_DELEGATE_TRUE=
28517 FFTW_DELEGATE_FALSE='#'
28518else
28519 FFTW_DELEGATE_TRUE='#'
28520 FFTW_DELEGATE_FALSE=
28521fi
28522
cristy3ed852e2009-09-05 21:47:34 +000028523
28524
28525
28526#
28527# Check for FlashPIX delegate library.
28528#
28529
28530# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028531if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028532 withval=$with_fpx; with_fpx=$withval
28533else
28534 with_fpx='yes'
28535fi
28536
28537
28538if test "$with_fpx" != 'yes'; then
28539 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28540fi
28541
28542have_fpx='no'
28543FPX_LIBS=''
28544if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028545 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28546$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028548$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028549 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28550$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028551 failed=0
28552 passed=0
28553 ac_ext=cpp
28554ac_cpp='$CXXCPP $CPPFLAGS'
28555ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28556ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28557ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28558
28559
cristy8b350f62009-11-15 23:12:43 +000028560ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028561if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028562 passed=`expr $passed + 1`
28563else
28564 failed=`expr $failed + 1`
28565fi
28566
28567
cristy8b350f62009-11-15 23:12:43 +000028568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028569$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028570if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028571 $as_echo_n "(cached) " >&6
28572else
28573 ac_check_lib_save_LIBS=$LIBS
28574LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028576/* end confdefs.h. */
28577
28578/* Override any GCC internal prototype to avoid an error.
28579 Use char because int might match the return type of a GCC
28580 builtin and then its argument prototype would still apply. */
28581#ifdef __cplusplus
28582extern "C"
28583#endif
28584char FPX_OpenImageByFilename ();
28585int
28586main ()
28587{
28588return FPX_OpenImageByFilename ();
28589 ;
28590 return 0;
28591}
28592_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028593if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028594 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28595else
cristy8b350f62009-11-15 23:12:43 +000028596 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028597fi
cristy8b350f62009-11-15 23:12:43 +000028598rm -f core conftest.err conftest.$ac_objext \
28599 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028600LIBS=$ac_check_lib_save_LIBS
28601fi
cristy8b350f62009-11-15 23:12:43 +000028602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028603$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028604if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028605 passed=`expr $passed + 1`
28606else
28607 failed=`expr $failed + 1`
28608fi
28609
28610 ac_ext=c
28611ac_cpp='$CPP $CPPFLAGS'
28612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28614ac_compiler_gnu=$ac_cv_c_compiler_gnu
28615
cristy8b350f62009-11-15 23:12:43 +000028616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028617$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28618 if test $passed -gt 0; then
28619 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028620 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28621$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028622 have_fpx='no (failed tests)'
28623 else
28624 FPX_LIBS='-lfpx'
28625
cristy8b350f62009-11-15 23:12:43 +000028626$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028627
cristy09b53e12011-10-14 12:47:22 +000028628 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28629$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028630 have_fpx='yes'
28631 PERLMAINCC="$CXX"
28632 fi
28633 else
cristy09b53e12011-10-14 12:47:22 +000028634 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28635$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028636 fi
28637fi
cristy73bd4a52010-10-05 11:24:23 +000028638 if test "$have_fpx" = 'yes'; then
28639 FPX_DELEGATE_TRUE=
28640 FPX_DELEGATE_FALSE='#'
28641else
28642 FPX_DELEGATE_TRUE='#'
28643 FPX_DELEGATE_FALSE=
28644fi
28645
cristy3ed852e2009-09-05 21:47:34 +000028646
28647
28648
28649#
28650# Check for fontconfig delegate library.
28651#
28652
28653# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028654if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028655 withval=$with_fontconfig; with_fontconfig=$withval
28656else
cristyfc3d0222012-02-07 15:05:57 +000028657 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028658fi
28659
28660
28661if test "$with_fontconfig" != 'yes'; then
28662 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28663fi
28664
28665have_fontconfig='no'
28666FONTCONFIG_CFLAGS=""
28667FONTCONFIG_LIBS=""
28668FONTCONFIG_PKG=""
28669if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028670 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28671$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028672
28673pkg_failed=no
28674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28675$as_echo_n "checking for FONTCONFIG... " >&6; }
28676
28677if test -n "$FONTCONFIG_CFLAGS"; then
28678 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28679 elif test -n "$PKG_CONFIG"; then
28680 if test -n "$PKG_CONFIG" && \
28681 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28682 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28683 ac_status=$?
28684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28685 test $ac_status = 0; }; then
28686 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28687else
28688 pkg_failed=yes
28689fi
28690 else
28691 pkg_failed=untried
28692fi
28693if test -n "$FONTCONFIG_LIBS"; then
28694 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28695 elif test -n "$PKG_CONFIG"; then
28696 if test -n "$PKG_CONFIG" && \
28697 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28698 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28699 ac_status=$?
28700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28701 test $ac_status = 0; }; then
28702 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28703else
28704 pkg_failed=yes
28705fi
28706 else
28707 pkg_failed=untried
28708fi
28709
28710
28711
28712if test $pkg_failed = yes; then
28713
28714if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28715 _pkg_short_errors_supported=yes
28716else
28717 _pkg_short_errors_supported=no
28718fi
28719 if test $_pkg_short_errors_supported = yes; then
28720 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28721 else
28722 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28723 fi
28724 # Put the nasty error message in config.log where it belongs
28725 echo "$FONTCONFIG_PKG_ERRORS" >&5
28726
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28728$as_echo "no" >&6; }
28729 have_fontconfig=no
28730elif test $pkg_failed = untried; then
28731 have_fontconfig=no
28732else
28733 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28734 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28736$as_echo "yes" >&6; }
28737 have_fontconfig=yes
28738fi
cristy09b53e12011-10-14 12:47:22 +000028739 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28740$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028741fi
28742
28743if test "$have_fontconfig" = 'yes'; then
28744
cristy8b350f62009-11-15 23:12:43 +000028745$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028746
cristyc6722092012-10-14 00:19:31 +000028747 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028748 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028749 fi
cristy3ed852e2009-09-05 21:47:34 +000028750fi
28751
cristy73bd4a52010-10-05 11:24:23 +000028752 if test "$have_fontconfig" = 'yes'; then
28753 FONTCONFIG_DELEGATE_TRUE=
28754 FONTCONFIG_DELEGATE_FALSE='#'
28755else
28756 FONTCONFIG_DELEGATE_TRUE='#'
28757 FONTCONFIG_DELEGATE_FALSE=
28758fi
28759
cristy3ed852e2009-09-05 21:47:34 +000028760
28761
28762
28763
28764#
cristy81beccd2011-10-03 18:17:24 +000028765# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028766#
28767
28768# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028769if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028770 withval=$with_freetype; with_freetype=$withval
28771else
28772 with_freetype='yes'
28773fi
28774
28775
cristy81beccd2011-10-03 18:17:24 +000028776
cristy3ed852e2009-09-05 21:47:34 +000028777if test "$with_freetype" != 'yes'; then
28778 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28779fi
28780
cristy81beccd2011-10-03 18:17:24 +000028781have_freetype='no'
28782FREETYPE_LIBS=''
28783if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028784 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28785$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28787$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028788 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28789$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028790 failed=0
28791 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028792 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028793 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028794 freetype_config=''
28795 # Allow the user to specify the location of freetype.
28796 if test "$with_freetype" != 'yes'; then
28797 if test -x "${with_freetype}/bin/freetype-config"; then
28798 freetype_config="${with_freetype}/bin/freetype-config"
28799 elif test -x "${with_freetype}"; then
28800 freetype_config=${with_freetype}
28801 fi
28802 fi
28803 if test -z "$freetype_config"; then
28804 # Extract the first word of "freetype-config", so it can be a program name with args.
28805set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28807$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028808if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028809 $as_echo_n "(cached) " >&6
28810else
cristy98ca0f52011-10-08 23:19:10 +000028811 case $freetype_config in
28812 [\\/]* | ?:[\\/]*)
28813 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28814 ;;
28815 *)
28816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028817for as_dir in $PATH
28818do
28819 IFS=$as_save_IFS
28820 test -z "$as_dir" && as_dir=.
28821 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000028822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000028823 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28825 break 2
28826 fi
28827done
28828 done
28829IFS=$as_save_IFS
28830
cristy98ca0f52011-10-08 23:19:10 +000028831 ;;
28832esac
cristy81beccd2011-10-03 18:17:24 +000028833fi
cristy98ca0f52011-10-08 23:19:10 +000028834freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028835if test -n "$freetype_config"; then
28836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28837$as_echo "$freetype_config" >&6; }
28838else
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28840$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028841fi
28842
cristy98ca0f52011-10-08 23:19:10 +000028843 fi
28844 if test -n "$freetype_config"; then
28845 freetype_prefix=`${freetype_config} --prefix`
28846 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28847 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28848 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028849 fi
28850
28851 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028853$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28854if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28855 $as_echo_n "(cached) " >&6
28856else
28857 ac_check_lib_save_LIBS=$LIBS
28858LIBS="-lfreetype $LIBS"
28859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28860/* end confdefs.h. */
28861
28862/* Override any GCC internal prototype to avoid an error.
28863 Use char because int might match the return type of a GCC
28864 builtin and then its argument prototype would still apply. */
28865#ifdef __cplusplus
28866extern "C"
28867#endif
28868char FT_Init_FreeType ();
28869int
28870main ()
28871{
28872return FT_Init_FreeType ();
28873 ;
28874 return 0;
28875}
28876_ACEOF
28877if ac_fn_c_try_link "$LINENO"; then :
28878 ac_cv_lib_freetype_FT_Init_FreeType=yes
28879else
28880 ac_cv_lib_freetype_FT_Init_FreeType=no
28881fi
28882rm -f core conftest.err conftest.$ac_objext \
28883 conftest$ac_exeext conftest.$ac_ext
28884LIBS=$ac_check_lib_save_LIBS
28885fi
28886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28887$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28888if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28889 FREETYPE_LIBS='-lfreetype'
28890fi
28891
cristy98ca0f52011-10-08 23:19:10 +000028892 if test "$FREETYPE_LIBS" != ''; then
28893 passed=`expr $passed + 1`
28894 else
28895 failed=`expr $failed + 1`
28896 LDFLAGS="$PERSIST_LDFLAGS"
28897 fi
cristy81beccd2011-10-03 18:17:24 +000028898 fi
28899
28900 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28901if test "x$ac_cv_header_ft2build_h" = xyes; then :
28902 FT2BUILD_H='#include <ft2build.h>'
28903else
28904 ft2build=''
28905fi
28906
28907
28908 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28909"
28910if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28911 have_freetype_h='yes'
28912else
28913 have_freetype_h='no'
28914fi
28915
28916
cristy98ca0f52011-10-08 23:19:10 +000028917 if test "$have_freetype_h" = 'yes'; then
28918 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000028919 else
cristy98ca0f52011-10-08 23:19:10 +000028920 failed=`expr $failed + 1`
28921 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028922 fi
28923
28924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28925$as_echo_n "checking if FreeType package is complete... " >&6; }
28926 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000028927 if test $failed -gt 0; then
28928 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000028929 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28930$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028931 have_freetype='no (failed tests)'
28932 else
28933 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028934
cristy8b350f62009-11-15 23:12:43 +000028935$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028936
cristy98ca0f52011-10-08 23:19:10 +000028937 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000028938
28939$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28940
cristy81beccd2011-10-03 18:17:24 +000028941 fi
cristy09b53e12011-10-14 12:47:22 +000028942 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28943$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028944 have_freetype='yes'
28945 fi
cristy81beccd2011-10-03 18:17:24 +000028946 else
cristy09b53e12011-10-14 12:47:22 +000028947 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28948$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028949 fi
28950fi
cristy73bd4a52010-10-05 11:24:23 +000028951 if test "$have_freetype" = 'yes'; then
28952 FREETYPE_DELEGATE_TRUE=
28953 FREETYPE_DELEGATE_FALSE='#'
28954else
28955 FREETYPE_DELEGATE_TRUE='#'
28956 FREETYPE_DELEGATE_FALSE=
28957fi
28958
cristy3ed852e2009-09-05 21:47:34 +000028959
28960
28961
cristy3ed852e2009-09-05 21:47:34 +000028962#
28963# Check for Ghostscript library or framework.
28964#
28965# Test for iapi.h & test for gsapi_new_instance in -lgs
28966# or -framework Ghostscript
28967
28968
28969# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028970if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028971 withval=$with_gslib; with_gslib=$withval
28972else
28973 with_gslib='no'
28974fi
28975
28976
cristyb7931f12009-09-25 10:22:21 +000028977gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028978if test "$with_gslib" != 'yes'; then
28979 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28980fi
28981
28982have_gslib='no'
28983GS_LIBS=''
28984if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028985 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28986$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028988$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028989 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28990$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000028991 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028992 failed=0
28993 passed=0
cristy8b350f62009-11-15 23:12:43 +000028994 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 +000028995if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028996 passed=`expr $passed + 1`
28997else
28998 failed=`expr $failed + 1`
28999fi
29000
29001
cristy8b350f62009-11-15 23:12:43 +000029002 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 +000029003if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029004 passed=`expr $passed + 1`
29005else
29006 failed=`expr $failed + 1`
29007fi
29008
29009
cristy73bd4a52010-10-05 11:24:23 +000029010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29011$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029012if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029013 $as_echo_n "(cached) " >&6
29014else
29015 ac_check_framework_save_LIBS=$LIBS
29016LIBS="-framework Ghostscript $LIBS"
29017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29018/* end confdefs.h. */
29019
29020/* Override any GCC internal prototype to avoid an error.
29021 Use char because int might match the return type of a GCC
29022 builtin and then its argument prototype would still apply. */
29023#ifdef __cplusplus
29024extern "C"
29025#endif
29026char gsapi_new_instance ();
29027int
29028main ()
29029{
29030return gsapi_new_instance ();
29031 ;
29032 return 0;
29033}
29034_ACEOF
29035if ac_fn_c_try_link "$LINENO"; then :
29036 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29037else
29038 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29039fi
29040rm -f core conftest.err conftest.$ac_objext \
29041 conftest$ac_exeext conftest.$ac_ext
29042LIBS=$ac_check_framework_save_LIBS
29043fi
29044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29045$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29046if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29047 framework=`expr $framework + 1`
29048else
29049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029050$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029051if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029052 $as_echo_n "(cached) " >&6
29053else
29054 ac_check_lib_save_LIBS=$LIBS
29055LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029057/* end confdefs.h. */
29058
29059/* Override any GCC internal prototype to avoid an error.
29060 Use char because int might match the return type of a GCC
29061 builtin and then its argument prototype would still apply. */
29062#ifdef __cplusplus
29063extern "C"
29064#endif
29065char gsapi_new_instance ();
29066int
29067main ()
29068{
29069return gsapi_new_instance ();
29070 ;
29071 return 0;
29072}
29073_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029074if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029075 ac_cv_lib_gs_gsapi_new_instance=yes
29076else
cristy8b350f62009-11-15 23:12:43 +000029077 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029078fi
cristy8b350f62009-11-15 23:12:43 +000029079rm -f core conftest.err conftest.$ac_objext \
29080 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029081LIBS=$ac_check_lib_save_LIBS
29082fi
cristy8b350f62009-11-15 23:12:43 +000029083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029084$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029085if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029086 passed=`expr $passed + 1`
29087else
29088 failed=`expr $failed + 1`
29089fi
cristy73bd4a52010-10-05 11:24:23 +000029090
29091fi
cristy8b350f62009-11-15 23:12:43 +000029092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029093$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29094 if test $passed -gt 0; then
29095 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029096 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29097$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029098 have_gslib='no (failed tests)'
29099 else
29100 if test $framework -gt 0; then
29101 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029102 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029103 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29104$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029105 else
cristy09b53e12011-10-14 12:47:22 +000029106 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29107$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029108 GS_LIBS='-lgs'
29109 fi
29110 LIBS="$GS_LIBS $LIBS"
29111
cristy8b350f62009-11-15 23:12:43 +000029112$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029113
29114 have_gslib='yes'
29115 fi
29116 else
cristy09b53e12011-10-14 12:47:22 +000029117 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29118$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029119 fi
29120fi
cristy73bd4a52010-10-05 11:24:23 +000029121 if test "$have_gslib" = 'yes'; then
29122 GS_DELEGATE_TRUE=
29123 GS_DELEGATE_FALSE='#'
29124else
29125 GS_DELEGATE_TRUE='#'
29126 GS_DELEGATE_FALSE=
29127fi
29128
cristy3ed852e2009-09-05 21:47:34 +000029129
29130
29131# Set default font search path
29132
29133# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029134if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029135 withval=$with_fontpath; with_fontpath=$withval
29136else
29137 with_fontpath=''
29138fi
29139
29140
29141if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29142 with_fontpath=''
29143else
29144
29145cat >>confdefs.h <<_ACEOF
29146#define MAGICK_FONT_PATH "$with_fontpath"
29147_ACEOF
29148
29149fi
29150if test "$with_fontpath=" != ''; then
29151 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29152fi
29153
29154# Set Ghostscript font directory
29155
29156# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029157if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029158 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29159else
29160 with_gs_font_dir='default'
29161fi
29162
29163
29164if test "$with_gs_font_dir" != 'default'; then
29165 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29166fi
29167
29168
29169#
29170# Check for GVC delegate library.
29171#
29172
29173# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029174if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029175 withval=$with_gvc; with_gvc=$withval
29176else
cristy1b70dc82012-07-01 23:15:05 +000029177 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029178fi
29179
29180
29181if test "$with_gvc" != 'yes'; then
29182 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29183fi
29184
29185GVC_PKG=""
29186if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029187 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29188$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029189
29190pkg_failed=no
29191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29192$as_echo_n "checking for GVC... " >&6; }
29193
29194if test -n "$GVC_CFLAGS"; then
29195 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29196 elif test -n "$PKG_CONFIG"; then
29197 if test -n "$PKG_CONFIG" && \
29198 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29199 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29200 ac_status=$?
29201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29202 test $ac_status = 0; }; then
29203 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29204else
29205 pkg_failed=yes
29206fi
29207 else
29208 pkg_failed=untried
29209fi
29210if test -n "$GVC_LIBS"; then
29211 pkg_cv_GVC_LIBS="$GVC_LIBS"
29212 elif test -n "$PKG_CONFIG"; then
29213 if test -n "$PKG_CONFIG" && \
29214 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29215 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29216 ac_status=$?
29217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29218 test $ac_status = 0; }; then
29219 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29220else
29221 pkg_failed=yes
29222fi
29223 else
29224 pkg_failed=untried
29225fi
29226
29227
29228
29229if test $pkg_failed = yes; then
29230
29231if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29232 _pkg_short_errors_supported=yes
29233else
29234 _pkg_short_errors_supported=no
29235fi
29236 if test $_pkg_short_errors_supported = yes; then
29237 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29238 else
29239 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29240 fi
29241 # Put the nasty error message in config.log where it belongs
29242 echo "$GVC_PKG_ERRORS" >&5
29243
29244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29245$as_echo "no" >&6; }
29246 have_gvc=no
29247elif test $pkg_failed = untried; then
29248 have_gvc=no
29249else
29250 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29251 GVC_LIBS=$pkg_cv_GVC_LIBS
29252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29253$as_echo "yes" >&6; }
29254 have_gvc=yes
29255fi
cristy09b53e12011-10-14 12:47:22 +000029256 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29257$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029258fi
29259
29260if test "$have_gvc" = 'yes'; then
29261
cristy8b350f62009-11-15 23:12:43 +000029262$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029263
cristyc6722092012-10-14 00:19:31 +000029264 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029265 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29266 fi
29267fi
29268
cristy73bd4a52010-10-05 11:24:23 +000029269 if test "$have_gvc" = 'yes'; then
29270 GVC_DELEGATE_TRUE=
29271 GVC_DELEGATE_FALSE='#'
29272else
29273 GVC_DELEGATE_TRUE='#'
29274 GVC_DELEGATE_FALSE=
29275fi
29276
cristy3ed852e2009-09-05 21:47:34 +000029277
29278
29279
29280
29281#
29282# Check for JBIG delegate library.
29283#
29284
29285
29286# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029287if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029288 withval=$with_jbig; with_jbig=$withval
29289else
29290 with_jbig='yes'
29291fi
29292
29293
29294have_jbig='no'
29295JBIG_LIBS=''
29296if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029297 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29298$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029300$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029301 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29302$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029303 failed=0
29304 passed=0
cristy8b350f62009-11-15 23:12:43 +000029305 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029306if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029307 passed=`expr $passed + 1`
29308else
29309 failed=`expr $failed + 1`
29310fi
29311
29312
cristy8b350f62009-11-15 23:12:43 +000029313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029314$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029315if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029316 $as_echo_n "(cached) " >&6
29317else
29318 ac_check_lib_save_LIBS=$LIBS
29319LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029321/* end confdefs.h. */
29322
29323/* Override any GCC internal prototype to avoid an error.
29324 Use char because int might match the return type of a GCC
29325 builtin and then its argument prototype would still apply. */
29326#ifdef __cplusplus
29327extern "C"
29328#endif
29329char jbg_dec_init ();
29330int
29331main ()
29332{
29333return jbg_dec_init ();
29334 ;
29335 return 0;
29336}
29337_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029338if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029339 ac_cv_lib_jbig_jbg_dec_init=yes
29340else
cristy8b350f62009-11-15 23:12:43 +000029341 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029342fi
cristy8b350f62009-11-15 23:12:43 +000029343rm -f core conftest.err conftest.$ac_objext \
29344 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029345LIBS=$ac_check_lib_save_LIBS
29346fi
cristy8b350f62009-11-15 23:12:43 +000029347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029348$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029349if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029350 passed=`expr $passed + 1`
29351else
29352 failed=`expr $failed + 1`
29353fi
29354
cristy8b350f62009-11-15 23:12:43 +000029355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029356$as_echo_n "checking if JBIG package is complete... " >&6; }
29357 if test $passed -gt 0; then
29358 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029359 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29360$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029361 have_jbig='no (failed tests)'
29362 else
29363 JBIG_LIBS='-ljbig'
29364 LIBS="$JBIG_LIBS $LIBS"
29365
cristy8b350f62009-11-15 23:12:43 +000029366$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029367
cristy09b53e12011-10-14 12:47:22 +000029368 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29369$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029370 have_jbig='yes'
29371 fi
29372 else
cristy09b53e12011-10-14 12:47:22 +000029373 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29374$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029375 fi
29376fi
cristy73bd4a52010-10-05 11:24:23 +000029377 if test "$have_jbig" = 'yes'; then
29378 JBIG_DELEGATE_TRUE=
29379 JBIG_DELEGATE_FALSE='#'
29380else
29381 JBIG_DELEGATE_TRUE='#'
29382 JBIG_DELEGATE_FALSE=
29383fi
29384
cristy3ed852e2009-09-05 21:47:34 +000029385
29386
29387
29388#
29389# Check for JPEG delegate library.
29390#
29391
29392# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029393if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029394 withval=$with_jpeg; with_jpeg=$withval
29395else
29396 with_jpeg='yes'
29397fi
29398
29399
29400if test "$with_jpeg" != 'yes'; then
29401 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29402fi
29403
29404have_jpeg='no'
29405JPEG_LIBS=''
29406if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029407 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29408$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029410$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029411 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29412$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029413 failed=0
29414 passed=0
cristy8b350f62009-11-15 23:12:43 +000029415 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029416if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029417 passed=`expr $passed + 1`
29418else
29419 failed=`expr $failed + 1`
29420fi
29421
29422
cristy8b350f62009-11-15 23:12:43 +000029423 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029424if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029425 passed=`expr $passed + 1`
29426else
29427 failed=`expr $failed + 1`
29428fi
29429
29430
cristy8b350f62009-11-15 23:12:43 +000029431 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029432if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029433 passed=`expr $passed + 1`
29434else
29435 failed=`expr $failed + 1`
29436fi
29437
29438
cristy8b350f62009-11-15 23:12:43 +000029439 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029440if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029441 passed=`expr $passed + 1`
29442else
29443 failed=`expr $failed + 1`
29444fi
29445
29446
cristy8b350f62009-11-15 23:12:43 +000029447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029448$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029449if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029450 $as_echo_n "(cached) " >&6
29451else
29452 ac_check_lib_save_LIBS=$LIBS
29453LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029455/* end confdefs.h. */
29456
29457/* Override any GCC internal prototype to avoid an error.
29458 Use char because int might match the return type of a GCC
29459 builtin and then its argument prototype would still apply. */
29460#ifdef __cplusplus
29461extern "C"
29462#endif
29463char jpeg_read_header ();
29464int
29465main ()
29466{
29467return jpeg_read_header ();
29468 ;
29469 return 0;
29470}
29471_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029472if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029473 ac_cv_lib_jpeg_jpeg_read_header=yes
29474else
cristy8b350f62009-11-15 23:12:43 +000029475 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029476fi
cristy8b350f62009-11-15 23:12:43 +000029477rm -f core conftest.err conftest.$ac_objext \
29478 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029479LIBS=$ac_check_lib_save_LIBS
29480fi
cristy8b350f62009-11-15 23:12:43 +000029481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029482$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029483if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029484 passed=`expr $passed + 1`
29485else
29486 failed=`expr $failed + 1`
29487fi
29488
29489
29490# Test for compatible JPEG library
29491if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029493$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029494if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029495 $as_echo_n "(cached) " >&6
29496else
cristy8b350f62009-11-15 23:12:43 +000029497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029498/* end confdefs.h. */
29499#include <stdio.h>
29500#include <stdlib.h>
29501#include <jpeglib.h>
29502
29503int
29504main ()
29505{
29506
29507#if JPEG_LIB_VERSION < 62
29508#error IJG JPEG library must be version 6b or newer!
29509#endif
29510return 0;
29511
29512 ;
29513 return 0;
29514}
29515_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029516if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029517 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29518else
cristy8b350f62009-11-15 23:12:43 +000029519 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029520fi
cristy3ed852e2009-09-05 21:47:34 +000029521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29522fi
cristy8b350f62009-11-15 23:12:43 +000029523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029524$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29525fi
cristy8b350f62009-11-15 23:12:43 +000029526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029527$as_echo_n "checking if JPEG package is complete... " >&6; }
29528 if test $passed -gt 0; then
29529 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029530 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29531$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029532 have_jpeg='no (failed tests)'
29533 else
29534 JPEG_LIBS='-ljpeg'
29535 LIBS="$JPEG_LIBS $LIBS"
29536
cristy8b350f62009-11-15 23:12:43 +000029537$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029538
cristy09b53e12011-10-14 12:47:22 +000029539 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29540$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029541 have_jpeg='yes'
29542 fi
29543 else
cristy09b53e12011-10-14 12:47:22 +000029544 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29545$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029546 fi
29547fi
cristy73bd4a52010-10-05 11:24:23 +000029548 if test "$have_jpeg" = 'yes'; then
29549 JPEG_DELEGATE_TRUE=
29550 JPEG_DELEGATE_FALSE='#'
29551else
29552 JPEG_DELEGATE_TRUE='#'
29553 JPEG_DELEGATE_FALSE=
29554fi
29555
cristy3ed852e2009-09-05 21:47:34 +000029556
29557
29558
29559#
29560# Check for JPEG Version 2 delegate library.
29561#
29562
29563# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029564if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029565 withval=$with_jp2; with_jp2=$withval
29566else
29567 with_jp2='yes'
29568fi
29569
29570
29571if test "$with_jp2" != 'yes'; then
29572 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29573fi
29574
29575have_jp2='no'
29576JP2_LIBS=''
29577if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029578 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29579$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029581$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029582 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29583$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029584 failed=0
29585 passed=0
cristy8b350f62009-11-15 23:12:43 +000029586 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 +000029587if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029588 passed=`expr $passed + 1`
29589else
29590 failed=`expr $failed + 1`
29591fi
29592
29593
cristy8b350f62009-11-15 23:12:43 +000029594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029595$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029596if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029597 $as_echo_n "(cached) " >&6
29598else
29599 ac_check_lib_save_LIBS=$LIBS
29600LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029602/* end confdefs.h. */
29603
29604/* Override any GCC internal prototype to avoid an error.
29605 Use char because int might match the return type of a GCC
29606 builtin and then its argument prototype would still apply. */
29607#ifdef __cplusplus
29608extern "C"
29609#endif
29610char jas_stream_fopen ();
29611int
29612main ()
29613{
29614return jas_stream_fopen ();
29615 ;
29616 return 0;
29617}
29618_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029619if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029620 ac_cv_lib_jasper_jas_stream_fopen=yes
29621else
cristy8b350f62009-11-15 23:12:43 +000029622 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029623fi
cristy8b350f62009-11-15 23:12:43 +000029624rm -f core conftest.err conftest.$ac_objext \
29625 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029626LIBS=$ac_check_lib_save_LIBS
29627fi
cristy8b350f62009-11-15 23:12:43 +000029628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029629$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029630if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029631 passed=`expr $passed + 1`
29632else
29633 failed=`expr $failed + 1`
29634fi
29635
cristy8b350f62009-11-15 23:12:43 +000029636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029637$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29638 if test $passed -gt 0; then
29639 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029640 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29641$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029642 have_jp2='no (failed tests)'
29643 else
29644 JP2_LIBS='-ljasper'
29645 LIBS="$JP2_LIBS $LIBS"
29646
cristy8b350f62009-11-15 23:12:43 +000029647$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029648
cristy09b53e12011-10-14 12:47:22 +000029649 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29650$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029651 have_jp2='yes'
29652 fi
29653 else
cristy09b53e12011-10-14 12:47:22 +000029654 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29655$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029656 fi
29657fi
cristy73bd4a52010-10-05 11:24:23 +000029658 if test "$have_jp2" = 'yes'; then
29659 JP2_DELEGATE_TRUE=
29660 JP2_DELEGATE_FALSE='#'
29661else
29662 JP2_DELEGATE_TRUE='#'
29663 JP2_DELEGATE_FALSE=
29664fi
29665
cristy3ed852e2009-09-05 21:47:34 +000029666
29667
29668
29669#
29670# Check for LCMS delegate library.
29671#
cristy71203402010-06-18 13:12:03 +000029672# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029673
29674# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029675if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029676 withval=$with_lcms; with_lcms=$withval
29677else
29678 with_lcms='yes'
29679fi
29680
cristy71203402010-06-18 13:12:03 +000029681if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029682 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29683fi
29684
cristy71203402010-06-18 13:12:03 +000029685# Disable LCMS2.
29686
29687# Check whether --with-lcms2 was given.
29688if test "${with_lcms2+set}" = set; then :
29689 withval=$with_lcms2; with_lcms2=$withval
29690else
29691 with_lcms2='yes'
29692fi
29693
29694if test "$with_lcms2" != 'yes' ; then
29695 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29696fi
29697
29698have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029699LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029700if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029701 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29702$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29704$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029705 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29706$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029707 failed=0
29708 passed=0
29709 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029710
29711 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029712 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029713if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029714 have_lcms_header='yes'
29715fi
29716
29717
29718 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029719
29720$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29721
cristy71203402010-06-18 13:12:03 +000029722 passed=`expr $passed + 1`
29723 fi
29724
29725 # Check for <lcms2/lcms2.h)
29726 if test "$have_lcms_header" != 'yes'; then
29727 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 +000029728if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029729 have_lcms_header='yes'
29730fi
29731
29732
cristy71203402010-06-18 13:12:03 +000029733 if test "$have_lcms_header" = 'yes'; then
29734 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029735
cristy71203402010-06-18 13:12:03 +000029736$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029737
cristy71203402010-06-18 13:12:03 +000029738 fi
cristyd09bcf92010-03-25 03:04:45 +000029739 fi
cristy71203402010-06-18 13:12:03 +000029740
29741 # Failed to find lcms header?
29742 if test "$have_lcms_header" != 'yes'; then
29743 failed=`expr $failed + 1`
29744 fi
29745
29746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29747$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029748if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029749 $as_echo_n "(cached) " >&6
29750else
29751 ac_check_lib_save_LIBS=$LIBS
29752LIBS="-llcms2 $LIBS"
29753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29754/* end confdefs.h. */
29755
29756/* Override any GCC internal prototype to avoid an error.
29757 Use char because int might match the return type of a GCC
29758 builtin and then its argument prototype would still apply. */
29759#ifdef __cplusplus
29760extern "C"
29761#endif
cristy71203402010-06-18 13:12:03 +000029762char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029763int
29764main ()
29765{
cristy71203402010-06-18 13:12:03 +000029766return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029767 ;
29768 return 0;
29769}
29770_ACEOF
29771if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029772 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029773else
cristy71203402010-06-18 13:12:03 +000029774 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029775fi
29776rm -f core conftest.err conftest.$ac_objext \
29777 conftest$ac_exeext conftest.$ac_ext
29778LIBS=$ac_check_lib_save_LIBS
29779fi
cristy71203402010-06-18 13:12:03 +000029780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29781$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029782if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029783 passed=`expr $passed + 1`
29784else
29785 failed=`expr $failed + 1`
29786fi
29787
cristy71203402010-06-18 13:12:03 +000029788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29789$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029790 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029791 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029792 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29793$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029794 have_lcms2='no (failed tests)'
29795 else
29796 LCMS_LIBS='-llcms2'
29797 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029798 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29799$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029800 have_lcms2='yes'
29801 fi
cristyd09bcf92010-03-25 03:04:45 +000029802 else
cristy09b53e12011-10-14 12:47:22 +000029803 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29804$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029805 fi
29806fi
29807
cristy71203402010-06-18 13:12:03 +000029808#
29809# Check for LCMS v1 (1.11 or later)
29810#
29811if test $have_lcms2 = 'yes'; then
29812 with_lcms='no'
29813fi
29814
29815have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029816if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029817 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29818$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29820$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029821 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29822$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029823 failed=0
29824 passed=0
29825 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029826
29827 # Check for <lcms.h>
29828 if test "$have_lcms_header" != 'yes'; then
29829 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029830if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029831 have_lcms_header='yes'
29832fi
29833
29834
cristy71203402010-06-18 13:12:03 +000029835 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029836 passed=`expr $passed + 1`
29837
cristy8b350f62009-11-15 23:12:43 +000029838$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029839
cristy71203402010-06-18 13:12:03 +000029840 fi
29841 fi
29842
29843 # Check for <lcms/lcms.h>
29844 if test "$have_lcms_header" != 'yes'; then
29845 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 +000029846if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029847 have_lcms_header='yes'
29848fi
29849
29850
cristy71203402010-06-18 13:12:03 +000029851 if test "$have_lcms_header" = 'yes'; then
29852 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029853
cristy8b350f62009-11-15 23:12:43 +000029854$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029855
cristy71203402010-06-18 13:12:03 +000029856 fi
cristy3ed852e2009-09-05 21:47:34 +000029857 fi
cristy71203402010-06-18 13:12:03 +000029858
29859 # Failed to find lcms header?
29860 if test "$have_lcms_header" != 'yes'; then
29861 failed=`expr $failed + 1`
29862 fi
29863
29864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29865$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029866if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029867 $as_echo_n "(cached) " >&6
29868else
29869 ac_check_lib_save_LIBS=$LIBS
29870LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029872/* end confdefs.h. */
29873
29874/* Override any GCC internal prototype to avoid an error.
29875 Use char because int might match the return type of a GCC
29876 builtin and then its argument prototype would still apply. */
29877#ifdef __cplusplus
29878extern "C"
29879#endif
cristy71203402010-06-18 13:12:03 +000029880char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029881int
29882main ()
29883{
cristy71203402010-06-18 13:12:03 +000029884return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029885 ;
29886 return 0;
29887}
29888_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029889if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029890 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029891else
cristy71203402010-06-18 13:12:03 +000029892 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029893fi
cristy8b350f62009-11-15 23:12:43 +000029894rm -f core conftest.err conftest.$ac_objext \
29895 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029896LIBS=$ac_check_lib_save_LIBS
29897fi
cristy71203402010-06-18 13:12:03 +000029898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29899$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029900if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029901 passed=`expr $passed + 1`
29902else
29903 failed=`expr $failed + 1`
29904fi
29905
cristy8b350f62009-11-15 23:12:43 +000029906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029907$as_echo_n "checking if LCMS package is complete... " >&6; }
29908 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029909 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029910 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29911$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029912 have_lcms='no (failed tests)'
29913 else
29914 LCMS_LIBS='-llcms'
29915 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029916 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29917$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029918 have_lcms='yes'
29919 fi
cristy3ed852e2009-09-05 21:47:34 +000029920 else
cristy09b53e12011-10-14 12:47:22 +000029921 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29922$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029923 fi
29924fi
cristy71203402010-06-18 13:12:03 +000029925
cristy73bd4a52010-10-05 11:24:23 +000029926 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29927 LCMS_DELEGATE_TRUE=
29928 LCMS_DELEGATE_FALSE='#'
29929else
29930 LCMS_DELEGATE_TRUE='#'
29931 LCMS_DELEGATE_FALSE=
29932fi
29933
cristy71203402010-06-18 13:12:03 +000029934if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29935
29936$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29937
29938fi
29939
cristy3ed852e2009-09-05 21:47:34 +000029940
29941
29942
29943#
29944# Check for the LQR (Liquid Rescale) delegate library.
29945#
29946
29947# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029948if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029949 withval=$with_lqr; with_lqr=$withval
29950else
29951 with_lqr='yes'
29952fi
29953
29954
29955if test "$with_lqr" != 'yes'; then
29956 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29957fi
29958
29959have_lqr='no'
29960LQR_CFLAGS=""
29961LQR_LIBS=""
29962LQR_PKG=""
29963if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029964 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29965$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029966
29967pkg_failed=no
29968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29969$as_echo_n "checking for LQR... " >&6; }
29970
29971if test -n "$LQR_CFLAGS"; then
29972 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29973 elif test -n "$PKG_CONFIG"; then
29974 if test -n "$PKG_CONFIG" && \
29975 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29976 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29977 ac_status=$?
29978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29979 test $ac_status = 0; }; then
29980 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29981else
29982 pkg_failed=yes
29983fi
29984 else
29985 pkg_failed=untried
29986fi
29987if test -n "$LQR_LIBS"; then
29988 pkg_cv_LQR_LIBS="$LQR_LIBS"
29989 elif test -n "$PKG_CONFIG"; then
29990 if test -n "$PKG_CONFIG" && \
29991 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29992 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29993 ac_status=$?
29994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29995 test $ac_status = 0; }; then
29996 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29997else
29998 pkg_failed=yes
29999fi
30000 else
30001 pkg_failed=untried
30002fi
30003
30004
30005
30006if test $pkg_failed = yes; then
30007
30008if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30009 _pkg_short_errors_supported=yes
30010else
30011 _pkg_short_errors_supported=no
30012fi
30013 if test $_pkg_short_errors_supported = yes; then
30014 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30015 else
30016 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30017 fi
30018 # Put the nasty error message in config.log where it belongs
30019 echo "$LQR_PKG_ERRORS" >&5
30020
30021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30022$as_echo "no" >&6; }
30023 have_lqr=no
30024elif test $pkg_failed = untried; then
30025 have_lqr=no
30026else
30027 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30028 LQR_LIBS=$pkg_cv_LQR_LIBS
30029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30030$as_echo "yes" >&6; }
30031 have_lqr=yes
30032fi
cristy09b53e12011-10-14 12:47:22 +000030033 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30034$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030035fi
30036
30037if test "$have_lqr" = 'yes'; then
30038
cristy8b350f62009-11-15 23:12:43 +000030039$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030040
30041 CFLAGS="$LQR_CFLAGS $CFLAGS"
30042fi
30043
cristy73bd4a52010-10-05 11:24:23 +000030044 if test "$have_lqr" = 'yes'; then
30045 LQR_DELEGATE_TRUE=
30046 LQR_DELEGATE_FALSE='#'
30047else
30048 LQR_DELEGATE_TRUE='#'
30049 LQR_DELEGATE_FALSE=
30050fi
30051
cristy3ed852e2009-09-05 21:47:34 +000030052
30053
30054
30055
cristy81beccd2011-10-03 18:17:24 +000030056# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030057
30058# Check whether --with-lzma was given.
30059if test "${with_lzma+set}" = set; then :
30060 withval=$with_lzma; with_lzma=$withval
30061else
30062 with_lzma='yes'
30063fi
30064
cristy81beccd2011-10-03 18:17:24 +000030065if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030066 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30067fi
30068
cristyb94e5002011-11-14 13:20:10 +000030069LZMA_PKG=""
30070if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030071 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30072$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030073
30074pkg_failed=no
30075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030076$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030077
30078if test -n "$LZMA_CFLAGS"; then
30079 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30080 elif test -n "$PKG_CONFIG"; then
30081 if test -n "$PKG_CONFIG" && \
30082 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30083 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30084 ac_status=$?
30085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30086 test $ac_status = 0; }; then
30087 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30088else
30089 pkg_failed=yes
30090fi
30091 else
30092 pkg_failed=untried
30093fi
30094if test -n "$LZMA_LIBS"; then
30095 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30096 elif test -n "$PKG_CONFIG"; then
30097 if test -n "$PKG_CONFIG" && \
30098 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30099 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30100 ac_status=$?
30101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30102 test $ac_status = 0; }; then
30103 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30104else
30105 pkg_failed=yes
30106fi
30107 else
30108 pkg_failed=untried
30109fi
30110
30111
30112
30113if test $pkg_failed = yes; then
30114
30115if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30116 _pkg_short_errors_supported=yes
30117else
30118 _pkg_short_errors_supported=no
30119fi
30120 if test $_pkg_short_errors_supported = yes; then
30121 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30122 else
30123 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30124 fi
30125 # Put the nasty error message in config.log where it belongs
30126 echo "$LZMA_PKG_ERRORS" >&5
30127
30128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30129$as_echo "no" >&6; }
30130 have_lzma=no
30131elif test $pkg_failed = untried; then
30132 have_lzma=no
30133else
30134 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30135 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30137$as_echo "yes" >&6; }
30138 have_lzma=yes
30139fi
30140 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030141$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030142fi
30143
cristyb94e5002011-11-14 13:20:10 +000030144if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030145
30146$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30147
cristyc6722092012-10-14 00:19:31 +000030148 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030149 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030150 fi
cristyfbb0ef02010-12-19 02:32:11 +000030151fi
cristyb94e5002011-11-14 13:20:10 +000030152
cristyfbb0ef02010-12-19 02:32:11 +000030153 if test "$have_lzma" = 'yes'; then
30154 LZMA_DELEGATE_TRUE=
30155 LZMA_DELEGATE_FALSE='#'
30156else
30157 LZMA_DELEGATE_TRUE='#'
30158 LZMA_DELEGATE_FALSE=
30159fi
30160
30161
30162
30163
cristyb94e5002011-11-14 13:20:10 +000030164
cristy3ed852e2009-09-05 21:47:34 +000030165#
30166# Check for the OpenEXR delegate library.
30167#
30168
30169# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030170if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030171 withval=$with_openexr; with_openexr=$withval
30172else
30173 with_openexr='yes'
30174fi
30175
30176
30177if test "$with_openexr" != 'yes'; then
30178 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30179fi
30180
30181have_openexr='no'
30182OPENEXR_CFLAGS=""
30183OPENEXR_LIBS=""
30184OPENEXR_PKG=""
30185if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030186 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30187$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030188
30189pkg_failed=no
30190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30191$as_echo_n "checking for OPENEXR... " >&6; }
30192
30193if test -n "$OPENEXR_CFLAGS"; then
30194 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30195 elif test -n "$PKG_CONFIG"; then
30196 if test -n "$PKG_CONFIG" && \
30197 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30198 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30199 ac_status=$?
30200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30201 test $ac_status = 0; }; then
30202 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30203else
30204 pkg_failed=yes
30205fi
30206 else
30207 pkg_failed=untried
30208fi
30209if test -n "$OPENEXR_LIBS"; then
30210 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30211 elif test -n "$PKG_CONFIG"; then
30212 if test -n "$PKG_CONFIG" && \
30213 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30214 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30215 ac_status=$?
30216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30217 test $ac_status = 0; }; then
30218 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30219else
30220 pkg_failed=yes
30221fi
30222 else
30223 pkg_failed=untried
30224fi
30225
30226
30227
30228if test $pkg_failed = yes; then
30229
30230if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30231 _pkg_short_errors_supported=yes
30232else
30233 _pkg_short_errors_supported=no
30234fi
30235 if test $_pkg_short_errors_supported = yes; then
30236 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30237 else
30238 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30239 fi
30240 # Put the nasty error message in config.log where it belongs
30241 echo "$OPENEXR_PKG_ERRORS" >&5
30242
30243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30244$as_echo "no" >&6; }
30245 have_openexr=no
30246elif test $pkg_failed = untried; then
30247 have_openexr=no
30248else
30249 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30250 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30252$as_echo "yes" >&6; }
30253 have_openexr=yes
30254fi
cristy09b53e12011-10-14 12:47:22 +000030255 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30256$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030257fi
30258
30259if test "$have_openexr" = 'yes'; then
30260
cristy8b350f62009-11-15 23:12:43 +000030261$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030262
cristyc6722092012-10-14 00:19:31 +000030263 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030264 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30265 fi
30266fi
30267
cristy73bd4a52010-10-05 11:24:23 +000030268 if test "$have_openexr" = 'yes'; then
30269 OPENEXR_DELEGATE_TRUE=
30270 OPENEXR_DELEGATE_FALSE='#'
30271else
30272 OPENEXR_DELEGATE_TRUE='#'
30273 OPENEXR_DELEGATE_FALSE=
30274fi
30275
cristy3ed852e2009-09-05 21:47:34 +000030276
30277
30278
30279
30280#
cristy41cbe8a2011-10-27 01:35:18 +000030281# Check for PANGO delegate library.
30282#
30283
30284# Check whether --with-pango was given.
30285if test "${with_pango+set}" = set; then :
30286 withval=$with_pango; with_pango=$withval
30287else
cristyfc3d0222012-02-07 15:05:57 +000030288 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030289fi
30290
30291
30292if test "$with_pango" != 'yes'; then
30293 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30294fi
30295
30296have_pango='no'
cristya054b762012-03-26 23:16:00 +000030297have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030298PANGO_CFLAGS=""
30299PANGO_LIBS=""
30300PANGO_PKG=""
30301if test "x$with_pango" = "xyes"; then
30302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30303$as_echo "-------------------------------------------------------------" >&6; }
30304
30305pkg_failed=no
30306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30307$as_echo_n "checking for PANGO... " >&6; }
30308
30309if test -n "$PANGO_CFLAGS"; then
30310 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30311 elif test -n "$PKG_CONFIG"; then
30312 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030313 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30314 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030315 ac_status=$?
30316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30317 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030318 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030319else
30320 pkg_failed=yes
30321fi
30322 else
30323 pkg_failed=untried
30324fi
30325if test -n "$PANGO_LIBS"; then
30326 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30327 elif test -n "$PKG_CONFIG"; then
30328 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030329 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30330 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030331 ac_status=$?
30332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30333 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030334 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030335else
30336 pkg_failed=yes
30337fi
30338 else
30339 pkg_failed=untried
30340fi
30341
30342
30343
30344if test $pkg_failed = yes; then
30345
30346if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30347 _pkg_short_errors_supported=yes
30348else
30349 _pkg_short_errors_supported=no
30350fi
30351 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030352 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030353 else
cristya054b762012-03-26 23:16:00 +000030354 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030355 fi
30356 # Put the nasty error message in config.log where it belongs
30357 echo "$PANGO_PKG_ERRORS" >&5
30358
30359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30360$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030361 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030362elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030363 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030364else
30365 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30366 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30368$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030369 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030370fi
30371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30372$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030373
30374pkg_failed=no
30375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30376$as_echo_n "checking for PANGO... " >&6; }
30377
30378if test -n "$PANGO_CFLAGS"; then
30379 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30380 elif test -n "$PKG_CONFIG"; then
30381 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030382 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30383 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030384 ac_status=$?
30385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30386 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030387 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030388else
30389 pkg_failed=yes
30390fi
30391 else
30392 pkg_failed=untried
30393fi
30394if test -n "$PANGO_LIBS"; then
30395 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30396 elif test -n "$PKG_CONFIG"; then
30397 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030398 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30399 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030400 ac_status=$?
30401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30402 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030403 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030404else
30405 pkg_failed=yes
30406fi
30407 else
30408 pkg_failed=untried
30409fi
30410
30411
30412
30413if test $pkg_failed = yes; then
30414
30415if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30416 _pkg_short_errors_supported=yes
30417else
30418 _pkg_short_errors_supported=no
30419fi
30420 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030421 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030422 else
cristy2542fc62011-12-06 17:50:25 +000030423 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030424 fi
30425 # Put the nasty error message in config.log where it belongs
30426 echo "$PANGO_PKG_ERRORS" >&5
30427
30428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30429$as_echo "no" >&6; }
30430 have_pango=no
30431elif test $pkg_failed = untried; then
30432 have_pango=no
30433else
30434 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30435 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30437$as_echo "yes" >&6; }
30438 have_pango=yes
30439fi
30440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30441$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030442fi
30443
30444if test "$have_pango" = 'yes'; then
30445
30446$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30447
cristyc6722092012-10-14 00:19:31 +000030448 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030449 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30450 fi
30451fi
30452
cristya054b762012-03-26 23:16:00 +000030453if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030454
cristya054b762012-03-26 23:16:00 +000030455$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030456
cristyc6722092012-10-14 00:19:31 +000030457 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030458 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030459 fi
30460fi
30461
30462 if test "$have_pango" = 'yes'; then
30463 PANGO_DELEGATE_TRUE=
30464 PANGO_DELEGATE_FALSE='#'
30465else
30466 PANGO_DELEGATE_TRUE='#'
30467 PANGO_DELEGATE_FALSE=
30468fi
30469
cristya054b762012-03-26 23:16:00 +000030470 if test "$have_pangocairo" = 'yes'; then
30471 PANGOCAIRO_DELEGATE_TRUE=
30472 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030473else
cristya054b762012-03-26 23:16:00 +000030474 PANGOCAIRO_DELEGATE_TRUE='#'
30475 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030476fi
30477
30478
30479
30480
30481
30482#
cristy3ed852e2009-09-05 21:47:34 +000030483# Check for PNG delegate library.
30484#
30485
30486# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030487if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030488 withval=$with_png; with_png=$withval
30489else
30490 with_png='yes'
30491fi
30492
30493
30494if test "$with_png" != 'yes'; then
30495 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30496fi
30497
cristy81beccd2011-10-03 18:17:24 +000030498have_png='no'
30499PNG_LIBS=''
30500
30501if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030502 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30503$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30505$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030506 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30507$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030508 failed=0
30509 passed=0
30510 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30511if test "x$ac_cv_header_png_h" = xyes; then :
30512 passed=`expr $passed + 1`
30513else
30514 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030515fi
30516
cristy81beccd2011-10-03 18:17:24 +000030517
30518
30519 if test $passed -gt 0; then
30520 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030521 if test "$have_png" = 'no' ; then
30522 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030523 pnglib='png'
30524 else
30525 pnglib="png1${var}"
30526 fi
30527
30528# Test for compatible LIBPNG library
30529 failed=0
30530 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030531 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030532 if test "${pnglib}" != 'png' ; then
30533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30534$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30536/* end confdefs.h. */
30537#include <stdio.h>
30538#include <stdlib.h>
30539#include <png.h>
30540
30541int
30542main ()
30543{
30544
30545#if PNG_LIBPNG_VER_MINOR != ${var}
30546#error LIBPNG library must be version 1${var}!
30547Kaboom, Kaboom
30548#endif
30549return 0;
30550
30551 ;
30552 return 0;
30553}
30554_ACEOF
30555if ac_fn_c_try_compile "$LINENO"; then :
30556 ac_cv_libpng_ok='yes'
30557else
30558 ac_cv_libpng_ok='no'
30559fi
30560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30561 if test "$ac_cv_libpng_ok" = 'yes' ; then
30562 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030563 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30564$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030565 else
30566 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030567 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30568$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030569 fi
30570 else
30571 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030572 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30573$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030574 fi
30575 fi
30576
30577 if test $passed -gt 0 -a $failed -le 0; then
30578 if test "1${var}" = '15' ; then
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30580$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30581if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30582 $as_echo_n "(cached) " >&6
30583else
30584 ac_check_lib_save_LIBS=$LIBS
30585LIBS="-lpng15 $LIBS"
30586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30587/* end confdefs.h. */
30588
30589/* Override any GCC internal prototype to avoid an error.
30590 Use char because int might match the return type of a GCC
30591 builtin and then its argument prototype would still apply. */
30592#ifdef __cplusplus
30593extern "C"
30594#endif
30595char png_get_io_ptr ();
30596int
30597main ()
30598{
30599return png_get_io_ptr ();
30600 ;
30601 return 0;
30602}
30603_ACEOF
30604if ac_fn_c_try_link "$LINENO"; then :
30605 ac_cv_lib_png15_png_get_io_ptr=yes
30606else
30607 ac_cv_lib_png15_png_get_io_ptr=no
30608fi
30609rm -f core conftest.err conftest.$ac_objext \
30610 conftest$ac_exeext conftest.$ac_ext
30611LIBS=$ac_check_lib_save_LIBS
30612fi
30613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30614$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30615if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30616 passed=`expr $passed + 1`
30617else
30618 failed=`expr $failed + 1`
30619fi
30620
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30622$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30623if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30624 $as_echo_n "(cached) " >&6
30625else
30626 ac_check_lib_save_LIBS=$LIBS
30627LIBS="-lpng15 $LIBS"
30628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30629/* end confdefs.h. */
30630
30631/* Override any GCC internal prototype to avoid an error.
30632 Use char because int might match the return type of a GCC
30633 builtin and then its argument prototype would still apply. */
30634#ifdef __cplusplus
30635extern "C"
30636#endif
30637char png_longjmp ();
30638int
30639main ()
30640{
30641return png_longjmp ();
30642 ;
30643 return 0;
30644}
30645_ACEOF
30646if ac_fn_c_try_link "$LINENO"; then :
30647 ac_cv_lib_png15_png_longjmp=yes
30648else
30649 ac_cv_lib_png15_png_longjmp=no
30650fi
30651rm -f core conftest.err conftest.$ac_objext \
30652 conftest$ac_exeext conftest.$ac_ext
30653LIBS=$ac_check_lib_save_LIBS
30654fi
30655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30656$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30657if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30658 passed=`expr $passed + 1`
30659else
30660 failed=`expr $failed + 1`
30661fi
30662
30663 fi
30664 if test "1${var}" = '14' ; then
30665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30666$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30667if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30668 $as_echo_n "(cached) " >&6
30669else
30670 ac_check_lib_save_LIBS=$LIBS
30671LIBS="-lpng14 $LIBS"
30672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30673/* end confdefs.h. */
30674
30675/* Override any GCC internal prototype to avoid an error.
30676 Use char because int might match the return type of a GCC
30677 builtin and then its argument prototype would still apply. */
30678#ifdef __cplusplus
30679extern "C"
30680#endif
30681char png_get_io_ptr ();
30682int
30683main ()
30684{
30685return png_get_io_ptr ();
30686 ;
30687 return 0;
30688}
30689_ACEOF
30690if ac_fn_c_try_link "$LINENO"; then :
30691 ac_cv_lib_png14_png_get_io_ptr=yes
30692else
30693 ac_cv_lib_png14_png_get_io_ptr=no
30694fi
30695rm -f core conftest.err conftest.$ac_objext \
30696 conftest$ac_exeext conftest.$ac_ext
30697LIBS=$ac_check_lib_save_LIBS
30698fi
30699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30700$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30701if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30702 passed=`expr $passed + 1`
30703else
30704 failed=`expr $failed + 1`
30705fi
30706
30707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30708$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30709if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30710 $as_echo_n "(cached) " >&6
30711else
30712 ac_check_lib_save_LIBS=$LIBS
30713LIBS="-lpng14 $LIBS"
30714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30715/* end confdefs.h. */
30716
30717/* Override any GCC internal prototype to avoid an error.
30718 Use char because int might match the return type of a GCC
30719 builtin and then its argument prototype would still apply. */
30720#ifdef __cplusplus
30721extern "C"
30722#endif
30723char png_get_io_state ();
30724int
30725main ()
30726{
30727return png_get_io_state ();
30728 ;
30729 return 0;
30730}
30731_ACEOF
30732if ac_fn_c_try_link "$LINENO"; then :
30733 ac_cv_lib_png14_png_get_io_state=yes
30734else
30735 ac_cv_lib_png14_png_get_io_state=no
30736fi
30737rm -f core conftest.err conftest.$ac_objext \
30738 conftest$ac_exeext conftest.$ac_ext
30739LIBS=$ac_check_lib_save_LIBS
30740fi
30741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30742$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30743if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30744 passed=`expr $passed + 1`
30745else
30746 failed=`expr $failed + 1`
30747fi
30748
30749 fi
30750 if test "1${var}" = '12' ; then
30751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30752$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30753if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30754 $as_echo_n "(cached) " >&6
30755else
30756 ac_check_lib_save_LIBS=$LIBS
30757LIBS="-lpng12 $LIBS"
30758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30759/* end confdefs.h. */
30760
30761/* Override any GCC internal prototype to avoid an error.
30762 Use char because int might match the return type of a GCC
30763 builtin and then its argument prototype would still apply. */
30764#ifdef __cplusplus
30765extern "C"
30766#endif
30767char png_get_io_ptr ();
30768int
30769main ()
30770{
30771return png_get_io_ptr ();
30772 ;
30773 return 0;
30774}
30775_ACEOF
30776if ac_fn_c_try_link "$LINENO"; then :
30777 ac_cv_lib_png12_png_get_io_ptr=yes
30778else
30779 ac_cv_lib_png12_png_get_io_ptr=no
30780fi
30781rm -f core conftest.err conftest.$ac_objext \
30782 conftest$ac_exeext conftest.$ac_ext
30783LIBS=$ac_check_lib_save_LIBS
30784fi
30785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30786$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30787if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30788 passed=`expr $passed + 1`
30789else
30790 failed=`expr $failed + 1`
30791fi
30792
30793 fi
30794 if test "1${var}" = '1' ; then
30795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30796$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30797if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30798 $as_echo_n "(cached) " >&6
30799else
30800 ac_check_lib_save_LIBS=$LIBS
30801LIBS="-lpng $LIBS"
30802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30803/* end confdefs.h. */
30804
30805/* Override any GCC internal prototype to avoid an error.
30806 Use char because int might match the return type of a GCC
30807 builtin and then its argument prototype would still apply. */
30808#ifdef __cplusplus
30809extern "C"
30810#endif
30811char png_get_io_ptr ();
30812int
30813main ()
30814{
30815return png_get_io_ptr ();
30816 ;
30817 return 0;
30818}
30819_ACEOF
30820if ac_fn_c_try_link "$LINENO"; then :
30821 ac_cv_lib_png_png_get_io_ptr=yes
30822else
30823 ac_cv_lib_png_png_get_io_ptr=no
30824fi
30825rm -f core conftest.err conftest.$ac_objext \
30826 conftest$ac_exeext conftest.$ac_ext
30827LIBS=$ac_check_lib_save_LIBS
30828fi
30829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30830$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30831if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30832 passed=`expr $passed + 1`
30833else
30834 failed=`expr $failed + 1`
30835fi
30836
30837 fi
30838 if test $passed -gt 0 -a $failed -le 0 ; then
30839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30840$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30841 if test $passed -gt 0 ; then
30842 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000030843 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30844$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030845 have_png='no (failed tests)'
30846 else
30847 PNG_LIBS="-l${pnglib}"
30848 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030849
cristy8b350f62009-11-15 23:12:43 +000030850$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030851
cristy09b53e12011-10-14 12:47:22 +000030852 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30853$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030854 have_png='yes'
30855 fi
30856 fi
30857 fi
30858 fi
30859 fi
30860 done
30861 fi
cristy3ed852e2009-09-05 21:47:34 +000030862fi
cristy64877302011-08-23 19:10:31 +000030863
cristy73bd4a52010-10-05 11:24:23 +000030864 if test "$have_png" = 'yes'; then
30865 PNG_DELEGATE_TRUE=
30866 PNG_DELEGATE_FALSE='#'
30867else
30868 PNG_DELEGATE_TRUE='#'
30869 PNG_DELEGATE_FALSE=
30870fi
30871
cristy3ed852e2009-09-05 21:47:34 +000030872
cristy50d3f5c2011-09-10 20:09:06 +000030873
cristy3ed852e2009-09-05 21:47:34 +000030874
30875
30876#
30877# Check for RSVG delegate library.
30878#
30879
30880# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030881if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030882 withval=$with_rsvg; with_rsvg=$withval
30883else
cristy1164d5f2012-08-15 00:58:25 +000030884 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000030885fi
30886
30887
30888if test "$with_rsvg" != 'yes'; then
30889 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30890fi
30891
30892have_rsvg='no'
30893have_cairo='no'
30894RSVG_CFLAGS=""
30895RSVG_LIBS=""
30896RSVG_PKG=""
30897if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030898 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30899$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030900
30901pkg_failed=no
30902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30903$as_echo_n "checking for RSVG... " >&6; }
30904
30905if test -n "$RSVG_CFLAGS"; then
30906 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30907 elif test -n "$PKG_CONFIG"; then
30908 if test -n "$PKG_CONFIG" && \
30909 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30910 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30911 ac_status=$?
30912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30913 test $ac_status = 0; }; then
30914 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30915else
30916 pkg_failed=yes
30917fi
30918 else
30919 pkg_failed=untried
30920fi
30921if test -n "$RSVG_LIBS"; then
30922 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30923 elif test -n "$PKG_CONFIG"; then
30924 if test -n "$PKG_CONFIG" && \
30925 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30926 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30927 ac_status=$?
30928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30929 test $ac_status = 0; }; then
30930 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30931else
30932 pkg_failed=yes
30933fi
30934 else
30935 pkg_failed=untried
30936fi
30937
30938
30939
30940if test $pkg_failed = yes; then
30941
30942if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30943 _pkg_short_errors_supported=yes
30944else
30945 _pkg_short_errors_supported=no
30946fi
30947 if test $_pkg_short_errors_supported = yes; then
30948 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30949 else
30950 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30951 fi
30952 # Put the nasty error message in config.log where it belongs
30953 echo "$RSVG_PKG_ERRORS" >&5
30954
30955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30956$as_echo "no" >&6; }
30957 have_rsvg=no
30958elif test $pkg_failed = untried; then
30959 have_rsvg=no
30960else
30961 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30962 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30964$as_echo "yes" >&6; }
30965 have_rsvg=yes
30966fi
cristy09b53e12011-10-14 12:47:22 +000030967 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30968$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030969
30970pkg_failed=no
30971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30972$as_echo_n "checking for CAIRO_SVG... " >&6; }
30973
30974if test -n "$CAIRO_SVG_CFLAGS"; then
30975 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30976 elif test -n "$PKG_CONFIG"; then
30977 if test -n "$PKG_CONFIG" && \
30978 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30979 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30980 ac_status=$?
30981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30982 test $ac_status = 0; }; then
30983 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30984else
30985 pkg_failed=yes
30986fi
30987 else
30988 pkg_failed=untried
30989fi
30990if test -n "$CAIRO_SVG_LIBS"; then
30991 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30992 elif test -n "$PKG_CONFIG"; then
30993 if test -n "$PKG_CONFIG" && \
30994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30995 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30996 ac_status=$?
30997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30998 test $ac_status = 0; }; then
30999 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31000else
31001 pkg_failed=yes
31002fi
31003 else
31004 pkg_failed=untried
31005fi
31006
31007
31008
31009if test $pkg_failed = yes; then
31010
31011if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31012 _pkg_short_errors_supported=yes
31013else
31014 _pkg_short_errors_supported=no
31015fi
31016 if test $_pkg_short_errors_supported = yes; then
31017 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31018 else
31019 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31020 fi
31021 # Put the nasty error message in config.log where it belongs
31022 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31023
31024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31025$as_echo "no" >&6; }
31026 have_cairo=no
31027elif test $pkg_failed = untried; then
31028 have_cairo=no
31029else
31030 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31031 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31033$as_echo "yes" >&6; }
31034 have_cairo=yes
31035fi
cristy09b53e12011-10-14 12:47:22 +000031036 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31037$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031038fi
31039
31040if test "$have_rsvg" = 'yes'; then
31041
cristy8b350f62009-11-15 23:12:43 +000031042$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031043
cristyc6722092012-10-14 00:19:31 +000031044 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031045 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31046 fi
31047fi
31048
31049if test "$have_cairo" = 'yes'; then
31050
cristy8b350f62009-11-15 23:12:43 +000031051$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031052
cristyc6722092012-10-14 00:19:31 +000031053 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031054 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31055 fi
31056fi
31057
cristy73bd4a52010-10-05 11:24:23 +000031058 if test "$have_rsvg" = 'yes'; then
31059 RSVG_DELEGATE_TRUE=
31060 RSVG_DELEGATE_FALSE='#'
31061else
31062 RSVG_DELEGATE_TRUE='#'
31063 RSVG_DELEGATE_FALSE=
31064fi
31065
31066 if test "$have_cairo" = 'yes'; then
31067 CAIRO_DELEGATE_TRUE=
31068 CAIRO_DELEGATE_FALSE='#'
31069else
31070 CAIRO_DELEGATE_TRUE='#'
31071 CAIRO_DELEGATE_FALSE=
31072fi
31073
cristy3ed852e2009-09-05 21:47:34 +000031074
31075
31076
31077
31078#
31079# Check for TIFF delegate library.
31080#
31081
31082# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031083if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031084 withval=$with_tiff; with_tiff=$withval
31085else
31086 with_tiff='yes'
31087fi
31088
31089
31090if test "$with_tiff" != 'yes'; then
31091 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31092fi
31093
31094have_tiff='no'
31095TIFF_LIBS=''
31096if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031097 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31098$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031100$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031101 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31102$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031103 failed=0
31104 passed=0
cristy8b350f62009-11-15 23:12:43 +000031105 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031106if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031107 passed=`expr $passed + 1`
31108else
31109 failed=`expr $failed + 1`
31110fi
31111
31112
cristy8b350f62009-11-15 23:12:43 +000031113 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031114if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031115 passed=`expr $passed + 1`
31116else
31117 failed=`expr $failed + 1`
31118fi
31119
31120
cristy8b350f62009-11-15 23:12:43 +000031121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031122$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031123if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031124 $as_echo_n "(cached) " >&6
31125else
31126 ac_check_lib_save_LIBS=$LIBS
31127LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031129/* end confdefs.h. */
31130
31131/* Override any GCC internal prototype to avoid an error.
31132 Use char because int might match the return type of a GCC
31133 builtin and then its argument prototype would still apply. */
31134#ifdef __cplusplus
31135extern "C"
31136#endif
31137char TIFFOpen ();
31138int
31139main ()
31140{
31141return TIFFOpen ();
31142 ;
31143 return 0;
31144}
31145_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031146if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031147 ac_cv_lib_tiff_TIFFOpen=yes
31148else
cristy8b350f62009-11-15 23:12:43 +000031149 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031150fi
cristy8b350f62009-11-15 23:12:43 +000031151rm -f core conftest.err conftest.$ac_objext \
31152 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031153LIBS=$ac_check_lib_save_LIBS
31154fi
cristy8b350f62009-11-15 23:12:43 +000031155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031156$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031157if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031158 passed=`expr $passed + 1`
31159else
31160 failed=`expr $failed + 1`
31161fi
31162
cristy8b350f62009-11-15 23:12:43 +000031163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031164$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031165if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031166 $as_echo_n "(cached) " >&6
31167else
31168 ac_check_lib_save_LIBS=$LIBS
31169LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031171/* end confdefs.h. */
31172
31173/* Override any GCC internal prototype to avoid an error.
31174 Use char because int might match the return type of a GCC
31175 builtin and then its argument prototype would still apply. */
31176#ifdef __cplusplus
31177extern "C"
31178#endif
31179char TIFFClientOpen ();
31180int
31181main ()
31182{
31183return TIFFClientOpen ();
31184 ;
31185 return 0;
31186}
31187_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031188if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031189 ac_cv_lib_tiff_TIFFClientOpen=yes
31190else
cristy8b350f62009-11-15 23:12:43 +000031191 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031192fi
cristy8b350f62009-11-15 23:12:43 +000031193rm -f core conftest.err conftest.$ac_objext \
31194 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031195LIBS=$ac_check_lib_save_LIBS
31196fi
cristy8b350f62009-11-15 23:12:43 +000031197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031198$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031199if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031200 passed=`expr $passed + 1`
31201else
31202 failed=`expr $failed + 1`
31203fi
31204
cristy8b350f62009-11-15 23:12:43 +000031205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031206$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031207if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031208 $as_echo_n "(cached) " >&6
31209else
31210 ac_check_lib_save_LIBS=$LIBS
31211LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031213/* end confdefs.h. */
31214
31215/* Override any GCC internal prototype to avoid an error.
31216 Use char because int might match the return type of a GCC
31217 builtin and then its argument prototype would still apply. */
31218#ifdef __cplusplus
31219extern "C"
31220#endif
31221char TIFFIsByteSwapped ();
31222int
31223main ()
31224{
31225return TIFFIsByteSwapped ();
31226 ;
31227 return 0;
31228}
31229_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031230if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031231 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31232else
cristy8b350f62009-11-15 23:12:43 +000031233 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031234fi
cristy8b350f62009-11-15 23:12:43 +000031235rm -f core conftest.err conftest.$ac_objext \
31236 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031237LIBS=$ac_check_lib_save_LIBS
31238fi
cristy8b350f62009-11-15 23:12:43 +000031239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031240$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031241if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031242 passed=`expr $passed + 1`
31243else
31244 failed=`expr $failed + 1`
31245fi
31246
cristy8b350f62009-11-15 23:12:43 +000031247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031248$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031249if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031250 $as_echo_n "(cached) " >&6
31251else
31252 ac_check_lib_save_LIBS=$LIBS
31253LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031255/* end confdefs.h. */
31256
31257/* Override any GCC internal prototype to avoid an error.
31258 Use char because int might match the return type of a GCC
31259 builtin and then its argument prototype would still apply. */
31260#ifdef __cplusplus
31261extern "C"
31262#endif
31263char TIFFReadRGBATile ();
31264int
31265main ()
31266{
31267return TIFFReadRGBATile ();
31268 ;
31269 return 0;
31270}
31271_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031272if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031273 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31274else
cristy8b350f62009-11-15 23:12:43 +000031275 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031276fi
cristy8b350f62009-11-15 23:12:43 +000031277rm -f core conftest.err conftest.$ac_objext \
31278 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031279LIBS=$ac_check_lib_save_LIBS
31280fi
cristy8b350f62009-11-15 23:12:43 +000031281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031282$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031283if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031284 passed=`expr $passed + 1`
31285else
31286 failed=`expr $failed + 1`
31287fi
31288
cristy8b350f62009-11-15 23:12:43 +000031289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031290$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031291if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031292 $as_echo_n "(cached) " >&6
31293else
31294 ac_check_lib_save_LIBS=$LIBS
31295LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031297/* end confdefs.h. */
31298
31299/* Override any GCC internal prototype to avoid an error.
31300 Use char because int might match the return type of a GCC
31301 builtin and then its argument prototype would still apply. */
31302#ifdef __cplusplus
31303extern "C"
31304#endif
31305char TIFFReadRGBAStrip ();
31306int
31307main ()
31308{
31309return TIFFReadRGBAStrip ();
31310 ;
31311 return 0;
31312}
31313_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031314if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031315 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31316else
cristy8b350f62009-11-15 23:12:43 +000031317 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031318fi
cristy8b350f62009-11-15 23:12:43 +000031319rm -f core conftest.err conftest.$ac_objext \
31320 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031321LIBS=$ac_check_lib_save_LIBS
31322fi
cristy8b350f62009-11-15 23:12:43 +000031323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031324$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031325if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031326 passed=`expr $passed + 1`
31327else
31328 failed=`expr $failed + 1`
31329fi
31330
cristy8b350f62009-11-15 23:12:43 +000031331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031332$as_echo_n "checking if TIFF package is complete... " >&6; }
31333 if test $passed -gt 0; then
31334 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031335 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31336$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031337 have_tiff='no (failed tests)'
31338 else
31339 TIFF_LIBS='-ltiff'
31340 LIBS="$TIFF_LIBS $LIBS"
31341
cristy8b350f62009-11-15 23:12:43 +000031342$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031343
cristy09b53e12011-10-14 12:47:22 +000031344 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31345$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031346 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031347 for ac_header in tiffconf.h
31348do :
31349 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031350if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031351 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031352#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031353_ACEOF
31354
31355fi
31356
31357done
31358
cristy8b350f62009-11-15 23:12:43 +000031359 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031360 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31361 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31362 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031363do :
31364 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31365ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031366if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031367 cat >>confdefs.h <<_ACEOF
31368#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31369_ACEOF
31370
31371fi
31372done
31373
31374 fi
31375 else
cristy09b53e12011-10-14 12:47:22 +000031376 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31377$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031378 fi
31379fi
cristy73bd4a52010-10-05 11:24:23 +000031380 if test "$have_tiff" = 'yes'; then
31381 TIFF_DELEGATE_TRUE=
31382 TIFF_DELEGATE_FALSE='#'
31383else
31384 TIFF_DELEGATE_TRUE='#'
31385 TIFF_DELEGATE_FALSE=
31386fi
31387
cristy3ed852e2009-09-05 21:47:34 +000031388
31389
31390
31391#
cristyb1860752011-03-14 00:27:46 +000031392# Check for WEBP delegate library.
31393#
31394
31395# Check whether --with-webp was given.
31396if test "${with_webp+set}" = set; then :
31397 withval=$with_webp; with_webp=$withval
31398else
31399 with_webp='yes'
31400fi
31401
31402
31403if test "$with_webp" != 'yes'; then
31404 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31405fi
31406
31407have_webp='no'
31408WEBP_LIBS=''
31409if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031410 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31411$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31413$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031414 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31415$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031416 failed=0
31417 passed=0
31418 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31419if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31420 passed=`expr $passed + 1`
31421else
31422 failed=`expr $failed + 1`
31423fi
31424
31425
31426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31427$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31428if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31429 $as_echo_n "(cached) " >&6
31430else
31431 ac_check_lib_save_LIBS=$LIBS
31432LIBS="-lwebp $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 WebPDecodeRGB ();
31443int
31444main ()
31445{
31446return WebPDecodeRGB ();
31447 ;
31448 return 0;
31449}
31450_ACEOF
31451if ac_fn_c_try_link "$LINENO"; then :
31452 ac_cv_lib_webp_WebPDecodeRGB=yes
31453else
31454 ac_cv_lib_webp_WebPDecodeRGB=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_webp_WebPDecodeRGB" >&5
31461$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31462if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31463 passed=`expr $passed + 1`
31464else
31465 failed=`expr $failed + 1`
31466fi
31467
31468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31469$as_echo_n "checking if WEBP package is complete... " >&6; }
31470 if test $passed -gt 0; then
31471 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031472 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31473$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031474 have_webp='no (failed tests)'
31475 else
31476 WEBP_LIBS='-lwebp'
31477 LIBS="$WEBP_LIBS $LIBS"
31478
31479$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31480
cristy09b53e12011-10-14 12:47:22 +000031481 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31482$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031483 have_webp='yes'
31484 fi
31485 else
cristy09b53e12011-10-14 12:47:22 +000031486 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31487$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031488 fi
31489fi
31490 if test "$have_webp" = 'yes'; then
31491 WEBP_DELEGATE_TRUE=
31492 WEBP_DELEGATE_FALSE='#'
31493else
31494 WEBP_DELEGATE_TRUE='#'
31495 WEBP_DELEGATE_FALSE=
31496fi
31497
31498
31499
31500
31501#
cristy3ed852e2009-09-05 21:47:34 +000031502# Set Windows font directory.
31503#
31504
31505# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031506if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031507 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31508else
31509 with_windows_font_dir=''
31510fi
31511
31512if test "$with_windows_font_dir" != '' ; then
31513 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31514fi
31515
31516
31517#
31518# Check for WMF delegate library.
31519#
31520
31521# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031522if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031523 withval=$with_wmf; with_wmf=$withval
31524else
cristyfc3d0222012-02-07 15:05:57 +000031525 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031526fi
31527
31528
31529if test "$with_wmf" != 'yes'; then
31530 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31531fi
31532
31533have_wmf='no'
31534WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031535WMF_LIBS_DEPS=''
31536OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031537if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31539$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031541$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31543$as_echo "" >&6; }
31544 have_libwmf='no'
31545 have_libwmflite='no'
31546 have_libwmf_ipa_h='no'
31547
31548 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31549"
31550if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31551 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031552fi
31553
31554
cristy03f7cf92011-12-15 01:40:41 +000031555 if test "$have_libwmf_ipa_h" = 'yes'; then
31556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31557$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31558if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031559 $as_echo_n "(cached) " >&6
31560else
31561 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031562LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031564/* end confdefs.h. */
31565
31566/* Override any GCC internal prototype to avoid an error.
31567 Use char because int might match the return type of a GCC
31568 builtin and then its argument prototype would still apply. */
31569#ifdef __cplusplus
31570extern "C"
31571#endif
cristy03f7cf92011-12-15 01:40:41 +000031572char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031573int
31574main ()
31575{
cristy03f7cf92011-12-15 01:40:41 +000031576return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031577 ;
31578 return 0;
31579}
31580_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031581if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031582 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031583else
cristy03f7cf92011-12-15 01:40:41 +000031584 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031585fi
cristy8b350f62009-11-15 23:12:43 +000031586rm -f core conftest.err conftest.$ac_objext \
31587 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031588LIBS=$ac_check_lib_save_LIBS
31589fi
cristy03f7cf92011-12-15 01:40:41 +000031590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31591$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31592if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31593 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031594fi
31595
cristy03f7cf92011-12-15 01:40:41 +000031596 if test "$have_libwmflite" = 'yes'; then
31597
31598$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31599
31600 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031601 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031602 have_wmf='yes'
31603 else
31604 WMF_LIBS_DEPS=''
31605 WMF_CONFIG_LIBS=`libwmf-config --libs`
31606 for lib in xml2 expat freetype jpeg png z; do
31607 testlib="-l${lib}"
31608 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31609 done
31610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31611$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31612if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31613 $as_echo_n "(cached) " >&6
31614else
31615 ac_check_lib_save_LIBS=$LIBS
31616LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31618/* end confdefs.h. */
31619
31620/* Override any GCC internal prototype to avoid an error.
31621 Use char because int might match the return type of a GCC
31622 builtin and then its argument prototype would still apply. */
31623#ifdef __cplusplus
31624extern "C"
31625#endif
31626char wmf_api_create ();
31627int
31628main ()
31629{
31630return wmf_api_create ();
31631 ;
31632 return 0;
31633}
31634_ACEOF
31635if ac_fn_c_try_link "$LINENO"; then :
31636 ac_cv_lib_wmf_wmf_api_create=yes
31637else
31638 ac_cv_lib_wmf_wmf_api_create=no
31639fi
31640rm -f core conftest.err conftest.$ac_objext \
31641 conftest$ac_exeext conftest.$ac_ext
31642LIBS=$ac_check_lib_save_LIBS
31643fi
31644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31645$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31646if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31647 have_libwmf='yes'
31648fi
31649
31650 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031651
cristy8b350f62009-11-15 23:12:43 +000031652$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031653
cristy03f7cf92011-12-15 01:40:41 +000031654 WMF_LIBS='-lwmf'
31655 LIBS="$WMF_LIBS $LIBS"
31656 have_wmf='yes'
31657 else
31658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31659$as_echo "no -- some components failed test" >&6; }
31660 have_wmf='no (failed tests)'
31661 have_wmflite='no (failed tests)'
31662 LIBS="$OLIBS"
31663 WMF_LIBS=''
31664 fi
glennrp33e524b2011-08-24 17:41:57 +000031665 fi
cristy03f7cf92011-12-15 01:40:41 +000031666 fi
31667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31668$as_echo_n "checking if WMF package is complete... " >&6; }
31669 if test "$have_wmf" = 'yes'; then
31670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31671$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031672 else
cristy03f7cf92011-12-15 01:40:41 +000031673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31674$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031675 fi
cristy3ed852e2009-09-05 21:47:34 +000031676fi
cristy73bd4a52010-10-05 11:24:23 +000031677 if test "$have_wmf" = 'yes'; then
31678 WMF_DELEGATE_TRUE=
31679 WMF_DELEGATE_FALSE='#'
31680else
31681 WMF_DELEGATE_TRUE='#'
31682 WMF_DELEGATE_FALSE=
31683fi
31684
cristy3ed852e2009-09-05 21:47:34 +000031685
31686
31687
cristy81beccd2011-10-03 18:17:24 +000031688
31689
cristy3ed852e2009-09-05 21:47:34 +000031690#
31691# Check for XML delegate library.
31692#
31693
31694# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031695if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031696 withval=$with_xml; with_xml=$withval
31697else
cristyfc3d0222012-02-07 15:05:57 +000031698 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000031699fi
31700
31701
cristy81beccd2011-10-03 18:17:24 +000031702if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031703 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31704fi
31705
cristy81beccd2011-10-03 18:17:24 +000031706have_xml='no'
31707XML_LIBS=''
31708if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031709 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31710$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31712$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031713 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31714$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031715 PERSIST_LDFLAGS=$LDFLAGS
31716 PERSIST_CPPFLAGS=$CPPFLAGS
31717 xml2_config=''
31718 # Extract the first word of "xml2-config", so it can be a program name with args.
31719set dummy xml2-config; ac_word=$2
31720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31721$as_echo_n "checking for $ac_word... " >&6; }
31722if ${ac_cv_path_xml2_config+:} false; then :
31723 $as_echo_n "(cached) " >&6
31724else
31725 case $xml2_config in
31726 [\\/]* | ?:[\\/]*)
31727 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31728 ;;
31729 *)
31730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31731for as_dir in $PATH
31732do
31733 IFS=$as_save_IFS
31734 test -z "$as_dir" && as_dir=.
31735 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000031736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000031737 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31739 break 2
31740 fi
31741done
31742 done
31743IFS=$as_save_IFS
31744
31745 ;;
31746esac
31747fi
31748xml2_config=$ac_cv_path_xml2_config
31749if test -n "$xml2_config"; then
31750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31751$as_echo "$xml2_config" >&6; }
31752else
31753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31754$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031755fi
31756
cristy81beccd2011-10-03 18:17:24 +000031757 if test -n "$xml2_config"; then
31758 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31759 # the shared library installed under /usr/lib, whereas the package
31760 # installs itself under $prefix/libxml and $prefix/lib.
31761 xml2_prefix=`xml2-config --prefix`
31762 if test -d "${xml2_prefix}/include/libxml2"; then
31763 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31764 fi
31765 if test "${xml2_prefix}" != '/usr'; then
31766 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31767 fi
31768 fi
31769 failed=0
31770 passed=0
31771 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31772if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31773 passed=`expr $passed + 1`
31774else
31775 failed=`expr $failed + 1`
31776fi
31777
31778
31779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31780$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31781if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31782 $as_echo_n "(cached) " >&6
31783else
31784 ac_check_lib_save_LIBS=$LIBS
31785LIBS="-lxml2 $LIBS"
31786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31787/* end confdefs.h. */
31788
31789/* Override any GCC internal prototype to avoid an error.
31790 Use char because int might match the return type of a GCC
31791 builtin and then its argument prototype would still apply. */
31792#ifdef __cplusplus
31793extern "C"
31794#endif
31795char xmlSAXVersion ();
31796int
31797main ()
31798{
31799return xmlSAXVersion ();
31800 ;
31801 return 0;
31802}
31803_ACEOF
31804if ac_fn_c_try_link "$LINENO"; then :
31805 ac_cv_lib_xml2_xmlSAXVersion=yes
31806else
31807 ac_cv_lib_xml2_xmlSAXVersion=no
31808fi
31809rm -f core conftest.err conftest.$ac_objext \
31810 conftest$ac_exeext conftest.$ac_ext
31811LIBS=$ac_check_lib_save_LIBS
31812fi
31813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31814$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31815if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31816 passed=`expr $passed + 1`
31817else
31818 failed=`expr $failed + 1`
31819fi
31820
31821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31822$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31823if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31824 $as_echo_n "(cached) " >&6
31825else
31826 ac_check_lib_save_LIBS=$LIBS
31827LIBS="-lxml2 $LIBS"
31828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31829/* end confdefs.h. */
31830
31831/* Override any GCC internal prototype to avoid an error.
31832 Use char because int might match the return type of a GCC
31833 builtin and then its argument prototype would still apply. */
31834#ifdef __cplusplus
31835extern "C"
31836#endif
31837char xmlParseChunk ();
31838int
31839main ()
31840{
31841return xmlParseChunk ();
31842 ;
31843 return 0;
31844}
31845_ACEOF
31846if ac_fn_c_try_link "$LINENO"; then :
31847 ac_cv_lib_xml2_xmlParseChunk=yes
31848else
31849 ac_cv_lib_xml2_xmlParseChunk=no
31850fi
31851rm -f core conftest.err conftest.$ac_objext \
31852 conftest$ac_exeext conftest.$ac_ext
31853LIBS=$ac_check_lib_save_LIBS
31854fi
31855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31856$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31857if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31858 passed=`expr $passed + 1`
31859else
31860 failed=`expr $failed + 1`
31861fi
31862
31863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31864$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31865if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31866 $as_echo_n "(cached) " >&6
31867else
31868 ac_check_lib_save_LIBS=$LIBS
31869LIBS="-lxml2 $LIBS"
31870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31871/* end confdefs.h. */
31872
31873/* Override any GCC internal prototype to avoid an error.
31874 Use char because int might match the return type of a GCC
31875 builtin and then its argument prototype would still apply. */
31876#ifdef __cplusplus
31877extern "C"
31878#endif
31879char xmlCreatePushParserCtxt ();
31880int
31881main ()
31882{
31883return xmlCreatePushParserCtxt ();
31884 ;
31885 return 0;
31886}
31887_ACEOF
31888if ac_fn_c_try_link "$LINENO"; then :
31889 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31890else
31891 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31892fi
31893rm -f core conftest.err conftest.$ac_objext \
31894 conftest$ac_exeext conftest.$ac_ext
31895LIBS=$ac_check_lib_save_LIBS
31896fi
31897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31898$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31899if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31900 passed=`expr $passed + 1`
31901else
31902 failed=`expr $failed + 1`
31903fi
31904
31905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31906$as_echo_n "checking if XML package is complete... " >&6; }
31907 if test $passed -gt 0; then
31908 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031909 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31910$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031911 have_xml='no (failed tests)'
31912 LDFLAGS="$PERSIST_LDFLAGS"
31913 CPPFLAGS="$PERSIST_CPPFLAGS"
31914 else
31915 XML_LIBS='-lxml2'
31916 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031917
cristy8b350f62009-11-15 23:12:43 +000031918$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031919
cristy09b53e12011-10-14 12:47:22 +000031920 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31921$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031922 have_xml='yes'
31923 fi
31924 else
cristy09b53e12011-10-14 12:47:22 +000031925 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31926$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031927 fi
31928fi
cristy73bd4a52010-10-05 11:24:23 +000031929 if test "$have_xml" = 'yes'; then
31930 XML_DELEGATE_TRUE=
31931 XML_DELEGATE_FALSE='#'
31932else
31933 XML_DELEGATE_TRUE='#'
31934 XML_DELEGATE_FALSE=
31935fi
31936
cristy3ed852e2009-09-05 21:47:34 +000031937
31938
31939
31940# Substitute compiler name to build/link PerlMagick
31941#
31942
31943
31944#
31945# Configure install Paths
31946#
cristy7def36a2011-10-28 19:04:41 +000031947
cristy2a11bef2011-10-28 18:33:11 +000031948# Path to ImageMagick header files
31949INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000031950INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
31951DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000031952case "${build_os}" in
31953 mingw* )
31954 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
31955 ;;
31956esac
31957
31958cat >>confdefs.h <<_ACEOF
31959#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
31960_ACEOF
31961
31962
cristy3ed852e2009-09-05 21:47:34 +000031963
31964# Subdirectory under lib to place ImageMagick lib files
31965LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31966
31967cat >>confdefs.h <<_ACEOF
31968#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31969_ACEOF
31970
31971
31972# Path to ImageMagick bin directory
31973EXECUTABLE_PATH="${BIN_DIR}"
31974DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31975case "${build_os}" in
31976 mingw* )
31977 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31978 ;;
31979esac
31980
31981cat >>confdefs.h <<_ACEOF
31982#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31983_ACEOF
31984
31985
31986
31987# Path to ImageMagick lib
31988LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31989DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31990case "${build_os}" in
31991 mingw* )
31992 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31993 ;;
31994esac
31995
31996cat >>confdefs.h <<_ACEOF
31997#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31998_ACEOF
31999
32000
32001
cristy3ed852e2009-09-05 21:47:34 +000032002#
cristy01ff9f32012-12-01 18:15:29 +000032003# path to modules lib
32004if test "x$MODULES_BASEDIRNAME" = "x"; then
32005 MODULES_BASEDIRNAME="modules"
32006fi
cristy3ed852e2009-09-05 21:47:34 +000032007
32008cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032009#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032010_ACEOF
32011
cristy01ff9f32012-12-01 18:15:29 +000032012
32013
32014if test "x$MODULES_DIRNAME" = "x"; then
cristycf4a3c22012-12-02 21:47:25 +000032015 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${ABI_SUFFIX}
32016else
cristy3ed852e2009-09-05 21:47:34 +000032017
32018cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032019#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032020_ACEOF
32021
cristycf4a3c22012-12-02 21:47:25 +000032022fi
cristy01ff9f32012-12-01 18:15:29 +000032023
32024
cristy371d4812012-12-01 19:48:10 +000032025MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032026
32027MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32028
32029
32030#
32031# path to coders lib
32032if test "x$CODER_DIRNAME" = "x"; then
32033 CODER_DIRNAME="coders"
32034fi
32035
32036cat >>confdefs.h <<_ACEOF
32037#define CODER_DIRNAME "$CODER_DIRNAME"
32038_ACEOF
32039
32040
32041
cristy371d4812012-12-01 19:48:10 +000032042CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032043CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032044
32045
32046#
32047# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032048#
32049# path to coders lib
32050if test "x$FILTER_DIRNAME" = "x"; then
32051 FILTER_DIRNAME="filters"
32052fi
cristy3ed852e2009-09-05 21:47:34 +000032053
32054cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032055#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032056_ACEOF
32057
cristy3ed852e2009-09-05 21:47:34 +000032058
cristy3ed852e2009-09-05 21:47:34 +000032059
cristy371d4812012-12-01 19:48:10 +000032060FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032061FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032062
32063
32064#
32065# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032066DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032067DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32068DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032069case "${build_os}" in
32070 mingw* )
32071 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32072 ;;
32073esac
32074
32075cat >>confdefs.h <<_ACEOF
32076#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32077_ACEOF
32078
32079
32080
cristy2a11bef2011-10-28 18:33:11 +000032081# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032082CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032083
32084cat >>confdefs.h <<_ACEOF
32085#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32086_ACEOF
32087
cristy7def36a2011-10-28 19:04:41 +000032088CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032089DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32090case "${build_os}" in
32091 mingw* )
32092 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32093 ;;
32094esac
32095
32096cat >>confdefs.h <<_ACEOF
32097#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32098_ACEOF
32099
32100
32101
cristy2a11bef2011-10-28 18:33:11 +000032102# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032103SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032104
32105cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032106#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032107_ACEOF
32108
cristy670aa3c2011-11-03 00:54:00 +000032109SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032110DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032111case "${build_os}" in
32112 mingw* )
cristy4f820712011-04-01 12:35:43 +000032113 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032114 ;;
32115esac
32116
32117cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032118#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032119_ACEOF
32120
32121
32122
cristy408ebcd2011-11-14 01:36:57 +000032123# Subdirectory to place architecture-dependent configuration files
32124SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032125
32126cat >>confdefs.h <<_ACEOF
32127#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32128_ACEOF
32129
cristy408ebcd2011-11-14 01:36:57 +000032130SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32131DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032132case "${build_os}" in
32133 mingw* )
32134 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32135 ;;
32136esac
32137
32138cat >>confdefs.h <<_ACEOF
32139#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32140_ACEOF
32141
32142
32143
cristy3ed852e2009-09-05 21:47:34 +000032144#
32145# program_transform_name is formed for use in a Makefile, so create a
32146# modified version for use in a shell script.
32147configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32148
32149# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032150{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32151$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032153$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032154{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32155$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032156AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032157BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032158BZIPDelegateDefault='bzip2'
32159BrowseDelegateDefault='xdg-open'
32160CGMDecodeDelegateDefault='ralcgm'
32161CatDelegateDefault='cat'
32162DNGDecodeDelegateDefault='ufraw-batch'
32163GVCDecodeDelegateDefault='dot'
32164DVIDecodeDelegateDefault='dvips'
32165EchoDelegateDefault='echo'
32166EditorDelegateDefault='xterm'
32167FIGDecodeDelegateDefault='fig2dev'
32168ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32169DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32170MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32171GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032172HPGLDecodeDelegateDefault='hp2xx'
32173HTMLDecodeDelegateDefault='html2ps'
32174ILBMDecodeDelegateDefault='ilbmtoppm'
32175ILBMEncodeDelegateDefault='ppmtoilbm'
32176LPDelegateDefault='lp'
32177LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032178LaunchDelegateDefault='gimp'
32179MANDelegateDefault='groff'
32180MPEGDecodeDelegateDefault='ffmpeg'
32181MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032182MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032183MVDelegateDefault='mv'
32184PCLDelegateDefault='pcl6'
32185PGPDecodeDelegateDefault='pgpv'
32186POVDelegateDefault='povray'
32187if test "$native_win32_build" = 'yes'; then
32188 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032189elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032190 PSDelegateDefault='gsc'
32191else
32192 PSDelegateDefault='gs'
32193fi
32194RLEEncodeDelegateDefault='rawtorle'
32195RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032196RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032197SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032198SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032199TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032200UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032201WMFDecodeDelegateDefault='wmf2eps'
32202WWWDecodeDelegateDefault='curl'
32203XPSDelegateDefault='gxps'
32204ZipDelegateDefault='gzip'
32205
32206# Search for delegates
32207# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32208set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032210$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032211if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032212 $as_echo_n "(cached) " >&6
32213else
32214 case $AutotraceDecodeDelegate in
32215 [\\/]* | ?:[\\/]*)
32216 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32217 ;;
32218 *)
32219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32220for as_dir in $PATH
32221do
32222 IFS=$as_save_IFS
32223 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032224 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032226 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032228 break 2
32229 fi
32230done
cristy8b350f62009-11-15 23:12:43 +000032231 done
cristy3ed852e2009-09-05 21:47:34 +000032232IFS=$as_save_IFS
32233
32234 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32235 ;;
32236esac
32237fi
32238AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32239if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032241$as_echo "$AutotraceDecodeDelegate" >&6; }
32242else
cristy8b350f62009-11-15 23:12:43 +000032243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032244$as_echo "no" >&6; }
32245fi
32246
32247
cristy3ed852e2009-09-05 21:47:34 +000032248# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32249set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032251$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032252if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032253 $as_echo_n "(cached) " >&6
32254else
32255 case $BlenderDecodeDelegate in
32256 [\\/]* | ?:[\\/]*)
32257 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32258 ;;
32259 *)
32260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32261for as_dir in $PATH
32262do
32263 IFS=$as_save_IFS
32264 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032265 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032267 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032269 break 2
32270 fi
32271done
cristy8b350f62009-11-15 23:12:43 +000032272 done
cristy3ed852e2009-09-05 21:47:34 +000032273IFS=$as_save_IFS
32274
32275 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32276 ;;
32277esac
32278fi
32279BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32280if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032282$as_echo "$BlenderDecodeDelegate" >&6; }
32283else
cristy8b350f62009-11-15 23:12:43 +000032284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032285$as_echo "no" >&6; }
32286fi
32287
32288
32289# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32290set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032292$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032293if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032294 $as_echo_n "(cached) " >&6
32295else
32296 case $BZIPDelegate in
32297 [\\/]* | ?:[\\/]*)
32298 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32299 ;;
32300 *)
32301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32302for as_dir in $PATH
32303do
32304 IFS=$as_save_IFS
32305 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032306 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032308 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032310 break 2
32311 fi
32312done
cristy8b350f62009-11-15 23:12:43 +000032313 done
cristy3ed852e2009-09-05 21:47:34 +000032314IFS=$as_save_IFS
32315
32316 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32317 ;;
32318esac
32319fi
32320BZIPDelegate=$ac_cv_path_BZIPDelegate
32321if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032323$as_echo "$BZIPDelegate" >&6; }
32324else
cristy8b350f62009-11-15 23:12:43 +000032325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032326$as_echo "no" >&6; }
32327fi
32328
32329
cristyc59f0e72012-08-27 12:59:33 +000032330for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32331do
32332 # Extract the first word of "$ac_prog", so it can be a program name with args.
32333set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032335$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032336if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032337 $as_echo_n "(cached) " >&6
32338else
32339 case $BrowseDelegate in
32340 [\\/]* | ?:[\\/]*)
32341 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32342 ;;
32343 *)
32344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32345for as_dir in $PATH
32346do
32347 IFS=$as_save_IFS
32348 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032349 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032351 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032353 break 2
32354 fi
32355done
cristy8b350f62009-11-15 23:12:43 +000032356 done
cristy3ed852e2009-09-05 21:47:34 +000032357IFS=$as_save_IFS
32358
cristy3ed852e2009-09-05 21:47:34 +000032359 ;;
32360esac
32361fi
32362BrowseDelegate=$ac_cv_path_BrowseDelegate
32363if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032365$as_echo "$BrowseDelegate" >&6; }
32366else
cristy8b350f62009-11-15 23:12:43 +000032367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032368$as_echo "no" >&6; }
32369fi
32370
32371
cristyc59f0e72012-08-27 12:59:33 +000032372 test -n "$BrowseDelegate" && break
32373done
32374test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32375
cristy3ed852e2009-09-05 21:47:34 +000032376# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32377set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032379$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032380if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032381 $as_echo_n "(cached) " >&6
32382else
32383 case $CGMDecodeDelegate in
32384 [\\/]* | ?:[\\/]*)
32385 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32386 ;;
32387 *)
32388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32389for as_dir in $PATH
32390do
32391 IFS=$as_save_IFS
32392 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032393 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032395 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032397 break 2
32398 fi
32399done
cristy8b350f62009-11-15 23:12:43 +000032400 done
cristy3ed852e2009-09-05 21:47:34 +000032401IFS=$as_save_IFS
32402
32403 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32404 ;;
32405esac
32406fi
32407CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32408if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032410$as_echo "$CGMDecodeDelegate" >&6; }
32411else
cristy8b350f62009-11-15 23:12:43 +000032412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032413$as_echo "no" >&6; }
32414fi
32415
32416
32417# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32418set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032420$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032421if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032422 $as_echo_n "(cached) " >&6
32423else
32424 case $CatDelegate in
32425 [\\/]* | ?:[\\/]*)
32426 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32427 ;;
32428 *)
32429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32430for as_dir in $PATH
32431do
32432 IFS=$as_save_IFS
32433 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032434 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032436 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032438 break 2
32439 fi
32440done
cristy8b350f62009-11-15 23:12:43 +000032441 done
cristy3ed852e2009-09-05 21:47:34 +000032442IFS=$as_save_IFS
32443
32444 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32445 ;;
32446esac
32447fi
32448CatDelegate=$ac_cv_path_CatDelegate
32449if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032451$as_echo "$CatDelegate" >&6; }
32452else
cristy8b350f62009-11-15 23:12:43 +000032453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032454$as_echo "no" >&6; }
32455fi
32456
32457
32458# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32459set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032461$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032462if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032463 $as_echo_n "(cached) " >&6
32464else
32465 case $DNGDecodeDelegate in
32466 [\\/]* | ?:[\\/]*)
32467 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32468 ;;
32469 *)
32470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32471for as_dir in $PATH
32472do
32473 IFS=$as_save_IFS
32474 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032477 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032479 break 2
32480 fi
32481done
cristy8b350f62009-11-15 23:12:43 +000032482 done
cristy3ed852e2009-09-05 21:47:34 +000032483IFS=$as_save_IFS
32484
32485 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32486 ;;
32487esac
32488fi
32489DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32490if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032492$as_echo "$DNGDecodeDelegate" >&6; }
32493else
cristy8b350f62009-11-15 23:12:43 +000032494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032495$as_echo "no" >&6; }
32496fi
32497
32498
32499# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32500set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032502$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032503if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032504 $as_echo_n "(cached) " >&6
32505else
32506 case $GVCDecodeDelegate in
32507 [\\/]* | ?:[\\/]*)
32508 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32509 ;;
32510 *)
32511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32512for as_dir in $PATH
32513do
32514 IFS=$as_save_IFS
32515 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032516 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032518 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032520 break 2
32521 fi
32522done
cristy8b350f62009-11-15 23:12:43 +000032523 done
cristy3ed852e2009-09-05 21:47:34 +000032524IFS=$as_save_IFS
32525
32526 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32527 ;;
32528esac
32529fi
32530GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32531if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032533$as_echo "$GVCDecodeDelegate" >&6; }
32534else
cristy8b350f62009-11-15 23:12:43 +000032535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032536$as_echo "no" >&6; }
32537fi
32538
32539
32540# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32541set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032543$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032544if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032545 $as_echo_n "(cached) " >&6
32546else
32547 case $DVIDecodeDelegate in
32548 [\\/]* | ?:[\\/]*)
32549 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32550 ;;
32551 *)
32552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32553for as_dir in $PATH
32554do
32555 IFS=$as_save_IFS
32556 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032557 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032559 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032561 break 2
32562 fi
32563done
cristy8b350f62009-11-15 23:12:43 +000032564 done
cristy3ed852e2009-09-05 21:47:34 +000032565IFS=$as_save_IFS
32566
32567 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32568 ;;
32569esac
32570fi
32571DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32572if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032574$as_echo "$DVIDecodeDelegate" >&6; }
32575else
cristy8b350f62009-11-15 23:12:43 +000032576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032577$as_echo "no" >&6; }
32578fi
32579
32580
32581# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32582set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032584$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032585if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032586 $as_echo_n "(cached) " >&6
32587else
32588 case $EchoDelegate in
32589 [\\/]* | ?:[\\/]*)
32590 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32591 ;;
32592 *)
32593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32594for as_dir in $PATH
32595do
32596 IFS=$as_save_IFS
32597 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032598 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032600 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032602 break 2
32603 fi
32604done
cristy8b350f62009-11-15 23:12:43 +000032605 done
cristy3ed852e2009-09-05 21:47:34 +000032606IFS=$as_save_IFS
32607
32608 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32609 ;;
32610esac
32611fi
32612EchoDelegate=$ac_cv_path_EchoDelegate
32613if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032615$as_echo "$EchoDelegate" >&6; }
32616else
cristy8b350f62009-11-15 23:12:43 +000032617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032618$as_echo "no" >&6; }
32619fi
32620
32621
32622# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32623set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032625$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032626if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032627 $as_echo_n "(cached) " >&6
32628else
32629 case $EditorDelegate in
32630 [\\/]* | ?:[\\/]*)
32631 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32632 ;;
32633 *)
32634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32635for as_dir in $PATH
32636do
32637 IFS=$as_save_IFS
32638 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032641 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032643 break 2
32644 fi
32645done
cristy8b350f62009-11-15 23:12:43 +000032646 done
cristy3ed852e2009-09-05 21:47:34 +000032647IFS=$as_save_IFS
32648
32649 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32650 ;;
32651esac
32652fi
32653EditorDelegate=$ac_cv_path_EditorDelegate
32654if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032656$as_echo "$EditorDelegate" >&6; }
32657else
cristy8b350f62009-11-15 23:12:43 +000032658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032659$as_echo "no" >&6; }
32660fi
32661
32662
32663# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32664set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032666$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032667if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032668 $as_echo_n "(cached) " >&6
32669else
32670 case $FIGDecodeDelegate in
32671 [\\/]* | ?:[\\/]*)
32672 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32673 ;;
32674 *)
32675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32676for as_dir in $PATH
32677do
32678 IFS=$as_save_IFS
32679 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032680 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032682 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032684 break 2
32685 fi
32686done
cristy8b350f62009-11-15 23:12:43 +000032687 done
cristy3ed852e2009-09-05 21:47:34 +000032688IFS=$as_save_IFS
32689
32690 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32691 ;;
32692esac
32693fi
32694FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32695if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032697$as_echo "$FIGDecodeDelegate" >&6; }
32698else
cristy8b350f62009-11-15 23:12:43 +000032699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032700$as_echo "no" >&6; }
32701fi
32702
32703
32704# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32705set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032707$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032708if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032709 $as_echo_n "(cached) " >&6
32710else
32711 case $ConvertDelegate in
32712 [\\/]* | ?:[\\/]*)
32713 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32714 ;;
32715 *)
32716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32717for as_dir in $PATH
32718do
32719 IFS=$as_save_IFS
32720 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032721 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032723 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032725 break 2
32726 fi
32727done
cristy8b350f62009-11-15 23:12:43 +000032728 done
cristy3ed852e2009-09-05 21:47:34 +000032729IFS=$as_save_IFS
32730
32731 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32732 ;;
32733esac
32734fi
32735ConvertDelegate=$ac_cv_path_ConvertDelegate
32736if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032738$as_echo "$ConvertDelegate" >&6; }
32739else
cristy8b350f62009-11-15 23:12:43 +000032740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032741$as_echo "no" >&6; }
32742fi
32743
32744
32745# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32746set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032748$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032749if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032750 $as_echo_n "(cached) " >&6
32751else
32752 case $DisplayDelegate in
32753 [\\/]* | ?:[\\/]*)
32754 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32755 ;;
32756 *)
32757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32758for as_dir in $PATH
32759do
32760 IFS=$as_save_IFS
32761 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032762 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032764 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032766 break 2
32767 fi
32768done
cristy8b350f62009-11-15 23:12:43 +000032769 done
cristy3ed852e2009-09-05 21:47:34 +000032770IFS=$as_save_IFS
32771
32772 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32773 ;;
32774esac
32775fi
32776DisplayDelegate=$ac_cv_path_DisplayDelegate
32777if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032779$as_echo "$DisplayDelegate" >&6; }
32780else
cristy8b350f62009-11-15 23:12:43 +000032781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032782$as_echo "no" >&6; }
32783fi
32784
32785
32786# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32787set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032789$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032790if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032791 $as_echo_n "(cached) " >&6
32792else
32793 case $MogrifyDelegate in
32794 [\\/]* | ?:[\\/]*)
32795 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32796 ;;
32797 *)
32798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32799for as_dir in $PATH
32800do
32801 IFS=$as_save_IFS
32802 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032803 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032805 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032807 break 2
32808 fi
32809done
cristy8b350f62009-11-15 23:12:43 +000032810 done
cristy3ed852e2009-09-05 21:47:34 +000032811IFS=$as_save_IFS
32812
32813 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32814 ;;
32815esac
32816fi
32817MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32818if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032820$as_echo "$MogrifyDelegate" >&6; }
32821else
cristy8b350f62009-11-15 23:12:43 +000032822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032823$as_echo "no" >&6; }
32824fi
32825
32826
32827# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32828set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032830$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032831if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032832 $as_echo_n "(cached) " >&6
32833else
32834 case $GnuplotDecodeDelegate in
32835 [\\/]* | ?:[\\/]*)
32836 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32837 ;;
32838 *)
32839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32840for as_dir in $PATH
32841do
32842 IFS=$as_save_IFS
32843 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032844 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032846 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032848 break 2
32849 fi
32850done
cristy8b350f62009-11-15 23:12:43 +000032851 done
cristy3ed852e2009-09-05 21:47:34 +000032852IFS=$as_save_IFS
32853
32854 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32855 ;;
32856esac
32857fi
32858GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32859if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032861$as_echo "$GnuplotDecodeDelegate" >&6; }
32862else
cristy8b350f62009-11-15 23:12:43 +000032863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032864$as_echo "no" >&6; }
32865fi
32866
32867
cristy3ed852e2009-09-05 21:47:34 +000032868# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32869set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032871$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032872if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032873 $as_echo_n "(cached) " >&6
32874else
32875 case $HPGLDecodeDelegate in
32876 [\\/]* | ?:[\\/]*)
32877 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32878 ;;
32879 *)
32880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32881for as_dir in $PATH
32882do
32883 IFS=$as_save_IFS
32884 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032885 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032887 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032889 break 2
32890 fi
32891done
cristy8b350f62009-11-15 23:12:43 +000032892 done
cristy3ed852e2009-09-05 21:47:34 +000032893IFS=$as_save_IFS
32894
32895 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32896 ;;
32897esac
32898fi
32899HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32900if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032902$as_echo "$HPGLDecodeDelegate" >&6; }
32903else
cristy8b350f62009-11-15 23:12:43 +000032904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032905$as_echo "no" >&6; }
32906fi
32907
32908
32909# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32910set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032912$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032913if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032914 $as_echo_n "(cached) " >&6
32915else
32916 case $HTMLDecodeDelegate in
32917 [\\/]* | ?:[\\/]*)
32918 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32919 ;;
32920 *)
32921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32922for as_dir in $PATH
32923do
32924 IFS=$as_save_IFS
32925 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032926 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032928 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032930 break 2
32931 fi
32932done
cristy8b350f62009-11-15 23:12:43 +000032933 done
cristy3ed852e2009-09-05 21:47:34 +000032934IFS=$as_save_IFS
32935
32936 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32937 ;;
32938esac
32939fi
32940HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32941if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032943$as_echo "$HTMLDecodeDelegate" >&6; }
32944else
cristy8b350f62009-11-15 23:12:43 +000032945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032946$as_echo "no" >&6; }
32947fi
32948
32949
32950# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32951set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032953$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032954if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032955 $as_echo_n "(cached) " >&6
32956else
32957 case $ILBMDecodeDelegate in
32958 [\\/]* | ?:[\\/]*)
32959 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32960 ;;
32961 *)
32962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32963for as_dir in $PATH
32964do
32965 IFS=$as_save_IFS
32966 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032967 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032969 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032971 break 2
32972 fi
32973done
cristy8b350f62009-11-15 23:12:43 +000032974 done
cristy3ed852e2009-09-05 21:47:34 +000032975IFS=$as_save_IFS
32976
32977 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32978 ;;
32979esac
32980fi
32981ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32982if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032984$as_echo "$ILBMDecodeDelegate" >&6; }
32985else
cristy8b350f62009-11-15 23:12:43 +000032986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032987$as_echo "no" >&6; }
32988fi
32989
32990
32991# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32992set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032994$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032995if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032996 $as_echo_n "(cached) " >&6
32997else
32998 case $ILBMEncodeDelegate in
32999 [\\/]* | ?:[\\/]*)
33000 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33001 ;;
33002 *)
33003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33004for as_dir in $PATH
33005do
33006 IFS=$as_save_IFS
33007 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033008 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033010 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033012 break 2
33013 fi
33014done
cristy8b350f62009-11-15 23:12:43 +000033015 done
cristy3ed852e2009-09-05 21:47:34 +000033016IFS=$as_save_IFS
33017
33018 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33019 ;;
33020esac
33021fi
33022ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33023if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033025$as_echo "$ILBMEncodeDelegate" >&6; }
33026else
cristy8b350f62009-11-15 23:12:43 +000033027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033028$as_echo "no" >&6; }
33029fi
33030
33031
33032# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33033set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033035$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033036if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033037 $as_echo_n "(cached) " >&6
33038else
33039 case $LPDelegate in
33040 [\\/]* | ?:[\\/]*)
33041 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33042 ;;
33043 *)
33044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33045for as_dir in $PATH
33046do
33047 IFS=$as_save_IFS
33048 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033049 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033051 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033053 break 2
33054 fi
33055done
cristy8b350f62009-11-15 23:12:43 +000033056 done
cristy3ed852e2009-09-05 21:47:34 +000033057IFS=$as_save_IFS
33058
33059 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33060 ;;
33061esac
33062fi
33063LPDelegate=$ac_cv_path_LPDelegate
33064if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033066$as_echo "$LPDelegate" >&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
33073# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33074set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033076$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033077if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033078 $as_echo_n "(cached) " >&6
33079else
33080 case $LPRDelegate in
33081 [\\/]* | ?:[\\/]*)
33082 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33083 ;;
33084 *)
33085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33086for as_dir in $PATH
33087do
33088 IFS=$as_save_IFS
33089 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033090 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033092 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033094 break 2
33095 fi
33096done
cristy8b350f62009-11-15 23:12:43 +000033097 done
cristy3ed852e2009-09-05 21:47:34 +000033098IFS=$as_save_IFS
33099
33100 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33101 ;;
33102esac
33103fi
33104LPRDelegate=$ac_cv_path_LPRDelegate
33105if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033107$as_echo "$LPRDelegate" >&6; }
33108else
cristy8b350f62009-11-15 23:12:43 +000033109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033110$as_echo "no" >&6; }
33111fi
33112
33113
cristy3ed852e2009-09-05 21:47:34 +000033114# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33115set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033117$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033118if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033119 $as_echo_n "(cached) " >&6
33120else
33121 case $LaunchDelegate in
33122 [\\/]* | ?:[\\/]*)
33123 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33124 ;;
33125 *)
33126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33127for as_dir in $PATH
33128do
33129 IFS=$as_save_IFS
33130 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033131 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033133 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033135 break 2
33136 fi
33137done
cristy8b350f62009-11-15 23:12:43 +000033138 done
cristy3ed852e2009-09-05 21:47:34 +000033139IFS=$as_save_IFS
33140
33141 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33142 ;;
33143esac
33144fi
33145LaunchDelegate=$ac_cv_path_LaunchDelegate
33146if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033148$as_echo "$LaunchDelegate" >&6; }
33149else
cristy8b350f62009-11-15 23:12:43 +000033150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033151$as_echo "no" >&6; }
33152fi
33153
33154
33155# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33156set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033158$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033159if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033160 $as_echo_n "(cached) " >&6
33161else
33162 case $MANDelegate in
33163 [\\/]* | ?:[\\/]*)
33164 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33165 ;;
33166 *)
33167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33168for as_dir in $PATH
33169do
33170 IFS=$as_save_IFS
33171 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033172 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033174 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033176 break 2
33177 fi
33178done
cristy8b350f62009-11-15 23:12:43 +000033179 done
cristy3ed852e2009-09-05 21:47:34 +000033180IFS=$as_save_IFS
33181
33182 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33183 ;;
33184esac
33185fi
33186MANDelegate=$ac_cv_path_MANDelegate
33187if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033189$as_echo "$MANDelegate" >&6; }
33190else
cristy8b350f62009-11-15 23:12:43 +000033191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033192$as_echo "no" >&6; }
33193fi
33194
33195
33196# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33197set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033199$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033200if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033201 $as_echo_n "(cached) " >&6
33202else
33203 case $MPEGDecodeDelegate in
33204 [\\/]* | ?:[\\/]*)
33205 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33206 ;;
33207 *)
33208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33209for as_dir in $PATH
33210do
33211 IFS=$as_save_IFS
33212 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033213 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033215 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033217 break 2
33218 fi
33219done
cristy8b350f62009-11-15 23:12:43 +000033220 done
cristy3ed852e2009-09-05 21:47:34 +000033221IFS=$as_save_IFS
33222
33223 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33224 ;;
33225esac
33226fi
33227MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33228if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033230$as_echo "$MPEGDecodeDelegate" >&6; }
33231else
cristy8b350f62009-11-15 23:12:43 +000033232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033233$as_echo "no" >&6; }
33234fi
33235
33236
33237# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33238set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033240$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033241if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033242 $as_echo_n "(cached) " >&6
33243else
33244 case $MPEGEncodeDelegate in
33245 [\\/]* | ?:[\\/]*)
33246 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33247 ;;
33248 *)
33249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33250for as_dir in $PATH
33251do
33252 IFS=$as_save_IFS
33253 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033254 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033256 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033258 break 2
33259 fi
33260done
cristy8b350f62009-11-15 23:12:43 +000033261 done
cristy3ed852e2009-09-05 21:47:34 +000033262IFS=$as_save_IFS
33263
33264 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33265 ;;
33266esac
33267fi
33268MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33269if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033271$as_echo "$MPEGEncodeDelegate" >&6; }
33272else
cristy8b350f62009-11-15 23:12:43 +000033273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033274$as_echo "no" >&6; }
33275fi
33276
33277
cristy935c86e2010-06-05 23:50:07 +000033278# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33279set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33281$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033282if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033283 $as_echo_n "(cached) " >&6
33284else
33285 case $MrSIDDecodeDelegate in
33286 [\\/]* | ?:[\\/]*)
33287 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33288 ;;
33289 *)
33290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33291for as_dir in $PATH
33292do
33293 IFS=$as_save_IFS
33294 test -z "$as_dir" && as_dir=.
33295 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033297 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33299 break 2
33300 fi
33301done
33302 done
33303IFS=$as_save_IFS
33304
33305 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33306 ;;
33307esac
33308fi
33309MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33310if test -n "$MrSIDDecodeDelegate"; then
33311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33312$as_echo "$MrSIDDecodeDelegate" >&6; }
33313else
33314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33315$as_echo "no" >&6; }
33316fi
33317
33318
cristy3ed852e2009-09-05 21:47:34 +000033319# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33320set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033322$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033323if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033324 $as_echo_n "(cached) " >&6
33325else
33326 case $MVDelegate in
33327 [\\/]* | ?:[\\/]*)
33328 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33329 ;;
33330 *)
33331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33332for as_dir in $PATH
33333do
33334 IFS=$as_save_IFS
33335 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033336 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033338 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033340 break 2
33341 fi
33342done
cristy8b350f62009-11-15 23:12:43 +000033343 done
cristy3ed852e2009-09-05 21:47:34 +000033344IFS=$as_save_IFS
33345
33346 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33347 ;;
33348esac
33349fi
33350MVDelegate=$ac_cv_path_MVDelegate
33351if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033353$as_echo "$MVDelegate" >&6; }
33354else
cristy8b350f62009-11-15 23:12:43 +000033355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033356$as_echo "no" >&6; }
33357fi
33358
33359
33360# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33361set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033363$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033364if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033365 $as_echo_n "(cached) " >&6
33366else
33367 case $PCLDelegate in
33368 [\\/]* | ?:[\\/]*)
33369 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33370 ;;
33371 *)
33372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33373for as_dir in $PATH
33374do
33375 IFS=$as_save_IFS
33376 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033377 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033379 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033381 break 2
33382 fi
33383done
cristy8b350f62009-11-15 23:12:43 +000033384 done
cristy3ed852e2009-09-05 21:47:34 +000033385IFS=$as_save_IFS
33386
33387 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33388 ;;
33389esac
33390fi
33391PCLDelegate=$ac_cv_path_PCLDelegate
33392if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033394$as_echo "$PCLDelegate" >&6; }
33395else
cristy8b350f62009-11-15 23:12:43 +000033396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033397$as_echo "no" >&6; }
33398fi
33399
33400
33401# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33402set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033404$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033405if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033406 $as_echo_n "(cached) " >&6
33407else
33408 case $PGPDecodeDelegate in
33409 [\\/]* | ?:[\\/]*)
33410 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33411 ;;
33412 *)
33413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33414for as_dir in $PATH
33415do
33416 IFS=$as_save_IFS
33417 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033418 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033420 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033422 break 2
33423 fi
33424done
cristy8b350f62009-11-15 23:12:43 +000033425 done
cristy3ed852e2009-09-05 21:47:34 +000033426IFS=$as_save_IFS
33427
33428 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33429 ;;
33430esac
33431fi
33432PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33433if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033435$as_echo "$PGPDecodeDelegate" >&6; }
33436else
cristy8b350f62009-11-15 23:12:43 +000033437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033438$as_echo "no" >&6; }
33439fi
33440
33441
33442# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33443set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033445$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033446if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033447 $as_echo_n "(cached) " >&6
33448else
33449 case $POVDelegate in
33450 [\\/]* | ?:[\\/]*)
33451 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33452 ;;
33453 *)
33454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33455for as_dir in $PATH
33456do
33457 IFS=$as_save_IFS
33458 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033459 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033461 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033463 break 2
33464 fi
33465done
cristy8b350f62009-11-15 23:12:43 +000033466 done
cristy3ed852e2009-09-05 21:47:34 +000033467IFS=$as_save_IFS
33468
33469 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33470 ;;
33471esac
33472fi
33473POVDelegate=$ac_cv_path_POVDelegate
33474if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033476$as_echo "$POVDelegate" >&6; }
33477else
cristy8b350f62009-11-15 23:12:43 +000033478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033479$as_echo "no" >&6; }
33480fi
33481
33482
33483for ac_prog in gsx gsc "$PSDelegateDefault"
33484do
33485 # Extract the first word of "$ac_prog", so it can be a program name with args.
33486set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033488$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033489if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033490 $as_echo_n "(cached) " >&6
33491else
33492 case $PSDelegate in
33493 [\\/]* | ?:[\\/]*)
33494 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33495 ;;
33496 *)
33497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33498for as_dir in $PATH
33499do
33500 IFS=$as_save_IFS
33501 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033502 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033504 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033506 break 2
33507 fi
33508done
cristy8b350f62009-11-15 23:12:43 +000033509 done
cristy3ed852e2009-09-05 21:47:34 +000033510IFS=$as_save_IFS
33511
33512 ;;
33513esac
33514fi
33515PSDelegate=$ac_cv_path_PSDelegate
33516if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033518$as_echo "$PSDelegate" >&6; }
33519else
cristy8b350f62009-11-15 23:12:43 +000033520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033521$as_echo "no" >&6; }
33522fi
33523
33524
33525 test -n "$PSDelegate" && break
33526done
33527test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33528
33529# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33530set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033532$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033533if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033534 $as_echo_n "(cached) " >&6
33535else
33536 case $RLEEncodeDelegate in
33537 [\\/]* | ?:[\\/]*)
33538 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33539 ;;
33540 *)
33541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33542for as_dir in $PATH
33543do
33544 IFS=$as_save_IFS
33545 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033546 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033548 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033550 break 2
33551 fi
33552done
cristy8b350f62009-11-15 23:12:43 +000033553 done
cristy3ed852e2009-09-05 21:47:34 +000033554IFS=$as_save_IFS
33555
33556 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33557 ;;
33558esac
33559fi
33560RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33561if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033563$as_echo "$RLEEncodeDelegate" >&6; }
33564else
cristy8b350f62009-11-15 23:12:43 +000033565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033566$as_echo "no" >&6; }
33567fi
33568
33569
33570# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33571set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033573$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033574if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033575 $as_echo_n "(cached) " >&6
33576else
33577 case $RMDelegate in
33578 [\\/]* | ?:[\\/]*)
33579 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33580 ;;
33581 *)
33582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33583for as_dir in $PATH
33584do
33585 IFS=$as_save_IFS
33586 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033587 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033589 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033591 break 2
33592 fi
33593done
cristy8b350f62009-11-15 23:12:43 +000033594 done
cristy3ed852e2009-09-05 21:47:34 +000033595IFS=$as_save_IFS
33596
33597 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33598 ;;
33599esac
33600fi
33601RMDelegate=$ac_cv_path_RMDelegate
33602if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033604$as_echo "$RMDelegate" >&6; }
33605else
cristy8b350f62009-11-15 23:12:43 +000033606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033607$as_echo "no" >&6; }
33608fi
33609
33610
cristy4689cf02010-02-17 21:15:45 +000033611# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33612set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33614$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033615if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033616 $as_echo_n "(cached) " >&6
33617else
33618 case $RSVGDecodeDelegate in
33619 [\\/]* | ?:[\\/]*)
33620 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33621 ;;
33622 *)
33623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33624for as_dir in $PATH
33625do
33626 IFS=$as_save_IFS
33627 test -z "$as_dir" && as_dir=.
33628 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000033630 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33632 break 2
33633 fi
33634done
33635 done
33636IFS=$as_save_IFS
33637
33638 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33639 ;;
33640esac
33641fi
33642RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33643if test -n "$RSVGDecodeDelegate"; then
33644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33645$as_echo "$RSVGDecodeDelegate" >&6; }
33646else
33647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33648$as_echo "no" >&6; }
33649fi
33650
33651
cristy3ed852e2009-09-05 21:47:34 +000033652# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33653set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033655$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033656if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033657 $as_echo_n "(cached) " >&6
33658else
33659 case $SCANDecodeDelegate in
33660 [\\/]* | ?:[\\/]*)
33661 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33662 ;;
33663 *)
33664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33665for as_dir in $PATH
33666do
33667 IFS=$as_save_IFS
33668 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033669 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033671 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033673 break 2
33674 fi
33675done
cristy8b350f62009-11-15 23:12:43 +000033676 done
cristy3ed852e2009-09-05 21:47:34 +000033677IFS=$as_save_IFS
33678
33679 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33680 ;;
33681esac
33682fi
33683SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33684if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033686$as_echo "$SCANDecodeDelegate" >&6; }
33687else
cristy8b350f62009-11-15 23:12:43 +000033688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033689$as_echo "no" >&6; }
33690fi
33691
33692
cristyec6934f2012-08-14 18:38:40 +000033693# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
33694set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
33695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33696$as_echo_n "checking for $ac_word... " >&6; }
33697if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
33698 $as_echo_n "(cached) " >&6
33699else
33700 case $SVGDecodeDelegate in
33701 [\\/]* | ?:[\\/]*)
33702 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
33703 ;;
33704 *)
33705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33706for as_dir in $PATH
33707do
33708 IFS=$as_save_IFS
33709 test -z "$as_dir" && as_dir=.
33710 for ac_exec_ext in '' $ac_executable_extensions; do
33711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33712 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33714 break 2
33715 fi
33716done
33717 done
33718IFS=$as_save_IFS
33719
33720 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
33721 ;;
33722esac
33723fi
33724SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
33725if test -n "$SVGDecodeDelegate"; then
33726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
33727$as_echo "$SVGDecodeDelegate" >&6; }
33728else
33729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33730$as_echo "no" >&6; }
33731fi
33732
33733
cristy3ed852e2009-09-05 21:47:34 +000033734# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33735set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033737$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033738if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033739 $as_echo_n "(cached) " >&6
33740else
33741 case $TXTDelegate in
33742 [\\/]* | ?:[\\/]*)
33743 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33744 ;;
33745 *)
33746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33747for as_dir in $PATH
33748do
33749 IFS=$as_save_IFS
33750 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033751 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033753 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033755 break 2
33756 fi
33757done
cristy8b350f62009-11-15 23:12:43 +000033758 done
cristy3ed852e2009-09-05 21:47:34 +000033759IFS=$as_save_IFS
33760
33761 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33762 ;;
33763esac
33764fi
33765TXTDelegate=$ac_cv_path_TXTDelegate
33766if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033768$as_echo "$TXTDelegate" >&6; }
33769else
cristy8b350f62009-11-15 23:12:43 +000033770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033771$as_echo "no" >&6; }
33772fi
33773
33774
cristy5ac9ac82010-07-29 13:24:24 +000033775# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33776set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33778$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033779if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033780 $as_echo_n "(cached) " >&6
33781else
33782 case $UniconvertorDelegate in
33783 [\\/]* | ?:[\\/]*)
33784 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33785 ;;
33786 *)
33787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33788for as_dir in $PATH
33789do
33790 IFS=$as_save_IFS
33791 test -z "$as_dir" && as_dir=.
33792 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000033794 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33796 break 2
33797 fi
33798done
33799 done
33800IFS=$as_save_IFS
33801
33802 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33803 ;;
33804esac
33805fi
33806UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33807if test -n "$UniconvertorDelegate"; then
33808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33809$as_echo "$UniconvertorDelegate" >&6; }
33810else
33811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33812$as_echo "no" >&6; }
33813fi
33814
33815
cristy3ed852e2009-09-05 21:47:34 +000033816# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33817set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033819$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033820if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033821 $as_echo_n "(cached) " >&6
33822else
33823 case $WMFDecodeDelegate in
33824 [\\/]* | ?:[\\/]*)
33825 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33826 ;;
33827 *)
33828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33829for as_dir in $PATH
33830do
33831 IFS=$as_save_IFS
33832 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033833 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033835 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033837 break 2
33838 fi
33839done
cristy8b350f62009-11-15 23:12:43 +000033840 done
cristy3ed852e2009-09-05 21:47:34 +000033841IFS=$as_save_IFS
33842
33843 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33844 ;;
33845esac
33846fi
33847WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33848if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033850$as_echo "$WMFDecodeDelegate" >&6; }
33851else
cristy8b350f62009-11-15 23:12:43 +000033852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033853$as_echo "no" >&6; }
33854fi
33855
33856
33857# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33858set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033860$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033861if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033862 $as_echo_n "(cached) " >&6
33863else
33864 case $WWWDecodeDelegate in
33865 [\\/]* | ?:[\\/]*)
33866 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33867 ;;
33868 *)
33869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33870for as_dir in $PATH
33871do
33872 IFS=$as_save_IFS
33873 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033874 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033876 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033878 break 2
33879 fi
33880done
cristy8b350f62009-11-15 23:12:43 +000033881 done
cristy3ed852e2009-09-05 21:47:34 +000033882IFS=$as_save_IFS
33883
33884 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33885 ;;
33886esac
33887fi
33888WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33889if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033891$as_echo "$WWWDecodeDelegate" >&6; }
33892else
cristy8b350f62009-11-15 23:12:43 +000033893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033894$as_echo "no" >&6; }
33895fi
33896
33897
33898# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33899set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033901$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033902if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033903 $as_echo_n "(cached) " >&6
33904else
33905 case $XPSDelegate in
33906 [\\/]* | ?:[\\/]*)
33907 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33908 ;;
33909 *)
33910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33911for as_dir in $PATH
33912do
33913 IFS=$as_save_IFS
33914 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033915 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033917 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033919 break 2
33920 fi
33921done
cristy8b350f62009-11-15 23:12:43 +000033922 done
cristy3ed852e2009-09-05 21:47:34 +000033923IFS=$as_save_IFS
33924
33925 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33926 ;;
33927esac
33928fi
33929XPSDelegate=$ac_cv_path_XPSDelegate
33930if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033932$as_echo "$XPSDelegate" >&6; }
33933else
cristy8b350f62009-11-15 23:12:43 +000033934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033935$as_echo "no" >&6; }
33936fi
33937
33938
33939# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33940set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033942$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033943if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033944 $as_echo_n "(cached) " >&6
33945else
33946 case $ZipDelegate in
33947 [\\/]* | ?:[\\/]*)
33948 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33949 ;;
33950 *)
33951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33952for as_dir in $PATH
33953do
33954 IFS=$as_save_IFS
33955 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033956 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033958 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033960 break 2
33961 fi
33962done
cristy8b350f62009-11-15 23:12:43 +000033963 done
cristy3ed852e2009-09-05 21:47:34 +000033964IFS=$as_save_IFS
33965
33966 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33967 ;;
33968esac
33969fi
33970ZipDelegate=$ac_cv_path_ZipDelegate
33971if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033973$as_echo "$ZipDelegate" >&6; }
33974else
cristy8b350f62009-11-15 23:12:43 +000033975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033976$as_echo "no" >&6; }
33977fi
33978
33979
33980
33981# Prefer lpr to lp; lp needs options tacked on.
33982if test "$LPRDelegate" != no; then
33983 PrintDelegate="$LPRDelegate"
33984else
33985 PrintDelegate="$LPDelegate -c -s"
33986fi
33987
33988
33989# Installed ImageMagick utiltity paths
33990ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33991DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33992MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33993
33994# Set delegate booleans
33995have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33996have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33997have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33998have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33999have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034000have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034001have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34002have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034003have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34004have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34005
34006#
34007# Test for font directories
34008#
34009type_include_files=''
34010
cristy430a7312010-01-21 20:44:04 +000034011# Dejavu fonts.
34012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34013$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34014dejavu_font_dir=''
34015if test "${with_dejavu_font_dir}" != 'default'; then
34016 dejavu_font_dir="${with_dejavu_font_dir}/"
34017else
34018 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34019 if test -f "${font_dir}DejaVuSerif.ttf"; then
34020 dejavu_font_dir="${font_dir}"
34021 break 1
34022 fi
34023 done
34024fi
34025if test "${dejavu_font_dir}x" != 'x'; then
34026 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034027 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34028$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034029else
cristy09b53e12011-10-14 12:47:22 +000034030 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34031$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034032fi
34033
34034
cristy3ed852e2009-09-05 21:47:34 +000034035# Windows
34036windows_font_dir=''
34037if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34038 windows_font_dir="${with_windows_font_dir}/"
34039fi
cristy430a7312010-01-21 20:44:04 +000034040if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034041 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34042 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34043 fi
34044 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34045 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34046 fi
34047 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34048 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34049 fi
34050fi
cristy430a7312010-01-21 20:44:04 +000034051if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034052 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34053fi
34054
34055
34056# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034058$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34059ghostscript_font_dir=''
34060if test "${with_gs_font_dir}" != 'default'; then
34061 ghostscript_font_dir="${with_gs_font_dir}/"
34062else
34063 if test "${native_win32_build}" = 'yes'; then
34064 # Native Windows Build
34065 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34066 if test -f "${font_dir}a010013l.pfb"; then
34067 ghostscript_font_dir="$font_dir"
34068 break 1
34069 fi
34070 done
34071 if test "${PSDelegate}" != 'gswin32c'; then
34072 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34073 fi
34074 else
34075 # Linux / Mac OS X / Unix Build
34076 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
34077 if test -f "${font_dir}a010013l.pfb"; then
34078 ghostscript_font_dir="${font_dir}"
34079 break 1
34080 fi
34081 done
34082 if test "${ghostscript_font_dir}x" = 'x'; then
34083 if test "$PSDelegate" != 'gs'; then
34084 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34085 fi
34086 fi
34087 fi
34088fi
34089if test "${ghostscript_font_dir}x" != 'x'; then
34090 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034091 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34092$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034093else
cristy09b53e12011-10-14 12:47:22 +000034094 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34095$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034096fi
34097
34098case "${build_os}" in
34099 mingw* )
34100 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34101 ;;
34102esac
34103
34104
34105
34106#
34107# Handle case where user doesn't want frozen paths
34108#
34109if test "$with_frozenpaths" != 'yes'; then
34110 # Re-set delegate definitions to default (no paths)
34111 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034112 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34113 BZIPDelegate="$BZIPDelegateDefault"
34114 BrowseDelegate="$BrowseDelegateDefault"
34115 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34116 CatDelegate="$CatDelegateDefault"
34117 ConvertDelegate="$ConvertDelegateDefault"
34118 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34119 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34120 EchoDelegate="$EchoDelegateDefault"
34121 EditorDelegate="$EditorDelegateDefault"
34122 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34123 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34124 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34125 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34126 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34127 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34128 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034129 LaunchDelegate="$LaunchDelegateDefault"
34130 MANDelegate="$MANDelegateDefault"
34131 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34132 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034133 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034134 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34135 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034136 PCLDelegate="$PCLDelegateDefault"
34137 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34138 POVDelegate="$POVDelegateDefault"
34139 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034140 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34141 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034142 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034143 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034144 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034145 ShowImageDelegate="$ShowImageDelegateDefault"
34146 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034147 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034148 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34149 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34150 XPSDelegate="$XPSDelegateDefault"
34151 ZipDelegate="$ZipDelegateDefault"
34152fi
34153
34154# Delegate substitutions
34155
34156
34157
34158
34159
34160
34161
34162
34163
34164
34165
34166
34167
34168
34169
34170
34171
34172
34173
34174
34175
34176
34177
34178
34179
34180
34181
34182
34183
34184
34185
34186
34187
34188
34189
34190
34191
34192
34193
34194
cristy3ed852e2009-09-05 21:47:34 +000034195#
34196# RPM support.
34197#
34198RPM=''
34199for ac_prog in gnutar gtar tar
34200do
34201 # Extract the first word of "$ac_prog", so it can be a program name with args.
34202set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034204$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034205if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034206 $as_echo_n "(cached) " >&6
34207else
34208 if test -n "$TAR"; then
34209 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34210else
34211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34212for as_dir in $PATH
34213do
34214 IFS=$as_save_IFS
34215 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034216 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034218 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034220 break 2
34221 fi
34222done
cristy8b350f62009-11-15 23:12:43 +000034223 done
cristy3ed852e2009-09-05 21:47:34 +000034224IFS=$as_save_IFS
34225
34226fi
34227fi
34228TAR=$ac_cv_prog_TAR
34229if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034231$as_echo "$TAR" >&6; }
34232else
cristy8b350f62009-11-15 23:12:43 +000034233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034234$as_echo "no" >&6; }
34235fi
34236
34237
34238 test -n "$TAR" && break
34239done
34240
34241for ac_prog in perl
34242do
34243 # Extract the first word of "$ac_prog", so it can be a program name with args.
34244set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034246$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034247if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034248 $as_echo_n "(cached) " >&6
34249else
34250 if test -n "$PERL"; then
34251 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34252else
34253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34254for as_dir in $PATH
34255do
34256 IFS=$as_save_IFS
34257 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034258 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034260 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034262 break 2
34263 fi
34264done
cristy8b350f62009-11-15 23:12:43 +000034265 done
cristy3ed852e2009-09-05 21:47:34 +000034266IFS=$as_save_IFS
34267
34268fi
34269fi
34270PERL=$ac_cv_prog_PERL
34271if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034273$as_echo "$PERL" >&6; }
34274else
cristy8b350f62009-11-15 23:12:43 +000034275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034276$as_echo "no" >&6; }
34277fi
34278
34279
34280 test -n "$PERL" && break
34281done
34282
34283for ac_prog in rpmbuild rpm
34284do
34285 # Extract the first word of "$ac_prog", so it can be a program name with args.
34286set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034288$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034289if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034290 $as_echo_n "(cached) " >&6
34291else
34292 if test -n "$RPM"; then
34293 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34294else
34295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34296for as_dir in $PATH
34297do
34298 IFS=$as_save_IFS
34299 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034300 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034302 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034304 break 2
34305 fi
34306done
cristy8b350f62009-11-15 23:12:43 +000034307 done
cristy3ed852e2009-09-05 21:47:34 +000034308IFS=$as_save_IFS
34309
34310fi
34311fi
34312RPM=$ac_cv_prog_RPM
34313if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034315$as_echo "$RPM" >&6; }
34316else
cristy8b350f62009-11-15 23:12:43 +000034317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034318$as_echo "no" >&6; }
34319fi
34320
34321
34322 test -n "$RPM" && break
34323done
34324
34325
cristy73bd4a52010-10-05 11:24:23 +000034326ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34327
34328
34329AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34330
34331
34332AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34333
34334
34335AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34336
34337
34338 if test "x$RPM" != "x" ; then
34339 RPM_DELEGATE_TRUE=
34340 RPM_DELEGATE_FALSE='#'
34341else
34342 RPM_DELEGATE_TRUE='#'
34343 RPM_DELEGATE_FALSE=
34344fi
34345
cristy3ed852e2009-09-05 21:47:34 +000034346
34347#
34348# 7ZIP support (http://p7zip.sourceforge.net/)
34349#
34350P7ZIP=''
34351for ac_prog in 7za
34352do
34353 # Extract the first word of "$ac_prog", so it can be a program name with args.
34354set dummy $ac_prog; 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_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034358 $as_echo_n "(cached) " >&6
34359else
34360 if test -n "$P7ZIP"; then
34361 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34362else
34363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34364for as_dir in $PATH
34365do
34366 IFS=$as_save_IFS
34367 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034368 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034370 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034372 break 2
34373 fi
34374done
cristy8b350f62009-11-15 23:12:43 +000034375 done
cristy3ed852e2009-09-05 21:47:34 +000034376IFS=$as_save_IFS
34377
34378fi
34379fi
34380P7ZIP=$ac_cv_prog_P7ZIP
34381if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034383$as_echo "$P7ZIP" >&6; }
34384else
cristy8b350f62009-11-15 23:12:43 +000034385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034386$as_echo "no" >&6; }
34387fi
34388
34389
34390 test -n "$P7ZIP" && break
34391done
34392
34393
cristy73bd4a52010-10-05 11:24:23 +000034394 if test "x$P7ZIP" != "x" ; then
34395 P7ZIP_DELEGATE_TRUE=
34396 P7ZIP_DELEGATE_FALSE='#'
34397else
34398 P7ZIP_DELEGATE_TRUE='#'
34399 P7ZIP_DELEGATE_FALSE=
34400fi
34401
cristy3ed852e2009-09-05 21:47:34 +000034402
34403#
34404# ZIP support (http://www.info-zip.org/Zip.html)
34405#
34406ZIP=''
34407for ac_prog in zip
34408do
34409 # Extract the first word of "$ac_prog", so it can be a program name with args.
34410set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034412$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034413if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034414 $as_echo_n "(cached) " >&6
34415else
34416 if test -n "$ZIP"; then
34417 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34418else
34419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34420for as_dir in $PATH
34421do
34422 IFS=$as_save_IFS
34423 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034424 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034426 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034428 break 2
34429 fi
34430done
cristy8b350f62009-11-15 23:12:43 +000034431 done
cristy3ed852e2009-09-05 21:47:34 +000034432IFS=$as_save_IFS
34433
34434fi
34435fi
34436ZIP=$ac_cv_prog_ZIP
34437if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034439$as_echo "$ZIP" >&6; }
34440else
cristy8b350f62009-11-15 23:12:43 +000034441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034442$as_echo "no" >&6; }
34443fi
34444
34445
34446 test -n "$ZIP" && break
34447done
34448
34449
cristy73bd4a52010-10-05 11:24:23 +000034450 if test "x$ZIP" != "x" ; then
34451 ZIP_DELEGATE_TRUE=
34452 ZIP_DELEGATE_FALSE='#'
34453else
34454 ZIP_DELEGATE_TRUE='#'
34455 ZIP_DELEGATE_FALSE=
34456fi
34457
cristy3ed852e2009-09-05 21:47:34 +000034458
34459#
34460# GhostPCL related configuration.
34461#
34462PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034463PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034464PCLMonoDevice=pbmraw
34465if test -z "$PCLVersion"; then
34466 PCLVersion='unknown'
34467fi
34468if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034469 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34470$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034472$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034473 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34474$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034475 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034477$as_echo_n "checking for pcl color device... " >&6; }
34478 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34479 :
34480 else
34481 PCLColorDevice=ppmraw
34482 fi
cristy09b53e12011-10-14 12:47:22 +000034483 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34484$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034485
34486 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034488$as_echo_n "checking for pcl CMYK device... " >&6; }
34489 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34490 :
34491 else
34492 PCLCMYKDevice=$PCLColorDevice
34493 fi
cristy09b53e12011-10-14 12:47:22 +000034494 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34495$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034496
34497 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034499$as_echo_n "checking for pcl mono device... " >&6; }
34500 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34501 :
34502 else
34503 PCLMonoDevice=$PCLColorDevice
34504 fi
cristy09b53e12011-10-14 12:47:22 +000034505 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34506$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034507fi
34508
34509
34510
34511
34512
34513
34514#
34515# GhostXPS related configuration.
34516#
34517XPSColorDevice=ppmraw
34518XPSCMYKDevice=bmpsep8
34519XPSMonoDevice=pbmraw
34520if test -z "$XPSVersion"; then
34521 XPSVersion='unknown'
34522fi
34523if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034524 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34525$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034527$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034528 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34529$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034530 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034532$as_echo_n "checking for xps color device... " >&6; }
34533 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34534 :
34535 else
34536 XPSColorDevice=ppmraw
34537 fi
cristy09b53e12011-10-14 12:47:22 +000034538 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34539$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034540
34541 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034543$as_echo_n "checking for xps CMYK device... " >&6; }
34544 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34545 :
34546 else
34547 XPSCMYKDevice=$XPSColorDevice
34548 fi
cristy09b53e12011-10-14 12:47:22 +000034549 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34550$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034551
34552 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034554$as_echo_n "checking for xps mono device... " >&6; }
34555 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34556 :
34557 else
34558 XPSMonoDevice=$XPSColorDevice
34559 fi
cristy09b53e12011-10-14 12:47:22 +000034560 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34561$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034562fi
34563
34564
34565
34566
34567
34568
34569#
34570# Ghostscript related configuration.
34571#
cristya97426c2011-02-04 01:41:27 +000034572GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034573GSColorDevice=pnmraw
34574GSCMYKDevice=pam
34575GSMonoDevice=pbmraw
34576GSPDFDevice=pdfwrite
34577GSPSDevice=pswrite
34578GSEPSDevice=epswrite
34579GSVersion='unknown'
34580if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034581 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34582$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034584$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034585 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34586$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034588$as_echo_n "checking for Ghostscript version... " >&6; }
34589 if GSVersion=`$PSDelegate --version`; then
34590 :
34591 else
34592 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34593 fi
cristy09b53e12011-10-14 12:47:22 +000034594 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34595$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034596
34597 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034599$as_echo_n "checking for gs alpha device... " >&6; }
34600 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34601 :
34602 else
34603 GSAlphaDevice=pnmraw
34604 fi
cristy09b53e12011-10-14 12:47:22 +000034605 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34606$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034607
34608 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034610$as_echo_n "checking for gs color device... " >&6; }
34611 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34612 :
34613 else
34614 GSColorDevice=pnmraw
34615 fi
cristy09b53e12011-10-14 12:47:22 +000034616 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34617$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034618
34619 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034621$as_echo_n "checking for gs CMYK device... " >&6; }
34622 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34623 :
34624 else
34625 GSCMYKDevice=bmpsep8
34626 fi
cristy09b53e12011-10-14 12:47:22 +000034627 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34628$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034629
34630 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034632$as_echo_n "checking for gs mono device... " >&6; }
34633 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34634 :
34635 else
34636 GSMonoDevice=$GSColorDevice
34637 fi
cristy09b53e12011-10-14 12:47:22 +000034638 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34639$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034640
34641 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034643$as_echo_n "checking for gs PDF writing device... " >&6; }
34644 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34645 :
34646 else
34647 GSPDFDevice=nodevice
34648 fi
cristy09b53e12011-10-14 12:47:22 +000034649 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34650$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034651
34652 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034654$as_echo_n "checking for gs PS writing device... " >&6; }
34655 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34656 :
34657 else
34658 GSPSDevice=nodevice
34659 fi
cristy09b53e12011-10-14 12:47:22 +000034660 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34661$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034662
34663 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034665$as_echo_n "checking for gs EPS writing device... " >&6; }
34666 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34667 :
34668 else
34669 GSEPSDevice=nodevice
34670 fi
cristy09b53e12011-10-14 12:47:22 +000034671 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34672$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034673fi
34674
34675
34676
34677
34678
34679
34680
34681
34682
34683
34684#
34685# PerlMagick-related configuration
34686#
34687
34688# Look for PERL if PerlMagick requested
34689# If name/path of desired PERL interpreter is specified, look for that one first
34690have_perl='no'
34691if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034692 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34693$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034695$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034696 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34697$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034698 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034700$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034701if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034702 $as_echo_n "(cached) " >&6
34703else
34704 ac_cv_path_PERL="$with_perl"
34705fi
cristy8b350f62009-11-15 23:12:43 +000034706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034707$as_echo "$ac_cv_path_PERL" >&6; };
34708 PERL=$ac_cv_path_PERL
34709 have_perl="$ac_cv_path_PERL"
34710 else
34711 for ac_prog in perl perl5
34712do
34713 # Extract the first word of "$ac_prog", so it can be a program name with args.
34714set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034716$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034717if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034718 $as_echo_n "(cached) " >&6
34719else
34720 case $PERL in
34721 [\\/]* | ?:[\\/]*)
34722 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34723 ;;
34724 *)
34725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34726for as_dir in $PATH
34727do
34728 IFS=$as_save_IFS
34729 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034730 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034732 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034734 break 2
34735 fi
34736done
cristy8b350f62009-11-15 23:12:43 +000034737 done
cristy3ed852e2009-09-05 21:47:34 +000034738IFS=$as_save_IFS
34739
34740 ;;
34741esac
34742fi
34743PERL=$ac_cv_path_PERL
34744if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034746$as_echo "$PERL" >&6; }
34747else
cristy8b350f62009-11-15 23:12:43 +000034748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034749$as_echo "no" >&6; }
34750fi
34751
34752
34753 test -n "$PERL" && break
34754done
34755 if test "$ac_cv_path_PERL"; then
34756 have_perl="$ac_cv_path_PERL"
34757 fi
34758 fi
34759fi
34760
cristy949301e2010-01-06 01:38:40 +000034761if test "$with_perl" != 'yes' ; then
34762 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34763fi
34764
34765PERL_SUPPORTS_DESTDIR='no'
34766
cristy3ed852e2009-09-05 21:47:34 +000034767with_perl_static='no'
34768with_perl_dynamic='no'
34769if test "$have_perl" != 'no'; then
34770 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34771 with_perl_static='yes'
34772 fi
34773 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34774 with_perl_dynamic='yes'
34775 fi
34776 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034777
34778
34779
34780
34781 if test -n "$PERL"; then :
34782
34783 ax_perl_version="5.8.1"
34784
34785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34786$as_echo_n "checking for perl version... " >&6; }
34787
34788 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34789
34790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34791$as_echo "$perl_version" >&6; }
34792
34793 PERL_VERSION=$perl_version
34794
34795
34796
34797
34798
34799 # Used to indicate true or false condition
34800 ax_compare_version=false
34801
34802 # Convert the two version strings to be compared into a format that
34803 # allows a simple string comparison. The end result is that a version
34804 # string of the form 1.12.5-r617 will be converted to the form
34805 # 0001001200050617. In other words, each number is zero padded to four
34806 # digits, and non digits are removed.
34807
34808 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34809 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34810 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34811 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34812 -e 's/[^0-9]//g'`
34813
34814
34815 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34816 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34817 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34818 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34819 -e 's/[^0-9]//g'`
34820
34821
34822 ax_compare_version=`echo "x$ax_compare_version_A
34823x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34824
34825
34826
34827 if test "$ax_compare_version" = "true" ; then
34828
34829 :
34830 PERL_SUPPORTS_DESTDIR='yes'
34831
34832 else
34833 :
34834 PERL_SUPPORTS_DESTDIR='no'
34835
34836 fi
34837
34838
34839else
34840
34841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34842$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34843 PERL_SUPPORTS_DESTDIR='no'
34844
cristy3ed852e2009-09-05 21:47:34 +000034845fi
cristy73bd4a52010-10-05 11:24:23 +000034846
34847fi
34848 if test "$have_perl" != 'no'; then
34849 WITH_PERL_TRUE=
34850 WITH_PERL_FALSE='#'
34851else
34852 WITH_PERL_TRUE='#'
34853 WITH_PERL_FALSE=
34854fi
34855
34856 if test $with_perl_static = 'yes'; then
34857 WITH_PERL_STATIC_TRUE=
34858 WITH_PERL_STATIC_FALSE='#'
34859else
34860 WITH_PERL_STATIC_TRUE='#'
34861 WITH_PERL_STATIC_FALSE=
34862fi
34863
34864 if test $with_perl_dynamic = 'yes'; then
34865 WITH_PERL_DYNAMIC_TRUE=
34866 WITH_PERL_DYNAMIC_FALSE='#'
34867else
34868 WITH_PERL_DYNAMIC_TRUE='#'
34869 WITH_PERL_DYNAMIC_FALSE=
34870fi
34871
cristy3ed852e2009-09-05 21:47:34 +000034872
34873
34874# Determine path to pick up MagickCore library from for use with building PerlMagick
34875MAGICKCORE_PATH="${LIB_DIR}"
34876if test $with_perl_static = 'yes'; then
34877 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34878 libtool_objdir=$objdir
34879
34880 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034881 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034882fi
34883
34884
34885# Create a simple string containing format names for all delegate libraries
34886DELEGATES=''
34887if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34888if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34889if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34890if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34891if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34892if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34893if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34894if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34895if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34896if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34897if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34898if test "$have_jpeg" = 'yes'; then
34899 DELEGATES="$DELEGATES jpeg";
34900 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34901fi
34902if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034903if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034904if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34905if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034906if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034907if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34908if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000034909if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000034910if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34911if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34912if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34913if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34914if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34915if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34916if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34917
34918
34919
34920#
34921# Handle special compiler flags
34922#
34923
34924# Add '-p' if prof source profiling support enabled
34925if test "$enable_prof" = 'yes'; then
34926 CFLAGS="-p $CFLAGS"
34927 CXXFLAGS="-p $CXXFLAGS"
34928 LDFLAGS="-p $LDFLAGS"
34929fi
34930
34931# Add '-pg' if gprof source profiling support enabled
34932if test "$enable_gprof" = 'yes'; then
34933 CFLAGS="-pg $CFLAGS"
34934 CXXFLAGS="-pg $CXXFLAGS"
34935 LDFLAGS="-pg $LDFLAGS"
34936fi
34937
34938# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34939# This is a gcc-specific feature
34940if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034942$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034943if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034944 $as_echo_n "(cached) " >&6
34945else
34946 ac_check_lib_save_LIBS=$LIBS
34947LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034949/* end confdefs.h. */
34950
34951/* Override any GCC internal prototype to avoid an error.
34952 Use char because int might match the return type of a GCC
34953 builtin and then its argument prototype would still apply. */
34954#ifdef __cplusplus
34955extern "C"
34956#endif
34957char _gcov_init ();
34958int
34959main ()
34960{
34961return _gcov_init ();
34962 ;
34963 return 0;
34964}
34965_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034966if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034967 ac_cv_lib_gcov__gcov_init=yes
34968else
cristy8b350f62009-11-15 23:12:43 +000034969 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034970fi
cristy8b350f62009-11-15 23:12:43 +000034971rm -f core conftest.err conftest.$ac_objext \
34972 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034973LIBS=$ac_check_lib_save_LIBS
34974fi
cristy8b350f62009-11-15 23:12:43 +000034975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034976$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034977if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034978 cat >>confdefs.h <<_ACEOF
34979#define HAVE_LIBGCOV 1
34980_ACEOF
34981
34982 LIBS="-lgcov $LIBS"
34983
34984fi
34985
cristy8b350f62009-11-15 23:12:43 +000034986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034987$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034988if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034989 $as_echo_n "(cached) " >&6
34990else
34991 ac_check_lib_save_LIBS=$LIBS
34992LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034994/* end confdefs.h. */
34995
34996/* Override any GCC internal prototype to avoid an error.
34997 Use char because int might match the return type of a GCC
34998 builtin and then its argument prototype would still apply. */
34999#ifdef __cplusplus
35000extern "C"
35001#endif
35002char __gcov_init ();
35003int
35004main ()
35005{
35006return __gcov_init ();
35007 ;
35008 return 0;
35009}
35010_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035011if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035012 ac_cv_lib_gcov___gcov_init=yes
35013else
cristy8b350f62009-11-15 23:12:43 +000035014 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035015fi
cristy8b350f62009-11-15 23:12:43 +000035016rm -f core conftest.err conftest.$ac_objext \
35017 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035018LIBS=$ac_check_lib_save_LIBS
35019fi
cristy8b350f62009-11-15 23:12:43 +000035020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035021$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035022if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035023 cat >>confdefs.h <<_ACEOF
35024#define HAVE_LIBGCOV 1
35025_ACEOF
35026
35027 LIBS="-lgcov $LIBS"
35028
35029fi
35030
35031 case "$target_os" in
35032 darwin*)
35033 OSX_GCOV_LDFLAG="-Wl,-single_module"
35034 ;;
35035 *)
35036 OSX_GCOV_LDFLAG=""
35037 ;;
35038 esac
35039
35040 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35041 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35042 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35043fi
35044
35045#
35046# Build library dependency list for libMagickCore
35047#
35048
cristyc6722092012-10-14 00:19:31 +000035049if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035050 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 $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035051else
cristy3a75f062012-09-08 23:29:40 +000035052 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 +000035053fi
35054
35055
35056#
35057# Remove extraneous spaces from output variables (asthetic)
35058#
35059X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35060X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35061X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35062X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35063
35064CC=`echo $CC | sed -e 's/ */ /g'`
35065CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35066CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35067CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35068DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35069DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35070LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35071TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35072MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35073#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35074
35075# Pass only user-provided LIBS as "global" libraries
35076LIBS=$USER_LIBS
35077
35078#AC_SUBST(CPPFLAGS)
35079
35080#AC_SUBST(LDFLAGS)
35081#AC_SUBST(X_PRE_LIBS)
35082#AC_SUBST(X_LIBS)
35083#AC_SUBST(X_EXTRA_LIBS)
35084
35085MAGICK_CFLAGS=$CFLAGS
35086MAGICK_CXXFLAGS="$CXXFLAGS"
35087MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35088MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35089MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035090MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035091
35092
35093
35094
35095
35096
35097
35098
cristyfd9dcd42010-08-08 18:07:02 +000035099
cristy3ed852e2009-09-05 21:47:34 +000035100# Set configured scripts to executable.
35101ac_config_commands="$ac_config_commands default"
35102
cristy2bd4b6e2012-07-22 15:29:11 +000035103ac_config_commands="$ac_config_commands magick.sh.in"
35104
cristy3ed852e2009-09-05 21:47:34 +000035105ac_config_commands="$ac_config_commands MagickCore-config.in"
35106
cristy3ed852e2009-09-05 21:47:34 +000035107ac_config_commands="$ac_config_commands MagickWand-config.in"
35108
cristy3ed852e2009-09-05 21:47:34 +000035109ac_config_commands="$ac_config_commands Magick++-config.in"
35110
35111ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35112
35113
cristy09b53e12011-10-14 12:47:22 +000035114{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35115$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35116{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35117$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035118cat >confcache <<\_ACEOF
35119# This file is a shell script that caches the results of configure
35120# tests run on this system so they can be shared between configure
35121# scripts and configure runs, see configure's option --config-cache.
35122# It is not useful on other systems. If it contains results you don't
35123# want to keep, you may remove or edit it.
35124#
35125# config.status only pays attention to the cache file if you give it
35126# the --recheck option to rerun configure.
35127#
35128# `ac_cv_env_foo' variables (set or unset) will be overridden when
35129# loading this file, other *unset* `ac_cv_foo' will be assigned the
35130# following values.
35131
35132_ACEOF
35133
35134# The following way of writing the cache mishandles newlines in values,
35135# but we know of no workaround that is simple, portable, and efficient.
35136# So, we kill variables containing newlines.
35137# Ultrix sh set writes to stderr and can't be redirected directly,
35138# and sets the high bit in the cache file unless we assign to the vars.
35139(
35140 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35141 eval ac_val=\$$ac_var
35142 case $ac_val in #(
35143 *${as_nl}*)
35144 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035145 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035146$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35147 esac
35148 case $ac_var in #(
35149 _ | IFS | as_nl) ;; #(
35150 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035151 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035152 esac ;;
35153 esac
35154 done
35155
35156 (set) 2>&1 |
35157 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35158 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035159 # `set' does not quote correctly, so add quotes: double-quote
35160 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035161 sed -n \
35162 "s/'/'\\\\''/g;
35163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35164 ;; #(
35165 *)
35166 # `set' quotes correctly as required by POSIX, so do not add quotes.
35167 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35168 ;;
35169 esac |
35170 sort
35171) |
35172 sed '
35173 /^ac_cv_env_/b end
35174 t clear
35175 :clear
35176 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35177 t end
35178 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35179 :end' >>confcache
35180if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35181 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035182 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035183 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035184$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035185 if test ! -f "$cache_file" || test -h "$cache_file"; then
35186 cat confcache >"$cache_file"
35187 else
35188 case $cache_file in #(
35189 */* | ?:*)
35190 mv -f confcache "$cache_file"$$ &&
35191 mv -f "$cache_file"$$ "$cache_file" ;; #(
35192 *)
35193 mv -f confcache "$cache_file" ;;
35194 esac
35195 fi
35196 fi
cristy3ed852e2009-09-05 21:47:34 +000035197 else
cristy8b350f62009-11-15 23:12:43 +000035198 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035199$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35200 fi
35201fi
35202rm -f confcache
35203
35204test "x$prefix" = xNONE && prefix=$ac_default_prefix
35205# Let make expand exec_prefix.
35206test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35207
35208DEFS=-DHAVE_CONFIG_H
35209
35210ac_libobjs=
35211ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035212U=
cristy3ed852e2009-09-05 21:47:34 +000035213for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35214 # 1. Remove the extension, and $U if already installed.
35215 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35216 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35217 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35218 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035219 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35220 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035221done
35222LIBOBJS=$ac_libobjs
35223
35224LTLIBOBJS=$ac_ltlibobjs
35225
35226
cristyc0890a62012-07-19 00:18:20 +000035227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35228$as_echo_n "checking that generated files are newer than configure... " >&6; }
35229 if test -n "$am_sleep_pid"; then
35230 # Hide warnings about reused PIDs.
35231 wait $am_sleep_pid 2>/dev/null
35232 fi
35233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35234$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035235 if test -n "$EXEEXT"; then
35236 am__EXEEXT_TRUE=
35237 am__EXEEXT_FALSE='#'
35238else
35239 am__EXEEXT_TRUE='#'
35240 am__EXEEXT_FALSE=
35241fi
cristy3ed852e2009-09-05 21:47:34 +000035242
cristy73bd4a52010-10-05 11:24:23 +000035243if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035244 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035245Usually this means the macro was only invoked conditionally." "$LINENO" 5
35246fi
35247if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035248 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035249Usually this means the macro was only invoked conditionally." "$LINENO" 5
35250fi
35251if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035252 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035253Usually this means the macro was only invoked conditionally." "$LINENO" 5
35254fi
35255if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035256 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035257Usually this means the macro was only invoked conditionally." "$LINENO" 5
35258fi
cristy9b86f202012-11-28 21:55:35 +000035259if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35260 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35261Usually this means the macro was only invoked conditionally." "$LINENO" 5
35262fi
cristy73bd4a52010-10-05 11:24:23 +000035263if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035264 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035265Usually this means the macro was only invoked conditionally." "$LINENO" 5
35266fi
35267if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035268 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035269Usually this means the macro was only invoked conditionally." "$LINENO" 5
35270fi
35271if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035272 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035273Usually this means the macro was only invoked conditionally." "$LINENO" 5
35274fi
35275if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035276 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035277Usually this means the macro was only invoked conditionally." "$LINENO" 5
35278fi
cristy73bd4a52010-10-05 11:24:23 +000035279if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035280 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035281Usually this means the macro was only invoked conditionally." "$LINENO" 5
35282fi
35283if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035284 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035285Usually this means the macro was only invoked conditionally." "$LINENO" 5
35286fi
cristy73bd4a52010-10-05 11:24:23 +000035287if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035288 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035289Usually this means the macro was only invoked conditionally." "$LINENO" 5
35290fi
cristy71d8c202012-03-20 17:05:01 +000035291if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35292 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35293Usually this means the macro was only invoked conditionally." "$LINENO" 5
35294fi
cristy73bd4a52010-10-05 11:24:23 +000035295
35296if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035297 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035298Usually this means the macro was only invoked conditionally." "$LINENO" 5
35299fi
35300if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035301 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035302Usually this means the macro was only invoked conditionally." "$LINENO" 5
35303fi
35304if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035305 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035306Usually this means the macro was only invoked conditionally." "$LINENO" 5
35307fi
35308if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035309 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035310Usually this means the macro was only invoked conditionally." "$LINENO" 5
35311fi
35312if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035313 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035314Usually this means the macro was only invoked conditionally." "$LINENO" 5
35315fi
35316if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035317 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035318Usually this means the macro was only invoked conditionally." "$LINENO" 5
35319fi
cristy5eef09f2012-10-16 12:08:28 +000035320if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35321 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35322Usually this means the macro was only invoked conditionally." "$LINENO" 5
35323fi
cristy73bd4a52010-10-05 11:24:23 +000035324if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035325 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035326Usually this means the macro was only invoked conditionally." "$LINENO" 5
35327fi
35328if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035329 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035330Usually this means the macro was only invoked conditionally." "$LINENO" 5
35331fi
35332if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035333 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035334Usually this means the macro was only invoked conditionally." "$LINENO" 5
35335fi
35336if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035337 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035338Usually this means the macro was only invoked conditionally." "$LINENO" 5
35339fi
35340if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035341 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035342Usually this means the macro was only invoked conditionally." "$LINENO" 5
35343fi
35344if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035345 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035346Usually this means the macro was only invoked conditionally." "$LINENO" 5
35347fi
35348if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035349 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035350Usually this means the macro was only invoked conditionally." "$LINENO" 5
35351fi
35352if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035353 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035354Usually this means the macro was only invoked conditionally." "$LINENO" 5
35355fi
35356if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035357 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035358Usually this means the macro was only invoked conditionally." "$LINENO" 5
35359fi
35360if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035361 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035362Usually this means the macro was only invoked conditionally." "$LINENO" 5
35363fi
35364if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035365 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035366Usually this means the macro was only invoked conditionally." "$LINENO" 5
35367fi
35368if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035369 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035370Usually this means the macro was only invoked conditionally." "$LINENO" 5
35371fi
35372if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035373 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035374Usually this means the macro was only invoked conditionally." "$LINENO" 5
35375fi
35376if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035377 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035378Usually this means the macro was only invoked conditionally." "$LINENO" 5
35379fi
cristyfbb0ef02010-12-19 02:32:11 +000035380if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35381 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35382Usually this means the macro was only invoked conditionally." "$LINENO" 5
35383fi
cristy73bd4a52010-10-05 11:24:23 +000035384if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035385 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035386Usually this means the macro was only invoked conditionally." "$LINENO" 5
35387fi
cristy41cbe8a2011-10-27 01:35:18 +000035388if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35389 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35390Usually this means the macro was only invoked conditionally." "$LINENO" 5
35391fi
cristya054b762012-03-26 23:16:00 +000035392if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35393 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035394Usually this means the macro was only invoked conditionally." "$LINENO" 5
35395fi
cristy73bd4a52010-10-05 11:24:23 +000035396if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035397 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035398Usually this means the macro was only invoked conditionally." "$LINENO" 5
35399fi
35400if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035401 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035402Usually this means the macro was only invoked conditionally." "$LINENO" 5
35403fi
35404if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035405 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035406Usually this means the macro was only invoked conditionally." "$LINENO" 5
35407fi
35408if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035409 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035410Usually this means the macro was only invoked conditionally." "$LINENO" 5
35411fi
cristyb1860752011-03-14 00:27:46 +000035412if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35413 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35414Usually this means the macro was only invoked conditionally." "$LINENO" 5
35415fi
cristy73bd4a52010-10-05 11:24:23 +000035416if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035417 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035418Usually this means the macro was only invoked conditionally." "$LINENO" 5
35419fi
35420if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035421 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035422Usually this means the macro was only invoked conditionally." "$LINENO" 5
35423fi
35424if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035425 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035426Usually this means the macro was only invoked conditionally." "$LINENO" 5
35427fi
35428if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035429 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035430Usually this means the macro was only invoked conditionally." "$LINENO" 5
35431fi
35432if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035433 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035434Usually this means the macro was only invoked conditionally." "$LINENO" 5
35435fi
35436if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035437 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035438Usually this means the macro was only invoked conditionally." "$LINENO" 5
35439fi
35440if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035441 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035442Usually this means the macro was only invoked conditionally." "$LINENO" 5
35443fi
35444if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035445 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035446Usually this means the macro was only invoked conditionally." "$LINENO" 5
35447fi
cristy3ed852e2009-09-05 21:47:34 +000035448
cristyda16f162011-02-19 23:52:17 +000035449: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035450ac_write_fail=0
35451ac_clean_files_save=$ac_clean_files
35452ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035453{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035454$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035455as_write_fail=0
35456cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035457#! $SHELL
35458# Generated by $as_me.
35459# Run this file to recreate the current configuration.
35460# Compiler output produced by configure, useful for debugging
35461# configure, is in config.log if it exists.
35462
35463debug=false
35464ac_cs_recheck=false
35465ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035466
cristy8b350f62009-11-15 23:12:43 +000035467SHELL=\${CONFIG_SHELL-$SHELL}
35468export SHELL
35469_ASEOF
35470cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35471## -------------------- ##
35472## M4sh Initialization. ##
35473## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035474
35475# Be more Bourne compatible
35476DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035477if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035478 emulate sh
35479 NULLCMD=:
35480 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35481 # is contrary to our usage. Disable this feature.
35482 alias -g '${1+"$@"}'='"$@"'
35483 setopt NO_GLOB_SUBST
35484else
cristy8b350f62009-11-15 23:12:43 +000035485 case `(set -o) 2>/dev/null` in #(
35486 *posix*) :
35487 set -o posix ;; #(
35488 *) :
35489 ;;
cristy3ed852e2009-09-05 21:47:34 +000035490esac
cristy3ed852e2009-09-05 21:47:34 +000035491fi
35492
35493
cristy3ed852e2009-09-05 21:47:34 +000035494as_nl='
35495'
35496export as_nl
35497# Printing a long string crashes Solaris 7 /usr/bin/printf.
35498as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35499as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35500as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035501# Prefer a ksh shell builtin over an external printf program on Solaris,
35502# but without wasting forks for bash or zsh.
35503if test -z "$BASH_VERSION$ZSH_VERSION" \
35504 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35505 as_echo='print -r --'
35506 as_echo_n='print -rn --'
35507elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035508 as_echo='printf %s\n'
35509 as_echo_n='printf %s'
35510else
35511 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35512 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35513 as_echo_n='/usr/ucb/echo -n'
35514 else
35515 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35516 as_echo_n_body='eval
35517 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035518 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035519 *"$as_nl"*)
35520 expr "X$arg" : "X\\(.*\\)$as_nl";
35521 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35522 esac;
35523 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35524 '
35525 export as_echo_n_body
35526 as_echo_n='sh -c $as_echo_n_body as_echo'
35527 fi
35528 export as_echo_body
35529 as_echo='sh -c $as_echo_body as_echo'
35530fi
35531
35532# The user is always right.
35533if test "${PATH_SEPARATOR+set}" != set; then
35534 PATH_SEPARATOR=:
35535 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35536 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35537 PATH_SEPARATOR=';'
35538 }
35539fi
35540
cristy3ed852e2009-09-05 21:47:34 +000035541
35542# IFS
35543# We need space, tab and new line, in precisely that order. Quoting is
35544# there to prevent editors from complaining about space-tab.
35545# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35546# splitting by setting IFS to empty value.)
35547IFS=" "" $as_nl"
35548
35549# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035550as_myself=
cristy8b350f62009-11-15 23:12:43 +000035551case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035552 *[\\/]* ) as_myself=$0 ;;
35553 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35554for as_dir in $PATH
35555do
35556 IFS=$as_save_IFS
35557 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035558 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35559 done
cristy3ed852e2009-09-05 21:47:34 +000035560IFS=$as_save_IFS
35561
35562 ;;
35563esac
35564# We did not find ourselves, most probably we were run as `sh COMMAND'
35565# in which case we are not to be found in the path.
35566if test "x$as_myself" = x; then
35567 as_myself=$0
35568fi
35569if test ! -f "$as_myself"; then
35570 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035571 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035572fi
35573
cristy8b350f62009-11-15 23:12:43 +000035574# Unset variables that we do not need and which cause bugs (e.g. in
35575# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35576# suppresses any "Segmentation fault" message there. '((' could
35577# trigger a bug in pdksh 5.2.14.
35578for as_var in BASH_ENV ENV MAIL MAILPATH
35579do eval test x\${$as_var+set} = xset \
35580 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035581done
35582PS1='$ '
35583PS2='> '
35584PS4='+ '
35585
35586# NLS nuisances.
35587LC_ALL=C
35588export LC_ALL
35589LANGUAGE=C
35590export LANGUAGE
35591
cristy8b350f62009-11-15 23:12:43 +000035592# CDPATH.
35593(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35594
35595
cristy98dddb52010-11-04 00:30:15 +000035596# as_fn_error STATUS ERROR [LINENO LOG_FD]
35597# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035598# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35599# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035600# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035601as_fn_error ()
35602{
cristy98dddb52010-11-04 00:30:15 +000035603 as_status=$1; test $as_status -eq 0 && as_status=1
35604 if test "$4"; then
35605 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35606 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035607 fi
cristy98dddb52010-11-04 00:30:15 +000035608 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035609 as_fn_exit $as_status
35610} # as_fn_error
35611
35612
35613# as_fn_set_status STATUS
35614# -----------------------
35615# Set $? to STATUS, without forking.
35616as_fn_set_status ()
35617{
35618 return $1
35619} # as_fn_set_status
35620
35621# as_fn_exit STATUS
35622# -----------------
35623# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35624as_fn_exit ()
35625{
35626 set +e
35627 as_fn_set_status $1
35628 exit $1
35629} # as_fn_exit
35630
35631# as_fn_unset VAR
35632# ---------------
35633# Portably unset VAR.
35634as_fn_unset ()
35635{
35636 { eval $1=; unset $1;}
35637}
35638as_unset=as_fn_unset
35639# as_fn_append VAR VALUE
35640# ----------------------
35641# Append the text in VALUE to the end of the definition contained in VAR. Take
35642# advantage of any shell optimizations that allow amortized linear growth over
35643# repeated appends, instead of the typical quadratic growth present in naive
35644# implementations.
35645if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35646 eval 'as_fn_append ()
35647 {
35648 eval $1+=\$2
35649 }'
35650else
35651 as_fn_append ()
35652 {
35653 eval $1=\$$1\$2
35654 }
35655fi # as_fn_append
35656
35657# as_fn_arith ARG...
35658# ------------------
35659# Perform arithmetic evaluation on the ARGs, and store the result in the
35660# global $as_val. Take advantage of shells that can avoid forks. The arguments
35661# must be portable across $(()) and expr.
35662if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35663 eval 'as_fn_arith ()
35664 {
35665 as_val=$(( $* ))
35666 }'
35667else
35668 as_fn_arith ()
35669 {
35670 as_val=`expr "$@" || test $? -eq 1`
35671 }
35672fi # as_fn_arith
35673
35674
cristy3ed852e2009-09-05 21:47:34 +000035675if expr a : '\(a\)' >/dev/null 2>&1 &&
35676 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35677 as_expr=expr
35678else
35679 as_expr=false
35680fi
35681
35682if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35683 as_basename=basename
35684else
35685 as_basename=false
35686fi
35687
cristy8b350f62009-11-15 23:12:43 +000035688if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35689 as_dirname=dirname
35690else
35691 as_dirname=false
35692fi
cristy3ed852e2009-09-05 21:47:34 +000035693
cristy3ed852e2009-09-05 21:47:34 +000035694as_me=`$as_basename -- "$0" ||
35695$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35696 X"$0" : 'X\(//\)$' \| \
35697 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35698$as_echo X/"$0" |
35699 sed '/^.*\/\([^/][^/]*\)\/*$/{
35700 s//\1/
35701 q
35702 }
35703 /^X\/\(\/\/\)$/{
35704 s//\1/
35705 q
35706 }
35707 /^X\/\(\/\).*/{
35708 s//\1/
35709 q
35710 }
35711 s/.*/./; q'`
35712
cristy8b350f62009-11-15 23:12:43 +000035713# Avoid depending upon Character Ranges.
35714as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35715as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35716as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35717as_cr_digits='0123456789'
35718as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035719
35720ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035721case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035722-n*)
cristy8b350f62009-11-15 23:12:43 +000035723 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035724 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035725 xy) ECHO_C='\c';;
35726 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35727 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035728 esac;;
35729*)
35730 ECHO_N='-n';;
35731esac
cristy3ed852e2009-09-05 21:47:34 +000035732
35733rm -f conf$$ conf$$.exe conf$$.file
35734if test -d conf$$.dir; then
35735 rm -f conf$$.dir/conf$$.file
35736else
35737 rm -f conf$$.dir
35738 mkdir conf$$.dir 2>/dev/null
35739fi
35740if (echo >conf$$.file) 2>/dev/null; then
35741 if ln -s conf$$.file conf$$ 2>/dev/null; then
35742 as_ln_s='ln -s'
35743 # ... but there are two gotchas:
35744 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35745 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000035746 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000035747 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000035748 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035749 elif ln conf$$.file conf$$ 2>/dev/null; then
35750 as_ln_s=ln
35751 else
cristy14fefe52012-05-21 00:59:18 +000035752 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035753 fi
35754else
cristy14fefe52012-05-21 00:59:18 +000035755 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035756fi
35757rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35758rmdir conf$$.dir 2>/dev/null
35759
cristy8b350f62009-11-15 23:12:43 +000035760
35761# as_fn_mkdir_p
35762# -------------
35763# Create "$as_dir" as a directory, including parents if necessary.
35764as_fn_mkdir_p ()
35765{
35766
35767 case $as_dir in #(
35768 -*) as_dir=./$as_dir;;
35769 esac
35770 test -d "$as_dir" || eval $as_mkdir_p || {
35771 as_dirs=
35772 while :; do
35773 case $as_dir in #(
35774 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35775 *) as_qdir=$as_dir;;
35776 esac
35777 as_dirs="'$as_qdir' $as_dirs"
35778 as_dir=`$as_dirname -- "$as_dir" ||
35779$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35780 X"$as_dir" : 'X\(//\)[^/]' \| \
35781 X"$as_dir" : 'X\(//\)$' \| \
35782 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35783$as_echo X"$as_dir" |
35784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35785 s//\1/
35786 q
35787 }
35788 /^X\(\/\/\)[^/].*/{
35789 s//\1/
35790 q
35791 }
35792 /^X\(\/\/\)$/{
35793 s//\1/
35794 q
35795 }
35796 /^X\(\/\).*/{
35797 s//\1/
35798 q
35799 }
35800 s/.*/./; q'`
35801 test -d "$as_dir" && break
35802 done
35803 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035804 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035805
35806
35807} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035808if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035809 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035810else
35811 test -d ./-p && rmdir ./-p
35812 as_mkdir_p=false
35813fi
35814
cristy14fefe52012-05-21 00:59:18 +000035815
35816# as_fn_executable_p FILE
35817# -----------------------
35818# Test if FILE is an executable regular file.
35819as_fn_executable_p ()
35820{
35821 test -f "$1" && test -x "$1"
35822} # as_fn_executable_p
35823as_test_x='test -x'
35824as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000035825
35826# Sed expression to map a string onto a valid CPP name.
35827as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35828
35829# Sed expression to map a string onto a valid variable name.
35830as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35831
35832
35833exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035834## ----------------------------------- ##
35835## Main body of $CONFIG_STATUS script. ##
35836## ----------------------------------- ##
35837_ASEOF
35838test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035839
cristy8b350f62009-11-15 23:12:43 +000035840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35841# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035842# report actual input values of CONFIG_FILES etc. instead of their
35843# values after options handling.
35844ac_log="
cristy29eb34e2011-10-16 00:46:08 +000035845This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000035846generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035847
35848 CONFIG_FILES = $CONFIG_FILES
35849 CONFIG_HEADERS = $CONFIG_HEADERS
35850 CONFIG_LINKS = $CONFIG_LINKS
35851 CONFIG_COMMANDS = $CONFIG_COMMANDS
35852 $ $0 $@
35853
35854on `(hostname || uname -n) 2>/dev/null | sed 1q`
35855"
35856
35857_ACEOF
35858
35859case $ac_config_files in *"
35860"*) set x $ac_config_files; shift; ac_config_files=$*;;
35861esac
35862
35863case $ac_config_headers in *"
35864"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35865esac
35866
35867
35868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35869# Files that config.status was made for.
35870config_files="$ac_config_files"
35871config_headers="$ac_config_headers"
35872config_commands="$ac_config_commands"
35873
35874_ACEOF
35875
35876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35877ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035878\`$as_me' instantiates files and other configuration actions
35879from templates according to the current configuration. Unless the files
35880and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035881
cristy8b350f62009-11-15 23:12:43 +000035882Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035883
35884 -h, --help print this help, then exit
35885 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035886 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035887 -q, --quiet, --silent
35888 do not print progress messages
35889 -d, --debug don't remove temporary files
35890 --recheck update $as_me by reconfiguring in the same conditions
35891 --file=FILE[:TEMPLATE]
35892 instantiate the configuration file FILE
35893 --header=FILE[:TEMPLATE]
35894 instantiate the configuration header FILE
35895
35896Configuration files:
35897$config_files
35898
35899Configuration headers:
35900$config_headers
35901
35902Configuration commands:
35903$config_commands
35904
cristy8b350f62009-11-15 23:12:43 +000035905Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035906
35907_ACEOF
35908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035909ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035910ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000035911ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000035912configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000035913 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035914
cristy14fefe52012-05-21 00:59:18 +000035915Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035916This config.status script is free software; the Free Software Foundation
35917gives unlimited permission to copy, distribute and modify it."
35918
35919ac_pwd='$ac_pwd'
35920srcdir='$srcdir'
35921INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035922MKDIR_P='$MKDIR_P'
35923AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035924test -n "\$AWK" || AWK=awk
35925_ACEOF
35926
35927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35928# The default lists apply if the user does not specify any file.
35929ac_need_defaults=:
35930while test $# != 0
35931do
35932 case $1 in
cristyda16f162011-02-19 23:52:17 +000035933 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035934 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35935 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35936 ac_shift=:
35937 ;;
cristyda16f162011-02-19 23:52:17 +000035938 --*=)
35939 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35940 ac_optarg=
35941 ac_shift=:
35942 ;;
cristy3ed852e2009-09-05 21:47:34 +000035943 *)
35944 ac_option=$1
35945 ac_optarg=$2
35946 ac_shift=shift
35947 ;;
35948 esac
35949
35950 case $ac_option in
35951 # Handling of the options.
35952 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35953 ac_cs_recheck=: ;;
35954 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35955 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035956 --config | --confi | --conf | --con | --co | --c )
35957 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035958 --debug | --debu | --deb | --de | --d | -d )
35959 debug=: ;;
35960 --file | --fil | --fi | --f )
35961 $ac_shift
35962 case $ac_optarg in
35963 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035964 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035965 esac
cristy8b350f62009-11-15 23:12:43 +000035966 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035967 ac_need_defaults=false;;
35968 --header | --heade | --head | --hea )
35969 $ac_shift
35970 case $ac_optarg in
35971 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35972 esac
cristy8b350f62009-11-15 23:12:43 +000035973 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035974 ac_need_defaults=false;;
35975 --he | --h)
35976 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035977 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035978Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035979 --help | --hel | -h )
35980 $as_echo "$ac_cs_usage"; exit ;;
35981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35982 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35983 ac_cs_silent=: ;;
35984
35985 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035986 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035987Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035988
cristy8b350f62009-11-15 23:12:43 +000035989 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035990 ac_need_defaults=false ;;
35991
35992 esac
35993 shift
35994done
35995
35996ac_configure_extra_args=
35997
35998if $ac_cs_silent; then
35999 exec 6>/dev/null
36000 ac_configure_extra_args="$ac_configure_extra_args --silent"
36001fi
36002
36003_ACEOF
36004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36005if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036006 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036007 shift
36008 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36009 CONFIG_SHELL='$SHELL'
36010 export CONFIG_SHELL
36011 exec "\$@"
36012fi
36013
36014_ACEOF
36015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36016exec 5>>config.log
36017{
36018 echo
36019 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36020## Running $as_me. ##
36021_ASBOX
36022 $as_echo "$ac_log"
36023} >&5
36024
36025_ACEOF
36026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036027#
36028# INIT-COMMANDS
36029#
36030PACKAGE="$PACKAGE"
36031AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36032
36033
36034# The HP-UX ksh and POSIX shell print the target directory to stdout
36035# if CDPATH is set.
36036(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36037
36038sed_quote_subst='$sed_quote_subst'
36039double_quote_subst='$double_quote_subst'
36040delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036041SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36042Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36043GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36044EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36045FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36046SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36047ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36048LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36049macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36050macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36051AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36052DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36053OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36054enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36055enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36056pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36057enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036058PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036059host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36060host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36061host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36062build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36063build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36064build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36065NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36066LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36067max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36068ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36069exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36070lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36071lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36072lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036073lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36074lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036075reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36076reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36077deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36078file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036079file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36080want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36081sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036082AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36083AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036084archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036085STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36086RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36087old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36088old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36089old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36090lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36091CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36092CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36093compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36094GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36095lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36096lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36097lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36098lt_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 +000036099nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36100lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036101objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36102MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36103lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036104lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036105lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036106lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36107lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36108need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036109MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036110DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36111NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36112LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36113OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36114OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36115libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36116shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36117extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36118archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36119enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36120export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36121whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36122compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36123old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36124old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36125archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36126archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36127module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36128module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36129with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36130allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36131no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36132hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036133hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36134hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36135hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36136hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36137hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36138hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36139inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36140link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036141always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36142export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36143exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36144include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36145prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036146postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036147file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36148variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36149need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36150need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36151version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36152runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36153shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36154shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36155libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36156library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36157soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36158install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36159postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36160postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36161finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36162finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36163hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36164sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36165sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36166hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36167enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36168enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36169enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36170old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36171striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36172compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36173predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36174postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36175predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36176postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36177compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36178LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36179reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36180reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36181old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36182compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36183GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36184lt_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 +000036185lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036186lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036187lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36188lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36189archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36190enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36191export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36192whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36193compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36194old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36195old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36196archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36197archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36198module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36199module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36200with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36201allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36202no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36203hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036204hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36205hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36206hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36207hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36208hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36209hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36210inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36211link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036212always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36213export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36214exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36215include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36216prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036217postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036218file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36219hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36220compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36221predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36222postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36223predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36224postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36225compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036226
36227LTCC='$LTCC'
36228LTCFLAGS='$LTCFLAGS'
36229compiler='$compiler_DEFAULT'
36230
cristy0c60a692010-11-04 01:09:47 +000036231# A function that is used when there is no print builtin or printf.
36232func_fallback_echo ()
36233{
36234 eval 'cat <<_LTECHO_EOF
36235\$1
36236_LTECHO_EOF'
36237}
36238
cristy73bd4a52010-10-05 11:24:23 +000036239# Quote evaled strings.
36240for var in SED \
36241GREP \
36242EGREP \
36243FGREP \
cristy0c60a692010-11-04 01:09:47 +000036244SHELL \
36245ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036246LD \
cristy0c60a692010-11-04 01:09:47 +000036247AS \
36248DLLTOOL \
36249OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036250PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036251NM \
36252LN_S \
36253lt_SP2NL \
36254lt_NL2SP \
36255reload_flag \
36256deplibs_check_method \
36257file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036258file_magic_glob \
36259want_nocaseglob \
36260sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036261AR \
36262AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036263archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036264STRIP \
36265RANLIB \
36266CC \
36267CFLAGS \
36268compiler \
36269lt_cv_sys_global_symbol_pipe \
36270lt_cv_sys_global_symbol_to_cdecl \
36271lt_cv_sys_global_symbol_to_c_name_address \
36272lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036273nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036274lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036275lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036276lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036277lt_prog_compiler_static \
36278lt_cv_prog_compiler_c_o \
36279need_locks \
cristyda16f162011-02-19 23:52:17 +000036280MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036281DSYMUTIL \
36282NMEDIT \
36283LIPO \
36284OTOOL \
36285OTOOL64 \
36286shrext_cmds \
36287export_dynamic_flag_spec \
36288whole_archive_flag_spec \
36289compiler_needs_object \
36290with_gnu_ld \
36291allow_undefined_flag \
36292no_undefined_flag \
36293hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036294hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036295exclude_expsyms \
36296include_expsyms \
36297file_list_spec \
36298variables_saved_for_relink \
36299libname_spec \
36300library_names_spec \
36301soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036302install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036303finish_eval \
36304old_striplib \
36305striplib \
36306compiler_lib_search_dirs \
36307predep_objects \
36308postdep_objects \
36309predeps \
36310postdeps \
36311compiler_lib_search_path \
36312LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036313reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036314compiler_CXX \
36315lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036316lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036317lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036318lt_prog_compiler_static_CXX \
36319lt_cv_prog_compiler_c_o_CXX \
36320export_dynamic_flag_spec_CXX \
36321whole_archive_flag_spec_CXX \
36322compiler_needs_object_CXX \
36323with_gnu_ld_CXX \
36324allow_undefined_flag_CXX \
36325no_undefined_flag_CXX \
36326hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036327hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036328exclude_expsyms_CXX \
36329include_expsyms_CXX \
36330file_list_spec_CXX \
36331compiler_lib_search_dirs_CXX \
36332predep_objects_CXX \
36333postdep_objects_CXX \
36334predeps_CXX \
36335postdeps_CXX \
36336compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036337 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036338 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036339 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036340 ;;
36341 *)
36342 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36343 ;;
36344 esac
36345done
36346
36347# Double-quote double-evaled strings.
36348for var in reload_cmds \
36349old_postinstall_cmds \
36350old_postuninstall_cmds \
36351old_archive_cmds \
36352extract_expsyms_cmds \
36353old_archive_from_new_cmds \
36354old_archive_from_expsyms_cmds \
36355archive_cmds \
36356archive_expsym_cmds \
36357module_cmds \
36358module_expsym_cmds \
36359export_symbols_cmds \
36360prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036361postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036362postinstall_cmds \
36363postuninstall_cmds \
36364finish_cmds \
36365sys_lib_search_path_spec \
36366sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036367reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036368old_archive_cmds_CXX \
36369old_archive_from_new_cmds_CXX \
36370old_archive_from_expsyms_cmds_CXX \
36371archive_cmds_CXX \
36372archive_expsym_cmds_CXX \
36373module_cmds_CXX \
36374module_expsym_cmds_CXX \
36375export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036376prelink_cmds_CXX \
36377postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036378 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036379 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036380 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036381 ;;
36382 *)
36383 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36384 ;;
36385 esac
36386done
36387
cristy73bd4a52010-10-05 11:24:23 +000036388ac_aux_dir='$ac_aux_dir'
36389xsi_shell='$xsi_shell'
36390lt_shell_append='$lt_shell_append'
36391
36392# See if we are running on zsh, and set the options which allow our
36393# commands through without removal of \ escapes INIT.
36394if test -n "\${ZSH_VERSION+set}" ; then
36395 setopt NO_GLOB_SUBST
36396fi
36397
36398
36399 PACKAGE='$PACKAGE'
36400 VERSION='$VERSION'
36401 TIMESTAMP='$TIMESTAMP'
36402 RM='$RM'
36403 ofile='$ofile'
36404
36405
36406
36407
36408
36409
cristy3ed852e2009-09-05 21:47:34 +000036410_ACEOF
36411
36412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36413
36414# Handling of arguments.
36415for ac_config_target in $ac_config_targets
36416do
36417 case $ac_config_target in
36418 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000036419 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000036420 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036421 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36422 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36423 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36424 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36425 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036426 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036427 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036428 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36429 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36430 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36431 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36432 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036433 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036434 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36435 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036436 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36437 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36438 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036439 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36440 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36441 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36442 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36443 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36444 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36445 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36446 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36447 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36448 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36449 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36450 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36451 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36452 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36453 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36454 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36455 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036456 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36457 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036458 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36459 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036460 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000036461 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036462 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036463 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036464 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36465 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36466
cristy98dddb52010-11-04 00:30:15 +000036467 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036468 esac
36469done
36470
36471
36472# If the user did not use the arguments to specify the items to instantiate,
36473# then the envvar interface is used. Set only those that are not.
36474# We use the long form for the default assignment because of an extremely
36475# bizarre bug on SunOS 4.1.3.
36476if $ac_need_defaults; then
36477 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36478 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36479 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36480fi
36481
36482# Have a temporary directory for convenience. Make it in the build tree
36483# simply because there is no reason against having it here, and in addition,
36484# creating and moving files from /tmp can sometimes cause problems.
36485# Hook for its removal unless debugging.
36486# Note that there is a small window in which the directory will not be cleaned:
36487# after its creation but before its name has been assigned to `$tmp'.
36488$debug ||
36489{
cristyda16f162011-02-19 23:52:17 +000036490 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036491 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036492 : "${ac_tmp:=$tmp}"
36493 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036494' 0
cristy8b350f62009-11-15 23:12:43 +000036495 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036496}
36497# Create a (secure) tmp directory for tmp files.
36498
36499{
36500 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036501 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036502} ||
36503{
36504 tmp=./conf$$-$RANDOM
36505 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036506} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036507ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036508
36509# Set up the scripts for CONFIG_FILES section.
36510# No need to generate them if there are no CONFIG_FILES.
36511# This happens for instance with `./config.status config.h'.
36512if test -n "$CONFIG_FILES"; then
36513
36514
cristy8b350f62009-11-15 23:12:43 +000036515ac_cr=`echo X | tr X '\015'`
36516# On cygwin, bash can eat \r inside `` if the user requested igncr.
36517# But we know of no other shell where ac_cr would be empty at this
36518# point, so we can use a bashism as a fallback.
36519if test "x$ac_cr" = x; then
36520 eval ac_cr=\$\'\\r\'
36521fi
cristy3ed852e2009-09-05 21:47:34 +000036522ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36523if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036524 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036525else
36526 ac_cs_awk_cr=$ac_cr
36527fi
36528
cristyda16f162011-02-19 23:52:17 +000036529echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036530_ACEOF
36531
36532
36533{
36534 echo "cat >conf$$subs.awk <<_ACEOF" &&
36535 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36536 echo "_ACEOF"
36537} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036538 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36539ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036540ac_delim='%!_!# '
36541for ac_last_try in false false false false false :; do
36542 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036543 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036544
36545 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36546 if test $ac_delim_n = $ac_delim_num; then
36547 break
36548 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036549 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036550 else
36551 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36552 fi
36553done
36554rm -f conf$$subs.sh
36555
36556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036557cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036558_ACEOF
36559sed -n '
36560h
36561s/^/S["/; s/!.*/"]=/
36562p
36563g
36564s/^[^!]*!//
36565:repl
36566t repl
36567s/'"$ac_delim"'$//
36568t delim
36569:nl
36570h
cristycd4c5312009-11-22 01:19:08 +000036571s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036572t more1
36573s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36574p
36575n
36576b repl
36577:more1
36578s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36579p
36580g
36581s/.\{148\}//
36582t nl
36583:delim
36584h
cristycd4c5312009-11-22 01:19:08 +000036585s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036586t more2
36587s/["\\]/\\&/g; s/^/"/; s/$/"/
36588p
36589b
36590:more2
36591s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36592p
36593g
36594s/.\{148\}//
36595t delim
36596' <conf$$subs.awk | sed '
36597/^[^""]/{
36598 N
36599 s/\n//
36600}
36601' >>$CONFIG_STATUS || ac_write_fail=1
36602rm -f conf$$subs.awk
36603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36604_ACAWK
cristyda16f162011-02-19 23:52:17 +000036605cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036606 for (key in S) S_is_set[key] = 1
36607 FS = ""
36608
36609}
36610{
36611 line = $ 0
36612 nfields = split(line, field, "@")
36613 substed = 0
36614 len = length(field[1])
36615 for (i = 2; i < nfields; i++) {
36616 key = field[i]
36617 keylen = length(key)
36618 if (S_is_set[key]) {
36619 value = S[key]
36620 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36621 len += length(value) + length(field[++i])
36622 substed = 1
36623 } else
36624 len += 1 + keylen
36625 }
36626
36627 print line
36628}
36629
36630_ACAWK
36631_ACEOF
36632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36633if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36634 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36635else
36636 cat
cristyda16f162011-02-19 23:52:17 +000036637fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036638 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036639_ACEOF
36640
cristy98dddb52010-11-04 00:30:15 +000036641# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36642# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036643# trailing colons and then remove the whole line if VPATH becomes empty
36644# (actually we leave an empty line to preserve line numbers).
36645if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036646 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36647h
36648s///
36649s/^/:/
36650s/[ ]*$/:/
36651s/:\$(srcdir):/:/g
36652s/:\${srcdir}:/:/g
36653s/:@srcdir@:/:/g
36654s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036655s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036656x
36657s/\(=[ ]*\).*/\1/
36658G
36659s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036660s/^[^=]*=[ ]*$//
36661}'
36662fi
36663
36664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36665fi # test -n "$CONFIG_FILES"
36666
36667# Set up the scripts for CONFIG_HEADERS section.
36668# No need to generate them if there are no CONFIG_HEADERS.
36669# This happens for instance with `./config.status Makefile'.
36670if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036671cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036672BEGIN {
36673_ACEOF
36674
36675# Transform confdefs.h into an awk script `defines.awk', embedded as
36676# here-document in config.status, that substitutes the proper values into
36677# config.h.in to produce config.h.
36678
36679# Create a delimiter string that does not exist in confdefs.h, to ease
36680# handling of long lines.
36681ac_delim='%!_!# '
36682for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036683 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36684 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036685 break
36686 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036687 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036688 else
36689 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36690 fi
36691done
36692
36693# For the awk script, D is an array of macro values keyed by name,
36694# likewise P contains macro parameters if any. Preserve backslash
36695# newline sequences.
36696
36697ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36698sed -n '
36699s/.\{148\}/&'"$ac_delim"'/g
36700t rset
36701:rset
36702s/^[ ]*#[ ]*define[ ][ ]*/ /
36703t def
36704d
36705:def
36706s/\\$//
36707t bsnl
36708s/["\\]/\\&/g
36709s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36710D["\1"]=" \3"/p
36711s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36712d
36713:bsnl
36714s/["\\]/\\&/g
36715s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36716D["\1"]=" \3\\\\\\n"\\/p
36717t cont
36718s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36719t cont
36720d
36721:cont
36722n
36723s/.\{148\}/&'"$ac_delim"'/g
36724t clear
36725:clear
36726s/\\$//
36727t bsnlc
36728s/["\\]/\\&/g; s/^/"/; s/$/"/p
36729d
36730:bsnlc
36731s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36732b cont
36733' <confdefs.h | sed '
36734s/'"$ac_delim"'/"\\\
36735"/g' >>$CONFIG_STATUS || ac_write_fail=1
36736
36737cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36738 for (key in D) D_is_set[key] = 1
36739 FS = ""
36740}
36741/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36742 line = \$ 0
36743 split(line, arg, " ")
36744 if (arg[1] == "#") {
36745 defundef = arg[2]
36746 mac1 = arg[3]
36747 } else {
36748 defundef = substr(arg[1], 2)
36749 mac1 = arg[2]
36750 }
36751 split(mac1, mac2, "(") #)
36752 macro = mac2[1]
36753 prefix = substr(line, 1, index(line, defundef) - 1)
36754 if (D_is_set[macro]) {
36755 # Preserve the white space surrounding the "#".
36756 print prefix "define", macro P[macro] D[macro]
36757 next
36758 } else {
36759 # Replace #undef with comments. This is necessary, for example,
36760 # in the case of _POSIX_SOURCE, which is predefined and required
36761 # on some systems where configure will not decide to define it.
36762 if (defundef == "undef") {
36763 print "/*", prefix defundef, macro, "*/"
36764 next
36765 }
36766 }
36767}
36768{ print }
36769_ACAWK
36770_ACEOF
36771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036772 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036773fi # test -n "$CONFIG_HEADERS"
36774
36775
36776eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36777shift
36778for ac_tag
36779do
36780 case $ac_tag in
36781 :[FHLC]) ac_mode=$ac_tag; continue;;
36782 esac
36783 case $ac_mode$ac_tag in
36784 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036785 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036786 :[FH]-) ac_tag=-:-;;
36787 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36788 esac
36789 ac_save_IFS=$IFS
36790 IFS=:
36791 set x $ac_tag
36792 IFS=$ac_save_IFS
36793 shift
36794 ac_file=$1
36795 shift
36796
36797 case $ac_mode in
36798 :L) ac_source=$1;;
36799 :[FH])
36800 ac_file_inputs=
36801 for ac_f
36802 do
36803 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036804 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036805 *) # Look for the file first in the build tree, then in the source tree
36806 # (if the path is not absolute). The absolute path cannot be DOS-style,
36807 # because $ac_f cannot contain `:'.
36808 test -f "$ac_f" ||
36809 case $ac_f in
36810 [\\/$]*) false;;
36811 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36812 esac ||
cristy98dddb52010-11-04 00:30:15 +000036813 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036814 esac
36815 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036816 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036817 done
36818
36819 # Let's still pretend it is `configure' which instantiates (i.e., don't
36820 # use $as_me), people would be surprised to read:
36821 # /* config.h. Generated by config.status. */
36822 configure_input='Generated from '`
36823 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36824 `' by configure.'
36825 if test x"$ac_file" != x-; then
36826 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036827 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036828$as_echo "$as_me: creating $ac_file" >&6;}
36829 fi
36830 # Neutralize special characters interpreted by sed in replacement strings.
36831 case $configure_input in #(
36832 *\&* | *\|* | *\\* )
36833 ac_sed_conf_input=`$as_echo "$configure_input" |
36834 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36835 *) ac_sed_conf_input=$configure_input;;
36836 esac
36837
36838 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036839 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036840 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036841 esac
36842 ;;
36843 esac
36844
36845 ac_dir=`$as_dirname -- "$ac_file" ||
36846$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36847 X"$ac_file" : 'X\(//\)[^/]' \| \
36848 X"$ac_file" : 'X\(//\)$' \| \
36849 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36850$as_echo X"$ac_file" |
36851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36852 s//\1/
36853 q
36854 }
36855 /^X\(\/\/\)[^/].*/{
36856 s//\1/
36857 q
36858 }
36859 /^X\(\/\/\)$/{
36860 s//\1/
36861 q
36862 }
36863 /^X\(\/\).*/{
36864 s//\1/
36865 q
36866 }
36867 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036868 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036869 ac_builddir=.
36870
36871case "$ac_dir" in
36872.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36873*)
36874 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36875 # A ".." for each directory in $ac_dir_suffix.
36876 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36877 case $ac_top_builddir_sub in
36878 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36879 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36880 esac ;;
36881esac
36882ac_abs_top_builddir=$ac_pwd
36883ac_abs_builddir=$ac_pwd$ac_dir_suffix
36884# for backward compatibility:
36885ac_top_builddir=$ac_top_build_prefix
36886
36887case $srcdir in
36888 .) # We are building in place.
36889 ac_srcdir=.
36890 ac_top_srcdir=$ac_top_builddir_sub
36891 ac_abs_top_srcdir=$ac_pwd ;;
36892 [\\/]* | ?:[\\/]* ) # Absolute name.
36893 ac_srcdir=$srcdir$ac_dir_suffix;
36894 ac_top_srcdir=$srcdir
36895 ac_abs_top_srcdir=$srcdir ;;
36896 *) # Relative name.
36897 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36898 ac_top_srcdir=$ac_top_build_prefix$srcdir
36899 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36900esac
36901ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36902
36903
36904 case $ac_mode in
36905 :F)
36906 #
36907 # CONFIG_FILE
36908 #
36909
36910 case $INSTALL in
36911 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36912 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36913 esac
cristy73bd4a52010-10-05 11:24:23 +000036914 ac_MKDIR_P=$MKDIR_P
36915 case $MKDIR_P in
36916 [\\/$]* | ?:[\\/]* ) ;;
36917 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36918 esac
cristy3ed852e2009-09-05 21:47:34 +000036919_ACEOF
36920
36921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36922# If the template does not know about datarootdir, expand it.
36923# FIXME: This hack should be removed a few years after 2.60.
36924ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036925ac_sed_dataroot='
36926/datarootdir/ {
36927 p
36928 q
36929}
36930/@datadir@/p
36931/@docdir@/p
36932/@infodir@/p
36933/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036934/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036935case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36936*datarootdir*) ac_datarootdir_seen=yes;;
36937*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036939$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36940_ACEOF
36941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36942 ac_datarootdir_hack='
36943 s&@datadir@&$datadir&g
36944 s&@docdir@&$docdir&g
36945 s&@infodir@&$infodir&g
36946 s&@localedir@&$localedir&g
36947 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036948 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036949esac
36950_ACEOF
36951
36952# Neutralize VPATH when `$srcdir' = `.'.
36953# Shell code in configure.ac might set extrasub.
36954# FIXME: do we really want to maintain this feature?
36955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36956ac_sed_extra="$ac_vpsub
36957$extrasub
36958_ACEOF
36959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36960:t
36961/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36962s|@configure_input@|$ac_sed_conf_input|;t t
36963s&@top_builddir@&$ac_top_builddir_sub&;t t
36964s&@top_build_prefix@&$ac_top_build_prefix&;t t
36965s&@srcdir@&$ac_srcdir&;t t
36966s&@abs_srcdir@&$ac_abs_srcdir&;t t
36967s&@top_srcdir@&$ac_top_srcdir&;t t
36968s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36969s&@builddir@&$ac_builddir&;t t
36970s&@abs_builddir@&$ac_abs_builddir&;t t
36971s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36972s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036973s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036974$ac_datarootdir_hack
36975"
cristyda16f162011-02-19 23:52:17 +000036976eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36977 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036978
36979test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036980 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36981 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36982 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036984which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036985$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036986which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036987
cristyda16f162011-02-19 23:52:17 +000036988 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036989 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036990 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36991 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036992 esac \
cristy98dddb52010-11-04 00:30:15 +000036993 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036994 ;;
36995 :H)
36996 #
36997 # CONFIG_HEADER
36998 #
36999 if test x"$ac_file" != x-; then
37000 {
37001 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037002 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37003 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037004 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037005 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037006 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037007$as_echo "$as_me: $ac_file is unchanged" >&6;}
37008 else
37009 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037010 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037011 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037012 fi
37013 else
37014 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037015 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037016 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037017 fi
cristy73bd4a52010-10-05 11:24:23 +000037018# Compute "$ac_file"'s index in $config_headers.
37019_am_arg="$ac_file"
37020_am_stamp_count=1
37021for _am_header in $config_headers :; do
37022 case $_am_header in
37023 $_am_arg | $_am_arg:* )
37024 break ;;
37025 * )
37026 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37027 esac
37028done
37029echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37030$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37031 X"$_am_arg" : 'X\(//\)[^/]' \| \
37032 X"$_am_arg" : 'X\(//\)$' \| \
37033 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37034$as_echo X"$_am_arg" |
37035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37036 s//\1/
37037 q
37038 }
37039 /^X\(\/\/\)[^/].*/{
37040 s//\1/
37041 q
37042 }
37043 /^X\(\/\/\)$/{
37044 s//\1/
37045 q
37046 }
37047 /^X\(\/\).*/{
37048 s//\1/
37049 q
37050 }
37051 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037052 ;;
37053
cristy8b350f62009-11-15 23:12:43 +000037054 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037055$as_echo "$as_me: executing $ac_file commands" >&6;}
37056 ;;
37057 esac
37058
37059
37060 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037061 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037062ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37063ac_prefix_conf_PKG=`echo MagickCore`
37064ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37065ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37066ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37067if test ".$ac_prefix_conf_INP" = "."; then
37068 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37069 case "$ac_file" in
37070 *.h) ac_prefix_conf_INP=$ac_file ;;
37071 *)
37072 esac
37073 test ".$ac_prefix_conf_INP" != "." && break
37074 done
37075fi
37076if test ".$ac_prefix_conf_INP" = "."; then
37077 case "$ac_prefix_conf_OUT" in
37078 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37079 ;;
37080 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37081 ;;
37082 *) ac_prefix_conf_INP=config.h
37083 ;;
37084 esac
37085fi
37086if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037087 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037088else
37089 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37090 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37091 fi fi
37092 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37093$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37094 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037095 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37096 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37097 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37098 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37099 $as_echo "#endif/" >> conftest.prefix
37100 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37101 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37102 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037103 # now executing _script on _DEF input to create _OUT output file
37104 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37105 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37106 echo ' ' >>$tmp/pconfig.h
37107 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37108
37109 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37110 echo ' ' >>$tmp/pconfig.h
37111 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37112 echo "#endif" >>$tmp/pconfig.h
37113 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37114 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37115$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37116 else
37117 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37118$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37119 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37120 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37121 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37122$as_echo X"$ac_prefix_conf_OUT" |
37123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37124 s//\1/
37125 q
37126 }
37127 /^X\(\/\/\)[^/].*/{
37128 s//\1/
37129 q
37130 }
37131 /^X\(\/\/\)$/{
37132 s//\1/
37133 q
37134 }
37135 /^X\(\/\).*/{
37136 s//\1/
37137 q
37138 }
37139 s/.*/./; q'`
37140 as_dir="$ac_dir"; as_fn_mkdir_p
37141 rm -f "$ac_prefix_conf_OUT"
37142 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37143 fi
37144 cp conftest.prefix _configs.sed
37145 else
cristy98dddb52010-11-04 00:30:15 +000037146 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 +000037147 fi
37148 rm -f conftest.*
37149fi
37150 ;;
37151 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37152 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37153 # are listed without --file. Let's play safe and only enable the eval
37154 # if we detect the quoting.
37155 case $CONFIG_FILES in
37156 *\'*) eval set x "$CONFIG_FILES" ;;
37157 *) set x $CONFIG_FILES ;;
37158 esac
37159 shift
37160 for mf
37161 do
37162 # Strip MF so we end up with the name of the file.
37163 mf=`echo "$mf" | sed -e 's/:.*$//'`
37164 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037165 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037166 # some people rename them; so instead we look at the file content.
37167 # Grep'ing the first line is not enough: some people post-process
37168 # each Makefile.in and add a new line on top of each file to say so.
37169 # Grep'ing the whole file is not good either: AIX grep has a line
37170 # limit of 2048, but all sed's we know have understand at least 4000.
37171 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37172 dirpart=`$as_dirname -- "$mf" ||
37173$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37174 X"$mf" : 'X\(//\)[^/]' \| \
37175 X"$mf" : 'X\(//\)$' \| \
37176 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37177$as_echo X"$mf" |
37178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37179 s//\1/
37180 q
37181 }
37182 /^X\(\/\/\)[^/].*/{
37183 s//\1/
37184 q
37185 }
37186 /^X\(\/\/\)$/{
37187 s//\1/
37188 q
37189 }
37190 /^X\(\/\).*/{
37191 s//\1/
37192 q
37193 }
37194 s/.*/./; q'`
37195 else
37196 continue
37197 fi
37198 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037199 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037200 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37201 test -z "$DEPDIR" && continue
37202 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37203 test -z "am__include" && continue
37204 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037205 # Find all dependency output files, they are included files with
37206 # $(DEPDIR) in their names. We invoke sed twice because it is the
37207 # simplest approach to changing $(DEPDIR) to its actual value in the
37208 # expansion.
37209 for file in `sed -n "
37210 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037211 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037212 # Make sure the directory exists.
37213 test -f "$dirpart/$file" && continue
37214 fdir=`$as_dirname -- "$file" ||
37215$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37216 X"$file" : 'X\(//\)[^/]' \| \
37217 X"$file" : 'X\(//\)$' \| \
37218 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37219$as_echo X"$file" |
37220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37221 s//\1/
37222 q
37223 }
37224 /^X\(\/\/\)[^/].*/{
37225 s//\1/
37226 q
37227 }
37228 /^X\(\/\/\)$/{
37229 s//\1/
37230 q
37231 }
37232 /^X\(\/\).*/{
37233 s//\1/
37234 q
37235 }
37236 s/.*/./; q'`
37237 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37238 # echo "creating $dirpart/$file"
37239 echo '# dummy' > "$dirpart/$file"
37240 done
37241 done
37242}
37243 ;;
37244 "libtool":C)
37245
37246 # See if we are running on zsh, and set the options which allow our
37247 # commands through without removal of \ escapes.
37248 if test -n "${ZSH_VERSION+set}" ; then
37249 setopt NO_GLOB_SUBST
37250 fi
37251
37252 cfgfile="${ofile}T"
37253 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37254 $RM "$cfgfile"
37255
37256 cat <<_LT_EOF >> "$cfgfile"
37257#! $SHELL
37258
37259# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37260# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37261# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37262# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37263#
37264# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037265# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37266# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037267# Written by Gordon Matzigkeit, 1996
37268#
37269# This file is part of GNU Libtool.
37270#
37271# GNU Libtool is free software; you can redistribute it and/or
37272# modify it under the terms of the GNU General Public License as
37273# published by the Free Software Foundation; either version 2 of
37274# the License, or (at your option) any later version.
37275#
37276# As a special exception to the GNU General Public License,
37277# if you distribute this file as part of a program or library that
37278# is built using GNU Libtool, you may include this file under the
37279# same distribution terms that you use for the rest of that program.
37280#
37281# GNU Libtool is distributed in the hope that it will be useful,
37282# but WITHOUT ANY WARRANTY; without even the implied warranty of
37283# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37284# GNU General Public License for more details.
37285#
37286# You should have received a copy of the GNU General Public License
37287# along with GNU Libtool; see the file COPYING. If not, a copy
37288# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37289# obtained by writing to the Free Software Foundation, Inc.,
37290# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37291
37292
37293# The names of the tagged configurations supported by this script.
37294available_tags="CXX "
37295
37296# ### BEGIN LIBTOOL CONFIG
37297
37298# A sed program that does not truncate output.
37299SED=$lt_SED
37300
37301# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37302Xsed="\$SED -e 1s/^X//"
37303
37304# A grep program that handles long lines.
37305GREP=$lt_GREP
37306
37307# An ERE matcher.
37308EGREP=$lt_EGREP
37309
37310# A literal string matcher.
37311FGREP=$lt_FGREP
37312
cristy0c60a692010-11-04 01:09:47 +000037313# Shell to use when invoking shell scripts.
37314SHELL=$lt_SHELL
37315
37316# An echo program that protects backslashes.
37317ECHO=$lt_ECHO
37318
cristy73bd4a52010-10-05 11:24:23 +000037319# Which release of libtool.m4 was used?
37320macro_version=$macro_version
37321macro_revision=$macro_revision
37322
37323# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037324AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037325
37326# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037327DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037328
37329# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037330OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037331
37332# Whether or not to build shared libraries.
37333build_libtool_libs=$enable_shared
37334
37335# Whether or not to build static libraries.
37336build_old_libs=$enable_static
37337
37338# What type of objects to build.
37339pic_mode=$pic_mode
37340
37341# Whether or not to optimize for fast installation.
37342fast_install=$enable_fast_install
37343
cristy99bd5232011-12-07 14:38:20 +000037344# The PATH separator for the build system.
37345PATH_SEPARATOR=$lt_PATH_SEPARATOR
37346
cristy73bd4a52010-10-05 11:24:23 +000037347# The host system.
37348host_alias=$host_alias
37349host=$host
37350host_os=$host_os
37351
37352# The build system.
37353build_alias=$build_alias
37354build=$build
37355build_os=$build_os
37356
37357# A BSD- or MS-compatible name lister.
37358NM=$lt_NM
37359
37360# Whether we need soft or hard links.
37361LN_S=$lt_LN_S
37362
37363# What is the maximum length of a command?
37364max_cmd_len=$max_cmd_len
37365
37366# Object file suffix (normally "o").
37367objext=$ac_objext
37368
37369# Executable file suffix (normally "").
37370exeext=$exeext
37371
37372# whether the shell understands "unset".
37373lt_unset=$lt_unset
37374
37375# turn spaces into newlines.
37376SP2NL=$lt_lt_SP2NL
37377
37378# turn newlines into spaces.
37379NL2SP=$lt_lt_NL2SP
37380
cristyda16f162011-02-19 23:52:17 +000037381# convert \$build file names to \$host format.
37382to_host_file_cmd=$lt_cv_to_host_file_cmd
37383
37384# convert \$build files to toolchain format.
37385to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37386
cristy73bd4a52010-10-05 11:24:23 +000037387# Method to check whether dependent libraries are shared objects.
37388deplibs_check_method=$lt_deplibs_check_method
37389
cristyda16f162011-02-19 23:52:17 +000037390# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037391file_magic_cmd=$lt_file_magic_cmd
37392
cristyda16f162011-02-19 23:52:17 +000037393# How to find potential files when deplibs_check_method = "file_magic".
37394file_magic_glob=$lt_file_magic_glob
37395
37396# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37397want_nocaseglob=$lt_want_nocaseglob
37398
37399# Command to associate shared and link libraries.
37400sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37401
cristy73bd4a52010-10-05 11:24:23 +000037402# The archiver.
37403AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037404
37405# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037406AR_FLAGS=$lt_AR_FLAGS
37407
cristyda16f162011-02-19 23:52:17 +000037408# How to feed a file listing to the archiver.
37409archiver_list_spec=$lt_archiver_list_spec
37410
cristy73bd4a52010-10-05 11:24:23 +000037411# A symbol stripping program.
37412STRIP=$lt_STRIP
37413
37414# Commands used to install an old-style archive.
37415RANLIB=$lt_RANLIB
37416old_postinstall_cmds=$lt_old_postinstall_cmds
37417old_postuninstall_cmds=$lt_old_postuninstall_cmds
37418
cristy0c60a692010-11-04 01:09:47 +000037419# Whether to use a lock for old archive extraction.
37420lock_old_archive_extraction=$lock_old_archive_extraction
37421
cristy73bd4a52010-10-05 11:24:23 +000037422# A C compiler.
37423LTCC=$lt_CC
37424
37425# LTCC compiler flags.
37426LTCFLAGS=$lt_CFLAGS
37427
37428# Take the output of nm and produce a listing of raw symbols and C names.
37429global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37430
37431# Transform the output of nm in a proper C declaration.
37432global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37433
37434# Transform the output of nm in a C name address pair.
37435global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37436
37437# Transform the output of nm in a C name address pair when lib prefix is needed.
37438global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37439
cristyda16f162011-02-19 23:52:17 +000037440# Specify filename containing input files for \$NM.
37441nm_file_list_spec=$lt_nm_file_list_spec
37442
37443# The root where to search for dependent libraries,and in which our libraries should be installed.
37444lt_sysroot=$lt_sysroot
37445
cristy73bd4a52010-10-05 11:24:23 +000037446# The name of the directory that contains temporary libtool files.
37447objdir=$objdir
37448
cristy73bd4a52010-10-05 11:24:23 +000037449# Used to examine libraries when file_magic_cmd begins with "file".
37450MAGIC_CMD=$MAGIC_CMD
37451
37452# Must we lock files when doing compilation?
37453need_locks=$lt_need_locks
37454
cristyda16f162011-02-19 23:52:17 +000037455# Manifest tool.
37456MANIFEST_TOOL=$lt_MANIFEST_TOOL
37457
cristy73bd4a52010-10-05 11:24:23 +000037458# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37459DSYMUTIL=$lt_DSYMUTIL
37460
37461# Tool to change global to local symbols on Mac OS X.
37462NMEDIT=$lt_NMEDIT
37463
37464# Tool to manipulate fat objects and archives on Mac OS X.
37465LIPO=$lt_LIPO
37466
37467# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37468OTOOL=$lt_OTOOL
37469
37470# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37471OTOOL64=$lt_OTOOL64
37472
37473# Old archive suffix (normally "a").
37474libext=$libext
37475
37476# Shared library suffix (normally ".so").
37477shrext_cmds=$lt_shrext_cmds
37478
37479# The commands to extract the exported symbol list from a shared archive.
37480extract_expsyms_cmds=$lt_extract_expsyms_cmds
37481
37482# Variables whose values should be saved in libtool wrapper scripts and
37483# restored at link time.
37484variables_saved_for_relink=$lt_variables_saved_for_relink
37485
37486# Do we need the "lib" prefix for modules?
37487need_lib_prefix=$need_lib_prefix
37488
37489# Do we need a version for libraries?
37490need_version=$need_version
37491
37492# Library versioning type.
37493version_type=$version_type
37494
37495# Shared library runtime path variable.
37496runpath_var=$runpath_var
37497
37498# Shared library path variable.
37499shlibpath_var=$shlibpath_var
37500
37501# Is shlibpath searched before the hard-coded library search path?
37502shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37503
37504# Format of library name prefix.
37505libname_spec=$lt_libname_spec
37506
37507# List of archive names. First name is the real one, the rest are links.
37508# The last name is the one that the linker finds with -lNAME
37509library_names_spec=$lt_library_names_spec
37510
37511# The coded name of the library, if different from the real name.
37512soname_spec=$lt_soname_spec
37513
cristy0c60a692010-11-04 01:09:47 +000037514# Permission mode override for installation of shared libraries.
37515install_override_mode=$lt_install_override_mode
37516
cristy73bd4a52010-10-05 11:24:23 +000037517# Command to use after installation of a shared archive.
37518postinstall_cmds=$lt_postinstall_cmds
37519
37520# Command to use after uninstallation of a shared archive.
37521postuninstall_cmds=$lt_postuninstall_cmds
37522
37523# Commands used to finish a libtool library installation in a directory.
37524finish_cmds=$lt_finish_cmds
37525
37526# As "finish_cmds", except a single script fragment to be evaled but
37527# not shown.
37528finish_eval=$lt_finish_eval
37529
37530# Whether we should hardcode library paths into libraries.
37531hardcode_into_libs=$hardcode_into_libs
37532
37533# Compile-time system search path for libraries.
37534sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37535
37536# Run-time system search path for libraries.
37537sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37538
37539# Whether dlopen is supported.
37540dlopen_support=$enable_dlopen
37541
37542# Whether dlopen of programs is supported.
37543dlopen_self=$enable_dlopen_self
37544
37545# Whether dlopen of statically linked programs is supported.
37546dlopen_self_static=$enable_dlopen_self_static
37547
37548# Commands to strip libraries.
37549old_striplib=$lt_old_striplib
37550striplib=$lt_striplib
37551
37552
37553# The linker used to build libraries.
37554LD=$lt_LD
37555
cristy0c60a692010-11-04 01:09:47 +000037556# How to create reloadable object files.
37557reload_flag=$lt_reload_flag
37558reload_cmds=$lt_reload_cmds
37559
cristy73bd4a52010-10-05 11:24:23 +000037560# Commands used to build an old-style archive.
37561old_archive_cmds=$lt_old_archive_cmds
37562
37563# A language specific compiler.
37564CC=$lt_compiler
37565
37566# Is the compiler the GNU compiler?
37567with_gcc=$GCC
37568
37569# Compiler flag to turn off builtin functions.
37570no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37571
cristy73bd4a52010-10-05 11:24:23 +000037572# Additional compiler flags for building library objects.
37573pic_flag=$lt_lt_prog_compiler_pic
37574
cristyda16f162011-02-19 23:52:17 +000037575# How to pass a linker flag through the compiler.
37576wl=$lt_lt_prog_compiler_wl
37577
cristy73bd4a52010-10-05 11:24:23 +000037578# Compiler flag to prevent dynamic linking.
37579link_static_flag=$lt_lt_prog_compiler_static
37580
37581# Does compiler simultaneously support -c and -o options?
37582compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37583
37584# Whether or not to add -lc for building shared libraries.
37585build_libtool_need_lc=$archive_cmds_need_lc
37586
37587# Whether or not to disallow shared libs when runtime libs are static.
37588allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37589
37590# Compiler flag to allow reflexive dlopens.
37591export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37592
37593# Compiler flag to generate shared objects directly from archives.
37594whole_archive_flag_spec=$lt_whole_archive_flag_spec
37595
37596# Whether the compiler copes with passing no objects directly.
37597compiler_needs_object=$lt_compiler_needs_object
37598
37599# Create an old-style archive from a shared archive.
37600old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37601
37602# Create a temporary old-style archive to link instead of a shared archive.
37603old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37604
37605# Commands used to build a shared archive.
37606archive_cmds=$lt_archive_cmds
37607archive_expsym_cmds=$lt_archive_expsym_cmds
37608
37609# Commands used to build a loadable module if different from building
37610# a shared archive.
37611module_cmds=$lt_module_cmds
37612module_expsym_cmds=$lt_module_expsym_cmds
37613
37614# Whether we are building with GNU ld or not.
37615with_gnu_ld=$lt_with_gnu_ld
37616
37617# Flag that allows shared libraries with undefined symbols to be built.
37618allow_undefined_flag=$lt_allow_undefined_flag
37619
37620# Flag that enforces no undefined symbols.
37621no_undefined_flag=$lt_no_undefined_flag
37622
37623# Flag to hardcode \$libdir into a binary during linking.
37624# This must work even if \$libdir does not exist
37625hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37626
cristy73bd4a52010-10-05 11:24:23 +000037627# Whether we need a single "-rpath" flag with a separated argument.
37628hardcode_libdir_separator=$lt_hardcode_libdir_separator
37629
37630# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37631# DIR into the resulting binary.
37632hardcode_direct=$hardcode_direct
37633
37634# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37635# DIR into the resulting binary and the resulting library dependency is
37636# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37637# library is relocated.
37638hardcode_direct_absolute=$hardcode_direct_absolute
37639
37640# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37641# into the resulting binary.
37642hardcode_minus_L=$hardcode_minus_L
37643
37644# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37645# into the resulting binary.
37646hardcode_shlibpath_var=$hardcode_shlibpath_var
37647
37648# Set to "yes" if building a shared library automatically hardcodes DIR
37649# into the library and all subsequent libraries and executables linked
37650# against it.
37651hardcode_automatic=$hardcode_automatic
37652
37653# Set to yes if linker adds runtime paths of dependent libraries
37654# to runtime path list.
37655inherit_rpath=$inherit_rpath
37656
37657# Whether libtool must link a program against all its dependency libraries.
37658link_all_deplibs=$link_all_deplibs
37659
cristy73bd4a52010-10-05 11:24:23 +000037660# Set to "yes" if exported symbols are required.
37661always_export_symbols=$always_export_symbols
37662
37663# The commands to list exported symbols.
37664export_symbols_cmds=$lt_export_symbols_cmds
37665
37666# Symbols that should not be listed in the preloaded symbols.
37667exclude_expsyms=$lt_exclude_expsyms
37668
37669# Symbols that must always be exported.
37670include_expsyms=$lt_include_expsyms
37671
37672# Commands necessary for linking programs (against libraries) with templates.
37673prelink_cmds=$lt_prelink_cmds
37674
cristyda16f162011-02-19 23:52:17 +000037675# Commands necessary for finishing linking programs.
37676postlink_cmds=$lt_postlink_cmds
37677
cristy73bd4a52010-10-05 11:24:23 +000037678# Specify filename containing input files.
37679file_list_spec=$lt_file_list_spec
37680
37681# How to hardcode a shared library path into an executable.
37682hardcode_action=$hardcode_action
37683
37684# The directories searched by this compiler when creating a shared library.
37685compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37686
37687# Dependencies to place before and after the objects being linked to
37688# create a shared library.
37689predep_objects=$lt_predep_objects
37690postdep_objects=$lt_postdep_objects
37691predeps=$lt_predeps
37692postdeps=$lt_postdeps
37693
37694# The library search path used internally by the compiler when linking
37695# a shared library.
37696compiler_lib_search_path=$lt_compiler_lib_search_path
37697
37698# ### END LIBTOOL CONFIG
37699
37700_LT_EOF
37701
37702 case $host_os in
37703 aix3*)
37704 cat <<\_LT_EOF >> "$cfgfile"
37705# AIX sometimes has problems with the GCC collect2 program. For some
37706# reason, if we set the COLLECT_NAMES environment variable, the problems
37707# vanish in a puff of smoke.
37708if test "X${COLLECT_NAMES+set}" != Xset; then
37709 COLLECT_NAMES=
37710 export COLLECT_NAMES
37711fi
37712_LT_EOF
37713 ;;
37714 esac
37715
37716
37717ltmain="$ac_aux_dir/ltmain.sh"
37718
37719
37720 # We use sed instead of cat because bash on DJGPP gets confused if
37721 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37722 # text mode, it properly converts lines to CR/LF. This bash problem
37723 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037724 sed '$q' "$ltmain" >> "$cfgfile" \
37725 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037726
cristyda16f162011-02-19 23:52:17 +000037727 if test x"$xsi_shell" = xyes; then
37728 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37729func_dirname ()\
37730{\
37731\ case ${1} in\
37732\ */*) func_dirname_result="${1%/*}${2}" ;;\
37733\ * ) func_dirname_result="${3}" ;;\
37734\ esac\
37735} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37736 && mv -f "$cfgfile.tmp" "$cfgfile" \
37737 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37738test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037739
37740
cristyda16f162011-02-19 23:52:17 +000037741 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37742func_basename ()\
37743{\
37744\ func_basename_result="${1##*/}"\
37745} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37746 && mv -f "$cfgfile.tmp" "$cfgfile" \
37747 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37748test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037749
37750
cristyda16f162011-02-19 23:52:17 +000037751 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37752func_dirname_and_basename ()\
37753{\
37754\ case ${1} in\
37755\ */*) func_dirname_result="${1%/*}${2}" ;;\
37756\ * ) func_dirname_result="${3}" ;;\
37757\ esac\
37758\ func_basename_result="${1##*/}"\
37759} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37760 && mv -f "$cfgfile.tmp" "$cfgfile" \
37761 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37762test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037763
cristyda16f162011-02-19 23:52:17 +000037764
37765 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37766func_stripname ()\
37767{\
37768\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37769\ # positional parameters, so assign one to ordinary parameter first.\
37770\ func_stripname_result=${3}\
37771\ func_stripname_result=${func_stripname_result#"${1}"}\
37772\ func_stripname_result=${func_stripname_result%"${2}"}\
37773} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37774 && mv -f "$cfgfile.tmp" "$cfgfile" \
37775 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37776test 0 -eq $? || _lt_function_replace_fail=:
37777
37778
37779 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37780func_split_long_opt ()\
37781{\
37782\ func_split_long_opt_name=${1%%=*}\
37783\ func_split_long_opt_arg=${1#*=}\
37784} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37785 && mv -f "$cfgfile.tmp" "$cfgfile" \
37786 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37787test 0 -eq $? || _lt_function_replace_fail=:
37788
37789
37790 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37791func_split_short_opt ()\
37792{\
37793\ func_split_short_opt_arg=${1#??}\
37794\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37795} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37796 && mv -f "$cfgfile.tmp" "$cfgfile" \
37797 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37798test 0 -eq $? || _lt_function_replace_fail=:
37799
37800
37801 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37802func_lo2o ()\
37803{\
37804\ case ${1} in\
37805\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37806\ *) func_lo2o_result=${1} ;;\
37807\ esac\
37808} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37809 && mv -f "$cfgfile.tmp" "$cfgfile" \
37810 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37811test 0 -eq $? || _lt_function_replace_fail=:
37812
37813
37814 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37815func_xform ()\
37816{\
37817 func_xform_result=${1%.*}.lo\
37818} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37819 && mv -f "$cfgfile.tmp" "$cfgfile" \
37820 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37821test 0 -eq $? || _lt_function_replace_fail=:
37822
37823
37824 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37825func_arith ()\
37826{\
37827 func_arith_result=$(( $* ))\
37828} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37829 && mv -f "$cfgfile.tmp" "$cfgfile" \
37830 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37831test 0 -eq $? || _lt_function_replace_fail=:
37832
37833
37834 sed -e '/^func_len ()$/,/^} # func_len /c\
37835func_len ()\
37836{\
37837 func_len_result=${#1}\
37838} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37839 && mv -f "$cfgfile.tmp" "$cfgfile" \
37840 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37841test 0 -eq $? || _lt_function_replace_fail=:
37842
37843fi
37844
37845if test x"$lt_shell_append" = xyes; then
37846 sed -e '/^func_append ()$/,/^} # func_append /c\
37847func_append ()\
37848{\
37849 eval "${1}+=\\${2}"\
37850} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37851 && mv -f "$cfgfile.tmp" "$cfgfile" \
37852 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37853test 0 -eq $? || _lt_function_replace_fail=:
37854
37855
37856 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37857func_append_quoted ()\
37858{\
37859\ func_quote_for_eval "${2}"\
37860\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37861} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37862 && mv -f "$cfgfile.tmp" "$cfgfile" \
37863 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37864test 0 -eq $? || _lt_function_replace_fail=:
37865
37866
37867 # Save a `func_append' function call where possible by direct use of '+='
37868 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37869 && mv -f "$cfgfile.tmp" "$cfgfile" \
37870 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37871 test 0 -eq $? || _lt_function_replace_fail=:
37872else
37873 # Save a `func_append' function call even when '+=' is not available
37874 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37875 && mv -f "$cfgfile.tmp" "$cfgfile" \
37876 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37877 test 0 -eq $? || _lt_function_replace_fail=:
37878fi
37879
37880if test x"$_lt_function_replace_fail" = x":"; then
37881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37882$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37883fi
37884
37885
37886 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037887 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37888 chmod +x "$ofile"
37889
37890
37891 cat <<_LT_EOF >> "$ofile"
37892
37893# ### BEGIN LIBTOOL TAG CONFIG: CXX
37894
37895# The linker used to build libraries.
37896LD=$lt_LD_CXX
37897
cristy0c60a692010-11-04 01:09:47 +000037898# How to create reloadable object files.
37899reload_flag=$lt_reload_flag_CXX
37900reload_cmds=$lt_reload_cmds_CXX
37901
cristy73bd4a52010-10-05 11:24:23 +000037902# Commands used to build an old-style archive.
37903old_archive_cmds=$lt_old_archive_cmds_CXX
37904
37905# A language specific compiler.
37906CC=$lt_compiler_CXX
37907
37908# Is the compiler the GNU compiler?
37909with_gcc=$GCC_CXX
37910
37911# Compiler flag to turn off builtin functions.
37912no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37913
cristy73bd4a52010-10-05 11:24:23 +000037914# Additional compiler flags for building library objects.
37915pic_flag=$lt_lt_prog_compiler_pic_CXX
37916
cristyda16f162011-02-19 23:52:17 +000037917# How to pass a linker flag through the compiler.
37918wl=$lt_lt_prog_compiler_wl_CXX
37919
cristy73bd4a52010-10-05 11:24:23 +000037920# Compiler flag to prevent dynamic linking.
37921link_static_flag=$lt_lt_prog_compiler_static_CXX
37922
37923# Does compiler simultaneously support -c and -o options?
37924compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37925
37926# Whether or not to add -lc for building shared libraries.
37927build_libtool_need_lc=$archive_cmds_need_lc_CXX
37928
37929# Whether or not to disallow shared libs when runtime libs are static.
37930allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37931
37932# Compiler flag to allow reflexive dlopens.
37933export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37934
37935# Compiler flag to generate shared objects directly from archives.
37936whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37937
37938# Whether the compiler copes with passing no objects directly.
37939compiler_needs_object=$lt_compiler_needs_object_CXX
37940
37941# Create an old-style archive from a shared archive.
37942old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37943
37944# Create a temporary old-style archive to link instead of a shared archive.
37945old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37946
37947# Commands used to build a shared archive.
37948archive_cmds=$lt_archive_cmds_CXX
37949archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37950
37951# Commands used to build a loadable module if different from building
37952# a shared archive.
37953module_cmds=$lt_module_cmds_CXX
37954module_expsym_cmds=$lt_module_expsym_cmds_CXX
37955
37956# Whether we are building with GNU ld or not.
37957with_gnu_ld=$lt_with_gnu_ld_CXX
37958
37959# Flag that allows shared libraries with undefined symbols to be built.
37960allow_undefined_flag=$lt_allow_undefined_flag_CXX
37961
37962# Flag that enforces no undefined symbols.
37963no_undefined_flag=$lt_no_undefined_flag_CXX
37964
37965# Flag to hardcode \$libdir into a binary during linking.
37966# This must work even if \$libdir does not exist
37967hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37968
cristy73bd4a52010-10-05 11:24:23 +000037969# Whether we need a single "-rpath" flag with a separated argument.
37970hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37971
37972# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37973# DIR into the resulting binary.
37974hardcode_direct=$hardcode_direct_CXX
37975
37976# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37977# DIR into the resulting binary and the resulting library dependency is
37978# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37979# library is relocated.
37980hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37981
37982# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37983# into the resulting binary.
37984hardcode_minus_L=$hardcode_minus_L_CXX
37985
37986# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37987# into the resulting binary.
37988hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37989
37990# Set to "yes" if building a shared library automatically hardcodes DIR
37991# into the library and all subsequent libraries and executables linked
37992# against it.
37993hardcode_automatic=$hardcode_automatic_CXX
37994
37995# Set to yes if linker adds runtime paths of dependent libraries
37996# to runtime path list.
37997inherit_rpath=$inherit_rpath_CXX
37998
37999# Whether libtool must link a program against all its dependency libraries.
38000link_all_deplibs=$link_all_deplibs_CXX
38001
cristy73bd4a52010-10-05 11:24:23 +000038002# Set to "yes" if exported symbols are required.
38003always_export_symbols=$always_export_symbols_CXX
38004
38005# The commands to list exported symbols.
38006export_symbols_cmds=$lt_export_symbols_cmds_CXX
38007
38008# Symbols that should not be listed in the preloaded symbols.
38009exclude_expsyms=$lt_exclude_expsyms_CXX
38010
38011# Symbols that must always be exported.
38012include_expsyms=$lt_include_expsyms_CXX
38013
38014# Commands necessary for linking programs (against libraries) with templates.
38015prelink_cmds=$lt_prelink_cmds_CXX
38016
cristyda16f162011-02-19 23:52:17 +000038017# Commands necessary for finishing linking programs.
38018postlink_cmds=$lt_postlink_cmds_CXX
38019
cristy73bd4a52010-10-05 11:24:23 +000038020# Specify filename containing input files.
38021file_list_spec=$lt_file_list_spec_CXX
38022
38023# How to hardcode a shared library path into an executable.
38024hardcode_action=$hardcode_action_CXX
38025
38026# The directories searched by this compiler when creating a shared library.
38027compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38028
38029# Dependencies to place before and after the objects being linked to
38030# create a shared library.
38031predep_objects=$lt_predep_objects_CXX
38032postdep_objects=$lt_postdep_objects_CXX
38033predeps=$lt_predeps_CXX
38034postdeps=$lt_postdeps_CXX
38035
38036# The library search path used internally by the compiler when linking
38037# a shared library.
38038compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38039
38040# ### END LIBTOOL TAG CONFIG: CXX
38041_LT_EOF
38042
38043 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038044 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038045 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038046 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038047 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38048 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38049
38050 esac
38051done # for ac_tag
38052
38053
cristy8b350f62009-11-15 23:12:43 +000038054as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038055_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038056ac_clean_files=$ac_clean_files_save
38057
38058test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038059 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038060
38061
38062# configure is writing to config.log, and then calls config.status.
38063# config.status does its own redirection, appending to config.log.
38064# Unfortunately, on DOS this fails, as config.log is still kept open
38065# by configure, so config.status won't be able to write to it; its
38066# output is simply discarded. So we exec the FD to /dev/null,
38067# effectively closing config.log, so it can be properly (re)opened and
38068# appended to by config.status. When coming back to configure, we
38069# need to make the FD available again.
38070if test "$no_create" != yes; then
38071 ac_cs_success=:
38072 ac_config_status_args=
38073 test "$silent" = yes &&
38074 ac_config_status_args="$ac_config_status_args --quiet"
38075 exec 5>/dev/null
38076 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38077 exec 5>>config.log
38078 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38079 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038080 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038081fi
38082if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038084$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38085fi
38086
38087
38088rm -f magick-version
38089
cristy430a7312010-01-21 20:44:04 +000038090result_dejavu_font_dir='none'
38091if test "${dejavu_font_dir}x" != 'x'; then
38092 result_dejavu_font_dir=$dejavu_font_dir
38093fi
38094
cristy3ed852e2009-09-05 21:47:34 +000038095result_ghostscript_font_dir='none'
38096if test "${ghostscript_font_dir}x" != 'x'; then
38097 result_ghostscript_font_dir=$ghostscript_font_dir
38098fi
38099
38100result_windows_font_dir='none'
38101if test "${windows_font_dir}x" != 'x'; then
38102 result_windows_font_dir=${windows_font_dir}
38103fi
38104
cristy09b53e12011-10-14 12:47:22 +000038105{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038106ImageMagick is configured as follows. Please verify that this configuration
38107matches your expectations.
38108
38109Host system type: $host
38110Build system type: $build
38111
38112 Option Value
38113-------------------------------------------------------------------------------
38114Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38115Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038116Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038117GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38118Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38119High Dynamic Range Imagery
38120 --enable-hdri=$enable_hdri $enable_hdri
38121
38122Delegate Configuration:
38123BZLIB --with-bzlib=$with_bzlib $have_bzlib
38124Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038125Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038126DJVU --with-djvu=$with_djvu $have_djvu
38127DPS --with-dps=$with_dps $have_dps
38128FFTW --with-fftw=$with_fftw $have_fftw
38129FlashPIX --with-fpx=$with_fpx $have_fpx
38130FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38131FreeType --with-freetype=$with_freetype $have_freetype
38132GhostPCL None $PCLDelegate ($PCLVersion)
38133GhostXPS None $XPSDelegate ($XPSVersion)
38134Ghostscript None $PSDelegate ($GSVersion)
38135Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38136Ghostscript lib --with-gslib=$with_gslib $have_gslib
38137Graphviz --with-gvc=$with_gvc $have_gvc
38138JBIG --with-jbig=$with_jbig $have_jbig
38139JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38140JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038141LCMS v1 --with-lcms=$with_lcms $have_lcms
38142LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038143LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038144LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038145LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038146Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38147OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038148PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038149PERL --with-perl=$with_perl $have_perl
38150PNG --with-png=$with_png $have_png
38151RSVG --with-rsvg=$with_rsvg $have_rsvg
38152TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038153WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038154Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038155WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038156X11 --with-x=$with_x $have_x
38157XML --with-xml=$with_xml $have_xml
38158ZLIB --with-zlib=$with_zlib $have_zlib
38159
38160X11 Configuration:
38161 X_CFLAGS = $X_CFLAGS
38162 X_PRE_LIBS = $X_PRE_LIBS
38163 X_LIBS = $X_LIBS
38164 X_EXTRA_LIBS = $X_EXTRA_LIBS
38165
38166Options used to compile and link:
38167 PREFIX = $PREFIX_DIR
38168 EXEC-PREFIX = $EXEC_PREFIX_DIR
38169 VERSION = $PACKAGE_VERSION
38170 CC = $CC
38171 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038172 CPPFLAGS = $MAGICK_CPPFLAGS
38173 PCFLAGS = $MAGICK_PCFLAGS
38174 DEFS = $DEFS
38175 LDFLAGS = $LDFLAGS
38176 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38177 LIBS = $MAGICK_LIBS
38178 CXX = $CXX
38179 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038180 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038181" >&5
cristy09b53e12011-10-14 12:47:22 +000038182$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038183ImageMagick is configured as follows. Please verify that this configuration
38184matches your expectations.
38185
38186Host system type: $host
38187Build system type: $build
38188
38189 Option Value
38190-------------------------------------------------------------------------------
38191Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38192Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038193Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038194GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38195Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38196High Dynamic Range Imagery
38197 --enable-hdri=$enable_hdri $enable_hdri
38198
38199Delegate Configuration:
38200BZLIB --with-bzlib=$with_bzlib $have_bzlib
38201Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038202Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038203DJVU --with-djvu=$with_djvu $have_djvu
38204DPS --with-dps=$with_dps $have_dps
38205FFTW --with-fftw=$with_fftw $have_fftw
38206FlashPIX --with-fpx=$with_fpx $have_fpx
38207FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38208FreeType --with-freetype=$with_freetype $have_freetype
38209GhostPCL None $PCLDelegate ($PCLVersion)
38210GhostXPS None $XPSDelegate ($XPSVersion)
38211Ghostscript None $PSDelegate ($GSVersion)
38212Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38213Ghostscript lib --with-gslib=$with_gslib $have_gslib
38214Graphviz --with-gvc=$with_gvc $have_gvc
38215JBIG --with-jbig=$with_jbig $have_jbig
38216JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38217JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038218LCMS v1 --with-lcms=$with_lcms $have_lcms
38219LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038220LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038221LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038222LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038223Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38224OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038225PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038226PERL --with-perl=$with_perl $have_perl
38227PNG --with-png=$with_png $have_png
38228RSVG --with-rsvg=$with_rsvg $have_rsvg
38229TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038230WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038231Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038232WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038233X11 --with-x=$with_x $have_x
38234XML --with-xml=$with_xml $have_xml
38235ZLIB --with-zlib=$with_zlib $have_zlib
38236
38237X11 Configuration:
38238 X_CFLAGS = $X_CFLAGS
38239 X_PRE_LIBS = $X_PRE_LIBS
38240 X_LIBS = $X_LIBS
38241 X_EXTRA_LIBS = $X_EXTRA_LIBS
38242
38243Options used to compile and link:
38244 PREFIX = $PREFIX_DIR
38245 EXEC-PREFIX = $EXEC_PREFIX_DIR
38246 VERSION = $PACKAGE_VERSION
38247 CC = $CC
38248 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038249 CPPFLAGS = $MAGICK_CPPFLAGS
38250 PCFLAGS = $MAGICK_PCFLAGS
38251 DEFS = $DEFS
38252 LDFLAGS = $LDFLAGS
38253 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38254 LIBS = $MAGICK_LIBS
38255 CXX = $CXX
38256 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038257 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038258" >&6;}