blob: f484375d0a478a196757736fef13973f335f4e3e [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
cristy3ed852e2009-09-05 21:47:34 +0000639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000646OSX_GCOV_LDFLAG
cristyfa161182012-12-19 15:45:28 +0000647MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +0000648MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +0000649MAGICKCORE_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
cristy54378032012-12-04 15:52:20 +0000735SHAREARCH_RELATIVE_PATH
736SHAREARCH_DIRNAME
737SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000738SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000739CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000740DOCUMENTATION_PATH
741FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000742FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000743CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000744CODER_DIRNAME
745MODULES_PATH
746MODULES_RELATIVE_PATH
747MODULES_DIRNAME
748MODULES_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000749LIBRARY_PATH
750EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000751INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000752INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000753PERLMAINCC
754XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000755XML_DELEGATE_FALSE
756XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000757xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000758WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000759WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000760WMF_DELEGATE_FALSE
761WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000762WEBP_LIBS
763WEBP_DELEGATE_FALSE
764WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000766TIFF_DELEGATE_FALSE
767TIFF_DELEGATE_TRUE
768CAIRO_DELEGATE_FALSE
769CAIRO_DELEGATE_TRUE
770RSVG_DELEGATE_FALSE
771RSVG_DELEGATE_TRUE
772CAIRO_SVG_LIBS
773CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000774RSVG_LIBS
775RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000776PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777PNG_DELEGATE_FALSE
778PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000779PANGOCAIRO_DELEGATE_FALSE
780PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000781PANGO_DELEGATE_FALSE
782PANGO_DELEGATE_TRUE
783PANGO_LIBS
784PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000785OPENEXR_DELEGATE_FALSE
786OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000787OPENEXR_LIBS
788OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000789LZMA_DELEGATE_FALSE
790LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000791LZMA_LIBS
792LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000793LQR_DELEGATE_FALSE
794LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000795LQR_LIBS
796LQR_CFLAGS
797LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000798LCMS_DELEGATE_FALSE
799LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801JP2_DELEGATE_FALSE
802JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804JPEG_DELEGATE_FALSE
805JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807JBIG_DELEGATE_FALSE
808JBIG_DELEGATE_TRUE
809GVC_DELEGATE_FALSE
810GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000811GVC_LIBS
812GVC_CFLAGS
813GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814GS_DELEGATE_FALSE
815GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000816FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817FREETYPE_DELEGATE_FALSE
818FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000819freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000820FONTCONFIG_DELEGATE_FALSE
821FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000822FONTCONFIG_LIBS
823FONTCONFIG_CFLAGS
824FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000825FPX_DELEGATE_FALSE
826FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000827FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000828FFTW_DELEGATE_FALSE
829FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000830DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000831DJVU_DELEGATE_FALSE
832DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000833DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834DPS_DELEGATE_FALSE
835DPS_DELEGATE_TRUE
836AUTOTRACE_DELEGATE_FALSE
837AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000838AUTOTRACE_LIBS
839AUTOTRACE_CFLAGS
840LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000841WITH_LTDL_FALSE
842WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000844ZLIB_DELEGATE_FALSE
845ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000846XEXT_LIBS
847X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000848X11_DELEGATE_FALSE
849X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000850X_EXTRA_LIBS
851X_LIBS
852X_PRE_LIBS
853X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000854XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000855BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000856BZLIB_DELEGATE_FALSE
857BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000858CCMALLOCDelegate
859UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000860HasUMEM_FALSE
861HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000862THREAD_LIBS
863GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000864WITH_MAGICK_PLUS_PLUS_FALSE
865WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000866OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000867MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000868POW_LIB
869LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000870UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000871UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000872UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000873UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000874UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000875UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000876INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000877INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000878UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000879UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000880INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000881INT32_T
882UINT16_T
883INT16_T
884UINT8_T
885INT8_T
886LIBRARY_EXTRA_CPPFLAGS
887MODULE_EXTRA_CPPFLAGS
888LIBSTDCLDFLAGS
889PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000890MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000891MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000892QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000893LEGACY_SUPPORT_FALSE
894LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000895MAINT
896MAINTAINER_MODE_FALSE
897MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000898MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000899WITH_MODULES_FALSE
900WITH_MODULES_TRUE
901WITH_SHARED_LIBS_FALSE
902WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000903LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000904CXXCPP
905OTOOL64
906OTOOL
907LIPO
908NMEDIT
909DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000910MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000911RANLIB
cristyda16f162011-02-19 23:52:17 +0000912ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000913AR
914NM
915ac_ct_DUMPBIN
916DUMPBIN
917LIBTOOL
918OBJDUMP
919DLLTOOL
920AS
cristy3ed852e2009-09-05 21:47:34 +0000921LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000922CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000923CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000924OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000925PTHREAD_CFLAGS
926PTHREAD_LIBS
927PTHREAD_CC
928ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000929SHAREARCH_DIR
930INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000931WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000932USING_CL_FALSE
933USING_CL_TRUE
934CYGWIN_BUILD_FALSE
935CYGWIN_BUILD_TRUE
936WIN32_NATIVE_BUILD_FALSE
937WIN32_NATIVE_BUILD_TRUE
938WINGDI32_DELEGATE_FALSE
939WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000940GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000941HAVE_LD_VERSION_SCRIPT_FALSE
942HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000943PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000944PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000945LN_S
cristy3ed852e2009-09-05 21:47:34 +0000946LD
cristy73bd4a52010-10-05 11:24:23 +0000947FGREP
948SED
949am__fastdepCXX_FALSE
950am__fastdepCXX_TRUE
951CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000952ac_ct_CXX
953CXXFLAGS
954CXX
cristya0b81c32010-01-22 02:54:33 +0000955EGREP
956GREP
957CPP
cristy73bd4a52010-10-05 11:24:23 +0000958am__fastdepCC_FALSE
959am__fastdepCC_TRUE
960CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000961am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000962AMDEPBACKSLASH
963AMDEP_FALSE
964AMDEP_TRUE
965am__quote
966am__include
967DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000968OBJEXT
969EXEEXT
970ac_ct_CC
971CPPFLAGS
972LDFLAGS
973CFLAGS
974CC
975DIRSEP
976MAGICK_FILTER_MODULE_PATH
977MAGICK_CONFIGURE_BUILD_PATH
978MAGICK_CONFIGURE_SRC_PATH
979MAGICK_CODER_MODULE_PATH
980MAN_DIR
981INFO_DIR
982PERSISTINCLUDE_DIR
983INCLUDE_DIR
984LIB_DIR
985LOCALSTATE_DIR
986SHAREDSTATE_DIR
987SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000988DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000989DATA_DIR
990LIBEXEC_DIR
991SBIN_DIR
992BIN_DIR
993EXEC_PREFIX_DIR
994PREFIX_DIR
995CONFIG_STATUS_DEPENDENCIES
996MAGICK_LIB_VERSION_NUMBER
997MAGICK_LIB_VERSION_TEXT
998MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000999AM_BACKSLASH
1000AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001001AM_DEFAULT_V
1002AM_V
cristy73bd4a52010-10-05 11:24:23 +00001003am__untar
1004am__tar
1005AMTAR
1006am__leading_dot
1007SET_MAKE
1008AWK
1009mkdir_p
1010MKDIR_P
1011INSTALL_STRIP_PROGRAM
1012STRIP
1013install_sh
1014MAKEINFO
1015AUTOHEADER
1016AUTOMAKE
1017AUTOCONF
1018ACLOCAL
1019VERSION
1020PACKAGE
1021CYGPATH_W
1022am__isrc
1023INSTALL_DATA
1024INSTALL_SCRIPT
1025INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001026PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001027PACKAGE_RELEASE_DATE
1028PACKAGE_LIB_VERSION_NUMBER
1029PACKAGE_LIB_VERSION
1030PACKAGE_CHANGE_DATE
1031PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001032PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001033MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001034MAGICK_LIBRARY_VERSION_INFO
1035MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001036MAGICK_LIBRARY_AGE
1037MAGICK_LIBRARY_REVISION
1038MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001039MAGICK_TARGET_OS
1040MAGICK_TARGET_VENDOR
1041MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001042target_os
1043target_vendor
1044target_cpu
1045target
1046host_os
1047host_vendor
1048host_cpu
1049host
1050build_os
1051build_vendor
1052build_cpu
1053build
1054CONFIGURE_ARGS
1055DISTCHECK_CONFIG_FLAGS
1056target_alias
1057host_alias
1058build_alias
1059LIBS
1060ECHO_T
1061ECHO_N
1062ECHO_C
1063DEFS
1064mandir
1065localedir
1066libdir
1067psdir
1068pdfdir
1069dvidir
1070htmldir
1071infodir
1072docdir
1073oldincludedir
1074includedir
1075localstatedir
1076sharedstatedir
1077sysconfdir
1078datadir
1079datarootdir
1080libexecdir
1081sbindir
1082bindir
1083program_transform_name
1084prefix
1085exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001086PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001087PACKAGE_BUGREPORT
1088PACKAGE_STRING
1089PACKAGE_VERSION
1090PACKAGE_TARNAME
1091PACKAGE_NAME
1092PATH_SEPARATOR
1093SHELL'
1094ac_subst_files=''
1095ac_user_opts='
1096enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001097enable_silent_rules
1098enable_dependency_tracking
1099with_gnu_ld
1100with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001101with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001102enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001103enable_bounds_checking
1104enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001105with_includearch_dir
1106with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001107with_threads
1108enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001109enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001110enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001111enable_shared
1112enable_static
1113with_pic
1114enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001115with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001116enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001117with_modules
1118enable_delegate_build
1119enable_deprecated
1120enable_installed
1121enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001122enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001123enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001124enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001125enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001126enable_ccmalloc
1127enable_efence
1128enable_prof
1129enable_gprof
1130enable_gcov
1131with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001132enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001133with_quantum_depth
1134with_cache
1135with_frozenpaths
1136with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001137with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001138with_perl
1139with_perl_options
1140with_umem
1141with_libstdc
1142with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001143with_x
cristy3ed852e2009-09-05 21:47:34 +00001144with_zlib
1145with_autotrace
1146with_dps
1147with_djvu
cristy430a7312010-01-21 20:44:04 +00001148with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001149with_fftw
1150with_fpx
1151with_fontconfig
1152with_freetype
1153with_gslib
1154with_fontpath
1155with_gs_font_dir
1156with_gvc
1157with_jbig
1158with_jpeg
1159with_jp2
1160with_lcms
cristy71203402010-06-18 13:12:03 +00001161with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001162with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001163with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001164with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001165with_pango
cristy3ed852e2009-09-05 21:47:34 +00001166with_png
1167with_rsvg
1168with_tiff
cristyb1860752011-03-14 00:27:46 +00001169with_webp
cristy3ed852e2009-09-05 21:47:34 +00001170with_windows_font_dir
1171with_wmf
1172with_xml
1173'
1174 ac_precious_vars='build_alias
1175host_alias
1176target_alias
1177CC
1178CFLAGS
1179LDFLAGS
1180LIBS
1181CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001182CPP
cristy3ed852e2009-09-05 21:47:34 +00001183CXX
1184CXXFLAGS
1185CCC
cristy73bd4a52010-10-05 11:24:23 +00001186PKG_CONFIG
1187CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001188XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001189AUTOTRACE_CFLAGS
1190AUTOTRACE_LIBS
1191FONTCONFIG_CFLAGS
1192FONTCONFIG_LIBS
1193GVC_CFLAGS
1194GVC_LIBS
1195LQR_CFLAGS
1196LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001197LZMA_CFLAGS
1198LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001199OPENEXR_CFLAGS
1200OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001201PANGO_CFLAGS
1202PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001203RSVG_CFLAGS
1204RSVG_LIBS
1205CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001206CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001207
1208
1209# Initialize some variables set by options.
1210ac_init_help=
1211ac_init_version=false
1212ac_unrecognized_opts=
1213ac_unrecognized_sep=
1214# The variables have the same names as the options, with
1215# dashes changed to underlines.
1216cache_file=/dev/null
1217exec_prefix=NONE
1218no_create=
1219no_recursion=
1220prefix=NONE
1221program_prefix=NONE
1222program_suffix=NONE
1223program_transform_name=s,x,x,
1224silent=
1225site=
1226srcdir=
1227verbose=
1228x_includes=NONE
1229x_libraries=NONE
1230
1231# Installation directory options.
1232# These are left unexpanded so users can "make install exec_prefix=/foo"
1233# and all the variables that are supposed to be based on exec_prefix
1234# by default will actually change.
1235# Use braces instead of parens because sh, perl, etc. also accept them.
1236# (The list follows the same order as the GNU Coding Standards.)
1237bindir='${exec_prefix}/bin'
1238sbindir='${exec_prefix}/sbin'
1239libexecdir='${exec_prefix}/libexec'
1240datarootdir='${prefix}/share'
1241datadir='${datarootdir}'
1242sysconfdir='${prefix}/etc'
1243sharedstatedir='${prefix}/com'
1244localstatedir='${prefix}/var'
1245includedir='${prefix}/include'
1246oldincludedir='/usr/include'
1247docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1248infodir='${datarootdir}/info'
1249htmldir='${docdir}'
1250dvidir='${docdir}'
1251pdfdir='${docdir}'
1252psdir='${docdir}'
1253libdir='${exec_prefix}/lib'
1254localedir='${datarootdir}/locale'
1255mandir='${datarootdir}/man'
1256
1257ac_prev=
1258ac_dashdash=
1259for ac_option
1260do
1261 # If the previous option needs an argument, assign it.
1262 if test -n "$ac_prev"; then
1263 eval $ac_prev=\$ac_option
1264 ac_prev=
1265 continue
1266 fi
1267
1268 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001269 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1270 *=) ac_optarg= ;;
1271 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001272 esac
1273
1274 # Accept the important Cygnus configure options, so we can diagnose typos.
1275
1276 case $ac_dashdash$ac_option in
1277 --)
1278 ac_dashdash=yes ;;
1279
1280 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1281 ac_prev=bindir ;;
1282 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1283 bindir=$ac_optarg ;;
1284
1285 -build | --build | --buil | --bui | --bu)
1286 ac_prev=build_alias ;;
1287 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1288 build_alias=$ac_optarg ;;
1289
1290 -cache-file | --cache-file | --cache-fil | --cache-fi \
1291 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1292 ac_prev=cache_file ;;
1293 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1294 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1295 cache_file=$ac_optarg ;;
1296
1297 --config-cache | -C)
1298 cache_file=config.cache ;;
1299
1300 -datadir | --datadir | --datadi | --datad)
1301 ac_prev=datadir ;;
1302 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1303 datadir=$ac_optarg ;;
1304
1305 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1306 | --dataroo | --dataro | --datar)
1307 ac_prev=datarootdir ;;
1308 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1309 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1310 datarootdir=$ac_optarg ;;
1311
1312 -disable-* | --disable-*)
1313 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001316 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001317 ac_useropt_orig=$ac_useropt
1318 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1319 case $ac_user_opts in
1320 *"
1321"enable_$ac_useropt"
1322"*) ;;
1323 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1324 ac_unrecognized_sep=', ';;
1325 esac
1326 eval enable_$ac_useropt=no ;;
1327
1328 -docdir | --docdir | --docdi | --doc | --do)
1329 ac_prev=docdir ;;
1330 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1331 docdir=$ac_optarg ;;
1332
1333 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1334 ac_prev=dvidir ;;
1335 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1336 dvidir=$ac_optarg ;;
1337
1338 -enable-* | --enable-*)
1339 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1340 # Reject names that are not valid shell variable names.
1341 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001342 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001343 ac_useropt_orig=$ac_useropt
1344 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345 case $ac_user_opts in
1346 *"
1347"enable_$ac_useropt"
1348"*) ;;
1349 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1350 ac_unrecognized_sep=', ';;
1351 esac
1352 eval enable_$ac_useropt=\$ac_optarg ;;
1353
1354 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1355 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1356 | --exec | --exe | --ex)
1357 ac_prev=exec_prefix ;;
1358 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1359 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1360 | --exec=* | --exe=* | --ex=*)
1361 exec_prefix=$ac_optarg ;;
1362
1363 -gas | --gas | --ga | --g)
1364 # Obsolete; use --with-gas.
1365 with_gas=yes ;;
1366
1367 -help | --help | --hel | --he | -h)
1368 ac_init_help=long ;;
1369 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1370 ac_init_help=recursive ;;
1371 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1372 ac_init_help=short ;;
1373
1374 -host | --host | --hos | --ho)
1375 ac_prev=host_alias ;;
1376 -host=* | --host=* | --hos=* | --ho=*)
1377 host_alias=$ac_optarg ;;
1378
1379 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1380 ac_prev=htmldir ;;
1381 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1382 | --ht=*)
1383 htmldir=$ac_optarg ;;
1384
1385 -includedir | --includedir | --includedi | --included | --include \
1386 | --includ | --inclu | --incl | --inc)
1387 ac_prev=includedir ;;
1388 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1389 | --includ=* | --inclu=* | --incl=* | --inc=*)
1390 includedir=$ac_optarg ;;
1391
1392 -infodir | --infodir | --infodi | --infod | --info | --inf)
1393 ac_prev=infodir ;;
1394 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1395 infodir=$ac_optarg ;;
1396
1397 -libdir | --libdir | --libdi | --libd)
1398 ac_prev=libdir ;;
1399 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1400 libdir=$ac_optarg ;;
1401
1402 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1403 | --libexe | --libex | --libe)
1404 ac_prev=libexecdir ;;
1405 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1406 | --libexe=* | --libex=* | --libe=*)
1407 libexecdir=$ac_optarg ;;
1408
1409 -localedir | --localedir | --localedi | --localed | --locale)
1410 ac_prev=localedir ;;
1411 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1412 localedir=$ac_optarg ;;
1413
1414 -localstatedir | --localstatedir | --localstatedi | --localstated \
1415 | --localstate | --localstat | --localsta | --localst | --locals)
1416 ac_prev=localstatedir ;;
1417 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1418 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1419 localstatedir=$ac_optarg ;;
1420
1421 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1422 ac_prev=mandir ;;
1423 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1424 mandir=$ac_optarg ;;
1425
1426 -nfp | --nfp | --nf)
1427 # Obsolete; use --without-fp.
1428 with_fp=no ;;
1429
1430 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1431 | --no-cr | --no-c | -n)
1432 no_create=yes ;;
1433
1434 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1435 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1436 no_recursion=yes ;;
1437
1438 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1439 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1440 | --oldin | --oldi | --old | --ol | --o)
1441 ac_prev=oldincludedir ;;
1442 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1443 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1444 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1445 oldincludedir=$ac_optarg ;;
1446
1447 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1448 ac_prev=prefix ;;
1449 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1450 prefix=$ac_optarg ;;
1451
1452 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1453 | --program-pre | --program-pr | --program-p)
1454 ac_prev=program_prefix ;;
1455 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1456 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1457 program_prefix=$ac_optarg ;;
1458
1459 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1460 | --program-suf | --program-su | --program-s)
1461 ac_prev=program_suffix ;;
1462 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1463 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1464 program_suffix=$ac_optarg ;;
1465
1466 -program-transform-name | --program-transform-name \
1467 | --program-transform-nam | --program-transform-na \
1468 | --program-transform-n | --program-transform- \
1469 | --program-transform | --program-transfor \
1470 | --program-transfo | --program-transf \
1471 | --program-trans | --program-tran \
1472 | --progr-tra | --program-tr | --program-t)
1473 ac_prev=program_transform_name ;;
1474 -program-transform-name=* | --program-transform-name=* \
1475 | --program-transform-nam=* | --program-transform-na=* \
1476 | --program-transform-n=* | --program-transform-=* \
1477 | --program-transform=* | --program-transfor=* \
1478 | --program-transfo=* | --program-transf=* \
1479 | --program-trans=* | --program-tran=* \
1480 | --progr-tra=* | --program-tr=* | --program-t=*)
1481 program_transform_name=$ac_optarg ;;
1482
1483 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1484 ac_prev=pdfdir ;;
1485 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1486 pdfdir=$ac_optarg ;;
1487
1488 -psdir | --psdir | --psdi | --psd | --ps)
1489 ac_prev=psdir ;;
1490 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1491 psdir=$ac_optarg ;;
1492
1493 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1494 | -silent | --silent | --silen | --sile | --sil)
1495 silent=yes ;;
1496
1497 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1498 ac_prev=sbindir ;;
1499 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1500 | --sbi=* | --sb=*)
1501 sbindir=$ac_optarg ;;
1502
1503 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1504 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1505 | --sharedst | --shareds | --shared | --share | --shar \
1506 | --sha | --sh)
1507 ac_prev=sharedstatedir ;;
1508 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1509 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1510 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1511 | --sha=* | --sh=*)
1512 sharedstatedir=$ac_optarg ;;
1513
1514 -site | --site | --sit)
1515 ac_prev=site ;;
1516 -site=* | --site=* | --sit=*)
1517 site=$ac_optarg ;;
1518
1519 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1520 ac_prev=srcdir ;;
1521 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1522 srcdir=$ac_optarg ;;
1523
1524 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1525 | --syscon | --sysco | --sysc | --sys | --sy)
1526 ac_prev=sysconfdir ;;
1527 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1528 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1529 sysconfdir=$ac_optarg ;;
1530
1531 -target | --target | --targe | --targ | --tar | --ta | --t)
1532 ac_prev=target_alias ;;
1533 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1534 target_alias=$ac_optarg ;;
1535
1536 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1537 verbose=yes ;;
1538
1539 -version | --version | --versio | --versi | --vers | -V)
1540 ac_init_version=: ;;
1541
1542 -with-* | --with-*)
1543 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1544 # Reject names that are not valid shell variable names.
1545 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001546 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001547 ac_useropt_orig=$ac_useropt
1548 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1549 case $ac_user_opts in
1550 *"
1551"with_$ac_useropt"
1552"*) ;;
1553 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1554 ac_unrecognized_sep=', ';;
1555 esac
1556 eval with_$ac_useropt=\$ac_optarg ;;
1557
1558 -without-* | --without-*)
1559 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1560 # Reject names that are not valid shell variable names.
1561 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001562 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001563 ac_useropt_orig=$ac_useropt
1564 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1565 case $ac_user_opts in
1566 *"
1567"with_$ac_useropt"
1568"*) ;;
1569 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1570 ac_unrecognized_sep=', ';;
1571 esac
1572 eval with_$ac_useropt=no ;;
1573
1574 --x)
1575 # Obsolete; use --with-x.
1576 with_x=yes ;;
1577
1578 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1579 | --x-incl | --x-inc | --x-in | --x-i)
1580 ac_prev=x_includes ;;
1581 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1582 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1583 x_includes=$ac_optarg ;;
1584
1585 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1586 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1587 ac_prev=x_libraries ;;
1588 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1589 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1590 x_libraries=$ac_optarg ;;
1591
cristy98dddb52010-11-04 00:30:15 +00001592 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1593Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001594 ;;
1595
1596 *=*)
1597 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1598 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001599 case $ac_envvar in #(
1600 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001601 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001602 esac
cristy3ed852e2009-09-05 21:47:34 +00001603 eval $ac_envvar=\$ac_optarg
1604 export $ac_envvar ;;
1605
1606 *)
1607 # FIXME: should be removed in autoconf 3.0.
1608 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1609 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1610 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001611 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001612 ;;
1613
1614 esac
1615done
1616
1617if test -n "$ac_prev"; then
1618 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001619 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001620fi
1621
1622if test -n "$ac_unrecognized_opts"; then
1623 case $enable_option_checking in
1624 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001625 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001626 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1627 esac
1628fi
1629
1630# Check all directory arguments for consistency.
1631for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1632 datadir sysconfdir sharedstatedir localstatedir includedir \
1633 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1634 libdir localedir mandir
1635do
1636 eval ac_val=\$$ac_var
1637 # Remove trailing slashes.
1638 case $ac_val in
1639 */ )
1640 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1641 eval $ac_var=\$ac_val;;
1642 esac
1643 # Be sure to have absolute directory names.
1644 case $ac_val in
1645 [\\/$]* | ?:[\\/]* ) continue;;
1646 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1647 esac
cristy98dddb52010-11-04 00:30:15 +00001648 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001649done
1650
1651# There might be people who depend on the old broken behavior: `$host'
1652# used to hold the argument of --host etc.
1653# FIXME: To remove some day.
1654build=$build_alias
1655host=$host_alias
1656target=$target_alias
1657
1658# FIXME: To remove some day.
1659if test "x$host_alias" != x; then
1660 if test "x$build_alias" = x; then
1661 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001662 elif test "x$build_alias" != "x$host_alias"; then
1663 cross_compiling=yes
1664 fi
1665fi
1666
1667ac_tool_prefix=
1668test -n "$host_alias" && ac_tool_prefix=$host_alias-
1669
1670test "$silent" = yes && exec 6>/dev/null
1671
1672
1673ac_pwd=`pwd` && test -n "$ac_pwd" &&
1674ac_ls_di=`ls -di .` &&
1675ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001676 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001677test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001678 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001679
1680
1681# Find the source files, if location was not specified.
1682if test -z "$srcdir"; then
1683 ac_srcdir_defaulted=yes
1684 # Try the directory containing this script, then the parent directory.
1685 ac_confdir=`$as_dirname -- "$as_myself" ||
1686$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1687 X"$as_myself" : 'X\(//\)[^/]' \| \
1688 X"$as_myself" : 'X\(//\)$' \| \
1689 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1690$as_echo X"$as_myself" |
1691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1692 s//\1/
1693 q
1694 }
1695 /^X\(\/\/\)[^/].*/{
1696 s//\1/
1697 q
1698 }
1699 /^X\(\/\/\)$/{
1700 s//\1/
1701 q
1702 }
1703 /^X\(\/\).*/{
1704 s//\1/
1705 q
1706 }
1707 s/.*/./; q'`
1708 srcdir=$ac_confdir
1709 if test ! -r "$srcdir/$ac_unique_file"; then
1710 srcdir=..
1711 fi
1712else
1713 ac_srcdir_defaulted=no
1714fi
1715if test ! -r "$srcdir/$ac_unique_file"; then
1716 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001717 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001718fi
1719ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1720ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001721 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001722 pwd)`
1723# When building in place, set srcdir=.
1724if test "$ac_abs_confdir" = "$ac_pwd"; then
1725 srcdir=.
1726fi
1727# Remove unnecessary trailing slashes from srcdir.
1728# Double slashes in file names in object file debugging info
1729# mess up M-x gdb in Emacs.
1730case $srcdir in
1731*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1732esac
1733for ac_var in $ac_precious_vars; do
1734 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1735 eval ac_env_${ac_var}_value=\$${ac_var}
1736 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1737 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1738done
1739
1740#
1741# Report the --help message.
1742#
1743if test "$ac_init_help" = "long"; then
1744 # Omit some internal or obsolete options to make the list less imposing.
1745 # This message is too long to be a string in the A/UX 3.1 sh.
1746 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001747\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001748
1749Usage: $0 [OPTION]... [VAR=VALUE]...
1750
1751To assign environment variables (e.g., CC, CFLAGS...), specify them as
1752VAR=VALUE. See below for descriptions of some of the useful variables.
1753
1754Defaults for the options are specified in brackets.
1755
1756Configuration:
1757 -h, --help display this help and exit
1758 --help=short display options specific to this package
1759 --help=recursive display the short help of all the included packages
1760 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001761 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001762 --cache-file=FILE cache test results in FILE [disabled]
1763 -C, --config-cache alias for \`--cache-file=config.cache'
1764 -n, --no-create do not create output files
1765 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1766
1767Installation directories:
1768 --prefix=PREFIX install architecture-independent files in PREFIX
1769 [$ac_default_prefix]
1770 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1771 [PREFIX]
1772
1773By default, \`make install' will install all the files in
1774\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1775an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1776for instance \`--prefix=\$HOME'.
1777
1778For better control, use the options below.
1779
1780Fine tuning of the installation directories:
1781 --bindir=DIR user executables [EPREFIX/bin]
1782 --sbindir=DIR system admin executables [EPREFIX/sbin]
1783 --libexecdir=DIR program executables [EPREFIX/libexec]
1784 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1785 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1786 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1787 --libdir=DIR object code libraries [EPREFIX/lib]
1788 --includedir=DIR C header files [PREFIX/include]
1789 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1790 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1791 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1792 --infodir=DIR info documentation [DATAROOTDIR/info]
1793 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1794 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001795 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001796 --htmldir=DIR html documentation [DOCDIR]
1797 --dvidir=DIR dvi documentation [DOCDIR]
1798 --pdfdir=DIR pdf documentation [DOCDIR]
1799 --psdir=DIR ps documentation [DOCDIR]
1800_ACEOF
1801
1802 cat <<\_ACEOF
1803
cristy73bd4a52010-10-05 11:24:23 +00001804Program names:
1805 --program-prefix=PREFIX prepend PREFIX to installed program names
1806 --program-suffix=SUFFIX append SUFFIX to installed program names
1807 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1808
cristy3ed852e2009-09-05 21:47:34 +00001809X features:
1810 --x-includes=DIR X include files are in DIR
1811 --x-libraries=DIR X library files are in DIR
1812
1813System types:
1814 --build=BUILD configure for building on BUILD [guessed]
1815 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1816 --target=TARGET configure for building compilers for TARGET [HOST]
1817_ACEOF
1818fi
1819
1820if test -n "$ac_init_help"; then
1821 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001822 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001823 esac
1824 cat <<\_ACEOF
1825
1826Optional Features:
1827 --disable-option-checking ignore unrecognized --enable/--with options
1828 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1829 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001830 --enable-silent-rules less verbose build output (undo: "make V=1")
1831 --disable-silent-rules verbose build output (undo: "make V=0")
1832 --enable-dependency-tracking
1833 do not reject slow dependency extractors
1834 --disable-dependency-tracking
1835 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001836 --enable-ld-version-script
1837 enable linker version script (default is enabled
1838 when possible)
cristya3824692012-03-30 17:22:07 +00001839 --enable-bounds-checking
1840 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001841 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001842 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001843 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001844 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001845 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001846 --enable-shared[=PKGS] build shared libraries [default=yes]
1847 --enable-static[=PKGS] build static libraries [default=yes]
1848 --enable-fast-install[=PKGS]
1849 optimize for fast installation [default=yes]
1850 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001851 --enable-delegate-build look for delegate libraries in build directory
1852 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001853 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001854 --disable-installed Formally install ImageMagick under PREFIX
1855 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001856 --enable-zero-configuration
1857 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001858 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001859 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001860 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001861 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001862 --enable-maintainer-mode
1863 enable make rules and dependencies not useful (and
1864 sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001865 --enable-ccmalloc enable 'ccmalloc' memory debug support
1866 --enable-efence enable 'efence' memory debug support
1867 --enable-prof enable 'prof' profiling support
1868 --enable-gprof enable 'gprof' profiling support
1869 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001870 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001871 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001872
1873Optional Packages:
1874 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1875 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001876 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001877 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001878 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1879 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001880 --includearch-dir=DIR ARCH specific include directory
1881 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001882 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001883 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001884 both]
cristyda16f162011-02-19 23:52:17 +00001885 --with-sysroot=DIR Search for dependent libraries within DIR
1886 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001887 --with-modules enable building dynamically loadable modules
1888 --with-method-prefix=PREFIX
1889 prefix MagickCore API methods
1890 --with-quantum-depth=DEPTH
1891 number of bits in a pixel quantum (default 16)
1892 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1893 memory)
1894 --with-frozenpaths freeze delegate paths
1895 --without-magick-plus-plus
1896 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001897 --with-package-release-name=NAME
1898 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001899 --with-perl enable build/install of PerlMagick
1900 --with-perl-options=OPTIONS
1901 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001902 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001903 --with-umem enable umem memory allocation library support
1904 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1905 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001906 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001907 --without-zlib disable ZLIB support
1908 --with-autotrace enable autotrace support
1909 --without-dps disable Display Postscript support
1910 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001911 --with-dejavu-font-dir=DIR
1912 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001913 --without-fftw disable FFTW support
1914 --without-fpx disable FlashPIX support
1915 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001916 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001917 --without-gslib enable Ghostscript library support
1918 --with-fontpath=DIR prepend to default font search path
1919 --with-gs-font-dir=DIR Ghostscript font directory
cristy1b70dc82012-07-01 23:15:05 +00001920 --with-gvc disable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001921 --without-jbig disable JBIG support
1922 --without-jpeg disable JPEG support
1923 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001924 --without-lcms disable lcms (v1.1X) support
1925 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001926 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001927 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001928 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001929 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001930 --without-png disable PNG support
cristy1164d5f2012-08-15 00:58:25 +00001931 --without-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001932 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001933 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001934 --with-windows-font-dir=DIR
1935 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001936 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001937 --without-xml disable XML support
1938
1939Some influential environment variables:
1940 CC C compiler command
1941 CFLAGS C compiler flags
1942 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1943 nonstandard directory <lib dir>
1944 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001945 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001946 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001947 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001948 CXX C++ compiler command
1949 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001950 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001951 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001952 XMKMF Path to xmkmf, Makefile generator for X Window System
1953 AUTOTRACE_CFLAGS
1954 C compiler flags for AUTOTRACE, overriding pkg-config
1955 AUTOTRACE_LIBS
1956 linker flags for AUTOTRACE, overriding pkg-config
1957 FONTCONFIG_CFLAGS
1958 C compiler flags for FONTCONFIG, overriding pkg-config
1959 FONTCONFIG_LIBS
1960 linker flags for FONTCONFIG, overriding pkg-config
1961 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1962 GVC_LIBS linker flags for GVC, overriding pkg-config
1963 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1964 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001965 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1966 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001967 OPENEXR_CFLAGS
1968 C compiler flags for OPENEXR, overriding pkg-config
1969 OPENEXR_LIBS
1970 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001971 PANGO_CFLAGS
1972 C compiler flags for PANGO, overriding pkg-config
1973 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001974 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1975 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1976 CAIRO_SVG_CFLAGS
1977 C compiler flags for CAIRO_SVG, overriding pkg-config
1978 CAIRO_SVG_LIBS
1979 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001980
1981Use these variables to override the choices made by `configure' or to help
1982it to find libraries and programs with nonstandard names/locations.
1983
1984Report bugs to <http://www.imagemagick.org>.
1985_ACEOF
1986ac_status=$?
1987fi
1988
1989if test "$ac_init_help" = "recursive"; then
1990 # If there are subdirs, report their specific --help.
1991 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1992 test -d "$ac_dir" ||
1993 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1994 continue
1995 ac_builddir=.
1996
1997case "$ac_dir" in
1998.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1999*)
2000 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2001 # A ".." for each directory in $ac_dir_suffix.
2002 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2003 case $ac_top_builddir_sub in
2004 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2005 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2006 esac ;;
2007esac
2008ac_abs_top_builddir=$ac_pwd
2009ac_abs_builddir=$ac_pwd$ac_dir_suffix
2010# for backward compatibility:
2011ac_top_builddir=$ac_top_build_prefix
2012
2013case $srcdir in
2014 .) # We are building in place.
2015 ac_srcdir=.
2016 ac_top_srcdir=$ac_top_builddir_sub
2017 ac_abs_top_srcdir=$ac_pwd ;;
2018 [\\/]* | ?:[\\/]* ) # Absolute name.
2019 ac_srcdir=$srcdir$ac_dir_suffix;
2020 ac_top_srcdir=$srcdir
2021 ac_abs_top_srcdir=$srcdir ;;
2022 *) # Relative name.
2023 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2024 ac_top_srcdir=$ac_top_build_prefix$srcdir
2025 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2026esac
2027ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2028
2029 cd "$ac_dir" || { ac_status=$?; continue; }
2030 # Check for guested configure.
2031 if test -f "$ac_srcdir/configure.gnu"; then
2032 echo &&
2033 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2034 elif test -f "$ac_srcdir/configure"; then
2035 echo &&
2036 $SHELL "$ac_srcdir/configure" --help=recursive
2037 else
2038 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2039 fi || ac_status=$?
2040 cd "$ac_pwd" || { ac_status=$?; break; }
2041 done
2042fi
2043
2044test -n "$ac_init_help" && exit $ac_status
2045if $ac_init_version; then
2046 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002047ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002048generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002049
cristy14fefe52012-05-21 00:59:18 +00002050Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002051This configure script is free software; the Free Software Foundation
2052gives unlimited permission to copy, distribute and modify it.
2053_ACEOF
2054 exit
2055fi
cristy8b350f62009-11-15 23:12:43 +00002056
2057## ------------------------ ##
2058## Autoconf initialization. ##
2059## ------------------------ ##
2060
2061# ac_fn_c_try_compile LINENO
2062# --------------------------
2063# Try to compile conftest.$ac_ext, and return whether this succeeded.
2064ac_fn_c_try_compile ()
2065{
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 rm -f conftest.$ac_objext
2068 if { { ac_try="$ac_compile"
2069case "(($ac_try" in
2070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2071 *) ac_try_echo=$ac_try;;
2072esac
2073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2074$as_echo "$ac_try_echo"; } >&5
2075 (eval "$ac_compile") 2>conftest.err
2076 ac_status=$?
2077 if test -s conftest.err; then
2078 grep -v '^ *+' conftest.err >conftest.er1
2079 cat conftest.er1 >&5
2080 mv -f conftest.er1 conftest.err
2081 fi
2082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2083 test $ac_status = 0; } && {
2084 test -z "$ac_c_werror_flag" ||
2085 test ! -s conftest.err
2086 } && test -s conftest.$ac_objext; then :
2087 ac_retval=0
2088else
2089 $as_echo "$as_me: failed program was:" >&5
2090sed 's/^/| /' conftest.$ac_ext >&5
2091
2092 ac_retval=1
2093fi
cristyda16f162011-02-19 23:52:17 +00002094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002095 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002096
2097} # ac_fn_c_try_compile
2098
cristy95646052009-11-28 23:05:30 +00002099# ac_fn_c_try_cpp LINENO
2100# ----------------------
2101# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2102ac_fn_c_try_cpp ()
2103{
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 if { { ac_try="$ac_cpp conftest.$ac_ext"
2106case "(($ac_try" in
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2109esac
2110eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2111$as_echo "$ac_try_echo"; } >&5
2112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2113 ac_status=$?
2114 if test -s conftest.err; then
2115 grep -v '^ *+' conftest.err >conftest.er1
2116 cat conftest.er1 >&5
2117 mv -f conftest.er1 conftest.err
2118 fi
2119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002120 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2122 test ! -s conftest.err
2123 }; then :
2124 ac_retval=0
2125else
2126 $as_echo "$as_me: failed program was:" >&5
2127sed 's/^/| /' conftest.$ac_ext >&5
2128
2129 ac_retval=1
2130fi
cristyda16f162011-02-19 23:52:17 +00002131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002132 as_fn_set_status $ac_retval
2133
2134} # ac_fn_c_try_cpp
2135
cristy8b350f62009-11-15 23:12:43 +00002136# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2137# -------------------------------------------------------
2138# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2139# the include files in INCLUDES and setting the cache variable VAR
2140# accordingly.
2141ac_fn_c_check_header_mongrel ()
2142{
2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002144 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002147if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002148 $as_echo_n "(cached) " >&6
2149fi
2150eval ac_res=\$$3
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152$as_echo "$ac_res" >&6; }
2153else
2154 # Is the header compilable?
2155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2156$as_echo_n "checking $2 usability... " >&6; }
2157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158/* end confdefs.h. */
2159$4
2160#include <$2>
2161_ACEOF
2162if ac_fn_c_try_compile "$LINENO"; then :
2163 ac_header_compiler=yes
2164else
2165 ac_header_compiler=no
2166fi
2167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2169$as_echo "$ac_header_compiler" >&6; }
2170
2171# Is the header present?
2172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2173$as_echo_n "checking $2 presence... " >&6; }
2174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175/* end confdefs.h. */
2176#include <$2>
2177_ACEOF
2178if ac_fn_c_try_cpp "$LINENO"; then :
2179 ac_header_preproc=yes
2180else
2181 ac_header_preproc=no
2182fi
cristyda16f162011-02-19 23:52:17 +00002183rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2185$as_echo "$ac_header_preproc" >&6; }
2186
2187# So? What about this header?
2188case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2189 yes:no: )
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2191$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2193$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2194 ;;
2195 no:yes:* )
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2197$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2199$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2201$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2203$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2205$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002206( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002207## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002208## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002209 ) | sed "s/^/$as_me: WARNING: /" >&2
2210 ;;
2211esac
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2213$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002214if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002215 $as_echo_n "(cached) " >&6
2216else
2217 eval "$3=\$ac_header_compiler"
2218fi
2219eval ac_res=\$$3
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221$as_echo "$ac_res" >&6; }
2222fi
cristyda16f162011-02-19 23:52:17 +00002223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002224
2225} # ac_fn_c_check_header_mongrel
2226
2227# ac_fn_c_try_run LINENO
2228# ----------------------
2229# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2230# that executables *can* be run.
2231ac_fn_c_try_run ()
2232{
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 if { { ac_try="$ac_link"
2235case "(($ac_try" in
2236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237 *) ac_try_echo=$ac_try;;
2238esac
2239eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2240$as_echo "$ac_try_echo"; } >&5
2241 (eval "$ac_link") 2>&5
2242 ac_status=$?
2243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2244 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2245 { { case "(($ac_try" in
2246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2247 *) ac_try_echo=$ac_try;;
2248esac
2249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2250$as_echo "$ac_try_echo"; } >&5
2251 (eval "$ac_try") 2>&5
2252 ac_status=$?
2253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2254 test $ac_status = 0; }; }; then :
2255 ac_retval=0
2256else
2257 $as_echo "$as_me: program exited with status $ac_status" >&5
2258 $as_echo "$as_me: failed program was:" >&5
2259sed 's/^/| /' conftest.$ac_ext >&5
2260
2261 ac_retval=$ac_status
2262fi
2263 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002264 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002265 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002266
2267} # ac_fn_c_try_run
2268
2269# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2270# -------------------------------------------------------
2271# Tests whether HEADER exists and can be compiled using the include files in
2272# INCLUDES, setting the cache variable VAR accordingly.
2273ac_fn_c_check_header_compile ()
2274{
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2277$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002278if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002279 $as_echo_n "(cached) " >&6
2280else
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282/* end confdefs.h. */
2283$4
2284#include <$2>
2285_ACEOF
2286if ac_fn_c_try_compile "$LINENO"; then :
2287 eval "$3=yes"
2288else
2289 eval "$3=no"
2290fi
2291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292fi
2293eval ac_res=\$$3
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002297
2298} # ac_fn_c_check_header_compile
2299
cristya0b81c32010-01-22 02:54:33 +00002300# ac_fn_cxx_try_compile LINENO
2301# ----------------------------
2302# Try to compile conftest.$ac_ext, and return whether this succeeded.
2303ac_fn_cxx_try_compile ()
2304{
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 rm -f conftest.$ac_objext
2307 if { { ac_try="$ac_compile"
2308case "(($ac_try" in
2309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2311esac
2312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313$as_echo "$ac_try_echo"; } >&5
2314 (eval "$ac_compile") 2>conftest.err
2315 ac_status=$?
2316 if test -s conftest.err; then
2317 grep -v '^ *+' conftest.err >conftest.er1
2318 cat conftest.er1 >&5
2319 mv -f conftest.er1 conftest.err
2320 fi
2321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2322 test $ac_status = 0; } && {
2323 test -z "$ac_cxx_werror_flag" ||
2324 test ! -s conftest.err
2325 } && test -s conftest.$ac_objext; then :
2326 ac_retval=0
2327else
2328 $as_echo "$as_me: failed program was:" >&5
2329sed 's/^/| /' conftest.$ac_ext >&5
2330
2331 ac_retval=1
2332fi
cristyda16f162011-02-19 23:52:17 +00002333 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002334 as_fn_set_status $ac_retval
2335
2336} # ac_fn_cxx_try_compile
2337
cristy8b350f62009-11-15 23:12:43 +00002338# ac_fn_c_try_link LINENO
2339# -----------------------
2340# Try to link conftest.$ac_ext, and return whether this succeeded.
2341ac_fn_c_try_link ()
2342{
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 rm -f conftest.$ac_objext conftest$ac_exeext
2345 if { { ac_try="$ac_link"
2346case "(($ac_try" in
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2349esac
2350eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2351$as_echo "$ac_try_echo"; } >&5
2352 (eval "$ac_link") 2>conftest.err
2353 ac_status=$?
2354 if test -s conftest.err; then
2355 grep -v '^ *+' conftest.err >conftest.er1
2356 cat conftest.er1 >&5
2357 mv -f conftest.er1 conftest.err
2358 fi
2359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2360 test $ac_status = 0; } && {
2361 test -z "$ac_c_werror_flag" ||
2362 test ! -s conftest.err
2363 } && test -s conftest$ac_exeext && {
2364 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002365 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002366 }; then :
2367 ac_retval=0
2368else
2369 $as_echo "$as_me: failed program was:" >&5
2370sed 's/^/| /' conftest.$ac_ext >&5
2371
2372 ac_retval=1
2373fi
2374 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2375 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2376 # interfere with the next link command; also delete a directory that is
2377 # left behind by Apple's compiler. We do this before executing the actions.
2378 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002379 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002380 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002381
2382} # ac_fn_c_try_link
2383
cristy73bd4a52010-10-05 11:24:23 +00002384# ac_fn_c_check_func LINENO FUNC VAR
2385# ----------------------------------
2386# Tests whether FUNC exists, setting the cache variable VAR accordingly
2387ac_fn_c_check_func ()
2388{
2389 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2391$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002392if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002393 $as_echo_n "(cached) " >&6
2394else
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396/* end confdefs.h. */
2397/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2399#define $2 innocuous_$2
2400
2401/* System header to define __stub macros and hopefully few prototypes,
2402 which can conflict with char $2 (); below.
2403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2404 <limits.h> exists even on freestanding compilers. */
2405
2406#ifdef __STDC__
2407# include <limits.h>
2408#else
2409# include <assert.h>
2410#endif
2411
2412#undef $2
2413
2414/* Override any GCC internal prototype to avoid an error.
2415 Use char because int might match the return type of a GCC
2416 builtin and then its argument prototype would still apply. */
2417#ifdef __cplusplus
2418extern "C"
2419#endif
2420char $2 ();
2421/* The GNU C library defines this for functions which it implements
2422 to always fail with ENOSYS. Some functions are actually named
2423 something starting with __ and the normal name is an alias. */
2424#if defined __stub_$2 || defined __stub___$2
2425choke me
2426#endif
2427
2428int
2429main ()
2430{
2431return $2 ();
2432 ;
2433 return 0;
2434}
2435_ACEOF
2436if ac_fn_c_try_link "$LINENO"; then :
2437 eval "$3=yes"
2438else
2439 eval "$3=no"
2440fi
2441rm -f core conftest.err conftest.$ac_objext \
2442 conftest$ac_exeext conftest.$ac_ext
2443fi
2444eval ac_res=\$$3
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2446$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002447 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002448
2449} # ac_fn_c_check_func
2450
2451# ac_fn_cxx_try_cpp LINENO
2452# ------------------------
2453# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2454ac_fn_cxx_try_cpp ()
2455{
2456 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2457 if { { ac_try="$ac_cpp conftest.$ac_ext"
2458case "(($ac_try" in
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2461esac
2462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2463$as_echo "$ac_try_echo"; } >&5
2464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2465 ac_status=$?
2466 if test -s conftest.err; then
2467 grep -v '^ *+' conftest.err >conftest.er1
2468 cat conftest.er1 >&5
2469 mv -f conftest.er1 conftest.err
2470 fi
2471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002472 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002473 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2474 test ! -s conftest.err
2475 }; then :
2476 ac_retval=0
2477else
2478 $as_echo "$as_me: failed program was:" >&5
2479sed 's/^/| /' conftest.$ac_ext >&5
2480
2481 ac_retval=1
2482fi
cristyda16f162011-02-19 23:52:17 +00002483 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002484 as_fn_set_status $ac_retval
2485
2486} # ac_fn_cxx_try_cpp
2487
2488# ac_fn_cxx_try_link LINENO
2489# -------------------------
2490# Try to link conftest.$ac_ext, and return whether this succeeded.
2491ac_fn_cxx_try_link ()
2492{
2493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2494 rm -f conftest.$ac_objext conftest$ac_exeext
2495 if { { ac_try="$ac_link"
2496case "(($ac_try" in
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2499esac
2500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2501$as_echo "$ac_try_echo"; } >&5
2502 (eval "$ac_link") 2>conftest.err
2503 ac_status=$?
2504 if test -s conftest.err; then
2505 grep -v '^ *+' conftest.err >conftest.er1
2506 cat conftest.er1 >&5
2507 mv -f conftest.er1 conftest.err
2508 fi
2509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2510 test $ac_status = 0; } && {
2511 test -z "$ac_cxx_werror_flag" ||
2512 test ! -s conftest.err
2513 } && test -s conftest$ac_exeext && {
2514 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002515 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002516 }; then :
2517 ac_retval=0
2518else
2519 $as_echo "$as_me: failed program was:" >&5
2520sed 's/^/| /' conftest.$ac_ext >&5
2521
2522 ac_retval=1
2523fi
2524 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2525 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2526 # interfere with the next link command; also delete a directory that is
2527 # left behind by Apple's compiler. We do this before executing the actions.
2528 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002530 as_fn_set_status $ac_retval
2531
2532} # ac_fn_cxx_try_link
2533
cristy8b350f62009-11-15 23:12:43 +00002534# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2535# -------------------------------------------
2536# Tests whether TYPE exists after having included INCLUDES, setting cache
2537# variable VAR accordingly.
2538ac_fn_c_check_type ()
2539{
2540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2542$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002543if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002544 $as_echo_n "(cached) " >&6
2545else
2546 eval "$3=no"
2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548/* end confdefs.h. */
2549$4
2550int
2551main ()
2552{
2553if (sizeof ($2))
2554 return 0;
2555 ;
2556 return 0;
2557}
2558_ACEOF
2559if ac_fn_c_try_compile "$LINENO"; then :
2560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2561/* end confdefs.h. */
2562$4
2563int
2564main ()
2565{
2566if (sizeof (($2)))
2567 return 0;
2568 ;
2569 return 0;
2570}
2571_ACEOF
2572if ac_fn_c_try_compile "$LINENO"; then :
2573
2574else
2575 eval "$3=yes"
2576fi
2577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578fi
2579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580fi
2581eval ac_res=\$$3
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2583$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002585
2586} # ac_fn_c_check_type
2587
cristy92703d82010-04-26 00:18:18 +00002588# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2589# ----------------------------------------------------
2590# Tries to find if the field MEMBER exists in type AGGR, after including
2591# INCLUDES, setting cache variable VAR accordingly.
2592ac_fn_c_check_member ()
2593{
2594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2596$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002597if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002598 $as_echo_n "(cached) " >&6
2599else
2600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2601/* end confdefs.h. */
2602$5
2603int
2604main ()
2605{
2606static $2 ac_aggr;
2607if (ac_aggr.$3)
2608return 0;
2609 ;
2610 return 0;
2611}
2612_ACEOF
2613if ac_fn_c_try_compile "$LINENO"; then :
2614 eval "$4=yes"
2615else
2616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617/* end confdefs.h. */
2618$5
2619int
2620main ()
2621{
2622static $2 ac_aggr;
2623if (sizeof ac_aggr.$3)
2624return 0;
2625 ;
2626 return 0;
2627}
2628_ACEOF
2629if ac_fn_c_try_compile "$LINENO"; then :
2630 eval "$4=yes"
2631else
2632 eval "$4=no"
2633fi
2634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2635fi
2636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637fi
2638eval ac_res=\$$4
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2640$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002642
2643} # ac_fn_c_check_member
2644
cristy5eef09f2012-10-16 12:08:28 +00002645# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2646# ---------------------------------------------
2647# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2648# accordingly.
2649ac_fn_c_check_decl ()
2650{
2651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2652 as_decl_name=`echo $2|sed 's/ *(.*//'`
2653 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2655$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2656if eval \${$3+:} false; then :
2657 $as_echo_n "(cached) " >&6
2658else
2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2660/* end confdefs.h. */
2661$4
2662int
2663main ()
2664{
2665#ifndef $as_decl_name
2666#ifdef __cplusplus
2667 (void) $as_decl_use;
2668#else
2669 (void) $as_decl_name;
2670#endif
2671#endif
2672
2673 ;
2674 return 0;
2675}
2676_ACEOF
2677if ac_fn_c_try_compile "$LINENO"; then :
2678 eval "$3=yes"
2679else
2680 eval "$3=no"
2681fi
2682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683fi
2684eval ac_res=\$$3
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2686$as_echo "$ac_res" >&6; }
2687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2688
2689} # ac_fn_c_check_decl
2690
cristy501c8042011-05-26 17:46:28 +00002691# ac_fn_c_find_intX_t LINENO BITS VAR
2692# -----------------------------------
2693# Finds a signed integer type with width BITS, setting cache variable VAR
2694# accordingly.
2695ac_fn_c_find_intX_t ()
2696{
2697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2699$as_echo_n "checking for int$2_t... " >&6; }
2700if eval \${$3+:} false; then :
2701 $as_echo_n "(cached) " >&6
2702else
2703 eval "$3=no"
2704 # Order is important - never check a type that is potentially smaller
2705 # than half of the expected target width.
2706 for ac_type in int$2_t 'int' 'long int' \
2707 'long long int' 'short int' 'signed char'; do
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709/* end confdefs.h. */
2710$ac_includes_default
2711 enum { N = $2 / 2 - 1 };
2712int
2713main ()
2714{
2715static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002716test_array [0] = 0;
2717return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002718
2719 ;
2720 return 0;
2721}
2722_ACEOF
2723if ac_fn_c_try_compile "$LINENO"; then :
2724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2725/* end confdefs.h. */
2726$ac_includes_default
2727 enum { N = $2 / 2 - 1 };
2728int
2729main ()
2730{
2731static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2732 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002733test_array [0] = 0;
2734return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002735
2736 ;
2737 return 0;
2738}
2739_ACEOF
2740if ac_fn_c_try_compile "$LINENO"; then :
2741
2742else
2743 case $ac_type in #(
2744 int$2_t) :
2745 eval "$3=yes" ;; #(
2746 *) :
2747 eval "$3=\$ac_type" ;;
2748esac
2749fi
2750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2751fi
2752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2753 if eval test \"x\$"$3"\" = x"no"; then :
2754
2755else
2756 break
2757fi
2758 done
2759fi
2760eval ac_res=\$$3
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2762$as_echo "$ac_res" >&6; }
2763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2764
2765} # ac_fn_c_find_intX_t
2766
2767# ac_fn_c_find_uintX_t LINENO BITS VAR
2768# ------------------------------------
2769# Finds an unsigned integer type with width BITS, setting cache variable VAR
2770# accordingly.
2771ac_fn_c_find_uintX_t ()
2772{
2773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2775$as_echo_n "checking for uint$2_t... " >&6; }
2776if eval \${$3+:} false; then :
2777 $as_echo_n "(cached) " >&6
2778else
2779 eval "$3=no"
2780 # Order is important - never check a type that is potentially smaller
2781 # than half of the expected target width.
2782 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2783 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2785/* end confdefs.h. */
2786$ac_includes_default
2787int
2788main ()
2789{
2790static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002791test_array [0] = 0;
2792return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002793
2794 ;
2795 return 0;
2796}
2797_ACEOF
2798if ac_fn_c_try_compile "$LINENO"; then :
2799 case $ac_type in #(
2800 uint$2_t) :
2801 eval "$3=yes" ;; #(
2802 *) :
2803 eval "$3=\$ac_type" ;;
2804esac
2805fi
2806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 if eval test \"x\$"$3"\" = x"no"; then :
2808
2809else
2810 break
2811fi
2812 done
2813fi
2814eval ac_res=\$$3
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2816$as_echo "$ac_res" >&6; }
2817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2818
2819} # ac_fn_c_find_uintX_t
2820
cristy8b350f62009-11-15 23:12:43 +00002821# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2822# --------------------------------------------
2823# Tries to find the compile-time value of EXPR in a program that includes
2824# INCLUDES, setting VAR accordingly. Returns whether the value could be
2825# computed
2826ac_fn_c_compute_int ()
2827{
2828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2829 if test "$cross_compiling" = yes; then
2830 # Depending upon the size, compute the lo and hi bounds.
2831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832/* end confdefs.h. */
2833$4
2834int
2835main ()
2836{
2837static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002838test_array [0] = 0;
2839return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002840
2841 ;
2842 return 0;
2843}
2844_ACEOF
2845if ac_fn_c_try_compile "$LINENO"; then :
2846 ac_lo=0 ac_mid=0
2847 while :; do
2848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2849/* end confdefs.h. */
2850$4
2851int
2852main ()
2853{
2854static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002855test_array [0] = 0;
2856return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002857
2858 ;
2859 return 0;
2860}
2861_ACEOF
2862if ac_fn_c_try_compile "$LINENO"; then :
2863 ac_hi=$ac_mid; break
2864else
2865 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2866 if test $ac_lo -le $ac_mid; then
2867 ac_lo= ac_hi=
2868 break
2869 fi
2870 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2871fi
2872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873 done
2874else
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876/* end confdefs.h. */
2877$4
2878int
2879main ()
2880{
2881static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002882test_array [0] = 0;
2883return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002884
2885 ;
2886 return 0;
2887}
2888_ACEOF
2889if ac_fn_c_try_compile "$LINENO"; then :
2890 ac_hi=-1 ac_mid=-1
2891 while :; do
2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893/* end confdefs.h. */
2894$4
2895int
2896main ()
2897{
2898static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002899test_array [0] = 0;
2900return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002901
2902 ;
2903 return 0;
2904}
2905_ACEOF
2906if ac_fn_c_try_compile "$LINENO"; then :
2907 ac_lo=$ac_mid; break
2908else
2909 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2910 if test $ac_mid -le $ac_hi; then
2911 ac_lo= ac_hi=
2912 break
2913 fi
2914 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2915fi
2916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2917 done
2918else
2919 ac_lo= ac_hi=
2920fi
2921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922fi
2923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2924# Binary search between lo and hi bounds.
2925while test "x$ac_lo" != "x$ac_hi"; do
2926 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2928/* end confdefs.h. */
2929$4
2930int
2931main ()
2932{
2933static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002934test_array [0] = 0;
2935return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002936
2937 ;
2938 return 0;
2939}
2940_ACEOF
2941if ac_fn_c_try_compile "$LINENO"; then :
2942 ac_hi=$ac_mid
2943else
2944 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2945fi
2946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2947done
2948case $ac_lo in #((
2949?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2950'') ac_retval=1 ;;
2951esac
2952 else
2953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2954/* end confdefs.h. */
2955$4
2956static long int longval () { return $2; }
2957static unsigned long int ulongval () { return $2; }
2958#include <stdio.h>
2959#include <stdlib.h>
2960int
2961main ()
2962{
2963
2964 FILE *f = fopen ("conftest.val", "w");
2965 if (! f)
2966 return 1;
2967 if (($2) < 0)
2968 {
2969 long int i = longval ();
2970 if (i != ($2))
2971 return 1;
2972 fprintf (f, "%ld", i);
2973 }
2974 else
2975 {
2976 unsigned long int i = ulongval ();
2977 if (i != ($2))
2978 return 1;
2979 fprintf (f, "%lu", i);
2980 }
2981 /* Do not output a trailing newline, as this causes \r\n confusion
2982 on some platforms. */
2983 return ferror (f) || fclose (f) != 0;
2984
2985 ;
2986 return 0;
2987}
2988_ACEOF
2989if ac_fn_c_try_run "$LINENO"; then :
2990 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2991else
2992 ac_retval=1
2993fi
2994rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2995 conftest.$ac_objext conftest.beam conftest.$ac_ext
2996rm -f conftest.val
2997
2998 fi
cristyda16f162011-02-19 23:52:17 +00002999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003000 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003001
3002} # ac_fn_c_compute_int
3003
3004# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3005# ---------------------------------------------------------
3006# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3007# the include files in INCLUDES and setting the cache variable VAR
3008# accordingly.
3009ac_fn_cxx_check_header_mongrel ()
3010{
3011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003012 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3014$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003015if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003016 $as_echo_n "(cached) " >&6
3017fi
3018eval ac_res=\$$3
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3020$as_echo "$ac_res" >&6; }
3021else
3022 # Is the header compilable?
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3024$as_echo_n "checking $2 usability... " >&6; }
3025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3026/* end confdefs.h. */
3027$4
3028#include <$2>
3029_ACEOF
3030if ac_fn_cxx_try_compile "$LINENO"; then :
3031 ac_header_compiler=yes
3032else
3033 ac_header_compiler=no
3034fi
3035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3037$as_echo "$ac_header_compiler" >&6; }
3038
3039# Is the header present?
3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3041$as_echo_n "checking $2 presence... " >&6; }
3042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3043/* end confdefs.h. */
3044#include <$2>
3045_ACEOF
3046if ac_fn_cxx_try_cpp "$LINENO"; then :
3047 ac_header_preproc=yes
3048else
3049 ac_header_preproc=no
3050fi
cristyda16f162011-02-19 23:52:17 +00003051rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3053$as_echo "$ac_header_preproc" >&6; }
3054
3055# So? What about this header?
3056case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3057 yes:no: )
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3059$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3061$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3062 ;;
3063 no:yes:* )
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3065$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3067$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3069$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3071$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3073$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003074( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003075## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003076## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003077 ) | sed "s/^/$as_me: WARNING: /" >&2
3078 ;;
3079esac
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3081$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003082if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003083 $as_echo_n "(cached) " >&6
3084else
3085 eval "$3=\$ac_header_compiler"
3086fi
3087eval ac_res=\$$3
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3089$as_echo "$ac_res" >&6; }
3090fi
cristyda16f162011-02-19 23:52:17 +00003091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003092
3093} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003094cat >config.log <<_ACEOF
3095This file contains any messages produced by compilers while
3096running configure, to aid debugging if configure makes a mistake.
3097
cristy29eb34e2011-10-16 00:46:08 +00003098It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003099generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003100
3101 $ $0 $@
3102
3103_ACEOF
3104exec 5>>config.log
3105{
3106cat <<_ASUNAME
3107## --------- ##
3108## Platform. ##
3109## --------- ##
3110
3111hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3112uname -m = `(uname -m) 2>/dev/null || echo unknown`
3113uname -r = `(uname -r) 2>/dev/null || echo unknown`
3114uname -s = `(uname -s) 2>/dev/null || echo unknown`
3115uname -v = `(uname -v) 2>/dev/null || echo unknown`
3116
3117/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3118/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3119
3120/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3121/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3122/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3123/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3124/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3125/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3126/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3127
3128_ASUNAME
3129
3130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131for as_dir in $PATH
3132do
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003135 $as_echo "PATH: $as_dir"
3136 done
cristy3ed852e2009-09-05 21:47:34 +00003137IFS=$as_save_IFS
3138
3139} >&5
3140
3141cat >&5 <<_ACEOF
3142
3143
3144## ----------- ##
3145## Core tests. ##
3146## ----------- ##
3147
3148_ACEOF
3149
3150
3151# Keep a trace of the command line.
3152# Strip out --no-create and --no-recursion so they do not pile up.
3153# Strip out --silent because we don't want to record it for future runs.
3154# Also quote any args containing shell meta-characters.
3155# Make two passes to allow for proper duplicate-argument suppression.
3156ac_configure_args=
3157ac_configure_args0=
3158ac_configure_args1=
3159ac_must_keep_next=false
3160for ac_pass in 1 2
3161do
3162 for ac_arg
3163 do
3164 case $ac_arg in
3165 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3167 | -silent | --silent | --silen | --sile | --sil)
3168 continue ;;
3169 *\'*)
3170 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3171 esac
3172 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003173 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003174 2)
cristy8b350f62009-11-15 23:12:43 +00003175 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003176 if test $ac_must_keep_next = true; then
3177 ac_must_keep_next=false # Got value, back to normal.
3178 else
3179 case $ac_arg in
3180 *=* | --config-cache | -C | -disable-* | --disable-* \
3181 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3182 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3183 | -with-* | --with-* | -without-* | --without-* | --x)
3184 case "$ac_configure_args0 " in
3185 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3186 esac
3187 ;;
3188 -* ) ac_must_keep_next=true ;;
3189 esac
3190 fi
cristy8b350f62009-11-15 23:12:43 +00003191 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003192 ;;
3193 esac
3194 done
3195done
cristy8b350f62009-11-15 23:12:43 +00003196{ ac_configure_args0=; unset ac_configure_args0;}
3197{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003198
3199# When interrupted or exit'd, cleanup temporary files, and complete
3200# config.log. We remove comments because anyway the quotes in there
3201# would cause problems or look ugly.
3202# WARNING: Use '\'' to represent an apostrophe within the trap.
3203# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3204trap 'exit_status=$?
3205 # Save into config.log some information that might help in debugging.
3206 {
3207 echo
3208
cristy98dddb52010-11-04 00:30:15 +00003209 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003210## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003211## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003212 echo
3213 # The following way of writing the cache mishandles newlines in values,
3214(
3215 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3216 eval ac_val=\$$ac_var
3217 case $ac_val in #(
3218 *${as_nl}*)
3219 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003220 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003221$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3222 esac
3223 case $ac_var in #(
3224 _ | IFS | as_nl) ;; #(
3225 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003226 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003227 esac ;;
3228 esac
3229 done
3230 (set) 2>&1 |
3231 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3232 *${as_nl}ac_space=\ *)
3233 sed -n \
3234 "s/'\''/'\''\\\\'\'''\''/g;
3235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3236 ;; #(
3237 *)
3238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3239 ;;
3240 esac |
3241 sort
3242)
3243 echo
3244
cristy98dddb52010-11-04 00:30:15 +00003245 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003246## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003247## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003248 echo
3249 for ac_var in $ac_subst_vars
3250 do
3251 eval ac_val=\$$ac_var
3252 case $ac_val in
3253 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3254 esac
3255 $as_echo "$ac_var='\''$ac_val'\''"
3256 done | sort
3257 echo
3258
3259 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003260 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003261## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003262## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003263 echo
3264 for ac_var in $ac_subst_files
3265 do
3266 eval ac_val=\$$ac_var
3267 case $ac_val in
3268 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3269 esac
3270 $as_echo "$ac_var='\''$ac_val'\''"
3271 done | sort
3272 echo
3273 fi
3274
3275 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003276 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003277## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003278## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003279 echo
3280 cat confdefs.h
3281 echo
3282 fi
3283 test "$ac_signal" != 0 &&
3284 $as_echo "$as_me: caught signal $ac_signal"
3285 $as_echo "$as_me: exit $exit_status"
3286 } >&5
3287 rm -f core *.core core.conftest.* &&
3288 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3289 exit $exit_status
3290' 0
3291for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003292 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003293done
3294ac_signal=0
3295
3296# confdefs.h avoids OS command line length limits that DEFS can exceed.
3297rm -f -r conftest* confdefs.h
3298
cristy8b350f62009-11-15 23:12:43 +00003299$as_echo "/* confdefs.h */" > confdefs.h
3300
cristy3ed852e2009-09-05 21:47:34 +00003301# Predefined preprocessor variables.
3302
3303cat >>confdefs.h <<_ACEOF
3304#define PACKAGE_NAME "$PACKAGE_NAME"
3305_ACEOF
3306
cristy3ed852e2009-09-05 21:47:34 +00003307cat >>confdefs.h <<_ACEOF
3308#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3309_ACEOF
3310
cristy3ed852e2009-09-05 21:47:34 +00003311cat >>confdefs.h <<_ACEOF
3312#define PACKAGE_VERSION "$PACKAGE_VERSION"
3313_ACEOF
3314
cristy3ed852e2009-09-05 21:47:34 +00003315cat >>confdefs.h <<_ACEOF
3316#define PACKAGE_STRING "$PACKAGE_STRING"
3317_ACEOF
3318
cristy3ed852e2009-09-05 21:47:34 +00003319cat >>confdefs.h <<_ACEOF
3320#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3321_ACEOF
3322
cristy8b350f62009-11-15 23:12:43 +00003323cat >>confdefs.h <<_ACEOF
3324#define PACKAGE_URL "$PACKAGE_URL"
3325_ACEOF
3326
cristy3ed852e2009-09-05 21:47:34 +00003327
3328# Let the site file select an alternate cache file if it wants to.
3329# Prefer an explicitly selected file to automatically selected ones.
3330ac_site_file1=NONE
3331ac_site_file2=NONE
3332if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003333 # We do not want a PATH search for config.site.
3334 case $CONFIG_SITE in #((
3335 -*) ac_site_file1=./$CONFIG_SITE;;
3336 */*) ac_site_file1=$CONFIG_SITE;;
3337 *) ac_site_file1=./$CONFIG_SITE;;
3338 esac
cristy3ed852e2009-09-05 21:47:34 +00003339elif test "x$prefix" != xNONE; then
3340 ac_site_file1=$prefix/share/config.site
3341 ac_site_file2=$prefix/etc/config.site
3342else
3343 ac_site_file1=$ac_default_prefix/share/config.site
3344 ac_site_file2=$ac_default_prefix/etc/config.site
3345fi
3346for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3347do
3348 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003349 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003350 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003351$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3352 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003353 . "$ac_site_file" \
3354 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356as_fn_error $? "failed to load site script $ac_site_file
3357See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003358 fi
3359done
3360
3361if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003362 # Some versions of bash will fail to source /dev/null (special files
3363 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3364 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003365 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003366$as_echo "$as_me: loading cache $cache_file" >&6;}
3367 case $cache_file in
3368 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3369 *) . "./$cache_file";;
3370 esac
3371 fi
3372else
cristy8b350f62009-11-15 23:12:43 +00003373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003374$as_echo "$as_me: creating cache $cache_file" >&6;}
3375 >$cache_file
3376fi
3377
cristycd4c5312009-11-22 01:19:08 +00003378as_fn_append ac_header_list " stdlib.h"
3379as_fn_append ac_header_list " unistd.h"
3380as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003381# Check that the precious variables saved in the cache have kept the same
3382# value.
3383ac_cache_corrupted=false
3384for ac_var in $ac_precious_vars; do
3385 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3386 eval ac_new_set=\$ac_env_${ac_var}_set
3387 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3388 eval ac_new_val=\$ac_env_${ac_var}_value
3389 case $ac_old_set,$ac_new_set in
3390 set,)
cristy8b350f62009-11-15 23:12:43 +00003391 { $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 +00003392$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3393 ac_cache_corrupted=: ;;
3394 ,set)
cristy8b350f62009-11-15 23:12:43 +00003395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003396$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3397 ac_cache_corrupted=: ;;
3398 ,);;
3399 *)
3400 if test "x$ac_old_val" != "x$ac_new_val"; then
3401 # differences in whitespace do not lead to failure.
3402 ac_old_val_w=`echo x $ac_old_val`
3403 ac_new_val_w=`echo x $ac_new_val`
3404 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003406$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3407 ac_cache_corrupted=:
3408 else
cristy8b350f62009-11-15 23:12:43 +00003409 { $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 +00003410$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3411 eval $ac_var=\$ac_old_val
3412 fi
cristy8b350f62009-11-15 23:12:43 +00003413 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003414$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003415 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003416$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3417 fi;;
3418 esac
3419 # Pass precious variables to config.status.
3420 if test "$ac_new_set" = set; then
3421 case $ac_new_val in
3422 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3423 *) ac_arg=$ac_var=$ac_new_val ;;
3424 esac
3425 case " $ac_configure_args " in
3426 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003427 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003428 esac
3429 fi
3430done
3431if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003435$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003436 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003437fi
cristy8b350f62009-11-15 23:12:43 +00003438## -------------------- ##
3439## Main body of script. ##
3440## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003441
3442ac_ext=c
3443ac_cpp='$CPP $CPPFLAGS'
3444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447
3448
3449
3450ac_aux_dir=
3451for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003452 if 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/install.sh"; then
3457 ac_aux_dir=$ac_dir
3458 ac_install_sh="$ac_aux_dir/install.sh -c"
3459 break
3460 elif test -f "$ac_dir/shtool"; then
3461 ac_aux_dir=$ac_dir
3462 ac_install_sh="$ac_aux_dir/shtool install -c"
3463 break
3464 fi
cristy3ed852e2009-09-05 21:47:34 +00003465done
3466if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003467 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003468fi
3469
3470# These three variables are undocumented and unsupported,
3471# and are intended to be withdrawn in a future Autoconf release.
3472# They can cause serious problems if a builder's source tree is in a directory
3473# whose full name contains unusual characters.
3474ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3475ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3476ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3477
3478
3479
3480
3481ac_config_headers="$ac_config_headers config/config.h"
3482
cristy24fc1fe2010-10-23 21:13:01 +00003483
cristy01ff9f32012-12-01 18:15:29 +00003484ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003485
cristy2df32802012-09-17 01:15:28 +00003486ac_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 +00003487
3488
3489#
3490# Save initial user-tunable values
3491#
3492USER_LIBS=$LIBS
3493for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3494 eval isset=\${$var+set}
3495 if test "$isset" = 'set'; then
3496 eval val=$`echo $var`
3497 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3498 fi
3499done
3500
3501
3502CONFIGURE_ARGS="$0 ${ac_configure_args}"
3503
3504
3505# Source file containing package/library versioning information.
3506. ${srcdir}/version.sh
3507
cristy15a88782010-01-31 23:24:49 +00003508echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003509# Make sure we can run config.sub.
3510$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003511 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003512
cristy8b350f62009-11-15 23:12:43 +00003513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003514$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003515if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003516 $as_echo_n "(cached) " >&6
3517else
3518 ac_build_alias=$build_alias
3519test "x$ac_build_alias" = x &&
3520 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3521test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003522 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003523ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003524 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003525
3526fi
cristy8b350f62009-11-15 23:12:43 +00003527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003528$as_echo "$ac_cv_build" >&6; }
3529case $ac_cv_build in
3530*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003531*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003532esac
3533build=$ac_cv_build
3534ac_save_IFS=$IFS; IFS='-'
3535set x $ac_cv_build
3536shift
3537build_cpu=$1
3538build_vendor=$2
3539shift; shift
3540# Remember, the first character of IFS is used to create $*,
3541# except with old shells:
3542build_os=$*
3543IFS=$ac_save_IFS
3544case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3545
3546
cristy8b350f62009-11-15 23:12:43 +00003547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003548$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003549if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003550 $as_echo_n "(cached) " >&6
3551else
3552 if test "x$host_alias" = x; then
3553 ac_cv_host=$ac_cv_build
3554else
3555 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003556 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003557fi
3558
3559fi
cristy8b350f62009-11-15 23:12:43 +00003560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003561$as_echo "$ac_cv_host" >&6; }
3562case $ac_cv_host in
3563*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003564*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003565esac
3566host=$ac_cv_host
3567ac_save_IFS=$IFS; IFS='-'
3568set x $ac_cv_host
3569shift
3570host_cpu=$1
3571host_vendor=$2
3572shift; shift
3573# Remember, the first character of IFS is used to create $*,
3574# except with old shells:
3575host_os=$*
3576IFS=$ac_save_IFS
3577case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3578
3579
cristy8b350f62009-11-15 23:12:43 +00003580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003581$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003582if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003583 $as_echo_n "(cached) " >&6
3584else
3585 if test "x$target_alias" = x; then
3586 ac_cv_target=$ac_cv_host
3587else
3588 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003589 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003590fi
3591
3592fi
cristy8b350f62009-11-15 23:12:43 +00003593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003594$as_echo "$ac_cv_target" >&6; }
3595case $ac_cv_target in
3596*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003597*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003598esac
3599target=$ac_cv_target
3600ac_save_IFS=$IFS; IFS='-'
3601set x $ac_cv_target
3602shift
3603target_cpu=$1
3604target_vendor=$2
3605shift; shift
3606# Remember, the first character of IFS is used to create $*,
3607# except with old shells:
3608target_os=$*
3609IFS=$ac_save_IFS
3610case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3611
3612
3613# The aliases save the names the user supplied, while $host etc.
3614# will get canonicalized.
3615test -n "$target_alias" &&
3616 test "$program_prefix$program_suffix$program_transform_name" = \
3617 NONENONEs,x,x, &&
3618 program_prefix=${target_alias}-
3619
cristy837d6dc2010-02-27 01:16:57 +00003620
3621
3622
cristy8be34142012-06-17 14:07:18 +00003623
cristy19615b82011-04-13 20:02:01 +00003624MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003625
3626
cristy27d53d62012-07-29 23:30:07 +00003627cat >>confdefs.h <<_ACEOF
3628#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3629_ACEOF
3630
3631
cristy19615b82011-04-13 20:02:01 +00003632MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003633
3634
cristy27d53d62012-07-29 23:30:07 +00003635cat >>confdefs.h <<_ACEOF
3636#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3637_ACEOF
3638
3639
cristy19615b82011-04-13 20:02:01 +00003640MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003641
3642
cristy27d53d62012-07-29 23:30:07 +00003643cat >>confdefs.h <<_ACEOF
3644#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3645_ACEOF
3646
3647
cristy3ed852e2009-09-05 21:47:34 +00003648# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003649MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3650
3651MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3652
cristye80f9cb2013-01-09 01:09:31 +00003653MAGICK_SVN_REVISION=10572:10583M
cristyd694ca32011-03-27 21:42:54 +00003654
cristy3ed852e2009-09-05 21:47:34 +00003655
3656
3657# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3659$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003660# Reject unsafe characters in $srcdir or the absolute working directory
3661# name. Accept space and tab only in the latter.
3662am_lf='
3663'
3664case `pwd` in
3665 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003666 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003667esac
3668case $srcdir in
3669 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003670 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003671esac
cristy3ed852e2009-09-05 21:47:34 +00003672
cristyc0890a62012-07-19 00:18:20 +00003673# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003674# arguments. Must try -L first in case configure is actually a
3675# symlink; some systems play weird games with the mod time of symlinks
3676# (eg FreeBSD returns the mod time of the symlink's containing
3677# directory).
3678if (
cristyc0890a62012-07-19 00:18:20 +00003679 am_has_slept=no
3680 for am_try in 1 2; do
3681 echo "timestamp, slept: $am_has_slept" > conftest.file
3682 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3683 if test "$*" = "X"; then
3684 # -L didn't work.
3685 set X `ls -t "$srcdir/configure" conftest.file`
3686 fi
3687 if test "$*" != "X $srcdir/configure conftest.file" \
3688 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003689
cristyc0890a62012-07-19 00:18:20 +00003690 # If neither matched, then we have a broken ls. This can happen
3691 # if, for instance, CONFIG_SHELL is bash and it inherits a
3692 # broken ls alias from the environment. This has actually
3693 # happened. Such a system could not be considered "sane".
3694 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3695 alias in your environment" "$LINENO" 5
3696 fi
3697 if test "$2" = conftest.file || test $am_try -eq 2; then
3698 break
3699 fi
3700 # Just in case.
3701 sleep 1
3702 am_has_slept=yes
3703 done
cristy73bd4a52010-10-05 11:24:23 +00003704 test "$2" = conftest.file
3705 )
3706then
3707 # Ok.
3708 :
3709else
cristy98dddb52010-11-04 00:30:15 +00003710 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003711Check your system clock" "$LINENO" 5
3712fi
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3714$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003715# If we didn't sleep, we still need to ensure time stamps of config.status and
3716# generated files are strictly newer.
3717am_sleep_pid=
3718if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3719 ( sleep 1 ) &
3720 am_sleep_pid=$!
3721fi
cristy73bd4a52010-10-05 11:24:23 +00003722
cristyc0890a62012-07-19 00:18:20 +00003723rm -f conftest.file
3724
3725
3726am__api_version='1.12'
cristy73bd4a52010-10-05 11:24:23 +00003727
3728# Find a good install program. We prefer a C program (faster),
3729# so one script is as good as another. But avoid the broken or
3730# incompatible versions:
3731# SysV /etc/install, /usr/sbin/install
3732# SunOS /usr/etc/install
3733# IRIX /sbin/install
3734# AIX /bin/install
3735# AmigaOS /C/install, which installs bootblocks on floppy discs
3736# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3737# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3738# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3739# OS/2's system install, which has a completely different semantic
3740# ./install, which can be erroneously created by make from ./install.sh.
3741# Reject install programs that cannot install multiple files.
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3743$as_echo_n "checking for a BSD-compatible install... " >&6; }
3744if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003745if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003746 $as_echo_n "(cached) " >&6
3747else
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749for as_dir in $PATH
3750do
3751 IFS=$as_save_IFS
3752 test -z "$as_dir" && as_dir=.
3753 # Account for people who put trailing slashes in PATH elements.
3754case $as_dir/ in #((
3755 ./ | .// | /[cC]/* | \
3756 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3757 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3758 /usr/ucb/* ) ;;
3759 *)
3760 # OSF1 and SCO ODT 3.0 have their own names for install.
3761 # Don't use installbsd from OSF since it installs stuff as root
3762 # by default.
3763 for ac_prog in ginstall scoinst install; do
3764 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003765 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003766 if test $ac_prog = install &&
3767 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3768 # AIX install. It has an incompatible calling convention.
3769 :
3770 elif test $ac_prog = install &&
3771 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3772 # program-specific install script used by HP pwplus--don't use.
3773 :
3774 else
3775 rm -rf conftest.one conftest.two conftest.dir
3776 echo one > conftest.one
3777 echo two > conftest.two
3778 mkdir conftest.dir
3779 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3780 test -s conftest.one && test -s conftest.two &&
3781 test -s conftest.dir/conftest.one &&
3782 test -s conftest.dir/conftest.two
3783 then
3784 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3785 break 3
3786 fi
3787 fi
3788 fi
3789 done
3790 done
3791 ;;
3792esac
3793
3794 done
3795IFS=$as_save_IFS
3796
3797rm -rf conftest.one conftest.two conftest.dir
3798
3799fi
3800 if test "${ac_cv_path_install+set}" = set; then
3801 INSTALL=$ac_cv_path_install
3802 else
3803 # As a last resort, use the slow shell script. Don't cache a
3804 # value for INSTALL within a source directory, because that will
3805 # break other packages using the cache if that directory is
3806 # removed, or if the value is a relative name.
3807 INSTALL=$ac_install_sh
3808 fi
3809fi
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3811$as_echo "$INSTALL" >&6; }
3812
3813# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3814# It thinks the first close brace ends the variable substitution.
3815test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3816
3817test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3818
3819test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3820
3821test "$program_prefix" != NONE &&
3822 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3823# Use a double $ so make ignores it.
3824test "$program_suffix" != NONE &&
3825 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3826# Double any \ or $.
3827# By default was `s,x,x', remove it if useless.
3828ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3829program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3830
3831# expand $ac_aux_dir to an absolute path
3832am_aux_dir=`cd $ac_aux_dir && pwd`
3833
3834if test x"${MISSING+set}" != xset; then
3835 case $am_aux_dir in
3836 *\ * | *\ *)
3837 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3838 *)
3839 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3840 esac
3841fi
3842# Use eval to expand $SHELL
3843if eval "$MISSING --run true"; then
3844 am_missing_run="$MISSING --run "
3845else
3846 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3848$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003849fi
3850
3851if test x"${install_sh}" != xset; then
3852 case $am_aux_dir in
3853 *\ * | *\ *)
3854 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3855 *)
3856 install_sh="\${SHELL} $am_aux_dir/install-sh"
3857 esac
3858fi
3859
cristyc0890a62012-07-19 00:18:20 +00003860# Installed binaries are usually stripped using 'strip' when the user
3861# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003862# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003863# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003864if test "$cross_compiling" != no; then
3865 if test -n "$ac_tool_prefix"; then
3866 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3867set dummy ${ac_tool_prefix}strip; ac_word=$2
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3869$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003870if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003871 $as_echo_n "(cached) " >&6
3872else
3873 if test -n "$STRIP"; then
3874 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3875else
3876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877for as_dir in $PATH
3878do
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
3881 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003883 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 break 2
3886 fi
3887done
3888 done
3889IFS=$as_save_IFS
3890
3891fi
3892fi
3893STRIP=$ac_cv_prog_STRIP
3894if test -n "$STRIP"; then
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3896$as_echo "$STRIP" >&6; }
3897else
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899$as_echo "no" >&6; }
3900fi
3901
3902
3903fi
3904if test -z "$ac_cv_prog_STRIP"; then
3905 ac_ct_STRIP=$STRIP
3906 # Extract the first word of "strip", so it can be a program name with args.
3907set dummy strip; ac_word=$2
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003910if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003911 $as_echo_n "(cached) " >&6
3912else
3913 if test -n "$ac_ct_STRIP"; then
3914 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3915else
3916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917for as_dir in $PATH
3918do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003923 ac_cv_prog_ac_ct_STRIP="strip"
3924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3925 break 2
3926 fi
3927done
3928 done
3929IFS=$as_save_IFS
3930
3931fi
3932fi
3933ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3934if test -n "$ac_ct_STRIP"; then
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3936$as_echo "$ac_ct_STRIP" >&6; }
3937else
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939$as_echo "no" >&6; }
3940fi
3941
3942 if test "x$ac_ct_STRIP" = x; then
3943 STRIP=":"
3944 else
3945 case $cross_compiling:$ac_tool_warned in
3946yes:)
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3949ac_tool_warned=yes ;;
3950esac
3951 STRIP=$ac_ct_STRIP
3952 fi
3953else
3954 STRIP="$ac_cv_prog_STRIP"
3955fi
3956
3957fi
3958INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3959
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3961$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3962if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003963 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003964 $as_echo_n "(cached) " >&6
3965else
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3968do
3969 IFS=$as_save_IFS
3970 test -z "$as_dir" && as_dir=.
3971 for ac_prog in mkdir gmkdir; do
3972 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003973 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003974 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3975 'mkdir (GNU coreutils) '* | \
3976 'mkdir (coreutils) '* | \
3977 'mkdir (fileutils) '4.1*)
3978 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3979 break 3;;
3980 esac
3981 done
3982 done
3983 done
3984IFS=$as_save_IFS
3985
3986fi
3987
3988 test -d ./--version && rmdir ./--version
3989 if test "${ac_cv_path_mkdir+set}" = set; then
3990 MKDIR_P="$ac_cv_path_mkdir -p"
3991 else
3992 # As a last resort, use the slow shell script. Don't cache a
3993 # value for MKDIR_P within a source directory, because that will
3994 # break other packages using the cache if that directory is
3995 # removed, or if the value is a relative name.
3996 MKDIR_P="$ac_install_sh -d"
3997 fi
3998fi
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4000$as_echo "$MKDIR_P" >&6; }
4001
cristy73bd4a52010-10-05 11:24:23 +00004002for ac_prog in gawk mawk nawk awk
4003do
4004 # Extract the first word of "$ac_prog", so it can be a program name with args.
4005set dummy $ac_prog; ac_word=$2
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004008if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004009 $as_echo_n "(cached) " >&6
4010else
4011 if test -n "$AWK"; then
4012 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4013else
4014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015for as_dir in $PATH
4016do
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004021 ac_cv_prog_AWK="$ac_prog"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 break 2
4024 fi
4025done
4026 done
4027IFS=$as_save_IFS
4028
4029fi
4030fi
4031AWK=$ac_cv_prog_AWK
4032if test -n "$AWK"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4034$as_echo "$AWK" >&6; }
4035else
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037$as_echo "no" >&6; }
4038fi
4039
4040
4041 test -n "$AWK" && break
4042done
4043
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4045$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4046set x ${MAKE-make}
4047ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004048if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004049 $as_echo_n "(cached) " >&6
4050else
4051 cat >conftest.make <<\_ACEOF
4052SHELL = /bin/sh
4053all:
4054 @echo '@@@%%%=$(MAKE)=@@@%%%'
4055_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004056# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004057case `${MAKE-make} -f conftest.make 2>/dev/null` in
4058 *@@@%%%=?*=@@@%%%*)
4059 eval ac_cv_prog_make_${ac_make}_set=yes;;
4060 *)
4061 eval ac_cv_prog_make_${ac_make}_set=no;;
4062esac
4063rm -f conftest.make
4064fi
4065if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4067$as_echo "yes" >&6; }
4068 SET_MAKE=
4069else
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071$as_echo "no" >&6; }
4072 SET_MAKE="MAKE=${MAKE-make}"
4073fi
4074
4075rm -rf .tst 2>/dev/null
4076mkdir .tst 2>/dev/null
4077if test -d .tst; then
4078 am__leading_dot=.
4079else
4080 am__leading_dot=_
4081fi
4082rmdir .tst 2>/dev/null
4083
cristya448bd22011-10-14 12:38:13 +00004084# Check whether --enable-silent-rules was given.
4085if test "${enable_silent_rules+set}" = set; then :
4086 enableval=$enable_silent_rules;
4087fi
4088
cristyc0890a62012-07-19 00:18:20 +00004089case $enable_silent_rules in # (((
4090 yes) AM_DEFAULT_VERBOSITY=0;;
4091 no) AM_DEFAULT_VERBOSITY=1;;
4092 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004093esac
cristyc3fb77b2012-02-06 01:49:41 +00004094am_make=${MAKE-make}
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4096$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4097if ${am_cv_make_support_nested_variables+:} false; then :
4098 $as_echo_n "(cached) " >&6
4099else
4100 if $as_echo 'TRUE=$(BAR$(V))
4101BAR0=false
4102BAR1=true
4103V=1
4104am__doit:
4105 @$(TRUE)
4106.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4107 am_cv_make_support_nested_variables=yes
4108else
4109 am_cv_make_support_nested_variables=no
4110fi
4111fi
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4113$as_echo "$am_cv_make_support_nested_variables" >&6; }
4114if test $am_cv_make_support_nested_variables = yes; then
4115 AM_V='$(V)'
4116 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4117else
4118 AM_V=$AM_DEFAULT_VERBOSITY
4119 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4120fi
cristya448bd22011-10-14 12:38:13 +00004121AM_BACKSLASH='\'
4122
cristy73bd4a52010-10-05 11:24:23 +00004123if test "`cd $srcdir && pwd`" != "`pwd`"; then
4124 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4125 # is not polluted with repeated "-I."
4126 am__isrc=' -I$(srcdir)'
4127 # test to see if srcdir already configured
4128 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004129 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004130 fi
4131fi
4132
4133# test whether we have cygpath
4134if test -z "$CYGPATH_W"; then
4135 if (cygpath --version) >/dev/null 2>/dev/null; then
4136 CYGPATH_W='cygpath -w'
4137 else
4138 CYGPATH_W=echo
4139 fi
4140fi
4141
4142
4143# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004144 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004145 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004146
4147
cristya448bd22011-10-14 12:38:13 +00004148cat >>confdefs.h <<_ACEOF
4149#define PACKAGE "$PACKAGE"
4150_ACEOF
4151
4152
4153cat >>confdefs.h <<_ACEOF
4154#define VERSION "$VERSION"
4155_ACEOF
4156
cristy73bd4a52010-10-05 11:24:23 +00004157# Some tools Automake needs.
4158
4159ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4160
4161
4162AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4163
4164
4165AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4166
4167
4168AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4169
4170
4171MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4172
cristyc0890a62012-07-19 00:18:20 +00004173# For better backward compatibility. To be removed once Automake 1.9.x
4174# dies out for good. For more background, see:
4175# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4176# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4177mkdir_p='$(MKDIR_P)'
4178
cristy73bd4a52010-10-05 11:24:23 +00004179# We need awk for the "check" target. The system "awk" is bad on
4180# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004181# Always define AMTAR for backward compatibility. Yes, it's still used
4182# in the wild :-( We should find a proper way to deprecate it ...
4183AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004184
cristyc3fb77b2012-02-06 01:49:41 +00004185am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004186
4187
4188
4189
4190
cristy3ed852e2009-09-05 21:47:34 +00004191
4192# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004193# Check whether --enable-silent-rules was given.
4194if test "${enable_silent_rules+set}" = set; then :
4195 enableval=$enable_silent_rules;
4196fi
4197
cristyc0890a62012-07-19 00:18:20 +00004198case $enable_silent_rules in # (((
4199 yes) AM_DEFAULT_VERBOSITY=0;;
4200 no) AM_DEFAULT_VERBOSITY=1;;
4201 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004202esac
cristyc3fb77b2012-02-06 01:49:41 +00004203am_make=${MAKE-make}
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4205$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4206if ${am_cv_make_support_nested_variables+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208else
4209 if $as_echo 'TRUE=$(BAR$(V))
4210BAR0=false
4211BAR1=true
4212V=1
4213am__doit:
4214 @$(TRUE)
4215.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4216 am_cv_make_support_nested_variables=yes
4217else
4218 am_cv_make_support_nested_variables=no
4219fi
4220fi
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4222$as_echo "$am_cv_make_support_nested_variables" >&6; }
4223if test $am_cv_make_support_nested_variables = yes; then
4224 AM_V='$(V)'
4225 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4226else
4227 AM_V=$AM_DEFAULT_VERBOSITY
4228 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4229fi
cristy73bd4a52010-10-05 11:24:23 +00004230AM_BACKSLASH='\'
4231
cristy3ed852e2009-09-05 21:47:34 +00004232
4233MAGICK_LIB_VERSION="0x"
4234if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4235 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4236fi
4237MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4238if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4239 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4240fi
4241MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4242if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4243 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4244fi
4245MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4246
4247
4248# Definition used to define MagickLibVersionText in version.h
4249MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4250
4251
4252# Definition used to define MagickLibVersionNumber in version.h
4253MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4254
4255
4256# Regenerate config.status if ChangeLog or version.sh is updated.
4257CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4258
4259
4260PERLMAINCC=$CC
4261
4262MAGICK_CFLAGS=''
4263MAGICK_CPPFLAGS=$CPPFLAGS_USER
4264MAGICK_PCFLAGS=$CPPFLAGS_USER
4265MAGICK_LDFLAGS=''
4266MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004267MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004268
4269#
4270# Evaluate shell variable equivalents to Makefile directory variables
4271#
4272if test "x$prefix" = xNONE; then
4273 prefix=$ac_default_prefix
4274fi
4275# Let make expand exec_prefix.
4276if test "x$exec_prefix" = xNONE; then
4277 exec_prefix='${prefix}'
4278fi
4279
4280#
4281eval "eval PREFIX_DIR=${prefix}"
4282
4283eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4284
4285eval "eval BIN_DIR=$bindir"
4286
4287eval "eval SBIN_DIR=$sbindir"
4288
4289eval "eval LIBEXEC_DIR=$libexecdir"
4290
4291eval "eval DATA_DIR=$datadir"
4292
cristy4e65ec22012-04-08 01:33:27 +00004293eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004294
cristy3ed852e2009-09-05 21:47:34 +00004295eval "eval SYSCONF_DIR=$sysconfdir"
4296
4297eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4298
4299eval "eval LOCALSTATE_DIR=$localstatedir"
4300
4301eval "eval LIB_DIR=$libdir"
4302
4303eval "eval INCLUDE_DIR=$includedir"
4304
4305eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4306
4307eval "eval INFO_DIR=$infodir"
4308
4309eval "eval MAN_DIR=$mandir"
4310
4311
4312# Get full paths to source and build directories
4313srcdirfull="`cd $srcdir && pwd`"
4314builddir="`pwd`"
4315
4316#
4317# Compute variables useful for running uninstalled software.
4318#
4319MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4320MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4321MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4322MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4323DIRSEP=':'
4324case "${build_os}" in
4325 mingw* )
4326 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4327 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4328 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4329 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4330 DIRSEP=';'
4331 ;;
4332esac
4333case "${host_os}" in
4334 mingw* )
4335 DIRSEP=';'
4336 ;;
4337esac
4338
4339
4340
4341
4342
4343
cristya0b81c32010-01-22 02:54:33 +00004344
4345#
4346# Enable OS features.
4347#
cristy73bd4a52010-10-05 11:24:23 +00004348DEPDIR="${am__leading_dot}deps"
4349
4350ac_config_commands="$ac_config_commands depfiles"
4351
4352
4353am_make=${MAKE-make}
4354cat > confinc << 'END'
4355am__doit:
4356 @echo this is the am__doit target
4357.PHONY: am__doit
4358END
4359# If we don't find an include directive, just comment out the code.
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4361$as_echo_n "checking for style of include used by $am_make... " >&6; }
4362am__include="#"
4363am__quote=
4364_am_result=none
4365# First try GNU make style include.
4366echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004367# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004368case `$am_make -s -f confmf 2> /dev/null` in #(
4369*the\ am__doit\ target*)
4370 am__include=include
4371 am__quote=
4372 _am_result=GNU
4373 ;;
4374esac
4375# Now try BSD make style include.
4376if test "$am__include" = "#"; then
4377 echo '.include "confinc"' > confmf
4378 case `$am_make -s -f confmf 2> /dev/null` in #(
4379 *the\ am__doit\ target*)
4380 am__include=.include
4381 am__quote="\""
4382 _am_result=BSD
4383 ;;
4384 esac
4385fi
4386
4387
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4389$as_echo "$_am_result" >&6; }
4390rm -f confinc confmf
4391
4392# Check whether --enable-dependency-tracking was given.
4393if test "${enable_dependency_tracking+set}" = set; then :
4394 enableval=$enable_dependency_tracking;
4395fi
4396
4397if test "x$enable_dependency_tracking" != xno; then
4398 am_depcomp="$ac_aux_dir/depcomp"
4399 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004400 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004401fi
4402 if test "x$enable_dependency_tracking" != xno; then
4403 AMDEP_TRUE=
4404 AMDEP_FALSE='#'
4405else
4406 AMDEP_TRUE='#'
4407 AMDEP_FALSE=
4408fi
4409
4410
cristy3ed852e2009-09-05 21:47:34 +00004411ac_ext=c
4412ac_cpp='$CPP $CPPFLAGS'
4413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416if test -n "$ac_tool_prefix"; then
4417 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4418set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004420$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004421if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004422 $as_echo_n "(cached) " >&6
4423else
4424 if test -n "$CC"; then
4425 ac_cv_prog_CC="$CC" # Let the user override the test.
4426else
4427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428for as_dir in $PATH
4429do
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004432 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004434 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004436 break 2
4437 fi
4438done
cristy8b350f62009-11-15 23:12:43 +00004439 done
cristy3ed852e2009-09-05 21:47:34 +00004440IFS=$as_save_IFS
4441
4442fi
4443fi
4444CC=$ac_cv_prog_CC
4445if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004447$as_echo "$CC" >&6; }
4448else
cristy8b350f62009-11-15 23:12:43 +00004449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004450$as_echo "no" >&6; }
4451fi
4452
4453
4454fi
4455if test -z "$ac_cv_prog_CC"; then
4456 ac_ct_CC=$CC
4457 # Extract the first word of "gcc", so it can be a program name with args.
4458set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004460$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004461if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004462 $as_echo_n "(cached) " >&6
4463else
4464 if test -n "$ac_ct_CC"; then
4465 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4466else
4467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468for as_dir in $PATH
4469do
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004472 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004474 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004476 break 2
4477 fi
4478done
cristy8b350f62009-11-15 23:12:43 +00004479 done
cristy3ed852e2009-09-05 21:47:34 +00004480IFS=$as_save_IFS
4481
4482fi
4483fi
4484ac_ct_CC=$ac_cv_prog_ac_ct_CC
4485if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004487$as_echo "$ac_ct_CC" >&6; }
4488else
cristy8b350f62009-11-15 23:12:43 +00004489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004490$as_echo "no" >&6; }
4491fi
4492
4493 if test "x$ac_ct_CC" = x; then
4494 CC=""
4495 else
4496 case $cross_compiling:$ac_tool_warned in
4497yes:)
cristy8b350f62009-11-15 23:12:43 +00004498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4500ac_tool_warned=yes ;;
4501esac
4502 CC=$ac_ct_CC
4503 fi
4504else
4505 CC="$ac_cv_prog_CC"
4506fi
4507
4508if test -z "$CC"; then
4509 if test -n "$ac_tool_prefix"; then
4510 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4511set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004513$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004514if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004515 $as_echo_n "(cached) " >&6
4516else
4517 if test -n "$CC"; then
4518 ac_cv_prog_CC="$CC" # Let the user override the test.
4519else
4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004525 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004527 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004529 break 2
4530 fi
4531done
cristy8b350f62009-11-15 23:12:43 +00004532 done
cristy3ed852e2009-09-05 21:47:34 +00004533IFS=$as_save_IFS
4534
4535fi
4536fi
4537CC=$ac_cv_prog_CC
4538if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004540$as_echo "$CC" >&6; }
4541else
cristy8b350f62009-11-15 23:12:43 +00004542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004543$as_echo "no" >&6; }
4544fi
4545
4546
4547 fi
4548fi
4549if test -z "$CC"; then
4550 # Extract the first word of "cc", so it can be a program name with args.
4551set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004553$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004554if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004555 $as_echo_n "(cached) " >&6
4556else
4557 if test -n "$CC"; then
4558 ac_cv_prog_CC="$CC" # Let the user override the test.
4559else
4560 ac_prog_rejected=no
4561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562for as_dir in $PATH
4563do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004566 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004568 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4569 ac_prog_rejected=yes
4570 continue
4571 fi
4572 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004574 break 2
4575 fi
4576done
cristy8b350f62009-11-15 23:12:43 +00004577 done
cristy3ed852e2009-09-05 21:47:34 +00004578IFS=$as_save_IFS
4579
4580if test $ac_prog_rejected = yes; then
4581 # We found a bogon in the path, so make sure we never use it.
4582 set dummy $ac_cv_prog_CC
4583 shift
4584 if test $# != 0; then
4585 # We chose a different compiler from the bogus one.
4586 # However, it has the same basename, so the bogon will be chosen
4587 # first if we set CC to just the basename; use the full file name.
4588 shift
4589 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4590 fi
4591fi
4592fi
4593fi
4594CC=$ac_cv_prog_CC
4595if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004597$as_echo "$CC" >&6; }
4598else
cristy8b350f62009-11-15 23:12:43 +00004599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004600$as_echo "no" >&6; }
4601fi
4602
4603
4604fi
4605if test -z "$CC"; then
4606 if test -n "$ac_tool_prefix"; then
4607 for ac_prog in cl.exe
4608 do
4609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4610set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004612$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004613if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004614 $as_echo_n "(cached) " >&6
4615else
4616 if test -n "$CC"; then
4617 ac_cv_prog_CC="$CC" # Let the user override the test.
4618else
4619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620for as_dir in $PATH
4621do
4622 IFS=$as_save_IFS
4623 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004624 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004626 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004628 break 2
4629 fi
4630done
cristy8b350f62009-11-15 23:12:43 +00004631 done
cristy3ed852e2009-09-05 21:47:34 +00004632IFS=$as_save_IFS
4633
4634fi
4635fi
4636CC=$ac_cv_prog_CC
4637if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004639$as_echo "$CC" >&6; }
4640else
cristy8b350f62009-11-15 23:12:43 +00004641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004642$as_echo "no" >&6; }
4643fi
4644
4645
4646 test -n "$CC" && break
4647 done
4648fi
4649if test -z "$CC"; then
4650 ac_ct_CC=$CC
4651 for ac_prog in cl.exe
4652do
4653 # Extract the first word of "$ac_prog", so it can be a program name with args.
4654set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004656$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004657if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004658 $as_echo_n "(cached) " >&6
4659else
4660 if test -n "$ac_ct_CC"; then
4661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4662else
4663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664for as_dir in $PATH
4665do
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004668 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004670 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004672 break 2
4673 fi
4674done
cristy8b350f62009-11-15 23:12:43 +00004675 done
cristy3ed852e2009-09-05 21:47:34 +00004676IFS=$as_save_IFS
4677
4678fi
4679fi
4680ac_ct_CC=$ac_cv_prog_ac_ct_CC
4681if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004683$as_echo "$ac_ct_CC" >&6; }
4684else
cristy8b350f62009-11-15 23:12:43 +00004685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004686$as_echo "no" >&6; }
4687fi
4688
4689
4690 test -n "$ac_ct_CC" && break
4691done
4692
4693 if test "x$ac_ct_CC" = x; then
4694 CC=""
4695 else
4696 case $cross_compiling:$ac_tool_warned in
4697yes:)
cristy8b350f62009-11-15 23:12:43 +00004698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4700ac_tool_warned=yes ;;
4701esac
4702 CC=$ac_ct_CC
4703 fi
4704fi
4705
4706fi
4707
4708
cristy8b350f62009-11-15 23:12:43 +00004709test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004711as_fn_error $? "no acceptable C compiler found in \$PATH
4712See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004713
4714# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004715$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004716set X $ac_compile
4717ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004718for ac_option in --version -v -V -qversion; do
4719 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004720case "(($ac_try" in
4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722 *) ac_try_echo=$ac_try;;
4723esac
cristy8b350f62009-11-15 23:12:43 +00004724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4725$as_echo "$ac_try_echo"; } >&5
4726 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004727 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004728 if test -s conftest.err; then
4729 sed '10a\
4730... rest of stderr output deleted ...
4731 10q' conftest.err >conftest.er1
4732 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004733 fi
cristycd4c5312009-11-22 01:19:08 +00004734 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4736 test $ac_status = 0; }
4737done
cristy3ed852e2009-09-05 21:47:34 +00004738
cristy8b350f62009-11-15 23:12:43 +00004739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004740/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004741
cristy3ed852e2009-09-05 21:47:34 +00004742int
4743main ()
4744{
4745
4746 ;
4747 return 0;
4748}
4749_ACEOF
4750ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004751ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004752# Try to create an executable without -o first, disregard a.out.
4753# It will help us diagnose broken compilers, and finding out an intuition
4754# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4756$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004757ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4758
4759# The possible output files:
4760ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4761
4762ac_rmfiles=
4763for ac_file in $ac_files
4764do
4765 case $ac_file in
4766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4767 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4768 esac
4769done
4770rm -f $ac_rmfiles
4771
cristy8b350f62009-11-15 23:12:43 +00004772if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004773case "(($ac_try" in
4774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775 *) ac_try_echo=$ac_try;;
4776esac
cristy8b350f62009-11-15 23:12:43 +00004777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4778$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004779 (eval "$ac_link_default") 2>&5
4780 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4782 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004783 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4784# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4785# in a Makefile. We should not override ac_cv_exeext if it was cached,
4786# so that the user can short-circuit this test for compilers unknown to
4787# Autoconf.
4788for ac_file in $ac_files ''
4789do
4790 test -f "$ac_file" || continue
4791 case $ac_file in
4792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4793 ;;
4794 [ab].out )
4795 # We found the default executable, but exeext='' is most
4796 # certainly right.
4797 break;;
4798 *.* )
cristy8b350f62009-11-15 23:12:43 +00004799 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004800 then :; else
4801 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4802 fi
4803 # We set ac_cv_exeext here because the later test for it is not
4804 # safe: cross compilers may not add the suffix if given an `-o'
4805 # argument, so we may need to know it at that point already.
4806 # Even if this section looks crufty: it has the advantage of
4807 # actually working.
4808 break;;
4809 * )
4810 break;;
4811 esac
4812done
4813test "$ac_cv_exeext" = no && ac_cv_exeext=
4814
4815else
4816 ac_file=''
4817fi
cristy8b350f62009-11-15 23:12:43 +00004818if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820$as_echo "no" >&6; }
4821$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004822sed 's/^/| /' conftest.$ac_ext >&5
4823
cristy8b350f62009-11-15 23:12:43 +00004824{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004826as_fn_error 77 "C compiler cannot create executables
4827See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004828else
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4830$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004831fi
cristycd4c5312009-11-22 01:19:08 +00004832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4833$as_echo_n "checking for C compiler default output file name... " >&6; }
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4835$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004836ac_exeext=$ac_cv_exeext
4837
cristycd4c5312009-11-22 01:19:08 +00004838rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004839ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004841$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004842if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004843case "(($ac_try" in
4844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845 *) ac_try_echo=$ac_try;;
4846esac
cristy8b350f62009-11-15 23:12:43 +00004847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4848$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004849 (eval "$ac_link") 2>&5
4850 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4852 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004853 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4854# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4855# work properly (i.e., refer to `conftest.exe'), while it won't with
4856# `rm'.
4857for ac_file in conftest.exe conftest conftest.*; do
4858 test -f "$ac_file" || continue
4859 case $ac_file in
4860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4861 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4862 break;;
4863 * ) break;;
4864 esac
4865done
4866else
cristy8b350f62009-11-15 23:12:43 +00004867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004869as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4870See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004871fi
cristycd4c5312009-11-22 01:19:08 +00004872rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004874$as_echo "$ac_cv_exeext" >&6; }
4875
4876rm -f conftest.$ac_ext
4877EXEEXT=$ac_cv_exeext
4878ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880/* end confdefs.h. */
4881#include <stdio.h>
4882int
4883main ()
4884{
4885FILE *f = fopen ("conftest.out", "w");
4886 return ferror (f) || fclose (f) != 0;
4887
4888 ;
4889 return 0;
4890}
4891_ACEOF
4892ac_clean_files="$ac_clean_files conftest.out"
4893# Check that the compiler produces executables we can run. If not, either
4894# the compiler is broken, or we cross compile.
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4896$as_echo_n "checking whether we are cross compiling... " >&6; }
4897if test "$cross_compiling" != yes; then
4898 { { ac_try="$ac_link"
4899case "(($ac_try" in
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4902esac
4903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4904$as_echo "$ac_try_echo"; } >&5
4905 (eval "$ac_link") 2>&5
4906 ac_status=$?
4907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4908 test $ac_status = 0; }
4909 if { ac_try='./conftest$ac_cv_exeext'
4910 { { case "(($ac_try" in
4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912 *) ac_try_echo=$ac_try;;
4913esac
4914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4915$as_echo "$ac_try_echo"; } >&5
4916 (eval "$ac_try") 2>&5
4917 ac_status=$?
4918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4919 test $ac_status = 0; }; }; then
4920 cross_compiling=no
4921 else
4922 if test "$cross_compiling" = maybe; then
4923 cross_compiling=yes
4924 else
4925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004927as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004928If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004929See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004930 fi
4931 fi
4932fi
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4934$as_echo "$cross_compiling" >&6; }
4935
4936rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4937ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004939$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004940if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004941 $as_echo_n "(cached) " >&6
4942else
cristy8b350f62009-11-15 23:12:43 +00004943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004944/* end confdefs.h. */
4945
4946int
4947main ()
4948{
4949
4950 ;
4951 return 0;
4952}
4953_ACEOF
4954rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004955if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004956case "(($ac_try" in
4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4959esac
cristy8b350f62009-11-15 23:12:43 +00004960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4961$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004962 (eval "$ac_compile") 2>&5
4963 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4965 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004966 for ac_file in conftest.o conftest.obj conftest.*; do
4967 test -f "$ac_file" || continue;
4968 case $ac_file in
4969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4970 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4971 break;;
4972 esac
4973done
4974else
4975 $as_echo "$as_me: failed program was:" >&5
4976sed 's/^/| /' conftest.$ac_ext >&5
4977
cristy8b350f62009-11-15 23:12:43 +00004978{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004980as_fn_error $? "cannot compute suffix of object files: cannot compile
4981See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004982fi
cristy3ed852e2009-09-05 21:47:34 +00004983rm -f conftest.$ac_cv_objext conftest.$ac_ext
4984fi
cristy8b350f62009-11-15 23:12:43 +00004985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004986$as_echo "$ac_cv_objext" >&6; }
4987OBJEXT=$ac_cv_objext
4988ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004990$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004991if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004992 $as_echo_n "(cached) " >&6
4993else
cristy8b350f62009-11-15 23:12:43 +00004994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004995/* end confdefs.h. */
4996
4997int
4998main ()
4999{
5000#ifndef __GNUC__
5001 choke me
5002#endif
5003
5004 ;
5005 return 0;
5006}
5007_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005008if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005009 ac_compiler_gnu=yes
5010else
cristy8b350f62009-11-15 23:12:43 +00005011 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005012fi
cristy3ed852e2009-09-05 21:47:34 +00005013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014ac_cv_c_compiler_gnu=$ac_compiler_gnu
5015
5016fi
cristy8b350f62009-11-15 23:12:43 +00005017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005018$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5019if test $ac_compiler_gnu = yes; then
5020 GCC=yes
5021else
5022 GCC=
5023fi
5024ac_test_CFLAGS=${CFLAGS+set}
5025ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005027$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005028if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005029 $as_echo_n "(cached) " >&6
5030else
5031 ac_save_c_werror_flag=$ac_c_werror_flag
5032 ac_c_werror_flag=yes
5033 ac_cv_prog_cc_g=no
5034 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005036/* end confdefs.h. */
5037
5038int
5039main ()
5040{
5041
5042 ;
5043 return 0;
5044}
5045_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005046if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005047 ac_cv_prog_cc_g=yes
5048else
cristy8b350f62009-11-15 23:12:43 +00005049 CFLAGS=""
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005051/* end confdefs.h. */
5052
5053int
5054main ()
5055{
5056
5057 ;
5058 return 0;
5059}
5060_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005061if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005062
cristy8b350f62009-11-15 23:12:43 +00005063else
5064 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005065 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005067/* end confdefs.h. */
5068
5069int
5070main ()
5071{
5072
5073 ;
5074 return 0;
5075}
5076_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005077if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005078 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005079fi
cristy3ed852e2009-09-05 21:47:34 +00005080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081fi
cristy3ed852e2009-09-05 21:47:34 +00005082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083fi
cristy3ed852e2009-09-05 21:47:34 +00005084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5085 ac_c_werror_flag=$ac_save_c_werror_flag
5086fi
cristy8b350f62009-11-15 23:12:43 +00005087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005088$as_echo "$ac_cv_prog_cc_g" >&6; }
5089if test "$ac_test_CFLAGS" = set; then
5090 CFLAGS=$ac_save_CFLAGS
5091elif test $ac_cv_prog_cc_g = yes; then
5092 if test "$GCC" = yes; then
5093 CFLAGS="-g -O2"
5094 else
5095 CFLAGS="-g"
5096 fi
5097else
5098 if test "$GCC" = yes; then
5099 CFLAGS="-O2"
5100 else
5101 CFLAGS=
5102 fi
5103fi
cristy8b350f62009-11-15 23:12:43 +00005104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005105$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005106if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005107 $as_echo_n "(cached) " >&6
5108else
5109 ac_cv_prog_cc_c89=no
5110ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005112/* end confdefs.h. */
5113#include <stdarg.h>
5114#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005115struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005116/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5117struct buf { int x; };
5118FILE * (*rcsopen) (struct buf *, struct stat *, int);
5119static char *e (p, i)
5120 char **p;
5121 int i;
5122{
5123 return p[i];
5124}
5125static char *f (char * (*g) (char **, int), char **p, ...)
5126{
5127 char *s;
5128 va_list v;
5129 va_start (v,p);
5130 s = g (p, va_arg (v,int));
5131 va_end (v);
5132 return s;
5133}
5134
5135/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5136 function prototypes and stuff, but not '\xHH' hex character constants.
5137 These don't provoke an error unfortunately, instead are silently treated
5138 as 'x'. The following induces an error, until -std is added to get
5139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5140 array size at least. It's necessary to write '\x00'==0 to get something
5141 that's true only with -std. */
5142int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5143
5144/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5145 inside strings and character constants. */
5146#define FOO(x) 'x'
5147int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5148
5149int test (int i, double x);
5150struct s1 {int (*f) (int a);};
5151struct s2 {int (*f) (double a);};
5152int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5153int argc;
5154char **argv;
5155int
5156main ()
5157{
5158return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5159 ;
5160 return 0;
5161}
5162_ACEOF
5163for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5164 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5165do
5166 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005167 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005168 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005169fi
cristy3ed852e2009-09-05 21:47:34 +00005170rm -f core conftest.err conftest.$ac_objext
5171 test "x$ac_cv_prog_cc_c89" != "xno" && break
5172done
5173rm -f conftest.$ac_ext
5174CC=$ac_save_CC
5175
5176fi
5177# AC_CACHE_VAL
5178case "x$ac_cv_prog_cc_c89" in
5179 x)
cristy8b350f62009-11-15 23:12:43 +00005180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005181$as_echo "none needed" >&6; } ;;
5182 xno)
cristy8b350f62009-11-15 23:12:43 +00005183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005184$as_echo "unsupported" >&6; } ;;
5185 *)
5186 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005188$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5189esac
cristy8b350f62009-11-15 23:12:43 +00005190if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005191
cristy8b350f62009-11-15 23:12:43 +00005192fi
cristy3ed852e2009-09-05 21:47:34 +00005193
5194ac_ext=c
5195ac_cpp='$CPP $CPPFLAGS'
5196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005199
cristy73bd4a52010-10-05 11:24:23 +00005200depcc="$CC" am_compiler_list=
5201
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5203$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005204if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005205 $as_echo_n "(cached) " >&6
5206else
5207 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5208 # We make a subdir and do the tests there. Otherwise we can end up
5209 # making bogus files that we don't know about and never remove. For
5210 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005211 # making a dummy file named 'D' -- because '-MD' means "put the output
5212 # in D".
cristy7247bba2012-02-05 16:37:27 +00005213 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005214 mkdir conftest.dir
5215 # Copy depcomp to subdir because otherwise we won't find it if we're
5216 # using a relative directory.
5217 cp "$am_depcomp" conftest.dir
5218 cd conftest.dir
5219 # We will build objects and dependencies in a subdirectory because
5220 # it helps to detect inapplicable dependency modes. For instance
5221 # both Tru64's cc and ICC support -MD to output dependencies as a
5222 # side effect of compilation, but ICC will put the dependencies in
5223 # the current directory while Tru64 will put them in the object
5224 # directory.
5225 mkdir sub
5226
5227 am_cv_CC_dependencies_compiler_type=none
5228 if test "$am_compiler_list" = ""; then
5229 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5230 fi
5231 am__universal=false
5232 case " $depcc " in #(
5233 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5234 esac
5235
5236 for depmode in $am_compiler_list; do
5237 # Setup a source with many dependencies, because some compilers
5238 # like to wrap large dependency lists on column 80 (with \), and
5239 # we should not choose a depcomp mode which is confused by this.
5240 #
5241 # We need to recreate these files for each test, as the compiler may
5242 # overwrite some of them when testing with obscure command lines.
5243 # This happens at least with the AIX C compiler.
5244 : > sub/conftest.c
5245 for i in 1 2 3 4 5 6; do
5246 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005247 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5248 # Solaris 10 /bin/sh.
5249 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005250 done
5251 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5252
cristyc0890a62012-07-19 00:18:20 +00005253 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005254 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005255 # handle '-M -o', and we need to detect this. Also, some Intel
5256 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005257 am__obj=sub/conftest.${OBJEXT-o}
5258 am__minus_obj="-o $am__obj"
5259 case $depmode in
5260 gcc)
5261 # This depmode causes a compiler race in universal mode.
5262 test "$am__universal" = false || continue
5263 ;;
5264 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005265 # After this tag, mechanisms are not by side-effect, so they'll
5266 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005267 if test "x$enable_dependency_tracking" = xyes; then
5268 continue
5269 else
5270 break
5271 fi
5272 ;;
cristy7247bba2012-02-05 16:37:27 +00005273 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005274 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005275 # not run yet. These depmodes are late enough in the game, and
5276 # so weak that their functioning should not be impacted.
5277 am__obj=conftest.${OBJEXT-o}
5278 am__minus_obj=
5279 ;;
5280 none) break ;;
5281 esac
5282 if depmode=$depmode \
5283 source=sub/conftest.c object=$am__obj \
5284 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5285 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5286 >/dev/null 2>conftest.err &&
5287 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5288 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5289 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5290 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5291 # icc doesn't choke on unknown options, it will just issue warnings
5292 # or remarks (even with -Werror). So we grep stderr for any message
5293 # that says an option was ignored or not supported.
5294 # When given -MP, icc 7.0 and 7.1 complain thusly:
5295 # icc: Command line warning: ignoring option '-M'; no argument required
5296 # The diagnosis changed in icc 8.0:
5297 # icc: Command line remark: option '-MP' not supported
5298 if (grep 'ignoring option' conftest.err ||
5299 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5300 am_cv_CC_dependencies_compiler_type=$depmode
5301 break
5302 fi
5303 fi
5304 done
5305
5306 cd ..
5307 rm -rf conftest.dir
5308else
5309 am_cv_CC_dependencies_compiler_type=none
5310fi
5311
5312fi
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5314$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5315CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5316
5317 if
5318 test "x$enable_dependency_tracking" != xno \
5319 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5320 am__fastdepCC_TRUE=
5321 am__fastdepCC_FALSE='#'
5322else
5323 am__fastdepCC_TRUE='#'
5324 am__fastdepCC_FALSE=
5325fi
5326
5327
cristy3ed852e2009-09-05 21:47:34 +00005328
cristya0b81c32010-01-22 02:54:33 +00005329ac_ext=c
5330ac_cpp='$CPP $CPPFLAGS'
5331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5333ac_compiler_gnu=$ac_cv_c_compiler_gnu
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5335$as_echo_n "checking how to run the C preprocessor... " >&6; }
5336# On Suns, sometimes $CPP names a directory.
5337if test -n "$CPP" && test -d "$CPP"; then
5338 CPP=
5339fi
5340if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005341 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005342 $as_echo_n "(cached) " >&6
5343else
5344 # Double quotes because CPP needs to be expanded
5345 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5346 do
5347 ac_preproc_ok=false
5348for ac_c_preproc_warn_flag in '' yes
5349do
5350 # Use a header file that comes with gcc, so configuring glibc
5351 # with a fresh cross-compiler works.
5352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5353 # <limits.h> exists even on freestanding compilers.
5354 # On the NeXT, cc -E runs the code through the compiler's parser,
5355 # not just through cpp. "Syntax error" is here to catch this case.
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357/* end confdefs.h. */
5358#ifdef __STDC__
5359# include <limits.h>
5360#else
5361# include <assert.h>
5362#endif
5363 Syntax error
5364_ACEOF
5365if ac_fn_c_try_cpp "$LINENO"; then :
5366
5367else
5368 # Broken: fails on valid input.
5369continue
5370fi
cristyda16f162011-02-19 23:52:17 +00005371rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005372
5373 # OK, works on sane cases. Now check whether nonexistent headers
5374 # can be detected and how.
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376/* end confdefs.h. */
5377#include <ac_nonexistent.h>
5378_ACEOF
5379if ac_fn_c_try_cpp "$LINENO"; then :
5380 # Broken: success on invalid input.
5381continue
5382else
5383 # Passes both tests.
5384ac_preproc_ok=:
5385break
5386fi
cristyda16f162011-02-19 23:52:17 +00005387rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005388
5389done
5390# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005391rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005392if $ac_preproc_ok; then :
5393 break
5394fi
5395
5396 done
5397 ac_cv_prog_CPP=$CPP
5398
5399fi
5400 CPP=$ac_cv_prog_CPP
5401else
5402 ac_cv_prog_CPP=$CPP
5403fi
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5405$as_echo "$CPP" >&6; }
5406ac_preproc_ok=false
5407for ac_c_preproc_warn_flag in '' yes
5408do
5409 # Use a header file that comes with gcc, so configuring glibc
5410 # with a fresh cross-compiler works.
5411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5412 # <limits.h> exists even on freestanding compilers.
5413 # On the NeXT, cc -E runs the code through the compiler's parser,
5414 # not just through cpp. "Syntax error" is here to catch this case.
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416/* end confdefs.h. */
5417#ifdef __STDC__
5418# include <limits.h>
5419#else
5420# include <assert.h>
5421#endif
5422 Syntax error
5423_ACEOF
5424if ac_fn_c_try_cpp "$LINENO"; then :
5425
5426else
5427 # Broken: fails on valid input.
5428continue
5429fi
cristyda16f162011-02-19 23:52:17 +00005430rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005431
5432 # OK, works on sane cases. Now check whether nonexistent headers
5433 # can be detected and how.
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h. */
5436#include <ac_nonexistent.h>
5437_ACEOF
5438if ac_fn_c_try_cpp "$LINENO"; then :
5439 # Broken: success on invalid input.
5440continue
5441else
5442 # Passes both tests.
5443ac_preproc_ok=:
5444break
5445fi
cristyda16f162011-02-19 23:52:17 +00005446rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005447
5448done
5449# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005450rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005451if $ac_preproc_ok; then :
5452
5453else
5454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005456as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5457See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005458fi
5459
5460ac_ext=c
5461ac_cpp='$CPP $CPPFLAGS'
5462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5464ac_compiler_gnu=$ac_cv_c_compiler_gnu
5465
5466
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5468$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005469if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005470 $as_echo_n "(cached) " >&6
5471else
5472 if test -z "$GREP"; then
5473 ac_path_GREP_found=false
5474 # Loop through the user's path and test for each of PROGNAME-LIST
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5477do
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
5480 for ac_prog in grep ggrep; do
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005483 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005484# Check for GNU ac_path_GREP and select it if it is found.
5485 # Check for GNU $ac_path_GREP
5486case `"$ac_path_GREP" --version 2>&1` in
5487*GNU*)
5488 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5489*)
5490 ac_count=0
5491 $as_echo_n 0123456789 >"conftest.in"
5492 while :
5493 do
5494 cat "conftest.in" "conftest.in" >"conftest.tmp"
5495 mv "conftest.tmp" "conftest.in"
5496 cp "conftest.in" "conftest.nl"
5497 $as_echo 'GREP' >> "conftest.nl"
5498 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5500 as_fn_arith $ac_count + 1 && ac_count=$as_val
5501 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5502 # Best one so far, save it but keep looking for a better one
5503 ac_cv_path_GREP="$ac_path_GREP"
5504 ac_path_GREP_max=$ac_count
5505 fi
5506 # 10*(2^10) chars as input seems more than enough
5507 test $ac_count -gt 10 && break
5508 done
5509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5510esac
5511
5512 $ac_path_GREP_found && break 3
5513 done
5514 done
5515 done
5516IFS=$as_save_IFS
5517 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005518 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005519 fi
5520else
5521 ac_cv_path_GREP=$GREP
5522fi
5523
5524fi
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5526$as_echo "$ac_cv_path_GREP" >&6; }
5527 GREP="$ac_cv_path_GREP"
5528
5529
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5531$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005532if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005533 $as_echo_n "(cached) " >&6
5534else
5535 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5536 then ac_cv_path_EGREP="$GREP -E"
5537 else
5538 if test -z "$EGREP"; then
5539 ac_path_EGREP_found=false
5540 # Loop through the user's path and test for each of PROGNAME-LIST
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5543do
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_prog in egrep; do
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005549 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005550# Check for GNU ac_path_EGREP and select it if it is found.
5551 # Check for GNU $ac_path_EGREP
5552case `"$ac_path_EGREP" --version 2>&1` in
5553*GNU*)
5554 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5555*)
5556 ac_count=0
5557 $as_echo_n 0123456789 >"conftest.in"
5558 while :
5559 do
5560 cat "conftest.in" "conftest.in" >"conftest.tmp"
5561 mv "conftest.tmp" "conftest.in"
5562 cp "conftest.in" "conftest.nl"
5563 $as_echo 'EGREP' >> "conftest.nl"
5564 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5565 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5566 as_fn_arith $ac_count + 1 && ac_count=$as_val
5567 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5568 # Best one so far, save it but keep looking for a better one
5569 ac_cv_path_EGREP="$ac_path_EGREP"
5570 ac_path_EGREP_max=$ac_count
5571 fi
5572 # 10*(2^10) chars as input seems more than enough
5573 test $ac_count -gt 10 && break
5574 done
5575 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5576esac
5577
5578 $ac_path_EGREP_found && break 3
5579 done
5580 done
5581 done
5582IFS=$as_save_IFS
5583 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005584 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005585 fi
5586else
5587 ac_cv_path_EGREP=$EGREP
5588fi
5589
5590 fi
5591fi
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5593$as_echo "$ac_cv_path_EGREP" >&6; }
5594 EGREP="$ac_cv_path_EGREP"
5595
5596
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5598$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005599if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005600 $as_echo_n "(cached) " >&6
5601else
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603/* end confdefs.h. */
5604#include <stdlib.h>
5605#include <stdarg.h>
5606#include <string.h>
5607#include <float.h>
5608
5609int
5610main ()
5611{
5612
5613 ;
5614 return 0;
5615}
5616_ACEOF
5617if ac_fn_c_try_compile "$LINENO"; then :
5618 ac_cv_header_stdc=yes
5619else
5620 ac_cv_header_stdc=no
5621fi
5622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623
5624if test $ac_cv_header_stdc = yes; then
5625 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627/* end confdefs.h. */
5628#include <string.h>
5629
5630_ACEOF
5631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5632 $EGREP "memchr" >/dev/null 2>&1; then :
5633
5634else
5635 ac_cv_header_stdc=no
5636fi
5637rm -f conftest*
5638
5639fi
5640
5641if test $ac_cv_header_stdc = yes; then
5642 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644/* end confdefs.h. */
5645#include <stdlib.h>
5646
5647_ACEOF
5648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5649 $EGREP "free" >/dev/null 2>&1; then :
5650
5651else
5652 ac_cv_header_stdc=no
5653fi
5654rm -f conftest*
5655
5656fi
5657
5658if test $ac_cv_header_stdc = yes; then
5659 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5660 if test "$cross_compiling" = yes; then :
5661 :
5662else
5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664/* end confdefs.h. */
5665#include <ctype.h>
5666#include <stdlib.h>
5667#if ((' ' & 0x0FF) == 0x020)
5668# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5669# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5670#else
5671# define ISLOWER(c) \
5672 (('a' <= (c) && (c) <= 'i') \
5673 || ('j' <= (c) && (c) <= 'r') \
5674 || ('s' <= (c) && (c) <= 'z'))
5675# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5676#endif
5677
5678#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5679int
5680main ()
5681{
5682 int i;
5683 for (i = 0; i < 256; i++)
5684 if (XOR (islower (i), ISLOWER (i))
5685 || toupper (i) != TOUPPER (i))
5686 return 2;
5687 return 0;
5688}
5689_ACEOF
5690if ac_fn_c_try_run "$LINENO"; then :
5691
5692else
5693 ac_cv_header_stdc=no
5694fi
5695rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5696 conftest.$ac_objext conftest.beam conftest.$ac_ext
5697fi
5698
5699fi
5700fi
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5702$as_echo "$ac_cv_header_stdc" >&6; }
5703if test $ac_cv_header_stdc = yes; then
5704
5705$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5706
5707fi
5708
5709# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5710for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5711 inttypes.h stdint.h unistd.h
5712do :
5713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5714ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5715"
cristy98dddb52010-11-04 00:30:15 +00005716if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005717 cat >>confdefs.h <<_ACEOF
5718#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5719_ACEOF
5720
5721fi
5722
5723done
5724
5725
5726
5727 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 +00005728if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005729 MINIX=yes
5730else
5731 MINIX=
5732fi
5733
5734
5735 if test "$MINIX" = yes; then
5736
5737$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5738
5739
5740$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5741
5742
5743$as_echo "#define _MINIX 1" >>confdefs.h
5744
5745 fi
5746
5747
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5749$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005750if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005751 $as_echo_n "(cached) " >&6
5752else
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754/* end confdefs.h. */
5755
cristy14fefe52012-05-21 00:59:18 +00005756# define __EXTENSIONS__ 1
5757 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005758int
5759main ()
5760{
5761
5762 ;
5763 return 0;
5764}
5765_ACEOF
5766if ac_fn_c_try_compile "$LINENO"; then :
5767 ac_cv_safe_to_define___extensions__=yes
5768else
5769 ac_cv_safe_to_define___extensions__=no
5770fi
5771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772fi
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5774$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5775 test $ac_cv_safe_to_define___extensions__ = yes &&
5776 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5777
5778 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5779
5780 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5781
5782 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5783
5784 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5785
5786
5787
5788# Check for programs
5789ac_ext=c
5790ac_cpp='$CPP $CPPFLAGS'
5791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5793ac_compiler_gnu=$ac_cv_c_compiler_gnu
5794if test -n "$ac_tool_prefix"; then
5795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5796set dummy ${ac_tool_prefix}gcc; ac_word=$2
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005799if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005800 $as_echo_n "(cached) " >&6
5801else
5802 if test -n "$CC"; then
5803 ac_cv_prog_CC="$CC" # Let the user override the test.
5804else
5805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806for as_dir in $PATH
5807do
5808 IFS=$as_save_IFS
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005812 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 2
5815 fi
5816done
5817 done
5818IFS=$as_save_IFS
5819
5820fi
5821fi
5822CC=$ac_cv_prog_CC
5823if test -n "$CC"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5825$as_echo "$CC" >&6; }
5826else
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828$as_echo "no" >&6; }
5829fi
5830
5831
5832fi
5833if test -z "$ac_cv_prog_CC"; then
5834 ac_ct_CC=$CC
5835 # Extract the first word of "gcc", so it can be a program name with args.
5836set dummy gcc; ac_word=$2
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005839if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005840 $as_echo_n "(cached) " >&6
5841else
5842 if test -n "$ac_ct_CC"; then
5843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5844else
5845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH
5847do
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005852 ac_cv_prog_ac_ct_CC="gcc"
5853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 break 2
5855 fi
5856done
5857 done
5858IFS=$as_save_IFS
5859
5860fi
5861fi
5862ac_ct_CC=$ac_cv_prog_ac_ct_CC
5863if test -n "$ac_ct_CC"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5865$as_echo "$ac_ct_CC" >&6; }
5866else
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868$as_echo "no" >&6; }
5869fi
5870
5871 if test "x$ac_ct_CC" = x; then
5872 CC=""
5873 else
5874 case $cross_compiling:$ac_tool_warned in
5875yes:)
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5878ac_tool_warned=yes ;;
5879esac
5880 CC=$ac_ct_CC
5881 fi
5882else
5883 CC="$ac_cv_prog_CC"
5884fi
5885
5886if test -z "$CC"; then
5887 if test -n "$ac_tool_prefix"; then
5888 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5889set dummy ${ac_tool_prefix}cc; ac_word=$2
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5891$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005892if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005893 $as_echo_n "(cached) " >&6
5894else
5895 if test -n "$CC"; then
5896 ac_cv_prog_CC="$CC" # Let the user override the test.
5897else
5898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899for as_dir in $PATH
5900do
5901 IFS=$as_save_IFS
5902 test -z "$as_dir" && as_dir=.
5903 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005905 ac_cv_prog_CC="${ac_tool_prefix}cc"
5906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 break 2
5908 fi
5909done
5910 done
5911IFS=$as_save_IFS
5912
5913fi
5914fi
5915CC=$ac_cv_prog_CC
5916if test -n "$CC"; then
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5918$as_echo "$CC" >&6; }
5919else
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5921$as_echo "no" >&6; }
5922fi
5923
5924
5925 fi
5926fi
5927if test -z "$CC"; then
5928 # Extract the first word of "cc", so it can be a program name with args.
5929set dummy cc; ac_word=$2
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005932if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005933 $as_echo_n "(cached) " >&6
5934else
5935 if test -n "$CC"; then
5936 ac_cv_prog_CC="$CC" # Let the user override the test.
5937else
5938 ac_prog_rejected=no
5939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940for as_dir in $PATH
5941do
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5947 ac_prog_rejected=yes
5948 continue
5949 fi
5950 ac_cv_prog_CC="cc"
5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5953 fi
5954done
5955 done
5956IFS=$as_save_IFS
5957
5958if test $ac_prog_rejected = yes; then
5959 # We found a bogon in the path, so make sure we never use it.
5960 set dummy $ac_cv_prog_CC
5961 shift
5962 if test $# != 0; then
5963 # We chose a different compiler from the bogus one.
5964 # However, it has the same basename, so the bogon will be chosen
5965 # first if we set CC to just the basename; use the full file name.
5966 shift
5967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5968 fi
5969fi
5970fi
5971fi
5972CC=$ac_cv_prog_CC
5973if test -n "$CC"; then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5975$as_echo "$CC" >&6; }
5976else
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978$as_echo "no" >&6; }
5979fi
5980
5981
5982fi
5983if test -z "$CC"; then
5984 if test -n "$ac_tool_prefix"; then
5985 for ac_prog in cl.exe
5986 do
5987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5988set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005991if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005992 $as_echo_n "(cached) " >&6
5993else
5994 if test -n "$CC"; then
5995 ac_cv_prog_CC="$CC" # Let the user override the test.
5996else
5997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998for as_dir in $PATH
5999do
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 break 2
6007 fi
6008done
6009 done
6010IFS=$as_save_IFS
6011
6012fi
6013fi
6014CC=$ac_cv_prog_CC
6015if test -n "$CC"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6017$as_echo "$CC" >&6; }
6018else
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020$as_echo "no" >&6; }
6021fi
6022
6023
6024 test -n "$CC" && break
6025 done
6026fi
6027if test -z "$CC"; then
6028 ac_ct_CC=$CC
6029 for ac_prog in cl.exe
6030do
6031 # Extract the first word of "$ac_prog", so it can be a program name with args.
6032set dummy $ac_prog; ac_word=$2
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006035if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006036 $as_echo_n "(cached) " >&6
6037else
6038 if test -n "$ac_ct_CC"; then
6039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6040else
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006048 ac_cv_prog_ac_ct_CC="$ac_prog"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6051 fi
6052done
6053 done
6054IFS=$as_save_IFS
6055
6056fi
6057fi
6058ac_ct_CC=$ac_cv_prog_ac_ct_CC
6059if test -n "$ac_ct_CC"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6061$as_echo "$ac_ct_CC" >&6; }
6062else
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064$as_echo "no" >&6; }
6065fi
6066
6067
6068 test -n "$ac_ct_CC" && break
6069done
6070
6071 if test "x$ac_ct_CC" = x; then
6072 CC=""
6073 else
6074 case $cross_compiling:$ac_tool_warned in
6075yes:)
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6078ac_tool_warned=yes ;;
6079esac
6080 CC=$ac_ct_CC
6081 fi
6082fi
6083
6084fi
6085
6086
6087test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006089as_fn_error $? "no acceptable C compiler found in \$PATH
6090See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006091
6092# Provide some information about the compiler.
6093$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6094set X $ac_compile
6095ac_compiler=$2
6096for ac_option in --version -v -V -qversion; do
6097 { { ac_try="$ac_compiler $ac_option >&5"
6098case "(($ac_try" in
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6101esac
6102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6103$as_echo "$ac_try_echo"; } >&5
6104 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6105 ac_status=$?
6106 if test -s conftest.err; then
6107 sed '10a\
6108... rest of stderr output deleted ...
6109 10q' conftest.err >conftest.er1
6110 cat conftest.er1 >&5
6111 fi
6112 rm -f conftest.er1 conftest.err
6113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6114 test $ac_status = 0; }
6115done
6116
6117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6118$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006119if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006120 $as_echo_n "(cached) " >&6
6121else
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123/* end confdefs.h. */
6124
6125int
6126main ()
6127{
6128#ifndef __GNUC__
6129 choke me
6130#endif
6131
6132 ;
6133 return 0;
6134}
6135_ACEOF
6136if ac_fn_c_try_compile "$LINENO"; then :
6137 ac_compiler_gnu=yes
6138else
6139 ac_compiler_gnu=no
6140fi
6141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6142ac_cv_c_compiler_gnu=$ac_compiler_gnu
6143
6144fi
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6146$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6147if test $ac_compiler_gnu = yes; then
6148 GCC=yes
6149else
6150 GCC=
6151fi
6152ac_test_CFLAGS=${CFLAGS+set}
6153ac_save_CFLAGS=$CFLAGS
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6155$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006156if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006157 $as_echo_n "(cached) " >&6
6158else
6159 ac_save_c_werror_flag=$ac_c_werror_flag
6160 ac_c_werror_flag=yes
6161 ac_cv_prog_cc_g=no
6162 CFLAGS="-g"
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164/* end confdefs.h. */
6165
6166int
6167main ()
6168{
6169
6170 ;
6171 return 0;
6172}
6173_ACEOF
6174if ac_fn_c_try_compile "$LINENO"; then :
6175 ac_cv_prog_cc_g=yes
6176else
6177 CFLAGS=""
6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179/* end confdefs.h. */
6180
6181int
6182main ()
6183{
6184
6185 ;
6186 return 0;
6187}
6188_ACEOF
6189if ac_fn_c_try_compile "$LINENO"; then :
6190
6191else
6192 ac_c_werror_flag=$ac_save_c_werror_flag
6193 CFLAGS="-g"
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195/* end confdefs.h. */
6196
6197int
6198main ()
6199{
6200
6201 ;
6202 return 0;
6203}
6204_ACEOF
6205if ac_fn_c_try_compile "$LINENO"; then :
6206 ac_cv_prog_cc_g=yes
6207fi
6208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209fi
6210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211fi
6212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213 ac_c_werror_flag=$ac_save_c_werror_flag
6214fi
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6216$as_echo "$ac_cv_prog_cc_g" >&6; }
6217if test "$ac_test_CFLAGS" = set; then
6218 CFLAGS=$ac_save_CFLAGS
6219elif test $ac_cv_prog_cc_g = yes; then
6220 if test "$GCC" = yes; then
6221 CFLAGS="-g -O2"
6222 else
6223 CFLAGS="-g"
6224 fi
6225else
6226 if test "$GCC" = yes; then
6227 CFLAGS="-O2"
6228 else
6229 CFLAGS=
6230 fi
6231fi
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6233$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006234if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006235 $as_echo_n "(cached) " >&6
6236else
6237 ac_cv_prog_cc_c89=no
6238ac_save_CC=$CC
6239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240/* end confdefs.h. */
6241#include <stdarg.h>
6242#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006243struct stat;
cristya0b81c32010-01-22 02:54:33 +00006244/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6245struct buf { int x; };
6246FILE * (*rcsopen) (struct buf *, struct stat *, int);
6247static char *e (p, i)
6248 char **p;
6249 int i;
6250{
6251 return p[i];
6252}
6253static char *f (char * (*g) (char **, int), char **p, ...)
6254{
6255 char *s;
6256 va_list v;
6257 va_start (v,p);
6258 s = g (p, va_arg (v,int));
6259 va_end (v);
6260 return s;
6261}
6262
6263/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6264 function prototypes and stuff, but not '\xHH' hex character constants.
6265 These don't provoke an error unfortunately, instead are silently treated
6266 as 'x'. The following induces an error, until -std is added to get
6267 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6268 array size at least. It's necessary to write '\x00'==0 to get something
6269 that's true only with -std. */
6270int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6271
6272/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6273 inside strings and character constants. */
6274#define FOO(x) 'x'
6275int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6276
6277int test (int i, double x);
6278struct s1 {int (*f) (int a);};
6279struct s2 {int (*f) (double a);};
6280int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6281int argc;
6282char **argv;
6283int
6284main ()
6285{
6286return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6287 ;
6288 return 0;
6289}
6290_ACEOF
6291for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6292 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6293do
6294 CC="$ac_save_CC $ac_arg"
6295 if ac_fn_c_try_compile "$LINENO"; then :
6296 ac_cv_prog_cc_c89=$ac_arg
6297fi
6298rm -f core conftest.err conftest.$ac_objext
6299 test "x$ac_cv_prog_cc_c89" != "xno" && break
6300done
6301rm -f conftest.$ac_ext
6302CC=$ac_save_CC
6303
6304fi
6305# AC_CACHE_VAL
6306case "x$ac_cv_prog_cc_c89" in
6307 x)
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6309$as_echo "none needed" >&6; } ;;
6310 xno)
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6312$as_echo "unsupported" >&6; } ;;
6313 *)
6314 CC="$CC $ac_cv_prog_cc_c89"
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6316$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6317esac
6318if test "x$ac_cv_prog_cc_c89" != xno; then :
6319
6320fi
6321
6322ac_ext=c
6323ac_cpp='$CPP $CPPFLAGS'
6324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326ac_compiler_gnu=$ac_cv_c_compiler_gnu
6327
cristy73bd4a52010-10-05 11:24:23 +00006328depcc="$CC" am_compiler_list=
6329
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6331$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006332if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006333 $as_echo_n "(cached) " >&6
6334else
6335 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6336 # We make a subdir and do the tests there. Otherwise we can end up
6337 # making bogus files that we don't know about and never remove. For
6338 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006339 # making a dummy file named 'D' -- because '-MD' means "put the output
6340 # in D".
cristy7247bba2012-02-05 16:37:27 +00006341 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006342 mkdir conftest.dir
6343 # Copy depcomp to subdir because otherwise we won't find it if we're
6344 # using a relative directory.
6345 cp "$am_depcomp" conftest.dir
6346 cd conftest.dir
6347 # We will build objects and dependencies in a subdirectory because
6348 # it helps to detect inapplicable dependency modes. For instance
6349 # both Tru64's cc and ICC support -MD to output dependencies as a
6350 # side effect of compilation, but ICC will put the dependencies in
6351 # the current directory while Tru64 will put them in the object
6352 # directory.
6353 mkdir sub
6354
6355 am_cv_CC_dependencies_compiler_type=none
6356 if test "$am_compiler_list" = ""; then
6357 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6358 fi
6359 am__universal=false
6360 case " $depcc " in #(
6361 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6362 esac
6363
6364 for depmode in $am_compiler_list; do
6365 # Setup a source with many dependencies, because some compilers
6366 # like to wrap large dependency lists on column 80 (with \), and
6367 # we should not choose a depcomp mode which is confused by this.
6368 #
6369 # We need to recreate these files for each test, as the compiler may
6370 # overwrite some of them when testing with obscure command lines.
6371 # This happens at least with the AIX C compiler.
6372 : > sub/conftest.c
6373 for i in 1 2 3 4 5 6; do
6374 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006375 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6376 # Solaris 10 /bin/sh.
6377 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006378 done
6379 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6380
cristyc0890a62012-07-19 00:18:20 +00006381 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006382 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006383 # handle '-M -o', and we need to detect this. Also, some Intel
6384 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006385 am__obj=sub/conftest.${OBJEXT-o}
6386 am__minus_obj="-o $am__obj"
6387 case $depmode in
6388 gcc)
6389 # This depmode causes a compiler race in universal mode.
6390 test "$am__universal" = false || continue
6391 ;;
6392 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006393 # After this tag, mechanisms are not by side-effect, so they'll
6394 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006395 if test "x$enable_dependency_tracking" = xyes; then
6396 continue
6397 else
6398 break
6399 fi
6400 ;;
cristy7247bba2012-02-05 16:37:27 +00006401 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006402 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006403 # not run yet. These depmodes are late enough in the game, and
6404 # so weak that their functioning should not be impacted.
6405 am__obj=conftest.${OBJEXT-o}
6406 am__minus_obj=
6407 ;;
6408 none) break ;;
6409 esac
6410 if depmode=$depmode \
6411 source=sub/conftest.c object=$am__obj \
6412 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6413 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6414 >/dev/null 2>conftest.err &&
6415 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6416 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6417 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6418 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6419 # icc doesn't choke on unknown options, it will just issue warnings
6420 # or remarks (even with -Werror). So we grep stderr for any message
6421 # that says an option was ignored or not supported.
6422 # When given -MP, icc 7.0 and 7.1 complain thusly:
6423 # icc: Command line warning: ignoring option '-M'; no argument required
6424 # The diagnosis changed in icc 8.0:
6425 # icc: Command line remark: option '-MP' not supported
6426 if (grep 'ignoring option' conftest.err ||
6427 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6428 am_cv_CC_dependencies_compiler_type=$depmode
6429 break
6430 fi
6431 fi
6432 done
6433
6434 cd ..
6435 rm -rf conftest.dir
6436else
6437 am_cv_CC_dependencies_compiler_type=none
6438fi
6439
6440fi
6441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6442$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6443CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6444
6445 if
6446 test "x$enable_dependency_tracking" != xno \
6447 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6448 am__fastdepCC_TRUE=
6449 am__fastdepCC_FALSE='#'
6450else
6451 am__fastdepCC_TRUE='#'
6452 am__fastdepCC_FALSE=
6453fi
6454
6455
cristy95646052009-11-28 23:05:30 +00006456ac_ext=cpp
6457ac_cpp='$CXXCPP $CPPFLAGS'
6458ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6459ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6460ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6461if test -z "$CXX"; then
6462 if test -n "$CCC"; then
6463 CXX=$CCC
6464 else
6465 if test -n "$ac_tool_prefix"; then
6466 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6467 do
6468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6469set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006472if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006473 $as_echo_n "(cached) " >&6
6474else
6475 if test -n "$CXX"; then
6476 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6477else
6478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479for as_dir in $PATH
6480do
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006485 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 break 2
6488 fi
6489done
6490 done
6491IFS=$as_save_IFS
6492
6493fi
6494fi
6495CXX=$ac_cv_prog_CXX
6496if test -n "$CXX"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6498$as_echo "$CXX" >&6; }
6499else
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501$as_echo "no" >&6; }
6502fi
6503
6504
6505 test -n "$CXX" && break
6506 done
6507fi
6508if test -z "$CXX"; then
6509 ac_ct_CXX=$CXX
6510 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6511do
6512 # Extract the first word of "$ac_prog", so it can be a program name with args.
6513set dummy $ac_prog; ac_word=$2
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006516if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006517 $as_echo_n "(cached) " >&6
6518else
6519 if test -n "$ac_ct_CXX"; then
6520 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6521else
6522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523for as_dir in $PATH
6524do
6525 IFS=$as_save_IFS
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006529 ac_cv_prog_ac_ct_CXX="$ac_prog"
6530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6531 break 2
6532 fi
6533done
6534 done
6535IFS=$as_save_IFS
6536
6537fi
6538fi
6539ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6540if test -n "$ac_ct_CXX"; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6542$as_echo "$ac_ct_CXX" >&6; }
6543else
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545$as_echo "no" >&6; }
6546fi
6547
6548
6549 test -n "$ac_ct_CXX" && break
6550done
6551
6552 if test "x$ac_ct_CXX" = x; then
6553 CXX="g++"
6554 else
6555 case $cross_compiling:$ac_tool_warned in
6556yes:)
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6558$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6559ac_tool_warned=yes ;;
6560esac
6561 CXX=$ac_ct_CXX
6562 fi
6563fi
6564
6565 fi
6566fi
6567# Provide some information about the compiler.
6568$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6569set X $ac_compile
6570ac_compiler=$2
6571for ac_option in --version -v -V -qversion; do
6572 { { ac_try="$ac_compiler $ac_option >&5"
6573case "(($ac_try" in
6574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6575 *) ac_try_echo=$ac_try;;
6576esac
6577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6578$as_echo "$ac_try_echo"; } >&5
6579 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6580 ac_status=$?
6581 if test -s conftest.err; then
6582 sed '10a\
6583... rest of stderr output deleted ...
6584 10q' conftest.err >conftest.er1
6585 cat conftest.er1 >&5
6586 fi
6587 rm -f conftest.er1 conftest.err
6588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6589 test $ac_status = 0; }
6590done
6591
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6593$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006594if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006595 $as_echo_n "(cached) " >&6
6596else
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598/* end confdefs.h. */
6599
6600int
6601main ()
6602{
6603#ifndef __GNUC__
6604 choke me
6605#endif
6606
6607 ;
6608 return 0;
6609}
6610_ACEOF
6611if ac_fn_cxx_try_compile "$LINENO"; then :
6612 ac_compiler_gnu=yes
6613else
6614 ac_compiler_gnu=no
6615fi
6616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6618
6619fi
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6621$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6622if test $ac_compiler_gnu = yes; then
6623 GXX=yes
6624else
6625 GXX=
6626fi
6627ac_test_CXXFLAGS=${CXXFLAGS+set}
6628ac_save_CXXFLAGS=$CXXFLAGS
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6630$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006631if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006632 $as_echo_n "(cached) " >&6
6633else
6634 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6635 ac_cxx_werror_flag=yes
6636 ac_cv_prog_cxx_g=no
6637 CXXFLAGS="-g"
6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639/* end confdefs.h. */
6640
6641int
6642main ()
6643{
6644
6645 ;
6646 return 0;
6647}
6648_ACEOF
6649if ac_fn_cxx_try_compile "$LINENO"; then :
6650 ac_cv_prog_cxx_g=yes
6651else
6652 CXXFLAGS=""
6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654/* end confdefs.h. */
6655
6656int
6657main ()
6658{
6659
6660 ;
6661 return 0;
6662}
6663_ACEOF
6664if ac_fn_cxx_try_compile "$LINENO"; then :
6665
6666else
6667 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6668 CXXFLAGS="-g"
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670/* end confdefs.h. */
6671
6672int
6673main ()
6674{
6675
6676 ;
6677 return 0;
6678}
6679_ACEOF
6680if ac_fn_cxx_try_compile "$LINENO"; then :
6681 ac_cv_prog_cxx_g=yes
6682fi
6683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684fi
6685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6686fi
6687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6689fi
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6691$as_echo "$ac_cv_prog_cxx_g" >&6; }
6692if test "$ac_test_CXXFLAGS" = set; then
6693 CXXFLAGS=$ac_save_CXXFLAGS
6694elif test $ac_cv_prog_cxx_g = yes; then
6695 if test "$GXX" = yes; then
6696 CXXFLAGS="-g -O2"
6697 else
6698 CXXFLAGS="-g"
6699 fi
6700else
6701 if test "$GXX" = yes; then
6702 CXXFLAGS="-O2"
6703 else
6704 CXXFLAGS=
6705 fi
6706fi
6707ac_ext=c
6708ac_cpp='$CPP $CPPFLAGS'
6709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6711ac_compiler_gnu=$ac_cv_c_compiler_gnu
6712
cristy73bd4a52010-10-05 11:24:23 +00006713depcc="$CXX" am_compiler_list=
6714
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6716$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006717if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006718 $as_echo_n "(cached) " >&6
6719else
6720 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6721 # We make a subdir and do the tests there. Otherwise we can end up
6722 # making bogus files that we don't know about and never remove. For
6723 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006724 # making a dummy file named 'D' -- because '-MD' means "put the output
6725 # in D".
cristy7247bba2012-02-05 16:37:27 +00006726 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006727 mkdir conftest.dir
6728 # Copy depcomp to subdir because otherwise we won't find it if we're
6729 # using a relative directory.
6730 cp "$am_depcomp" conftest.dir
6731 cd conftest.dir
6732 # We will build objects and dependencies in a subdirectory because
6733 # it helps to detect inapplicable dependency modes. For instance
6734 # both Tru64's cc and ICC support -MD to output dependencies as a
6735 # side effect of compilation, but ICC will put the dependencies in
6736 # the current directory while Tru64 will put them in the object
6737 # directory.
6738 mkdir sub
6739
6740 am_cv_CXX_dependencies_compiler_type=none
6741 if test "$am_compiler_list" = ""; then
6742 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6743 fi
6744 am__universal=false
6745 case " $depcc " in #(
6746 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6747 esac
6748
6749 for depmode in $am_compiler_list; do
6750 # Setup a source with many dependencies, because some compilers
6751 # like to wrap large dependency lists on column 80 (with \), and
6752 # we should not choose a depcomp mode which is confused by this.
6753 #
6754 # We need to recreate these files for each test, as the compiler may
6755 # overwrite some of them when testing with obscure command lines.
6756 # This happens at least with the AIX C compiler.
6757 : > sub/conftest.c
6758 for i in 1 2 3 4 5 6; do
6759 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006760 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6761 # Solaris 10 /bin/sh.
6762 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006763 done
6764 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6765
cristyc0890a62012-07-19 00:18:20 +00006766 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006767 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006768 # handle '-M -o', and we need to detect this. Also, some Intel
6769 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006770 am__obj=sub/conftest.${OBJEXT-o}
6771 am__minus_obj="-o $am__obj"
6772 case $depmode in
6773 gcc)
6774 # This depmode causes a compiler race in universal mode.
6775 test "$am__universal" = false || continue
6776 ;;
6777 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006778 # After this tag, mechanisms are not by side-effect, so they'll
6779 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006780 if test "x$enable_dependency_tracking" = xyes; then
6781 continue
6782 else
6783 break
6784 fi
6785 ;;
cristy7247bba2012-02-05 16:37:27 +00006786 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006787 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006788 # not run yet. These depmodes are late enough in the game, and
6789 # so weak that their functioning should not be impacted.
6790 am__obj=conftest.${OBJEXT-o}
6791 am__minus_obj=
6792 ;;
6793 none) break ;;
6794 esac
6795 if depmode=$depmode \
6796 source=sub/conftest.c object=$am__obj \
6797 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6798 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6799 >/dev/null 2>conftest.err &&
6800 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6801 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6802 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6803 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6804 # icc doesn't choke on unknown options, it will just issue warnings
6805 # or remarks (even with -Werror). So we grep stderr for any message
6806 # that says an option was ignored or not supported.
6807 # When given -MP, icc 7.0 and 7.1 complain thusly:
6808 # icc: Command line warning: ignoring option '-M'; no argument required
6809 # The diagnosis changed in icc 8.0:
6810 # icc: Command line remark: option '-MP' not supported
6811 if (grep 'ignoring option' conftest.err ||
6812 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6813 am_cv_CXX_dependencies_compiler_type=$depmode
6814 break
6815 fi
6816 fi
6817 done
6818
6819 cd ..
6820 rm -rf conftest.dir
6821else
6822 am_cv_CXX_dependencies_compiler_type=none
6823fi
6824
6825fi
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6827$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6828CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6829
6830 if
6831 test "x$enable_dependency_tracking" != xno \
6832 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6833 am__fastdepCXX_TRUE=
6834 am__fastdepCXX_FALSE='#'
6835else
6836 am__fastdepCXX_TRUE='#'
6837 am__fastdepCXX_FALSE=
6838fi
6839
6840
cristy8b350f62009-11-15 23:12:43 +00006841 case $ac_cv_prog_cc_stdc in #(
6842 no) :
6843 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6844 *) :
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006846$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006847if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006848 $as_echo_n "(cached) " >&6
6849else
6850 ac_cv_prog_cc_c99=no
6851ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006853/* end confdefs.h. */
6854#include <stdarg.h>
6855#include <stdbool.h>
6856#include <stdlib.h>
6857#include <wchar.h>
6858#include <stdio.h>
6859
6860// Check varargs macros. These examples are taken from C99 6.10.3.5.
6861#define debug(...) fprintf (stderr, __VA_ARGS__)
6862#define showlist(...) puts (#__VA_ARGS__)
6863#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6864static void
6865test_varargs_macros (void)
6866{
6867 int x = 1234;
6868 int y = 5678;
6869 debug ("Flag");
6870 debug ("X = %d\n", x);
6871 showlist (The first, second, and third items.);
6872 report (x>y, "x is %d but y is %d", x, y);
6873}
6874
6875// Check long long types.
6876#define BIG64 18446744073709551615ull
6877#define BIG32 4294967295ul
6878#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6879#if !BIG_OK
6880 your preprocessor is broken;
6881#endif
6882#if BIG_OK
6883#else
6884 your preprocessor is broken;
6885#endif
6886static long long int bignum = -9223372036854775807LL;
6887static unsigned long long int ubignum = BIG64;
6888
6889struct incomplete_array
6890{
6891 int datasize;
6892 double data[];
6893};
6894
6895struct named_init {
6896 int number;
6897 const wchar_t *name;
6898 double average;
6899};
6900
6901typedef const char *ccp;
6902
6903static inline int
6904test_restrict (ccp restrict text)
6905{
6906 // See if C++-style comments work.
6907 // Iterate through items via the restricted pointer.
6908 // Also check for declarations in for loops.
6909 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6910 continue;
6911 return 0;
6912}
6913
6914// Check varargs and va_copy.
6915static void
6916test_varargs (const char *format, ...)
6917{
6918 va_list args;
6919 va_start (args, format);
6920 va_list args_copy;
6921 va_copy (args_copy, args);
6922
6923 const char *str;
6924 int number;
6925 float fnumber;
6926
6927 while (*format)
6928 {
6929 switch (*format++)
6930 {
6931 case 's': // string
6932 str = va_arg (args_copy, const char *);
6933 break;
6934 case 'd': // int
6935 number = va_arg (args_copy, int);
6936 break;
6937 case 'f': // float
6938 fnumber = va_arg (args_copy, double);
6939 break;
6940 default:
6941 break;
6942 }
6943 }
6944 va_end (args_copy);
6945 va_end (args);
6946}
6947
6948int
6949main ()
6950{
6951
6952 // Check bool.
6953 _Bool success = false;
6954
6955 // Check restrict.
6956 if (test_restrict ("String literal") == 0)
6957 success = true;
6958 char *restrict newvar = "Another string";
6959
6960 // Check varargs.
6961 test_varargs ("s, d' f .", "string", 65, 34.234);
6962 test_varargs_macros ();
6963
6964 // Check flexible array members.
6965 struct incomplete_array *ia =
6966 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6967 ia->datasize = 10;
6968 for (int i = 0; i < ia->datasize; ++i)
6969 ia->data[i] = i * 1.234;
6970
6971 // Check named initializers.
6972 struct named_init ni = {
6973 .number = 34,
6974 .name = L"Test wide string",
6975 .average = 543.34343,
6976 };
6977
6978 ni.number = 58;
6979
6980 int dynamic_array[ni.number];
6981 dynamic_array[ni.number - 1] = 543;
6982
6983 // work around unused variable warnings
6984 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6985 || dynamic_array[ni.number - 1] != 543);
6986
6987 ;
6988 return 0;
6989}
6990_ACEOF
cristy14fefe52012-05-21 00:59:18 +00006991for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00006992do
6993 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006994 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006995 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006996fi
cristy3ed852e2009-09-05 21:47:34 +00006997rm -f core conftest.err conftest.$ac_objext
6998 test "x$ac_cv_prog_cc_c99" != "xno" && break
6999done
7000rm -f conftest.$ac_ext
7001CC=$ac_save_CC
7002
7003fi
7004# AC_CACHE_VAL
7005case "x$ac_cv_prog_cc_c99" in
7006 x)
cristy8b350f62009-11-15 23:12:43 +00007007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007008$as_echo "none needed" >&6; } ;;
7009 xno)
cristy8b350f62009-11-15 23:12:43 +00007010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007011$as_echo "unsupported" >&6; } ;;
7012 *)
7013 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007015$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7016esac
cristy8b350f62009-11-15 23:12:43 +00007017if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007018 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7019else
cristy8b350f62009-11-15 23:12:43 +00007020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007021$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007022if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007023 $as_echo_n "(cached) " >&6
7024else
7025 ac_cv_prog_cc_c89=no
7026ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007028/* end confdefs.h. */
7029#include <stdarg.h>
7030#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007031struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007032/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7033struct buf { int x; };
7034FILE * (*rcsopen) (struct buf *, struct stat *, int);
7035static char *e (p, i)
7036 char **p;
7037 int i;
7038{
7039 return p[i];
7040}
7041static char *f (char * (*g) (char **, int), char **p, ...)
7042{
7043 char *s;
7044 va_list v;
7045 va_start (v,p);
7046 s = g (p, va_arg (v,int));
7047 va_end (v);
7048 return s;
7049}
7050
7051/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7052 function prototypes and stuff, but not '\xHH' hex character constants.
7053 These don't provoke an error unfortunately, instead are silently treated
7054 as 'x'. The following induces an error, until -std is added to get
7055 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7056 array size at least. It's necessary to write '\x00'==0 to get something
7057 that's true only with -std. */
7058int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7059
7060/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7061 inside strings and character constants. */
7062#define FOO(x) 'x'
7063int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7064
7065int test (int i, double x);
7066struct s1 {int (*f) (int a);};
7067struct s2 {int (*f) (double a);};
7068int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7069int argc;
7070char **argv;
7071int
7072main ()
7073{
7074return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7075 ;
7076 return 0;
7077}
7078_ACEOF
7079for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7080 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7081do
7082 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007083 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007084 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007085fi
cristy3ed852e2009-09-05 21:47:34 +00007086rm -f core conftest.err conftest.$ac_objext
7087 test "x$ac_cv_prog_cc_c89" != "xno" && break
7088done
7089rm -f conftest.$ac_ext
7090CC=$ac_save_CC
7091
7092fi
7093# AC_CACHE_VAL
7094case "x$ac_cv_prog_cc_c89" in
7095 x)
cristy8b350f62009-11-15 23:12:43 +00007096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007097$as_echo "none needed" >&6; } ;;
7098 xno)
cristy8b350f62009-11-15 23:12:43 +00007099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007100$as_echo "unsupported" >&6; } ;;
7101 *)
7102 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007104$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7105esac
cristy8b350f62009-11-15 23:12:43 +00007106if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007107 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7108else
7109 ac_cv_prog_cc_stdc=no
7110fi
7111
cristy3ed852e2009-09-05 21:47:34 +00007112fi
cristy3ed852e2009-09-05 21:47:34 +00007113 ;;
7114esac
cristy8b350f62009-11-15 23:12:43 +00007115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007116$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007117 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007118 $as_echo_n "(cached) " >&6
7119fi
7120
cristy8b350f62009-11-15 23:12:43 +00007121 case $ac_cv_prog_cc_stdc in #(
7122 no) :
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7124$as_echo "unsupported" >&6; } ;; #(
7125 '') :
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7127$as_echo "none needed" >&6; } ;; #(
7128 *) :
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007130$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7131esac
7132
cristy3ed852e2009-09-05 21:47:34 +00007133ac_ext=c
7134ac_cpp='$CPP $CPPFLAGS'
7135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7137ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007139$as_echo_n "checking how to run the C preprocessor... " >&6; }
7140# On Suns, sometimes $CPP names a directory.
7141if test -n "$CPP" && test -d "$CPP"; then
7142 CPP=
7143fi
7144if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007145 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007146 $as_echo_n "(cached) " >&6
7147else
7148 # Double quotes because CPP needs to be expanded
7149 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7150 do
7151 ac_preproc_ok=false
7152for ac_c_preproc_warn_flag in '' yes
7153do
7154 # Use a header file that comes with gcc, so configuring glibc
7155 # with a fresh cross-compiler works.
7156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7157 # <limits.h> exists even on freestanding compilers.
7158 # On the NeXT, cc -E runs the code through the compiler's parser,
7159 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007161/* end confdefs.h. */
7162#ifdef __STDC__
7163# include <limits.h>
7164#else
7165# include <assert.h>
7166#endif
7167 Syntax error
7168_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007169if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007170
cristy8b350f62009-11-15 23:12:43 +00007171else
cristy3ed852e2009-09-05 21:47:34 +00007172 # Broken: fails on valid input.
7173continue
7174fi
cristyda16f162011-02-19 23:52:17 +00007175rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007176
7177 # OK, works on sane cases. Now check whether nonexistent headers
7178 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007180/* end confdefs.h. */
7181#include <ac_nonexistent.h>
7182_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007183if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007184 # Broken: success on invalid input.
7185continue
7186else
cristy3ed852e2009-09-05 21:47:34 +00007187 # Passes both tests.
7188ac_preproc_ok=:
7189break
7190fi
cristyda16f162011-02-19 23:52:17 +00007191rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007192
7193done
7194# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007195rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007196if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007197 break
7198fi
7199
7200 done
7201 ac_cv_prog_CPP=$CPP
7202
7203fi
7204 CPP=$ac_cv_prog_CPP
7205else
7206 ac_cv_prog_CPP=$CPP
7207fi
cristy8b350f62009-11-15 23:12:43 +00007208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007209$as_echo "$CPP" >&6; }
7210ac_preproc_ok=false
7211for ac_c_preproc_warn_flag in '' yes
7212do
7213 # Use a header file that comes with gcc, so configuring glibc
7214 # with a fresh cross-compiler works.
7215 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7216 # <limits.h> exists even on freestanding compilers.
7217 # On the NeXT, cc -E runs the code through the compiler's parser,
7218 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007220/* end confdefs.h. */
7221#ifdef __STDC__
7222# include <limits.h>
7223#else
7224# include <assert.h>
7225#endif
7226 Syntax error
7227_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007228if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007229
cristy8b350f62009-11-15 23:12:43 +00007230else
cristy3ed852e2009-09-05 21:47:34 +00007231 # Broken: fails on valid input.
7232continue
7233fi
cristyda16f162011-02-19 23:52:17 +00007234rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007235
7236 # OK, works on sane cases. Now check whether nonexistent headers
7237 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007239/* end confdefs.h. */
7240#include <ac_nonexistent.h>
7241_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007242if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007243 # Broken: success on invalid input.
7244continue
7245else
cristy3ed852e2009-09-05 21:47:34 +00007246 # Passes both tests.
7247ac_preproc_ok=:
7248break
7249fi
cristyda16f162011-02-19 23:52:17 +00007250rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007251
7252done
7253# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007254rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007255if $ac_preproc_ok; then :
7256
cristy3ed852e2009-09-05 21:47:34 +00007257else
cristy8b350f62009-11-15 23:12:43 +00007258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007260as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7261See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007262fi
7263
7264ac_ext=c
7265ac_cpp='$CPP $CPPFLAGS'
7266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268ac_compiler_gnu=$ac_cv_c_compiler_gnu
7269
cristy73bd4a52010-10-05 11:24:23 +00007270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7271$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007272if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007273 $as_echo_n "(cached) " >&6
7274else
7275 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7276 for ac_i in 1 2 3 4 5 6 7; do
7277 ac_script="$ac_script$as_nl$ac_script"
7278 done
7279 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7280 { ac_script=; unset ac_script;}
7281 if test -z "$SED"; then
7282 ac_path_SED_found=false
7283 # Loop through the user's path and test for each of PROGNAME-LIST
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285for as_dir in $PATH
7286do
7287 IFS=$as_save_IFS
7288 test -z "$as_dir" && as_dir=.
7289 for ac_prog in sed gsed; do
7290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007292 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007293# Check for GNU ac_path_SED and select it if it is found.
7294 # Check for GNU $ac_path_SED
7295case `"$ac_path_SED" --version 2>&1` in
7296*GNU*)
7297 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7298*)
7299 ac_count=0
7300 $as_echo_n 0123456789 >"conftest.in"
7301 while :
7302 do
7303 cat "conftest.in" "conftest.in" >"conftest.tmp"
7304 mv "conftest.tmp" "conftest.in"
7305 cp "conftest.in" "conftest.nl"
7306 $as_echo '' >> "conftest.nl"
7307 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7309 as_fn_arith $ac_count + 1 && ac_count=$as_val
7310 if test $ac_count -gt ${ac_path_SED_max-0}; then
7311 # Best one so far, save it but keep looking for a better one
7312 ac_cv_path_SED="$ac_path_SED"
7313 ac_path_SED_max=$ac_count
7314 fi
7315 # 10*(2^10) chars as input seems more than enough
7316 test $ac_count -gt 10 && break
7317 done
7318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7319esac
7320
7321 $ac_path_SED_found && break 3
7322 done
7323 done
7324 done
7325IFS=$as_save_IFS
7326 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007327 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007328 fi
7329else
7330 ac_cv_path_SED=$SED
7331fi
7332
7333fi
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7335$as_echo "$ac_cv_path_SED" >&6; }
7336 SED="$ac_cv_path_SED"
7337 rm -f conftest.sed
7338
7339test -z "$SED" && SED=sed
7340Xsed="$SED -e 1s/^X//"
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7353$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007354if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007355 $as_echo_n "(cached) " >&6
7356else
7357 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7358 then ac_cv_path_FGREP="$GREP -F"
7359 else
7360 if test -z "$FGREP"; then
7361 ac_path_FGREP_found=false
7362 # Loop through the user's path and test for each of PROGNAME-LIST
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7365do
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_prog in fgrep; do
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007371 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007372# Check for GNU ac_path_FGREP and select it if it is found.
7373 # Check for GNU $ac_path_FGREP
7374case `"$ac_path_FGREP" --version 2>&1` in
7375*GNU*)
7376 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7377*)
7378 ac_count=0
7379 $as_echo_n 0123456789 >"conftest.in"
7380 while :
7381 do
7382 cat "conftest.in" "conftest.in" >"conftest.tmp"
7383 mv "conftest.tmp" "conftest.in"
7384 cp "conftest.in" "conftest.nl"
7385 $as_echo 'FGREP' >> "conftest.nl"
7386 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7388 as_fn_arith $ac_count + 1 && ac_count=$as_val
7389 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7390 # Best one so far, save it but keep looking for a better one
7391 ac_cv_path_FGREP="$ac_path_FGREP"
7392 ac_path_FGREP_max=$ac_count
7393 fi
7394 # 10*(2^10) chars as input seems more than enough
7395 test $ac_count -gt 10 && break
7396 done
7397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7398esac
7399
7400 $ac_path_FGREP_found && break 3
7401 done
7402 done
7403 done
7404IFS=$as_save_IFS
7405 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007406 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007407 fi
7408else
7409 ac_cv_path_FGREP=$FGREP
7410fi
7411
7412 fi
7413fi
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7415$as_echo "$ac_cv_path_FGREP" >&6; }
7416 FGREP="$ac_cv_path_FGREP"
7417
7418
7419test -z "$GREP" && GREP=grep
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
cristy0c60a692010-11-04 01:09:47 +00007437ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7438ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7439ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7440
7441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7442$as_echo_n "checking how to print strings... " >&6; }
7443# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007444if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007445 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7446 ECHO='print -r --'
7447elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7448 ECHO='printf %s\n'
7449else
7450 # Use this function as a fallback that always works.
7451 func_fallback_echo ()
7452 {
7453 eval 'cat <<_LTECHO_EOF
7454$1
7455_LTECHO_EOF'
7456 }
7457 ECHO='func_fallback_echo'
7458fi
7459
7460# func_echo_all arg...
7461# Invoke $ECHO with all args, space-separated.
7462func_echo_all ()
7463{
7464 $ECHO ""
7465}
7466
7467case "$ECHO" in
7468 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7469$as_echo "printf" >&6; } ;;
7470 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7471$as_echo "print -r" >&6; } ;;
7472 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7473$as_echo "cat" >&6; } ;;
7474esac
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
cristy73bd4a52010-10-05 11:24:23 +00007489
7490
7491# Check whether --with-gnu-ld was given.
7492if test "${with_gnu_ld+set}" = set; then :
7493 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7494else
7495 with_gnu_ld=no
7496fi
7497
7498ac_prog=ld
7499if test "$GCC" = yes; then
7500 # Check if gcc -print-prog-name=ld gives a path.
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7502$as_echo_n "checking for ld used by $CC... " >&6; }
7503 case $host in
7504 *-*-mingw*)
7505 # gcc leaves a trailing carriage return which upsets mingw
7506 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7507 *)
7508 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7509 esac
7510 case $ac_prog in
7511 # Accept absolute paths.
7512 [\\/]* | ?:[\\/]*)
7513 re_direlt='/[^/][^/]*/\.\./'
7514 # Canonicalize the pathname of ld
7515 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7516 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7517 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7518 done
7519 test -z "$LD" && LD="$ac_prog"
7520 ;;
7521 "")
7522 # If it fails, then pretend we aren't using GCC.
7523 ac_prog=ld
7524 ;;
7525 *)
7526 # If it is relative, then search for the first ld in PATH.
7527 with_gnu_ld=unknown
7528 ;;
7529 esac
7530elif test "$with_gnu_ld" = yes; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7532$as_echo_n "checking for GNU ld... " >&6; }
7533else
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7535$as_echo_n "checking for non-GNU ld... " >&6; }
7536fi
cristyda16f162011-02-19 23:52:17 +00007537if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007538 $as_echo_n "(cached) " >&6
7539else
7540 if test -z "$LD"; then
7541 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7542 for ac_dir in $PATH; do
7543 IFS="$lt_save_ifs"
7544 test -z "$ac_dir" && ac_dir=.
7545 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7546 lt_cv_path_LD="$ac_dir/$ac_prog"
7547 # Check to see if the program is GNU ld. I'd rather use --version,
7548 # but apparently some variants of GNU ld only accept -v.
7549 # Break only if it was the GNU/non-GNU ld that we prefer.
7550 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7551 *GNU* | *'with BFD'*)
7552 test "$with_gnu_ld" != no && break
7553 ;;
7554 *)
7555 test "$with_gnu_ld" != yes && break
7556 ;;
7557 esac
7558 fi
7559 done
7560 IFS="$lt_save_ifs"
7561else
7562 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7563fi
7564fi
7565
7566LD="$lt_cv_path_LD"
7567if test -n "$LD"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7569$as_echo "$LD" >&6; }
7570else
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572$as_echo "no" >&6; }
7573fi
cristy98dddb52010-11-04 00:30:15 +00007574test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7576$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007577if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007578 $as_echo_n "(cached) " >&6
7579else
7580 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7581case `$LD -v 2>&1 </dev/null` in
7582*GNU* | *'with BFD'*)
7583 lt_cv_prog_gnu_ld=yes
7584 ;;
7585*)
7586 lt_cv_prog_gnu_ld=no
7587 ;;
7588esac
7589fi
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7591$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7592with_gnu_ld=$lt_cv_prog_gnu_ld
7593
7594
7595
7596
7597
7598
7599
7600
7601
cristy3ed852e2009-09-05 21:47:34 +00007602
cristy837d6dc2010-02-27 01:16:57 +00007603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7604$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007605if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007606 $as_echo_n "(cached) " >&6
7607else
7608 ac_cv_prog_cc_c99=no
7609ac_save_CC=$CC
7610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611/* end confdefs.h. */
7612#include <stdarg.h>
7613#include <stdbool.h>
7614#include <stdlib.h>
7615#include <wchar.h>
7616#include <stdio.h>
7617
7618// Check varargs macros. These examples are taken from C99 6.10.3.5.
7619#define debug(...) fprintf (stderr, __VA_ARGS__)
7620#define showlist(...) puts (#__VA_ARGS__)
7621#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7622static void
7623test_varargs_macros (void)
7624{
7625 int x = 1234;
7626 int y = 5678;
7627 debug ("Flag");
7628 debug ("X = %d\n", x);
7629 showlist (The first, second, and third items.);
7630 report (x>y, "x is %d but y is %d", x, y);
7631}
7632
7633// Check long long types.
7634#define BIG64 18446744073709551615ull
7635#define BIG32 4294967295ul
7636#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7637#if !BIG_OK
7638 your preprocessor is broken;
7639#endif
7640#if BIG_OK
7641#else
7642 your preprocessor is broken;
7643#endif
7644static long long int bignum = -9223372036854775807LL;
7645static unsigned long long int ubignum = BIG64;
7646
7647struct incomplete_array
7648{
7649 int datasize;
7650 double data[];
7651};
7652
7653struct named_init {
7654 int number;
7655 const wchar_t *name;
7656 double average;
7657};
7658
7659typedef const char *ccp;
7660
7661static inline int
7662test_restrict (ccp restrict text)
7663{
7664 // See if C++-style comments work.
7665 // Iterate through items via the restricted pointer.
7666 // Also check for declarations in for loops.
7667 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7668 continue;
7669 return 0;
7670}
7671
7672// Check varargs and va_copy.
7673static void
7674test_varargs (const char *format, ...)
7675{
7676 va_list args;
7677 va_start (args, format);
7678 va_list args_copy;
7679 va_copy (args_copy, args);
7680
7681 const char *str;
7682 int number;
7683 float fnumber;
7684
7685 while (*format)
7686 {
7687 switch (*format++)
7688 {
7689 case 's': // string
7690 str = va_arg (args_copy, const char *);
7691 break;
7692 case 'd': // int
7693 number = va_arg (args_copy, int);
7694 break;
7695 case 'f': // float
7696 fnumber = va_arg (args_copy, double);
7697 break;
7698 default:
7699 break;
7700 }
7701 }
7702 va_end (args_copy);
7703 va_end (args);
7704}
7705
7706int
7707main ()
7708{
7709
7710 // Check bool.
7711 _Bool success = false;
7712
7713 // Check restrict.
7714 if (test_restrict ("String literal") == 0)
7715 success = true;
7716 char *restrict newvar = "Another string";
7717
7718 // Check varargs.
7719 test_varargs ("s, d' f .", "string", 65, 34.234);
7720 test_varargs_macros ();
7721
7722 // Check flexible array members.
7723 struct incomplete_array *ia =
7724 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7725 ia->datasize = 10;
7726 for (int i = 0; i < ia->datasize; ++i)
7727 ia->data[i] = i * 1.234;
7728
7729 // Check named initializers.
7730 struct named_init ni = {
7731 .number = 34,
7732 .name = L"Test wide string",
7733 .average = 543.34343,
7734 };
7735
7736 ni.number = 58;
7737
7738 int dynamic_array[ni.number];
7739 dynamic_array[ni.number - 1] = 543;
7740
7741 // work around unused variable warnings
7742 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7743 || dynamic_array[ni.number - 1] != 543);
7744
7745 ;
7746 return 0;
7747}
7748_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007749for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007750do
7751 CC="$ac_save_CC $ac_arg"
7752 if ac_fn_c_try_compile "$LINENO"; then :
7753 ac_cv_prog_cc_c99=$ac_arg
7754fi
7755rm -f core conftest.err conftest.$ac_objext
7756 test "x$ac_cv_prog_cc_c99" != "xno" && break
7757done
7758rm -f conftest.$ac_ext
7759CC=$ac_save_CC
7760
7761fi
7762# AC_CACHE_VAL
7763case "x$ac_cv_prog_cc_c99" in
7764 x)
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7766$as_echo "none needed" >&6; } ;;
7767 xno)
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7769$as_echo "unsupported" >&6; } ;;
7770 *)
7771 CC="$CC $ac_cv_prog_cc_c99"
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7773$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7774esac
7775if test "x$ac_cv_prog_cc_c99" != xno; then :
7776
7777fi
7778
7779
cristy73bd4a52010-10-05 11:24:23 +00007780if test "x$CC" != xcc; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7782$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7783else
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7785$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7786fi
7787set dummy $CC; ac_cc=`$as_echo "$2" |
7788 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007789if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007790 $as_echo_n "(cached) " >&6
7791else
cristy73bd4a52010-10-05 11:24:23 +00007792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7793/* end confdefs.h. */
7794
7795int
7796main ()
7797{
7798
7799 ;
7800 return 0;
7801}
7802_ACEOF
7803# Make sure it works both with $CC and with simple cc.
7804# We do the test twice because some compilers refuse to overwrite an
7805# existing .o file with -o, though they will create one.
7806ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7807rm -f conftest2.*
7808if { { case "(($ac_try" in
7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7811esac
7812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7813$as_echo "$ac_try_echo"; } >&5
7814 (eval "$ac_try") 2>&5
7815 ac_status=$?
7816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7817 test $ac_status = 0; } &&
7818 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7820 *) ac_try_echo=$ac_try;;
7821esac
7822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7823$as_echo "$ac_try_echo"; } >&5
7824 (eval "$ac_try") 2>&5
7825 ac_status=$?
7826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7827 test $ac_status = 0; };
7828then
7829 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7830 if test "x$CC" != xcc; then
7831 # Test first that cc exists at all.
7832 if { ac_try='cc -c conftest.$ac_ext >&5'
7833 { { case "(($ac_try" in
7834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7835 *) ac_try_echo=$ac_try;;
7836esac
7837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7838$as_echo "$ac_try_echo"; } >&5
7839 (eval "$ac_try") 2>&5
7840 ac_status=$?
7841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7842 test $ac_status = 0; }; }; then
7843 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7844 rm -f conftest2.*
7845 if { { case "(($ac_try" in
7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847 *) ac_try_echo=$ac_try;;
7848esac
7849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7850$as_echo "$ac_try_echo"; } >&5
7851 (eval "$ac_try") 2>&5
7852 ac_status=$?
7853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7854 test $ac_status = 0; } &&
7855 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7858esac
7859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7860$as_echo "$ac_try_echo"; } >&5
7861 (eval "$ac_try") 2>&5
7862 ac_status=$?
7863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7864 test $ac_status = 0; };
7865 then
7866 # cc works too.
7867 :
7868 else
7869 # cc exists but doesn't like -o.
7870 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7871 fi
7872 fi
7873 fi
7874else
7875 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7876fi
7877rm -f core conftest*
7878
7879fi
7880if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7882$as_echo "yes" >&6; }
7883else
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885$as_echo "no" >&6; }
7886
7887$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7888
7889fi
7890
7891# FIXME: we rely on the cache variable name because
7892# there is no other way.
7893set dummy $CC
7894am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7895eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7896if test "$am_t" != yes; then
7897 # Losing compiler, so override with the script.
7898 # FIXME: It is wrong to rewrite CC.
7899 # But if we don't then we get into trouble of one sort or another.
7900 # A longer-term fix would be to have automake use am__CC in this case,
7901 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7902 CC="$am_aux_dir/compile $CC"
7903fi
7904
7905
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7907$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007908if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007909 $as_echo_n "(cached) " >&6
7910else
7911 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007912 ac_ext=c
7913ac_cpp='$CPP $CPPFLAGS'
7914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916ac_compiler_gnu=$ac_cv_c_compiler_gnu
7917
7918 ac_save_CFLAGS="$CFLAGS"
7919for 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" #
7920do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922/* end confdefs.h. */
7923
7924int
7925main ()
7926{
cristy24fc1fe2010-10-23 21:13:01 +00007927
cristy73bd4a52010-10-05 11:24:23 +00007928 ;
7929 return 0;
7930}
7931_ACEOF
7932if ac_fn_c_try_compile "$LINENO"; then :
7933 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7934fi
7935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7936done
7937 CFLAGS="$ac_save_CFLAGS"
7938 ac_ext=c
7939ac_cpp='$CPP $CPPFLAGS'
7940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7942ac_compiler_gnu=$ac_cv_c_compiler_gnu
7943
7944
7945fi
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7947$as_echo "$ac_cv_cflags_warn_all" >&6; }
7948case ".$ac_cv_cflags_warn_all" in
7949 .ok|.ok,*) ;;
7950 .|.no|.no,*)
7951 ;;
7952 *)
7953 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7954 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7955 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7956 ac_status=$?
7957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7958 test $ac_status = 0; }
7959 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7960 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7961 ac_status=$?
7962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7963 test $ac_status = 0; }
7964 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7965 fi
7966 ;;
nicolas6237c462010-10-05 06:11:49 +00007967esac
cristy3ed852e2009-09-05 21:47:34 +00007968
cristy016e8b82012-12-26 12:11:06 +00007969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7970$as_echo_n "checking for C compiler vendor... " >&6; }
7971if ${ax_cv_c_compiler_vendor+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973else
7974 # note: don't check for gcc first since some other compilers define __GNUC__
7975 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
7976 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
7977 pathscale: __PATHCC__,__PATHSCALE__
7978 clang: __clang__
7979 gnu: __GNUC__
7980 sun: __SUNPRO_C,__SUNPRO_CC
7981 hp: __HP_cc,__HP_aCC
7982 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
7983 borland: __BORLANDC__,__TURBOC__
7984 comeau: __COMO__
7985 cray: _CRAYC
7986 kai: __KCC
7987 lcc: __LCC__
7988 sgi: __sgi,sgi
7989 microsoft: _MSC_VER
7990 metrowerks: __MWERKS__
7991 watcom: __WATCOMC__
7992 portland: __PGI
7993 unknown: UNKNOWN"
7994 for ventest in $vendors; do
7995 case $ventest in
7996 *:) vendor=$ventest; continue ;;
7997 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
7998 esac
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000/* end confdefs.h. */
8001
8002int
8003main ()
8004{
8005
8006 #if !($vencpp)
8007 thisisanerror;
8008 #endif
8009
8010 ;
8011 return 0;
8012}
8013_ACEOF
8014if ac_fn_c_try_compile "$LINENO"; then :
8015 break
8016fi
8017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8018 done
8019 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8020
8021fi
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8023$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8024
cristya0b81c32010-01-22 02:54:33 +00008025
8026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8027$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8028set x ${MAKE-make}
8029ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008030if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008031 $as_echo_n "(cached) " >&6
8032else
8033 cat >conftest.make <<\_ACEOF
8034SHELL = /bin/sh
8035all:
8036 @echo '@@@%%%=$(MAKE)=@@@%%%'
8037_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008038# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008039case `${MAKE-make} -f conftest.make 2>/dev/null` in
8040 *@@@%%%=?*=@@@%%%*)
8041 eval ac_cv_prog_make_${ac_make}_set=yes;;
8042 *)
8043 eval ac_cv_prog_make_${ac_make}_set=no;;
8044esac
8045rm -f conftest.make
8046fi
8047if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8049$as_echo "yes" >&6; }
8050 SET_MAKE=
8051else
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053$as_echo "no" >&6; }
8054 SET_MAKE="MAKE=${MAKE-make}"
8055fi
8056
cristy8b350f62009-11-15 23:12:43 +00008057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008058$as_echo_n "checking whether ln -s works... " >&6; }
8059LN_S=$as_ln_s
8060if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008062$as_echo "yes" >&6; }
8063else
cristy8b350f62009-11-15 23:12:43 +00008064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008065$as_echo "no, using $LN_S" >&6; }
8066fi
8067
cristybc556452012-08-17 19:44:03 +00008068for ac_prog in gawk mawk nawk awk
8069do
8070 # Extract the first word of "$ac_prog", so it can be a program name with args.
8071set dummy $ac_prog; ac_word=$2
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073$as_echo_n "checking for $ac_word... " >&6; }
8074if ${ac_cv_prog_AWK+:} false; then :
8075 $as_echo_n "(cached) " >&6
8076else
8077 if test -n "$AWK"; then
8078 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8079else
8080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081for as_dir in $PATH
8082do
8083 IFS=$as_save_IFS
8084 test -z "$as_dir" && as_dir=.
8085 for ac_exec_ext in '' $ac_executable_extensions; do
8086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8087 ac_cv_prog_AWK="$ac_prog"
8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8089 break 2
8090 fi
8091done
8092 done
8093IFS=$as_save_IFS
8094
8095fi
8096fi
8097AWK=$ac_cv_prog_AWK
8098if test -n "$AWK"; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8100$as_echo "$AWK" >&6; }
8101else
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103$as_echo "no" >&6; }
8104fi
8105
8106
8107 test -n "$AWK" && break
8108done
8109
cristy73bd4a52010-10-05 11:24:23 +00008110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8111$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8112
8113# Check whether --with-dmalloc was given.
8114if test "${with_dmalloc+set}" = set; then :
8115 withval=$with_dmalloc; if test "$withval" = yes; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8117$as_echo "yes" >&6; }
8118
8119$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8120
8121 LIBS="$LIBS -ldmalloc"
8122 LDFLAGS="$LDFLAGS -g"
8123else
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125$as_echo "no" >&6; }
8126fi
8127else
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129$as_echo "no" >&6; }
8130fi
8131
8132
8133
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8135$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008136if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008137 $as_echo_n "(cached) " >&6
8138else
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140/* end confdefs.h. */
8141#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008142 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008143 static void
8144 foo(void) {
8145 exit(1);
8146 }
8147
8148int
8149main ()
8150{
8151
8152 ;
8153 return 0;
8154}
8155_ACEOF
8156if ac_fn_c_try_compile "$LINENO"; then :
8157 ax_cv___attribute__=yes
8158else
8159 ax_cv___attribute__=no
8160
8161fi
8162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8163
8164fi
8165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8166$as_echo "$ax_cv___attribute__" >&6; }
8167 if test "$ax_cv___attribute__" = "yes"; then
8168
8169$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8170
8171 fi
8172
8173
8174
cristy37110d62012-03-01 18:38:20 +00008175
8176
8177# Check whether --with-gcc-arch was given.
8178if test "${with_gcc_arch+set}" = set; then :
8179 withval=$with_gcc_arch; ax_gcc_arch=$withval
8180else
cristya32d1812012-03-02 19:24:21 +00008181 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008182fi
8183
8184
8185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8186$as_echo_n "checking for gcc architecture flag... " >&6; }
8187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8188$as_echo "" >&6; }
8189if ${ax_cv_gcc_archflag+:} false; then :
8190 $as_echo_n "(cached) " >&6
8191else
8192
8193ax_cv_gcc_archflag="unknown"
8194
8195if test "$GCC" = yes; then
8196
8197if test "x$ax_gcc_arch" = xyes; then
8198ax_gcc_arch=""
8199if test "$cross_compiling" = no; then
8200case $host_cpu in
8201 i[3456]86*|x86_64*) # use cpuid codes
8202
8203ac_ext=c
8204ac_cpp='$CPP $CPPFLAGS'
8205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8207ac_compiler_gnu=$ac_cv_c_compiler_gnu
8208
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8210$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8211if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8212 $as_echo_n "(cached) " >&6
8213else
8214 if test "$cross_compiling" = yes; then :
8215 ax_cv_gcc_x86_cpuid_0=unknown
8216else
8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218/* end confdefs.h. */
8219#include <stdio.h>
8220int
8221main ()
8222{
8223
8224 int op = 0, eax, ebx, ecx, edx;
8225 FILE *f;
8226 __asm__("cpuid"
8227 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8228 : "a" (op));
8229 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8230 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8231 fclose(f);
8232 return 0;
8233
8234 ;
8235 return 0;
8236}
8237_ACEOF
8238if ac_fn_c_try_run "$LINENO"; then :
8239 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8240else
8241 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8242fi
8243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8244 conftest.$ac_objext conftest.beam conftest.$ac_ext
8245fi
8246
8247fi
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8249$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8250ac_ext=c
8251ac_cpp='$CPP $CPPFLAGS'
8252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8254ac_compiler_gnu=$ac_cv_c_compiler_gnu
8255
8256
8257
8258ac_ext=c
8259ac_cpp='$CPP $CPPFLAGS'
8260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8262ac_compiler_gnu=$ac_cv_c_compiler_gnu
8263
8264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8265$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8266if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8267 $as_echo_n "(cached) " >&6
8268else
8269 if test "$cross_compiling" = yes; then :
8270 ax_cv_gcc_x86_cpuid_1=unknown
8271else
8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273/* end confdefs.h. */
8274#include <stdio.h>
8275int
8276main ()
8277{
8278
8279 int op = 1, eax, ebx, ecx, edx;
8280 FILE *f;
8281 __asm__("cpuid"
8282 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8283 : "a" (op));
8284 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8285 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8286 fclose(f);
8287 return 0;
8288
8289 ;
8290 return 0;
8291}
8292_ACEOF
8293if ac_fn_c_try_run "$LINENO"; then :
8294 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8295else
8296 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8297fi
8298rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8299 conftest.$ac_objext conftest.beam conftest.$ac_ext
8300fi
8301
8302fi
8303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8304$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8305ac_ext=c
8306ac_cpp='$CPP $CPPFLAGS'
8307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8309ac_compiler_gnu=$ac_cv_c_compiler_gnu
8310
8311
8312 case $ax_cv_gcc_x86_cpuid_0 in
8313 *:756e6547:*:*) # Intel
8314 case $ax_cv_gcc_x86_cpuid_1 in
8315 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8316 *5??:*:*:*) ax_gcc_arch=pentium ;;
8317 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8318 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8319 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8320 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8321 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8322 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8323 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8324 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8325 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8326 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8327 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8328 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8329 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8330 case $host_cpu in
8331 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8332 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8333 esac ;;
8334 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8335 esac ;;
8336 *:68747541:*:*) # AMD
8337 case $ax_cv_gcc_x86_cpuid_1 in
8338 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8339 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8340 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8341 *60?:*:*:*) ax_gcc_arch=k7 ;;
8342 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8343 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8344 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8345 *6[68a]?:*:*:*)
8346
8347ac_ext=c
8348ac_cpp='$CPP $CPPFLAGS'
8349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8351ac_compiler_gnu=$ac_cv_c_compiler_gnu
8352
8353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8354$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8355if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8356 $as_echo_n "(cached) " >&6
8357else
8358 if test "$cross_compiling" = yes; then :
8359 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8360else
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362/* end confdefs.h. */
8363#include <stdio.h>
8364int
8365main ()
8366{
8367
8368 int op = 0x80000006, eax, ebx, ecx, edx;
8369 FILE *f;
8370 __asm__("cpuid"
8371 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8372 : "a" (op));
8373 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8374 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8375 fclose(f);
8376 return 0;
8377
8378 ;
8379 return 0;
8380}
8381_ACEOF
8382if ac_fn_c_try_run "$LINENO"; then :
8383 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8384else
8385 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8386fi
8387rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8388 conftest.$ac_objext conftest.beam conftest.$ac_ext
8389fi
8390
8391fi
8392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8393$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8394ac_ext=c
8395ac_cpp='$CPP $CPPFLAGS'
8396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8398ac_compiler_gnu=$ac_cv_c_compiler_gnu
8399
8400 # L2 cache size
8401 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8402 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8403 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8404 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8405 esac ;;
8406 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8407 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8408 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8409 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8410 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8411 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8412 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8413 esac ;;
8414 *:746e6543:*:*) # IDT
8415 case $ax_cv_gcc_x86_cpuid_1 in
8416 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8417 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8418 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8419 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8420 esac ;;
8421 esac
8422 if test x"$ax_gcc_arch" = x; then # fallback
8423 case $host_cpu in
8424 i586*) ax_gcc_arch=pentium ;;
8425 i686*) ax_gcc_arch=pentiumpro ;;
8426 esac
8427 fi
8428 ;;
8429
8430 sparc*)
8431 # Extract the first word of "prtdiag", so it can be a program name with args.
8432set dummy prtdiag; ac_word=$2
8433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434$as_echo_n "checking for $ac_word... " >&6; }
8435if ${ac_cv_path_PRTDIAG+:} false; then :
8436 $as_echo_n "(cached) " >&6
8437else
8438 case $PRTDIAG in
8439 [\\/]* | ?:[\\/]*)
8440 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8441 ;;
8442 *)
8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8445for as_dir in $as_dummy
8446do
8447 IFS=$as_save_IFS
8448 test -z "$as_dir" && as_dir=.
8449 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008451 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8453 break 2
8454 fi
8455done
8456 done
8457IFS=$as_save_IFS
8458
8459 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8460 ;;
8461esac
8462fi
8463PRTDIAG=$ac_cv_path_PRTDIAG
8464if test -n "$PRTDIAG"; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8466$as_echo "$PRTDIAG" >&6; }
8467else
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469$as_echo "no" >&6; }
8470fi
8471
8472
8473 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`
8474 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8475 case $cputype in
8476 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8477 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8478 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8479 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8480 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8481 *cypress*) ax_gcc_arch=cypress ;;
8482 esac ;;
8483
8484 alphaev5) ax_gcc_arch=ev5 ;;
8485 alphaev56) ax_gcc_arch=ev56 ;;
8486 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8487 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8488 alphaev6) ax_gcc_arch=ev6 ;;
8489 alphaev67) ax_gcc_arch=ev67 ;;
8490 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8491 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8492 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8493 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8494
8495 powerpc*)
8496 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`
8497 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8498 case $cputype in
8499 *750*) ax_gcc_arch="750 G3" ;;
8500 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8501 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8502 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8503 *970*) ax_gcc_arch="970 G5 power4";;
8504 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8505 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8506 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8507 *) ax_gcc_arch=$cputype ;;
8508 esac
8509 ax_gcc_arch="$ax_gcc_arch powerpc"
8510 ;;
8511esac
8512fi # not cross-compiling
8513fi # guess arch
8514
8515if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8516for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008517 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008518 flags="-mtune=$arch"
8519 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8520 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8521 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8522 else
8523 flags="-march=$arch -mcpu=$arch -m$arch"
8524 fi
8525 for flag in $flags; do
8526 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8528$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8529if eval \${$as_CACHEVAR+:} false; then :
8530 $as_echo_n "(cached) " >&6
8531else
8532
8533 ax_check_save_flags=$CFLAGS
8534 CFLAGS="$CFLAGS $flag"
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536/* end confdefs.h. */
8537
8538int
8539main ()
8540{
8541
8542 ;
8543 return 0;
8544}
8545_ACEOF
8546if ac_fn_c_try_compile "$LINENO"; then :
8547 eval "$as_CACHEVAR=yes"
8548else
8549 eval "$as_CACHEVAR=no"
8550fi
8551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8552 CFLAGS=$ax_check_save_flags
8553fi
8554eval ac_res=\$$as_CACHEVAR
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8556$as_echo "$ac_res" >&6; }
8557if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8558 ax_cv_gcc_archflag=$flag; break
8559else
8560 :
8561fi
8562
8563 done
8564 test "x$ax_cv_gcc_archflag" = xunknown || break
8565done
8566fi
8567
8568fi # $GCC=yes
8569
8570fi
8571
8572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8573$as_echo_n "checking for gcc architecture flag... " >&6; }
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8575$as_echo "$ax_cv_gcc_archflag" >&6; }
8576if test "x$ax_cv_gcc_archflag" = xunknown; then
8577 :
8578else
8579 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8580fi
8581
8582
8583
cristy73bd4a52010-10-05 11:24:23 +00008584if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8585 if test -n "$ac_tool_prefix"; then
8586 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8587set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8589$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008590if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008591 $as_echo_n "(cached) " >&6
8592else
8593 case $PKG_CONFIG in
8594 [\\/]* | ?:[\\/]*)
8595 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8596 ;;
8597 *)
8598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599for as_dir in $PATH
8600do
8601 IFS=$as_save_IFS
8602 test -z "$as_dir" && as_dir=.
8603 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008605 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8607 break 2
8608 fi
8609done
8610 done
8611IFS=$as_save_IFS
8612
8613 ;;
8614esac
8615fi
8616PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8617if test -n "$PKG_CONFIG"; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8619$as_echo "$PKG_CONFIG" >&6; }
8620else
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622$as_echo "no" >&6; }
8623fi
8624
8625
8626fi
8627if test -z "$ac_cv_path_PKG_CONFIG"; then
8628 ac_pt_PKG_CONFIG=$PKG_CONFIG
8629 # Extract the first word of "pkg-config", so it can be a program name with args.
8630set dummy pkg-config; ac_word=$2
8631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008633if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008634 $as_echo_n "(cached) " >&6
8635else
8636 case $ac_pt_PKG_CONFIG in
8637 [\\/]* | ?:[\\/]*)
8638 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8639 ;;
8640 *)
8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642for as_dir in $PATH
8643do
8644 IFS=$as_save_IFS
8645 test -z "$as_dir" && as_dir=.
8646 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008648 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8650 break 2
8651 fi
8652done
8653 done
8654IFS=$as_save_IFS
8655
8656 ;;
8657esac
8658fi
8659ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8660if test -n "$ac_pt_PKG_CONFIG"; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8662$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8663else
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665$as_echo "no" >&6; }
8666fi
8667
8668 if test "x$ac_pt_PKG_CONFIG" = x; then
8669 PKG_CONFIG=""
8670 else
8671 case $cross_compiling:$ac_tool_warned in
8672yes:)
8673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8675ac_tool_warned=yes ;;
8676esac
8677 PKG_CONFIG=$ac_pt_PKG_CONFIG
8678 fi
8679else
8680 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8681fi
8682
8683fi
8684if test -n "$PKG_CONFIG"; then
8685 _pkg_min_version=0.9.0
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8687$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8688 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8690$as_echo "yes" >&6; }
8691 else
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8693$as_echo "no" >&6; }
8694 PKG_CONFIG=""
8695 fi
8696
8697fi
cristy3ed852e2009-09-05 21:47:34 +00008698
cristy9b86f202012-11-28 21:55:35 +00008699# Check for linker script support
8700
8701 # Check whether --enable-ld-version-script was given.
8702if test "${enable_ld_version_script+set}" = set; then :
8703 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8704fi
8705
8706 if test -z "$have_ld_version_script"; then
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8708$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8709 save_LDFLAGS="$LDFLAGS"
8710 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8711 cat > conftest.map <<EOF
8712foo
8713EOF
8714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715/* end confdefs.h. */
8716
8717int
8718main ()
8719{
8720
8721 ;
8722 return 0;
8723}
8724_ACEOF
8725if ac_fn_c_try_link "$LINENO"; then :
8726 accepts_syntax_errors=yes
8727else
8728 accepts_syntax_errors=no
8729fi
8730rm -f core conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
8732 if test "$accepts_syntax_errors" = no; then
8733 cat > conftest.map <<EOF
8734VERS_1 {
8735 global: sym;
8736};
8737
8738VERS_2 {
8739 global: sym;
8740} VERS_1;
8741EOF
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743/* end confdefs.h. */
8744
8745int
8746main ()
8747{
8748
8749 ;
8750 return 0;
8751}
8752_ACEOF
8753if ac_fn_c_try_link "$LINENO"; then :
8754 have_ld_version_script=yes
8755else
8756 have_ld_version_script=no
8757fi
8758rm -f core conftest.err conftest.$ac_objext \
8759 conftest$ac_exeext conftest.$ac_ext
8760 else
8761 have_ld_version_script=no
8762 fi
8763 rm -f conftest.map
8764 LDFLAGS="$save_LDFLAGS"
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8766$as_echo "$have_ld_version_script" >&6; }
8767 fi
8768 if test "$have_ld_version_script" = "yes"; then
8769 HAVE_LD_VERSION_SCRIPT_TRUE=
8770 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8771else
8772 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8773 HAVE_LD_VERSION_SCRIPT_FALSE=
8774fi
8775
8776
8777
cristy3ed852e2009-09-05 21:47:34 +00008778#
cristy3ed852e2009-09-05 21:47:34 +00008779# Enable run-time checking.
8780#
8781# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008782if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008783 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8784else
8785 enable_bounds_checking='no'
8786fi
8787
8788
8789if test "$enable_bounds_checking" = yes; then
8790
cristy8b350f62009-11-15 23:12:43 +00008791$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008792
8793fi
8794
8795#
8796# Tests for Windows
8797#
8798
8799
8800
8801GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008802native_win32_build='no'
8803cygwin_build='no'
8804case "${host_os}" in
8805 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008806 cygwin_build='yes'
8807 GDI32_LIBS='-lgdi32'
8808 ;;
8809 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008810 native_win32_build='yes'
8811 GDI32_LIBS='-lgdi32'
8812 ;;
8813esac
8814if test "${GDI32_LIBS}x" != 'x'; then
8815
cristy8b350f62009-11-15 23:12:43 +00008816$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008817
8818fi
8819
cristy73bd4a52010-10-05 11:24:23 +00008820 if test "${GDI32_LIBS}x" != 'x' ; then
8821 WINGDI32_DELEGATE_TRUE=
8822 WINGDI32_DELEGATE_FALSE='#'
8823else
8824 WINGDI32_DELEGATE_TRUE='#'
8825 WINGDI32_DELEGATE_FALSE=
8826fi
8827
8828 if test "${native_win32_build}" = 'yes' ; then
8829 WIN32_NATIVE_BUILD_TRUE=
8830 WIN32_NATIVE_BUILD_FALSE='#'
8831else
8832 WIN32_NATIVE_BUILD_TRUE='#'
8833 WIN32_NATIVE_BUILD_FALSE=
8834fi
8835
8836 if test "${cygwin_build}" = 'yes' ; then
8837 CYGWIN_BUILD_TRUE=
8838 CYGWIN_BUILD_FALSE='#'
8839else
8840 CYGWIN_BUILD_TRUE='#'
8841 CYGWIN_BUILD_FALSE=
8842fi
8843
8844 if test "x${CC}" = 'xcl.exe' ; then
8845 USING_CL_TRUE=
8846 USING_CL_FALSE='#'
8847else
8848 USING_CL_TRUE='#'
8849 USING_CL_FALSE=
8850fi
8851
cristy3ed852e2009-09-05 21:47:34 +00008852
8853WinPathScript="${srcdirfull}/winpath.sh"
8854
8855
8856#
8857# Compiler flags tweaks
8858#
8859if test "${GCC}" != "yes"; then
8860 case "${host}" in
8861 *-*-hpux* )
8862 # aCC: HP ANSI C++ B3910B A.03.34
8863 CFLAGS="${CFLAGS} -Wp,-H30000"
8864 if test -n "${CXXFLAGS}"; then
8865 CXXFLAGS='-AA'
8866 else
8867 CXXFLAGS="${CXXFLAGS} -AA"
8868 fi
8869 ;;
8870 *-dec-osf5.* )
8871 # Compaq alphaev68-dec-osf5.1 compiler
8872 if test -n "${CXXFLAGS}"; then
8873 CXXFLAGS='-std strict_ansi -noimplicit_include'
8874 else
8875 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8876 fi
8877 esac
8878fi
8879
8880# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008882$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008883if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008884 $as_echo_n "(cached) " >&6
8885else
8886
8887im_cv_ld_lazyload='none'
8888case "${host}" in
8889 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8890 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8891 im_cv_ld_lazyload='-Wl,-zlazyload'
8892 fi
8893 ;;
8894esac
8895
8896fi
cristy8b350f62009-11-15 23:12:43 +00008897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008898$as_echo "$im_cv_ld_lazyload" >&6; }
8899if test "${im_cv_ld_lazyload}" != 'none' ; then
8900 if test -z "${LDFLAGS}" ; then
8901 LDFLAGS="${im_cv_ld_lazyload}"
8902 else
8903 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8904 fi
8905fi
8906
8907case "$host" in
8908*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008909 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008910if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008911 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8912else
8913 build_osxuniversal=no
8914fi
8915
8916
8917 if test "${build_osxuniversal}" != no ; then
8918 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008919 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008920Please re-run configure with these options:
8921 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008922 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008923 fi
8924 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8925 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8926 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8927 fi
8928 ;;
8929esac
8930
cristy0151ae12011-10-28 16:32:29 +00008931#
8932# ARCH specific include directory
8933#
8934
cristy670aa3c2011-11-03 00:54:00 +00008935# Check whether --with-includearch-dir was given.
8936if test "${with_includearch_dir+set}" = set; then :
8937 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008938else
cristy670aa3c2011-11-03 00:54:00 +00008939 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008940fi
8941
8942
cristy670aa3c2011-11-03 00:54:00 +00008943eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008944
cristy0151ae12011-10-28 16:32:29 +00008945
8946#
8947# ARCH specific configuration directory
8948#
8949
cristy670aa3c2011-11-03 00:54:00 +00008950# Check whether --with-sharearch-dir was given.
8951if test "${with_sharearch_dir+set}" = set; then :
8952 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008953else
cristy408ebcd2011-11-14 01:36:57 +00008954 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008955fi
8956
8957
cristy670aa3c2011-11-03 00:54:00 +00008958eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008959
cristy0151ae12011-10-28 16:32:29 +00008960
8961#
cristy3ed852e2009-09-05 21:47:34 +00008962# Enable support for threads
8963
8964# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008965if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008966 withval=$with_threads; with_threads=$withval
8967else
8968 with_threads='yes'
8969fi
8970
8971
8972have_threads=no
8973if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008974
8975
cristy73bd4a52010-10-05 11:24:23 +00008976ac_ext=c
8977ac_cpp='$CPP $CPPFLAGS'
8978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8980ac_compiler_gnu=$ac_cv_c_compiler_gnu
8981
8982ax_pthread_ok=no
8983
8984# We used to check for pthread.h first, but this fails if pthread.h
8985# requires special compiler flags (e.g. on True64 or Sequent).
8986# It gets checked for in the link test anyway.
8987
8988# First of all, check if the user has set any of the PTHREAD_LIBS,
8989# etcetera environment variables, and if threads linking works using
8990# them:
8991if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8992 save_CFLAGS="$CFLAGS"
8993 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8994 save_LIBS="$LIBS"
8995 LIBS="$PTHREAD_LIBS $LIBS"
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8997$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999/* end confdefs.h. */
9000
9001/* Override any GCC internal prototype to avoid an error.
9002 Use char because int might match the return type of a GCC
9003 builtin and then its argument prototype would still apply. */
9004#ifdef __cplusplus
9005extern "C"
9006#endif
9007char pthread_join ();
9008int
9009main ()
9010{
9011return pthread_join ();
9012 ;
9013 return 0;
9014}
9015_ACEOF
9016if ac_fn_c_try_link "$LINENO"; then :
9017 ax_pthread_ok=yes
9018fi
9019rm -f core conftest.err conftest.$ac_objext \
9020 conftest$ac_exeext conftest.$ac_ext
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9022$as_echo "$ax_pthread_ok" >&6; }
9023 if test x"$ax_pthread_ok" = xno; then
9024 PTHREAD_LIBS=""
9025 PTHREAD_CFLAGS=""
9026 fi
9027 LIBS="$save_LIBS"
9028 CFLAGS="$save_CFLAGS"
9029fi
9030
9031# We must check for the threads library under a number of different
9032# names; the ordering is very important because some systems
9033# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9034# libraries is broken (non-POSIX).
9035
9036# Create a list of thread flags to try. Items starting with a "-" are
9037# C compiler flags, and other items are library names, except for "none"
9038# which indicates that we try without any flags at all, and "pthread-config"
9039# which is a program returning the flags for the Pth emulation library.
9040
cristy18307f12011-12-30 01:20:16 +00009041ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009042
9043# The ordering *is* (sometimes) important. Some notes on the
9044# individual items follow:
9045
9046# pthreads: AIX (must check this before -lpthread)
9047# none: in case threads are in libc; should be tried before -Kthread and
9048# other compiler flags to prevent continual compiler warnings
9049# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9050# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9051# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9052# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9053# -pthreads: Solaris/gcc
9054# -mthreads: Mingw32/gcc, Lynx/gcc
9055# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9056# doesn't hurt to check since this sometimes defines pthreads too;
9057# also defines -D_REENTRANT)
9058# ... -mt is also the pthreads flag for HP/aCC
9059# pthread: Linux, etcetera
9060# --thread-safe: KAI C++
9061# pthread-config: use pthread-config program (for GNU Pth library)
9062
9063case "${host_cpu}-${host_os}" in
9064 *solaris*)
9065
9066 # On Solaris (at least, for some versions), libc contains stubbed
9067 # (non-functional) versions of the pthreads routines, so link-based
9068 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9069 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9070 # a function called by this macro, so we could check for that, but
9071 # who knows whether they'll stub that too in a future libc.) So,
9072 # we'll just look for -pthreads and -lpthread first:
9073
9074 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9075 ;;
9076
cristya316db12011-10-24 00:49:45 +00009077 *-darwin*)
9078 ax_pthread_flags="-pthread $ax_pthread_flags"
9079 ;;
cristy73bd4a52010-10-05 11:24:23 +00009080esac
9081
9082if test x"$ax_pthread_ok" = xno; then
9083for flag in $ax_pthread_flags; do
9084
9085 case $flag in
9086 none)
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9088$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9089 ;;
9090
9091 -*)
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9093$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9094 PTHREAD_CFLAGS="$flag"
9095 ;;
9096
cristya316db12011-10-24 00:49:45 +00009097 pthread-config)
9098 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009099set dummy pthread-config; ac_word=$2
9100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9101$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009102if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009103 $as_echo_n "(cached) " >&6
9104else
9105 if test -n "$ax_pthread_config"; then
9106 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9107else
9108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9109for as_dir in $PATH
9110do
9111 IFS=$as_save_IFS
9112 test -z "$as_dir" && as_dir=.
9113 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009115 ac_cv_prog_ax_pthread_config="yes"
9116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9117 break 2
9118 fi
9119done
9120 done
9121IFS=$as_save_IFS
9122
9123 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9124fi
9125fi
9126ax_pthread_config=$ac_cv_prog_ax_pthread_config
9127if test -n "$ax_pthread_config"; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9129$as_echo "$ax_pthread_config" >&6; }
9130else
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132$as_echo "no" >&6; }
9133fi
9134
9135
cristya316db12011-10-24 00:49:45 +00009136 if test x"$ax_pthread_config" = xno; then continue; fi
9137 PTHREAD_CFLAGS="`pthread-config --cflags`"
9138 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9139 ;;
cristy73bd4a52010-10-05 11:24:23 +00009140
9141 *)
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9143$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9144 PTHREAD_LIBS="-l$flag"
9145 ;;
9146 esac
9147
9148 save_LIBS="$LIBS"
9149 save_CFLAGS="$CFLAGS"
9150 LIBS="$PTHREAD_LIBS $LIBS"
9151 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9152
9153 # Check for various functions. We must include pthread.h,
9154 # since some functions may be macros. (On the Sequent, we
9155 # need a special flag -Kthread to make this header compile.)
9156 # We check for pthread_join because it is in -lpthread on IRIX
9157 # while pthread_create is in libc. We check for pthread_attr_init
9158 # due to DEC craziness with -lpthreads. We check for
9159 # pthread_cleanup_push because it is one of the few pthread
9160 # functions on Solaris that doesn't have a non-functional libc stub.
9161 # We try pthread_create on general principles.
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163/* end confdefs.h. */
9164#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009165 static void routine(void *a) { a = 0; }
9166 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009167int
9168main ()
9169{
9170pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009171 pthread_create(&th, 0, start_routine, 0);
9172 pthread_join(th, 0);
9173 pthread_attr_init(&attr);
9174 pthread_cleanup_push(routine, 0);
9175 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009176 ;
9177 return 0;
9178}
9179_ACEOF
9180if ac_fn_c_try_link "$LINENO"; then :
9181 ax_pthread_ok=yes
9182fi
9183rm -f core conftest.err conftest.$ac_objext \
9184 conftest$ac_exeext conftest.$ac_ext
9185
9186 LIBS="$save_LIBS"
9187 CFLAGS="$save_CFLAGS"
9188
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9190$as_echo "$ax_pthread_ok" >&6; }
9191 if test "x$ax_pthread_ok" = xyes; then
9192 break;
9193 fi
9194
9195 PTHREAD_LIBS=""
9196 PTHREAD_CFLAGS=""
9197done
9198fi
9199
9200# Various other checks:
9201if test "x$ax_pthread_ok" = xyes; then
9202 save_LIBS="$LIBS"
9203 LIBS="$PTHREAD_LIBS $LIBS"
9204 save_CFLAGS="$CFLAGS"
9205 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9206
9207 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009209$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009210 attr_name=unknown
9211 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009213/* end confdefs.h. */
9214#include <pthread.h>
9215int
9216main ()
9217{
cristya316db12011-10-24 00:49:45 +00009218int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009219 ;
9220 return 0;
9221}
9222_ACEOF
9223if ac_fn_c_try_link "$LINENO"; then :
9224 attr_name=$attr; break
9225fi
9226rm -f core conftest.err conftest.$ac_objext \
9227 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009228 done
cristy73bd4a52010-10-05 11:24:23 +00009229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9230$as_echo "$attr_name" >&6; }
9231 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9232
9233cat >>confdefs.h <<_ACEOF
9234#define PTHREAD_CREATE_JOINABLE $attr_name
9235_ACEOF
9236
9237 fi
9238
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9240$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9241 flag=no
9242 case "${host_cpu}-${host_os}" in
9243 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9244 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9245 esac
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9247$as_echo "${flag}" >&6; }
9248 if test "x$flag" != xno; then
9249 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9250 fi
9251
cristya316db12011-10-24 00:49:45 +00009252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9253$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9254if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9255 $as_echo_n "(cached) " >&6
9256else
9257
9258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259/* end confdefs.h. */
9260
9261 #include <pthread.h>
9262int
9263main ()
9264{
9265int i = PTHREAD_PRIO_INHERIT;
9266 ;
9267 return 0;
9268}
9269_ACEOF
9270if ac_fn_c_try_link "$LINENO"; then :
9271 ax_cv_PTHREAD_PRIO_INHERIT=yes
9272else
9273 ax_cv_PTHREAD_PRIO_INHERIT=no
9274fi
9275rm -f core conftest.err conftest.$ac_objext \
9276 conftest$ac_exeext conftest.$ac_ext
9277
9278fi
9279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9280$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9281 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9282
9283$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9284
9285fi
9286
cristy73bd4a52010-10-05 11:24:23 +00009287 LIBS="$save_LIBS"
9288 CFLAGS="$save_CFLAGS"
9289
9290 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009291 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009292 for ac_prog in xlc_r cc_r
9293do
9294 # Extract the first word of "$ac_prog", so it can be a program name with args.
9295set dummy $ac_prog; ac_word=$2
9296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9297$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009298if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009299 $as_echo_n "(cached) " >&6
9300else
9301 if test -n "$PTHREAD_CC"; then
9302 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9303else
9304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9305for as_dir in $PATH
9306do
9307 IFS=$as_save_IFS
9308 test -z "$as_dir" && as_dir=.
9309 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009311 ac_cv_prog_PTHREAD_CC="$ac_prog"
9312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9313 break 2
9314 fi
9315done
9316 done
9317IFS=$as_save_IFS
9318
9319fi
9320fi
9321PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9322if test -n "$PTHREAD_CC"; then
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9324$as_echo "$PTHREAD_CC" >&6; }
9325else
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9327$as_echo "no" >&6; }
9328fi
9329
9330
9331 test -n "$PTHREAD_CC" && break
9332done
9333test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9334
9335 else
9336 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009337 fi
cristy73bd4a52010-10-05 11:24:23 +00009338else
9339 PTHREAD_CC="$CC"
9340fi
9341
9342
9343
9344
9345
9346# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9347if test x"$ax_pthread_ok" = xyes; then
9348
9349$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9350
9351 :
9352else
9353 ax_pthread_ok=no
9354
9355fi
9356ac_ext=c
9357ac_cpp='$CPP $CPPFLAGS'
9358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9360ac_compiler_gnu=$ac_cv_c_compiler_gnu
9361
9362
cristy7acf8fb2010-09-23 19:58:53 +00009363 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009364 have_threads=yes
9365 DEF_THREAD="$PTHREAD_CFLAGS"
9366 CFLAGS="$CFLAGS $DEF_THREAD"
9367 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9368 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009369 { $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 +00009370$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9371 CC="$PTHREAD_CC"
9372 fi
cristy55bf91c2010-09-24 00:29:41 +00009373
9374$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9375
cristy3ed852e2009-09-05 21:47:34 +00009376 fi
9377fi
9378
9379# Enable support for OpenMP
9380if test "$have_threads" != 'yes'; then
9381 ac_cv_prog_c_openmp=unsupported
9382fi
9383
9384 OPENMP_CFLAGS=
9385 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009386if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009387 enableval=$enable_openmp;
9388fi
9389
9390 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009392$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009393if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009394 $as_echo_n "(cached) " >&6
9395else
cristy8b350f62009-11-15 23:12:43 +00009396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009398
9399#ifndef _OPENMP
9400 choke me
9401#endif
9402#include <omp.h>
9403int main () { return omp_get_num_threads (); }
9404
9405_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009406if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009407 ac_cv_prog_c_openmp='none needed'
9408else
cristy8b350f62009-11-15 23:12:43 +00009409 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009410 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9411 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009412 ac_save_CFLAGS=$CFLAGS
9413 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009416
9417#ifndef _OPENMP
9418 choke me
9419#endif
9420#include <omp.h>
9421int main () { return omp_get_num_threads (); }
9422
9423_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009424if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009425 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009426fi
cristy8b350f62009-11-15 23:12:43 +00009427rm -f core conftest.err conftest.$ac_objext \
9428 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009429 CFLAGS=$ac_save_CFLAGS
9430 if test "$ac_cv_prog_c_openmp" != unsupported; then
9431 break
9432 fi
9433 done
9434fi
cristy8b350f62009-11-15 23:12:43 +00009435rm -f core conftest.err conftest.$ac_objext \
9436 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009437fi
cristy8b350f62009-11-15 23:12:43 +00009438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009439$as_echo "$ac_cv_prog_c_openmp" >&6; }
9440 case $ac_cv_prog_c_openmp in #(
9441 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009442 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009443 *)
cristy8b350f62009-11-15 23:12:43 +00009444 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009445 esac
9446 fi
9447
9448
9449CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9450MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9451
cristy391f1ce2010-09-09 17:23:28 +00009452if test "$enable_openmp" != no; then
9453 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9454 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9455 fi
9456fi
cristy3ed852e2009-09-05 21:47:34 +00009457
cristy736173a2009-09-20 21:18:22 +00009458# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009459
9460
cristy73bd4a52010-10-05 11:24:23 +00009461ac_ext=c
9462ac_cpp='$CPP $CPPFLAGS'
9463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9465ac_compiler_gnu=$ac_cv_c_compiler_gnu
9466
9467ax_pthread_ok=no
9468
9469# We used to check for pthread.h first, but this fails if pthread.h
9470# requires special compiler flags (e.g. on True64 or Sequent).
9471# It gets checked for in the link test anyway.
9472
9473# First of all, check if the user has set any of the PTHREAD_LIBS,
9474# etcetera environment variables, and if threads linking works using
9475# them:
9476if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9477 save_CFLAGS="$CFLAGS"
9478 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9479 save_LIBS="$LIBS"
9480 LIBS="$PTHREAD_LIBS $LIBS"
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9482$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484/* end confdefs.h. */
9485
9486/* Override any GCC internal prototype to avoid an error.
9487 Use char because int might match the return type of a GCC
9488 builtin and then its argument prototype would still apply. */
9489#ifdef __cplusplus
9490extern "C"
9491#endif
9492char pthread_join ();
9493int
9494main ()
9495{
9496return pthread_join ();
9497 ;
9498 return 0;
9499}
9500_ACEOF
9501if ac_fn_c_try_link "$LINENO"; then :
9502 ax_pthread_ok=yes
9503fi
9504rm -f core conftest.err conftest.$ac_objext \
9505 conftest$ac_exeext conftest.$ac_ext
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9507$as_echo "$ax_pthread_ok" >&6; }
9508 if test x"$ax_pthread_ok" = xno; then
9509 PTHREAD_LIBS=""
9510 PTHREAD_CFLAGS=""
9511 fi
9512 LIBS="$save_LIBS"
9513 CFLAGS="$save_CFLAGS"
9514fi
9515
9516# We must check for the threads library under a number of different
9517# names; the ordering is very important because some systems
9518# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9519# libraries is broken (non-POSIX).
9520
9521# Create a list of thread flags to try. Items starting with a "-" are
9522# C compiler flags, and other items are library names, except for "none"
9523# which indicates that we try without any flags at all, and "pthread-config"
9524# which is a program returning the flags for the Pth emulation library.
9525
cristy18307f12011-12-30 01:20:16 +00009526ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009527
9528# The ordering *is* (sometimes) important. Some notes on the
9529# individual items follow:
9530
9531# pthreads: AIX (must check this before -lpthread)
9532# none: in case threads are in libc; should be tried before -Kthread and
9533# other compiler flags to prevent continual compiler warnings
9534# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9535# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9536# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9537# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9538# -pthreads: Solaris/gcc
9539# -mthreads: Mingw32/gcc, Lynx/gcc
9540# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9541# doesn't hurt to check since this sometimes defines pthreads too;
9542# also defines -D_REENTRANT)
9543# ... -mt is also the pthreads flag for HP/aCC
9544# pthread: Linux, etcetera
9545# --thread-safe: KAI C++
9546# pthread-config: use pthread-config program (for GNU Pth library)
9547
9548case "${host_cpu}-${host_os}" in
9549 *solaris*)
9550
9551 # On Solaris (at least, for some versions), libc contains stubbed
9552 # (non-functional) versions of the pthreads routines, so link-based
9553 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9554 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9555 # a function called by this macro, so we could check for that, but
9556 # who knows whether they'll stub that too in a future libc.) So,
9557 # we'll just look for -pthreads and -lpthread first:
9558
9559 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9560 ;;
9561
cristya316db12011-10-24 00:49:45 +00009562 *-darwin*)
9563 ax_pthread_flags="-pthread $ax_pthread_flags"
9564 ;;
cristy73bd4a52010-10-05 11:24:23 +00009565esac
9566
9567if test x"$ax_pthread_ok" = xno; then
9568for flag in $ax_pthread_flags; do
9569
9570 case $flag in
9571 none)
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9573$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9574 ;;
9575
9576 -*)
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9578$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9579 PTHREAD_CFLAGS="$flag"
9580 ;;
9581
cristya316db12011-10-24 00:49:45 +00009582 pthread-config)
9583 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009584set dummy pthread-config; ac_word=$2
9585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9586$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009587if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009588 $as_echo_n "(cached) " >&6
9589else
9590 if test -n "$ax_pthread_config"; then
9591 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9592else
9593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9594for as_dir in $PATH
9595do
9596 IFS=$as_save_IFS
9597 test -z "$as_dir" && as_dir=.
9598 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009600 ac_cv_prog_ax_pthread_config="yes"
9601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9602 break 2
9603 fi
9604done
9605 done
9606IFS=$as_save_IFS
9607
9608 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9609fi
9610fi
9611ax_pthread_config=$ac_cv_prog_ax_pthread_config
9612if test -n "$ax_pthread_config"; then
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9614$as_echo "$ax_pthread_config" >&6; }
9615else
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9617$as_echo "no" >&6; }
9618fi
9619
9620
cristya316db12011-10-24 00:49:45 +00009621 if test x"$ax_pthread_config" = xno; then continue; fi
9622 PTHREAD_CFLAGS="`pthread-config --cflags`"
9623 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9624 ;;
cristy73bd4a52010-10-05 11:24:23 +00009625
9626 *)
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9628$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9629 PTHREAD_LIBS="-l$flag"
9630 ;;
9631 esac
9632
9633 save_LIBS="$LIBS"
9634 save_CFLAGS="$CFLAGS"
9635 LIBS="$PTHREAD_LIBS $LIBS"
9636 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9637
9638 # Check for various functions. We must include pthread.h,
9639 # since some functions may be macros. (On the Sequent, we
9640 # need a special flag -Kthread to make this header compile.)
9641 # We check for pthread_join because it is in -lpthread on IRIX
9642 # while pthread_create is in libc. We check for pthread_attr_init
9643 # due to DEC craziness with -lpthreads. We check for
9644 # pthread_cleanup_push because it is one of the few pthread
9645 # functions on Solaris that doesn't have a non-functional libc stub.
9646 # We try pthread_create on general principles.
9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648/* end confdefs.h. */
9649#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009650 static void routine(void *a) { a = 0; }
9651 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009652int
9653main ()
9654{
9655pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009656 pthread_create(&th, 0, start_routine, 0);
9657 pthread_join(th, 0);
9658 pthread_attr_init(&attr);
9659 pthread_cleanup_push(routine, 0);
9660 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009661 ;
9662 return 0;
9663}
9664_ACEOF
9665if ac_fn_c_try_link "$LINENO"; then :
9666 ax_pthread_ok=yes
9667fi
9668rm -f core conftest.err conftest.$ac_objext \
9669 conftest$ac_exeext conftest.$ac_ext
9670
9671 LIBS="$save_LIBS"
9672 CFLAGS="$save_CFLAGS"
9673
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9675$as_echo "$ax_pthread_ok" >&6; }
9676 if test "x$ax_pthread_ok" = xyes; then
9677 break;
9678 fi
9679
9680 PTHREAD_LIBS=""
9681 PTHREAD_CFLAGS=""
9682done
9683fi
9684
9685# Various other checks:
9686if test "x$ax_pthread_ok" = xyes; then
9687 save_LIBS="$LIBS"
9688 LIBS="$PTHREAD_LIBS $LIBS"
9689 save_CFLAGS="$CFLAGS"
9690 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9691
9692 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009694$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009695 attr_name=unknown
9696 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009698/* end confdefs.h. */
9699#include <pthread.h>
9700int
9701main ()
9702{
cristya316db12011-10-24 00:49:45 +00009703int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009704 ;
9705 return 0;
9706}
9707_ACEOF
9708if ac_fn_c_try_link "$LINENO"; then :
9709 attr_name=$attr; break
9710fi
9711rm -f core conftest.err conftest.$ac_objext \
9712 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009713 done
cristy73bd4a52010-10-05 11:24:23 +00009714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9715$as_echo "$attr_name" >&6; }
9716 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9717
9718cat >>confdefs.h <<_ACEOF
9719#define PTHREAD_CREATE_JOINABLE $attr_name
9720_ACEOF
9721
9722 fi
9723
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9725$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9726 flag=no
9727 case "${host_cpu}-${host_os}" in
9728 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9729 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9730 esac
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9732$as_echo "${flag}" >&6; }
9733 if test "x$flag" != xno; then
9734 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9735 fi
9736
cristya316db12011-10-24 00:49:45 +00009737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9738$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9739if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9740 $as_echo_n "(cached) " >&6
9741else
9742
9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744/* end confdefs.h. */
9745
9746 #include <pthread.h>
9747int
9748main ()
9749{
9750int i = PTHREAD_PRIO_INHERIT;
9751 ;
9752 return 0;
9753}
9754_ACEOF
9755if ac_fn_c_try_link "$LINENO"; then :
9756 ax_cv_PTHREAD_PRIO_INHERIT=yes
9757else
9758 ax_cv_PTHREAD_PRIO_INHERIT=no
9759fi
9760rm -f core conftest.err conftest.$ac_objext \
9761 conftest$ac_exeext conftest.$ac_ext
9762
9763fi
9764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9765$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9766 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9767
9768$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9769
9770fi
9771
cristy73bd4a52010-10-05 11:24:23 +00009772 LIBS="$save_LIBS"
9773 CFLAGS="$save_CFLAGS"
9774
9775 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009776 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009777 for ac_prog in xlc_r cc_r
9778do
9779 # Extract the first word of "$ac_prog", so it can be a program name with args.
9780set dummy $ac_prog; ac_word=$2
9781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009783if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009784 $as_echo_n "(cached) " >&6
9785else
9786 if test -n "$PTHREAD_CC"; then
9787 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9788else
9789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9790for as_dir in $PATH
9791do
9792 IFS=$as_save_IFS
9793 test -z "$as_dir" && as_dir=.
9794 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009796 ac_cv_prog_PTHREAD_CC="$ac_prog"
9797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9798 break 2
9799 fi
9800done
9801 done
9802IFS=$as_save_IFS
9803
9804fi
9805fi
9806PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9807if test -n "$PTHREAD_CC"; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9809$as_echo "$PTHREAD_CC" >&6; }
9810else
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812$as_echo "no" >&6; }
9813fi
9814
9815
9816 test -n "$PTHREAD_CC" && break
9817done
9818test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9819
9820 else
9821 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009822 fi
cristy73bd4a52010-10-05 11:24:23 +00009823else
9824 PTHREAD_CC="$CC"
9825fi
9826
9827
9828
9829
9830
9831# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9832if test x"$ax_pthread_ok" = xyes; then
9833
9834$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9835
9836 :
9837else
9838 ax_pthread_ok=no
9839
9840fi
9841ac_ext=c
9842ac_cpp='$CPP $CPPFLAGS'
9843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9845ac_compiler_gnu=$ac_cv_c_compiler_gnu
9846
9847
9848
9849# Check whether --enable-opencl was given.
9850if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +00009851 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +00009852else
cristy48794642012-09-02 15:19:08 +00009853 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +00009854fi
9855
9856
cristy48794642012-09-02 15:19:08 +00009857if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +00009858 ac_ext=c
9859ac_cpp='$CPP $CPPFLAGS'
9860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9862ac_compiler_gnu=$ac_cv_c_compiler_gnu
9863
cristy75314cc2012-09-15 23:08:29 +00009864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9865$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9866if ${ax_cv_c_compiler_ms+:} false; then :
9867 $as_echo_n "(cached) " >&6
9868else
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870/* end confdefs.h. */
9871
9872int
9873main ()
9874{
9875#ifndef _MSC_VER
9876 choke me
9877#endif
9878
9879 ;
9880 return 0;
9881}
9882_ACEOF
9883if ac_fn_c_try_compile "$LINENO"; then :
9884 ax_compiler_ms=yes
9885else
9886 ax_compiler_ms=no
9887fi
9888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9889ax_cv_c_compiler_ms=$ax_compiler_ms
9890
9891fi
9892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9893$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009894 if test X$ax_compiler_ms = Xno; then :
9895 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9896fi
9897
9898 ax_save_CPPFLAGS=$CPPFLAGS
9899 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9900 for ac_header in CL/cl.h OpenCL/cl.h
9901do :
9902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9903ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009904if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009905 cat >>confdefs.h <<_ACEOF
9906#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9907_ACEOF
9908
9909fi
9910
9911done
9912
9913 CPPFLAGS=$ax_save_CPPFLAGS
9914
9915 for ac_header in windows.h
9916do :
9917 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009918if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009919 cat >>confdefs.h <<_ACEOF
9920#define HAVE_WINDOWS_H 1
9921_ACEOF
9922
9923fi
9924
9925done
9926
9927
9928
9929
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9931$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009932if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009933 $as_echo_n "(cached) " >&6
9934else
9935 ax_cv_check_cl_libcl=no
9936 case $host_cpu in
9937 x86_64) ax_check_cl_libdir=lib64 ;;
9938 *) ax_check_cl_libdir=lib ;;
9939 esac
9940 ax_save_CPPFLAGS=$CPPFLAGS
9941 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9942 ax_save_LIBS=$LIBS
9943 LIBS=""
9944 ax_check_libs="-lOpenCL -lCL -lclparser"
9945 for ax_lib in $ax_check_libs; do
9946 if test X$ax_compiler_ms = Xyes; then :
9947 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9948else
9949 ax_try_lib=$ax_lib
9950fi
9951 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953/* end confdefs.h. */
9954
9955 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9956 # include <windows.h>
9957 # endif
9958 # ifdef HAVE_CL_CL_H
9959 # include <CL/cl.h>
9960 # elif defined(HAVE_OPENCL_CL_H)
9961 # include <OpenCL/cl.h>
9962 # else
9963 # error no CL.h
9964 # endif
9965int
9966main ()
9967{
9968clCreateContextFromType(0,0,0,0,0)
9969 ;
9970 return 0;
9971}
9972_ACEOF
9973if ac_fn_c_try_link "$LINENO"; then :
9974 ax_cv_check_cl_libcl=$ax_try_lib; break
9975else
9976 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"
9977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978/* end confdefs.h. */
9979
9980 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9981 # include <windows.h>
9982 # endif
9983 # ifdef HAVE_CL_CL_H
9984 # include <CL/cl.h>
9985 # elif defined(HAVE_OPENCL_CL_H)
9986 # include <OpenCL/cl.h>
9987 # else
9988 # error no CL.h
9989 # endif
9990int
9991main ()
9992{
9993clCreateContextFromType(0,0,0,0,0)
9994 ;
9995 return 0;
9996}
9997_ACEOF
9998if ac_fn_c_try_link "$LINENO"; then :
9999 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10000else
cristy78c5a0c2010-12-04 20:00:59 +000010001 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 +000010002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003/* end confdefs.h. */
10004
10005 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10006 # include <windows.h>
10007 # endif
10008 # ifdef HAVE_CL_CL_H
10009 # include <CL/cl.h>
10010 # elif defined(HAVE_OPENCL_CL_H)
10011 # include <OpenCL/cl.h>
10012 # else
10013 # error no CL.h
10014 # endif
10015int
10016main ()
10017{
10018clCreateContextFromType(0,0,0,0,0)
10019 ;
10020 return 0;
10021}
10022_ACEOF
10023if ac_fn_c_try_link "$LINENO"; then :
10024 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
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
10031fi
10032rm -f core conftest.err conftest.$ac_objext \
10033 conftest$ac_exeext conftest.$ac_ext
10034 done
10035
cristyc3f8b8e2011-12-22 14:55:16 +000010036 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010037 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039/* end confdefs.h. */
10040
10041 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10042 # include <windows.h>
10043 # endif
10044 # ifdef HAVE_CL_CL_H
10045 # include <CL/cl.h>
10046 # elif defined(HAVE_OPENCL_CL_H)
10047 # include <OpenCL/cl.h>
10048 # else
10049 # error no CL.h
10050 # endif
10051int
10052main ()
10053{
10054clCreateContextFromType(0,0,0,0,0)
10055 ;
10056 return 0;
10057}
10058_ACEOF
10059if ac_fn_c_try_link "$LINENO"; then :
10060 ax_cv_check_cl_libcl=$LIBS
10061fi
10062rm -f core conftest.err conftest.$ac_objext \
10063 conftest$ac_exeext conftest.$ac_ext
10064fi
10065
10066 LIBS=$ax_save_LIBS
10067 CPPFLAGS=$ax_save_CPPFLAGS
10068fi
10069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10070$as_echo "$ax_cv_check_cl_libcl" >&6; }
10071
10072 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10073 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10074else
10075 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10076$as_echo "#define _OPENCL 1" >>confdefs.h
10077
10078fi
10079 ac_ext=c
10080ac_cpp='$CPP $CPPFLAGS'
10081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10083ac_compiler_gnu=$ac_cv_c_compiler_gnu
10084
10085fi
10086
10087
10088
10089
cristyc7083c12009-10-14 03:16:55 +000010090CFLAGS="$CL_CFLAGS $CFLAGS"
10091LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010092
cristy391f1ce2010-09-09 17:23:28 +000010093if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010094 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010095 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10096 fi
cristyfd9dcd42010-08-08 18:07:02 +000010097fi
cristy2e8b51d2009-10-17 18:26:15 +000010098
cristy3ed852e2009-09-05 21:47:34 +000010099########
10100#
10101# Check for large file support
10102#
10103########
10104# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010105if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010106 enableval=$enable_largefile;
10107fi
10108
10109if test "$enable_largefile" != no; then
10110
cristy8b350f62009-11-15 23:12:43 +000010111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010112$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010113if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010114 $as_echo_n "(cached) " >&6
10115else
10116 ac_cv_sys_largefile_CC=no
10117 if test "$GCC" != yes; then
10118 ac_save_CC=$CC
10119 while :; do
10120 # IRIX 6.2 and later do not support large files by default,
10121 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010123/* end confdefs.h. */
10124#include <sys/types.h>
10125 /* Check that off_t can represent 2**63 - 1 correctly.
10126 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10127 since some C++ compilers masquerading as C compilers
10128 incorrectly reject 9223372036854775807. */
10129#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10130 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10131 && LARGE_OFF_T % 2147483647 == 1)
10132 ? 1 : -1];
10133int
10134main ()
10135{
10136
10137 ;
10138 return 0;
10139}
10140_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010141 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010142 break
cristy3ed852e2009-09-05 21:47:34 +000010143fi
cristy3ed852e2009-09-05 21:47:34 +000010144rm -f core conftest.err conftest.$ac_objext
10145 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010146 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010147 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010148fi
cristy3ed852e2009-09-05 21:47:34 +000010149rm -f core conftest.err conftest.$ac_objext
10150 break
10151 done
10152 CC=$ac_save_CC
10153 rm -f conftest.$ac_ext
10154 fi
10155fi
cristy8b350f62009-11-15 23:12:43 +000010156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010157$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10158 if test "$ac_cv_sys_largefile_CC" != no; then
10159 CC=$CC$ac_cv_sys_largefile_CC
10160 fi
10161
cristy8b350f62009-11-15 23:12:43 +000010162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010163$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010164if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010165 $as_echo_n "(cached) " >&6
10166else
10167 while :; do
cristy8b350f62009-11-15 23:12:43 +000010168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010169/* end confdefs.h. */
10170#include <sys/types.h>
10171 /* Check that off_t can represent 2**63 - 1 correctly.
10172 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10173 since some C++ compilers masquerading as C compilers
10174 incorrectly reject 9223372036854775807. */
10175#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10176 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10177 && LARGE_OFF_T % 2147483647 == 1)
10178 ? 1 : -1];
10179int
10180main ()
10181{
10182
10183 ;
10184 return 0;
10185}
10186_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010187if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010188 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010189fi
cristy3ed852e2009-09-05 21:47:34 +000010190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010192/* end confdefs.h. */
10193#define _FILE_OFFSET_BITS 64
10194#include <sys/types.h>
10195 /* Check that off_t can represent 2**63 - 1 correctly.
10196 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10197 since some C++ compilers masquerading as C compilers
10198 incorrectly reject 9223372036854775807. */
10199#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10200 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10201 && LARGE_OFF_T % 2147483647 == 1)
10202 ? 1 : -1];
10203int
10204main ()
10205{
10206
10207 ;
10208 return 0;
10209}
10210_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010211if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010212 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010213fi
cristy3ed852e2009-09-05 21:47:34 +000010214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10215 ac_cv_sys_file_offset_bits=unknown
10216 break
10217done
10218fi
cristy8b350f62009-11-15 23:12:43 +000010219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010220$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10221case $ac_cv_sys_file_offset_bits in #(
10222 no | unknown) ;;
10223 *)
10224cat >>confdefs.h <<_ACEOF
10225#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10226_ACEOF
10227;;
10228esac
10229rm -rf conftest*
10230 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010232$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010233if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010234 $as_echo_n "(cached) " >&6
10235else
10236 while :; do
cristy8b350f62009-11-15 23:12:43 +000010237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010238/* end confdefs.h. */
10239#include <sys/types.h>
10240 /* Check that off_t can represent 2**63 - 1 correctly.
10241 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10242 since some C++ compilers masquerading as C compilers
10243 incorrectly reject 9223372036854775807. */
10244#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10245 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10246 && LARGE_OFF_T % 2147483647 == 1)
10247 ? 1 : -1];
10248int
10249main ()
10250{
10251
10252 ;
10253 return 0;
10254}
10255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010256if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010257 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010258fi
cristy3ed852e2009-09-05 21:47:34 +000010259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010261/* end confdefs.h. */
10262#define _LARGE_FILES 1
10263#include <sys/types.h>
10264 /* Check that off_t can represent 2**63 - 1 correctly.
10265 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10266 since some C++ compilers masquerading as C compilers
10267 incorrectly reject 9223372036854775807. */
10268#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10269 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10270 && LARGE_OFF_T % 2147483647 == 1)
10271 ? 1 : -1];
10272int
10273main ()
10274{
10275
10276 ;
10277 return 0;
10278}
10279_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010280if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010281 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010282fi
cristy3ed852e2009-09-05 21:47:34 +000010283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10284 ac_cv_sys_large_files=unknown
10285 break
10286done
10287fi
cristy8b350f62009-11-15 23:12:43 +000010288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010289$as_echo "$ac_cv_sys_large_files" >&6; }
10290case $ac_cv_sys_large_files in #(
10291 no | unknown) ;;
10292 *)
10293cat >>confdefs.h <<_ACEOF
10294#define _LARGE_FILES $ac_cv_sys_large_files
10295_ACEOF
10296;;
10297esac
10298rm -rf conftest*
10299 fi
cristy14fefe52012-05-21 00:59:18 +000010300
10301
cristy3ed852e2009-09-05 21:47:34 +000010302fi
10303
cristy8b350f62009-11-15 23:12:43 +000010304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010305$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010306if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010307 $as_echo_n "(cached) " >&6
10308else
10309 while :; do
cristy8b350f62009-11-15 23:12:43 +000010310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010311/* end confdefs.h. */
10312#include <sys/types.h> /* for off_t */
10313 #include <stdio.h>
10314int
10315main ()
10316{
10317int (*fp) (FILE *, off_t, int) = fseeko;
10318 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10319 ;
10320 return 0;
10321}
10322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010323if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010324 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010325fi
cristy8b350f62009-11-15 23:12:43 +000010326rm -f core conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext conftest.$ac_ext
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010329/* end confdefs.h. */
10330#define _LARGEFILE_SOURCE 1
10331#include <sys/types.h> /* for off_t */
10332 #include <stdio.h>
10333int
10334main ()
10335{
10336int (*fp) (FILE *, off_t, int) = fseeko;
10337 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10338 ;
10339 return 0;
10340}
10341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010342if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010343 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010344fi
cristy8b350f62009-11-15 23:12:43 +000010345rm -f core conftest.err conftest.$ac_objext \
10346 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010347 ac_cv_sys_largefile_source=unknown
10348 break
10349done
10350fi
cristy8b350f62009-11-15 23:12:43 +000010351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010352$as_echo "$ac_cv_sys_largefile_source" >&6; }
10353case $ac_cv_sys_largefile_source in #(
10354 no | unknown) ;;
10355 *)
10356cat >>confdefs.h <<_ACEOF
10357#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10358_ACEOF
10359;;
10360esac
10361rm -rf conftest*
10362
10363# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10364# in glibc 2.1.3, but that breaks too many other things.
10365# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10366if test $ac_cv_sys_largefile_source != unknown; then
10367
cristy8b350f62009-11-15 23:12:43 +000010368$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010369
10370fi
10371
10372LFS_CPPFLAGS=''
10373if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010374 case $ac_cv_sys_file_offset_bits in
10375 no)
10376 # nothing to do here as the host supports LFS fine
10377 ;;
10378 unknown)
cristy8b350f62009-11-15 23:12:43 +000010379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010380$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010381 if test "$cross_compiling" = yes; then :
10382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010384as_fn_error $? "cannot run test program while cross compiling
10385See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010386else
cristy8b350f62009-11-15 23:12:43 +000010387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010389#include <unistd.h>
10390 main () {
10391 exit(!(sizeof(off_t) == 8));
10392 }
cristyda16f162011-02-19 23:52:17 +000010393int
10394main ()
10395{
10396
10397 ;
10398 return 0;
10399}
cristy3ed852e2009-09-05 21:47:34 +000010400_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010401if ac_fn_c_try_run "$LINENO"; then :
10402 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010403
cristyad38abe2012-12-23 23:03:21 +000010404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10405$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010406else
cristyad38abe2012-12-23 23:03:21 +000010407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010409fi
cristy8b350f62009-11-15 23:12:43 +000010410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10411 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010412fi
10413
cristyc1e0cc12011-09-21 16:41:16 +000010414 ;;
10415 *)
10416 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10417 ;;
10418 esac
cristy3ed852e2009-09-05 21:47:34 +000010419 if test "$ac_cv_sys_large_files" != 'no'; then
10420 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10421 fi
10422 if test "$ac_cv_sys_largefile_source" != 'no'; then
10423 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10424 fi
10425fi
10426
10427
cristy3ed852e2009-09-05 21:47:34 +000010428# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010429enable_dlopen=yes
10430
10431
10432
10433case `pwd` in
10434 *\ * | *\ *)
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10436$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10437esac
10438
10439
10440
cristy99bd5232011-12-07 14:38:20 +000010441macro_version='2.4.2'
10442macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456ltmain="$ac_aux_dir/ltmain.sh"
10457
cristy0c60a692010-11-04 01:09:47 +000010458# Backslashify metacharacters that are still active within
10459# double-quoted strings.
10460sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10461
10462# Same as above, but do not quote variable references.
10463double_quote_subst='s/\(["`\\]\)/\\\1/g'
10464
10465# Sed substitution to delay expansion of an escaped shell variable in a
10466# double_quote_subst'ed string.
10467delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10468
10469# Sed substitution to delay expansion of an escaped single quote.
10470delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10471
10472# Sed substitution to avoid accidental globbing in evaled expressions
10473no_glob_subst='s/\*/\\\*/g'
10474
cristy73bd4a52010-10-05 11:24:23 +000010475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10476$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010477if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010478 $as_echo_n "(cached) " >&6
10479else
10480 if test -n "$NM"; then
10481 # Let the user override the test.
10482 lt_cv_path_NM="$NM"
10483else
10484 lt_nm_to_check="${ac_tool_prefix}nm"
10485 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10486 lt_nm_to_check="$lt_nm_to_check nm"
10487 fi
10488 for lt_tmp_nm in $lt_nm_to_check; do
10489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10490 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10491 IFS="$lt_save_ifs"
10492 test -z "$ac_dir" && ac_dir=.
10493 tmp_nm="$ac_dir/$lt_tmp_nm"
10494 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10495 # Check to see if the nm accepts a BSD-compat flag.
10496 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10497 # nm: unknown option "B" ignored
10498 # Tru64's nm complains that /dev/null is an invalid object file
10499 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10500 */dev/null* | *'Invalid file or object type'*)
10501 lt_cv_path_NM="$tmp_nm -B"
10502 break
10503 ;;
10504 *)
10505 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10506 */dev/null*)
10507 lt_cv_path_NM="$tmp_nm -p"
10508 break
10509 ;;
10510 *)
10511 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10512 continue # so that we can try to find one that supports BSD flags
10513 ;;
10514 esac
10515 ;;
10516 esac
10517 fi
10518 done
10519 IFS="$lt_save_ifs"
10520 done
10521 : ${lt_cv_path_NM=no}
10522fi
10523fi
10524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10525$as_echo "$lt_cv_path_NM" >&6; }
10526if test "$lt_cv_path_NM" != "no"; then
10527 NM="$lt_cv_path_NM"
10528else
10529 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010530 if test -n "$DUMPBIN"; then :
10531 # Let the user override the test.
10532 else
10533 if test -n "$ac_tool_prefix"; then
10534 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010535 do
10536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10537set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10539$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010540if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010541 $as_echo_n "(cached) " >&6
10542else
10543 if test -n "$DUMPBIN"; then
10544 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10545else
10546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10547for as_dir in $PATH
10548do
10549 IFS=$as_save_IFS
10550 test -z "$as_dir" && as_dir=.
10551 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010553 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10555 break 2
10556 fi
10557done
10558 done
10559IFS=$as_save_IFS
10560
10561fi
10562fi
10563DUMPBIN=$ac_cv_prog_DUMPBIN
10564if test -n "$DUMPBIN"; then
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10566$as_echo "$DUMPBIN" >&6; }
10567else
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10569$as_echo "no" >&6; }
10570fi
10571
10572
10573 test -n "$DUMPBIN" && break
10574 done
10575fi
10576if test -z "$DUMPBIN"; then
10577 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010578 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010579do
10580 # Extract the first word of "$ac_prog", so it can be a program name with args.
10581set dummy $ac_prog; ac_word=$2
10582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010584if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010585 $as_echo_n "(cached) " >&6
10586else
10587 if test -n "$ac_ct_DUMPBIN"; then
10588 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10589else
10590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591for as_dir in $PATH
10592do
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010597 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10599 break 2
10600 fi
10601done
10602 done
10603IFS=$as_save_IFS
10604
10605fi
10606fi
10607ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10608if test -n "$ac_ct_DUMPBIN"; then
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10610$as_echo "$ac_ct_DUMPBIN" >&6; }
10611else
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613$as_echo "no" >&6; }
10614fi
10615
10616
10617 test -n "$ac_ct_DUMPBIN" && break
10618done
10619
10620 if test "x$ac_ct_DUMPBIN" = x; then
10621 DUMPBIN=":"
10622 else
10623 case $cross_compiling:$ac_tool_warned in
10624yes:)
10625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10627ac_tool_warned=yes ;;
10628esac
10629 DUMPBIN=$ac_ct_DUMPBIN
10630 fi
10631fi
10632
cristy0c60a692010-11-04 01:09:47 +000010633 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10634 *COFF*)
10635 DUMPBIN="$DUMPBIN -symbols"
10636 ;;
10637 *)
10638 DUMPBIN=:
10639 ;;
10640 esac
10641 fi
cristy73bd4a52010-10-05 11:24:23 +000010642
10643 if test "$DUMPBIN" != ":"; then
10644 NM="$DUMPBIN"
10645 fi
10646fi
10647test -z "$NM" && NM=nm
10648
10649
10650
10651
10652
10653
10654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10655$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010656if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010657 $as_echo_n "(cached) " >&6
10658else
10659 lt_cv_nm_interface="BSD nm"
10660 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010661 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010662 (eval "$ac_compile" 2>conftest.err)
10663 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010664 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010665 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10666 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010667 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010668 cat conftest.out >&5
10669 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10670 lt_cv_nm_interface="MS dumpbin"
10671 fi
10672 rm -f conftest*
10673fi
10674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10675$as_echo "$lt_cv_nm_interface" >&6; }
10676
10677# find the maximum length of command line arguments
10678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10679$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010680if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010681 $as_echo_n "(cached) " >&6
10682else
10683 i=0
10684 teststring="ABCD"
10685
10686 case $build_os in
10687 msdosdjgpp*)
10688 # On DJGPP, this test can blow up pretty badly due to problems in libc
10689 # (any single argument exceeding 2000 bytes causes a buffer overrun
10690 # during glob expansion). Even if it were fixed, the result of this
10691 # check would be larger than it should be.
10692 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10693 ;;
10694
10695 gnu*)
10696 # Under GNU Hurd, this test is not required because there is
10697 # no limit to the length of command line arguments.
10698 # Libtool will interpret -1 as no limit whatsoever
10699 lt_cv_sys_max_cmd_len=-1;
10700 ;;
10701
10702 cygwin* | mingw* | cegcc*)
10703 # On Win9x/ME, this test blows up -- it succeeds, but takes
10704 # about 5 minutes as the teststring grows exponentially.
10705 # Worse, since 9x/ME are not pre-emptively multitasking,
10706 # you end up with a "frozen" computer, even though with patience
10707 # the test eventually succeeds (with a max line length of 256k).
10708 # Instead, let's just punt: use the minimum linelength reported by
10709 # all of the supported platforms: 8192 (on NT/2K/XP).
10710 lt_cv_sys_max_cmd_len=8192;
10711 ;;
10712
cristy0c60a692010-11-04 01:09:47 +000010713 mint*)
10714 # On MiNT this can take a long time and run out of memory.
10715 lt_cv_sys_max_cmd_len=8192;
10716 ;;
10717
cristy73bd4a52010-10-05 11:24:23 +000010718 amigaos*)
10719 # On AmigaOS with pdksh, this test takes hours, literally.
10720 # So we just punt and use a minimum line length of 8192.
10721 lt_cv_sys_max_cmd_len=8192;
10722 ;;
10723
10724 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10725 # This has been around since 386BSD, at least. Likely further.
10726 if test -x /sbin/sysctl; then
10727 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10728 elif test -x /usr/sbin/sysctl; then
10729 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10730 else
10731 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10732 fi
10733 # And add a safety zone
10734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10736 ;;
10737
10738 interix*)
10739 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10740 lt_cv_sys_max_cmd_len=196608
10741 ;;
10742
cristy99bd5232011-12-07 14:38:20 +000010743 os2*)
10744 # The test takes a long time on OS/2.
10745 lt_cv_sys_max_cmd_len=8192
10746 ;;
10747
cristy73bd4a52010-10-05 11:24:23 +000010748 osf*)
10749 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10750 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10751 # nice to cause kernel panics so lets avoid the loop below.
10752 # First set a reasonable default.
10753 lt_cv_sys_max_cmd_len=16384
10754 #
10755 if test -x /sbin/sysconfig; then
10756 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10757 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10758 esac
10759 fi
10760 ;;
10761 sco3.2v5*)
10762 lt_cv_sys_max_cmd_len=102400
10763 ;;
10764 sysv5* | sco5v6* | sysv4.2uw2*)
10765 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10766 if test -n "$kargmax"; then
10767 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10768 else
10769 lt_cv_sys_max_cmd_len=32768
10770 fi
10771 ;;
10772 *)
10773 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10774 if test -n "$lt_cv_sys_max_cmd_len"; then
10775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10776 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10777 else
10778 # Make teststring a little bigger before we do anything with it.
10779 # a 1K string should be a reasonable start.
10780 for i in 1 2 3 4 5 6 7 8 ; do
10781 teststring=$teststring$teststring
10782 done
10783 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10784 # If test is not a shell built-in, we'll probably end up computing a
10785 # maximum length that is only half of the actual maximum length, but
10786 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010787 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010788 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010789 test $i != 17 # 1/2 MB should be enough
10790 do
10791 i=`expr $i + 1`
10792 teststring=$teststring$teststring
10793 done
10794 # Only check the string length outside the loop.
10795 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10796 teststring=
10797 # Add a significant safety factor because C++ compilers can tack on
10798 # massive amounts of additional arguments before passing them to the
10799 # linker. It appears as though 1/2 is a usable value.
10800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10801 fi
10802 ;;
10803 esac
10804
10805fi
10806
10807if test -n $lt_cv_sys_max_cmd_len ; then
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10809$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10810else
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10812$as_echo "none" >&6; }
10813fi
10814max_cmd_len=$lt_cv_sys_max_cmd_len
10815
10816
10817
10818
10819
10820
10821: ${CP="cp -f"}
10822: ${MV="mv -f"}
10823: ${RM="rm -f"}
10824
10825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10826$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10827# Try some XSI features
10828xsi_shell=no
10829( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010830 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10831 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010832 && eval 'test $(( 1 + 1 )) -eq 2 \
10833 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10834 && xsi_shell=yes
10835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10836$as_echo "$xsi_shell" >&6; }
10837
10838
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10840$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10841lt_shell_append=no
10842( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10843 >/dev/null 2>&1 \
10844 && lt_shell_append=yes
10845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10846$as_echo "$lt_shell_append" >&6; }
10847
10848
10849if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10850 lt_unset=unset
10851else
10852 lt_unset=false
10853fi
10854
10855
10856
10857
10858
10859# test EBCDIC or ASCII
10860case `echo X|tr X '\101'` in
10861 A) # ASCII based system
10862 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10863 lt_SP2NL='tr \040 \012'
10864 lt_NL2SP='tr \015\012 \040\040'
10865 ;;
10866 *) # EBCDIC based system
10867 lt_SP2NL='tr \100 \n'
10868 lt_NL2SP='tr \r\n \100\100'
10869 ;;
10870esac
10871
10872
10873
10874
10875
10876
10877
10878
10879
cristyda16f162011-02-19 23:52:17 +000010880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10881$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10882if ${lt_cv_to_host_file_cmd+:} false; then :
10883 $as_echo_n "(cached) " >&6
10884else
10885 case $host in
10886 *-*-mingw* )
10887 case $build in
10888 *-*-mingw* ) # actually msys
10889 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10890 ;;
10891 *-*-cygwin* )
10892 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10893 ;;
10894 * ) # otherwise, assume *nix
10895 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10896 ;;
10897 esac
10898 ;;
10899 *-*-cygwin* )
10900 case $build in
10901 *-*-mingw* ) # actually msys
10902 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10903 ;;
10904 *-*-cygwin* )
10905 lt_cv_to_host_file_cmd=func_convert_file_noop
10906 ;;
10907 * ) # otherwise, assume *nix
10908 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10909 ;;
10910 esac
10911 ;;
10912 * ) # unhandled hosts (and "normal" native builds)
10913 lt_cv_to_host_file_cmd=func_convert_file_noop
10914 ;;
10915esac
10916
10917fi
10918
10919to_host_file_cmd=$lt_cv_to_host_file_cmd
10920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10921$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10922
10923
10924
10925
10926
10927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10928$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10929if ${lt_cv_to_tool_file_cmd+:} false; then :
10930 $as_echo_n "(cached) " >&6
10931else
10932 #assume ordinary cross tools, or native build.
10933lt_cv_to_tool_file_cmd=func_convert_file_noop
10934case $host in
10935 *-*-mingw* )
10936 case $build in
10937 *-*-mingw* ) # actually msys
10938 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10939 ;;
10940 esac
10941 ;;
10942esac
10943
10944fi
10945
10946to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10948$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10949
10950
10951
10952
10953
cristy73bd4a52010-10-05 11:24:23 +000010954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10955$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010956if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010957 $as_echo_n "(cached) " >&6
10958else
10959 lt_cv_ld_reload_flag='-r'
10960fi
10961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10962$as_echo "$lt_cv_ld_reload_flag" >&6; }
10963reload_flag=$lt_cv_ld_reload_flag
10964case $reload_flag in
10965"" | " "*) ;;
10966*) reload_flag=" $reload_flag" ;;
10967esac
10968reload_cmds='$LD$reload_flag -o $output$reload_objs'
10969case $host_os in
cristyda16f162011-02-19 23:52:17 +000010970 cygwin* | mingw* | pw32* | cegcc*)
10971 if test "$GCC" != yes; then
10972 reload_cmds=false
10973 fi
10974 ;;
cristy73bd4a52010-10-05 11:24:23 +000010975 darwin*)
10976 if test "$GCC" = yes; then
10977 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10978 else
10979 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10980 fi
10981 ;;
10982esac
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992if test -n "$ac_tool_prefix"; then
10993 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10994set dummy ${ac_tool_prefix}objdump; ac_word=$2
10995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10996$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010997if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010998 $as_echo_n "(cached) " >&6
10999else
11000 if test -n "$OBJDUMP"; then
11001 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11002else
11003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004for as_dir in $PATH
11005do
11006 IFS=$as_save_IFS
11007 test -z "$as_dir" && as_dir=.
11008 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011010 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11012 break 2
11013 fi
11014done
11015 done
11016IFS=$as_save_IFS
11017
11018fi
11019fi
11020OBJDUMP=$ac_cv_prog_OBJDUMP
11021if test -n "$OBJDUMP"; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11023$as_echo "$OBJDUMP" >&6; }
11024else
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11026$as_echo "no" >&6; }
11027fi
11028
11029
11030fi
11031if test -z "$ac_cv_prog_OBJDUMP"; then
11032 ac_ct_OBJDUMP=$OBJDUMP
11033 # Extract the first word of "objdump", so it can be a program name with args.
11034set dummy objdump; ac_word=$2
11035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11036$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011037if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011038 $as_echo_n "(cached) " >&6
11039else
11040 if test -n "$ac_ct_OBJDUMP"; then
11041 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11042else
11043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11044for as_dir in $PATH
11045do
11046 IFS=$as_save_IFS
11047 test -z "$as_dir" && as_dir=.
11048 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011050 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11052 break 2
11053 fi
11054done
11055 done
11056IFS=$as_save_IFS
11057
11058fi
11059fi
11060ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11061if test -n "$ac_ct_OBJDUMP"; then
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11063$as_echo "$ac_ct_OBJDUMP" >&6; }
11064else
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066$as_echo "no" >&6; }
11067fi
11068
11069 if test "x$ac_ct_OBJDUMP" = x; then
11070 OBJDUMP="false"
11071 else
11072 case $cross_compiling:$ac_tool_warned in
11073yes:)
11074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11076ac_tool_warned=yes ;;
11077esac
11078 OBJDUMP=$ac_ct_OBJDUMP
11079 fi
11080else
11081 OBJDUMP="$ac_cv_prog_OBJDUMP"
11082fi
11083
11084test -z "$OBJDUMP" && OBJDUMP=objdump
11085
11086
11087
11088
11089
11090
11091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11092$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011093if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011094 $as_echo_n "(cached) " >&6
11095else
11096 lt_cv_file_magic_cmd='$MAGIC_CMD'
11097lt_cv_file_magic_test_file=
11098lt_cv_deplibs_check_method='unknown'
11099# Need to set the preceding variable on all platforms that support
11100# interlibrary dependencies.
11101# 'none' -- dependencies not supported.
11102# `unknown' -- same as none, but documents that we really don't know.
11103# 'pass_all' -- all dependencies passed with no checks.
11104# 'test_compile' -- check by making test program.
11105# 'file_magic [[regex]]' -- check by looking for files in library path
11106# which responds to the $file_magic_cmd with a given extended regex.
11107# If you have `file' or equivalent on your system and you're not sure
11108# whether `pass_all' will *always* work, you probably want this one.
11109
11110case $host_os in
11111aix[4-9]*)
11112 lt_cv_deplibs_check_method=pass_all
11113 ;;
11114
11115beos*)
11116 lt_cv_deplibs_check_method=pass_all
11117 ;;
11118
11119bsdi[45]*)
11120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11121 lt_cv_file_magic_cmd='/usr/bin/file -L'
11122 lt_cv_file_magic_test_file=/shlib/libc.so
11123 ;;
11124
11125cygwin*)
11126 # func_win32_libid is a shell function defined in ltmain.sh
11127 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11128 lt_cv_file_magic_cmd='func_win32_libid'
11129 ;;
11130
11131mingw* | pw32*)
11132 # Base MSYS/MinGW do not provide the 'file' command needed by
11133 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11134 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011135 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11136 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011137 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11138 lt_cv_file_magic_cmd='func_win32_libid'
11139 else
cristy0c60a692010-11-04 01:09:47 +000011140 # Keep this pattern in sync with the one in func_win32_libid.
11141 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 +000011142 lt_cv_file_magic_cmd='$OBJDUMP -f'
11143 fi
11144 ;;
11145
cristy0c60a692010-11-04 01:09:47 +000011146cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011147 # use the weaker test based on 'objdump'. See mingw*.
11148 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11149 lt_cv_file_magic_cmd='$OBJDUMP -f'
11150 ;;
11151
11152darwin* | rhapsody*)
11153 lt_cv_deplibs_check_method=pass_all
11154 ;;
11155
11156freebsd* | dragonfly*)
11157 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11158 case $host_cpu in
11159 i*86 )
11160 # Not sure whether the presence of OpenBSD here was a mistake.
11161 # Let's accept both of them until this is cleared up.
11162 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11163 lt_cv_file_magic_cmd=/usr/bin/file
11164 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11165 ;;
11166 esac
11167 else
11168 lt_cv_deplibs_check_method=pass_all
11169 fi
11170 ;;
11171
11172gnu*)
11173 lt_cv_deplibs_check_method=pass_all
11174 ;;
11175
cristy0c60a692010-11-04 01:09:47 +000011176haiku*)
11177 lt_cv_deplibs_check_method=pass_all
11178 ;;
11179
cristy73bd4a52010-10-05 11:24:23 +000011180hpux10.20* | hpux11*)
11181 lt_cv_file_magic_cmd=/usr/bin/file
11182 case $host_cpu in
11183 ia64*)
11184 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11185 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11186 ;;
11187 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011188 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 +000011189 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11190 ;;
11191 *)
cristy0c60a692010-11-04 01:09:47 +000011192 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 +000011193 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11194 ;;
11195 esac
11196 ;;
11197
11198interix[3-9]*)
11199 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11200 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11201 ;;
11202
11203irix5* | irix6* | nonstopux*)
11204 case $LD in
11205 *-32|*"-32 ") libmagic=32-bit;;
11206 *-n32|*"-n32 ") libmagic=N32;;
11207 *-64|*"-64 ") libmagic=64-bit;;
11208 *) libmagic=never-match;;
11209 esac
11210 lt_cv_deplibs_check_method=pass_all
11211 ;;
11212
cristy99bd5232011-12-07 14:38:20 +000011213# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011214linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011215 lt_cv_deplibs_check_method=pass_all
11216 ;;
11217
11218netbsd*)
11219 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11221 else
11222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11223 fi
11224 ;;
11225
11226newos6*)
11227 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11228 lt_cv_file_magic_cmd=/usr/bin/file
11229 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11230 ;;
11231
11232*nto* | *qnx*)
11233 lt_cv_deplibs_check_method=pass_all
11234 ;;
11235
11236openbsd*)
11237 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11239 else
11240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11241 fi
11242 ;;
11243
11244osf3* | osf4* | osf5*)
11245 lt_cv_deplibs_check_method=pass_all
11246 ;;
11247
11248rdos*)
11249 lt_cv_deplibs_check_method=pass_all
11250 ;;
11251
11252solaris*)
11253 lt_cv_deplibs_check_method=pass_all
11254 ;;
11255
11256sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11257 lt_cv_deplibs_check_method=pass_all
11258 ;;
11259
11260sysv4 | sysv4.3*)
11261 case $host_vendor in
11262 motorola)
11263 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]'
11264 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11265 ;;
11266 ncr)
11267 lt_cv_deplibs_check_method=pass_all
11268 ;;
11269 sequent)
11270 lt_cv_file_magic_cmd='/bin/file'
11271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11272 ;;
11273 sni)
11274 lt_cv_file_magic_cmd='/bin/file'
11275 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11276 lt_cv_file_magic_test_file=/lib/libc.so
11277 ;;
11278 siemens)
11279 lt_cv_deplibs_check_method=pass_all
11280 ;;
11281 pc)
11282 lt_cv_deplibs_check_method=pass_all
11283 ;;
11284 esac
11285 ;;
11286
11287tpf*)
11288 lt_cv_deplibs_check_method=pass_all
11289 ;;
11290esac
11291
11292fi
11293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11294$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011295
11296file_magic_glob=
11297want_nocaseglob=no
11298if test "$build" = "$host"; then
11299 case $host_os in
11300 mingw* | pw32*)
11301 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11302 want_nocaseglob=yes
11303 else
11304 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11305 fi
11306 ;;
11307 esac
11308fi
11309
cristy73bd4a52010-10-05 11:24:23 +000011310file_magic_cmd=$lt_cv_file_magic_cmd
11311deplibs_check_method=$lt_cv_deplibs_check_method
11312test -z "$deplibs_check_method" && deplibs_check_method=unknown
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
cristyda16f162011-02-19 23:52:17 +000011325
11326
11327
11328
11329
11330
11331
11332
11333
11334
cristy73bd4a52010-10-05 11:24:23 +000011335if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011336 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11337set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11339$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011340if ${ac_cv_prog_DLLTOOL+:} false; then :
11341 $as_echo_n "(cached) " >&6
11342else
11343 if test -n "$DLLTOOL"; then
11344 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11345else
11346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347for as_dir in $PATH
11348do
11349 IFS=$as_save_IFS
11350 test -z "$as_dir" && as_dir=.
11351 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011353 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11355 break 2
11356 fi
11357done
11358 done
11359IFS=$as_save_IFS
11360
11361fi
11362fi
11363DLLTOOL=$ac_cv_prog_DLLTOOL
11364if test -n "$DLLTOOL"; then
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11366$as_echo "$DLLTOOL" >&6; }
11367else
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369$as_echo "no" >&6; }
11370fi
11371
11372
11373fi
11374if test -z "$ac_cv_prog_DLLTOOL"; then
11375 ac_ct_DLLTOOL=$DLLTOOL
11376 # Extract the first word of "dlltool", so it can be a program name with args.
11377set dummy dlltool; ac_word=$2
11378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11379$as_echo_n "checking for $ac_word... " >&6; }
11380if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11381 $as_echo_n "(cached) " >&6
11382else
11383 if test -n "$ac_ct_DLLTOOL"; then
11384 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11385else
11386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11387for as_dir in $PATH
11388do
11389 IFS=$as_save_IFS
11390 test -z "$as_dir" && as_dir=.
11391 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011393 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11395 break 2
11396 fi
11397done
11398 done
11399IFS=$as_save_IFS
11400
11401fi
11402fi
11403ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11404if test -n "$ac_ct_DLLTOOL"; then
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11406$as_echo "$ac_ct_DLLTOOL" >&6; }
11407else
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11409$as_echo "no" >&6; }
11410fi
11411
11412 if test "x$ac_ct_DLLTOOL" = x; then
11413 DLLTOOL="false"
11414 else
11415 case $cross_compiling:$ac_tool_warned in
11416yes:)
11417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11419ac_tool_warned=yes ;;
11420esac
11421 DLLTOOL=$ac_ct_DLLTOOL
11422 fi
11423else
11424 DLLTOOL="$ac_cv_prog_DLLTOOL"
11425fi
11426
11427test -z "$DLLTOOL" && DLLTOOL=dlltool
11428
11429
11430
11431
11432
11433
11434
11435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11436$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11437if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11438 $as_echo_n "(cached) " >&6
11439else
11440 lt_cv_sharedlib_from_linklib_cmd='unknown'
11441
11442case $host_os in
11443cygwin* | mingw* | pw32* | cegcc*)
11444 # two different shell functions defined in ltmain.sh
11445 # decide which to use based on capabilities of $DLLTOOL
11446 case `$DLLTOOL --help 2>&1` in
11447 *--identify-strict*)
11448 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11449 ;;
11450 *)
11451 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11452 ;;
11453 esac
11454 ;;
11455*)
11456 # fallback: assume linklib IS sharedlib
11457 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11458 ;;
11459esac
11460
11461fi
11462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11463$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11464sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11465test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11466
11467
11468
11469
11470
11471
11472
11473if test -n "$ac_tool_prefix"; then
11474 for ac_prog in ar
11475 do
11476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11477set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479$as_echo_n "checking for $ac_word... " >&6; }
11480if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011481 $as_echo_n "(cached) " >&6
11482else
11483 if test -n "$AR"; then
11484 ac_cv_prog_AR="$AR" # Let the user override the test.
11485else
11486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487for as_dir in $PATH
11488do
11489 IFS=$as_save_IFS
11490 test -z "$as_dir" && as_dir=.
11491 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011493 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11495 break 2
11496 fi
11497done
11498 done
11499IFS=$as_save_IFS
11500
11501fi
11502fi
11503AR=$ac_cv_prog_AR
11504if test -n "$AR"; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11506$as_echo "$AR" >&6; }
11507else
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509$as_echo "no" >&6; }
11510fi
11511
11512
cristyda16f162011-02-19 23:52:17 +000011513 test -n "$AR" && break
11514 done
cristy73bd4a52010-10-05 11:24:23 +000011515fi
cristyda16f162011-02-19 23:52:17 +000011516if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011517 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011518 for ac_prog in ar
11519do
11520 # Extract the first word of "$ac_prog", so it can be a program name with args.
11521set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11523$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011524if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011525 $as_echo_n "(cached) " >&6
11526else
11527 if test -n "$ac_ct_AR"; then
11528 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11529else
11530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11531for as_dir in $PATH
11532do
11533 IFS=$as_save_IFS
11534 test -z "$as_dir" && as_dir=.
11535 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011537 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11539 break 2
11540 fi
11541done
11542 done
11543IFS=$as_save_IFS
11544
11545fi
11546fi
11547ac_ct_AR=$ac_cv_prog_ac_ct_AR
11548if test -n "$ac_ct_AR"; then
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11550$as_echo "$ac_ct_AR" >&6; }
11551else
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11553$as_echo "no" >&6; }
11554fi
11555
cristyda16f162011-02-19 23:52:17 +000011556
11557 test -n "$ac_ct_AR" && break
11558done
11559
cristy73bd4a52010-10-05 11:24:23 +000011560 if test "x$ac_ct_AR" = x; then
11561 AR="false"
11562 else
11563 case $cross_compiling:$ac_tool_warned in
11564yes:)
11565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11567ac_tool_warned=yes ;;
11568esac
11569 AR=$ac_ct_AR
11570 fi
cristy73bd4a52010-10-05 11:24:23 +000011571fi
11572
cristyda16f162011-02-19 23:52:17 +000011573: ${AR=ar}
11574: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
cristyda16f162011-02-19 23:52:17 +000011586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11587$as_echo_n "checking for archiver @FILE support... " >&6; }
11588if ${lt_cv_ar_at_file+:} false; then :
11589 $as_echo_n "(cached) " >&6
11590else
11591 lt_cv_ar_at_file=no
11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593/* end confdefs.h. */
11594
11595int
11596main ()
11597{
11598
11599 ;
11600 return 0;
11601}
11602_ACEOF
11603if ac_fn_c_try_compile "$LINENO"; then :
11604 echo conftest.$ac_objext > conftest.lst
11605 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11607 (eval $lt_ar_try) 2>&5
11608 ac_status=$?
11609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11610 test $ac_status = 0; }
11611 if test "$ac_status" -eq 0; then
11612 # Ensure the archiver fails upon bogus file names.
11613 rm -f conftest.$ac_objext libconftest.a
11614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11615 (eval $lt_ar_try) 2>&5
11616 ac_status=$?
11617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11618 test $ac_status = 0; }
11619 if test "$ac_status" -ne 0; then
11620 lt_cv_ar_at_file=@
11621 fi
11622 fi
11623 rm -f conftest.* libconftest.a
11624
11625fi
11626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11627
11628fi
11629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11630$as_echo "$lt_cv_ar_at_file" >&6; }
11631
11632if test "x$lt_cv_ar_at_file" = xno; then
11633 archiver_list_spec=
11634else
11635 archiver_list_spec=$lt_cv_ar_at_file
11636fi
11637
11638
11639
11640
11641
11642
11643
cristy73bd4a52010-10-05 11:24:23 +000011644if test -n "$ac_tool_prefix"; then
11645 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11646set dummy ${ac_tool_prefix}strip; ac_word=$2
11647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11648$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011649if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011650 $as_echo_n "(cached) " >&6
11651else
11652 if test -n "$STRIP"; then
11653 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11654else
11655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656for as_dir in $PATH
11657do
11658 IFS=$as_save_IFS
11659 test -z "$as_dir" && as_dir=.
11660 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011662 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11664 break 2
11665 fi
11666done
11667 done
11668IFS=$as_save_IFS
11669
11670fi
11671fi
11672STRIP=$ac_cv_prog_STRIP
11673if test -n "$STRIP"; then
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11675$as_echo "$STRIP" >&6; }
11676else
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678$as_echo "no" >&6; }
11679fi
11680
11681
11682fi
11683if test -z "$ac_cv_prog_STRIP"; then
11684 ac_ct_STRIP=$STRIP
11685 # Extract the first word of "strip", so it can be a program name with args.
11686set dummy strip; ac_word=$2
11687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011689if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011690 $as_echo_n "(cached) " >&6
11691else
11692 if test -n "$ac_ct_STRIP"; then
11693 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11694else
11695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696for as_dir in $PATH
11697do
11698 IFS=$as_save_IFS
11699 test -z "$as_dir" && as_dir=.
11700 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011702 ac_cv_prog_ac_ct_STRIP="strip"
11703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11704 break 2
11705 fi
11706done
11707 done
11708IFS=$as_save_IFS
11709
11710fi
11711fi
11712ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11713if test -n "$ac_ct_STRIP"; then
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11715$as_echo "$ac_ct_STRIP" >&6; }
11716else
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11718$as_echo "no" >&6; }
11719fi
11720
11721 if test "x$ac_ct_STRIP" = x; then
11722 STRIP=":"
11723 else
11724 case $cross_compiling:$ac_tool_warned in
11725yes:)
11726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11728ac_tool_warned=yes ;;
11729esac
11730 STRIP=$ac_ct_STRIP
11731 fi
11732else
11733 STRIP="$ac_cv_prog_STRIP"
11734fi
11735
11736test -z "$STRIP" && STRIP=:
11737
11738
11739
11740
11741
11742
11743if test -n "$ac_tool_prefix"; then
11744 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11745set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011748if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011749 $as_echo_n "(cached) " >&6
11750else
11751 if test -n "$RANLIB"; then
11752 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11753else
11754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11755for as_dir in $PATH
11756do
11757 IFS=$as_save_IFS
11758 test -z "$as_dir" && as_dir=.
11759 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011761 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 break 2
11764 fi
11765done
11766 done
11767IFS=$as_save_IFS
11768
11769fi
11770fi
11771RANLIB=$ac_cv_prog_RANLIB
11772if test -n "$RANLIB"; then
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11774$as_echo "$RANLIB" >&6; }
11775else
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777$as_echo "no" >&6; }
11778fi
11779
11780
11781fi
11782if test -z "$ac_cv_prog_RANLIB"; then
11783 ac_ct_RANLIB=$RANLIB
11784 # Extract the first word of "ranlib", so it can be a program name with args.
11785set dummy ranlib; ac_word=$2
11786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11787$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011788if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011789 $as_echo_n "(cached) " >&6
11790else
11791 if test -n "$ac_ct_RANLIB"; then
11792 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11793else
11794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795for as_dir in $PATH
11796do
11797 IFS=$as_save_IFS
11798 test -z "$as_dir" && as_dir=.
11799 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011801 ac_cv_prog_ac_ct_RANLIB="ranlib"
11802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11803 break 2
11804 fi
11805done
11806 done
11807IFS=$as_save_IFS
11808
11809fi
11810fi
11811ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11812if test -n "$ac_ct_RANLIB"; then
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11814$as_echo "$ac_ct_RANLIB" >&6; }
11815else
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817$as_echo "no" >&6; }
11818fi
11819
11820 if test "x$ac_ct_RANLIB" = x; then
11821 RANLIB=":"
11822 else
11823 case $cross_compiling:$ac_tool_warned in
11824yes:)
11825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11827ac_tool_warned=yes ;;
11828esac
11829 RANLIB=$ac_ct_RANLIB
11830 fi
11831else
11832 RANLIB="$ac_cv_prog_RANLIB"
11833fi
11834
11835test -z "$RANLIB" && RANLIB=:
11836
11837
11838
11839
11840
11841
11842# Determine commands to create old-style static archives.
11843old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11844old_postinstall_cmds='chmod 644 $oldlib'
11845old_postuninstall_cmds=
11846
11847if test -n "$RANLIB"; then
11848 case $host_os in
11849 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011850 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011851 ;;
11852 *)
cristy99bd5232011-12-07 14:38:20 +000011853 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011854 ;;
11855 esac
cristy99bd5232011-12-07 14:38:20 +000011856 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011857fi
11858
cristy0c60a692010-11-04 01:09:47 +000011859case $host_os in
11860 darwin*)
11861 lock_old_archive_extraction=yes ;;
11862 *)
11863 lock_old_archive_extraction=no ;;
11864esac
11865
11866
11867
11868
11869
11870
cristy73bd4a52010-10-05 11:24:23 +000011871
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
11902
11903
11904# If no C compiler was specified, use CC.
11905LTCC=${LTCC-"$CC"}
11906
11907# If no C compiler flags were specified, use CFLAGS.
11908LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11909
11910# Allow CC to be a program name with arguments.
11911compiler=$CC
11912
11913
11914# Check for command to grab the raw symbol name followed by C symbol from nm.
11915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11916$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011917if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011918 $as_echo_n "(cached) " >&6
11919else
11920
11921# These are sane defaults that work on at least a few old systems.
11922# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11923
11924# Character class describing NM global symbol codes.
11925symcode='[BCDEGRST]'
11926
11927# Regexp to match symbols that can be accessed directly from C.
11928sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11929
11930# Define system-specific variables.
11931case $host_os in
11932aix*)
11933 symcode='[BCDT]'
11934 ;;
11935cygwin* | mingw* | pw32* | cegcc*)
11936 symcode='[ABCDGISTW]'
11937 ;;
11938hpux*)
11939 if test "$host_cpu" = ia64; then
11940 symcode='[ABCDEGRST]'
11941 fi
11942 ;;
11943irix* | nonstopux*)
11944 symcode='[BCDEGRST]'
11945 ;;
11946osf*)
11947 symcode='[BCDEGQRST]'
11948 ;;
11949solaris*)
11950 symcode='[BDRT]'
11951 ;;
11952sco3.2v5*)
11953 symcode='[DT]'
11954 ;;
11955sysv4.2uw2*)
11956 symcode='[DT]'
11957 ;;
11958sysv5* | sco5v6* | unixware* | OpenUNIX*)
11959 symcode='[ABDT]'
11960 ;;
11961sysv4)
11962 symcode='[DFNSTU]'
11963 ;;
11964esac
11965
11966# If we're using GNU nm, then use its standard symbol codes.
11967case `$NM -V 2>&1` in
11968*GNU* | *'with BFD'*)
11969 symcode='[ABCDGIRSTW]' ;;
11970esac
11971
11972# Transform an extracted symbol line into a proper C declaration.
11973# Some systems (esp. on ia64) link data and code symbols differently,
11974# so use this general approach.
11975lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11976
11977# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011978lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11979lt_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 +000011980
11981# Handle CRLF in mingw tool chain
11982opt_cr=
11983case $build_os in
11984mingw*)
11985 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11986 ;;
11987esac
11988
11989# Try without a prefix underscore, then with it.
11990for ac_symprfx in "" "_"; do
11991
11992 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11993 symxfrm="\\1 $ac_symprfx\\2 \\2"
11994
11995 # Write the raw and C identifiers.
11996 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11997 # Fake it for dumpbin and say T for any non-static function
11998 # and D for any global variable.
11999 # Also find C++ and __fastcall symbols from MSVC++,
12000 # which start with @ or ?.
12001 lt_cv_sys_global_symbol_pipe="$AWK '"\
12002" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012003" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012004" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12005" \$ 0!~/External *\|/{next};"\
12006" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12007" {if(hide[section]) next};"\
12008" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12009" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12010" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12011" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12012" ' prfx=^$ac_symprfx"
12013 else
12014 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12015 fi
cristyda16f162011-02-19 23:52:17 +000012016 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012017
12018 # Check to see that the pipe works correctly.
12019 pipe_works=no
12020
12021 rm -f conftest*
12022 cat > conftest.$ac_ext <<_LT_EOF
12023#ifdef __cplusplus
12024extern "C" {
12025#endif
12026char nm_test_var;
12027void nm_test_func(void);
12028void nm_test_func(void){}
12029#ifdef __cplusplus
12030}
12031#endif
12032int main(){nm_test_var='a';nm_test_func();return(0);}
12033_LT_EOF
12034
12035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12036 (eval $ac_compile) 2>&5
12037 ac_status=$?
12038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12039 test $ac_status = 0; }; then
12040 # Now try to grab the symbols.
12041 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12043 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012044 ac_status=$?
12045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12046 test $ac_status = 0; } && test -s "$nlist"; then
12047 # Try sorting and uniquifying the output.
12048 if sort "$nlist" | uniq > "$nlist"T; then
12049 mv -f "$nlist"T "$nlist"
12050 else
12051 rm -f "$nlist"T
12052 fi
12053
12054 # Make sure that we snagged all the symbols we need.
12055 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12056 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12057 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012058/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12059#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12060/* DATA imports from DLLs on WIN32 con't be const, because runtime
12061 relocations are performed -- see ld's documentation on pseudo-relocs. */
12062# define LT_DLSYM_CONST
12063#elif defined(__osf__)
12064/* This system does not cope well with relocations in const data. */
12065# define LT_DLSYM_CONST
12066#else
12067# define LT_DLSYM_CONST const
12068#endif
12069
cristy73bd4a52010-10-05 11:24:23 +000012070#ifdef __cplusplus
12071extern "C" {
12072#endif
12073
12074_LT_EOF
12075 # Now generate the symbol file.
12076 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12077
12078 cat <<_LT_EOF >> conftest.$ac_ext
12079
12080/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012081LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012082 const char *name;
12083 void *address;
12084}
12085lt__PROGRAM__LTX_preloaded_symbols[] =
12086{
12087 { "@PROGRAM@", (void *) 0 },
12088_LT_EOF
12089 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12090 cat <<\_LT_EOF >> conftest.$ac_ext
12091 {0, (void *) 0}
12092};
12093
12094/* This works around a problem in FreeBSD linker */
12095#ifdef FREEBSD_WORKAROUND
12096static const void *lt_preloaded_setup() {
12097 return lt__PROGRAM__LTX_preloaded_symbols;
12098}
12099#endif
12100
12101#ifdef __cplusplus
12102}
12103#endif
12104_LT_EOF
12105 # Now try linking the two files.
12106 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012107 lt_globsym_save_LIBS=$LIBS
12108 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012109 LIBS="conftstm.$ac_objext"
12110 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12112 (eval $ac_link) 2>&5
12113 ac_status=$?
12114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12115 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12116 pipe_works=yes
12117 fi
cristyda16f162011-02-19 23:52:17 +000012118 LIBS=$lt_globsym_save_LIBS
12119 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012120 else
12121 echo "cannot find nm_test_func in $nlist" >&5
12122 fi
12123 else
12124 echo "cannot find nm_test_var in $nlist" >&5
12125 fi
12126 else
12127 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12128 fi
12129 else
12130 echo "$progname: failed program was:" >&5
12131 cat conftest.$ac_ext >&5
12132 fi
12133 rm -rf conftest* conftst*
12134
12135 # Do not use the global_symbol_pipe unless it works.
12136 if test "$pipe_works" = yes; then
12137 break
12138 else
12139 lt_cv_sys_global_symbol_pipe=
12140 fi
12141done
12142
12143fi
12144
12145if test -z "$lt_cv_sys_global_symbol_pipe"; then
12146 lt_cv_sys_global_symbol_to_cdecl=
12147fi
12148if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12150$as_echo "failed" >&6; }
12151else
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12153$as_echo "ok" >&6; }
12154fi
12155
cristyda16f162011-02-19 23:52:17 +000012156# Response file support.
12157if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12158 nm_file_list_spec='@'
12159elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12160 nm_file_list_spec='@'
12161fi
cristy73bd4a52010-10-05 11:24:23 +000012162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
cristyda16f162011-02-19 23:52:17 +000012183
12184
12185
12186
12187
12188
12189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12190$as_echo_n "checking for sysroot... " >&6; }
12191
12192# Check whether --with-sysroot was given.
12193if test "${with_sysroot+set}" = set; then :
12194 withval=$with_sysroot;
12195else
12196 with_sysroot=no
12197fi
12198
12199
12200lt_sysroot=
12201case ${with_sysroot} in #(
12202 yes)
12203 if test "$GCC" = yes; then
12204 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12205 fi
12206 ;; #(
12207 /*)
12208 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12209 ;; #(
12210 no|'')
12211 ;; #(
12212 *)
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12214$as_echo "${with_sysroot}" >&6; }
12215 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12216 ;;
12217esac
12218
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12220$as_echo "${lt_sysroot:-no}" >&6; }
12221
12222
12223
12224
12225
cristy73bd4a52010-10-05 11:24:23 +000012226# Check whether --enable-libtool-lock was given.
12227if test "${enable_libtool_lock+set}" = set; then :
12228 enableval=$enable_libtool_lock;
12229fi
12230
12231test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12232
12233# Some flags need to be propagated to the compiler or linker for good
12234# libtool support.
12235case $host in
12236ia64-*-hpux*)
12237 # Find out which ABI we are using.
12238 echo 'int i;' > conftest.$ac_ext
12239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12240 (eval $ac_compile) 2>&5
12241 ac_status=$?
12242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12243 test $ac_status = 0; }; then
12244 case `/usr/bin/file conftest.$ac_objext` in
12245 *ELF-32*)
12246 HPUX_IA64_MODE="32"
12247 ;;
12248 *ELF-64*)
12249 HPUX_IA64_MODE="64"
12250 ;;
12251 esac
12252 fi
12253 rm -rf conftest*
12254 ;;
12255*-*-irix6*)
12256 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012257 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12259 (eval $ac_compile) 2>&5
12260 ac_status=$?
12261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12262 test $ac_status = 0; }; then
12263 if test "$lt_cv_prog_gnu_ld" = yes; then
12264 case `/usr/bin/file conftest.$ac_objext` in
12265 *32-bit*)
12266 LD="${LD-ld} -melf32bsmip"
12267 ;;
12268 *N32*)
12269 LD="${LD-ld} -melf32bmipn32"
12270 ;;
12271 *64-bit*)
12272 LD="${LD-ld} -melf64bmip"
12273 ;;
12274 esac
12275 else
12276 case `/usr/bin/file conftest.$ac_objext` in
12277 *32-bit*)
12278 LD="${LD-ld} -32"
12279 ;;
12280 *N32*)
12281 LD="${LD-ld} -n32"
12282 ;;
12283 *64-bit*)
12284 LD="${LD-ld} -64"
12285 ;;
12286 esac
12287 fi
12288 fi
12289 rm -rf conftest*
12290 ;;
12291
12292x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12293s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12294 # Find out which ABI we are using.
12295 echo 'int i;' > conftest.$ac_ext
12296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12297 (eval $ac_compile) 2>&5
12298 ac_status=$?
12299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12300 test $ac_status = 0; }; then
12301 case `/usr/bin/file conftest.o` in
12302 *32-bit*)
12303 case $host in
12304 x86_64-*kfreebsd*-gnu)
12305 LD="${LD-ld} -m elf_i386_fbsd"
12306 ;;
12307 x86_64-*linux*)
12308 LD="${LD-ld} -m elf_i386"
12309 ;;
12310 ppc64-*linux*|powerpc64-*linux*)
12311 LD="${LD-ld} -m elf32ppclinux"
12312 ;;
12313 s390x-*linux*)
12314 LD="${LD-ld} -m elf_s390"
12315 ;;
12316 sparc64-*linux*)
12317 LD="${LD-ld} -m elf32_sparc"
12318 ;;
12319 esac
12320 ;;
12321 *64-bit*)
12322 case $host in
12323 x86_64-*kfreebsd*-gnu)
12324 LD="${LD-ld} -m elf_x86_64_fbsd"
12325 ;;
12326 x86_64-*linux*)
12327 LD="${LD-ld} -m elf_x86_64"
12328 ;;
12329 ppc*-*linux*|powerpc*-*linux*)
12330 LD="${LD-ld} -m elf64ppc"
12331 ;;
12332 s390*-*linux*|s390*-*tpf*)
12333 LD="${LD-ld} -m elf64_s390"
12334 ;;
12335 sparc*-*linux*)
12336 LD="${LD-ld} -m elf64_sparc"
12337 ;;
12338 esac
12339 ;;
12340 esac
12341 fi
12342 rm -rf conftest*
12343 ;;
12344
12345*-*-sco3.2v5*)
12346 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12347 SAVE_CFLAGS="$CFLAGS"
12348 CFLAGS="$CFLAGS -belf"
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12350$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012351if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012352 $as_echo_n "(cached) " >&6
12353else
12354 ac_ext=c
12355ac_cpp='$CPP $CPPFLAGS'
12356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12358ac_compiler_gnu=$ac_cv_c_compiler_gnu
12359
12360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12361/* end confdefs.h. */
12362
12363int
12364main ()
12365{
12366
12367 ;
12368 return 0;
12369}
12370_ACEOF
12371if ac_fn_c_try_link "$LINENO"; then :
12372 lt_cv_cc_needs_belf=yes
12373else
12374 lt_cv_cc_needs_belf=no
12375fi
12376rm -f core conftest.err conftest.$ac_objext \
12377 conftest$ac_exeext conftest.$ac_ext
12378 ac_ext=c
12379ac_cpp='$CPP $CPPFLAGS'
12380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12382ac_compiler_gnu=$ac_cv_c_compiler_gnu
12383
12384fi
12385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12386$as_echo "$lt_cv_cc_needs_belf" >&6; }
12387 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12388 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12389 CFLAGS="$SAVE_CFLAGS"
12390 fi
12391 ;;
cristy99bd5232011-12-07 14:38:20 +000012392*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012393 # Find out which ABI we are using.
12394 echo 'int i;' > conftest.$ac_ext
12395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12396 (eval $ac_compile) 2>&5
12397 ac_status=$?
12398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12399 test $ac_status = 0; }; then
12400 case `/usr/bin/file conftest.o` in
12401 *64-bit*)
12402 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012403 yes*)
12404 case $host in
12405 i?86-*-solaris*)
12406 LD="${LD-ld} -m elf_x86_64"
12407 ;;
12408 sparc*-*-solaris*)
12409 LD="${LD-ld} -m elf64_sparc"
12410 ;;
12411 esac
12412 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12413 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12414 LD="${LD-ld}_sol2"
12415 fi
12416 ;;
cristy73bd4a52010-10-05 11:24:23 +000012417 *)
12418 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12419 LD="${LD-ld} -64"
12420 fi
12421 ;;
12422 esac
12423 ;;
12424 esac
12425 fi
12426 rm -rf conftest*
12427 ;;
12428esac
12429
12430need_locks="$enable_libtool_lock"
12431
cristyda16f162011-02-19 23:52:17 +000012432if test -n "$ac_tool_prefix"; then
12433 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12434set dummy ${ac_tool_prefix}mt; ac_word=$2
12435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12436$as_echo_n "checking for $ac_word... " >&6; }
12437if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12438 $as_echo_n "(cached) " >&6
12439else
12440 if test -n "$MANIFEST_TOOL"; then
12441 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12442else
12443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12444for as_dir in $PATH
12445do
12446 IFS=$as_save_IFS
12447 test -z "$as_dir" && as_dir=.
12448 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012450 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12452 break 2
12453 fi
12454done
12455 done
12456IFS=$as_save_IFS
12457
12458fi
12459fi
12460MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12461if test -n "$MANIFEST_TOOL"; then
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12463$as_echo "$MANIFEST_TOOL" >&6; }
12464else
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466$as_echo "no" >&6; }
12467fi
12468
12469
12470fi
12471if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12472 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12473 # Extract the first word of "mt", so it can be a program name with args.
12474set dummy mt; ac_word=$2
12475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12476$as_echo_n "checking for $ac_word... " >&6; }
12477if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12478 $as_echo_n "(cached) " >&6
12479else
12480 if test -n "$ac_ct_MANIFEST_TOOL"; then
12481 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12482else
12483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484for as_dir in $PATH
12485do
12486 IFS=$as_save_IFS
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012490 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12492 break 2
12493 fi
12494done
12495 done
12496IFS=$as_save_IFS
12497
12498fi
12499fi
12500ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12501if test -n "$ac_ct_MANIFEST_TOOL"; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12503$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12504else
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506$as_echo "no" >&6; }
12507fi
12508
12509 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12510 MANIFEST_TOOL=":"
12511 else
12512 case $cross_compiling:$ac_tool_warned in
12513yes:)
12514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12516ac_tool_warned=yes ;;
12517esac
12518 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12519 fi
12520else
12521 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12522fi
12523
12524test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12526$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12527if ${lt_cv_path_mainfest_tool+:} false; then :
12528 $as_echo_n "(cached) " >&6
12529else
12530 lt_cv_path_mainfest_tool=no
12531 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12532 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12533 cat conftest.err >&5
12534 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12535 lt_cv_path_mainfest_tool=yes
12536 fi
12537 rm -f conftest*
12538fi
12539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12540$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12541if test "x$lt_cv_path_mainfest_tool" != xyes; then
12542 MANIFEST_TOOL=:
12543fi
12544
12545
12546
12547
12548
cristy73bd4a52010-10-05 11:24:23 +000012549
12550 case $host_os in
12551 rhapsody* | darwin*)
12552 if test -n "$ac_tool_prefix"; then
12553 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12554set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12556$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012557if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012558 $as_echo_n "(cached) " >&6
12559else
12560 if test -n "$DSYMUTIL"; then
12561 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12562else
12563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12564for as_dir in $PATH
12565do
12566 IFS=$as_save_IFS
12567 test -z "$as_dir" && as_dir=.
12568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012570 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12572 break 2
12573 fi
12574done
12575 done
12576IFS=$as_save_IFS
12577
12578fi
12579fi
12580DSYMUTIL=$ac_cv_prog_DSYMUTIL
12581if test -n "$DSYMUTIL"; then
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12583$as_echo "$DSYMUTIL" >&6; }
12584else
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586$as_echo "no" >&6; }
12587fi
12588
12589
12590fi
12591if test -z "$ac_cv_prog_DSYMUTIL"; then
12592 ac_ct_DSYMUTIL=$DSYMUTIL
12593 # Extract the first word of "dsymutil", so it can be a program name with args.
12594set dummy dsymutil; ac_word=$2
12595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12596$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012597if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012598 $as_echo_n "(cached) " >&6
12599else
12600 if test -n "$ac_ct_DSYMUTIL"; then
12601 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12602else
12603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604for as_dir in $PATH
12605do
12606 IFS=$as_save_IFS
12607 test -z "$as_dir" && as_dir=.
12608 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012610 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12612 break 2
12613 fi
12614done
12615 done
12616IFS=$as_save_IFS
12617
12618fi
12619fi
12620ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12621if test -n "$ac_ct_DSYMUTIL"; then
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12623$as_echo "$ac_ct_DSYMUTIL" >&6; }
12624else
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12626$as_echo "no" >&6; }
12627fi
12628
12629 if test "x$ac_ct_DSYMUTIL" = x; then
12630 DSYMUTIL=":"
12631 else
12632 case $cross_compiling:$ac_tool_warned in
12633yes:)
12634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12636ac_tool_warned=yes ;;
12637esac
12638 DSYMUTIL=$ac_ct_DSYMUTIL
12639 fi
12640else
12641 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12642fi
12643
12644 if test -n "$ac_tool_prefix"; then
12645 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12646set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012649if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012650 $as_echo_n "(cached) " >&6
12651else
12652 if test -n "$NMEDIT"; then
12653 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12654else
12655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656for as_dir in $PATH
12657do
12658 IFS=$as_save_IFS
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012662 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664 break 2
12665 fi
12666done
12667 done
12668IFS=$as_save_IFS
12669
12670fi
12671fi
12672NMEDIT=$ac_cv_prog_NMEDIT
12673if test -n "$NMEDIT"; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12675$as_echo "$NMEDIT" >&6; }
12676else
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678$as_echo "no" >&6; }
12679fi
12680
12681
12682fi
12683if test -z "$ac_cv_prog_NMEDIT"; then
12684 ac_ct_NMEDIT=$NMEDIT
12685 # Extract the first word of "nmedit", so it can be a program name with args.
12686set dummy nmedit; ac_word=$2
12687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012689if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012690 $as_echo_n "(cached) " >&6
12691else
12692 if test -n "$ac_ct_NMEDIT"; then
12693 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12694else
12695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696for as_dir in $PATH
12697do
12698 IFS=$as_save_IFS
12699 test -z "$as_dir" && as_dir=.
12700 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012702 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12704 break 2
12705 fi
12706done
12707 done
12708IFS=$as_save_IFS
12709
12710fi
12711fi
12712ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12713if test -n "$ac_ct_NMEDIT"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12715$as_echo "$ac_ct_NMEDIT" >&6; }
12716else
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718$as_echo "no" >&6; }
12719fi
12720
12721 if test "x$ac_ct_NMEDIT" = x; then
12722 NMEDIT=":"
12723 else
12724 case $cross_compiling:$ac_tool_warned in
12725yes:)
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12728ac_tool_warned=yes ;;
12729esac
12730 NMEDIT=$ac_ct_NMEDIT
12731 fi
12732else
12733 NMEDIT="$ac_cv_prog_NMEDIT"
12734fi
12735
12736 if test -n "$ac_tool_prefix"; then
12737 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12738set dummy ${ac_tool_prefix}lipo; ac_word=$2
12739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12740$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012741if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012742 $as_echo_n "(cached) " >&6
12743else
12744 if test -n "$LIPO"; then
12745 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12746else
12747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12748for as_dir in $PATH
12749do
12750 IFS=$as_save_IFS
12751 test -z "$as_dir" && as_dir=.
12752 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012754 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12756 break 2
12757 fi
12758done
12759 done
12760IFS=$as_save_IFS
12761
12762fi
12763fi
12764LIPO=$ac_cv_prog_LIPO
12765if test -n "$LIPO"; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12767$as_echo "$LIPO" >&6; }
12768else
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770$as_echo "no" >&6; }
12771fi
12772
12773
12774fi
12775if test -z "$ac_cv_prog_LIPO"; then
12776 ac_ct_LIPO=$LIPO
12777 # Extract the first word of "lipo", so it can be a program name with args.
12778set dummy lipo; ac_word=$2
12779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12780$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012781if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012782 $as_echo_n "(cached) " >&6
12783else
12784 if test -n "$ac_ct_LIPO"; then
12785 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12786else
12787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788for as_dir in $PATH
12789do
12790 IFS=$as_save_IFS
12791 test -z "$as_dir" && as_dir=.
12792 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012794 ac_cv_prog_ac_ct_LIPO="lipo"
12795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12796 break 2
12797 fi
12798done
12799 done
12800IFS=$as_save_IFS
12801
12802fi
12803fi
12804ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12805if test -n "$ac_ct_LIPO"; then
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12807$as_echo "$ac_ct_LIPO" >&6; }
12808else
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810$as_echo "no" >&6; }
12811fi
12812
12813 if test "x$ac_ct_LIPO" = x; then
12814 LIPO=":"
12815 else
12816 case $cross_compiling:$ac_tool_warned in
12817yes:)
12818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12820ac_tool_warned=yes ;;
12821esac
12822 LIPO=$ac_ct_LIPO
12823 fi
12824else
12825 LIPO="$ac_cv_prog_LIPO"
12826fi
12827
12828 if test -n "$ac_tool_prefix"; then
12829 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12830set dummy ${ac_tool_prefix}otool; ac_word=$2
12831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12832$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012833if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012834 $as_echo_n "(cached) " >&6
12835else
12836 if test -n "$OTOOL"; then
12837 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12838else
12839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12840for as_dir in $PATH
12841do
12842 IFS=$as_save_IFS
12843 test -z "$as_dir" && as_dir=.
12844 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012846 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12848 break 2
12849 fi
12850done
12851 done
12852IFS=$as_save_IFS
12853
12854fi
12855fi
12856OTOOL=$ac_cv_prog_OTOOL
12857if test -n "$OTOOL"; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12859$as_echo "$OTOOL" >&6; }
12860else
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862$as_echo "no" >&6; }
12863fi
12864
12865
12866fi
12867if test -z "$ac_cv_prog_OTOOL"; then
12868 ac_ct_OTOOL=$OTOOL
12869 # Extract the first word of "otool", so it can be a program name with args.
12870set dummy otool; ac_word=$2
12871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12872$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012873if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012874 $as_echo_n "(cached) " >&6
12875else
12876 if test -n "$ac_ct_OTOOL"; then
12877 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12878else
12879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12880for as_dir in $PATH
12881do
12882 IFS=$as_save_IFS
12883 test -z "$as_dir" && as_dir=.
12884 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012886 ac_cv_prog_ac_ct_OTOOL="otool"
12887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12888 break 2
12889 fi
12890done
12891 done
12892IFS=$as_save_IFS
12893
12894fi
12895fi
12896ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12897if test -n "$ac_ct_OTOOL"; then
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12899$as_echo "$ac_ct_OTOOL" >&6; }
12900else
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902$as_echo "no" >&6; }
12903fi
12904
12905 if test "x$ac_ct_OTOOL" = x; then
12906 OTOOL=":"
12907 else
12908 case $cross_compiling:$ac_tool_warned in
12909yes:)
12910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12912ac_tool_warned=yes ;;
12913esac
12914 OTOOL=$ac_ct_OTOOL
12915 fi
12916else
12917 OTOOL="$ac_cv_prog_OTOOL"
12918fi
12919
12920 if test -n "$ac_tool_prefix"; then
12921 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12922set dummy ${ac_tool_prefix}otool64; ac_word=$2
12923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12924$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012925if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012926 $as_echo_n "(cached) " >&6
12927else
12928 if test -n "$OTOOL64"; then
12929 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12930else
12931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12932for as_dir in $PATH
12933do
12934 IFS=$as_save_IFS
12935 test -z "$as_dir" && as_dir=.
12936 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012938 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12940 break 2
12941 fi
12942done
12943 done
12944IFS=$as_save_IFS
12945
12946fi
12947fi
12948OTOOL64=$ac_cv_prog_OTOOL64
12949if test -n "$OTOOL64"; then
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12951$as_echo "$OTOOL64" >&6; }
12952else
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954$as_echo "no" >&6; }
12955fi
12956
12957
12958fi
12959if test -z "$ac_cv_prog_OTOOL64"; then
12960 ac_ct_OTOOL64=$OTOOL64
12961 # Extract the first word of "otool64", so it can be a program name with args.
12962set dummy otool64; ac_word=$2
12963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12964$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012965if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012966 $as_echo_n "(cached) " >&6
12967else
12968 if test -n "$ac_ct_OTOOL64"; then
12969 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12970else
12971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12972for as_dir in $PATH
12973do
12974 IFS=$as_save_IFS
12975 test -z "$as_dir" && as_dir=.
12976 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012978 ac_cv_prog_ac_ct_OTOOL64="otool64"
12979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12980 break 2
12981 fi
12982done
12983 done
12984IFS=$as_save_IFS
12985
12986fi
12987fi
12988ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12989if test -n "$ac_ct_OTOOL64"; then
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12991$as_echo "$ac_ct_OTOOL64" >&6; }
12992else
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994$as_echo "no" >&6; }
12995fi
12996
12997 if test "x$ac_ct_OTOOL64" = x; then
12998 OTOOL64=":"
12999 else
13000 case $cross_compiling:$ac_tool_warned in
13001yes:)
13002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13004ac_tool_warned=yes ;;
13005esac
13006 OTOOL64=$ac_ct_OTOOL64
13007 fi
13008else
13009 OTOOL64="$ac_cv_prog_OTOOL64"
13010fi
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
13036
13037
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13039$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013040if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013041 $as_echo_n "(cached) " >&6
13042else
13043 lt_cv_apple_cc_single_mod=no
13044 if test -z "${LT_MULTI_MODULE}"; then
13045 # By default we will add the -single_module flag. You can override
13046 # by either setting the environment variable LT_MULTI_MODULE
13047 # non-empty at configure time, or by adding -multi_module to the
13048 # link flags.
13049 rm -rf libconftest.dylib*
13050 echo "int foo(void){return 1;}" > conftest.c
13051 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13052-dynamiclib -Wl,-single_module conftest.c" >&5
13053 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13054 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13055 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013056 # If there is a non-empty error log, and "single_module"
13057 # appears in it, assume the flag caused a linker warning
13058 if test -s conftest.err && $GREP single_module conftest.err; then
13059 cat conftest.err >&5
13060 # Otherwise, if the output was created with a 0 exit code from
13061 # the compiler, it worked.
13062 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013063 lt_cv_apple_cc_single_mod=yes
13064 else
13065 cat conftest.err >&5
13066 fi
13067 rm -rf libconftest.dylib*
13068 rm -f conftest.*
13069 fi
13070fi
13071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13072$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013073
cristy73bd4a52010-10-05 11:24:23 +000013074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13075$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013076if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013077 $as_echo_n "(cached) " >&6
13078else
13079 lt_cv_ld_exported_symbols_list=no
13080 save_LDFLAGS=$LDFLAGS
13081 echo "_main" > conftest.sym
13082 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084/* end confdefs.h. */
13085
13086int
13087main ()
13088{
13089
13090 ;
13091 return 0;
13092}
13093_ACEOF
13094if ac_fn_c_try_link "$LINENO"; then :
13095 lt_cv_ld_exported_symbols_list=yes
13096else
13097 lt_cv_ld_exported_symbols_list=no
13098fi
13099rm -f core conftest.err conftest.$ac_objext \
13100 conftest$ac_exeext conftest.$ac_ext
13101 LDFLAGS="$save_LDFLAGS"
13102
13103fi
13104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13105$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013106
cristy0c60a692010-11-04 01:09:47 +000013107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13108$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013109if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013110 $as_echo_n "(cached) " >&6
13111else
13112 lt_cv_ld_force_load=no
13113 cat > conftest.c << _LT_EOF
13114int forced_loaded() { return 2;}
13115_LT_EOF
13116 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13117 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13118 echo "$AR cru libconftest.a conftest.o" >&5
13119 $AR cru libconftest.a conftest.o 2>&5
13120 echo "$RANLIB libconftest.a" >&5
13121 $RANLIB libconftest.a 2>&5
13122 cat > conftest.c << _LT_EOF
13123int main() { return 0;}
13124_LT_EOF
13125 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13126 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13127 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013128 if test -s conftest.err && $GREP force_load conftest.err; then
13129 cat conftest.err >&5
13130 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013131 lt_cv_ld_force_load=yes
13132 else
13133 cat conftest.err >&5
13134 fi
13135 rm -f conftest.err libconftest.a conftest conftest.c
13136 rm -rf conftest.dSYM
13137
13138fi
13139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13140$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013141 case $host_os in
13142 rhapsody* | darwin1.[012])
13143 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13144 darwin1.*)
13145 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13146 darwin*) # darwin 5.x on
13147 # if running on 10.5 or later, the deployment target defaults
13148 # to the OS version, if on x86, and 10.4, the deployment
13149 # target defaults to 10.4. Don't you love it?
13150 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13151 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13152 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13153 10.[012]*)
13154 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13155 10.*)
13156 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13157 esac
13158 ;;
13159 esac
13160 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13161 _lt_dar_single_mod='$single_module'
13162 fi
13163 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13164 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13165 else
13166 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13167 fi
cristy0c60a692010-11-04 01:09:47 +000013168 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013169 _lt_dsymutil='~$DSYMUTIL $lib || :'
13170 else
13171 _lt_dsymutil=
13172 fi
13173 ;;
13174 esac
13175
13176for ac_header in dlfcn.h
13177do :
13178 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13179"
cristyda16f162011-02-19 23:52:17 +000013180if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013181 cat >>confdefs.h <<_ACEOF
13182#define HAVE_DLFCN_H 1
13183_ACEOF
13184
13185fi
13186
13187done
13188
13189
13190
cristy73bd4a52010-10-05 11:24:23 +000013191
cristyda16f162011-02-19 23:52:17 +000013192func_stripname_cnf ()
13193{
13194 case ${2} in
13195 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13196 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13197 esac
13198} # func_stripname_cnf
13199
13200
13201
cristy73bd4a52010-10-05 11:24:23 +000013202
13203
13204# Set options
13205enable_win32_dll=yes
13206
13207case $host in
cristy0c60a692010-11-04 01:09:47 +000013208*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013209 if test -n "$ac_tool_prefix"; then
13210 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13211set dummy ${ac_tool_prefix}as; ac_word=$2
13212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13213$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013214if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013215 $as_echo_n "(cached) " >&6
13216else
13217 if test -n "$AS"; then
13218 ac_cv_prog_AS="$AS" # Let the user override the test.
13219else
13220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13221for as_dir in $PATH
13222do
13223 IFS=$as_save_IFS
13224 test -z "$as_dir" && as_dir=.
13225 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013227 ac_cv_prog_AS="${ac_tool_prefix}as"
13228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13229 break 2
13230 fi
13231done
13232 done
13233IFS=$as_save_IFS
13234
13235fi
13236fi
13237AS=$ac_cv_prog_AS
13238if test -n "$AS"; then
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13240$as_echo "$AS" >&6; }
13241else
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243$as_echo "no" >&6; }
13244fi
13245
13246
13247fi
13248if test -z "$ac_cv_prog_AS"; then
13249 ac_ct_AS=$AS
13250 # Extract the first word of "as", so it can be a program name with args.
13251set dummy as; ac_word=$2
13252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013254if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013255 $as_echo_n "(cached) " >&6
13256else
13257 if test -n "$ac_ct_AS"; then
13258 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13259else
13260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261for as_dir in $PATH
13262do
13263 IFS=$as_save_IFS
13264 test -z "$as_dir" && as_dir=.
13265 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013267 ac_cv_prog_ac_ct_AS="as"
13268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13269 break 2
13270 fi
13271done
13272 done
13273IFS=$as_save_IFS
13274
13275fi
13276fi
13277ac_ct_AS=$ac_cv_prog_ac_ct_AS
13278if test -n "$ac_ct_AS"; then
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13280$as_echo "$ac_ct_AS" >&6; }
13281else
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283$as_echo "no" >&6; }
13284fi
13285
13286 if test "x$ac_ct_AS" = x; then
13287 AS="false"
13288 else
13289 case $cross_compiling:$ac_tool_warned in
13290yes:)
13291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13293ac_tool_warned=yes ;;
13294esac
13295 AS=$ac_ct_AS
13296 fi
13297else
13298 AS="$ac_cv_prog_AS"
13299fi
13300
13301 if test -n "$ac_tool_prefix"; then
13302 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13303set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13305$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013306if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013307 $as_echo_n "(cached) " >&6
13308else
13309 if test -n "$DLLTOOL"; then
13310 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13311else
13312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313for as_dir in $PATH
13314do
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013319 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 break 2
13322 fi
13323done
13324 done
13325IFS=$as_save_IFS
13326
13327fi
13328fi
13329DLLTOOL=$ac_cv_prog_DLLTOOL
13330if test -n "$DLLTOOL"; then
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13332$as_echo "$DLLTOOL" >&6; }
13333else
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13335$as_echo "no" >&6; }
13336fi
13337
13338
13339fi
13340if test -z "$ac_cv_prog_DLLTOOL"; then
13341 ac_ct_DLLTOOL=$DLLTOOL
13342 # Extract the first word of "dlltool", so it can be a program name with args.
13343set dummy dlltool; ac_word=$2
13344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13345$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013346if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013347 $as_echo_n "(cached) " >&6
13348else
13349 if test -n "$ac_ct_DLLTOOL"; then
13350 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13351else
13352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13353for as_dir in $PATH
13354do
13355 IFS=$as_save_IFS
13356 test -z "$as_dir" && as_dir=.
13357 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013359 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13361 break 2
13362 fi
13363done
13364 done
13365IFS=$as_save_IFS
13366
13367fi
13368fi
13369ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13370if test -n "$ac_ct_DLLTOOL"; then
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13372$as_echo "$ac_ct_DLLTOOL" >&6; }
13373else
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375$as_echo "no" >&6; }
13376fi
13377
13378 if test "x$ac_ct_DLLTOOL" = x; then
13379 DLLTOOL="false"
13380 else
13381 case $cross_compiling:$ac_tool_warned in
13382yes:)
13383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13385ac_tool_warned=yes ;;
13386esac
13387 DLLTOOL=$ac_ct_DLLTOOL
13388 fi
13389else
13390 DLLTOOL="$ac_cv_prog_DLLTOOL"
13391fi
13392
13393 if test -n "$ac_tool_prefix"; then
13394 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13395set dummy ${ac_tool_prefix}objdump; ac_word=$2
13396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13397$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013398if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013399 $as_echo_n "(cached) " >&6
13400else
13401 if test -n "$OBJDUMP"; then
13402 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13403else
13404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13405for as_dir in $PATH
13406do
13407 IFS=$as_save_IFS
13408 test -z "$as_dir" && as_dir=.
13409 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013411 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13413 break 2
13414 fi
13415done
13416 done
13417IFS=$as_save_IFS
13418
13419fi
13420fi
13421OBJDUMP=$ac_cv_prog_OBJDUMP
13422if test -n "$OBJDUMP"; then
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13424$as_echo "$OBJDUMP" >&6; }
13425else
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427$as_echo "no" >&6; }
13428fi
13429
13430
13431fi
13432if test -z "$ac_cv_prog_OBJDUMP"; then
13433 ac_ct_OBJDUMP=$OBJDUMP
13434 # Extract the first word of "objdump", so it can be a program name with args.
13435set dummy objdump; ac_word=$2
13436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13437$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013438if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013439 $as_echo_n "(cached) " >&6
13440else
13441 if test -n "$ac_ct_OBJDUMP"; then
13442 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13443else
13444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13445for as_dir in $PATH
13446do
13447 IFS=$as_save_IFS
13448 test -z "$as_dir" && as_dir=.
13449 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013451 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13453 break 2
13454 fi
13455done
13456 done
13457IFS=$as_save_IFS
13458
13459fi
13460fi
13461ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13462if test -n "$ac_ct_OBJDUMP"; then
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13464$as_echo "$ac_ct_OBJDUMP" >&6; }
13465else
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467$as_echo "no" >&6; }
13468fi
13469
13470 if test "x$ac_ct_OBJDUMP" = x; then
13471 OBJDUMP="false"
13472 else
13473 case $cross_compiling:$ac_tool_warned in
13474yes:)
13475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13477ac_tool_warned=yes ;;
13478esac
13479 OBJDUMP=$ac_ct_OBJDUMP
13480 fi
13481else
13482 OBJDUMP="$ac_cv_prog_OBJDUMP"
13483fi
13484
13485 ;;
13486esac
13487
13488test -z "$AS" && AS=as
13489
13490
13491
13492
13493
13494test -z "$DLLTOOL" && DLLTOOL=dlltool
13495
13496
13497
13498
13499
13500test -z "$OBJDUMP" && OBJDUMP=objdump
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510 # Check whether --enable-shared was given.
13511if test "${enable_shared+set}" = set; then :
13512 enableval=$enable_shared; p=${PACKAGE-default}
13513 case $enableval in
13514 yes) enable_shared=yes ;;
13515 no) enable_shared=no ;;
13516 *)
13517 enable_shared=no
13518 # Look at the argument we got. We use all the common list separators.
13519 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13520 for pkg in $enableval; do
13521 IFS="$lt_save_ifs"
13522 if test "X$pkg" = "X$p"; then
13523 enable_shared=yes
13524 fi
13525 done
13526 IFS="$lt_save_ifs"
13527 ;;
13528 esac
13529else
13530 enable_shared=yes
13531fi
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541 # Check whether --enable-static was given.
13542if test "${enable_static+set}" = set; then :
13543 enableval=$enable_static; p=${PACKAGE-default}
13544 case $enableval in
13545 yes) enable_static=yes ;;
13546 no) enable_static=no ;;
13547 *)
13548 enable_static=no
13549 # Look at the argument we got. We use all the common list separators.
13550 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13551 for pkg in $enableval; do
13552 IFS="$lt_save_ifs"
13553 if test "X$pkg" = "X$p"; then
13554 enable_static=yes
13555 fi
13556 done
13557 IFS="$lt_save_ifs"
13558 ;;
13559 esac
13560else
13561 enable_static=yes
13562fi
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573# Check whether --with-pic was given.
13574if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013575 withval=$with_pic; lt_p=${PACKAGE-default}
13576 case $withval in
13577 yes|no) pic_mode=$withval ;;
13578 *)
13579 pic_mode=default
13580 # Look at the argument we got. We use all the common list separators.
13581 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13582 for lt_pkg in $withval; do
13583 IFS="$lt_save_ifs"
13584 if test "X$lt_pkg" = "X$lt_p"; then
13585 pic_mode=yes
13586 fi
13587 done
13588 IFS="$lt_save_ifs"
13589 ;;
13590 esac
cristy73bd4a52010-10-05 11:24:23 +000013591else
13592 pic_mode=default
13593fi
13594
13595
13596test -z "$pic_mode" && pic_mode=default
13597
13598
13599
13600
13601
13602
13603
13604 # Check whether --enable-fast-install was given.
13605if test "${enable_fast_install+set}" = set; then :
13606 enableval=$enable_fast_install; p=${PACKAGE-default}
13607 case $enableval in
13608 yes) enable_fast_install=yes ;;
13609 no) enable_fast_install=no ;;
13610 *)
13611 enable_fast_install=no
13612 # Look at the argument we got. We use all the common list separators.
13613 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13614 for pkg in $enableval; do
13615 IFS="$lt_save_ifs"
13616 if test "X$pkg" = "X$p"; then
13617 enable_fast_install=yes
13618 fi
13619 done
13620 IFS="$lt_save_ifs"
13621 ;;
13622 esac
13623else
13624 enable_fast_install=yes
13625fi
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637# This can be used to rebuild libtool when needed
13638LIBTOOL_DEPS="$ltmain"
13639
13640# Always use our own libtool.
13641LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
cristy0c60a692010-11-04 01:09:47 +000013667
cristy99bd5232011-12-07 14:38:20 +000013668
13669
13670
13671
cristy73bd4a52010-10-05 11:24:23 +000013672test -z "$LN_S" && LN_S="ln -s"
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687if test -n "${ZSH_VERSION+set}" ; then
13688 setopt NO_GLOB_SUBST
13689fi
13690
13691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13692$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013693if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013694 $as_echo_n "(cached) " >&6
13695else
13696 rm -f .libs 2>/dev/null
13697mkdir .libs 2>/dev/null
13698if test -d .libs; then
13699 lt_cv_objdir=.libs
13700else
13701 # MS-DOS does not allow filenames that begin with a dot.
13702 lt_cv_objdir=_libs
13703fi
13704rmdir .libs 2>/dev/null
13705fi
13706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13707$as_echo "$lt_cv_objdir" >&6; }
13708objdir=$lt_cv_objdir
13709
13710
13711
13712
13713
13714cat >>confdefs.h <<_ACEOF
13715#define LT_OBJDIR "$lt_cv_objdir/"
13716_ACEOF
13717
13718
13719
13720
cristy73bd4a52010-10-05 11:24:23 +000013721case $host_os in
13722aix3*)
13723 # AIX sometimes has problems with the GCC collect2 program. For some
13724 # reason, if we set the COLLECT_NAMES environment variable, the problems
13725 # vanish in a puff of smoke.
13726 if test "X${COLLECT_NAMES+set}" != Xset; then
13727 COLLECT_NAMES=
13728 export COLLECT_NAMES
13729 fi
13730 ;;
13731esac
13732
cristy73bd4a52010-10-05 11:24:23 +000013733# Global variables:
13734ofile=libtool
13735can_build_shared=yes
13736
13737# All known linkers require a `.a' archive for static linking (except MSVC,
13738# which needs '.lib').
13739libext=a
13740
13741with_gnu_ld="$lt_cv_prog_gnu_ld"
13742
13743old_CC="$CC"
13744old_CFLAGS="$CFLAGS"
13745
13746# Set sane defaults for various variables
13747test -z "$CC" && CC=cc
13748test -z "$LTCC" && LTCC=$CC
13749test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13750test -z "$LD" && LD=ld
13751test -z "$ac_objext" && ac_objext=o
13752
13753for cc_temp in $compiler""; do
13754 case $cc_temp in
13755 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13756 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13757 \-*) ;;
13758 *) break;;
13759 esac
13760done
cristy0c60a692010-11-04 01:09:47 +000013761cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013762
13763
13764# Only perform the check for file, if the check method requires it
13765test -z "$MAGIC_CMD" && MAGIC_CMD=file
13766case $deplibs_check_method in
13767file_magic*)
13768 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13770$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013771if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013772 $as_echo_n "(cached) " >&6
13773else
13774 case $MAGIC_CMD in
13775[\\/*] | ?:[\\/]*)
13776 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13777 ;;
13778*)
13779 lt_save_MAGIC_CMD="$MAGIC_CMD"
13780 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13781 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13782 for ac_dir in $ac_dummy; do
13783 IFS="$lt_save_ifs"
13784 test -z "$ac_dir" && ac_dir=.
13785 if test -f $ac_dir/${ac_tool_prefix}file; then
13786 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13787 if test -n "$file_magic_test_file"; then
13788 case $deplibs_check_method in
13789 "file_magic "*)
13790 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13791 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13792 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13793 $EGREP "$file_magic_regex" > /dev/null; then
13794 :
13795 else
13796 cat <<_LT_EOF 1>&2
13797
13798*** Warning: the command libtool uses to detect shared libraries,
13799*** $file_magic_cmd, produces output that libtool cannot recognize.
13800*** The result is that libtool may fail to recognize shared libraries
13801*** as such. This will affect the creation of libtool libraries that
13802*** depend on shared libraries, but programs linked with such libtool
13803*** libraries will work regardless of this problem. Nevertheless, you
13804*** may want to report the problem to your system manager and/or to
13805*** bug-libtool@gnu.org
13806
13807_LT_EOF
13808 fi ;;
13809 esac
13810 fi
13811 break
13812 fi
13813 done
13814 IFS="$lt_save_ifs"
13815 MAGIC_CMD="$lt_save_MAGIC_CMD"
13816 ;;
13817esac
13818fi
13819
13820MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13821if test -n "$MAGIC_CMD"; then
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13823$as_echo "$MAGIC_CMD" >&6; }
13824else
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826$as_echo "no" >&6; }
13827fi
13828
13829
13830
13831
13832
13833if test -z "$lt_cv_path_MAGIC_CMD"; then
13834 if test -n "$ac_tool_prefix"; then
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13836$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013837if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013838 $as_echo_n "(cached) " >&6
13839else
13840 case $MAGIC_CMD in
13841[\\/*] | ?:[\\/]*)
13842 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13843 ;;
13844*)
13845 lt_save_MAGIC_CMD="$MAGIC_CMD"
13846 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13847 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13848 for ac_dir in $ac_dummy; do
13849 IFS="$lt_save_ifs"
13850 test -z "$ac_dir" && ac_dir=.
13851 if test -f $ac_dir/file; then
13852 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13853 if test -n "$file_magic_test_file"; then
13854 case $deplibs_check_method in
13855 "file_magic "*)
13856 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13857 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13858 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13859 $EGREP "$file_magic_regex" > /dev/null; then
13860 :
13861 else
13862 cat <<_LT_EOF 1>&2
13863
13864*** Warning: the command libtool uses to detect shared libraries,
13865*** $file_magic_cmd, produces output that libtool cannot recognize.
13866*** The result is that libtool may fail to recognize shared libraries
13867*** as such. This will affect the creation of libtool libraries that
13868*** depend on shared libraries, but programs linked with such libtool
13869*** libraries will work regardless of this problem. Nevertheless, you
13870*** may want to report the problem to your system manager and/or to
13871*** bug-libtool@gnu.org
13872
13873_LT_EOF
13874 fi ;;
13875 esac
13876 fi
13877 break
13878 fi
13879 done
13880 IFS="$lt_save_ifs"
13881 MAGIC_CMD="$lt_save_MAGIC_CMD"
13882 ;;
13883esac
13884fi
13885
13886MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13887if test -n "$MAGIC_CMD"; then
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13889$as_echo "$MAGIC_CMD" >&6; }
13890else
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13892$as_echo "no" >&6; }
13893fi
13894
13895
13896 else
13897 MAGIC_CMD=:
13898 fi
13899fi
13900
13901 fi
13902 ;;
13903esac
13904
13905# Use C for the default configuration in the libtool script
13906
13907lt_save_CC="$CC"
13908ac_ext=c
13909ac_cpp='$CPP $CPPFLAGS'
13910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13912ac_compiler_gnu=$ac_cv_c_compiler_gnu
13913
13914
13915# Source file extension for C test sources.
13916ac_ext=c
13917
13918# Object file extension for compiled C test sources.
13919objext=o
13920objext=$objext
13921
13922# Code to be used in simple compile tests
13923lt_simple_compile_test_code="int some_variable = 0;"
13924
13925# Code to be used in simple link tests
13926lt_simple_link_test_code='int main(){return(0);}'
13927
13928
13929
13930
13931
13932
13933
13934# If no C compiler was specified, use CC.
13935LTCC=${LTCC-"$CC"}
13936
13937# If no C compiler flags were specified, use CFLAGS.
13938LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13939
13940# Allow CC to be a program name with arguments.
13941compiler=$CC
13942
13943# Save the default compiler, since it gets overwritten when the other
13944# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13945compiler_DEFAULT=$CC
13946
13947# save warnings/boilerplate of simple test code
13948ac_outfile=conftest.$ac_objext
13949echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13950eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13951_lt_compiler_boilerplate=`cat conftest.err`
13952$RM conftest*
13953
13954ac_outfile=conftest.$ac_objext
13955echo "$lt_simple_link_test_code" >conftest.$ac_ext
13956eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13957_lt_linker_boilerplate=`cat conftest.err`
13958$RM -r conftest*
13959
13960
13961## CAVEAT EMPTOR:
13962## There is no encapsulation within the following macros, do not change
13963## the running order or otherwise move them around unless you know exactly
13964## what you are doing...
13965if test -n "$compiler"; then
13966
13967lt_prog_compiler_no_builtin_flag=
13968
13969if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013970 case $cc_basename in
13971 nvcc*)
13972 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13973 *)
13974 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13975 esac
cristy73bd4a52010-10-05 11:24:23 +000013976
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13978$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013979if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013980 $as_echo_n "(cached) " >&6
13981else
13982 lt_cv_prog_compiler_rtti_exceptions=no
13983 ac_outfile=conftest.$ac_objext
13984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13985 lt_compiler_flag="-fno-rtti -fno-exceptions"
13986 # Insert the option either (1) after the last *FLAGS variable, or
13987 # (2) before a word containing "conftest.", or (3) at the end.
13988 # Note that $ac_compile itself does not contain backslashes and begins
13989 # with a dollar sign (not a hyphen), so the echo should work correctly.
13990 # The option is referenced via a variable to avoid confusing sed.
13991 lt_compile=`echo "$ac_compile" | $SED \
13992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13994 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013995 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013996 (eval "$lt_compile" 2>conftest.err)
13997 ac_status=$?
13998 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014000 if (exit $ac_status) && test -s "$ac_outfile"; then
14001 # The compiler can only warn and ignore the option if not recognized
14002 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014003 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14005 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14006 lt_cv_prog_compiler_rtti_exceptions=yes
14007 fi
14008 fi
14009 $RM conftest*
14010
14011fi
14012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14013$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14014
14015if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14016 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14017else
14018 :
14019fi
14020
14021fi
14022
14023
14024
14025
14026
14027
14028 lt_prog_compiler_wl=
14029lt_prog_compiler_pic=
14030lt_prog_compiler_static=
14031
cristy73bd4a52010-10-05 11:24:23 +000014032
14033 if test "$GCC" = yes; then
14034 lt_prog_compiler_wl='-Wl,'
14035 lt_prog_compiler_static='-static'
14036
14037 case $host_os in
14038 aix*)
14039 # All AIX code is PIC.
14040 if test "$host_cpu" = ia64; then
14041 # AIX 5 now supports IA64 processor
14042 lt_prog_compiler_static='-Bstatic'
14043 fi
14044 ;;
14045
14046 amigaos*)
14047 case $host_cpu in
14048 powerpc)
14049 # see comment about AmigaOS4 .so support
14050 lt_prog_compiler_pic='-fPIC'
14051 ;;
14052 m68k)
14053 # FIXME: we need at least 68020 code to build shared libraries, but
14054 # adding the `-m68020' flag to GCC prevents building anything better,
14055 # like `-m68040'.
14056 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14057 ;;
14058 esac
14059 ;;
14060
14061 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14062 # PIC is the default for these OSes.
14063 ;;
14064
14065 mingw* | cygwin* | pw32* | os2* | cegcc*)
14066 # This hack is so that the source file can tell whether it is being
14067 # built for inclusion in a dll (and should export symbols for example).
14068 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14069 # (--disable-auto-import) libraries
14070 lt_prog_compiler_pic='-DDLL_EXPORT'
14071 ;;
14072
14073 darwin* | rhapsody*)
14074 # PIC is the default on this platform
14075 # Common symbols not allowed in MH_DYLIB files
14076 lt_prog_compiler_pic='-fno-common'
14077 ;;
14078
cristy0c60a692010-11-04 01:09:47 +000014079 haiku*)
14080 # PIC is the default for Haiku.
14081 # The "-static" flag exists, but is broken.
14082 lt_prog_compiler_static=
14083 ;;
14084
cristy73bd4a52010-10-05 11:24:23 +000014085 hpux*)
14086 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14087 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14088 # sets the default TLS model and affects inlining.
14089 case $host_cpu in
14090 hppa*64*)
14091 # +Z the default
14092 ;;
14093 *)
14094 lt_prog_compiler_pic='-fPIC'
14095 ;;
14096 esac
14097 ;;
14098
14099 interix[3-9]*)
14100 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14101 # Instead, we relocate shared libraries at runtime.
14102 ;;
14103
14104 msdosdjgpp*)
14105 # Just because we use GCC doesn't mean we suddenly get shared libraries
14106 # on systems that don't support them.
14107 lt_prog_compiler_can_build_shared=no
14108 enable_shared=no
14109 ;;
14110
14111 *nto* | *qnx*)
14112 # QNX uses GNU C++, but need to define -shared option too, otherwise
14113 # it will coredump.
14114 lt_prog_compiler_pic='-fPIC -shared'
14115 ;;
14116
14117 sysv4*MP*)
14118 if test -d /usr/nec; then
14119 lt_prog_compiler_pic=-Kconform_pic
14120 fi
14121 ;;
14122
14123 *)
14124 lt_prog_compiler_pic='-fPIC'
14125 ;;
14126 esac
cristy0c60a692010-11-04 01:09:47 +000014127
14128 case $cc_basename in
14129 nvcc*) # Cuda Compiler Driver 2.2
14130 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014131 if test -n "$lt_prog_compiler_pic"; then
14132 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14133 fi
cristy0c60a692010-11-04 01:09:47 +000014134 ;;
14135 esac
cristy73bd4a52010-10-05 11:24:23 +000014136 else
14137 # PORTME Check for flag to pass linker flags through the system compiler.
14138 case $host_os in
14139 aix*)
14140 lt_prog_compiler_wl='-Wl,'
14141 if test "$host_cpu" = ia64; then
14142 # AIX 5 now supports IA64 processor
14143 lt_prog_compiler_static='-Bstatic'
14144 else
14145 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14146 fi
14147 ;;
14148
14149 mingw* | cygwin* | pw32* | os2* | cegcc*)
14150 # This hack is so that the source file can tell whether it is being
14151 # built for inclusion in a dll (and should export symbols for example).
14152 lt_prog_compiler_pic='-DDLL_EXPORT'
14153 ;;
14154
14155 hpux9* | hpux10* | hpux11*)
14156 lt_prog_compiler_wl='-Wl,'
14157 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14158 # not for PA HP-UX.
14159 case $host_cpu in
14160 hppa*64*|ia64*)
14161 # +Z the default
14162 ;;
14163 *)
14164 lt_prog_compiler_pic='+Z'
14165 ;;
14166 esac
14167 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14168 lt_prog_compiler_static='${wl}-a ${wl}archive'
14169 ;;
14170
14171 irix5* | irix6* | nonstopux*)
14172 lt_prog_compiler_wl='-Wl,'
14173 # PIC (with -KPIC) is the default.
14174 lt_prog_compiler_static='-non_shared'
14175 ;;
14176
cristy0c60a692010-11-04 01:09:47 +000014177 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014178 case $cc_basename in
14179 # old Intel for x86_64 which still supported -KPIC.
14180 ecc*)
14181 lt_prog_compiler_wl='-Wl,'
14182 lt_prog_compiler_pic='-KPIC'
14183 lt_prog_compiler_static='-static'
14184 ;;
14185 # icc used to be incompatible with GCC.
14186 # ICC 10 doesn't accept -KPIC any more.
14187 icc* | ifort*)
14188 lt_prog_compiler_wl='-Wl,'
14189 lt_prog_compiler_pic='-fPIC'
14190 lt_prog_compiler_static='-static'
14191 ;;
14192 # Lahey Fortran 8.1.
14193 lf95*)
14194 lt_prog_compiler_wl='-Wl,'
14195 lt_prog_compiler_pic='--shared'
14196 lt_prog_compiler_static='--static'
14197 ;;
cristyda16f162011-02-19 23:52:17 +000014198 nagfor*)
14199 # NAG Fortran compiler
14200 lt_prog_compiler_wl='-Wl,-Wl,,'
14201 lt_prog_compiler_pic='-PIC'
14202 lt_prog_compiler_static='-Bstatic'
14203 ;;
cristy0c60a692010-11-04 01:09:47 +000014204 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014205 # Portland Group compilers (*not* the Pentium gcc compiler,
14206 # which looks to be a dead project)
14207 lt_prog_compiler_wl='-Wl,'
14208 lt_prog_compiler_pic='-fpic'
14209 lt_prog_compiler_static='-Bstatic'
14210 ;;
14211 ccc*)
14212 lt_prog_compiler_wl='-Wl,'
14213 # All Alpha code is PIC.
14214 lt_prog_compiler_static='-non_shared'
14215 ;;
cristy0c60a692010-11-04 01:09:47 +000014216 xl* | bgxl* | bgf* | mpixl*)
14217 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014218 lt_prog_compiler_wl='-Wl,'
14219 lt_prog_compiler_pic='-qpic'
14220 lt_prog_compiler_static='-qstaticlink'
14221 ;;
14222 *)
14223 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014224 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014225 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14226 lt_prog_compiler_pic='-KPIC'
14227 lt_prog_compiler_static='-Bstatic'
14228 lt_prog_compiler_wl=''
14229 ;;
cristy99bd5232011-12-07 14:38:20 +000014230 *Sun\ F* | *Sun*Fortran*)
14231 lt_prog_compiler_pic='-KPIC'
14232 lt_prog_compiler_static='-Bstatic'
14233 lt_prog_compiler_wl='-Qoption ld '
14234 ;;
cristy73bd4a52010-10-05 11:24:23 +000014235 *Sun\ C*)
14236 # Sun C 5.9
14237 lt_prog_compiler_pic='-KPIC'
14238 lt_prog_compiler_static='-Bstatic'
14239 lt_prog_compiler_wl='-Wl,'
14240 ;;
cristy99bd5232011-12-07 14:38:20 +000014241 *Intel*\ [CF]*Compiler*)
14242 lt_prog_compiler_wl='-Wl,'
14243 lt_prog_compiler_pic='-fPIC'
14244 lt_prog_compiler_static='-static'
14245 ;;
14246 *Portland\ Group*)
14247 lt_prog_compiler_wl='-Wl,'
14248 lt_prog_compiler_pic='-fpic'
14249 lt_prog_compiler_static='-Bstatic'
14250 ;;
cristy73bd4a52010-10-05 11:24:23 +000014251 esac
14252 ;;
14253 esac
14254 ;;
14255
14256 newsos6)
14257 lt_prog_compiler_pic='-KPIC'
14258 lt_prog_compiler_static='-Bstatic'
14259 ;;
14260
14261 *nto* | *qnx*)
14262 # QNX uses GNU C++, but need to define -shared option too, otherwise
14263 # it will coredump.
14264 lt_prog_compiler_pic='-fPIC -shared'
14265 ;;
14266
14267 osf3* | osf4* | osf5*)
14268 lt_prog_compiler_wl='-Wl,'
14269 # All OSF/1 code is PIC.
14270 lt_prog_compiler_static='-non_shared'
14271 ;;
14272
14273 rdos*)
14274 lt_prog_compiler_static='-non_shared'
14275 ;;
14276
14277 solaris*)
14278 lt_prog_compiler_pic='-KPIC'
14279 lt_prog_compiler_static='-Bstatic'
14280 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014281 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014282 lt_prog_compiler_wl='-Qoption ld ';;
14283 *)
14284 lt_prog_compiler_wl='-Wl,';;
14285 esac
14286 ;;
14287
14288 sunos4*)
14289 lt_prog_compiler_wl='-Qoption ld '
14290 lt_prog_compiler_pic='-PIC'
14291 lt_prog_compiler_static='-Bstatic'
14292 ;;
14293
14294 sysv4 | sysv4.2uw2* | sysv4.3*)
14295 lt_prog_compiler_wl='-Wl,'
14296 lt_prog_compiler_pic='-KPIC'
14297 lt_prog_compiler_static='-Bstatic'
14298 ;;
14299
14300 sysv4*MP*)
14301 if test -d /usr/nec ;then
14302 lt_prog_compiler_pic='-Kconform_pic'
14303 lt_prog_compiler_static='-Bstatic'
14304 fi
14305 ;;
14306
14307 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14308 lt_prog_compiler_wl='-Wl,'
14309 lt_prog_compiler_pic='-KPIC'
14310 lt_prog_compiler_static='-Bstatic'
14311 ;;
14312
14313 unicos*)
14314 lt_prog_compiler_wl='-Wl,'
14315 lt_prog_compiler_can_build_shared=no
14316 ;;
14317
14318 uts4*)
14319 lt_prog_compiler_pic='-pic'
14320 lt_prog_compiler_static='-Bstatic'
14321 ;;
14322
14323 *)
14324 lt_prog_compiler_can_build_shared=no
14325 ;;
14326 esac
14327 fi
14328
14329case $host_os in
14330 # For platforms which do not support PIC, -DPIC is meaningless:
14331 *djgpp*)
14332 lt_prog_compiler_pic=
14333 ;;
14334 *)
14335 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14336 ;;
14337esac
cristy73bd4a52010-10-05 11:24:23 +000014338
cristyda16f162011-02-19 23:52:17 +000014339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14340$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14341if ${lt_cv_prog_compiler_pic+:} false; then :
14342 $as_echo_n "(cached) " >&6
14343else
14344 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14345fi
14346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14347$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14348lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014349
14350#
14351# Check to make sure the PIC flag actually works.
14352#
14353if test -n "$lt_prog_compiler_pic"; then
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14355$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014356if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014357 $as_echo_n "(cached) " >&6
14358else
14359 lt_cv_prog_compiler_pic_works=no
14360 ac_outfile=conftest.$ac_objext
14361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14362 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14363 # Insert the option either (1) after the last *FLAGS variable, or
14364 # (2) before a word containing "conftest.", or (3) at the end.
14365 # Note that $ac_compile itself does not contain backslashes and begins
14366 # with a dollar sign (not a hyphen), so the echo should work correctly.
14367 # The option is referenced via a variable to avoid confusing sed.
14368 lt_compile=`echo "$ac_compile" | $SED \
14369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14371 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014373 (eval "$lt_compile" 2>conftest.err)
14374 ac_status=$?
14375 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014377 if (exit $ac_status) && test -s "$ac_outfile"; then
14378 # The compiler can only warn and ignore the option if not recognized
14379 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014380 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14382 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14383 lt_cv_prog_compiler_pic_works=yes
14384 fi
14385 fi
14386 $RM conftest*
14387
14388fi
14389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14390$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14391
14392if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14393 case $lt_prog_compiler_pic in
14394 "" | " "*) ;;
14395 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14396 esac
14397else
14398 lt_prog_compiler_pic=
14399 lt_prog_compiler_can_build_shared=no
14400fi
14401
14402fi
14403
14404
14405
14406
14407
14408
cristyda16f162011-02-19 23:52:17 +000014409
14410
14411
14412
14413
cristy73bd4a52010-10-05 11:24:23 +000014414#
14415# Check to make sure the static flag actually works.
14416#
14417wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14419$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014420if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014421 $as_echo_n "(cached) " >&6
14422else
14423 lt_cv_prog_compiler_static_works=no
14424 save_LDFLAGS="$LDFLAGS"
14425 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14426 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14427 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14428 # The linker can only warn and ignore the option if not recognized
14429 # So say no if there are warnings
14430 if test -s conftest.err; then
14431 # Append any errors to the config.log.
14432 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014433 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14435 if diff conftest.exp conftest.er2 >/dev/null; then
14436 lt_cv_prog_compiler_static_works=yes
14437 fi
14438 else
14439 lt_cv_prog_compiler_static_works=yes
14440 fi
14441 fi
14442 $RM -r conftest*
14443 LDFLAGS="$save_LDFLAGS"
14444
14445fi
14446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14447$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14448
14449if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14450 :
14451else
14452 lt_prog_compiler_static=
14453fi
14454
14455
14456
14457
14458
14459
14460
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14462$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014463if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014464 $as_echo_n "(cached) " >&6
14465else
14466 lt_cv_prog_compiler_c_o=no
14467 $RM -r conftest 2>/dev/null
14468 mkdir conftest
14469 cd conftest
14470 mkdir out
14471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14472
14473 lt_compiler_flag="-o out/conftest2.$ac_objext"
14474 # Insert the option either (1) after the last *FLAGS variable, or
14475 # (2) before a word containing "conftest.", or (3) at the end.
14476 # Note that $ac_compile itself does not contain backslashes and begins
14477 # with a dollar sign (not a hyphen), so the echo should work correctly.
14478 lt_compile=`echo "$ac_compile" | $SED \
14479 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14481 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014482 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014483 (eval "$lt_compile" 2>out/conftest.err)
14484 ac_status=$?
14485 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014487 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14488 then
14489 # The compiler can only warn and ignore the option if not recognized
14490 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014491 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014492 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14493 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14494 lt_cv_prog_compiler_c_o=yes
14495 fi
14496 fi
14497 chmod u+w . 2>&5
14498 $RM conftest*
14499 # SGI C++ compiler will create directory out/ii_files/ for
14500 # template instantiation
14501 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14502 $RM out/* && rmdir out
14503 cd ..
14504 $RM -r conftest
14505 $RM conftest*
14506
14507fi
14508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14509$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14510
14511
14512
14513
14514
14515
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14517$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014518if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014519 $as_echo_n "(cached) " >&6
14520else
14521 lt_cv_prog_compiler_c_o=no
14522 $RM -r conftest 2>/dev/null
14523 mkdir conftest
14524 cd conftest
14525 mkdir out
14526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14527
14528 lt_compiler_flag="-o out/conftest2.$ac_objext"
14529 # Insert the option either (1) after the last *FLAGS variable, or
14530 # (2) before a word containing "conftest.", or (3) at the end.
14531 # Note that $ac_compile itself does not contain backslashes and begins
14532 # with a dollar sign (not a hyphen), so the echo should work correctly.
14533 lt_compile=`echo "$ac_compile" | $SED \
14534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14536 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014538 (eval "$lt_compile" 2>out/conftest.err)
14539 ac_status=$?
14540 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014542 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14543 then
14544 # The compiler can only warn and ignore the option if not recognized
14545 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014546 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014547 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14548 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14549 lt_cv_prog_compiler_c_o=yes
14550 fi
14551 fi
14552 chmod u+w . 2>&5
14553 $RM conftest*
14554 # SGI C++ compiler will create directory out/ii_files/ for
14555 # template instantiation
14556 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14557 $RM out/* && rmdir out
14558 cd ..
14559 $RM -r conftest
14560 $RM conftest*
14561
14562fi
14563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14564$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14565
14566
14567
14568
14569hard_links="nottested"
14570if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14571 # do not overwrite the value of need_locks provided by the user
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14573$as_echo_n "checking if we can lock with hard links... " >&6; }
14574 hard_links=yes
14575 $RM conftest*
14576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14577 touch conftest.a
14578 ln conftest.a conftest.b 2>&5 || hard_links=no
14579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14581$as_echo "$hard_links" >&6; }
14582 if test "$hard_links" = no; then
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14584$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14585 need_locks=warn
14586 fi
14587else
14588 need_locks=no
14589fi
14590
14591
14592
14593
14594
14595
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14597$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14598
14599 runpath_var=
14600 allow_undefined_flag=
14601 always_export_symbols=no
14602 archive_cmds=
14603 archive_expsym_cmds=
14604 compiler_needs_object=no
14605 enable_shared_with_static_runtimes=no
14606 export_dynamic_flag_spec=
14607 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14608 hardcode_automatic=no
14609 hardcode_direct=no
14610 hardcode_direct_absolute=no
14611 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014612 hardcode_libdir_separator=
14613 hardcode_minus_L=no
14614 hardcode_shlibpath_var=unsupported
14615 inherit_rpath=no
14616 link_all_deplibs=unknown
14617 module_cmds=
14618 module_expsym_cmds=
14619 old_archive_from_new_cmds=
14620 old_archive_from_expsyms_cmds=
14621 thread_safe_flag_spec=
14622 whole_archive_flag_spec=
14623 # include_expsyms should be a list of space-separated symbols to be *always*
14624 # included in the symbol list
14625 include_expsyms=
14626 # exclude_expsyms can be an extended regexp of symbols to exclude
14627 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14628 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14629 # as well as any symbol that contains `d'.
14630 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14631 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14632 # platforms (ab)use it in PIC code, but their linkers get confused if
14633 # the symbol is explicitly referenced. Since portable code cannot
14634 # rely on this symbol name, it's probably fine to never include it in
14635 # preloaded symbol tables.
14636 # Exclude shared library initialization/finalization symbols.
14637 extract_expsyms_cmds=
14638
14639 case $host_os in
14640 cygwin* | mingw* | pw32* | cegcc*)
14641 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14642 # When not using gcc, we currently assume that we are using
14643 # Microsoft Visual C++.
14644 if test "$GCC" != yes; then
14645 with_gnu_ld=no
14646 fi
14647 ;;
14648 interix*)
14649 # we just hope/assume this is gcc and not c89 (= MSVC++)
14650 with_gnu_ld=yes
14651 ;;
14652 openbsd*)
14653 with_gnu_ld=no
14654 ;;
14655 esac
14656
14657 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014658
14659 # On some targets, GNU ld is compatible enough with the native linker
14660 # that we're better off using the native interface for both.
14661 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014662 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014663 case $host_os in
14664 aix*)
14665 # The AIX port of GNU ld has always aspired to compatibility
14666 # with the native linker. However, as the warning in the GNU ld
14667 # block says, versions before 2.19.5* couldn't really create working
14668 # shared libraries, regardless of the interface used.
14669 case `$LD -v 2>&1` in
14670 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14671 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14672 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14673 *)
14674 lt_use_gnu_ld_interface=yes
14675 ;;
14676 esac
14677 ;;
14678 *)
14679 lt_use_gnu_ld_interface=yes
14680 ;;
14681 esac
14682 fi
14683
14684 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014685 # If archive_cmds runs LD, not CC, wlarc should be empty
14686 wlarc='${wl}'
14687
14688 # Set some defaults for GNU ld with shared library support. These
14689 # are reset later if shared libraries are not supported. Putting them
14690 # here allows them to be overridden if necessary.
14691 runpath_var=LD_RUN_PATH
14692 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14693 export_dynamic_flag_spec='${wl}--export-dynamic'
14694 # ancient GNU ld didn't support --whole-archive et. al.
14695 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14696 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14697 else
14698 whole_archive_flag_spec=
14699 fi
14700 supports_anon_versioning=no
14701 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014702 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014703 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14704 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14705 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14706 *\ 2.11.*) ;; # other 2.11 versions
14707 *) supports_anon_versioning=yes ;;
14708 esac
14709
14710 # See if GNU ld supports shared libraries.
14711 case $host_os in
14712 aix[3-9]*)
14713 # On AIX/PPC, the GNU linker is very broken
14714 if test "$host_cpu" != ia64; then
14715 ld_shlibs=no
14716 cat <<_LT_EOF 1>&2
14717
cristy0c60a692010-11-04 01:09:47 +000014718*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014719*** to be unable to reliably create shared libraries on AIX.
14720*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014721*** really care for shared libraries, you may want to install binutils
14722*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14723*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014724
14725_LT_EOF
14726 fi
14727 ;;
14728
14729 amigaos*)
14730 case $host_cpu in
14731 powerpc)
14732 # see comment about AmigaOS4 .so support
14733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14734 archive_expsym_cmds=''
14735 ;;
14736 m68k)
14737 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)'
14738 hardcode_libdir_flag_spec='-L$libdir'
14739 hardcode_minus_L=yes
14740 ;;
14741 esac
14742 ;;
14743
14744 beos*)
14745 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14746 allow_undefined_flag=unsupported
14747 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14748 # support --undefined. This deserves some investigation. FIXME
14749 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14750 else
14751 ld_shlibs=no
14752 fi
14753 ;;
14754
14755 cygwin* | mingw* | pw32* | cegcc*)
14756 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14757 # as there is no search path for DLLs.
14758 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014759 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014760 allow_undefined_flag=unsupported
14761 always_export_symbols=no
14762 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014763 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'
14764 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 +000014765
14766 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14768 # If the export-symbols file already is a .def file (1st line
14769 # is EXPORTS), use it as is; otherwise, prepend...
14770 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14771 cp $export_symbols $output_objdir/$soname.def;
14772 else
14773 echo EXPORTS > $output_objdir/$soname.def;
14774 cat $export_symbols >> $output_objdir/$soname.def;
14775 fi~
14776 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14777 else
14778 ld_shlibs=no
14779 fi
14780 ;;
14781
cristy0c60a692010-11-04 01:09:47 +000014782 haiku*)
14783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14784 link_all_deplibs=yes
14785 ;;
14786
cristy73bd4a52010-10-05 11:24:23 +000014787 interix[3-9]*)
14788 hardcode_direct=no
14789 hardcode_shlibpath_var=no
14790 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14791 export_dynamic_flag_spec='${wl}-E'
14792 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14793 # Instead, shared libraries are loaded at an image base (0x10000000 by
14794 # default) and relocated if they conflict, which is a slow very memory
14795 # consuming and fragmenting process. To avoid this, we pick a random,
14796 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14797 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14798 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14799 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'
14800 ;;
14801
cristy0c60a692010-11-04 01:09:47 +000014802 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014803 tmp_diet=no
14804 if test "$host_os" = linux-dietlibc; then
14805 case $cc_basename in
14806 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14807 esac
14808 fi
14809 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14810 && test "$tmp_diet" = no
14811 then
cristyda16f162011-02-19 23:52:17 +000014812 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014813 tmp_sharedflag='-shared'
14814 case $cc_basename,$host_cpu in
14815 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014816 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 +000014817 tmp_addflag=' $pic_flag'
14818 ;;
cristy0c60a692010-11-04 01:09:47 +000014819 pgf77* | pgf90* | pgf95* | pgfortran*)
14820 # Portland Group f77 and f90 compilers
14821 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 +000014822 tmp_addflag=' $pic_flag -Mnomain' ;;
14823 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14824 tmp_addflag=' -i_dynamic' ;;
14825 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14826 tmp_addflag=' -i_dynamic -nofor_main' ;;
14827 ifc* | ifort*) # Intel Fortran compiler
14828 tmp_addflag=' -nofor_main' ;;
14829 lf95*) # Lahey Fortran 8.1
14830 whole_archive_flag_spec=
14831 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014832 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014833 tmp_sharedflag='-qmkshrobj'
14834 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014835 nvcc*) # Cuda Compiler Driver 2.2
14836 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'
14837 compiler_needs_object=yes
14838 ;;
cristy73bd4a52010-10-05 11:24:23 +000014839 esac
14840 case `$CC -V 2>&1 | sed 5q` in
14841 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014842 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 +000014843 compiler_needs_object=yes
14844 tmp_sharedflag='-G' ;;
14845 *Sun\ F*) # Sun Fortran 8.3
14846 tmp_sharedflag='-G' ;;
14847 esac
14848 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14849
14850 if test "x$supports_anon_versioning" = xyes; then
14851 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14852 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14853 echo "local: *; };" >> $output_objdir/$libname.ver~
14854 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14855 fi
14856
14857 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014858 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014859 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14860 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014862 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014863 if test "x$supports_anon_versioning" = xyes; then
14864 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14865 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14866 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014867 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014868 fi
14869 ;;
14870 esac
14871 else
14872 ld_shlibs=no
14873 fi
14874 ;;
14875
14876 netbsd*)
14877 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14878 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14879 wlarc=
14880 else
cristyda16f162011-02-19 23:52:17 +000014881 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14882 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 +000014883 fi
14884 ;;
14885
14886 solaris*)
14887 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14888 ld_shlibs=no
14889 cat <<_LT_EOF 1>&2
14890
14891*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14892*** create shared libraries on Solaris systems. Therefore, libtool
14893*** is disabling shared libraries support. We urge you to upgrade GNU
14894*** binutils to release 2.9.1 or newer. Another option is to modify
14895*** your PATH or compiler configuration so that the native linker is
14896*** used, and then restart.
14897
14898_LT_EOF
14899 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014900 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14901 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 +000014902 else
14903 ld_shlibs=no
14904 fi
14905 ;;
14906
14907 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14908 case `$LD -v 2>&1` in
14909 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14910 ld_shlibs=no
14911 cat <<_LT_EOF 1>&2
14912
14913*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14914*** reliably create shared libraries on SCO systems. Therefore, libtool
14915*** is disabling shared libraries support. We urge you to upgrade GNU
14916*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14917*** your PATH or compiler configuration so that the native linker is
14918*** used, and then restart.
14919
14920_LT_EOF
14921 ;;
14922 *)
14923 # For security reasons, it is highly recommended that you always
14924 # use absolute paths for naming shared libraries, and exclude the
14925 # DT_RUNPATH tag from executables and libraries. But doing so
14926 # requires that you compile everything twice, which is a pain.
14927 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14928 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14929 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14930 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14931 else
14932 ld_shlibs=no
14933 fi
14934 ;;
14935 esac
14936 ;;
14937
14938 sunos4*)
14939 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14940 wlarc=
14941 hardcode_direct=yes
14942 hardcode_shlibpath_var=no
14943 ;;
14944
14945 *)
14946 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014947 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14948 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 +000014949 else
14950 ld_shlibs=no
14951 fi
14952 ;;
14953 esac
14954
14955 if test "$ld_shlibs" = no; then
14956 runpath_var=
14957 hardcode_libdir_flag_spec=
14958 export_dynamic_flag_spec=
14959 whole_archive_flag_spec=
14960 fi
14961 else
14962 # PORTME fill in a description of your system's linker (not GNU ld)
14963 case $host_os in
14964 aix3*)
14965 allow_undefined_flag=unsupported
14966 always_export_symbols=yes
14967 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'
14968 # Note: this linker hardcodes the directories in LIBPATH if there
14969 # are no directories specified by -L.
14970 hardcode_minus_L=yes
14971 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14972 # Neither direct hardcoding nor static linking is supported with a
14973 # broken collect2.
14974 hardcode_direct=unsupported
14975 fi
14976 ;;
14977
14978 aix[4-9]*)
14979 if test "$host_cpu" = ia64; then
14980 # On IA64, the linker does run time linking by default, so we don't
14981 # have to do anything special.
14982 aix_use_runtimelinking=no
14983 exp_sym_flag='-Bexport'
14984 no_entry_flag=""
14985 else
14986 # If we're using GNU nm, then we don't want the "-C" option.
14987 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014988 # Also, AIX nm treats weak defined symbols like other global
14989 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014990 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014991 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 +000014992 else
14993 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'
14994 fi
14995 aix_use_runtimelinking=no
14996
14997 # Test if we are trying to use run time linking or normal
14998 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14999 # need to do runtime linking.
15000 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15001 for ld_flag in $LDFLAGS; do
15002 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15003 aix_use_runtimelinking=yes
15004 break
15005 fi
15006 done
15007 ;;
15008 esac
15009
15010 exp_sym_flag='-bexport'
15011 no_entry_flag='-bnoentry'
15012 fi
15013
15014 # When large executables or shared objects are built, AIX ld can
15015 # have problems creating the table of contents. If linking a library
15016 # or program results in "error TOC overflow" add -mminimal-toc to
15017 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15018 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15019
15020 archive_cmds=''
15021 hardcode_direct=yes
15022 hardcode_direct_absolute=yes
15023 hardcode_libdir_separator=':'
15024 link_all_deplibs=yes
15025 file_list_spec='${wl}-f,'
15026
15027 if test "$GCC" = yes; then
15028 case $host_os in aix4.[012]|aix4.[012].*)
15029 # We only want to do this on AIX 4.2 and lower, the check
15030 # below for broken collect2 doesn't work under 4.3+
15031 collect2name=`${CC} -print-prog-name=collect2`
15032 if test -f "$collect2name" &&
15033 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15034 then
15035 # We have reworked collect2
15036 :
15037 else
15038 # We have old collect2
15039 hardcode_direct=unsupported
15040 # It fails to find uninstalled libraries when the uninstalled
15041 # path is not listed in the libpath. Setting hardcode_minus_L
15042 # to unsupported forces relinking
15043 hardcode_minus_L=yes
15044 hardcode_libdir_flag_spec='-L$libdir'
15045 hardcode_libdir_separator=
15046 fi
15047 ;;
15048 esac
15049 shared_flag='-shared'
15050 if test "$aix_use_runtimelinking" = yes; then
15051 shared_flag="$shared_flag "'${wl}-G'
15052 fi
15053 else
15054 # not using gcc
15055 if test "$host_cpu" = ia64; then
15056 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15057 # chokes on -Wl,-G. The following line is correct:
15058 shared_flag='-G'
15059 else
15060 if test "$aix_use_runtimelinking" = yes; then
15061 shared_flag='${wl}-G'
15062 else
15063 shared_flag='${wl}-bM:SRE'
15064 fi
15065 fi
15066 fi
15067
15068 export_dynamic_flag_spec='${wl}-bexpall'
15069 # It seems that -bexpall does not export symbols beginning with
15070 # underscore (_), so it is better to generate a list of symbols to export.
15071 always_export_symbols=yes
15072 if test "$aix_use_runtimelinking" = yes; then
15073 # Warning - without using the other runtime loading flags (-brtl),
15074 # -berok will link without error, but may produce a broken library.
15075 allow_undefined_flag='-berok'
15076 # Determine the default libpath from the value encoded in an
15077 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015078 if test "${lt_cv_aix_libpath+set}" = set; then
15079 aix_libpath=$lt_cv_aix_libpath
15080else
15081 if ${lt_cv_aix_libpath_+:} false; then :
15082 $as_echo_n "(cached) " >&6
15083else
15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015085/* end confdefs.h. */
15086
15087int
15088main ()
15089{
15090
15091 ;
15092 return 0;
15093}
15094_ACEOF
15095if ac_fn_c_try_link "$LINENO"; then :
15096
cristyda16f162011-02-19 23:52:17 +000015097 lt_aix_libpath_sed='
15098 /Import File Strings/,/^$/ {
15099 /^0/ {
15100 s/^0 *\([^ ]*\) *$/\1/
15101 p
15102 }
15103 }'
15104 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15105 # Check for a 64-bit object if we didn't find anything.
15106 if test -z "$lt_cv_aix_libpath_"; then
15107 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15108 fi
cristy73bd4a52010-10-05 11:24:23 +000015109fi
15110rm -f core conftest.err conftest.$ac_objext \
15111 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015112 if test -z "$lt_cv_aix_libpath_"; then
15113 lt_cv_aix_libpath_="/usr/lib:/lib"
15114 fi
15115
15116fi
15117
15118 aix_libpath=$lt_cv_aix_libpath_
15119fi
cristy73bd4a52010-10-05 11:24:23 +000015120
15121 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015122 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 +000015123 else
15124 if test "$host_cpu" = ia64; then
15125 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15126 allow_undefined_flag="-z nodefs"
15127 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"
15128 else
15129 # Determine the default libpath from the value encoded in an
15130 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015131 if test "${lt_cv_aix_libpath+set}" = set; then
15132 aix_libpath=$lt_cv_aix_libpath
15133else
15134 if ${lt_cv_aix_libpath_+:} false; then :
15135 $as_echo_n "(cached) " >&6
15136else
15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015138/* end confdefs.h. */
15139
15140int
15141main ()
15142{
15143
15144 ;
15145 return 0;
15146}
15147_ACEOF
15148if ac_fn_c_try_link "$LINENO"; then :
15149
cristyda16f162011-02-19 23:52:17 +000015150 lt_aix_libpath_sed='
15151 /Import File Strings/,/^$/ {
15152 /^0/ {
15153 s/^0 *\([^ ]*\) *$/\1/
15154 p
15155 }
15156 }'
15157 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15158 # Check for a 64-bit object if we didn't find anything.
15159 if test -z "$lt_cv_aix_libpath_"; then
15160 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15161 fi
cristy73bd4a52010-10-05 11:24:23 +000015162fi
15163rm -f core conftest.err conftest.$ac_objext \
15164 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015165 if test -z "$lt_cv_aix_libpath_"; then
15166 lt_cv_aix_libpath_="/usr/lib:/lib"
15167 fi
15168
15169fi
15170
15171 aix_libpath=$lt_cv_aix_libpath_
15172fi
cristy73bd4a52010-10-05 11:24:23 +000015173
15174 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15175 # Warning - without using the other run time loading flags,
15176 # -berok will link without error, but may produce a broken library.
15177 no_undefined_flag=' ${wl}-bernotok'
15178 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015179 if test "$with_gnu_ld" = yes; then
15180 # We only use this code for GNU lds that support --whole-archive.
15181 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15182 else
15183 # Exported symbols can be pulled into shared objects from archives
15184 whole_archive_flag_spec='$convenience'
15185 fi
cristy73bd4a52010-10-05 11:24:23 +000015186 archive_cmds_need_lc=yes
15187 # This is similar to how AIX traditionally builds its shared libraries.
15188 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'
15189 fi
15190 fi
15191 ;;
15192
15193 amigaos*)
15194 case $host_cpu in
15195 powerpc)
15196 # see comment about AmigaOS4 .so support
15197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15198 archive_expsym_cmds=''
15199 ;;
15200 m68k)
15201 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)'
15202 hardcode_libdir_flag_spec='-L$libdir'
15203 hardcode_minus_L=yes
15204 ;;
15205 esac
15206 ;;
15207
15208 bsdi[45]*)
15209 export_dynamic_flag_spec=-rdynamic
15210 ;;
15211
15212 cygwin* | mingw* | pw32* | cegcc*)
15213 # When not using gcc, we currently assume that we are using
15214 # Microsoft Visual C++.
15215 # hardcode_libdir_flag_spec is actually meaningless, as there is
15216 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015217 case $cc_basename in
15218 cl*)
15219 # Native MSVC
15220 hardcode_libdir_flag_spec=' '
15221 allow_undefined_flag=unsupported
15222 always_export_symbols=yes
15223 file_list_spec='@'
15224 # Tell ltmain to make .lib files, not .a files.
15225 libext=lib
15226 # Tell ltmain to make .dll files, not .so files.
15227 shrext_cmds=".dll"
15228 # FIXME: Setting linknames here is a bad hack.
15229 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15230 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15231 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15232 else
15233 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15234 fi~
15235 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15236 linknames='
15237 # The linker will not automatically build a static lib if we build a DLL.
15238 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15239 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015240 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015241 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15242 # Don't use ranlib
15243 old_postinstall_cmds='chmod 644 $oldlib'
15244 postlink_cmds='lt_outputfile="@OUTPUT@"~
15245 lt_tool_outputfile="@TOOL_OUTPUT@"~
15246 case $lt_outputfile in
15247 *.exe|*.EXE) ;;
15248 *)
15249 lt_outputfile="$lt_outputfile.exe"
15250 lt_tool_outputfile="$lt_tool_outputfile.exe"
15251 ;;
15252 esac~
15253 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15254 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15255 $RM "$lt_outputfile.manifest";
15256 fi'
15257 ;;
15258 *)
15259 # Assume MSVC wrapper
15260 hardcode_libdir_flag_spec=' '
15261 allow_undefined_flag=unsupported
15262 # Tell ltmain to make .lib files, not .a files.
15263 libext=lib
15264 # Tell ltmain to make .dll files, not .so files.
15265 shrext_cmds=".dll"
15266 # FIXME: Setting linknames here is a bad hack.
15267 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15268 # The linker will automatically build a .lib file if we build a DLL.
15269 old_archive_from_new_cmds='true'
15270 # FIXME: Should let the user specify the lib program.
15271 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15272 enable_shared_with_static_runtimes=yes
15273 ;;
15274 esac
cristy73bd4a52010-10-05 11:24:23 +000015275 ;;
15276
15277 darwin* | rhapsody*)
15278
15279
15280 archive_cmds_need_lc=no
15281 hardcode_direct=no
15282 hardcode_automatic=yes
15283 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015284 if test "$lt_cv_ld_force_load" = "yes"; then
15285 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 +000015286
cristy0c60a692010-11-04 01:09:47 +000015287 else
15288 whole_archive_flag_spec=''
15289 fi
cristy73bd4a52010-10-05 11:24:23 +000015290 link_all_deplibs=yes
15291 allow_undefined_flag="$_lt_dar_allow_undefined"
15292 case $cc_basename in
15293 ifort*) _lt_dar_can_shared=yes ;;
15294 *) _lt_dar_can_shared=$GCC ;;
15295 esac
15296 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015297 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015298 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15299 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15300 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}"
15301 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}"
15302
15303 else
15304 ld_shlibs=no
15305 fi
15306
15307 ;;
15308
15309 dgux*)
15310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15311 hardcode_libdir_flag_spec='-L$libdir'
15312 hardcode_shlibpath_var=no
15313 ;;
15314
cristy73bd4a52010-10-05 11:24:23 +000015315 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15316 # support. Future versions do this automatically, but an explicit c++rt0.o
15317 # does not break anything, and helps significantly (at the cost of a little
15318 # extra space).
15319 freebsd2.2*)
15320 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15321 hardcode_libdir_flag_spec='-R$libdir'
15322 hardcode_direct=yes
15323 hardcode_shlibpath_var=no
15324 ;;
15325
15326 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015327 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15329 hardcode_direct=yes
15330 hardcode_minus_L=yes
15331 hardcode_shlibpath_var=no
15332 ;;
15333
15334 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15335 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015336 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015337 hardcode_libdir_flag_spec='-R$libdir'
15338 hardcode_direct=yes
15339 hardcode_shlibpath_var=no
15340 ;;
15341
15342 hpux9*)
15343 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015344 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 +000015345 else
15346 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'
15347 fi
15348 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15349 hardcode_libdir_separator=:
15350 hardcode_direct=yes
15351
15352 # hardcode_minus_L: Not really in the search PATH,
15353 # but as the default location of the library.
15354 hardcode_minus_L=yes
15355 export_dynamic_flag_spec='${wl}-E'
15356 ;;
15357
15358 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015359 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015360 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 +000015361 else
15362 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15363 fi
15364 if test "$with_gnu_ld" = no; then
15365 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015366 hardcode_libdir_separator=:
15367 hardcode_direct=yes
15368 hardcode_direct_absolute=yes
15369 export_dynamic_flag_spec='${wl}-E'
15370 # hardcode_minus_L: Not really in the search PATH,
15371 # but as the default location of the library.
15372 hardcode_minus_L=yes
15373 fi
15374 ;;
15375
15376 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015377 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015378 case $host_cpu in
15379 hppa*64*)
15380 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15381 ;;
15382 ia64*)
cristyda16f162011-02-19 23:52:17 +000015383 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015384 ;;
15385 *)
cristyda16f162011-02-19 23:52:17 +000015386 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 +000015387 ;;
15388 esac
15389 else
15390 case $host_cpu in
15391 hppa*64*)
15392 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15393 ;;
15394 ia64*)
15395 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15396 ;;
15397 *)
cristy0c60a692010-11-04 01:09:47 +000015398
15399 # Older versions of the 11.00 compiler do not understand -b yet
15400 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15402$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015403if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015404 $as_echo_n "(cached) " >&6
15405else
15406 lt_cv_prog_compiler__b=no
15407 save_LDFLAGS="$LDFLAGS"
15408 LDFLAGS="$LDFLAGS -b"
15409 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15410 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15411 # The linker can only warn and ignore the option if not recognized
15412 # So say no if there are warnings
15413 if test -s conftest.err; then
15414 # Append any errors to the config.log.
15415 cat conftest.err 1>&5
15416 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15418 if diff conftest.exp conftest.er2 >/dev/null; then
15419 lt_cv_prog_compiler__b=yes
15420 fi
15421 else
15422 lt_cv_prog_compiler__b=yes
15423 fi
15424 fi
15425 $RM -r conftest*
15426 LDFLAGS="$save_LDFLAGS"
15427
15428fi
15429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15430$as_echo "$lt_cv_prog_compiler__b" >&6; }
15431
15432if test x"$lt_cv_prog_compiler__b" = xyes; then
15433 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15434else
15435 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15436fi
15437
cristy73bd4a52010-10-05 11:24:23 +000015438 ;;
15439 esac
15440 fi
15441 if test "$with_gnu_ld" = no; then
15442 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15443 hardcode_libdir_separator=:
15444
15445 case $host_cpu in
15446 hppa*64*|ia64*)
15447 hardcode_direct=no
15448 hardcode_shlibpath_var=no
15449 ;;
15450 *)
15451 hardcode_direct=yes
15452 hardcode_direct_absolute=yes
15453 export_dynamic_flag_spec='${wl}-E'
15454
15455 # hardcode_minus_L: Not really in the search PATH,
15456 # but as the default location of the library.
15457 hardcode_minus_L=yes
15458 ;;
15459 esac
15460 fi
15461 ;;
15462
15463 irix5* | irix6* | nonstopux*)
15464 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015465 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 +000015466 # Try to use the -exported_symbol ld option, if it does not
15467 # work, assume that -exports_file does not work either and
15468 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015469 # This should be the same for all languages, so no per-tag cache variable.
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15471$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15472if ${lt_cv_irix_exported_symbol+:} false; then :
15473 $as_echo_n "(cached) " >&6
15474else
15475 save_LDFLAGS="$LDFLAGS"
15476 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015478/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015479int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015480_ACEOF
15481if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015482 lt_cv_irix_exported_symbol=yes
15483else
15484 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015485fi
15486rm -f core conftest.err conftest.$ac_objext \
15487 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015488 LDFLAGS="$save_LDFLAGS"
15489fi
15490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15491$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15492 if test "$lt_cv_irix_exported_symbol" = yes; then
15493 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'
15494 fi
cristy73bd4a52010-10-05 11:24:23 +000015495 else
cristy0c60a692010-11-04 01:09:47 +000015496 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'
15497 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 +000015498 fi
15499 archive_cmds_need_lc='no'
15500 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15501 hardcode_libdir_separator=:
15502 inherit_rpath=yes
15503 link_all_deplibs=yes
15504 ;;
15505
15506 netbsd*)
15507 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15508 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15509 else
15510 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15511 fi
15512 hardcode_libdir_flag_spec='-R$libdir'
15513 hardcode_direct=yes
15514 hardcode_shlibpath_var=no
15515 ;;
15516
15517 newsos6)
15518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15519 hardcode_direct=yes
15520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15521 hardcode_libdir_separator=:
15522 hardcode_shlibpath_var=no
15523 ;;
15524
15525 *nto* | *qnx*)
15526 ;;
15527
15528 openbsd*)
15529 if test -f /usr/libexec/ld.so; then
15530 hardcode_direct=yes
15531 hardcode_shlibpath_var=no
15532 hardcode_direct_absolute=yes
15533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15534 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15535 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15536 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15537 export_dynamic_flag_spec='${wl}-E'
15538 else
15539 case $host_os in
15540 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15541 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15542 hardcode_libdir_flag_spec='-R$libdir'
15543 ;;
15544 *)
15545 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15546 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15547 ;;
15548 esac
15549 fi
15550 else
15551 ld_shlibs=no
15552 fi
15553 ;;
15554
15555 os2*)
15556 hardcode_libdir_flag_spec='-L$libdir'
15557 hardcode_minus_L=yes
15558 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015559 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 +000015560 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15561 ;;
15562
15563 osf3*)
15564 if test "$GCC" = yes; then
15565 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015566 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 +000015567 else
15568 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015569 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 +000015570 fi
15571 archive_cmds_need_lc='no'
15572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15573 hardcode_libdir_separator=:
15574 ;;
15575
15576 osf4* | osf5*) # as osf3* with the addition of -msym flag
15577 if test "$GCC" = yes; then
15578 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015579 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 +000015580 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15581 else
15582 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015583 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 +000015584 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 +000015585 $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 +000015586
15587 # Both c and cxx compiler support -rpath directly
15588 hardcode_libdir_flag_spec='-rpath $libdir'
15589 fi
15590 archive_cmds_need_lc='no'
15591 hardcode_libdir_separator=:
15592 ;;
15593
15594 solaris*)
15595 no_undefined_flag=' -z defs'
15596 if test "$GCC" = yes; then
15597 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015598 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 +000015599 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 +000015600 $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 +000015601 else
15602 case `$CC -V 2>&1` in
15603 *"Compilers 5.0"*)
15604 wlarc=''
15605 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15606 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15607 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15608 ;;
15609 *)
15610 wlarc='${wl}'
15611 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15612 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15613 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15614 ;;
15615 esac
15616 fi
15617 hardcode_libdir_flag_spec='-R$libdir'
15618 hardcode_shlibpath_var=no
15619 case $host_os in
15620 solaris2.[0-5] | solaris2.[0-5].*) ;;
15621 *)
15622 # The compiler driver will combine and reorder linker options,
15623 # but understands `-z linker_flag'. GCC discards it without `$wl',
15624 # but is careful enough not to reorder.
15625 # Supported since Solaris 2.6 (maybe 2.5.1?)
15626 if test "$GCC" = yes; then
15627 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15628 else
15629 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15630 fi
15631 ;;
15632 esac
15633 link_all_deplibs=yes
15634 ;;
15635
15636 sunos4*)
15637 if test "x$host_vendor" = xsequent; then
15638 # Use $CC to link under sequent, because it throws in some extra .o
15639 # files that make .init and .fini sections work.
15640 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15641 else
15642 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15643 fi
15644 hardcode_libdir_flag_spec='-L$libdir'
15645 hardcode_direct=yes
15646 hardcode_minus_L=yes
15647 hardcode_shlibpath_var=no
15648 ;;
15649
15650 sysv4)
15651 case $host_vendor in
15652 sni)
15653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15654 hardcode_direct=yes # is this really true???
15655 ;;
15656 siemens)
15657 ## LD is ld it makes a PLAMLIB
15658 ## CC just makes a GrossModule.
15659 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15660 reload_cmds='$CC -r -o $output$reload_objs'
15661 hardcode_direct=no
15662 ;;
15663 motorola)
15664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15665 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15666 ;;
15667 esac
15668 runpath_var='LD_RUN_PATH'
15669 hardcode_shlibpath_var=no
15670 ;;
15671
15672 sysv4.3*)
15673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15674 hardcode_shlibpath_var=no
15675 export_dynamic_flag_spec='-Bexport'
15676 ;;
15677
15678 sysv4*MP*)
15679 if test -d /usr/nec; then
15680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15681 hardcode_shlibpath_var=no
15682 runpath_var=LD_RUN_PATH
15683 hardcode_runpath_var=yes
15684 ld_shlibs=yes
15685 fi
15686 ;;
15687
15688 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15689 no_undefined_flag='${wl}-z,text'
15690 archive_cmds_need_lc=no
15691 hardcode_shlibpath_var=no
15692 runpath_var='LD_RUN_PATH'
15693
15694 if test "$GCC" = yes; then
15695 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15696 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15697 else
15698 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15699 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15700 fi
15701 ;;
15702
15703 sysv5* | sco3.2v5* | sco5v6*)
15704 # Note: We can NOT use -z defs as we might desire, because we do not
15705 # link with -lc, and that would cause any symbols used from libc to
15706 # always be unresolved, which means just about no library would
15707 # ever link correctly. If we're not using GNU ld we use -z text
15708 # though, which does catch some bad symbols but isn't as heavy-handed
15709 # as -z defs.
15710 no_undefined_flag='${wl}-z,text'
15711 allow_undefined_flag='${wl}-z,nodefs'
15712 archive_cmds_need_lc=no
15713 hardcode_shlibpath_var=no
15714 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15715 hardcode_libdir_separator=':'
15716 link_all_deplibs=yes
15717 export_dynamic_flag_spec='${wl}-Bexport'
15718 runpath_var='LD_RUN_PATH'
15719
15720 if test "$GCC" = yes; then
15721 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15722 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15723 else
15724 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15725 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15726 fi
15727 ;;
15728
15729 uts4*)
15730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15731 hardcode_libdir_flag_spec='-L$libdir'
15732 hardcode_shlibpath_var=no
15733 ;;
15734
15735 *)
15736 ld_shlibs=no
15737 ;;
15738 esac
15739
15740 if test x$host_vendor = xsni; then
15741 case $host in
15742 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15743 export_dynamic_flag_spec='${wl}-Blargedynsym'
15744 ;;
15745 esac
15746 fi
15747 fi
15748
15749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15750$as_echo "$ld_shlibs" >&6; }
15751test "$ld_shlibs" = no && can_build_shared=no
15752
15753with_gnu_ld=$with_gnu_ld
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769#
15770# Do we need to explicitly link libc?
15771#
15772case "x$archive_cmds_need_lc" in
15773x|xyes)
15774 # Assume -lc should be added
15775 archive_cmds_need_lc=yes
15776
15777 if test "$enable_shared" = yes && test "$GCC" = yes; then
15778 case $archive_cmds in
15779 *'~'*)
15780 # FIXME: we may have to deal with multi-command sequences.
15781 ;;
15782 '$CC '*)
15783 # Test whether the compiler implicitly links with -lc since on some
15784 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15785 # to ld, don't add -lc before -lgcc.
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15787$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015788if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015789 $as_echo_n "(cached) " >&6
15790else
15791 $RM conftest*
15792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015793
cristy0c60a692010-11-04 01:09:47 +000015794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015795 (eval $ac_compile) 2>&5
15796 ac_status=$?
15797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15798 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015799 soname=conftest
15800 lib=conftest
15801 libobjs=conftest.$ac_objext
15802 deplibs=
15803 wl=$lt_prog_compiler_wl
15804 pic_flag=$lt_prog_compiler_pic
15805 compiler_flags=-v
15806 linker_flags=-v
15807 verstring=
15808 output_objdir=.
15809 libname=conftest
15810 lt_save_allow_undefined_flag=$allow_undefined_flag
15811 allow_undefined_flag=
15812 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 +000015813 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15814 ac_status=$?
15815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15816 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015817 then
15818 lt_cv_archive_cmds_need_lc=no
15819 else
15820 lt_cv_archive_cmds_need_lc=yes
15821 fi
15822 allow_undefined_flag=$lt_save_allow_undefined_flag
15823 else
15824 cat conftest.err 1>&5
15825 fi
15826 $RM conftest*
15827
15828fi
15829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15830$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15831 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015832 ;;
15833 esac
15834 fi
15835 ;;
15836esac
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
15986
15987
15988
cristy73bd4a52010-10-05 11:24:23 +000015989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15990$as_echo_n "checking dynamic linker characteristics... " >&6; }
15991
15992if test "$GCC" = yes; then
15993 case $host_os in
15994 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15995 *) lt_awk_arg="/^libraries:/" ;;
15996 esac
cristy0c60a692010-11-04 01:09:47 +000015997 case $host_os in
15998 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15999 *) lt_sed_strip_eq="s,=/,/,g" ;;
16000 esac
16001 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16002 case $lt_search_path_spec in
16003 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016004 # if the path contains ";" then we assume it to be the separator
16005 # otherwise default to the standard path separator (i.e. ":") - it is
16006 # assumed that no part of a normal pathname contains ";" but that should
16007 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016008 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16009 ;;
16010 *)
16011 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16012 ;;
16013 esac
cristy73bd4a52010-10-05 11:24:23 +000016014 # Ok, now we have the path, separated by spaces, we can step through it
16015 # and add multilib dir if necessary.
16016 lt_tmp_lt_search_path_spec=
16017 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16018 for lt_sys_path in $lt_search_path_spec; do
16019 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16020 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16021 else
16022 test -d "$lt_sys_path" && \
16023 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16024 fi
16025 done
cristy0c60a692010-11-04 01:09:47 +000016026 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016027BEGIN {RS=" "; FS="/|\n";} {
16028 lt_foo="";
16029 lt_count=0;
16030 for (lt_i = NF; lt_i > 0; lt_i--) {
16031 if ($lt_i != "" && $lt_i != ".") {
16032 if ($lt_i == "..") {
16033 lt_count++;
16034 } else {
16035 if (lt_count == 0) {
16036 lt_foo="/" $lt_i lt_foo;
16037 } else {
16038 lt_count--;
16039 }
16040 }
16041 }
16042 }
16043 if (lt_foo != "") { lt_freq[lt_foo]++; }
16044 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16045}'`
cristy0c60a692010-11-04 01:09:47 +000016046 # AWK program above erroneously prepends '/' to C:/dos/paths
16047 # for these hosts.
16048 case $host_os in
16049 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16050 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16051 esac
16052 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016053else
16054 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16055fi
16056library_names_spec=
16057libname_spec='lib$name'
16058soname_spec=
16059shrext_cmds=".so"
16060postinstall_cmds=
16061postuninstall_cmds=
16062finish_cmds=
16063finish_eval=
16064shlibpath_var=
16065shlibpath_overrides_runpath=unknown
16066version_type=none
16067dynamic_linker="$host_os ld.so"
16068sys_lib_dlsearch_path_spec="/lib /usr/lib"
16069need_lib_prefix=unknown
16070hardcode_into_libs=no
16071
16072# when you set need_version to no, make sure it does not cause -set_version
16073# flags to be left without arguments
16074need_version=unknown
16075
16076case $host_os in
16077aix3*)
cristy99bd5232011-12-07 14:38:20 +000016078 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16080 shlibpath_var=LIBPATH
16081
16082 # AIX 3 has no versioning support, so we append a major version to the name.
16083 soname_spec='${libname}${release}${shared_ext}$major'
16084 ;;
16085
16086aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016087 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016088 need_lib_prefix=no
16089 need_version=no
16090 hardcode_into_libs=yes
16091 if test "$host_cpu" = ia64; then
16092 # AIX 5 supports IA64
16093 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16094 shlibpath_var=LD_LIBRARY_PATH
16095 else
16096 # With GCC up to 2.95.x, collect2 would create an import file
16097 # for dependence libraries. The import file would start with
16098 # the line `#! .'. This would cause the generated library to
16099 # depend on `.', always an invalid library. This was fixed in
16100 # development snapshots of GCC prior to 3.0.
16101 case $host_os in
16102 aix4 | aix4.[01] | aix4.[01].*)
16103 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16104 echo ' yes '
16105 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16106 :
16107 else
16108 can_build_shared=no
16109 fi
16110 ;;
16111 esac
16112 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16113 # soname into executable. Probably we can add versioning support to
16114 # collect2, so additional links can be useful in future.
16115 if test "$aix_use_runtimelinking" = yes; then
16116 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16117 # instead of lib<name>.a to let people know that these are not
16118 # typical AIX shared libraries.
16119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16120 else
16121 # We preserve .a as extension for shared libraries through AIX4.2
16122 # and later when we are not doing run time linking.
16123 library_names_spec='${libname}${release}.a $libname.a'
16124 soname_spec='${libname}${release}${shared_ext}$major'
16125 fi
16126 shlibpath_var=LIBPATH
16127 fi
16128 ;;
16129
16130amigaos*)
16131 case $host_cpu in
16132 powerpc)
16133 # Since July 2007 AmigaOS4 officially supports .so libraries.
16134 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16136 ;;
16137 m68k)
16138 library_names_spec='$libname.ixlibrary $libname.a'
16139 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016140 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 +000016141 ;;
16142 esac
16143 ;;
16144
16145beos*)
16146 library_names_spec='${libname}${shared_ext}'
16147 dynamic_linker="$host_os ld.so"
16148 shlibpath_var=LIBRARY_PATH
16149 ;;
16150
16151bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016152 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016153 need_version=no
16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16155 soname_spec='${libname}${release}${shared_ext}$major'
16156 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16157 shlibpath_var=LD_LIBRARY_PATH
16158 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16159 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16160 # the default ld.so.conf also contains /usr/contrib/lib and
16161 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16162 # libtool to hard-code these into programs
16163 ;;
16164
16165cygwin* | mingw* | pw32* | cegcc*)
16166 version_type=windows
16167 shrext_cmds=".dll"
16168 need_version=no
16169 need_lib_prefix=no
16170
cristyda16f162011-02-19 23:52:17 +000016171 case $GCC,$cc_basename in
16172 yes,*)
16173 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016174 library_names_spec='$libname.dll.a'
16175 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16176 postinstall_cmds='base_file=`basename \${file}`~
16177 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16178 dldir=$destdir/`dirname \$dlpath`~
16179 test -d \$dldir || mkdir -p \$dldir~
16180 $install_prog $dir/$dlname \$dldir/$dlname~
16181 chmod a+x \$dldir/$dlname~
16182 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16183 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16184 fi'
16185 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16186 dlpath=$dir/\$dldll~
16187 $RM \$dlpath'
16188 shlibpath_overrides_runpath=yes
16189
16190 case $host_os in
16191 cygwin*)
16192 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16193 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016194
16195 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016196 ;;
16197 mingw* | cegcc*)
16198 # MinGW DLLs use traditional 'lib' prefix
16199 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016200 ;;
16201 pw32*)
16202 # pw32 DLLs use 'pw' prefix rather than 'lib'
16203 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16204 ;;
16205 esac
cristyda16f162011-02-19 23:52:17 +000016206 dynamic_linker='Win32 ld.exe'
16207 ;;
16208
16209 *,cl*)
16210 # Native MSVC
16211 libname_spec='$name'
16212 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16213 library_names_spec='${libname}.dll.lib'
16214
16215 case $build_os in
16216 mingw*)
16217 sys_lib_search_path_spec=
16218 lt_save_ifs=$IFS
16219 IFS=';'
16220 for lt_path in $LIB
16221 do
16222 IFS=$lt_save_ifs
16223 # Let DOS variable expansion print the short 8.3 style file name.
16224 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16225 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16226 done
16227 IFS=$lt_save_ifs
16228 # Convert to MSYS style.
16229 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16230 ;;
16231 cygwin*)
16232 # Convert to unix form, then to dos form, then back to unix form
16233 # but this time dos style (no spaces!) so that the unix form looks
16234 # like /cygdrive/c/PROGRA~1:/cygdr...
16235 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16236 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16237 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16238 ;;
16239 *)
16240 sys_lib_search_path_spec="$LIB"
16241 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16242 # It is most probably a Windows format PATH.
16243 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16244 else
16245 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16246 fi
16247 # FIXME: find the short name or the path components, as spaces are
16248 # common. (e.g. "Program Files" -> "PROGRA~1")
16249 ;;
16250 esac
16251
16252 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16253 postinstall_cmds='base_file=`basename \${file}`~
16254 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16255 dldir=$destdir/`dirname \$dlpath`~
16256 test -d \$dldir || mkdir -p \$dldir~
16257 $install_prog $dir/$dlname \$dldir/$dlname'
16258 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16259 dlpath=$dir/\$dldll~
16260 $RM \$dlpath'
16261 shlibpath_overrides_runpath=yes
16262 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016263 ;;
16264
16265 *)
cristyda16f162011-02-19 23:52:17 +000016266 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016267 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016268 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016269 ;;
16270 esac
cristy73bd4a52010-10-05 11:24:23 +000016271 # FIXME: first we should search . and the directory the executable is in
16272 shlibpath_var=PATH
16273 ;;
16274
16275darwin* | rhapsody*)
16276 dynamic_linker="$host_os dyld"
16277 version_type=darwin
16278 need_lib_prefix=no
16279 need_version=no
16280 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16281 soname_spec='${libname}${release}${major}$shared_ext'
16282 shlibpath_overrides_runpath=yes
16283 shlibpath_var=DYLD_LIBRARY_PATH
16284 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16285
16286 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16287 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16288 ;;
16289
16290dgux*)
cristy99bd5232011-12-07 14:38:20 +000016291 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016292 need_lib_prefix=no
16293 need_version=no
16294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16295 soname_spec='${libname}${release}${shared_ext}$major'
16296 shlibpath_var=LD_LIBRARY_PATH
16297 ;;
16298
cristy73bd4a52010-10-05 11:24:23 +000016299freebsd* | dragonfly*)
16300 # DragonFly does not have aout. When/if they implement a new
16301 # versioning mechanism, adjust this.
16302 if test -x /usr/bin/objformat; then
16303 objformat=`/usr/bin/objformat`
16304 else
16305 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016306 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016307 *) objformat=elf ;;
16308 esac
16309 fi
16310 version_type=freebsd-$objformat
16311 case $version_type in
16312 freebsd-elf*)
16313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16314 need_version=no
16315 need_lib_prefix=no
16316 ;;
16317 freebsd-*)
16318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16319 need_version=yes
16320 ;;
16321 esac
16322 shlibpath_var=LD_LIBRARY_PATH
16323 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016324 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016325 shlibpath_overrides_runpath=yes
16326 ;;
16327 freebsd3.[01]* | freebsdelf3.[01]*)
16328 shlibpath_overrides_runpath=yes
16329 hardcode_into_libs=yes
16330 ;;
16331 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16332 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16333 shlibpath_overrides_runpath=no
16334 hardcode_into_libs=yes
16335 ;;
16336 *) # from 4.6 on, and DragonFly
16337 shlibpath_overrides_runpath=yes
16338 hardcode_into_libs=yes
16339 ;;
16340 esac
16341 ;;
16342
16343gnu*)
cristy99bd5232011-12-07 14:38:20 +000016344 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016345 need_lib_prefix=no
16346 need_version=no
16347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16348 soname_spec='${libname}${release}${shared_ext}$major'
16349 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016350 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016351 hardcode_into_libs=yes
16352 ;;
16353
cristy0c60a692010-11-04 01:09:47 +000016354haiku*)
cristy99bd5232011-12-07 14:38:20 +000016355 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016356 need_lib_prefix=no
16357 need_version=no
16358 dynamic_linker="$host_os runtime_loader"
16359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16360 soname_spec='${libname}${release}${shared_ext}$major'
16361 shlibpath_var=LIBRARY_PATH
16362 shlibpath_overrides_runpath=yes
16363 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16364 hardcode_into_libs=yes
16365 ;;
16366
cristy73bd4a52010-10-05 11:24:23 +000016367hpux9* | hpux10* | hpux11*)
16368 # Give a soname corresponding to the major version so that dld.sl refuses to
16369 # link against other versions.
16370 version_type=sunos
16371 need_lib_prefix=no
16372 need_version=no
16373 case $host_cpu in
16374 ia64*)
16375 shrext_cmds='.so'
16376 hardcode_into_libs=yes
16377 dynamic_linker="$host_os dld.so"
16378 shlibpath_var=LD_LIBRARY_PATH
16379 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16381 soname_spec='${libname}${release}${shared_ext}$major'
16382 if test "X$HPUX_IA64_MODE" = X32; then
16383 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16384 else
16385 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16386 fi
16387 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16388 ;;
16389 hppa*64*)
16390 shrext_cmds='.sl'
16391 hardcode_into_libs=yes
16392 dynamic_linker="$host_os dld.sl"
16393 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16394 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16396 soname_spec='${libname}${release}${shared_ext}$major'
16397 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16398 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16399 ;;
16400 *)
16401 shrext_cmds='.sl'
16402 dynamic_linker="$host_os dld.sl"
16403 shlibpath_var=SHLIB_PATH
16404 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16406 soname_spec='${libname}${release}${shared_ext}$major'
16407 ;;
16408 esac
cristy0c60a692010-11-04 01:09:47 +000016409 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016410 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016411 # or fails outright, so override atomically:
16412 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016413 ;;
16414
16415interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016416 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016417 need_lib_prefix=no
16418 need_version=no
16419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16420 soname_spec='${libname}${release}${shared_ext}$major'
16421 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16422 shlibpath_var=LD_LIBRARY_PATH
16423 shlibpath_overrides_runpath=no
16424 hardcode_into_libs=yes
16425 ;;
16426
16427irix5* | irix6* | nonstopux*)
16428 case $host_os in
16429 nonstopux*) version_type=nonstopux ;;
16430 *)
16431 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016432 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016433 else
16434 version_type=irix
16435 fi ;;
16436 esac
16437 need_lib_prefix=no
16438 need_version=no
16439 soname_spec='${libname}${release}${shared_ext}$major'
16440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16441 case $host_os in
16442 irix5* | nonstopux*)
16443 libsuff= shlibsuff=
16444 ;;
16445 *)
16446 case $LD in # libtool.m4 will add one of these switches to LD
16447 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16448 libsuff= shlibsuff= libmagic=32-bit;;
16449 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16450 libsuff=32 shlibsuff=N32 libmagic=N32;;
16451 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16452 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16453 *) libsuff= shlibsuff= libmagic=never-match;;
16454 esac
16455 ;;
16456 esac
16457 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16458 shlibpath_overrides_runpath=no
16459 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16460 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16461 hardcode_into_libs=yes
16462 ;;
16463
16464# No shared lib support for Linux oldld, aout, or coff.
16465linux*oldld* | linux*aout* | linux*coff*)
16466 dynamic_linker=no
16467 ;;
16468
cristy99bd5232011-12-07 14:38:20 +000016469# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016470linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016471 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016472 need_lib_prefix=no
16473 need_version=no
16474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16475 soname_spec='${libname}${release}${shared_ext}$major'
16476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16477 shlibpath_var=LD_LIBRARY_PATH
16478 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016479
cristy73bd4a52010-10-05 11:24:23 +000016480 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016481 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016482 $as_echo_n "(cached) " >&6
16483else
16484 lt_cv_shlibpath_overrides_runpath=no
16485 save_LDFLAGS=$LDFLAGS
16486 save_libdir=$libdir
16487 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16488 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016490/* end confdefs.h. */
16491
16492int
16493main ()
16494{
16495
16496 ;
16497 return 0;
16498}
16499_ACEOF
16500if ac_fn_c_try_link "$LINENO"; then :
16501 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016502 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016503fi
16504fi
16505rm -f core conftest.err conftest.$ac_objext \
16506 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016507 LDFLAGS=$save_LDFLAGS
16508 libdir=$save_libdir
16509
16510fi
16511
16512 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016513
16514 # This implies no fast_install, which is unacceptable.
16515 # Some rework will be needed to allow for fast_install
16516 # before this can be enabled.
16517 hardcode_into_libs=yes
16518
16519 # Add ABI-specific directories to the system library path.
16520 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16521
16522 # Append ld.so.conf contents to the search path
16523 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016524 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 +000016525 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016526
cristy73bd4a52010-10-05 11:24:23 +000016527 fi
16528
16529 # We used to test for /lib/ld.so.1 and disable shared libraries on
16530 # powerpc, because MkLinux only supported shared libraries with the
16531 # GNU dynamic linker. Since this was broken with cross compilers,
16532 # most powerpc-linux boxes support dynamic linking these days and
16533 # people can always --disable-shared, the test was removed, and we
16534 # assume the GNU/Linux dynamic linker is in use.
16535 dynamic_linker='GNU/Linux ld.so'
16536 ;;
16537
16538netbsd*)
16539 version_type=sunos
16540 need_lib_prefix=no
16541 need_version=no
16542 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16545 dynamic_linker='NetBSD (a.out) ld.so'
16546 else
16547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16548 soname_spec='${libname}${release}${shared_ext}$major'
16549 dynamic_linker='NetBSD ld.elf_so'
16550 fi
16551 shlibpath_var=LD_LIBRARY_PATH
16552 shlibpath_overrides_runpath=yes
16553 hardcode_into_libs=yes
16554 ;;
16555
16556newsos6)
cristy99bd5232011-12-07 14:38:20 +000016557 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16559 shlibpath_var=LD_LIBRARY_PATH
16560 shlibpath_overrides_runpath=yes
16561 ;;
16562
16563*nto* | *qnx*)
16564 version_type=qnx
16565 need_lib_prefix=no
16566 need_version=no
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568 soname_spec='${libname}${release}${shared_ext}$major'
16569 shlibpath_var=LD_LIBRARY_PATH
16570 shlibpath_overrides_runpath=no
16571 hardcode_into_libs=yes
16572 dynamic_linker='ldqnx.so'
16573 ;;
16574
16575openbsd*)
16576 version_type=sunos
16577 sys_lib_dlsearch_path_spec="/usr/lib"
16578 need_lib_prefix=no
16579 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16580 case $host_os in
16581 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16582 *) need_version=no ;;
16583 esac
16584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16586 shlibpath_var=LD_LIBRARY_PATH
16587 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16588 case $host_os in
16589 openbsd2.[89] | openbsd2.[89].*)
16590 shlibpath_overrides_runpath=no
16591 ;;
16592 *)
16593 shlibpath_overrides_runpath=yes
16594 ;;
16595 esac
16596 else
16597 shlibpath_overrides_runpath=yes
16598 fi
16599 ;;
16600
16601os2*)
16602 libname_spec='$name'
16603 shrext_cmds=".dll"
16604 need_lib_prefix=no
16605 library_names_spec='$libname${shared_ext} $libname.a'
16606 dynamic_linker='OS/2 ld.exe'
16607 shlibpath_var=LIBPATH
16608 ;;
16609
16610osf3* | osf4* | osf5*)
16611 version_type=osf
16612 need_lib_prefix=no
16613 need_version=no
16614 soname_spec='${libname}${release}${shared_ext}$major'
16615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16616 shlibpath_var=LD_LIBRARY_PATH
16617 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16618 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16619 ;;
16620
16621rdos*)
16622 dynamic_linker=no
16623 ;;
16624
16625solaris*)
cristy99bd5232011-12-07 14:38:20 +000016626 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016627 need_lib_prefix=no
16628 need_version=no
16629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16630 soname_spec='${libname}${release}${shared_ext}$major'
16631 shlibpath_var=LD_LIBRARY_PATH
16632 shlibpath_overrides_runpath=yes
16633 hardcode_into_libs=yes
16634 # ldd complains unless libraries are executable
16635 postinstall_cmds='chmod +x $lib'
16636 ;;
16637
16638sunos4*)
16639 version_type=sunos
16640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16641 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16642 shlibpath_var=LD_LIBRARY_PATH
16643 shlibpath_overrides_runpath=yes
16644 if test "$with_gnu_ld" = yes; then
16645 need_lib_prefix=no
16646 fi
16647 need_version=yes
16648 ;;
16649
16650sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016651 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16653 soname_spec='${libname}${release}${shared_ext}$major'
16654 shlibpath_var=LD_LIBRARY_PATH
16655 case $host_vendor in
16656 sni)
16657 shlibpath_overrides_runpath=no
16658 need_lib_prefix=no
16659 runpath_var=LD_RUN_PATH
16660 ;;
16661 siemens)
16662 need_lib_prefix=no
16663 ;;
16664 motorola)
16665 need_lib_prefix=no
16666 need_version=no
16667 shlibpath_overrides_runpath=no
16668 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16669 ;;
16670 esac
16671 ;;
16672
16673sysv4*MP*)
16674 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016675 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016676 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16677 soname_spec='$libname${shared_ext}.$major'
16678 shlibpath_var=LD_LIBRARY_PATH
16679 fi
16680 ;;
16681
16682sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16683 version_type=freebsd-elf
16684 need_lib_prefix=no
16685 need_version=no
16686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16687 soname_spec='${libname}${release}${shared_ext}$major'
16688 shlibpath_var=LD_LIBRARY_PATH
16689 shlibpath_overrides_runpath=yes
16690 hardcode_into_libs=yes
16691 if test "$with_gnu_ld" = yes; then
16692 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16693 else
16694 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16695 case $host_os in
16696 sco3.2v5*)
16697 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16698 ;;
16699 esac
16700 fi
16701 sys_lib_dlsearch_path_spec='/usr/lib'
16702 ;;
16703
16704tpf*)
16705 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016706 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016707 need_lib_prefix=no
16708 need_version=no
16709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16710 shlibpath_var=LD_LIBRARY_PATH
16711 shlibpath_overrides_runpath=no
16712 hardcode_into_libs=yes
16713 ;;
16714
16715uts4*)
cristy99bd5232011-12-07 14:38:20 +000016716 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16718 soname_spec='${libname}${release}${shared_ext}$major'
16719 shlibpath_var=LD_LIBRARY_PATH
16720 ;;
16721
16722*)
16723 dynamic_linker=no
16724 ;;
16725esac
16726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16727$as_echo "$dynamic_linker" >&6; }
16728test "$dynamic_linker" = no && can_build_shared=no
16729
16730variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16731if test "$GCC" = yes; then
16732 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16733fi
16734
16735if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16736 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16737fi
16738if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16739 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16740fi
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
16825
16826
16827
cristy0c60a692010-11-04 01:09:47 +000016828
16829
16830
16831
16832
cristy73bd4a52010-10-05 11:24:23 +000016833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16834$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16835hardcode_action=
16836if test -n "$hardcode_libdir_flag_spec" ||
16837 test -n "$runpath_var" ||
16838 test "X$hardcode_automatic" = "Xyes" ; then
16839
16840 # We can hardcode non-existent directories.
16841 if test "$hardcode_direct" != no &&
16842 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16843 # have to relink, otherwise we might link with an installed library
16844 # when we should be linking with a yet-to-be-installed one
16845 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16846 test "$hardcode_minus_L" != no; then
16847 # Linking always hardcodes the temporary library directory.
16848 hardcode_action=relink
16849 else
16850 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16851 hardcode_action=immediate
16852 fi
16853else
16854 # We cannot hardcode anything, or else we can only hardcode existing
16855 # directories.
16856 hardcode_action=unsupported
16857fi
16858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16859$as_echo "$hardcode_action" >&6; }
16860
16861if test "$hardcode_action" = relink ||
16862 test "$inherit_rpath" = yes; then
16863 # Fast installation is not supported
16864 enable_fast_install=no
16865elif test "$shlibpath_overrides_runpath" = yes ||
16866 test "$enable_shared" = no; then
16867 # Fast installation is not necessary
16868 enable_fast_install=needless
16869fi
16870
16871
16872
16873
16874
16875
16876 if test "x$enable_dlopen" != xyes; then
16877 enable_dlopen=unknown
16878 enable_dlopen_self=unknown
16879 enable_dlopen_self_static=unknown
16880else
16881 lt_cv_dlopen=no
16882 lt_cv_dlopen_libs=
16883
16884 case $host_os in
16885 beos*)
16886 lt_cv_dlopen="load_add_on"
16887 lt_cv_dlopen_libs=
16888 lt_cv_dlopen_self=yes
16889 ;;
16890
16891 mingw* | pw32* | cegcc*)
16892 lt_cv_dlopen="LoadLibrary"
16893 lt_cv_dlopen_libs=
16894 ;;
16895
16896 cygwin*)
16897 lt_cv_dlopen="dlopen"
16898 lt_cv_dlopen_libs=
16899 ;;
16900
16901 darwin*)
16902 # if libdl is installed we need to link against it
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16904$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016905if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016906 $as_echo_n "(cached) " >&6
16907else
16908 ac_check_lib_save_LIBS=$LIBS
16909LIBS="-ldl $LIBS"
16910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16911/* end confdefs.h. */
16912
16913/* Override any GCC internal prototype to avoid an error.
16914 Use char because int might match the return type of a GCC
16915 builtin and then its argument prototype would still apply. */
16916#ifdef __cplusplus
16917extern "C"
16918#endif
16919char dlopen ();
16920int
16921main ()
16922{
16923return dlopen ();
16924 ;
16925 return 0;
16926}
16927_ACEOF
16928if ac_fn_c_try_link "$LINENO"; then :
16929 ac_cv_lib_dl_dlopen=yes
16930else
16931 ac_cv_lib_dl_dlopen=no
16932fi
16933rm -f core conftest.err conftest.$ac_objext \
16934 conftest$ac_exeext conftest.$ac_ext
16935LIBS=$ac_check_lib_save_LIBS
16936fi
16937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16938$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016939if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016940 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16941else
16942
16943 lt_cv_dlopen="dyld"
16944 lt_cv_dlopen_libs=
16945 lt_cv_dlopen_self=yes
16946
16947fi
16948
16949 ;;
16950
16951 *)
16952 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016953if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016954 lt_cv_dlopen="shl_load"
16955else
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16957$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016958if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016959 $as_echo_n "(cached) " >&6
16960else
16961 ac_check_lib_save_LIBS=$LIBS
16962LIBS="-ldld $LIBS"
16963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16964/* end confdefs.h. */
16965
16966/* Override any GCC internal prototype to avoid an error.
16967 Use char because int might match the return type of a GCC
16968 builtin and then its argument prototype would still apply. */
16969#ifdef __cplusplus
16970extern "C"
16971#endif
16972char shl_load ();
16973int
16974main ()
16975{
16976return shl_load ();
16977 ;
16978 return 0;
16979}
16980_ACEOF
16981if ac_fn_c_try_link "$LINENO"; then :
16982 ac_cv_lib_dld_shl_load=yes
16983else
16984 ac_cv_lib_dld_shl_load=no
16985fi
16986rm -f core conftest.err conftest.$ac_objext \
16987 conftest$ac_exeext conftest.$ac_ext
16988LIBS=$ac_check_lib_save_LIBS
16989fi
16990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16991$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016992if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016993 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16994else
16995 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016996if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016997 lt_cv_dlopen="dlopen"
16998else
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17000$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017001if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017002 $as_echo_n "(cached) " >&6
17003else
17004 ac_check_lib_save_LIBS=$LIBS
17005LIBS="-ldl $LIBS"
17006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17007/* end confdefs.h. */
17008
17009/* Override any GCC internal prototype to avoid an error.
17010 Use char because int might match the return type of a GCC
17011 builtin and then its argument prototype would still apply. */
17012#ifdef __cplusplus
17013extern "C"
17014#endif
17015char dlopen ();
17016int
17017main ()
17018{
17019return dlopen ();
17020 ;
17021 return 0;
17022}
17023_ACEOF
17024if ac_fn_c_try_link "$LINENO"; then :
17025 ac_cv_lib_dl_dlopen=yes
17026else
17027 ac_cv_lib_dl_dlopen=no
17028fi
17029rm -f core conftest.err conftest.$ac_objext \
17030 conftest$ac_exeext conftest.$ac_ext
17031LIBS=$ac_check_lib_save_LIBS
17032fi
17033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17034$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017035if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017036 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17037else
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17039$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017040if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017041 $as_echo_n "(cached) " >&6
17042else
17043 ac_check_lib_save_LIBS=$LIBS
17044LIBS="-lsvld $LIBS"
17045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17046/* end confdefs.h. */
17047
17048/* Override any GCC internal prototype to avoid an error.
17049 Use char because int might match the return type of a GCC
17050 builtin and then its argument prototype would still apply. */
17051#ifdef __cplusplus
17052extern "C"
17053#endif
17054char dlopen ();
17055int
17056main ()
17057{
17058return dlopen ();
17059 ;
17060 return 0;
17061}
17062_ACEOF
17063if ac_fn_c_try_link "$LINENO"; then :
17064 ac_cv_lib_svld_dlopen=yes
17065else
17066 ac_cv_lib_svld_dlopen=no
17067fi
17068rm -f core conftest.err conftest.$ac_objext \
17069 conftest$ac_exeext conftest.$ac_ext
17070LIBS=$ac_check_lib_save_LIBS
17071fi
17072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17073$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017074if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017075 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17076else
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17078$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017079if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017080 $as_echo_n "(cached) " >&6
17081else
17082 ac_check_lib_save_LIBS=$LIBS
17083LIBS="-ldld $LIBS"
17084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17085/* end confdefs.h. */
17086
17087/* Override any GCC internal prototype to avoid an error.
17088 Use char because int might match the return type of a GCC
17089 builtin and then its argument prototype would still apply. */
17090#ifdef __cplusplus
17091extern "C"
17092#endif
17093char dld_link ();
17094int
17095main ()
17096{
17097return dld_link ();
17098 ;
17099 return 0;
17100}
17101_ACEOF
17102if ac_fn_c_try_link "$LINENO"; then :
17103 ac_cv_lib_dld_dld_link=yes
17104else
17105 ac_cv_lib_dld_dld_link=no
17106fi
17107rm -f core conftest.err conftest.$ac_objext \
17108 conftest$ac_exeext conftest.$ac_ext
17109LIBS=$ac_check_lib_save_LIBS
17110fi
17111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17112$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017113if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017114 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17115fi
17116
17117
17118fi
17119
17120
17121fi
17122
17123
17124fi
17125
17126
17127fi
17128
17129
17130fi
17131
17132 ;;
17133 esac
17134
17135 if test "x$lt_cv_dlopen" != xno; then
17136 enable_dlopen=yes
17137 else
17138 enable_dlopen=no
17139 fi
17140
17141 case $lt_cv_dlopen in
17142 dlopen)
17143 save_CPPFLAGS="$CPPFLAGS"
17144 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17145
17146 save_LDFLAGS="$LDFLAGS"
17147 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17148
17149 save_LIBS="$LIBS"
17150 LIBS="$lt_cv_dlopen_libs $LIBS"
17151
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17153$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017154if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017155 $as_echo_n "(cached) " >&6
17156else
17157 if test "$cross_compiling" = yes; then :
17158 lt_cv_dlopen_self=cross
17159else
17160 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17161 lt_status=$lt_dlunknown
17162 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017163#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017164#include "confdefs.h"
17165
17166#if HAVE_DLFCN_H
17167#include <dlfcn.h>
17168#endif
17169
17170#include <stdio.h>
17171
17172#ifdef RTLD_GLOBAL
17173# define LT_DLGLOBAL RTLD_GLOBAL
17174#else
17175# ifdef DL_GLOBAL
17176# define LT_DLGLOBAL DL_GLOBAL
17177# else
17178# define LT_DLGLOBAL 0
17179# endif
17180#endif
17181
17182/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17183 find out it does not work in some platform. */
17184#ifndef LT_DLLAZY_OR_NOW
17185# ifdef RTLD_LAZY
17186# define LT_DLLAZY_OR_NOW RTLD_LAZY
17187# else
17188# ifdef DL_LAZY
17189# define LT_DLLAZY_OR_NOW DL_LAZY
17190# else
17191# ifdef RTLD_NOW
17192# define LT_DLLAZY_OR_NOW RTLD_NOW
17193# else
17194# ifdef DL_NOW
17195# define LT_DLLAZY_OR_NOW DL_NOW
17196# else
17197# define LT_DLLAZY_OR_NOW 0
17198# endif
17199# endif
17200# endif
17201# endif
17202#endif
17203
cristy0c60a692010-11-04 01:09:47 +000017204/* When -fvisbility=hidden is used, assume the code has been annotated
17205 correspondingly for the symbols needed. */
17206#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017207int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017208#endif
17209
cristyda16f162011-02-19 23:52:17 +000017210int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017211int main ()
17212{
17213 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17214 int status = $lt_dlunknown;
17215
17216 if (self)
17217 {
17218 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017219 else
17220 {
17221 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17222 else puts (dlerror ());
17223 }
cristy73bd4a52010-10-05 11:24:23 +000017224 /* dlclose (self); */
17225 }
17226 else
17227 puts (dlerror ());
17228
17229 return status;
17230}
17231_LT_EOF
17232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17233 (eval $ac_link) 2>&5
17234 ac_status=$?
17235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17236 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17237 (./conftest; exit; ) >&5 2>/dev/null
17238 lt_status=$?
17239 case x$lt_status in
17240 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17241 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17242 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17243 esac
17244 else :
17245 # compilation failed
17246 lt_cv_dlopen_self=no
17247 fi
17248fi
17249rm -fr conftest*
17250
17251
17252fi
17253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17254$as_echo "$lt_cv_dlopen_self" >&6; }
17255
17256 if test "x$lt_cv_dlopen_self" = xyes; then
17257 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17259$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017260if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017261 $as_echo_n "(cached) " >&6
17262else
17263 if test "$cross_compiling" = yes; then :
17264 lt_cv_dlopen_self_static=cross
17265else
17266 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17267 lt_status=$lt_dlunknown
17268 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017269#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017270#include "confdefs.h"
17271
17272#if HAVE_DLFCN_H
17273#include <dlfcn.h>
17274#endif
17275
17276#include <stdio.h>
17277
17278#ifdef RTLD_GLOBAL
17279# define LT_DLGLOBAL RTLD_GLOBAL
17280#else
17281# ifdef DL_GLOBAL
17282# define LT_DLGLOBAL DL_GLOBAL
17283# else
17284# define LT_DLGLOBAL 0
17285# endif
17286#endif
17287
17288/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17289 find out it does not work in some platform. */
17290#ifndef LT_DLLAZY_OR_NOW
17291# ifdef RTLD_LAZY
17292# define LT_DLLAZY_OR_NOW RTLD_LAZY
17293# else
17294# ifdef DL_LAZY
17295# define LT_DLLAZY_OR_NOW DL_LAZY
17296# else
17297# ifdef RTLD_NOW
17298# define LT_DLLAZY_OR_NOW RTLD_NOW
17299# else
17300# ifdef DL_NOW
17301# define LT_DLLAZY_OR_NOW DL_NOW
17302# else
17303# define LT_DLLAZY_OR_NOW 0
17304# endif
17305# endif
17306# endif
17307# endif
17308#endif
17309
cristy0c60a692010-11-04 01:09:47 +000017310/* When -fvisbility=hidden is used, assume the code has been annotated
17311 correspondingly for the symbols needed. */
17312#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017313int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017314#endif
17315
cristyda16f162011-02-19 23:52:17 +000017316int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017317int main ()
17318{
17319 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17320 int status = $lt_dlunknown;
17321
17322 if (self)
17323 {
17324 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017325 else
17326 {
17327 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17328 else puts (dlerror ());
17329 }
cristy73bd4a52010-10-05 11:24:23 +000017330 /* dlclose (self); */
17331 }
17332 else
17333 puts (dlerror ());
17334
17335 return status;
17336}
17337_LT_EOF
17338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17339 (eval $ac_link) 2>&5
17340 ac_status=$?
17341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17342 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17343 (./conftest; exit; ) >&5 2>/dev/null
17344 lt_status=$?
17345 case x$lt_status in
17346 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17347 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17348 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17349 esac
17350 else :
17351 # compilation failed
17352 lt_cv_dlopen_self_static=no
17353 fi
17354fi
17355rm -fr conftest*
17356
17357
17358fi
17359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17360$as_echo "$lt_cv_dlopen_self_static" >&6; }
17361 fi
17362
17363 CPPFLAGS="$save_CPPFLAGS"
17364 LDFLAGS="$save_LDFLAGS"
17365 LIBS="$save_LIBS"
17366 ;;
17367 esac
17368
17369 case $lt_cv_dlopen_self in
17370 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17371 *) enable_dlopen_self=unknown ;;
17372 esac
17373
17374 case $lt_cv_dlopen_self_static in
17375 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17376 *) enable_dlopen_self_static=unknown ;;
17377 esac
17378fi
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396striplib=
17397old_striplib=
17398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17399$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17400if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17401 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17402 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17404$as_echo "yes" >&6; }
17405else
17406# FIXME - insert some real tests, host_os isn't really good enough
17407 case $host_os in
17408 darwin*)
17409 if test -n "$STRIP" ; then
17410 striplib="$STRIP -x"
17411 old_striplib="$STRIP -S"
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17413$as_echo "yes" >&6; }
17414 else
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17416$as_echo "no" >&6; }
17417 fi
17418 ;;
17419 *)
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17421$as_echo "no" >&6; }
17422 ;;
17423 esac
17424fi
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437 # Report which library types will actually be built
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17439$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17441$as_echo "$can_build_shared" >&6; }
17442
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17444$as_echo_n "checking whether to build shared libraries... " >&6; }
17445 test "$can_build_shared" = "no" && enable_shared=no
17446
17447 # On AIX, shared libraries and static libraries use the same namespace, and
17448 # are all built from PIC.
17449 case $host_os in
17450 aix3*)
17451 test "$enable_shared" = yes && enable_static=no
17452 if test -n "$RANLIB"; then
17453 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17454 postinstall_cmds='$RANLIB $lib'
17455 fi
17456 ;;
17457
17458 aix[4-9]*)
17459 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17460 test "$enable_shared" = yes && enable_static=no
17461 fi
17462 ;;
17463 esac
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17465$as_echo "$enable_shared" >&6; }
17466
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17468$as_echo_n "checking whether to build static libraries... " >&6; }
17469 # Make sure either enable_shared or enable_static is yes.
17470 test "$enable_shared" = yes || enable_static=yes
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17472$as_echo "$enable_static" >&6; }
17473
17474
17475
17476
17477fi
17478ac_ext=c
17479ac_cpp='$CPP $CPPFLAGS'
17480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17482ac_compiler_gnu=$ac_cv_c_compiler_gnu
17483
17484CC="$lt_save_CC"
17485
cristy0c60a692010-11-04 01:09:47 +000017486 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17487 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17488 (test "X$CXX" != "Xg++"))) ; then
17489 ac_ext=cpp
17490ac_cpp='$CXXCPP $CPPFLAGS'
17491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17495$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17496if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017497 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017498 $as_echo_n "(cached) " >&6
17499else
17500 # Double quotes because CXXCPP needs to be expanded
17501 for CXXCPP in "$CXX -E" "/lib/cpp"
17502 do
17503 ac_preproc_ok=false
17504for ac_cxx_preproc_warn_flag in '' yes
17505do
17506 # Use a header file that comes with gcc, so configuring glibc
17507 # with a fresh cross-compiler works.
17508 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17509 # <limits.h> exists even on freestanding compilers.
17510 # On the NeXT, cc -E runs the code through the compiler's parser,
17511 # not just through cpp. "Syntax error" is here to catch this case.
17512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17513/* end confdefs.h. */
17514#ifdef __STDC__
17515# include <limits.h>
17516#else
17517# include <assert.h>
17518#endif
17519 Syntax error
17520_ACEOF
17521if ac_fn_cxx_try_cpp "$LINENO"; then :
17522
17523else
17524 # Broken: fails on valid input.
17525continue
17526fi
cristyda16f162011-02-19 23:52:17 +000017527rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017528
17529 # OK, works on sane cases. Now check whether nonexistent headers
17530 # can be detected and how.
17531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17532/* end confdefs.h. */
17533#include <ac_nonexistent.h>
17534_ACEOF
17535if ac_fn_cxx_try_cpp "$LINENO"; then :
17536 # Broken: success on invalid input.
17537continue
17538else
17539 # Passes both tests.
17540ac_preproc_ok=:
17541break
17542fi
cristyda16f162011-02-19 23:52:17 +000017543rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017544
17545done
17546# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017547rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017548if $ac_preproc_ok; then :
17549 break
17550fi
17551
17552 done
17553 ac_cv_prog_CXXCPP=$CXXCPP
17554
17555fi
17556 CXXCPP=$ac_cv_prog_CXXCPP
17557else
17558 ac_cv_prog_CXXCPP=$CXXCPP
17559fi
17560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17561$as_echo "$CXXCPP" >&6; }
17562ac_preproc_ok=false
17563for ac_cxx_preproc_warn_flag in '' yes
17564do
17565 # Use a header file that comes with gcc, so configuring glibc
17566 # with a fresh cross-compiler works.
17567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17568 # <limits.h> exists even on freestanding compilers.
17569 # On the NeXT, cc -E runs the code through the compiler's parser,
17570 # not just through cpp. "Syntax error" is here to catch this case.
17571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17572/* end confdefs.h. */
17573#ifdef __STDC__
17574# include <limits.h>
17575#else
17576# include <assert.h>
17577#endif
17578 Syntax error
17579_ACEOF
17580if ac_fn_cxx_try_cpp "$LINENO"; then :
17581
17582else
17583 # Broken: fails on valid input.
17584continue
17585fi
cristyda16f162011-02-19 23:52:17 +000017586rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017587
17588 # OK, works on sane cases. Now check whether nonexistent headers
17589 # can be detected and how.
17590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17591/* end confdefs.h. */
17592#include <ac_nonexistent.h>
17593_ACEOF
17594if ac_fn_cxx_try_cpp "$LINENO"; then :
17595 # Broken: success on invalid input.
17596continue
17597else
17598 # Passes both tests.
17599ac_preproc_ok=:
17600break
17601fi
cristyda16f162011-02-19 23:52:17 +000017602rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017603
17604done
17605# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017606rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017607if $ac_preproc_ok; then :
17608
17609else
17610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17612as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17613See \`config.log' for more details" "$LINENO" 5; }
17614fi
17615
17616ac_ext=c
17617ac_cpp='$CPP $CPPFLAGS'
17618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17620ac_compiler_gnu=$ac_cv_c_compiler_gnu
17621
17622else
17623 _lt_caught_CXX_error=yes
17624fi
cristy73bd4a52010-10-05 11:24:23 +000017625
17626ac_ext=cpp
17627ac_cpp='$CXXCPP $CPPFLAGS'
17628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17631
17632archive_cmds_need_lc_CXX=no
17633allow_undefined_flag_CXX=
17634always_export_symbols_CXX=no
17635archive_expsym_cmds_CXX=
17636compiler_needs_object_CXX=no
17637export_dynamic_flag_spec_CXX=
17638hardcode_direct_CXX=no
17639hardcode_direct_absolute_CXX=no
17640hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017641hardcode_libdir_separator_CXX=
17642hardcode_minus_L_CXX=no
17643hardcode_shlibpath_var_CXX=unsupported
17644hardcode_automatic_CXX=no
17645inherit_rpath_CXX=no
17646module_cmds_CXX=
17647module_expsym_cmds_CXX=
17648link_all_deplibs_CXX=unknown
17649old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017650reload_flag_CXX=$reload_flag
17651reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017652no_undefined_flag_CXX=
17653whole_archive_flag_spec_CXX=
17654enable_shared_with_static_runtimes_CXX=no
17655
17656# Source file extension for C++ test sources.
17657ac_ext=cpp
17658
17659# Object file extension for compiled C++ test sources.
17660objext=o
17661objext_CXX=$objext
17662
17663# No sense in running all these tests if we already determined that
17664# the CXX compiler isn't working. Some variables (like enable_shared)
17665# are currently assumed to apply to all compilers on this platform,
17666# and will be corrupted by setting them based on a non-working compiler.
17667if test "$_lt_caught_CXX_error" != yes; then
17668 # Code to be used in simple compile tests
17669 lt_simple_compile_test_code="int some_variable = 0;"
17670
17671 # Code to be used in simple link tests
17672 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17673
17674 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17675
17676
17677
17678
17679
17680
17681# If no C compiler was specified, use CC.
17682LTCC=${LTCC-"$CC"}
17683
17684# If no C compiler flags were specified, use CFLAGS.
17685LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17686
17687# Allow CC to be a program name with arguments.
17688compiler=$CC
17689
17690
17691 # save warnings/boilerplate of simple test code
17692 ac_outfile=conftest.$ac_objext
17693echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17694eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17695_lt_compiler_boilerplate=`cat conftest.err`
17696$RM conftest*
17697
17698 ac_outfile=conftest.$ac_objext
17699echo "$lt_simple_link_test_code" >conftest.$ac_ext
17700eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17701_lt_linker_boilerplate=`cat conftest.err`
17702$RM -r conftest*
17703
17704
17705 # Allow CC to be a program name with arguments.
17706 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017707 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017708 lt_save_LD=$LD
17709 lt_save_GCC=$GCC
17710 GCC=$GXX
17711 lt_save_with_gnu_ld=$with_gnu_ld
17712 lt_save_path_LD=$lt_cv_path_LD
17713 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17714 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17715 else
17716 $as_unset lt_cv_prog_gnu_ld
17717 fi
17718 if test -n "${lt_cv_path_LDCXX+set}"; then
17719 lt_cv_path_LD=$lt_cv_path_LDCXX
17720 else
17721 $as_unset lt_cv_path_LD
17722 fi
17723 test -z "${LDCXX+set}" || LD=$LDCXX
17724 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017725 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017726 compiler=$CC
17727 compiler_CXX=$CC
17728 for cc_temp in $compiler""; do
17729 case $cc_temp in
17730 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17731 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17732 \-*) ;;
17733 *) break;;
17734 esac
17735done
cristy0c60a692010-11-04 01:09:47 +000017736cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017737
17738
17739 if test -n "$compiler"; then
17740 # We don't want -fno-exception when compiling C++ code, so set the
17741 # no_builtin_flag separately
17742 if test "$GXX" = yes; then
17743 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17744 else
17745 lt_prog_compiler_no_builtin_flag_CXX=
17746 fi
17747
17748 if test "$GXX" = yes; then
17749 # Set up default GNU C++ configuration
17750
17751
17752
17753# Check whether --with-gnu-ld was given.
17754if test "${with_gnu_ld+set}" = set; then :
17755 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17756else
17757 with_gnu_ld=no
17758fi
17759
17760ac_prog=ld
17761if test "$GCC" = yes; then
17762 # Check if gcc -print-prog-name=ld gives a path.
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17764$as_echo_n "checking for ld used by $CC... " >&6; }
17765 case $host in
17766 *-*-mingw*)
17767 # gcc leaves a trailing carriage return which upsets mingw
17768 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17769 *)
17770 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17771 esac
17772 case $ac_prog in
17773 # Accept absolute paths.
17774 [\\/]* | ?:[\\/]*)
17775 re_direlt='/[^/][^/]*/\.\./'
17776 # Canonicalize the pathname of ld
17777 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17778 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17779 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17780 done
17781 test -z "$LD" && LD="$ac_prog"
17782 ;;
17783 "")
17784 # If it fails, then pretend we aren't using GCC.
17785 ac_prog=ld
17786 ;;
17787 *)
17788 # If it is relative, then search for the first ld in PATH.
17789 with_gnu_ld=unknown
17790 ;;
17791 esac
17792elif test "$with_gnu_ld" = yes; then
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17794$as_echo_n "checking for GNU ld... " >&6; }
17795else
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17797$as_echo_n "checking for non-GNU ld... " >&6; }
17798fi
cristyda16f162011-02-19 23:52:17 +000017799if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017800 $as_echo_n "(cached) " >&6
17801else
17802 if test -z "$LD"; then
17803 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17804 for ac_dir in $PATH; do
17805 IFS="$lt_save_ifs"
17806 test -z "$ac_dir" && ac_dir=.
17807 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17808 lt_cv_path_LD="$ac_dir/$ac_prog"
17809 # Check to see if the program is GNU ld. I'd rather use --version,
17810 # but apparently some variants of GNU ld only accept -v.
17811 # Break only if it was the GNU/non-GNU ld that we prefer.
17812 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17813 *GNU* | *'with BFD'*)
17814 test "$with_gnu_ld" != no && break
17815 ;;
17816 *)
17817 test "$with_gnu_ld" != yes && break
17818 ;;
17819 esac
17820 fi
17821 done
17822 IFS="$lt_save_ifs"
17823else
17824 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17825fi
17826fi
17827
17828LD="$lt_cv_path_LD"
17829if test -n "$LD"; then
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17831$as_echo "$LD" >&6; }
17832else
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17834$as_echo "no" >&6; }
17835fi
cristy98dddb52010-11-04 00:30:15 +000017836test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17838$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017839if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017840 $as_echo_n "(cached) " >&6
17841else
17842 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17843case `$LD -v 2>&1 </dev/null` in
17844*GNU* | *'with BFD'*)
17845 lt_cv_prog_gnu_ld=yes
17846 ;;
17847*)
17848 lt_cv_prog_gnu_ld=no
17849 ;;
17850esac
17851fi
17852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17853$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17854with_gnu_ld=$lt_cv_prog_gnu_ld
17855
17856
17857
17858
17859
17860
17861
17862 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17863 # archiving commands below assume that GNU ld is being used.
17864 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017865 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17866 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 +000017867
17868 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17869 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17870
17871 # If archive_cmds runs LD, not CC, wlarc should be empty
17872 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17873 # investigate it a little bit more. (MM)
17874 wlarc='${wl}'
17875
17876 # ancient GNU ld didn't support --whole-archive et. al.
17877 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17878 $GREP 'no-whole-archive' > /dev/null; then
17879 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17880 else
17881 whole_archive_flag_spec_CXX=
17882 fi
17883 else
17884 with_gnu_ld=no
17885 wlarc=
17886
17887 # A generic and very simple default shared library creation
17888 # command for GNU C++ for the case where it uses the native
17889 # linker, instead of GNU ld. If possible, this setting should
17890 # overridden to take advantage of the native linker features on
17891 # the platform it is being used on.
17892 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17893 fi
17894
17895 # Commands to make compiler produce verbose output that lists
17896 # what "hidden" libraries, object files and flags are used when
17897 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017898 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017899
17900 else
17901 GXX=no
17902 with_gnu_ld=no
17903 wlarc=
17904 fi
17905
17906 # PORTME: fill in a description of your system's C++ link characteristics
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17908$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17909 ld_shlibs_CXX=yes
17910 case $host_os in
17911 aix3*)
17912 # FIXME: insert proper C++ library support
17913 ld_shlibs_CXX=no
17914 ;;
17915 aix[4-9]*)
17916 if test "$host_cpu" = ia64; then
17917 # On IA64, the linker does run time linking by default, so we don't
17918 # have to do anything special.
17919 aix_use_runtimelinking=no
17920 exp_sym_flag='-Bexport'
17921 no_entry_flag=""
17922 else
17923 aix_use_runtimelinking=no
17924
17925 # Test if we are trying to use run time linking or normal
17926 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17927 # need to do runtime linking.
17928 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17929 for ld_flag in $LDFLAGS; do
17930 case $ld_flag in
17931 *-brtl*)
17932 aix_use_runtimelinking=yes
17933 break
17934 ;;
17935 esac
17936 done
17937 ;;
17938 esac
17939
17940 exp_sym_flag='-bexport'
17941 no_entry_flag='-bnoentry'
17942 fi
17943
17944 # When large executables or shared objects are built, AIX ld can
17945 # have problems creating the table of contents. If linking a library
17946 # or program results in "error TOC overflow" add -mminimal-toc to
17947 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17948 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17949
17950 archive_cmds_CXX=''
17951 hardcode_direct_CXX=yes
17952 hardcode_direct_absolute_CXX=yes
17953 hardcode_libdir_separator_CXX=':'
17954 link_all_deplibs_CXX=yes
17955 file_list_spec_CXX='${wl}-f,'
17956
17957 if test "$GXX" = yes; then
17958 case $host_os in aix4.[012]|aix4.[012].*)
17959 # We only want to do this on AIX 4.2 and lower, the check
17960 # below for broken collect2 doesn't work under 4.3+
17961 collect2name=`${CC} -print-prog-name=collect2`
17962 if test -f "$collect2name" &&
17963 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17964 then
17965 # We have reworked collect2
17966 :
17967 else
17968 # We have old collect2
17969 hardcode_direct_CXX=unsupported
17970 # It fails to find uninstalled libraries when the uninstalled
17971 # path is not listed in the libpath. Setting hardcode_minus_L
17972 # to unsupported forces relinking
17973 hardcode_minus_L_CXX=yes
17974 hardcode_libdir_flag_spec_CXX='-L$libdir'
17975 hardcode_libdir_separator_CXX=
17976 fi
17977 esac
17978 shared_flag='-shared'
17979 if test "$aix_use_runtimelinking" = yes; then
17980 shared_flag="$shared_flag "'${wl}-G'
17981 fi
17982 else
17983 # not using gcc
17984 if test "$host_cpu" = ia64; then
17985 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17986 # chokes on -Wl,-G. The following line is correct:
17987 shared_flag='-G'
17988 else
17989 if test "$aix_use_runtimelinking" = yes; then
17990 shared_flag='${wl}-G'
17991 else
17992 shared_flag='${wl}-bM:SRE'
17993 fi
17994 fi
17995 fi
17996
17997 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17998 # It seems that -bexpall does not export symbols beginning with
17999 # underscore (_), so it is better to generate a list of symbols to
18000 # export.
18001 always_export_symbols_CXX=yes
18002 if test "$aix_use_runtimelinking" = yes; then
18003 # Warning - without using the other runtime loading flags (-brtl),
18004 # -berok will link without error, but may produce a broken library.
18005 allow_undefined_flag_CXX='-berok'
18006 # Determine the default libpath from the value encoded in an empty
18007 # executable.
cristyda16f162011-02-19 23:52:17 +000018008 if test "${lt_cv_aix_libpath+set}" = set; then
18009 aix_libpath=$lt_cv_aix_libpath
18010else
18011 if ${lt_cv_aix_libpath__CXX+:} false; then :
18012 $as_echo_n "(cached) " >&6
18013else
18014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018015/* end confdefs.h. */
18016
18017int
18018main ()
18019{
18020
18021 ;
18022 return 0;
18023}
18024_ACEOF
18025if ac_fn_cxx_try_link "$LINENO"; then :
18026
cristyda16f162011-02-19 23:52:17 +000018027 lt_aix_libpath_sed='
18028 /Import File Strings/,/^$/ {
18029 /^0/ {
18030 s/^0 *\([^ ]*\) *$/\1/
18031 p
18032 }
18033 }'
18034 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18035 # Check for a 64-bit object if we didn't find anything.
18036 if test -z "$lt_cv_aix_libpath__CXX"; then
18037 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18038 fi
cristy73bd4a52010-10-05 11:24:23 +000018039fi
18040rm -f core conftest.err conftest.$ac_objext \
18041 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018042 if test -z "$lt_cv_aix_libpath__CXX"; then
18043 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18044 fi
18045
18046fi
18047
18048 aix_libpath=$lt_cv_aix_libpath__CXX
18049fi
cristy73bd4a52010-10-05 11:24:23 +000018050
18051 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18052
cristy0c60a692010-11-04 01:09:47 +000018053 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 +000018054 else
18055 if test "$host_cpu" = ia64; then
18056 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18057 allow_undefined_flag_CXX="-z nodefs"
18058 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"
18059 else
18060 # Determine the default libpath from the value encoded in an
18061 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018062 if test "${lt_cv_aix_libpath+set}" = set; then
18063 aix_libpath=$lt_cv_aix_libpath
18064else
18065 if ${lt_cv_aix_libpath__CXX+:} false; then :
18066 $as_echo_n "(cached) " >&6
18067else
18068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018069/* end confdefs.h. */
18070
18071int
18072main ()
18073{
18074
18075 ;
18076 return 0;
18077}
18078_ACEOF
18079if ac_fn_cxx_try_link "$LINENO"; then :
18080
cristyda16f162011-02-19 23:52:17 +000018081 lt_aix_libpath_sed='
18082 /Import File Strings/,/^$/ {
18083 /^0/ {
18084 s/^0 *\([^ ]*\) *$/\1/
18085 p
18086 }
18087 }'
18088 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18089 # Check for a 64-bit object if we didn't find anything.
18090 if test -z "$lt_cv_aix_libpath__CXX"; then
18091 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18092 fi
cristy73bd4a52010-10-05 11:24:23 +000018093fi
18094rm -f core conftest.err conftest.$ac_objext \
18095 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018096 if test -z "$lt_cv_aix_libpath__CXX"; then
18097 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18098 fi
18099
18100fi
18101
18102 aix_libpath=$lt_cv_aix_libpath__CXX
18103fi
cristy73bd4a52010-10-05 11:24:23 +000018104
18105 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18106 # Warning - without using the other run time loading flags,
18107 # -berok will link without error, but may produce a broken library.
18108 no_undefined_flag_CXX=' ${wl}-bernotok'
18109 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018110 if test "$with_gnu_ld" = yes; then
18111 # We only use this code for GNU lds that support --whole-archive.
18112 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18113 else
18114 # Exported symbols can be pulled into shared objects from archives
18115 whole_archive_flag_spec_CXX='$convenience'
18116 fi
cristy73bd4a52010-10-05 11:24:23 +000018117 archive_cmds_need_lc_CXX=yes
18118 # This is similar to how AIX traditionally builds its shared
18119 # libraries.
18120 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'
18121 fi
18122 fi
18123 ;;
18124
18125 beos*)
18126 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18127 allow_undefined_flag_CXX=unsupported
18128 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18129 # support --undefined. This deserves some investigation. FIXME
18130 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18131 else
18132 ld_shlibs_CXX=no
18133 fi
18134 ;;
18135
18136 chorus*)
18137 case $cc_basename in
18138 *)
18139 # FIXME: insert proper C++ library support
18140 ld_shlibs_CXX=no
18141 ;;
18142 esac
18143 ;;
18144
18145 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018146 case $GXX,$cc_basename in
18147 ,cl* | no,cl*)
18148 # Native MSVC
18149 # hardcode_libdir_flag_spec is actually meaningless, as there is
18150 # no search path for DLLs.
18151 hardcode_libdir_flag_spec_CXX=' '
18152 allow_undefined_flag_CXX=unsupported
18153 always_export_symbols_CXX=yes
18154 file_list_spec_CXX='@'
18155 # Tell ltmain to make .lib files, not .a files.
18156 libext=lib
18157 # Tell ltmain to make .dll files, not .so files.
18158 shrext_cmds=".dll"
18159 # FIXME: Setting linknames here is a bad hack.
18160 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18161 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18162 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18163 else
18164 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18165 fi~
18166 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18167 linknames='
18168 # The linker will not automatically build a static lib if we build a DLL.
18169 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18170 enable_shared_with_static_runtimes_CXX=yes
18171 # Don't use ranlib
18172 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18173 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18174 lt_tool_outputfile="@TOOL_OUTPUT@"~
18175 case $lt_outputfile in
18176 *.exe|*.EXE) ;;
18177 *)
18178 lt_outputfile="$lt_outputfile.exe"
18179 lt_tool_outputfile="$lt_tool_outputfile.exe"
18180 ;;
18181 esac~
18182 func_to_tool_file "$lt_outputfile"~
18183 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18184 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18185 $RM "$lt_outputfile.manifest";
18186 fi'
18187 ;;
18188 *)
18189 # g++
18190 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18191 # as there is no search path for DLLs.
18192 hardcode_libdir_flag_spec_CXX='-L$libdir'
18193 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18194 allow_undefined_flag_CXX=unsupported
18195 always_export_symbols_CXX=no
18196 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018197
cristyda16f162011-02-19 23:52:17 +000018198 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18199 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'
18200 # If the export-symbols file already is a .def file (1st line
18201 # is EXPORTS), use it as is; otherwise, prepend...
18202 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18203 cp $export_symbols $output_objdir/$soname.def;
18204 else
18205 echo EXPORTS > $output_objdir/$soname.def;
18206 cat $export_symbols >> $output_objdir/$soname.def;
18207 fi~
18208 $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'
18209 else
18210 ld_shlibs_CXX=no
18211 fi
18212 ;;
18213 esac
18214 ;;
cristy73bd4a52010-10-05 11:24:23 +000018215 darwin* | rhapsody*)
18216
18217
18218 archive_cmds_need_lc_CXX=no
18219 hardcode_direct_CXX=no
18220 hardcode_automatic_CXX=yes
18221 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018222 if test "$lt_cv_ld_force_load" = "yes"; then
18223 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 +000018224
cristy0c60a692010-11-04 01:09:47 +000018225 else
18226 whole_archive_flag_spec_CXX=''
18227 fi
cristy73bd4a52010-10-05 11:24:23 +000018228 link_all_deplibs_CXX=yes
18229 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18230 case $cc_basename in
18231 ifort*) _lt_dar_can_shared=yes ;;
18232 *) _lt_dar_can_shared=$GCC ;;
18233 esac
18234 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018235 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018236 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}"
18237 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18238 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}"
18239 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}"
18240 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18241 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}"
18242 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}"
18243 fi
18244
18245 else
18246 ld_shlibs_CXX=no
18247 fi
18248
18249 ;;
18250
18251 dgux*)
18252 case $cc_basename in
18253 ec++*)
18254 # FIXME: insert proper C++ library support
18255 ld_shlibs_CXX=no
18256 ;;
18257 ghcx*)
18258 # Green Hills C++ Compiler
18259 # FIXME: insert proper C++ library support
18260 ld_shlibs_CXX=no
18261 ;;
18262 *)
18263 # FIXME: insert proper C++ library support
18264 ld_shlibs_CXX=no
18265 ;;
18266 esac
18267 ;;
18268
cristy99bd5232011-12-07 14:38:20 +000018269 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018270 # C++ shared libraries reported to be fairly broken before
18271 # switch to ELF
18272 ld_shlibs_CXX=no
18273 ;;
18274
18275 freebsd-elf*)
18276 archive_cmds_need_lc_CXX=no
18277 ;;
18278
18279 freebsd* | dragonfly*)
18280 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18281 # conventions
18282 ld_shlibs_CXX=yes
18283 ;;
18284
18285 gnu*)
18286 ;;
18287
cristy0c60a692010-11-04 01:09:47 +000018288 haiku*)
18289 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18290 link_all_deplibs_CXX=yes
18291 ;;
18292
cristy73bd4a52010-10-05 11:24:23 +000018293 hpux9*)
18294 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18295 hardcode_libdir_separator_CXX=:
18296 export_dynamic_flag_spec_CXX='${wl}-E'
18297 hardcode_direct_CXX=yes
18298 hardcode_minus_L_CXX=yes # Not in the search PATH,
18299 # but as the default
18300 # location of the library.
18301
18302 case $cc_basename in
18303 CC*)
18304 # FIXME: insert proper C++ library support
18305 ld_shlibs_CXX=no
18306 ;;
18307 aCC*)
18308 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'
18309 # Commands to make compiler produce verbose output that lists
18310 # what "hidden" libraries, object files and flags are used when
18311 # linking a shared library.
18312 #
18313 # There doesn't appear to be a way to prevent this compiler from
18314 # explicitly linking system object files so we need to strip them
18315 # from the output so that they don't get included in the library
18316 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018317 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 +000018318 ;;
18319 *)
18320 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018321 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 +000018322 else
18323 # FIXME: insert proper C++ library support
18324 ld_shlibs_CXX=no
18325 fi
18326 ;;
18327 esac
18328 ;;
18329
18330 hpux10*|hpux11*)
18331 if test $with_gnu_ld = no; then
18332 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18333 hardcode_libdir_separator_CXX=:
18334
18335 case $host_cpu in
18336 hppa*64*|ia64*)
18337 ;;
18338 *)
18339 export_dynamic_flag_spec_CXX='${wl}-E'
18340 ;;
18341 esac
18342 fi
18343 case $host_cpu in
18344 hppa*64*|ia64*)
18345 hardcode_direct_CXX=no
18346 hardcode_shlibpath_var_CXX=no
18347 ;;
18348 *)
18349 hardcode_direct_CXX=yes
18350 hardcode_direct_absolute_CXX=yes
18351 hardcode_minus_L_CXX=yes # Not in the search PATH,
18352 # but as the default
18353 # location of the library.
18354 ;;
18355 esac
18356
18357 case $cc_basename in
18358 CC*)
18359 # FIXME: insert proper C++ library support
18360 ld_shlibs_CXX=no
18361 ;;
18362 aCC*)
18363 case $host_cpu in
18364 hppa*64*)
18365 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18366 ;;
18367 ia64*)
18368 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18369 ;;
18370 *)
18371 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18372 ;;
18373 esac
18374 # Commands to make compiler produce verbose output that lists
18375 # what "hidden" libraries, object files and flags are used when
18376 # linking a shared library.
18377 #
18378 # There doesn't appear to be a way to prevent this compiler from
18379 # explicitly linking system object files so we need to strip them
18380 # from the output so that they don't get included in the library
18381 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018382 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 +000018383 ;;
18384 *)
18385 if test "$GXX" = yes; then
18386 if test $with_gnu_ld = no; then
18387 case $host_cpu in
18388 hppa*64*)
18389 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18390 ;;
18391 ia64*)
cristyda16f162011-02-19 23:52:17 +000018392 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 +000018393 ;;
18394 *)
cristyda16f162011-02-19 23:52:17 +000018395 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 +000018396 ;;
18397 esac
18398 fi
18399 else
18400 # FIXME: insert proper C++ library support
18401 ld_shlibs_CXX=no
18402 fi
18403 ;;
18404 esac
18405 ;;
18406
18407 interix[3-9]*)
18408 hardcode_direct_CXX=no
18409 hardcode_shlibpath_var_CXX=no
18410 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18411 export_dynamic_flag_spec_CXX='${wl}-E'
18412 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18413 # Instead, shared libraries are loaded at an image base (0x10000000 by
18414 # default) and relocated if they conflict, which is a slow very memory
18415 # consuming and fragmenting process. To avoid this, we pick a random,
18416 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18417 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18418 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'
18419 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'
18420 ;;
18421 irix5* | irix6*)
18422 case $cc_basename in
18423 CC*)
18424 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018425 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 +000018426
18427 # Archives containing C++ object files must be created using
18428 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18429 # necessary to make sure instantiated templates are included
18430 # in the archive.
18431 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18432 ;;
18433 *)
18434 if test "$GXX" = yes; then
18435 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018436 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 +000018437 else
cristyda16f162011-02-19 23:52:17 +000018438 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 +000018439 fi
18440 fi
18441 link_all_deplibs_CXX=yes
18442 ;;
18443 esac
18444 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18445 hardcode_libdir_separator_CXX=:
18446 inherit_rpath_CXX=yes
18447 ;;
18448
cristy0c60a692010-11-04 01:09:47 +000018449 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018450 case $cc_basename in
18451 KCC*)
18452 # Kuck and Associates, Inc. (KAI) C++ Compiler
18453
18454 # KCC will only create a shared library if the output file
18455 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18456 # to its proper name (with version) after linking.
18457 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'
18458 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'
18459 # Commands to make compiler produce verbose output that lists
18460 # what "hidden" libraries, object files and flags are used when
18461 # linking a shared library.
18462 #
18463 # There doesn't appear to be a way to prevent this compiler from
18464 # explicitly linking system object files so we need to strip them
18465 # from the output so that they don't get included in the library
18466 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018467 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 +000018468
18469 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18470 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18471
18472 # Archives containing C++ object files must be created using
18473 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18474 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18475 ;;
18476 icpc* | ecpc* )
18477 # Intel C++
18478 with_gnu_ld=yes
18479 # version 8.0 and above of icpc choke on multiply defined symbols
18480 # if we add $predep_objects and $postdep_objects, however 7.1 and
18481 # earlier do not add the objects themselves.
18482 case `$CC -V 2>&1` in
18483 *"Version 7."*)
18484 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18485 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'
18486 ;;
18487 *) # Version 8.0 or newer
18488 tmp_idyn=
18489 case $host_cpu in
18490 ia64*) tmp_idyn=' -i_dynamic';;
18491 esac
18492 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18493 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'
18494 ;;
18495 esac
18496 archive_cmds_need_lc_CXX=no
18497 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18498 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18499 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18500 ;;
18501 pgCC* | pgcpp*)
18502 # Portland Group C++ compiler
18503 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018504 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018505 prelink_cmds_CXX='tpldir=Template.dir~
18506 rm -rf $tpldir~
18507 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018508 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018509 old_archive_cmds_CXX='tpldir=Template.dir~
18510 rm -rf $tpldir~
18511 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018512 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018513 $RANLIB $oldlib'
18514 archive_cmds_CXX='tpldir=Template.dir~
18515 rm -rf $tpldir~
18516 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018517 $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 +000018518 archive_expsym_cmds_CXX='tpldir=Template.dir~
18519 rm -rf $tpldir~
18520 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018521 $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 +000018522 ;;
cristy0c60a692010-11-04 01:09:47 +000018523 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018524 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18525 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'
18526 ;;
18527 esac
18528
18529 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18530 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018531 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 +000018532 ;;
18533 cxx*)
18534 # Compaq C++
18535 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18536 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'
18537
18538 runpath_var=LD_RUN_PATH
18539 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18540 hardcode_libdir_separator_CXX=:
18541
18542 # Commands to make compiler produce verbose output that lists
18543 # what "hidden" libraries, object files and flags are used when
18544 # linking a shared library.
18545 #
18546 # There doesn't appear to be a way to prevent this compiler from
18547 # explicitly linking system object files so we need to strip them
18548 # from the output so that they don't get included in the library
18549 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018550 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 +000018551 ;;
cristy0c60a692010-11-04 01:09:47 +000018552 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018553 # IBM XL 8.0 on PPC, with GNU ld
18554 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18555 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18556 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18557 if test "x$supports_anon_versioning" = xyes; then
18558 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18559 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18560 echo "local: *; };" >> $output_objdir/$libname.ver~
18561 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18562 fi
18563 ;;
18564 *)
18565 case `$CC -V 2>&1 | sed 5q` in
18566 *Sun\ C*)
18567 # Sun C++ 5.9
18568 no_undefined_flag_CXX=' -zdefs'
18569 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18570 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'
18571 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018572 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 +000018573 compiler_needs_object_CXX=yes
18574
18575 # Not sure whether something based on
18576 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18577 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018578 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018579
18580 # Archives containing C++ object files must be created using
18581 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18582 # necessary to make sure instantiated templates are included
18583 # in the archive.
18584 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18585 ;;
18586 esac
18587 ;;
18588 esac
18589 ;;
18590
18591 lynxos*)
18592 # FIXME: insert proper C++ library support
18593 ld_shlibs_CXX=no
18594 ;;
18595
18596 m88k*)
18597 # FIXME: insert proper C++ library support
18598 ld_shlibs_CXX=no
18599 ;;
18600
18601 mvs*)
18602 case $cc_basename in
18603 cxx*)
18604 # FIXME: insert proper C++ library support
18605 ld_shlibs_CXX=no
18606 ;;
18607 *)
18608 # FIXME: insert proper C++ library support
18609 ld_shlibs_CXX=no
18610 ;;
18611 esac
18612 ;;
18613
18614 netbsd*)
18615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18616 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18617 wlarc=
18618 hardcode_libdir_flag_spec_CXX='-R$libdir'
18619 hardcode_direct_CXX=yes
18620 hardcode_shlibpath_var_CXX=no
18621 fi
18622 # Workaround some broken pre-1.5 toolchains
18623 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18624 ;;
18625
18626 *nto* | *qnx*)
18627 ld_shlibs_CXX=yes
18628 ;;
18629
18630 openbsd2*)
18631 # C++ shared libraries are fairly broken
18632 ld_shlibs_CXX=no
18633 ;;
18634
18635 openbsd*)
18636 if test -f /usr/libexec/ld.so; then
18637 hardcode_direct_CXX=yes
18638 hardcode_shlibpath_var_CXX=no
18639 hardcode_direct_absolute_CXX=yes
18640 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18641 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18642 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18643 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18644 export_dynamic_flag_spec_CXX='${wl}-E'
18645 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18646 fi
cristy0c60a692010-11-04 01:09:47 +000018647 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018648 else
18649 ld_shlibs_CXX=no
18650 fi
18651 ;;
18652
18653 osf3* | osf4* | osf5*)
18654 case $cc_basename in
18655 KCC*)
18656 # Kuck and Associates, Inc. (KAI) C++ Compiler
18657
18658 # KCC will only create a shared library if the output file
18659 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18660 # to its proper name (with version) after linking.
18661 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'
18662
18663 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18664 hardcode_libdir_separator_CXX=:
18665
18666 # Archives containing C++ object files must be created using
18667 # the KAI C++ compiler.
18668 case $host in
18669 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18670 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18671 esac
18672 ;;
18673 RCC*)
18674 # Rational C++ 2.4.1
18675 # FIXME: insert proper C++ library support
18676 ld_shlibs_CXX=no
18677 ;;
18678 cxx*)
18679 case $host in
18680 osf3*)
18681 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018682 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 +000018683 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18684 ;;
18685 *)
18686 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018687 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 +000018688 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18689 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018690 $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 +000018691 $RM $lib.exp'
18692 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18693 ;;
18694 esac
18695
18696 hardcode_libdir_separator_CXX=:
18697
18698 # Commands to make compiler produce verbose output that lists
18699 # what "hidden" libraries, object files and flags are used when
18700 # linking a shared library.
18701 #
18702 # There doesn't appear to be a way to prevent this compiler from
18703 # explicitly linking system object files so we need to strip them
18704 # from the output so that they don't get included in the library
18705 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018706 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 +000018707 ;;
18708 *)
18709 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18710 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18711 case $host in
18712 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018713 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 +000018714 ;;
18715 *)
cristyda16f162011-02-19 23:52:17 +000018716 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 +000018717 ;;
18718 esac
18719
18720 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18721 hardcode_libdir_separator_CXX=:
18722
18723 # Commands to make compiler produce verbose output that lists
18724 # what "hidden" libraries, object files and flags are used when
18725 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018726 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018727
18728 else
18729 # FIXME: insert proper C++ library support
18730 ld_shlibs_CXX=no
18731 fi
18732 ;;
18733 esac
18734 ;;
18735
18736 psos*)
18737 # FIXME: insert proper C++ library support
18738 ld_shlibs_CXX=no
18739 ;;
18740
18741 sunos4*)
18742 case $cc_basename in
18743 CC*)
18744 # Sun C++ 4.x
18745 # FIXME: insert proper C++ library support
18746 ld_shlibs_CXX=no
18747 ;;
18748 lcc*)
18749 # Lucid
18750 # FIXME: insert proper C++ library support
18751 ld_shlibs_CXX=no
18752 ;;
18753 *)
18754 # FIXME: insert proper C++ library support
18755 ld_shlibs_CXX=no
18756 ;;
18757 esac
18758 ;;
18759
18760 solaris*)
18761 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018762 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018763 # Sun C++ 4.2, 5.x and Centerline C++
18764 archive_cmds_need_lc_CXX=yes
18765 no_undefined_flag_CXX=' -zdefs'
18766 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18767 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18768 $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'
18769
18770 hardcode_libdir_flag_spec_CXX='-R$libdir'
18771 hardcode_shlibpath_var_CXX=no
18772 case $host_os in
18773 solaris2.[0-5] | solaris2.[0-5].*) ;;
18774 *)
18775 # The compiler driver will combine and reorder linker options,
18776 # but understands `-z linker_flag'.
18777 # Supported since Solaris 2.6 (maybe 2.5.1?)
18778 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18779 ;;
18780 esac
18781 link_all_deplibs_CXX=yes
18782
cristy0c60a692010-11-04 01:09:47 +000018783 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018784
18785 # Archives containing C++ object files must be created using
18786 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18787 # necessary to make sure instantiated templates are included
18788 # in the archive.
18789 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18790 ;;
18791 gcx*)
18792 # Green Hills C++ Compiler
18793 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18794
18795 # The C++ compiler must be used to create the archive.
18796 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18797 ;;
18798 *)
18799 # GNU C++ compiler with Solaris linker
18800 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18801 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18802 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018803 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 +000018804 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 +000018805 $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 +000018806
18807 # Commands to make compiler produce verbose output that lists
18808 # what "hidden" libraries, object files and flags are used when
18809 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018810 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018811 else
18812 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18813 # platform.
18814 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18815 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18816 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18817
18818 # Commands to make compiler produce verbose output that lists
18819 # what "hidden" libraries, object files and flags are used when
18820 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018821 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018822 fi
18823
18824 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18825 case $host_os in
18826 solaris2.[0-5] | solaris2.[0-5].*) ;;
18827 *)
18828 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18829 ;;
18830 esac
18831 fi
18832 ;;
18833 esac
18834 ;;
18835
18836 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18837 no_undefined_flag_CXX='${wl}-z,text'
18838 archive_cmds_need_lc_CXX=no
18839 hardcode_shlibpath_var_CXX=no
18840 runpath_var='LD_RUN_PATH'
18841
18842 case $cc_basename in
18843 CC*)
18844 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18845 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18846 ;;
18847 *)
18848 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18849 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18850 ;;
18851 esac
18852 ;;
18853
18854 sysv5* | sco3.2v5* | sco5v6*)
18855 # Note: We can NOT use -z defs as we might desire, because we do not
18856 # link with -lc, and that would cause any symbols used from libc to
18857 # always be unresolved, which means just about no library would
18858 # ever link correctly. If we're not using GNU ld we use -z text
18859 # though, which does catch some bad symbols but isn't as heavy-handed
18860 # as -z defs.
18861 no_undefined_flag_CXX='${wl}-z,text'
18862 allow_undefined_flag_CXX='${wl}-z,nodefs'
18863 archive_cmds_need_lc_CXX=no
18864 hardcode_shlibpath_var_CXX=no
18865 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18866 hardcode_libdir_separator_CXX=':'
18867 link_all_deplibs_CXX=yes
18868 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18869 runpath_var='LD_RUN_PATH'
18870
18871 case $cc_basename in
18872 CC*)
18873 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18874 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 +000018875 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18876 '"$old_archive_cmds_CXX"
18877 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18878 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018879 ;;
18880 *)
18881 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18882 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18883 ;;
18884 esac
18885 ;;
18886
18887 tandem*)
18888 case $cc_basename in
18889 NCC*)
18890 # NonStop-UX NCC 3.20
18891 # FIXME: insert proper C++ library support
18892 ld_shlibs_CXX=no
18893 ;;
18894 *)
18895 # FIXME: insert proper C++ library support
18896 ld_shlibs_CXX=no
18897 ;;
18898 esac
18899 ;;
18900
18901 vxworks*)
18902 # FIXME: insert proper C++ library support
18903 ld_shlibs_CXX=no
18904 ;;
18905
18906 *)
18907 # FIXME: insert proper C++ library support
18908 ld_shlibs_CXX=no
18909 ;;
18910 esac
18911
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18913$as_echo "$ld_shlibs_CXX" >&6; }
18914 test "$ld_shlibs_CXX" = no && can_build_shared=no
18915
18916 GCC_CXX="$GXX"
18917 LD_CXX="$LD"
18918
18919 ## CAVEAT EMPTOR:
18920 ## There is no encapsulation within the following macros, do not change
18921 ## the running order or otherwise move them around unless you know exactly
18922 ## what you are doing...
18923 # Dependencies to place before and after the object being linked:
18924predep_objects_CXX=
18925postdep_objects_CXX=
18926predeps_CXX=
18927postdeps_CXX=
18928compiler_lib_search_path_CXX=
18929
18930cat > conftest.$ac_ext <<_LT_EOF
18931class Foo
18932{
18933public:
18934 Foo (void) { a = 0; }
18935private:
18936 int a;
18937};
18938_LT_EOF
18939
cristyda16f162011-02-19 23:52:17 +000018940
18941_lt_libdeps_save_CFLAGS=$CFLAGS
18942case "$CC $CFLAGS " in #(
18943*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18944*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018945*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018946esac
18947
cristy73bd4a52010-10-05 11:24:23 +000018948if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18949 (eval $ac_compile) 2>&5
18950 ac_status=$?
18951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18952 test $ac_status = 0; }; then
18953 # Parse the compiler output and extract the necessary
18954 # objects, libraries and library flags.
18955
18956 # Sentinel used to keep track of whether or not we are before
18957 # the conftest object file.
18958 pre_test_object_deps_done=no
18959
18960 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018961 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018962
18963 -L* | -R* | -l*)
18964 # Some compilers place space between "-{L,R}" and the path.
18965 # Remove the space.
18966 if test $p = "-L" ||
18967 test $p = "-R"; then
18968 prev=$p
18969 continue
cristy73bd4a52010-10-05 11:24:23 +000018970 fi
18971
cristyda16f162011-02-19 23:52:17 +000018972 # Expand the sysroot to ease extracting the directories later.
18973 if test -z "$prev"; then
18974 case $p in
18975 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18976 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18977 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18978 esac
18979 fi
18980 case $p in
18981 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18982 esac
cristy73bd4a52010-10-05 11:24:23 +000018983 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018984 case ${prev} in
18985 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018986 # Internal compiler library paths should come after those
18987 # provided the user. The postdeps already come after the
18988 # user supplied libs so there is no need to process them.
18989 if test -z "$compiler_lib_search_path_CXX"; then
18990 compiler_lib_search_path_CXX="${prev}${p}"
18991 else
18992 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18993 fi
18994 ;;
18995 # The "-l" case would never come before the object being
18996 # linked, so don't bother handling this case.
18997 esac
18998 else
18999 if test -z "$postdeps_CXX"; then
19000 postdeps_CXX="${prev}${p}"
19001 else
19002 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19003 fi
19004 fi
cristyda16f162011-02-19 23:52:17 +000019005 prev=
cristy73bd4a52010-10-05 11:24:23 +000019006 ;;
19007
cristyda16f162011-02-19 23:52:17 +000019008 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019009 *.$objext)
19010 # This assumes that the test object file only shows up
19011 # once in the compiler output.
19012 if test "$p" = "conftest.$objext"; then
19013 pre_test_object_deps_done=yes
19014 continue
19015 fi
19016
19017 if test "$pre_test_object_deps_done" = no; then
19018 if test -z "$predep_objects_CXX"; then
19019 predep_objects_CXX="$p"
19020 else
19021 predep_objects_CXX="$predep_objects_CXX $p"
19022 fi
19023 else
19024 if test -z "$postdep_objects_CXX"; then
19025 postdep_objects_CXX="$p"
19026 else
19027 postdep_objects_CXX="$postdep_objects_CXX $p"
19028 fi
19029 fi
19030 ;;
19031
19032 *) ;; # Ignore the rest.
19033
19034 esac
19035 done
19036
19037 # Clean up.
19038 rm -f a.out a.exe
19039else
19040 echo "libtool.m4: error: problem compiling CXX test program"
19041fi
19042
19043$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019044CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019045
19046# PORTME: override above test on systems where it is broken
19047case $host_os in
19048interix[3-9]*)
19049 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19050 # hack all around it, let's just trust "g++" to DTRT.
19051 predep_objects_CXX=
19052 postdep_objects_CXX=
19053 postdeps_CXX=
19054 ;;
19055
19056linux*)
19057 case `$CC -V 2>&1 | sed 5q` in
19058 *Sun\ C*)
19059 # Sun C++ 5.9
19060
19061 # The more standards-conforming stlport4 library is
19062 # incompatible with the Cstd library. Avoid specifying
19063 # it if it's in CXXFLAGS. Ignore libCrun as
19064 # -library=stlport4 depends on it.
19065 case " $CXX $CXXFLAGS " in
19066 *" -library=stlport4 "*)
19067 solaris_use_stlport4=yes
19068 ;;
19069 esac
19070
19071 if test "$solaris_use_stlport4" != yes; then
19072 postdeps_CXX='-library=Cstd -library=Crun'
19073 fi
19074 ;;
19075 esac
19076 ;;
19077
19078solaris*)
19079 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019080 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019081 # The more standards-conforming stlport4 library is
19082 # incompatible with the Cstd library. Avoid specifying
19083 # it if it's in CXXFLAGS. Ignore libCrun as
19084 # -library=stlport4 depends on it.
19085 case " $CXX $CXXFLAGS " in
19086 *" -library=stlport4 "*)
19087 solaris_use_stlport4=yes
19088 ;;
19089 esac
19090
19091 # Adding this requires a known-good setup of shared libraries for
19092 # Sun compiler versions before 5.6, else PIC objects from an old
19093 # archive will be linked into the output, leading to subtle bugs.
19094 if test "$solaris_use_stlport4" != yes; then
19095 postdeps_CXX='-library=Cstd -library=Crun'
19096 fi
19097 ;;
19098 esac
19099 ;;
19100esac
19101
19102
19103case " $postdeps_CXX " in
19104*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19105esac
19106 compiler_lib_search_dirs_CXX=
19107if test -n "${compiler_lib_search_path_CXX}"; then
19108 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19109fi
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141 lt_prog_compiler_wl_CXX=
19142lt_prog_compiler_pic_CXX=
19143lt_prog_compiler_static_CXX=
19144
cristy73bd4a52010-10-05 11:24:23 +000019145
19146 # C++ specific cases for pic, static, wl, etc.
19147 if test "$GXX" = yes; then
19148 lt_prog_compiler_wl_CXX='-Wl,'
19149 lt_prog_compiler_static_CXX='-static'
19150
19151 case $host_os in
19152 aix*)
19153 # All AIX code is PIC.
19154 if test "$host_cpu" = ia64; then
19155 # AIX 5 now supports IA64 processor
19156 lt_prog_compiler_static_CXX='-Bstatic'
19157 fi
19158 ;;
19159
19160 amigaos*)
19161 case $host_cpu in
19162 powerpc)
19163 # see comment about AmigaOS4 .so support
19164 lt_prog_compiler_pic_CXX='-fPIC'
19165 ;;
19166 m68k)
19167 # FIXME: we need at least 68020 code to build shared libraries, but
19168 # adding the `-m68020' flag to GCC prevents building anything better,
19169 # like `-m68040'.
19170 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19171 ;;
19172 esac
19173 ;;
19174
19175 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19176 # PIC is the default for these OSes.
19177 ;;
19178 mingw* | cygwin* | os2* | pw32* | cegcc*)
19179 # This hack is so that the source file can tell whether it is being
19180 # built for inclusion in a dll (and should export symbols for example).
19181 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19182 # (--disable-auto-import) libraries
19183 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19184 ;;
19185 darwin* | rhapsody*)
19186 # PIC is the default on this platform
19187 # Common symbols not allowed in MH_DYLIB files
19188 lt_prog_compiler_pic_CXX='-fno-common'
19189 ;;
19190 *djgpp*)
19191 # DJGPP does not support shared libraries at all
19192 lt_prog_compiler_pic_CXX=
19193 ;;
cristy0c60a692010-11-04 01:09:47 +000019194 haiku*)
19195 # PIC is the default for Haiku.
19196 # The "-static" flag exists, but is broken.
19197 lt_prog_compiler_static_CXX=
19198 ;;
cristy73bd4a52010-10-05 11:24:23 +000019199 interix[3-9]*)
19200 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19201 # Instead, we relocate shared libraries at runtime.
19202 ;;
19203 sysv4*MP*)
19204 if test -d /usr/nec; then
19205 lt_prog_compiler_pic_CXX=-Kconform_pic
19206 fi
19207 ;;
19208 hpux*)
19209 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19210 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19211 # sets the default TLS model and affects inlining.
19212 case $host_cpu in
19213 hppa*64*)
19214 ;;
19215 *)
19216 lt_prog_compiler_pic_CXX='-fPIC'
19217 ;;
19218 esac
19219 ;;
19220 *qnx* | *nto*)
19221 # QNX uses GNU C++, but need to define -shared option too, otherwise
19222 # it will coredump.
19223 lt_prog_compiler_pic_CXX='-fPIC -shared'
19224 ;;
19225 *)
19226 lt_prog_compiler_pic_CXX='-fPIC'
19227 ;;
19228 esac
19229 else
19230 case $host_os in
19231 aix[4-9]*)
19232 # All AIX code is PIC.
19233 if test "$host_cpu" = ia64; then
19234 # AIX 5 now supports IA64 processor
19235 lt_prog_compiler_static_CXX='-Bstatic'
19236 else
19237 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19238 fi
19239 ;;
19240 chorus*)
19241 case $cc_basename in
19242 cxch68*)
19243 # Green Hills C++ Compiler
19244 # _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"
19245 ;;
19246 esac
19247 ;;
cristyda16f162011-02-19 23:52:17 +000019248 mingw* | cygwin* | os2* | pw32* | cegcc*)
19249 # This hack is so that the source file can tell whether it is being
19250 # built for inclusion in a dll (and should export symbols for example).
19251 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19252 ;;
cristy73bd4a52010-10-05 11:24:23 +000019253 dgux*)
19254 case $cc_basename in
19255 ec++*)
19256 lt_prog_compiler_pic_CXX='-KPIC'
19257 ;;
19258 ghcx*)
19259 # Green Hills C++ Compiler
19260 lt_prog_compiler_pic_CXX='-pic'
19261 ;;
19262 *)
19263 ;;
19264 esac
19265 ;;
19266 freebsd* | dragonfly*)
19267 # FreeBSD uses GNU C++
19268 ;;
19269 hpux9* | hpux10* | hpux11*)
19270 case $cc_basename in
19271 CC*)
19272 lt_prog_compiler_wl_CXX='-Wl,'
19273 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19274 if test "$host_cpu" != ia64; then
19275 lt_prog_compiler_pic_CXX='+Z'
19276 fi
19277 ;;
19278 aCC*)
19279 lt_prog_compiler_wl_CXX='-Wl,'
19280 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19281 case $host_cpu in
19282 hppa*64*|ia64*)
19283 # +Z the default
19284 ;;
19285 *)
19286 lt_prog_compiler_pic_CXX='+Z'
19287 ;;
19288 esac
19289 ;;
19290 *)
19291 ;;
19292 esac
19293 ;;
19294 interix*)
19295 # This is c89, which is MS Visual C++ (no shared libs)
19296 # Anyone wants to do a port?
19297 ;;
19298 irix5* | irix6* | nonstopux*)
19299 case $cc_basename in
19300 CC*)
19301 lt_prog_compiler_wl_CXX='-Wl,'
19302 lt_prog_compiler_static_CXX='-non_shared'
19303 # CC pic flag -KPIC is the default.
19304 ;;
19305 *)
19306 ;;
19307 esac
19308 ;;
cristy0c60a692010-11-04 01:09:47 +000019309 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019310 case $cc_basename in
19311 KCC*)
19312 # KAI C++ Compiler
19313 lt_prog_compiler_wl_CXX='--backend -Wl,'
19314 lt_prog_compiler_pic_CXX='-fPIC'
19315 ;;
19316 ecpc* )
19317 # old Intel C++ for x86_64 which still supported -KPIC.
19318 lt_prog_compiler_wl_CXX='-Wl,'
19319 lt_prog_compiler_pic_CXX='-KPIC'
19320 lt_prog_compiler_static_CXX='-static'
19321 ;;
19322 icpc* )
19323 # Intel C++, used to be incompatible with GCC.
19324 # ICC 10 doesn't accept -KPIC any more.
19325 lt_prog_compiler_wl_CXX='-Wl,'
19326 lt_prog_compiler_pic_CXX='-fPIC'
19327 lt_prog_compiler_static_CXX='-static'
19328 ;;
19329 pgCC* | pgcpp*)
19330 # Portland Group C++ compiler
19331 lt_prog_compiler_wl_CXX='-Wl,'
19332 lt_prog_compiler_pic_CXX='-fpic'
19333 lt_prog_compiler_static_CXX='-Bstatic'
19334 ;;
19335 cxx*)
19336 # Compaq C++
19337 # Make sure the PIC flag is empty. It appears that all Alpha
19338 # Linux and Compaq Tru64 Unix objects are PIC.
19339 lt_prog_compiler_pic_CXX=
19340 lt_prog_compiler_static_CXX='-non_shared'
19341 ;;
cristy0c60a692010-11-04 01:09:47 +000019342 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19343 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019344 lt_prog_compiler_wl_CXX='-Wl,'
19345 lt_prog_compiler_pic_CXX='-qpic'
19346 lt_prog_compiler_static_CXX='-qstaticlink'
19347 ;;
19348 *)
19349 case `$CC -V 2>&1 | sed 5q` in
19350 *Sun\ C*)
19351 # Sun C++ 5.9
19352 lt_prog_compiler_pic_CXX='-KPIC'
19353 lt_prog_compiler_static_CXX='-Bstatic'
19354 lt_prog_compiler_wl_CXX='-Qoption ld '
19355 ;;
19356 esac
19357 ;;
19358 esac
19359 ;;
19360 lynxos*)
19361 ;;
19362 m88k*)
19363 ;;
19364 mvs*)
19365 case $cc_basename in
19366 cxx*)
19367 lt_prog_compiler_pic_CXX='-W c,exportall'
19368 ;;
19369 *)
19370 ;;
19371 esac
19372 ;;
19373 netbsd*)
19374 ;;
19375 *qnx* | *nto*)
19376 # QNX uses GNU C++, but need to define -shared option too, otherwise
19377 # it will coredump.
19378 lt_prog_compiler_pic_CXX='-fPIC -shared'
19379 ;;
19380 osf3* | osf4* | osf5*)
19381 case $cc_basename in
19382 KCC*)
19383 lt_prog_compiler_wl_CXX='--backend -Wl,'
19384 ;;
19385 RCC*)
19386 # Rational C++ 2.4.1
19387 lt_prog_compiler_pic_CXX='-pic'
19388 ;;
19389 cxx*)
19390 # Digital/Compaq C++
19391 lt_prog_compiler_wl_CXX='-Wl,'
19392 # Make sure the PIC flag is empty. It appears that all Alpha
19393 # Linux and Compaq Tru64 Unix objects are PIC.
19394 lt_prog_compiler_pic_CXX=
19395 lt_prog_compiler_static_CXX='-non_shared'
19396 ;;
19397 *)
19398 ;;
19399 esac
19400 ;;
19401 psos*)
19402 ;;
19403 solaris*)
19404 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019405 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019406 # Sun C++ 4.2, 5.x and Centerline C++
19407 lt_prog_compiler_pic_CXX='-KPIC'
19408 lt_prog_compiler_static_CXX='-Bstatic'
19409 lt_prog_compiler_wl_CXX='-Qoption ld '
19410 ;;
19411 gcx*)
19412 # Green Hills C++ Compiler
19413 lt_prog_compiler_pic_CXX='-PIC'
19414 ;;
19415 *)
19416 ;;
19417 esac
19418 ;;
19419 sunos4*)
19420 case $cc_basename in
19421 CC*)
19422 # Sun C++ 4.x
19423 lt_prog_compiler_pic_CXX='-pic'
19424 lt_prog_compiler_static_CXX='-Bstatic'
19425 ;;
19426 lcc*)
19427 # Lucid
19428 lt_prog_compiler_pic_CXX='-pic'
19429 ;;
19430 *)
19431 ;;
19432 esac
19433 ;;
19434 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19435 case $cc_basename in
19436 CC*)
19437 lt_prog_compiler_wl_CXX='-Wl,'
19438 lt_prog_compiler_pic_CXX='-KPIC'
19439 lt_prog_compiler_static_CXX='-Bstatic'
19440 ;;
19441 esac
19442 ;;
19443 tandem*)
19444 case $cc_basename in
19445 NCC*)
19446 # NonStop-UX NCC 3.20
19447 lt_prog_compiler_pic_CXX='-KPIC'
19448 ;;
19449 *)
19450 ;;
19451 esac
19452 ;;
19453 vxworks*)
19454 ;;
19455 *)
19456 lt_prog_compiler_can_build_shared_CXX=no
19457 ;;
19458 esac
19459 fi
19460
19461case $host_os in
19462 # For platforms which do not support PIC, -DPIC is meaningless:
19463 *djgpp*)
19464 lt_prog_compiler_pic_CXX=
19465 ;;
19466 *)
19467 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19468 ;;
19469esac
cristy73bd4a52010-10-05 11:24:23 +000019470
cristyda16f162011-02-19 23:52:17 +000019471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19472$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19473if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19474 $as_echo_n "(cached) " >&6
19475else
19476 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19477fi
19478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19479$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19480lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019481
19482#
19483# Check to make sure the PIC flag actually works.
19484#
19485if test -n "$lt_prog_compiler_pic_CXX"; then
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19487$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019488if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019489 $as_echo_n "(cached) " >&6
19490else
19491 lt_cv_prog_compiler_pic_works_CXX=no
19492 ac_outfile=conftest.$ac_objext
19493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19494 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19495 # Insert the option either (1) after the last *FLAGS variable, or
19496 # (2) before a word containing "conftest.", or (3) at the end.
19497 # Note that $ac_compile itself does not contain backslashes and begins
19498 # with a dollar sign (not a hyphen), so the echo should work correctly.
19499 # The option is referenced via a variable to avoid confusing sed.
19500 lt_compile=`echo "$ac_compile" | $SED \
19501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19503 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019504 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019505 (eval "$lt_compile" 2>conftest.err)
19506 ac_status=$?
19507 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019509 if (exit $ac_status) && test -s "$ac_outfile"; then
19510 # The compiler can only warn and ignore the option if not recognized
19511 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019512 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19514 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19515 lt_cv_prog_compiler_pic_works_CXX=yes
19516 fi
19517 fi
19518 $RM conftest*
19519
19520fi
19521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19522$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19523
19524if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19525 case $lt_prog_compiler_pic_CXX in
19526 "" | " "*) ;;
19527 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19528 esac
19529else
19530 lt_prog_compiler_pic_CXX=
19531 lt_prog_compiler_can_build_shared_CXX=no
19532fi
19533
19534fi
19535
19536
19537
cristyda16f162011-02-19 23:52:17 +000019538
19539
cristy73bd4a52010-10-05 11:24:23 +000019540#
19541# Check to make sure the static flag actually works.
19542#
19543wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19545$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019546if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019547 $as_echo_n "(cached) " >&6
19548else
19549 lt_cv_prog_compiler_static_works_CXX=no
19550 save_LDFLAGS="$LDFLAGS"
19551 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19552 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19553 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19554 # The linker can only warn and ignore the option if not recognized
19555 # So say no if there are warnings
19556 if test -s conftest.err; then
19557 # Append any errors to the config.log.
19558 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019559 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019560 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19561 if diff conftest.exp conftest.er2 >/dev/null; then
19562 lt_cv_prog_compiler_static_works_CXX=yes
19563 fi
19564 else
19565 lt_cv_prog_compiler_static_works_CXX=yes
19566 fi
19567 fi
19568 $RM -r conftest*
19569 LDFLAGS="$save_LDFLAGS"
19570
19571fi
19572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19573$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19574
19575if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19576 :
19577else
19578 lt_prog_compiler_static_CXX=
19579fi
19580
19581
19582
19583
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19585$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019586if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019587 $as_echo_n "(cached) " >&6
19588else
19589 lt_cv_prog_compiler_c_o_CXX=no
19590 $RM -r conftest 2>/dev/null
19591 mkdir conftest
19592 cd conftest
19593 mkdir out
19594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19595
19596 lt_compiler_flag="-o out/conftest2.$ac_objext"
19597 # Insert the option either (1) after the last *FLAGS variable, or
19598 # (2) before a word containing "conftest.", or (3) at the end.
19599 # Note that $ac_compile itself does not contain backslashes and begins
19600 # with a dollar sign (not a hyphen), so the echo should work correctly.
19601 lt_compile=`echo "$ac_compile" | $SED \
19602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19604 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019605 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019606 (eval "$lt_compile" 2>out/conftest.err)
19607 ac_status=$?
19608 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019610 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19611 then
19612 # The compiler can only warn and ignore the option if not recognized
19613 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019614 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019615 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19616 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19617 lt_cv_prog_compiler_c_o_CXX=yes
19618 fi
19619 fi
19620 chmod u+w . 2>&5
19621 $RM conftest*
19622 # SGI C++ compiler will create directory out/ii_files/ for
19623 # template instantiation
19624 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19625 $RM out/* && rmdir out
19626 cd ..
19627 $RM -r conftest
19628 $RM conftest*
19629
19630fi
19631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19632$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19633
19634
19635
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19637$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019638if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019639 $as_echo_n "(cached) " >&6
19640else
19641 lt_cv_prog_compiler_c_o_CXX=no
19642 $RM -r conftest 2>/dev/null
19643 mkdir conftest
19644 cd conftest
19645 mkdir out
19646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19647
19648 lt_compiler_flag="-o out/conftest2.$ac_objext"
19649 # Insert the option either (1) after the last *FLAGS variable, or
19650 # (2) before a word containing "conftest.", or (3) at the end.
19651 # Note that $ac_compile itself does not contain backslashes and begins
19652 # with a dollar sign (not a hyphen), so the echo should work correctly.
19653 lt_compile=`echo "$ac_compile" | $SED \
19654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19656 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019657 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019658 (eval "$lt_compile" 2>out/conftest.err)
19659 ac_status=$?
19660 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019662 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19663 then
19664 # The compiler can only warn and ignore the option if not recognized
19665 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019666 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019667 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19668 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19669 lt_cv_prog_compiler_c_o_CXX=yes
19670 fi
19671 fi
19672 chmod u+w . 2>&5
19673 $RM conftest*
19674 # SGI C++ compiler will create directory out/ii_files/ for
19675 # template instantiation
19676 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19677 $RM out/* && rmdir out
19678 cd ..
19679 $RM -r conftest
19680 $RM conftest*
19681
19682fi
19683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19684$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19685
19686
19687
19688
19689hard_links="nottested"
19690if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19691 # do not overwrite the value of need_locks provided by the user
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19693$as_echo_n "checking if we can lock with hard links... " >&6; }
19694 hard_links=yes
19695 $RM conftest*
19696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19697 touch conftest.a
19698 ln conftest.a conftest.b 2>&5 || hard_links=no
19699 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19701$as_echo "$hard_links" >&6; }
19702 if test "$hard_links" = no; then
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19704$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19705 need_locks=warn
19706 fi
19707else
19708 need_locks=no
19709fi
19710
19711
19712
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19714$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19715
19716 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019717 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019718 case $host_os in
19719 aix[4-9]*)
19720 # If we're using GNU nm, then we don't want the "-C" option.
19721 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019722 # Also, AIX nm treats weak defined symbols like other global defined
19723 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019724 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019725 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 +000019726 else
19727 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'
19728 fi
19729 ;;
19730 pw32*)
19731 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019732 ;;
cristy73bd4a52010-10-05 11:24:23 +000019733 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019734 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019735 cl*)
19736 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19737 ;;
cristyda16f162011-02-19 23:52:17 +000019738 *)
19739 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'
19740 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19741 ;;
19742 esac
19743 ;;
cristy73bd4a52010-10-05 11:24:23 +000019744 *)
19745 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019746 ;;
cristy73bd4a52010-10-05 11:24:23 +000019747 esac
cristy73bd4a52010-10-05 11:24:23 +000019748
19749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19750$as_echo "$ld_shlibs_CXX" >&6; }
19751test "$ld_shlibs_CXX" = no && can_build_shared=no
19752
19753with_gnu_ld_CXX=$with_gnu_ld
19754
19755
19756
19757
19758
19759
19760#
19761# Do we need to explicitly link libc?
19762#
19763case "x$archive_cmds_need_lc_CXX" in
19764x|xyes)
19765 # Assume -lc should be added
19766 archive_cmds_need_lc_CXX=yes
19767
19768 if test "$enable_shared" = yes && test "$GCC" = yes; then
19769 case $archive_cmds_CXX in
19770 *'~'*)
19771 # FIXME: we may have to deal with multi-command sequences.
19772 ;;
19773 '$CC '*)
19774 # Test whether the compiler implicitly links with -lc since on some
19775 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19776 # to ld, don't add -lc before -lgcc.
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19778$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019779if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019780 $as_echo_n "(cached) " >&6
19781else
19782 $RM conftest*
19783 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019784
cristy0c60a692010-11-04 01:09:47 +000019785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019786 (eval $ac_compile) 2>&5
19787 ac_status=$?
19788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19789 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019790 soname=conftest
19791 lib=conftest
19792 libobjs=conftest.$ac_objext
19793 deplibs=
19794 wl=$lt_prog_compiler_wl_CXX
19795 pic_flag=$lt_prog_compiler_pic_CXX
19796 compiler_flags=-v
19797 linker_flags=-v
19798 verstring=
19799 output_objdir=.
19800 libname=conftest
19801 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19802 allow_undefined_flag_CXX=
19803 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 +000019804 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19805 ac_status=$?
19806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19807 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019808 then
19809 lt_cv_archive_cmds_need_lc_CXX=no
19810 else
19811 lt_cv_archive_cmds_need_lc_CXX=yes
19812 fi
19813 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19814 else
19815 cat conftest.err 1>&5
19816 fi
19817 $RM conftest*
19818
19819fi
19820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19821$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19822 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019823 ;;
19824 esac
19825 fi
19826 ;;
19827esac
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
19887
19888
19889
cristy73bd4a52010-10-05 11:24:23 +000019890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19891$as_echo_n "checking dynamic linker characteristics... " >&6; }
19892
19893library_names_spec=
19894libname_spec='lib$name'
19895soname_spec=
19896shrext_cmds=".so"
19897postinstall_cmds=
19898postuninstall_cmds=
19899finish_cmds=
19900finish_eval=
19901shlibpath_var=
19902shlibpath_overrides_runpath=unknown
19903version_type=none
19904dynamic_linker="$host_os ld.so"
19905sys_lib_dlsearch_path_spec="/lib /usr/lib"
19906need_lib_prefix=unknown
19907hardcode_into_libs=no
19908
19909# when you set need_version to no, make sure it does not cause -set_version
19910# flags to be left without arguments
19911need_version=unknown
19912
19913case $host_os in
19914aix3*)
cristy99bd5232011-12-07 14:38:20 +000019915 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19917 shlibpath_var=LIBPATH
19918
19919 # AIX 3 has no versioning support, so we append a major version to the name.
19920 soname_spec='${libname}${release}${shared_ext}$major'
19921 ;;
19922
19923aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019924 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019925 need_lib_prefix=no
19926 need_version=no
19927 hardcode_into_libs=yes
19928 if test "$host_cpu" = ia64; then
19929 # AIX 5 supports IA64
19930 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19931 shlibpath_var=LD_LIBRARY_PATH
19932 else
19933 # With GCC up to 2.95.x, collect2 would create an import file
19934 # for dependence libraries. The import file would start with
19935 # the line `#! .'. This would cause the generated library to
19936 # depend on `.', always an invalid library. This was fixed in
19937 # development snapshots of GCC prior to 3.0.
19938 case $host_os in
19939 aix4 | aix4.[01] | aix4.[01].*)
19940 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19941 echo ' yes '
19942 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19943 :
19944 else
19945 can_build_shared=no
19946 fi
19947 ;;
19948 esac
19949 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19950 # soname into executable. Probably we can add versioning support to
19951 # collect2, so additional links can be useful in future.
19952 if test "$aix_use_runtimelinking" = yes; then
19953 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19954 # instead of lib<name>.a to let people know that these are not
19955 # typical AIX shared libraries.
19956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19957 else
19958 # We preserve .a as extension for shared libraries through AIX4.2
19959 # and later when we are not doing run time linking.
19960 library_names_spec='${libname}${release}.a $libname.a'
19961 soname_spec='${libname}${release}${shared_ext}$major'
19962 fi
19963 shlibpath_var=LIBPATH
19964 fi
19965 ;;
19966
19967amigaos*)
19968 case $host_cpu in
19969 powerpc)
19970 # Since July 2007 AmigaOS4 officially supports .so libraries.
19971 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19973 ;;
19974 m68k)
19975 library_names_spec='$libname.ixlibrary $libname.a'
19976 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019977 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 +000019978 ;;
19979 esac
19980 ;;
19981
19982beos*)
19983 library_names_spec='${libname}${shared_ext}'
19984 dynamic_linker="$host_os ld.so"
19985 shlibpath_var=LIBRARY_PATH
19986 ;;
19987
19988bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019989 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019990 need_version=no
19991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19992 soname_spec='${libname}${release}${shared_ext}$major'
19993 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19994 shlibpath_var=LD_LIBRARY_PATH
19995 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19996 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19997 # the default ld.so.conf also contains /usr/contrib/lib and
19998 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19999 # libtool to hard-code these into programs
20000 ;;
20001
20002cygwin* | mingw* | pw32* | cegcc*)
20003 version_type=windows
20004 shrext_cmds=".dll"
20005 need_version=no
20006 need_lib_prefix=no
20007
cristyda16f162011-02-19 23:52:17 +000020008 case $GCC,$cc_basename in
20009 yes,*)
20010 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020011 library_names_spec='$libname.dll.a'
20012 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20013 postinstall_cmds='base_file=`basename \${file}`~
20014 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20015 dldir=$destdir/`dirname \$dlpath`~
20016 test -d \$dldir || mkdir -p \$dldir~
20017 $install_prog $dir/$dlname \$dldir/$dlname~
20018 chmod a+x \$dldir/$dlname~
20019 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20020 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20021 fi'
20022 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20023 dlpath=$dir/\$dldll~
20024 $RM \$dlpath'
20025 shlibpath_overrides_runpath=yes
20026
20027 case $host_os in
20028 cygwin*)
20029 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20030 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020031
cristy73bd4a52010-10-05 11:24:23 +000020032 ;;
20033 mingw* | cegcc*)
20034 # MinGW DLLs use traditional 'lib' prefix
20035 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020036 ;;
20037 pw32*)
20038 # pw32 DLLs use 'pw' prefix rather than 'lib'
20039 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20040 ;;
20041 esac
cristyda16f162011-02-19 23:52:17 +000020042 dynamic_linker='Win32 ld.exe'
20043 ;;
20044
20045 *,cl*)
20046 # Native MSVC
20047 libname_spec='$name'
20048 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20049 library_names_spec='${libname}.dll.lib'
20050
20051 case $build_os in
20052 mingw*)
20053 sys_lib_search_path_spec=
20054 lt_save_ifs=$IFS
20055 IFS=';'
20056 for lt_path in $LIB
20057 do
20058 IFS=$lt_save_ifs
20059 # Let DOS variable expansion print the short 8.3 style file name.
20060 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20061 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20062 done
20063 IFS=$lt_save_ifs
20064 # Convert to MSYS style.
20065 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20066 ;;
20067 cygwin*)
20068 # Convert to unix form, then to dos form, then back to unix form
20069 # but this time dos style (no spaces!) so that the unix form looks
20070 # like /cygdrive/c/PROGRA~1:/cygdr...
20071 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20072 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20073 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20074 ;;
20075 *)
20076 sys_lib_search_path_spec="$LIB"
20077 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20078 # It is most probably a Windows format PATH.
20079 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20080 else
20081 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20082 fi
20083 # FIXME: find the short name or the path components, as spaces are
20084 # common. (e.g. "Program Files" -> "PROGRA~1")
20085 ;;
20086 esac
20087
20088 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20089 postinstall_cmds='base_file=`basename \${file}`~
20090 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20091 dldir=$destdir/`dirname \$dlpath`~
20092 test -d \$dldir || mkdir -p \$dldir~
20093 $install_prog $dir/$dlname \$dldir/$dlname'
20094 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20095 dlpath=$dir/\$dldll~
20096 $RM \$dlpath'
20097 shlibpath_overrides_runpath=yes
20098 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020099 ;;
20100
20101 *)
cristyda16f162011-02-19 23:52:17 +000020102 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020103 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020104 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020105 ;;
20106 esac
cristy73bd4a52010-10-05 11:24:23 +000020107 # FIXME: first we should search . and the directory the executable is in
20108 shlibpath_var=PATH
20109 ;;
20110
20111darwin* | rhapsody*)
20112 dynamic_linker="$host_os dyld"
20113 version_type=darwin
20114 need_lib_prefix=no
20115 need_version=no
20116 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20117 soname_spec='${libname}${release}${major}$shared_ext'
20118 shlibpath_overrides_runpath=yes
20119 shlibpath_var=DYLD_LIBRARY_PATH
20120 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20121
20122 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20123 ;;
20124
20125dgux*)
cristy99bd5232011-12-07 14:38:20 +000020126 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020127 need_lib_prefix=no
20128 need_version=no
20129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20130 soname_spec='${libname}${release}${shared_ext}$major'
20131 shlibpath_var=LD_LIBRARY_PATH
20132 ;;
20133
cristy73bd4a52010-10-05 11:24:23 +000020134freebsd* | dragonfly*)
20135 # DragonFly does not have aout. When/if they implement a new
20136 # versioning mechanism, adjust this.
20137 if test -x /usr/bin/objformat; then
20138 objformat=`/usr/bin/objformat`
20139 else
20140 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020141 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020142 *) objformat=elf ;;
20143 esac
20144 fi
20145 version_type=freebsd-$objformat
20146 case $version_type in
20147 freebsd-elf*)
20148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20149 need_version=no
20150 need_lib_prefix=no
20151 ;;
20152 freebsd-*)
20153 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20154 need_version=yes
20155 ;;
20156 esac
20157 shlibpath_var=LD_LIBRARY_PATH
20158 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020159 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020160 shlibpath_overrides_runpath=yes
20161 ;;
20162 freebsd3.[01]* | freebsdelf3.[01]*)
20163 shlibpath_overrides_runpath=yes
20164 hardcode_into_libs=yes
20165 ;;
20166 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20167 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20168 shlibpath_overrides_runpath=no
20169 hardcode_into_libs=yes
20170 ;;
20171 *) # from 4.6 on, and DragonFly
20172 shlibpath_overrides_runpath=yes
20173 hardcode_into_libs=yes
20174 ;;
20175 esac
20176 ;;
20177
20178gnu*)
cristy99bd5232011-12-07 14:38:20 +000020179 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020180 need_lib_prefix=no
20181 need_version=no
20182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20183 soname_spec='${libname}${release}${shared_ext}$major'
20184 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020185 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020186 hardcode_into_libs=yes
20187 ;;
20188
cristy0c60a692010-11-04 01:09:47 +000020189haiku*)
cristy99bd5232011-12-07 14:38:20 +000020190 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020191 need_lib_prefix=no
20192 need_version=no
20193 dynamic_linker="$host_os runtime_loader"
20194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20195 soname_spec='${libname}${release}${shared_ext}$major'
20196 shlibpath_var=LIBRARY_PATH
20197 shlibpath_overrides_runpath=yes
20198 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20199 hardcode_into_libs=yes
20200 ;;
20201
cristy73bd4a52010-10-05 11:24:23 +000020202hpux9* | hpux10* | hpux11*)
20203 # Give a soname corresponding to the major version so that dld.sl refuses to
20204 # link against other versions.
20205 version_type=sunos
20206 need_lib_prefix=no
20207 need_version=no
20208 case $host_cpu in
20209 ia64*)
20210 shrext_cmds='.so'
20211 hardcode_into_libs=yes
20212 dynamic_linker="$host_os dld.so"
20213 shlibpath_var=LD_LIBRARY_PATH
20214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20216 soname_spec='${libname}${release}${shared_ext}$major'
20217 if test "X$HPUX_IA64_MODE" = X32; then
20218 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20219 else
20220 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20221 fi
20222 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20223 ;;
20224 hppa*64*)
20225 shrext_cmds='.sl'
20226 hardcode_into_libs=yes
20227 dynamic_linker="$host_os dld.sl"
20228 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20229 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20231 soname_spec='${libname}${release}${shared_ext}$major'
20232 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20233 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20234 ;;
20235 *)
20236 shrext_cmds='.sl'
20237 dynamic_linker="$host_os dld.sl"
20238 shlibpath_var=SHLIB_PATH
20239 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20241 soname_spec='${libname}${release}${shared_ext}$major'
20242 ;;
20243 esac
cristy0c60a692010-11-04 01:09:47 +000020244 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020245 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020246 # or fails outright, so override atomically:
20247 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020248 ;;
20249
20250interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020251 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020252 need_lib_prefix=no
20253 need_version=no
20254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20255 soname_spec='${libname}${release}${shared_ext}$major'
20256 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20257 shlibpath_var=LD_LIBRARY_PATH
20258 shlibpath_overrides_runpath=no
20259 hardcode_into_libs=yes
20260 ;;
20261
20262irix5* | irix6* | nonstopux*)
20263 case $host_os in
20264 nonstopux*) version_type=nonstopux ;;
20265 *)
20266 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020267 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020268 else
20269 version_type=irix
20270 fi ;;
20271 esac
20272 need_lib_prefix=no
20273 need_version=no
20274 soname_spec='${libname}${release}${shared_ext}$major'
20275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20276 case $host_os in
20277 irix5* | nonstopux*)
20278 libsuff= shlibsuff=
20279 ;;
20280 *)
20281 case $LD in # libtool.m4 will add one of these switches to LD
20282 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20283 libsuff= shlibsuff= libmagic=32-bit;;
20284 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20285 libsuff=32 shlibsuff=N32 libmagic=N32;;
20286 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20287 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20288 *) libsuff= shlibsuff= libmagic=never-match;;
20289 esac
20290 ;;
20291 esac
20292 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20293 shlibpath_overrides_runpath=no
20294 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20295 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20296 hardcode_into_libs=yes
20297 ;;
20298
20299# No shared lib support for Linux oldld, aout, or coff.
20300linux*oldld* | linux*aout* | linux*coff*)
20301 dynamic_linker=no
20302 ;;
20303
cristy99bd5232011-12-07 14:38:20 +000020304# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020305linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020306 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020307 need_lib_prefix=no
20308 need_version=no
20309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20310 soname_spec='${libname}${release}${shared_ext}$major'
20311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20312 shlibpath_var=LD_LIBRARY_PATH
20313 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020314
cristy73bd4a52010-10-05 11:24:23 +000020315 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020316 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020317 $as_echo_n "(cached) " >&6
20318else
20319 lt_cv_shlibpath_overrides_runpath=no
20320 save_LDFLAGS=$LDFLAGS
20321 save_libdir=$libdir
20322 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20323 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020325/* end confdefs.h. */
20326
20327int
20328main ()
20329{
20330
20331 ;
20332 return 0;
20333}
20334_ACEOF
20335if ac_fn_cxx_try_link "$LINENO"; then :
20336 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020337 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020338fi
20339fi
20340rm -f core conftest.err conftest.$ac_objext \
20341 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020342 LDFLAGS=$save_LDFLAGS
20343 libdir=$save_libdir
20344
20345fi
20346
20347 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020348
20349 # This implies no fast_install, which is unacceptable.
20350 # Some rework will be needed to allow for fast_install
20351 # before this can be enabled.
20352 hardcode_into_libs=yes
20353
20354 # Add ABI-specific directories to the system library path.
20355 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20356
20357 # Append ld.so.conf contents to the search path
20358 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020359 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 +000020360 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020361
cristy73bd4a52010-10-05 11:24:23 +000020362 fi
20363
20364 # We used to test for /lib/ld.so.1 and disable shared libraries on
20365 # powerpc, because MkLinux only supported shared libraries with the
20366 # GNU dynamic linker. Since this was broken with cross compilers,
20367 # most powerpc-linux boxes support dynamic linking these days and
20368 # people can always --disable-shared, the test was removed, and we
20369 # assume the GNU/Linux dynamic linker is in use.
20370 dynamic_linker='GNU/Linux ld.so'
20371 ;;
20372
20373netbsd*)
20374 version_type=sunos
20375 need_lib_prefix=no
20376 need_version=no
20377 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20380 dynamic_linker='NetBSD (a.out) ld.so'
20381 else
20382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20383 soname_spec='${libname}${release}${shared_ext}$major'
20384 dynamic_linker='NetBSD ld.elf_so'
20385 fi
20386 shlibpath_var=LD_LIBRARY_PATH
20387 shlibpath_overrides_runpath=yes
20388 hardcode_into_libs=yes
20389 ;;
20390
20391newsos6)
cristy99bd5232011-12-07 14:38:20 +000020392 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20394 shlibpath_var=LD_LIBRARY_PATH
20395 shlibpath_overrides_runpath=yes
20396 ;;
20397
20398*nto* | *qnx*)
20399 version_type=qnx
20400 need_lib_prefix=no
20401 need_version=no
20402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20403 soname_spec='${libname}${release}${shared_ext}$major'
20404 shlibpath_var=LD_LIBRARY_PATH
20405 shlibpath_overrides_runpath=no
20406 hardcode_into_libs=yes
20407 dynamic_linker='ldqnx.so'
20408 ;;
20409
20410openbsd*)
20411 version_type=sunos
20412 sys_lib_dlsearch_path_spec="/usr/lib"
20413 need_lib_prefix=no
20414 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20415 case $host_os in
20416 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20417 *) need_version=no ;;
20418 esac
20419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20421 shlibpath_var=LD_LIBRARY_PATH
20422 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20423 case $host_os in
20424 openbsd2.[89] | openbsd2.[89].*)
20425 shlibpath_overrides_runpath=no
20426 ;;
20427 *)
20428 shlibpath_overrides_runpath=yes
20429 ;;
20430 esac
20431 else
20432 shlibpath_overrides_runpath=yes
20433 fi
20434 ;;
20435
20436os2*)
20437 libname_spec='$name'
20438 shrext_cmds=".dll"
20439 need_lib_prefix=no
20440 library_names_spec='$libname${shared_ext} $libname.a'
20441 dynamic_linker='OS/2 ld.exe'
20442 shlibpath_var=LIBPATH
20443 ;;
20444
20445osf3* | osf4* | osf5*)
20446 version_type=osf
20447 need_lib_prefix=no
20448 need_version=no
20449 soname_spec='${libname}${release}${shared_ext}$major'
20450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20451 shlibpath_var=LD_LIBRARY_PATH
20452 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20453 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20454 ;;
20455
20456rdos*)
20457 dynamic_linker=no
20458 ;;
20459
20460solaris*)
cristy99bd5232011-12-07 14:38:20 +000020461 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020462 need_lib_prefix=no
20463 need_version=no
20464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20465 soname_spec='${libname}${release}${shared_ext}$major'
20466 shlibpath_var=LD_LIBRARY_PATH
20467 shlibpath_overrides_runpath=yes
20468 hardcode_into_libs=yes
20469 # ldd complains unless libraries are executable
20470 postinstall_cmds='chmod +x $lib'
20471 ;;
20472
20473sunos4*)
20474 version_type=sunos
20475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20476 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20477 shlibpath_var=LD_LIBRARY_PATH
20478 shlibpath_overrides_runpath=yes
20479 if test "$with_gnu_ld" = yes; then
20480 need_lib_prefix=no
20481 fi
20482 need_version=yes
20483 ;;
20484
20485sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020486 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20488 soname_spec='${libname}${release}${shared_ext}$major'
20489 shlibpath_var=LD_LIBRARY_PATH
20490 case $host_vendor in
20491 sni)
20492 shlibpath_overrides_runpath=no
20493 need_lib_prefix=no
20494 runpath_var=LD_RUN_PATH
20495 ;;
20496 siemens)
20497 need_lib_prefix=no
20498 ;;
20499 motorola)
20500 need_lib_prefix=no
20501 need_version=no
20502 shlibpath_overrides_runpath=no
20503 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20504 ;;
20505 esac
20506 ;;
20507
20508sysv4*MP*)
20509 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020510 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020511 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20512 soname_spec='$libname${shared_ext}.$major'
20513 shlibpath_var=LD_LIBRARY_PATH
20514 fi
20515 ;;
20516
20517sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20518 version_type=freebsd-elf
20519 need_lib_prefix=no
20520 need_version=no
20521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20522 soname_spec='${libname}${release}${shared_ext}$major'
20523 shlibpath_var=LD_LIBRARY_PATH
20524 shlibpath_overrides_runpath=yes
20525 hardcode_into_libs=yes
20526 if test "$with_gnu_ld" = yes; then
20527 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20528 else
20529 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20530 case $host_os in
20531 sco3.2v5*)
20532 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20533 ;;
20534 esac
20535 fi
20536 sys_lib_dlsearch_path_spec='/usr/lib'
20537 ;;
20538
20539tpf*)
20540 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020541 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020542 need_lib_prefix=no
20543 need_version=no
20544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20545 shlibpath_var=LD_LIBRARY_PATH
20546 shlibpath_overrides_runpath=no
20547 hardcode_into_libs=yes
20548 ;;
20549
20550uts4*)
cristy99bd5232011-12-07 14:38:20 +000020551 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20553 soname_spec='${libname}${release}${shared_ext}$major'
20554 shlibpath_var=LD_LIBRARY_PATH
20555 ;;
20556
20557*)
20558 dynamic_linker=no
20559 ;;
20560esac
20561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20562$as_echo "$dynamic_linker" >&6; }
20563test "$dynamic_linker" = no && can_build_shared=no
20564
20565variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20566if test "$GCC" = yes; then
20567 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20568fi
20569
20570if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20571 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20572fi
20573if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20574 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20575fi
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
20609
20610
20611
cristy0c60a692010-11-04 01:09:47 +000020612
20613
cristy73bd4a52010-10-05 11:24:23 +000020614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20615$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20616hardcode_action_CXX=
20617if test -n "$hardcode_libdir_flag_spec_CXX" ||
20618 test -n "$runpath_var_CXX" ||
20619 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20620
20621 # We can hardcode non-existent directories.
20622 if test "$hardcode_direct_CXX" != no &&
20623 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20624 # have to relink, otherwise we might link with an installed library
20625 # when we should be linking with a yet-to-be-installed one
20626 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20627 test "$hardcode_minus_L_CXX" != no; then
20628 # Linking always hardcodes the temporary library directory.
20629 hardcode_action_CXX=relink
20630 else
20631 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20632 hardcode_action_CXX=immediate
20633 fi
20634else
20635 # We cannot hardcode anything, or else we can only hardcode existing
20636 # directories.
20637 hardcode_action_CXX=unsupported
20638fi
20639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20640$as_echo "$hardcode_action_CXX" >&6; }
20641
20642if test "$hardcode_action_CXX" = relink ||
20643 test "$inherit_rpath_CXX" = yes; then
20644 # Fast installation is not supported
20645 enable_fast_install=no
20646elif test "$shlibpath_overrides_runpath" = yes ||
20647 test "$enable_shared" = no; then
20648 # Fast installation is not necessary
20649 enable_fast_install=needless
20650fi
20651
20652
20653
20654
20655
20656
20657
20658 fi # test -n "$compiler"
20659
20660 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020661 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020662 LDCXX=$LD
20663 LD=$lt_save_LD
20664 GCC=$lt_save_GCC
20665 with_gnu_ld=$lt_save_with_gnu_ld
20666 lt_cv_path_LDCXX=$lt_cv_path_LD
20667 lt_cv_path_LD=$lt_save_path_LD
20668 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20669 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20670fi # test "$_lt_caught_CXX_error" != yes
20671
20672ac_ext=c
20673ac_cpp='$CPP $CPPFLAGS'
20674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20676ac_compiler_gnu=$ac_cv_c_compiler_gnu
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
cristy99bd5232011-12-07 14:38:20 +000020690
20691
cristy73bd4a52010-10-05 11:24:23 +000020692 ac_config_commands="$ac_config_commands libtool"
20693
20694
20695
20696
20697# Only expand once:
20698
20699
20700
cristy3ed852e2009-09-05 21:47:34 +000020701
20702
cristy3ed852e2009-09-05 21:47:34 +000020703# Check to see if building shared libraries
20704libtool_build_shared_libs='no'
20705if test "$enable_shared" = 'yes'; then
20706 libtool_build_shared_libs='yes'
20707fi
20708
20709# Check to see if building static libraries
20710libtool_build_static_libs='no'
20711if test "$enable_static" = 'yes'; then
20712 libtool_build_static_libs='yes'
20713fi
20714
cristy73bd4a52010-10-05 11:24:23 +000020715 if test "${libtool_build_shared_libs}" = 'yes'; then
20716 WITH_SHARED_LIBS_TRUE=
20717 WITH_SHARED_LIBS_FALSE='#'
20718else
20719 WITH_SHARED_LIBS_TRUE='#'
20720 WITH_SHARED_LIBS_FALSE=
20721fi
20722
cristy3ed852e2009-09-05 21:47:34 +000020723#
20724# Enable support for building loadable modules
20725#
cristyaf4cbf32012-10-16 23:47:41 +000020726build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020727
20728# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020729if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020730 withval=$with_modules; with_modules=$withval
20731else
cristy5a1cefd2010-01-06 20:42:35 +000020732 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020733fi
20734
20735
20736# Only allow building loadable modules if we are building shared libraries
20737if test "$with_modules" != 'no' ; then
20738 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020739 { $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 +000020740$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020741 build_modules='no'
20742 else
20743 build_modules='yes'
20744 fi
cristy3ed852e2009-09-05 21:47:34 +000020745fi
cristyc6722092012-10-14 00:19:31 +000020746if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020747
cristy8b350f62009-11-15 23:12:43 +000020748$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020749
cristyfa161182012-12-19 15:45:28 +000020750 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000020751fi
cristyc6722092012-10-14 00:19:31 +000020752 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020753 WITH_MODULES_TRUE=
20754 WITH_MODULES_FALSE='#'
20755else
20756 WITH_MODULES_TRUE='#'
20757 WITH_MODULES_FALSE=
20758fi
20759
cristy3ed852e2009-09-05 21:47:34 +000020760
cristy3ed852e2009-09-05 21:47:34 +000020761# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020762# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020763# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020764if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020765 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20766else
20767 enable_delegate_build='no'
20768fi
20769
20770
20771# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020772if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020773 enableval=$enable_deprecated; enable_deprecated=$enableval
20774else
20775 enable_deprecated='no'
20776fi
20777
20778
20779if test "$enable_deprecated" = 'yes'; then
20780
cristy8b350f62009-11-15 23:12:43 +000020781$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020782
20783else
20784 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20785fi
20786
20787# Build a version of ImageMagick which operates uninstalled.
20788# Used to build distributions located via MAGICK_HOME / executable path
20789# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020790if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020791 enableval=$enable_installed; enable_installed=$enableval
20792else
20793 enable_installed='yes'
20794fi
20795
20796
20797if test "$enable_installed" = 'yes'; then
20798
cristy8b350f62009-11-15 23:12:43 +000020799$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020800
20801else
20802 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20803fi
20804
20805# Permit enciphering and deciphering image pixels.
20806# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020807if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020808 enableval=$enable_cipher; enable_cipher=$enableval
20809else
20810 enable_cipher='yes'
20811fi
20812
20813
20814if test "$enable_cipher" = 'yes'; then
20815
cristy8b350f62009-11-15 23:12:43 +000020816$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020817
20818fi
20819
cristy6e3607c2011-09-13 13:59:17 +000020820# Build a zero-configuration version of ImageMagick.
20821# Check whether --enable-zero-configuration was given.
20822if test "${enable_zero_configuration+set}" = set; then :
20823 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000020824else
cristy6e3607c2011-09-13 13:59:17 +000020825 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000020826fi
20827
20828
cristy6e3607c2011-09-13 13:59:17 +000020829if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000020830
cristy6e3607c2011-09-13 13:59:17 +000020831$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020832
cristy81af5702011-09-13 14:20:58 +000020833 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020834fi
20835
20836# Build a high dynamic range version of ImageMagick.
20837# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020838if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020839 enableval=$enable_hdri; enable_hdri=$enableval
20840else
cristy191c0b72012-08-12 16:29:52 +000020841 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000020842fi
20843
20844
20845MAGICK_HDRI=""
20846if test "$enable_hdri" = 'yes'; then
20847 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000020848 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000020849 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000020850else
20851 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000020852fi
20853
cristye52f12f2012-12-31 15:32:36 +000020854cat >>confdefs.h <<_ACEOF
20855#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
20856_ACEOF
20857
20858MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
20859CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000020860CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000020861
cristy3ed852e2009-09-05 21:47:34 +000020862# Build a version of ImageMagick with assert statements.
20863# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020864if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020865 enableval=$enable_assert; enable_assert=$enableval
20866else
20867 enable_assert='yes'
20868fi
20869
20870
20871if test "$enable_assert" = 'no'; then
20872
cristy8b350f62009-11-15 23:12:43 +000020873$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020874
20875fi
20876
cristya448bd22011-10-14 12:38:13 +000020877# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000020878
20879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20880$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20881 # Check whether --enable-maintainer-mode was given.
20882if test "${enable_maintainer_mode+set}" = set; then :
20883 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20884else
20885 USE_MAINTAINER_MODE=no
20886fi
20887
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20889$as_echo "$USE_MAINTAINER_MODE" >&6; }
20890 if test $USE_MAINTAINER_MODE = yes; then
20891 MAINTAINER_MODE_TRUE=
20892 MAINTAINER_MODE_FALSE='#'
20893else
20894 MAINTAINER_MODE_TRUE='#'
20895 MAINTAINER_MODE_FALSE=
20896fi
20897
20898 MAINT=$MAINTAINER_MODE_TRUE
20899
20900
cristy3ed852e2009-09-05 21:47:34 +000020901
cristy3ed852e2009-09-05 21:47:34 +000020902# Enable ccmalloc memory debugging support
20903# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020904if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020905 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20906else
20907 enable_ccmalloc='no'
20908fi
20909
20910
20911# Enable Electric Fence memory debugging support
20912# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020913if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020914 enableval=$enable_efence; enable_efence=$enableval
20915else
20916 enable_efence='no'
20917fi
20918
20919
20920# Enable prof-based profiling support
20921# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020922if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020923 enableval=$enable_prof; enable_prof=$enableval
20924else
20925 enable_prof='no'
20926fi
20927
20928
20929# Enable gprof-based profiling support
20930# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020931if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020932 enableval=$enable_gprof; enable_gprof=$enableval
20933else
20934 enable_gprof='no'
20935fi
20936
20937
20938# Enable gcov-based profiling support
20939# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020940if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020941 enableval=$enable_gcov; enable_gcov=$enableval
20942else
20943 enable_gcov='no'
20944fi
20945
20946
20947enable_profiling='no'
20948if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20949 enable_profiling='yes'
20950 if test "$libtool_build_shared_libs" = 'yes'; then
20951 echo "Warning: Can not profile code using shared libraries"
20952 fi
20953fi
20954
20955# Magick API method prefix
20956
20957# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020958if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000020959 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000020960else
cristyfc3d0222012-02-07 15:05:57 +000020961 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000020962fi
20963
20964
cristyfc3d0222012-02-07 15:05:57 +000020965if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000020966
20967cat >>confdefs.h <<_ACEOF
20968#define NAMESPACE_PREFIX $with_method_prefix
20969_ACEOF
20970
cristyfc3d0222012-02-07 15:05:57 +000020971 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000020972fi
20973
cristy71d8c202012-03-20 17:05:01 +000020974# Enable legacy support (default no)
20975# Check whether --enable-legacy-support was given.
20976if test "${enable_legacy_support+set}" = set; then :
20977 enableval=$enable_legacy_support; with_legacy_support=$enableval
20978else
20979 with_legacy_support='no'
20980fi
20981
20982 if test "$with_legacy_support" != 'no'; then
20983 LEGACY_SUPPORT_TRUE=
20984 LEGACY_SUPPORT_FALSE='#'
20985else
20986 LEGACY_SUPPORT_TRUE='#'
20987 LEGACY_SUPPORT_FALSE=
20988fi
20989
20990
cristy3ed852e2009-09-05 21:47:34 +000020991# Number of bits in a Quantum
20992
20993# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020994if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020995 withval=$with_quantum_depth; with_quantum_depth=$withval
20996else
20997 with_quantum_depth=16
20998fi
20999
21000
21001if test "$with_quantum_depth" != '8'; then
21002 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21003fi
21004
21005case "${with_quantum_depth}" in
21006 8 ) ;;
21007 16 ) ;;
21008 32 ) ;;
21009 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021010 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021011esac
21012QUANTUM_DEPTH="$with_quantum_depth"
21013
21014cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021015#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021016_ACEOF
21017
cristye52f12f2012-12-31 15:32:36 +000021018MAGICKCORE_PCFLAGS="$MAGICKCORE_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
21019CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021020CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021021
cristy01ff9f32012-12-01 18:15:29 +000021022# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021023MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021024if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021025 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021026fi
cristy01ff9f32012-12-01 18:15:29 +000021027
21028
cristy3ed852e2009-09-05 21:47:34 +000021029# Set pixel cache threshold
21030
21031# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021032if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021033 withval=$with_cache; with_cache=$withval
21034else
21035 with_cache=''
21036fi
21037
21038
21039if test "$with_cache" != ''; then
21040
21041cat >>confdefs.h <<_ACEOF
21042#define PixelCacheThreshold $with_cache
21043_ACEOF
21044
21045 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21046fi
21047
21048# Disable/Enable support for full delegate paths
21049
21050# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021051if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021052 withval=$with_frozenpaths; with_frozenpaths=$withval
21053else
21054 with_frozenpaths='no'
21055fi
21056
21057
21058# Enable build/install of Magick++
21059
21060# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021061if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021062 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21063else
21064 with_magick_plus_plus='yes'
21065fi
21066
21067
cristy3a75f062012-09-08 23:29:40 +000021068# Encode the this name into the shared library.
21069
21070# Check whether --with-package-release-name was given.
21071if test "${with_package_release_name+set}" = set; then :
21072 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21073fi
21074
21075
21076
cristy3ed852e2009-09-05 21:47:34 +000021077# Disable build/install of PerlMagick.
21078
21079# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021080if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021081 withval=$with_perl; with_perl=$withval
21082else
cristyb5f4e2f2010-04-25 00:49:11 +000021083 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021084fi
21085
21086
21087# Options to pass when configuring PerlMagick
21088
21089# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021090if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021091 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021092fi
21093
21094
cristy3ed852e2009-09-05 21:47:34 +000021095
21096# Enable umem, object-caching memory allocation library.
21097
21098# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021099if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021100 withval=$with_umem; with_umem=$withval
21101else
21102 with_umem='no'
21103fi
21104
21105if test "$with_umem" != 'yes' ; then
21106 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21107fi
21108
21109#
21110# Specify path to shared libstdc++ if not in normal location
21111#
21112
21113# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021114if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021115 withval=$with_libstdc; with_libstdc=$withval
21116else
21117 with_libstdc=''
21118fi
21119
21120
21121if test "$with_libstdc" != ''; then
21122 if test -d "$with_libstdc"; then
21123 LIBSTDCLDFLAGS="-L$with_libstdc"
21124 fi
21125fi
21126
21127
21128# Does gcc required -traditional?
21129if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021131$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021132if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021133 $as_echo_n "(cached) " >&6
21134else
21135 ac_pattern="Autoconf.*'x'"
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 <sgtty.h>
21139Autoconf TIOCGETP
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
21144else
21145 ac_cv_prog_gcc_traditional=no
21146fi
21147rm -f conftest*
21148
21149
21150 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021152/* end confdefs.h. */
21153#include <termio.h>
21154Autoconf TCGETA
21155_ACEOF
21156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021157 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021158 ac_cv_prog_gcc_traditional=yes
21159fi
21160rm -f conftest*
21161
21162 fi
21163fi
cristy8b350f62009-11-15 23:12:43 +000021164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021165$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21166 if test $ac_cv_prog_gcc_traditional = yes; then
21167 CC="$CC -traditional"
21168 fi
21169fi
21170
21171
21172########
21173#
21174# Set defines required to build DLLs and modules using MinGW
21175#
21176########
21177# These options are set for multi-thread DLL module build
21178# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21179# module: _DLL
21180# executable/Magick++: _DLL _MAGICKMOD_
21181MODULE_EXTRA_CPPFLAGS=''
21182LIBRARY_EXTRA_CPPFLAGS=''
21183if test "${native_win32_build}" = 'yes'; then
21184 if test "${libtool_build_shared_libs}" = 'yes'; then
21185 CPPFLAGS="$CPPFLAGS -D_DLL"
21186 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21187 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21188 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021189 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021190 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21191 else
21192 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21193 fi
21194 else
21195 CPPFLAGS="$CPPFLAGS -D_LIB"
21196 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21197 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21198 fi
21199 if test "$with_threads" = 'yes'; then
21200 CPPFLAGS="$CPPFLAGS -D_MT"
21201 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21202 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21203 fi
21204fi
21205
21206
21207
21208# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021210$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021211if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021212 $as_echo_n "(cached) " >&6
21213else
cristy8b350f62009-11-15 23:12:43 +000021214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021215/* end confdefs.h. */
21216#include <stdlib.h>
21217#include <stdarg.h>
21218#include <string.h>
21219#include <float.h>
21220
21221int
21222main ()
21223{
21224
21225 ;
21226 return 0;
21227}
21228_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021229if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021230 ac_cv_header_stdc=yes
21231else
cristy8b350f62009-11-15 23:12:43 +000021232 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021233fi
cristy3ed852e2009-09-05 21:47:34 +000021234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21235
21236if test $ac_cv_header_stdc = yes; then
21237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021239/* end confdefs.h. */
21240#include <string.h>
21241
21242_ACEOF
21243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021244 $EGREP "memchr" >/dev/null 2>&1; then :
21245
cristy3ed852e2009-09-05 21:47:34 +000021246else
21247 ac_cv_header_stdc=no
21248fi
21249rm -f conftest*
21250
21251fi
21252
21253if test $ac_cv_header_stdc = yes; then
21254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021256/* end confdefs.h. */
21257#include <stdlib.h>
21258
21259_ACEOF
21260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021261 $EGREP "free" >/dev/null 2>&1; then :
21262
cristy3ed852e2009-09-05 21:47:34 +000021263else
21264 ac_cv_header_stdc=no
21265fi
21266rm -f conftest*
21267
21268fi
21269
21270if test $ac_cv_header_stdc = yes; then
21271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021272 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021273 :
21274else
cristy8b350f62009-11-15 23:12:43 +000021275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021276/* end confdefs.h. */
21277#include <ctype.h>
21278#include <stdlib.h>
21279#if ((' ' & 0x0FF) == 0x020)
21280# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21281# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21282#else
21283# define ISLOWER(c) \
21284 (('a' <= (c) && (c) <= 'i') \
21285 || ('j' <= (c) && (c) <= 'r') \
21286 || ('s' <= (c) && (c) <= 'z'))
21287# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21288#endif
21289
21290#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21291int
21292main ()
21293{
21294 int i;
21295 for (i = 0; i < 256; i++)
21296 if (XOR (islower (i), ISLOWER (i))
21297 || toupper (i) != TOUPPER (i))
21298 return 2;
21299 return 0;
21300}
21301_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021302if ac_fn_c_try_run "$LINENO"; then :
21303
cristy3ed852e2009-09-05 21:47:34 +000021304else
cristy8b350f62009-11-15 23:12:43 +000021305 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021306fi
cristy8b350f62009-11-15 23:12:43 +000021307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21308 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021309fi
21310
cristy3ed852e2009-09-05 21:47:34 +000021311fi
21312fi
cristy8b350f62009-11-15 23:12:43 +000021313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021314$as_echo "$ac_cv_header_stdc" >&6; }
21315if test $ac_cv_header_stdc = yes; then
21316
cristy8b350f62009-11-15 23:12:43 +000021317$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021318
21319fi
21320
21321if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021322 { $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 +000021323 header files. Compilation cannot proceed. Please install the ANSI C
21324 headers and rerun this script." >&5
21325$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21326 header files. Compilation cannot proceed. Please install the ANSI C
21327 headers and rerun this script." >&2;};
21328fi
cristya0b81c32010-01-22 02:54:33 +000021329
21330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21331$as_echo_n "checking whether to enable assertions... " >&6; }
21332 # Check whether --enable-assert was given.
21333if test "${enable_assert+set}" = set; then :
21334 enableval=$enable_assert; ac_enable_assert=$enableval
21335 if test "x$enableval" = xno; then :
21336
21337$as_echo "#define NDEBUG 1" >>confdefs.h
21338
21339elif test "x$enableval" != xyes; then :
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21341$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21342 ac_enable_assert=yes
21343fi
21344else
21345 ac_enable_assert=yes
21346fi
21347
21348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21349$as_echo "$ac_enable_assert" >&6; }
21350
cristy3ed852e2009-09-05 21:47:34 +000021351ac_header_dirent=no
21352for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21353 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021355$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021356if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021357 $as_echo_n "(cached) " >&6
21358else
cristy8b350f62009-11-15 23:12:43 +000021359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021360/* end confdefs.h. */
21361#include <sys/types.h>
21362#include <$ac_hdr>
21363
21364int
21365main ()
21366{
21367if ((DIR *) 0)
21368return 0;
21369 ;
21370 return 0;
21371}
21372_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021373if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021374 eval "$as_ac_Header=yes"
21375else
cristy8b350f62009-11-15 23:12:43 +000021376 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021377fi
cristy3ed852e2009-09-05 21:47:34 +000021378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21379fi
cristy8b350f62009-11-15 23:12:43 +000021380eval ac_res=\$$as_ac_Header
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021382$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021383if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021384 cat >>confdefs.h <<_ACEOF
21385#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21386_ACEOF
21387
21388ac_header_dirent=$ac_hdr; break
21389fi
21390
21391done
21392# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21393if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021395$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021396if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021397 $as_echo_n "(cached) " >&6
21398else
21399 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021401/* end confdefs.h. */
21402
21403/* Override any GCC internal prototype to avoid an error.
21404 Use char because int might match the return type of a GCC
21405 builtin and then its argument prototype would still apply. */
21406#ifdef __cplusplus
21407extern "C"
21408#endif
21409char opendir ();
21410int
21411main ()
21412{
21413return opendir ();
21414 ;
21415 return 0;
21416}
21417_ACEOF
21418for ac_lib in '' dir; do
21419 if test -z "$ac_lib"; then
21420 ac_res="none required"
21421 else
21422 ac_res=-l$ac_lib
21423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21424 fi
cristy8b350f62009-11-15 23:12:43 +000021425 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021426 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021427fi
cristy8b350f62009-11-15 23:12:43 +000021428rm -f core conftest.err conftest.$ac_objext \
21429 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021430 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021431 break
21432fi
21433done
cristyda16f162011-02-19 23:52:17 +000021434if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021435
cristy3ed852e2009-09-05 21:47:34 +000021436else
21437 ac_cv_search_opendir=no
21438fi
21439rm conftest.$ac_ext
21440LIBS=$ac_func_search_save_LIBS
21441fi
cristy8b350f62009-11-15 23:12:43 +000021442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021443$as_echo "$ac_cv_search_opendir" >&6; }
21444ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021445if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021446 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21447
21448fi
21449
21450else
cristy8b350f62009-11-15 23:12:43 +000021451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021452$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021453if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021454 $as_echo_n "(cached) " >&6
21455else
21456 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021458/* end confdefs.h. */
21459
21460/* Override any GCC internal prototype to avoid an error.
21461 Use char because int might match the return type of a GCC
21462 builtin and then its argument prototype would still apply. */
21463#ifdef __cplusplus
21464extern "C"
21465#endif
21466char opendir ();
21467int
21468main ()
21469{
21470return opendir ();
21471 ;
21472 return 0;
21473}
21474_ACEOF
21475for ac_lib in '' x; do
21476 if test -z "$ac_lib"; then
21477 ac_res="none required"
21478 else
21479 ac_res=-l$ac_lib
21480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21481 fi
cristy8b350f62009-11-15 23:12:43 +000021482 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021483 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021484fi
cristy8b350f62009-11-15 23:12:43 +000021485rm -f core conftest.err conftest.$ac_objext \
21486 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021487 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021488 break
21489fi
21490done
cristyda16f162011-02-19 23:52:17 +000021491if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021492
cristy3ed852e2009-09-05 21:47:34 +000021493else
21494 ac_cv_search_opendir=no
21495fi
21496rm conftest.$ac_ext
21497LIBS=$ac_func_search_save_LIBS
21498fi
cristy8b350f62009-11-15 23:12:43 +000021499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021500$as_echo "$ac_cv_search_opendir" >&6; }
21501ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021502if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21504
21505fi
21506
21507fi
21508
21509
21510# Check additional headers
cristy9a4137e2013-01-04 18:49:29 +000021511for 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 netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/socket.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 +000021512do :
21513 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21514ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021515if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021516 cat >>confdefs.h <<_ACEOF
21517#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21518_ACEOF
21519
21520fi
21521
21522done
21523
21524
21525########
21526#
21527# Checks for typedefs, structures, and compiler characteristics.
21528#
21529########
21530
cristy8b350f62009-11-15 23:12:43 +000021531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021532$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021533if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021534 $as_echo_n "(cached) " >&6
21535else
cristy8b350f62009-11-15 23:12:43 +000021536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021537/* end confdefs.h. */
21538
cristy14fefe52012-05-21 00:59:18 +000021539 #include <stdbool.h>
21540 #ifndef bool
21541 "error: bool is not defined"
21542 #endif
21543 #ifndef false
21544 "error: false is not defined"
21545 #endif
21546 #if false
21547 "error: false is not 0"
21548 #endif
21549 #ifndef true
21550 "error: true is not defined"
21551 #endif
21552 #if true != 1
21553 "error: true is not 1"
21554 #endif
21555 #ifndef __bool_true_false_are_defined
21556 "error: __bool_true_false_are_defined is not defined"
21557 #endif
cristy3ed852e2009-09-05 21:47:34 +000021558
cristy14fefe52012-05-21 00:59:18 +000021559 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021560
cristy14fefe52012-05-21 00:59:18 +000021561 char a[true == 1 ? 1 : -1];
21562 char b[false == 0 ? 1 : -1];
21563 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21564 char d[(bool) 0.5 == true ? 1 : -1];
21565 /* See body of main program for 'e'. */
21566 char f[(_Bool) 0.0 == false ? 1 : -1];
21567 char g[true];
21568 char h[sizeof (_Bool)];
21569 char i[sizeof s.t];
21570 enum { j = false, k = true, l = false * true, m = true * 256 };
21571 /* The following fails for
21572 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21573 _Bool n[m];
21574 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21575 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21576 /* Catch a bug in an HP-UX C compiler. See
21577 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21578 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21579 */
21580 _Bool q = true;
21581 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021582
21583int
21584main ()
21585{
21586
cristy14fefe52012-05-21 00:59:18 +000021587 bool e = &s;
21588 *pq |= q;
21589 *pq |= ! q;
21590 /* Refer to every declared value, to avoid compiler optimizations. */
21591 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21592 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021593
21594 ;
21595 return 0;
21596}
21597_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021598if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021599 ac_cv_header_stdbool_h=yes
21600else
cristy8b350f62009-11-15 23:12:43 +000021601 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021602fi
cristy3ed852e2009-09-05 21:47:34 +000021603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21604fi
cristy8b350f62009-11-15 23:12:43 +000021605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021606$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021607 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021608if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021609
21610cat >>confdefs.h <<_ACEOF
21611#define HAVE__BOOL 1
21612_ACEOF
21613
21614
21615fi
21616
cristy14fefe52012-05-21 00:59:18 +000021617
cristy3ed852e2009-09-05 21:47:34 +000021618if test $ac_cv_header_stdbool_h = yes; then
21619
cristy8b350f62009-11-15 23:12:43 +000021620$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021621
21622fi
21623
cristy8b350f62009-11-15 23:12:43 +000021624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021625$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021626if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021627 $as_echo_n "(cached) " >&6
21628else
cristy8b350f62009-11-15 23:12:43 +000021629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021630/* end confdefs.h. */
21631
21632int
21633main ()
21634{
21635
21636volatile int x;
21637int * volatile y = (int *) 0;
21638return !x && !y;
21639 ;
21640 return 0;
21641}
21642_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021643if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021644 ac_cv_c_volatile=yes
21645else
cristy8b350f62009-11-15 23:12:43 +000021646 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021647fi
cristy3ed852e2009-09-05 21:47:34 +000021648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21649fi
cristy8b350f62009-11-15 23:12:43 +000021650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021651$as_echo "$ac_cv_c_volatile" >&6; }
21652if test $ac_cv_c_volatile = no; then
21653
cristy8b350f62009-11-15 23:12:43 +000021654$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021655
21656fi
21657
cristy8b350f62009-11-15 23:12:43 +000021658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021659$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021660if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021661 $as_echo_n "(cached) " >&6
21662else
cristy8b350f62009-11-15 23:12:43 +000021663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021664/* end confdefs.h. */
21665#define x(y) #y
21666
21667char *s = x(teststring);
21668_ACEOF
21669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021670 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021671 ac_cv_c_stringize=no
21672else
21673 ac_cv_c_stringize=yes
21674fi
21675rm -f conftest*
21676
21677fi
cristy8b350f62009-11-15 23:12:43 +000021678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021679$as_echo "$ac_cv_c_stringize" >&6; }
21680if test $ac_cv_c_stringize = yes; then
21681
cristy8b350f62009-11-15 23:12:43 +000021682$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021683
21684fi
21685
cristy8b350f62009-11-15 23:12:43 +000021686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021687$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021688if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021689 $as_echo_n "(cached) " >&6
21690else
cristy8b350f62009-11-15 23:12:43 +000021691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021692/* end confdefs.h. */
21693#include <sys/types.h>
21694#include <sys/stat.h>
21695
21696#if defined S_ISBLK && defined S_IFDIR
21697extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21698#endif
21699
21700#if defined S_ISBLK && defined S_IFCHR
21701extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21702#endif
21703
21704#if defined S_ISLNK && defined S_IFREG
21705extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21706#endif
21707
21708#if defined S_ISSOCK && defined S_IFREG
21709extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21710#endif
21711
21712_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021713if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021714 ac_cv_header_stat_broken=no
21715else
cristy8b350f62009-11-15 23:12:43 +000021716 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021717fi
cristy3ed852e2009-09-05 21:47:34 +000021718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21719fi
cristy8b350f62009-11-15 23:12:43 +000021720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021721$as_echo "$ac_cv_header_stat_broken" >&6; }
21722if test $ac_cv_header_stat_broken = yes; then
21723
cristy8b350f62009-11-15 23:12:43 +000021724$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021725
21726fi
21727
cristy8b350f62009-11-15 23:12:43 +000021728{ $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 +000021729$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021730if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021731 $as_echo_n "(cached) " >&6
21732else
cristy8b350f62009-11-15 23:12:43 +000021733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021734/* end confdefs.h. */
21735#include <sys/types.h>
21736#include <sys/time.h>
21737#include <time.h>
21738
21739int
21740main ()
21741{
21742if ((struct tm *) 0)
21743return 0;
21744 ;
21745 return 0;
21746}
21747_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021748if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021749 ac_cv_header_time=yes
21750else
cristy8b350f62009-11-15 23:12:43 +000021751 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021752fi
cristy3ed852e2009-09-05 21:47:34 +000021753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21754fi
cristy8b350f62009-11-15 23:12:43 +000021755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021756$as_echo "$ac_cv_header_time" >&6; }
21757if test $ac_cv_header_time = yes; then
21758
cristy8b350f62009-11-15 23:12:43 +000021759$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021760
21761fi
21762
cristy8b350f62009-11-15 23:12:43 +000021763{ $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 +000021764$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021765if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021766 $as_echo_n "(cached) " >&6
21767else
cristy8b350f62009-11-15 23:12:43 +000021768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021769/* end confdefs.h. */
21770#include <sys/types.h>
21771#include <time.h>
21772
21773int
21774main ()
21775{
21776struct tm tm;
21777 int *p = &tm.tm_sec;
21778 return !p;
21779 ;
21780 return 0;
21781}
21782_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021783if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021784 ac_cv_struct_tm=time.h
21785else
cristy8b350f62009-11-15 23:12:43 +000021786 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021787fi
cristy3ed852e2009-09-05 21:47:34 +000021788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21789fi
cristy8b350f62009-11-15 23:12:43 +000021790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021791$as_echo "$ac_cv_struct_tm" >&6; }
21792if test $ac_cv_struct_tm = sys/time.h; then
21793
cristy8b350f62009-11-15 23:12:43 +000021794$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021795
21796fi
21797
cristy92703d82010-04-26 00:18:18 +000021798ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21799#include <$ac_cv_struct_tm>
21800
21801"
cristyda16f162011-02-19 23:52:17 +000021802if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021803
21804cat >>confdefs.h <<_ACEOF
21805#define HAVE_STRUCT_TM_TM_ZONE 1
21806_ACEOF
21807
21808
21809fi
21810
21811if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21812
21813$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21814
21815else
21816 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21817"
cristyda16f162011-02-19 23:52:17 +000021818if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021819 ac_have_decl=1
21820else
21821 ac_have_decl=0
21822fi
21823
21824cat >>confdefs.h <<_ACEOF
21825#define HAVE_DECL_TZNAME $ac_have_decl
21826_ACEOF
21827
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21829$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021830if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021831 $as_echo_n "(cached) " >&6
21832else
21833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21834/* end confdefs.h. */
21835#include <time.h>
21836#if !HAVE_DECL_TZNAME
21837extern char *tzname[];
21838#endif
21839
21840int
21841main ()
21842{
21843return tzname[0][0];
21844 ;
21845 return 0;
21846}
21847_ACEOF
21848if ac_fn_c_try_link "$LINENO"; then :
21849 ac_cv_var_tzname=yes
21850else
21851 ac_cv_var_tzname=no
21852fi
21853rm -f core conftest.err conftest.$ac_objext \
21854 conftest$ac_exeext conftest.$ac_ext
21855fi
21856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21857$as_echo "$ac_cv_var_tzname" >&6; }
21858 if test $ac_cv_var_tzname = yes; then
21859
21860$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21861
21862 fi
21863fi
21864
cristy8b350f62009-11-15 23:12:43 +000021865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021866$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021867if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021868 $as_echo_n "(cached) " >&6
21869else
21870 echo '#! /bin/cat
21871exit 69
21872' >conftest
21873chmod u+x conftest
21874(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21875if test $? -ne 69; then
21876 ac_cv_sys_interpreter=yes
21877else
21878 ac_cv_sys_interpreter=no
21879fi
21880rm -f conftest
21881fi
cristy8b350f62009-11-15 23:12:43 +000021882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021883$as_echo "$ac_cv_sys_interpreter" >&6; }
21884interpval=$ac_cv_sys_interpreter
21885
21886
cristye80f9cb2013-01-09 01:09:31 +000021887#
21888# Checks for language qualifiers and semantics.
21889#
21890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21891$as_echo_n "checking whether char is unsigned... " >&6; }
21892if ${ac_cv_c_char_unsigned+:} false; then :
21893 $as_echo_n "(cached) " >&6
21894else
21895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21896/* end confdefs.h. */
21897$ac_includes_default
21898int
21899main ()
21900{
21901static int test_array [1 - 2 * !(((char) -1) < 0)];
21902test_array [0] = 0;
21903return test_array [0];
21904
21905 ;
21906 return 0;
21907}
21908_ACEOF
21909if ac_fn_c_try_compile "$LINENO"; then :
21910 ac_cv_c_char_unsigned=no
21911else
21912 ac_cv_c_char_unsigned=yes
21913fi
21914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21915fi
21916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21917$as_echo "$ac_cv_c_char_unsigned" >&6; }
21918if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21919 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21920
21921fi
21922
21923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21924$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21925if ${ac_cv_c_const+:} false; then :
21926 $as_echo_n "(cached) " >&6
21927else
21928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21929/* end confdefs.h. */
21930
21931int
21932main ()
21933{
21934
21935#ifndef __cplusplus
21936 /* Ultrix mips cc rejects this sort of thing. */
21937 typedef int charset[2];
21938 const charset cs = { 0, 0 };
21939 /* SunOS 4.1.1 cc rejects this. */
21940 char const *const *pcpcc;
21941 char **ppc;
21942 /* NEC SVR4.0.2 mips cc rejects this. */
21943 struct point {int x, y;};
21944 static struct point const zero = {0,0};
21945 /* AIX XL C 1.02.0.0 rejects this.
21946 It does not let you subtract one const X* pointer from another in
21947 an arm of an if-expression whose if-part is not a constant
21948 expression */
21949 const char *g = "string";
21950 pcpcc = &g + (g ? g-g : 0);
21951 /* HPUX 7.0 cc rejects these. */
21952 ++pcpcc;
21953 ppc = (char**) pcpcc;
21954 pcpcc = (char const *const *) ppc;
21955 { /* SCO 3.2v4 cc rejects this sort of thing. */
21956 char tx;
21957 char *t = &tx;
21958 char const *s = 0 ? (char *) 0 : (char const *) 0;
21959
21960 *t++ = 0;
21961 if (s) return 0;
21962 }
21963 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21964 int x[] = {25, 17};
21965 const int *foo = &x[0];
21966 ++foo;
21967 }
21968 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21969 typedef const int *iptr;
21970 iptr p = 0;
21971 ++p;
21972 }
21973 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
21974 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21975 struct s { int j; const int *ap[3]; } bx;
21976 struct s *b = &bx; b->j = 5;
21977 }
21978 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21979 const int foo = 10;
21980 if (!foo) return 0;
21981 }
21982 return !cs[0] && !zero.x;
21983#endif
21984
21985 ;
21986 return 0;
21987}
21988_ACEOF
21989if ac_fn_c_try_compile "$LINENO"; then :
21990 ac_cv_c_const=yes
21991else
21992 ac_cv_c_const=no
21993fi
21994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21995fi
21996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
21997$as_echo "$ac_cv_c_const" >&6; }
21998if test $ac_cv_c_const = no; then
21999
22000$as_echo "#define const /**/" >>confdefs.h
22001
22002fi
22003
cristy8b350f62009-11-15 23:12:43 +000022004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022005$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022006if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022007 $as_echo_n "(cached) " >&6
22008else
22009 ac_cv_c_inline=no
22010for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022012/* end confdefs.h. */
22013#ifndef __cplusplus
22014typedef int foo_t;
22015static $ac_kw foo_t static_foo () {return 0; }
22016$ac_kw foo_t foo () {return 0; }
22017#endif
22018
22019_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022020if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022021 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022022fi
cristy3ed852e2009-09-05 21:47:34 +000022023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22024 test "$ac_cv_c_inline" != no && break
22025done
22026
22027fi
cristy8b350f62009-11-15 23:12:43 +000022028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022029$as_echo "$ac_cv_c_inline" >&6; }
22030
cristy3ed852e2009-09-05 21:47:34 +000022031case $ac_cv_c_inline in
22032 inline | yes) ;;
22033 *)
22034 case $ac_cv_c_inline in
22035 no) ac_val=;;
22036 *) ac_val=$ac_cv_c_inline;;
22037 esac
22038 cat >>confdefs.h <<_ACEOF
22039#ifndef __cplusplus
22040#define inline $ac_val
22041#endif
22042_ACEOF
22043 ;;
22044esac
22045
cristy8b350f62009-11-15 23:12:43 +000022046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022047$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022048if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022049 $as_echo_n "(cached) " >&6
22050else
22051 ac_cv_c_restrict=no
22052 # The order here caters to the fact that C++ does not require restrict.
22053 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022055/* end confdefs.h. */
22056typedef int * int_ptr;
22057 int foo (int_ptr $ac_kw ip) {
22058 return ip[0];
22059 }
22060int
22061main ()
22062{
22063int s[1];
22064 int * $ac_kw t = s;
22065 t[0] = 0;
22066 return foo(t)
22067 ;
22068 return 0;
22069}
22070_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022071if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022072 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022073fi
cristy3ed852e2009-09-05 21:47:34 +000022074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22075 test "$ac_cv_c_restrict" != no && break
22076 done
22077
22078fi
cristy8b350f62009-11-15 23:12:43 +000022079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022080$as_echo "$ac_cv_c_restrict" >&6; }
22081
cristy3ed852e2009-09-05 21:47:34 +000022082 case $ac_cv_c_restrict in
22083 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022084 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022085 ;;
22086 *) cat >>confdefs.h <<_ACEOF
22087#define restrict $ac_cv_c_restrict
22088_ACEOF
22089 ;;
22090 esac
22091
cristye80f9cb2013-01-09 01:09:31 +000022092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22093$as_echo_n "checking for working volatile... " >&6; }
22094if ${ac_cv_c_volatile+:} false; then :
22095 $as_echo_n "(cached) " >&6
22096else
22097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22098/* end confdefs.h. */
22099
22100int
22101main ()
22102{
22103
22104volatile int x;
22105int * volatile y = (int *) 0;
22106return !x && !y;
22107 ;
22108 return 0;
22109}
22110_ACEOF
22111if ac_fn_c_try_compile "$LINENO"; then :
22112 ac_cv_c_volatile=yes
22113else
22114 ac_cv_c_volatile=no
22115fi
22116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22117fi
22118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22119$as_echo "$ac_cv_c_volatile" >&6; }
22120if test $ac_cv_c_volatile = no; then
22121
22122$as_echo "#define volatile /**/" >>confdefs.h
22123
22124fi
22125
cristy3ed852e2009-09-05 21:47:34 +000022126
22127# If words are stored with the most significant byte first (like
22128# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022130$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022131if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022132 $as_echo_n "(cached) " >&6
22133else
22134 ac_cv_c_bigendian=unknown
22135 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022137/* end confdefs.h. */
22138#ifndef __APPLE_CC__
22139 not a universal capable compiler
22140 #endif
22141 typedef int dummy;
22142
22143_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022144if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022145
22146 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022147 # there are at least two -arch flags with different values.
22148 ac_arch=
22149 ac_prev=
22150 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22151 if test -n "$ac_prev"; then
22152 case $ac_word in
22153 i?86 | x86_64 | ppc | ppc64)
22154 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22155 ac_arch=$ac_word
22156 else
22157 ac_cv_c_bigendian=universal
22158 break
22159 fi
22160 ;;
22161 esac
22162 ac_prev=
22163 elif test "x$ac_word" = "x-arch"; then
22164 ac_prev=arch
22165 fi
22166 done
cristy3ed852e2009-09-05 21:47:34 +000022167fi
cristy3ed852e2009-09-05 21:47:34 +000022168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22169 if test $ac_cv_c_bigendian = unknown; then
22170 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022172/* end confdefs.h. */
22173#include <sys/types.h>
22174 #include <sys/param.h>
22175
22176int
22177main ()
22178{
22179#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22180 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22181 && LITTLE_ENDIAN)
22182 bogus endian macros
22183 #endif
22184
22185 ;
22186 return 0;
22187}
22188_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022189if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022190 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022192/* end confdefs.h. */
22193#include <sys/types.h>
22194 #include <sys/param.h>
22195
22196int
22197main ()
22198{
22199#if BYTE_ORDER != BIG_ENDIAN
22200 not big endian
22201 #endif
22202
22203 ;
22204 return 0;
22205}
22206_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022207if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022208 ac_cv_c_bigendian=yes
22209else
cristy8b350f62009-11-15 23:12:43 +000022210 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022211fi
cristy3ed852e2009-09-05 21:47:34 +000022212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022213fi
cristy3ed852e2009-09-05 21:47:34 +000022214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22215 fi
22216 if test $ac_cv_c_bigendian = unknown; then
22217 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022219/* end confdefs.h. */
22220#include <limits.h>
22221
22222int
22223main ()
22224{
22225#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22226 bogus endian macros
22227 #endif
22228
22229 ;
22230 return 0;
22231}
22232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022233if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022234 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022236/* end confdefs.h. */
22237#include <limits.h>
22238
22239int
22240main ()
22241{
22242#ifndef _BIG_ENDIAN
22243 not big endian
22244 #endif
22245
22246 ;
22247 return 0;
22248}
22249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022250if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022251 ac_cv_c_bigendian=yes
22252else
cristy8b350f62009-11-15 23:12:43 +000022253 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022254fi
cristy3ed852e2009-09-05 21:47:34 +000022255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022256fi
cristy3ed852e2009-09-05 21:47:34 +000022257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22258 fi
22259 if test $ac_cv_c_bigendian = unknown; then
22260 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022261 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022262 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022264/* end confdefs.h. */
22265short int ascii_mm[] =
22266 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22267 short int ascii_ii[] =
22268 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22269 int use_ascii (int i) {
22270 return ascii_mm[i] + ascii_ii[i];
22271 }
22272 short int ebcdic_ii[] =
22273 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22274 short int ebcdic_mm[] =
22275 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22276 int use_ebcdic (int i) {
22277 return ebcdic_mm[i] + ebcdic_ii[i];
22278 }
22279 extern int foo;
22280
22281int
22282main ()
22283{
22284return use_ascii (foo) == use_ebcdic (foo);
22285 ;
22286 return 0;
22287}
22288_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022289if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022290 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22291 ac_cv_c_bigendian=yes
22292 fi
22293 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22294 if test "$ac_cv_c_bigendian" = unknown; then
22295 ac_cv_c_bigendian=no
22296 else
22297 # finding both strings is unlikely to happen, but who knows?
22298 ac_cv_c_bigendian=unknown
22299 fi
22300 fi
cristy3ed852e2009-09-05 21:47:34 +000022301fi
cristy3ed852e2009-09-05 21:47:34 +000022302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22303else
cristy8b350f62009-11-15 23:12:43 +000022304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022305/* end confdefs.h. */
22306$ac_includes_default
22307int
22308main ()
22309{
22310
22311 /* Are we little or big endian? From Harbison&Steele. */
22312 union
22313 {
22314 long int l;
22315 char c[sizeof (long int)];
22316 } u;
22317 u.l = 1;
22318 return u.c[sizeof (long int) - 1] == 1;
22319
22320 ;
22321 return 0;
22322}
22323_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022324if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022325 ac_cv_c_bigendian=no
22326else
cristy8b350f62009-11-15 23:12:43 +000022327 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022328fi
cristy8b350f62009-11-15 23:12:43 +000022329rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22330 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022331fi
22332
cristy3ed852e2009-09-05 21:47:34 +000022333 fi
22334fi
cristy8b350f62009-11-15 23:12:43 +000022335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022336$as_echo "$ac_cv_c_bigendian" >&6; }
22337 case $ac_cv_c_bigendian in #(
22338 yes)
cristy8b350f62009-11-15 23:12:43 +000022339 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022340;; #(
22341 no)
22342 ;; #(
22343 universal)
22344
cristy8b350f62009-11-15 23:12:43 +000022345$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022346
22347 ;; #(
22348 *)
cristy98dddb52010-11-04 00:30:15 +000022349 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022350 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022351 esac
22352
22353
cristy501c8042011-05-26 17:46:28 +000022354# Define to a suitable type, if standard headers do not define it.
22355ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22356case $ac_cv_c_int8_t in #(
22357 no|yes) ;; #(
22358 *)
cristy3ed852e2009-09-05 21:47:34 +000022359
22360cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022361#define int8_t $ac_cv_c_int8_t
22362_ACEOF
22363;;
22364esac
22365
22366ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22367case $ac_cv_c_int16_t in #(
22368 no|yes) ;; #(
22369 *)
22370
22371cat >>confdefs.h <<_ACEOF
22372#define int16_t $ac_cv_c_int16_t
22373_ACEOF
22374;;
22375esac
22376
22377ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22378case $ac_cv_c_int32_t in #(
22379 no|yes) ;; #(
22380 *)
22381
22382cat >>confdefs.h <<_ACEOF
22383#define int32_t $ac_cv_c_int32_t
22384_ACEOF
22385;;
22386esac
22387
22388ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22389case $ac_cv_c_int64_t in #(
22390 no|yes) ;; #(
22391 *)
22392
22393cat >>confdefs.h <<_ACEOF
22394#define int64_t $ac_cv_c_int64_t
22395_ACEOF
22396;;
22397esac
22398
22399
cristycc22d1d2012-12-10 13:03:25 +000022400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22401$as_echo_n "checking for unsigned long long int... " >&6; }
22402if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022403 $as_echo_n "(cached) " >&6
22404else
cristycc22d1d2012-12-10 13:03:25 +000022405 ac_cv_type_unsigned_long_long_int=yes
22406 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022408/* end confdefs.h. */
22409
22410 /* For now, do not test the preprocessor; as of 2007 there are too many
cristycc22d1d2012-12-10 13:03:25 +000022411 implementations with broken preprocessors. Perhaps this can
22412 be revisited in 2012. In the meantime, code should not expect
22413 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022414 /* Test literals. */
22415 long long int ll = 9223372036854775807ll;
22416 long long int nll = -9223372036854775807LL;
22417 unsigned long long int ull = 18446744073709551615ULL;
22418 /* Test constant expressions. */
22419 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristycc22d1d2012-12-10 13:03:25 +000022420 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022421 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristycc22d1d2012-12-10 13:03:25 +000022422 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022423 int i = 63;
22424int
22425main ()
22426{
22427/* Test availability of runtime routines for shift and division. */
22428 long long int llmax = 9223372036854775807ll;
22429 unsigned long long int ullmax = 18446744073709551615ull;
22430 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristycc22d1d2012-12-10 13:03:25 +000022431 | (llmax / ll) | (llmax % ll)
22432 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22433 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022434 ;
22435 return 0;
22436}
22437
22438_ACEOF
22439if ac_fn_c_try_link "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022440
22441else
22442 ac_cv_type_unsigned_long_long_int=no
22443fi
22444rm -f core conftest.err conftest.$ac_objext \
22445 conftest$ac_exeext conftest.$ac_ext
22446 fi
22447fi
22448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22449$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22450 if test $ac_cv_type_unsigned_long_long_int = yes; then
22451
22452$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22453
22454 fi
22455
22456
22457
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22459$as_echo_n "checking for long long int... " >&6; }
22460if ${ac_cv_type_long_long_int+:} false; then :
22461 $as_echo_n "(cached) " >&6
22462else
cristy501c8042011-05-26 17:46:28 +000022463 ac_cv_type_long_long_int=yes
cristycc22d1d2012-12-10 13:03:25 +000022464 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22465 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22466 if test $ac_cv_type_long_long_int = yes; then
22467 if test "$cross_compiling" = yes; then :
22468 :
cristy501c8042011-05-26 17:46:28 +000022469else
22470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22471/* end confdefs.h. */
22472#include <limits.h>
cristycc22d1d2012-12-10 13:03:25 +000022473 #ifndef LLONG_MAX
22474 # define HALF \
22475 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22476 # define LLONG_MAX (HALF - 1 + HALF)
22477 #endif
cristy501c8042011-05-26 17:46:28 +000022478int
22479main ()
22480{
22481long long int n = 1;
cristycc22d1d2012-12-10 13:03:25 +000022482 int i;
22483 for (i = 0; ; i++)
22484 {
22485 long long int m = n << i;
22486 if (m >> i != n)
22487 return 1;
22488 if (LLONG_MAX / 2 < m)
22489 break;
22490 }
22491 return 0;
cristy501c8042011-05-26 17:46:28 +000022492 ;
22493 return 0;
22494}
22495_ACEOF
22496if ac_fn_c_try_run "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022497
cristy501c8042011-05-26 17:46:28 +000022498else
22499 ac_cv_type_long_long_int=no
22500fi
22501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22502 conftest.$ac_objext conftest.beam conftest.$ac_ext
22503fi
22504
cristycc22d1d2012-12-10 13:03:25 +000022505 fi
22506 fi
cristy501c8042011-05-26 17:46:28 +000022507fi
22508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22509$as_echo "$ac_cv_type_long_long_int" >&6; }
22510 if test $ac_cv_type_long_long_int = yes; then
22511
22512$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22513
22514 fi
22515
22516
22517
22518 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22519if test "x$ac_cv_type_intmax_t" = xyes; then :
22520
22521$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22522
22523else
22524 test $ac_cv_type_long_long_int = yes \
22525 && ac_type='long long int' \
22526 || ac_type='long int'
22527
22528cat >>confdefs.h <<_ACEOF
22529#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022530_ACEOF
22531
22532fi
22533
22534
cristy501c8042011-05-26 17:46:28 +000022535
22536 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22537if test "x$ac_cv_type_intptr_t" = xyes; then :
22538
22539$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022540
cristy3ed852e2009-09-05 21:47:34 +000022541else
cristy501c8042011-05-26 17:46:28 +000022542 for ac_type in 'int' 'long int' 'long long int'; do
22543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22544/* end confdefs.h. */
22545$ac_includes_default
22546int
22547main ()
22548{
22549static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022550test_array [0] = 0;
22551return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022552
22553 ;
22554 return 0;
22555}
22556_ACEOF
22557if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022558
22559cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022560#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022561_ACEOF
22562
cristy501c8042011-05-26 17:46:28 +000022563 ac_type=
22564fi
22565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22566 test -z "$ac_type" && break
22567 done
cristy3ed852e2009-09-05 21:47:34 +000022568fi
22569
22570
cristy3ed852e2009-09-05 21:47:34 +000022571
cristy501c8042011-05-26 17:46:28 +000022572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22573$as_echo_n "checking for long double... " >&6; }
22574if ${ac_cv_type_long_double+:} false; then :
22575 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022576else
cristy501c8042011-05-26 17:46:28 +000022577 if test "$GCC" = yes; then
22578 ac_cv_type_long_double=yes
22579 else
22580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22581/* end confdefs.h. */
22582/* The Stardent Vistra knows sizeof (long double), but does
22583 not support it. */
22584 long double foo = 0.0L;
22585int
22586main ()
22587{
22588static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22589 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022590test_array [0] = 0;
22591return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022592
cristy501c8042011-05-26 17:46:28 +000022593 ;
22594 return 0;
22595}
cristy3ed852e2009-09-05 21:47:34 +000022596_ACEOF
cristy501c8042011-05-26 17:46:28 +000022597if ac_fn_c_try_compile "$LINENO"; then :
22598 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022599else
cristy501c8042011-05-26 17:46:28 +000022600 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022601fi
cristy501c8042011-05-26 17:46:28 +000022602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22603 fi
cristy3ed852e2009-09-05 21:47:34 +000022604fi
cristy501c8042011-05-26 17:46:28 +000022605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22606$as_echo "$ac_cv_type_long_double" >&6; }
22607 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022608
cristy501c8042011-05-26 17:46:28 +000022609$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022610
cristy501c8042011-05-26 17:46:28 +000022611 fi
22612
cristy3ed852e2009-09-05 21:47:34 +000022613
cristy8b350f62009-11-15 23:12:43 +000022614 { $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 +000022615$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022616if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022617 $as_echo_n "(cached) " >&6
22618else
cristy8b350f62009-11-15 23:12:43 +000022619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022620/* end confdefs.h. */
22621#include <float.h>
22622 long double const a[] =
22623 {
22624 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22625 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22626 };
22627 long double
22628 f (long double x)
22629 {
22630 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22631 + (x ? f (x) : 'c'));
22632 }
22633
22634int
22635main ()
22636{
22637static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22638 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22639 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22640 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22641 && (int) LDBL_EPSILON == 0
22642 )];
cristy14fefe52012-05-21 00:59:18 +000022643test_array [0] = 0;
22644return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022645
22646 ;
22647 return 0;
22648}
22649_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022650if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022651 ac_cv_type_long_double_wider=yes
22652else
cristy8b350f62009-11-15 23:12:43 +000022653 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022654fi
cristy3ed852e2009-09-05 21:47:34 +000022655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22656fi
cristy8b350f62009-11-15 23:12:43 +000022657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022658$as_echo "$ac_cv_type_long_double_wider" >&6; }
22659 if test $ac_cv_type_long_double_wider = yes; then
22660
cristy8b350f62009-11-15 23:12:43 +000022661$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022662
22663 fi
22664
22665
cristycc22d1d2012-12-10 13:03:25 +000022666
cristy501c8042011-05-26 17:46:28 +000022667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22668$as_echo_n "checking for long long int... " >&6; }
22669if ${ac_cv_type_long_long_int+:} false; then :
22670 $as_echo_n "(cached) " >&6
22671else
cristy501c8042011-05-26 17:46:28 +000022672 ac_cv_type_long_long_int=yes
cristycc22d1d2012-12-10 13:03:25 +000022673 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22674 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22675 if test $ac_cv_type_long_long_int = yes; then
22676 if test "$cross_compiling" = yes; then :
22677 :
cristy501c8042011-05-26 17:46:28 +000022678else
22679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22680/* end confdefs.h. */
22681#include <limits.h>
cristycc22d1d2012-12-10 13:03:25 +000022682 #ifndef LLONG_MAX
22683 # define HALF \
22684 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22685 # define LLONG_MAX (HALF - 1 + HALF)
22686 #endif
cristy501c8042011-05-26 17:46:28 +000022687int
22688main ()
22689{
22690long long int n = 1;
cristycc22d1d2012-12-10 13:03:25 +000022691 int i;
22692 for (i = 0; ; i++)
22693 {
22694 long long int m = n << i;
22695 if (m >> i != n)
22696 return 1;
22697 if (LLONG_MAX / 2 < m)
22698 break;
22699 }
22700 return 0;
cristy501c8042011-05-26 17:46:28 +000022701 ;
22702 return 0;
22703}
22704_ACEOF
22705if ac_fn_c_try_run "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022706
cristy501c8042011-05-26 17:46:28 +000022707else
22708 ac_cv_type_long_long_int=no
22709fi
22710rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22711 conftest.$ac_objext conftest.beam conftest.$ac_ext
22712fi
22713
cristycc22d1d2012-12-10 13:03:25 +000022714 fi
22715 fi
cristy501c8042011-05-26 17:46:28 +000022716fi
22717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22718$as_echo "$ac_cv_type_long_long_int" >&6; }
22719 if test $ac_cv_type_long_long_int = yes; then
22720
22721$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22722
22723 fi
22724
22725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22726$as_echo_n "checking for mbstate_t... " >&6; }
22727if ${ac_cv_type_mbstate_t+:} false; then :
22728 $as_echo_n "(cached) " >&6
22729else
22730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22731/* end confdefs.h. */
22732$ac_includes_default
22733# include <wchar.h>
22734int
22735main ()
22736{
22737mbstate_t x; return sizeof x;
22738 ;
22739 return 0;
22740}
22741_ACEOF
22742if ac_fn_c_try_compile "$LINENO"; then :
22743 ac_cv_type_mbstate_t=yes
22744else
22745 ac_cv_type_mbstate_t=no
22746fi
22747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22748fi
22749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22750$as_echo "$ac_cv_type_mbstate_t" >&6; }
22751 if test $ac_cv_type_mbstate_t = yes; then
22752
22753$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22754
22755 else
22756
22757$as_echo "#define mbstate_t int" >>confdefs.h
22758
22759 fi
22760ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22761if test "x$ac_cv_type_mode_t" = xyes; then :
22762
22763else
22764
22765cat >>confdefs.h <<_ACEOF
22766#define mode_t int
22767_ACEOF
22768
22769fi
22770
22771ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22772if test "x$ac_cv_type_off_t" = xyes; then :
22773
22774else
22775
22776cat >>confdefs.h <<_ACEOF
22777#define off_t long int
22778_ACEOF
22779
22780fi
22781
22782ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22783if test "x$ac_cv_type_pid_t" = xyes; then :
22784
22785else
22786
22787cat >>confdefs.h <<_ACEOF
22788#define pid_t int
22789_ACEOF
22790
22791fi
22792
22793ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22794if test "x$ac_cv_type_size_t" = xyes; then :
22795
22796else
22797
22798cat >>confdefs.h <<_ACEOF
22799#define size_t unsigned int
22800_ACEOF
22801
22802fi
22803
22804ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22805if test "x$ac_cv_type_ssize_t" = xyes; then :
22806
22807else
22808
22809cat >>confdefs.h <<_ACEOF
22810#define ssize_t int
22811_ACEOF
22812
22813fi
22814
22815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22816$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22817if ${ac_cv_type_uid_t+:} false; then :
22818 $as_echo_n "(cached) " >&6
22819else
22820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22821/* end confdefs.h. */
22822#include <sys/types.h>
22823
22824_ACEOF
22825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22826 $EGREP "uid_t" >/dev/null 2>&1; then :
22827 ac_cv_type_uid_t=yes
22828else
22829 ac_cv_type_uid_t=no
22830fi
22831rm -f conftest*
22832
22833fi
22834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22835$as_echo "$ac_cv_type_uid_t" >&6; }
22836if test $ac_cv_type_uid_t = no; then
22837
22838$as_echo "#define uid_t int" >>confdefs.h
22839
22840
22841$as_echo "#define gid_t int" >>confdefs.h
22842
22843fi
22844
22845ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22846case $ac_cv_c_uint8_t in #(
22847 no|yes) ;; #(
22848 *)
22849
22850$as_echo "#define _UINT8_T 1" >>confdefs.h
22851
22852
22853cat >>confdefs.h <<_ACEOF
22854#define uint8_t $ac_cv_c_uint8_t
22855_ACEOF
22856;;
22857 esac
22858
22859ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22860case $ac_cv_c_uint16_t in #(
22861 no|yes) ;; #(
22862 *)
22863
22864
22865cat >>confdefs.h <<_ACEOF
22866#define uint16_t $ac_cv_c_uint16_t
22867_ACEOF
22868;;
22869 esac
22870
22871ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22872case $ac_cv_c_uint32_t in #(
22873 no|yes) ;; #(
22874 *)
22875
22876$as_echo "#define _UINT32_T 1" >>confdefs.h
22877
22878
22879cat >>confdefs.h <<_ACEOF
22880#define uint32_t $ac_cv_c_uint32_t
22881_ACEOF
22882;;
22883 esac
22884
22885ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22886case $ac_cv_c_uint64_t in #(
22887 no|yes) ;; #(
22888 *)
22889
22890$as_echo "#define _UINT64_T 1" >>confdefs.h
22891
22892
22893cat >>confdefs.h <<_ACEOF
22894#define uint64_t $ac_cv_c_uint64_t
22895_ACEOF
22896;;
22897 esac
22898
22899
cristy501c8042011-05-26 17:46:28 +000022900
22901 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22902if test "x$ac_cv_type_uintmax_t" = xyes; then :
22903
22904$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22905
22906else
22907 test $ac_cv_type_unsigned_long_long_int = yes \
22908 && ac_type='unsigned long long int' \
22909 || ac_type='unsigned long int'
22910
22911cat >>confdefs.h <<_ACEOF
22912#define uintmax_t $ac_type
22913_ACEOF
22914
22915fi
22916
22917
22918
22919 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
22920if test "x$ac_cv_type_uintptr_t" = xyes; then :
22921
22922$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
22923
22924else
22925 for ac_type in 'unsigned int' 'unsigned long int' \
22926 'unsigned long long int'; do
22927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22928/* end confdefs.h. */
22929$ac_includes_default
22930int
22931main ()
22932{
22933static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022934test_array [0] = 0;
22935return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022936
22937 ;
22938 return 0;
22939}
22940_ACEOF
22941if ac_fn_c_try_compile "$LINENO"; then :
22942
22943cat >>confdefs.h <<_ACEOF
22944#define uintptr_t $ac_type
22945_ACEOF
22946
22947 ac_type=
22948fi
22949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22950 test -z "$ac_type" && break
22951 done
22952fi
22953
22954
22955
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22957$as_echo_n "checking for unsigned long long int... " >&6; }
22958if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22959 $as_echo_n "(cached) " >&6
22960else
cristycc22d1d2012-12-10 13:03:25 +000022961 ac_cv_type_unsigned_long_long_int=yes
22962 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022964/* end confdefs.h. */
22965
22966 /* For now, do not test the preprocessor; as of 2007 there are too many
cristycc22d1d2012-12-10 13:03:25 +000022967 implementations with broken preprocessors. Perhaps this can
22968 be revisited in 2012. In the meantime, code should not expect
22969 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022970 /* Test literals. */
22971 long long int ll = 9223372036854775807ll;
22972 long long int nll = -9223372036854775807LL;
22973 unsigned long long int ull = 18446744073709551615ULL;
22974 /* Test constant expressions. */
22975 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristycc22d1d2012-12-10 13:03:25 +000022976 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022977 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristycc22d1d2012-12-10 13:03:25 +000022978 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022979 int i = 63;
22980int
22981main ()
22982{
22983/* Test availability of runtime routines for shift and division. */
22984 long long int llmax = 9223372036854775807ll;
22985 unsigned long long int ullmax = 18446744073709551615ull;
22986 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristycc22d1d2012-12-10 13:03:25 +000022987 | (llmax / ll) | (llmax % ll)
22988 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22989 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022990 ;
22991 return 0;
22992}
22993
22994_ACEOF
22995if ac_fn_c_try_link "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022996
cristy501c8042011-05-26 17:46:28 +000022997else
22998 ac_cv_type_unsigned_long_long_int=no
22999fi
23000rm -f core conftest.err conftest.$ac_objext \
23001 conftest$ac_exeext conftest.$ac_ext
cristycc22d1d2012-12-10 13:03:25 +000023002 fi
cristy501c8042011-05-26 17:46:28 +000023003fi
23004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23005$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23006 if test $ac_cv_type_unsigned_long_long_int = yes; then
23007
23008$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23009
23010 fi
23011
23012
cristy9b86f202012-11-28 21:55:35 +000023013# Float_t and double_t are intended to be the the most efficient type.
cristyf0cf9a22012-10-24 12:05:01 +000023014ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23015"
23016if test "x$ac_cv_type_float_t" = xyes; then :
23017
23018cat >>confdefs.h <<_ACEOF
23019#define HAVE_FLOAT_T 1
23020_ACEOF
23021
23022
23023fi
23024
23025ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23026"
23027if test "x$ac_cv_type_double_t" = xyes; then :
23028
23029cat >>confdefs.h <<_ACEOF
23030#define HAVE_DOUBLE_T 1
23031_ACEOF
23032
23033
23034fi
23035
cristy9b86f202012-11-28 21:55:35 +000023036# The cast to long int works around a bug in the HP C Compiler
23037# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23038# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23039# This bug is HP SR number 8606223364.
23040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23041$as_echo_n "checking size of float_t... " >&6; }
23042if ${ac_cv_sizeof_float_t+:} false; then :
23043 $as_echo_n "(cached) " >&6
23044else
23045 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23046"; then :
23047
23048else
23049 if test "$ac_cv_type_float_t" = yes; then
23050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23052as_fn_error 77 "cannot compute sizeof (float_t)
23053See \`config.log' for more details" "$LINENO" 5; }
23054 else
23055 ac_cv_sizeof_float_t=0
23056 fi
23057fi
23058
23059fi
23060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23061$as_echo "$ac_cv_sizeof_float_t" >&6; }
23062
23063
23064
23065cat >>confdefs.h <<_ACEOF
23066#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23067_ACEOF
23068
23069
23070# The cast to long int works around a bug in the HP C Compiler
23071# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23072# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23073# This bug is HP SR number 8606223364.
23074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23075$as_echo_n "checking size of double_t... " >&6; }
23076if ${ac_cv_sizeof_double_t+:} false; then :
23077 $as_echo_n "(cached) " >&6
23078else
23079 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23080"; then :
23081
23082else
23083 if test "$ac_cv_type_double_t" = yes; then
23084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23086as_fn_error 77 "cannot compute sizeof (double_t)
23087See \`config.log' for more details" "$LINENO" 5; }
23088 else
23089 ac_cv_sizeof_double_t=0
23090 fi
23091fi
23092
23093fi
23094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23095$as_echo "$ac_cv_sizeof_double_t" >&6; }
23096
23097
23098
23099cat >>confdefs.h <<_ACEOF
23100#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23101_ACEOF
23102
23103
23104
23105# Get size of float, double and long double for comparaison.
23106# The cast to long int works around a bug in the HP C Compiler
23107# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23108# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23109# This bug is HP SR number 8606223364.
23110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23111$as_echo_n "checking size of float... " >&6; }
23112if ${ac_cv_sizeof_float+:} false; then :
23113 $as_echo_n "(cached) " >&6
23114else
23115 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23116
23117else
23118 if test "$ac_cv_type_float" = yes; then
23119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23120$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23121as_fn_error 77 "cannot compute sizeof (float)
23122See \`config.log' for more details" "$LINENO" 5; }
23123 else
23124 ac_cv_sizeof_float=0
23125 fi
23126fi
23127
23128fi
23129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23130$as_echo "$ac_cv_sizeof_float" >&6; }
23131
23132
23133
23134cat >>confdefs.h <<_ACEOF
23135#define SIZEOF_FLOAT $ac_cv_sizeof_float
23136_ACEOF
23137
23138
23139# The cast to long int works around a bug in the HP C Compiler
23140# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23141# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23142# This bug is HP SR number 8606223364.
23143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23144$as_echo_n "checking size of double... " >&6; }
23145if ${ac_cv_sizeof_double+:} false; then :
23146 $as_echo_n "(cached) " >&6
23147else
23148 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23149
23150else
23151 if test "$ac_cv_type_double" = yes; then
23152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23154as_fn_error 77 "cannot compute sizeof (double)
23155See \`config.log' for more details" "$LINENO" 5; }
23156 else
23157 ac_cv_sizeof_double=0
23158 fi
23159fi
23160
23161fi
23162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23163$as_echo "$ac_cv_sizeof_double" >&6; }
23164
23165
23166
23167cat >>confdefs.h <<_ACEOF
23168#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23169_ACEOF
23170
23171
23172# The cast to long int works around a bug in the HP C Compiler
23173# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23174# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23175# This bug is HP SR number 8606223364.
23176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23177$as_echo_n "checking size of long double... " >&6; }
23178if ${ac_cv_sizeof_long_double+:} false; then :
23179 $as_echo_n "(cached) " >&6
23180else
23181 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23182
23183else
23184 if test "$ac_cv_type_long_double" = yes; then
23185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23187as_fn_error 77 "cannot compute sizeof (long double)
23188See \`config.log' for more details" "$LINENO" 5; }
23189 else
23190 ac_cv_sizeof_long_double=0
23191 fi
23192fi
23193
23194fi
23195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23196$as_echo "$ac_cv_sizeof_long_double" >&6; }
23197
23198
23199
23200cat >>confdefs.h <<_ACEOF
23201#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23202_ACEOF
23203
23204
cristyf0cf9a22012-10-24 12:05:01 +000023205
cristy3ed852e2009-09-05 21:47:34 +000023206# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23207# The cast to long int works around a bug in the HP C Compiler
23208# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23209# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23210# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023212$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023213if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023214 $as_echo_n "(cached) " >&6
23215else
cristy8b350f62009-11-15 23:12:43 +000023216 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 +000023217
cristy3ed852e2009-09-05 21:47:34 +000023218else
cristy8b350f62009-11-15 23:12:43 +000023219 if test "$ac_cv_type_signed_short" = yes; then
23220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023222as_fn_error 77 "cannot compute sizeof (signed short)
23223See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023224 else
23225 ac_cv_sizeof_signed_short=0
23226 fi
23227fi
cristy8b350f62009-11-15 23:12:43 +000023228
cristy3ed852e2009-09-05 21:47:34 +000023229fi
cristy8b350f62009-11-15 23:12:43 +000023230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023231$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23232
23233
23234
23235cat >>confdefs.h <<_ACEOF
23236#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23237_ACEOF
23238
23239
23240
23241# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23242# The cast to long int works around a bug in the HP C Compiler
23243# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23244# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23245# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023247$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023248if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023249 $as_echo_n "(cached) " >&6
23250else
cristy8b350f62009-11-15 23:12:43 +000023251 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 +000023252
cristy3ed852e2009-09-05 21:47:34 +000023253else
cristy8b350f62009-11-15 23:12:43 +000023254 if test "$ac_cv_type_unsigned_short" = yes; then
23255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023257as_fn_error 77 "cannot compute sizeof (unsigned short)
23258See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023259 else
23260 ac_cv_sizeof_unsigned_short=0
23261 fi
23262fi
cristy8b350f62009-11-15 23:12:43 +000023263
cristy3ed852e2009-09-05 21:47:34 +000023264fi
cristy8b350f62009-11-15 23:12:43 +000023265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023266$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23267
23268
23269
23270cat >>confdefs.h <<_ACEOF
23271#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23272_ACEOF
23273
23274
23275
23276# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23277# The cast to long int works around a bug in the HP C Compiler
23278# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23279# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23280# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023282$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023283if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023284 $as_echo_n "(cached) " >&6
23285else
cristy8b350f62009-11-15 23:12:43 +000023286 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 +000023287
cristy3ed852e2009-09-05 21:47:34 +000023288else
cristy8b350f62009-11-15 23:12:43 +000023289 if test "$ac_cv_type_signed_int" = yes; then
23290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023292as_fn_error 77 "cannot compute sizeof (signed int)
23293See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023294 else
23295 ac_cv_sizeof_signed_int=0
23296 fi
23297fi
cristy8b350f62009-11-15 23:12:43 +000023298
cristy3ed852e2009-09-05 21:47:34 +000023299fi
cristy8b350f62009-11-15 23:12:43 +000023300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023301$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23302
23303
23304
23305cat >>confdefs.h <<_ACEOF
23306#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23307_ACEOF
23308
23309
23310
23311# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23312# The cast to long int works around a bug in the HP C Compiler
23313# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23314# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23315# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023317$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023318if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023319 $as_echo_n "(cached) " >&6
23320else
cristy8b350f62009-11-15 23:12:43 +000023321 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 +000023322
cristy3ed852e2009-09-05 21:47:34 +000023323else
cristy8b350f62009-11-15 23:12:43 +000023324 if test "$ac_cv_type_unsigned_int" = yes; then
23325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023327as_fn_error 77 "cannot compute sizeof (unsigned int)
23328See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023329 else
23330 ac_cv_sizeof_unsigned_int=0
23331 fi
23332fi
cristy8b350f62009-11-15 23:12:43 +000023333
cristy3ed852e2009-09-05 21:47:34 +000023334fi
cristy8b350f62009-11-15 23:12:43 +000023335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023336$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23337
23338
23339
23340cat >>confdefs.h <<_ACEOF
23341#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23342_ACEOF
23343
23344
23345
23346# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23347# The cast to long int works around a bug in the HP C Compiler
23348# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23349# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23350# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023352$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023353if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023354 $as_echo_n "(cached) " >&6
23355else
cristy8b350f62009-11-15 23:12:43 +000023356 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 +000023357
cristy3ed852e2009-09-05 21:47:34 +000023358else
cristy8b350f62009-11-15 23:12:43 +000023359 if test "$ac_cv_type_signed_long" = yes; then
23360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023362as_fn_error 77 "cannot compute sizeof (signed long)
23363See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023364 else
23365 ac_cv_sizeof_signed_long=0
23366 fi
23367fi
cristy8b350f62009-11-15 23:12:43 +000023368
cristy3ed852e2009-09-05 21:47:34 +000023369fi
cristy8b350f62009-11-15 23:12:43 +000023370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023371$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23372
23373
23374
23375cat >>confdefs.h <<_ACEOF
23376#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23377_ACEOF
23378
23379
23380
23381# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23382# The cast to long int works around a bug in the HP C Compiler
23383# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23384# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23385# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023387$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023388if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023389 $as_echo_n "(cached) " >&6
23390else
cristy8b350f62009-11-15 23:12:43 +000023391 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 +000023392
cristy3ed852e2009-09-05 21:47:34 +000023393else
cristy8b350f62009-11-15 23:12:43 +000023394 if test "$ac_cv_type_unsigned_long" = yes; then
23395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023397as_fn_error 77 "cannot compute sizeof (unsigned long)
23398See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023399 else
23400 ac_cv_sizeof_unsigned_long=0
23401 fi
23402fi
cristy8b350f62009-11-15 23:12:43 +000023403
cristy3ed852e2009-09-05 21:47:34 +000023404fi
cristy8b350f62009-11-15 23:12:43 +000023405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023406$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23407
23408
23409
23410cat >>confdefs.h <<_ACEOF
23411#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23412_ACEOF
23413
23414
23415
23416# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23417# 'signed long long' is not supported then the value defined is zero.
23418# The cast to long int works around a bug in the HP C Compiler
23419# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23420# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23421# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023423$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023424if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023425 $as_echo_n "(cached) " >&6
23426else
cristy8b350f62009-11-15 23:12:43 +000023427 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 +000023428
cristy3ed852e2009-09-05 21:47:34 +000023429else
cristy8b350f62009-11-15 23:12:43 +000023430 if test "$ac_cv_type_signed_long_long" = yes; then
23431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023433as_fn_error 77 "cannot compute sizeof (signed long long)
23434See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023435 else
23436 ac_cv_sizeof_signed_long_long=0
23437 fi
23438fi
cristy8b350f62009-11-15 23:12:43 +000023439
cristy3ed852e2009-09-05 21:47:34 +000023440fi
cristy8b350f62009-11-15 23:12:43 +000023441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023442$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23443
23444
23445
23446cat >>confdefs.h <<_ACEOF
23447#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23448_ACEOF
23449
23450
23451
23452# Obtain size of a 'unsigned long long' and define as
23453# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23454# supported then the value defined is zero.
23455# The cast to long int works around a bug in the HP C Compiler
23456# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23457# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23458# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023460$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023461if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023462 $as_echo_n "(cached) " >&6
23463else
cristy8b350f62009-11-15 23:12:43 +000023464 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023465
cristy3ed852e2009-09-05 21:47:34 +000023466else
cristy8b350f62009-11-15 23:12:43 +000023467 if test "$ac_cv_type_unsigned_long_long" = yes; then
23468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023470as_fn_error 77 "cannot compute sizeof (unsigned long long)
23471See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023472 else
23473 ac_cv_sizeof_unsigned_long_long=0
23474 fi
23475fi
cristy8b350f62009-11-15 23:12:43 +000023476
cristy3ed852e2009-09-05 21:47:34 +000023477fi
cristy8b350f62009-11-15 23:12:43 +000023478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023479$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23480
23481
23482
23483cat >>confdefs.h <<_ACEOF
23484#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23485_ACEOF
23486
23487
23488
23489# Obtain size of off_t and define as SIZEOF_OFF_T
23490# The cast to long int works around a bug in the HP C Compiler
23491# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23492# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23493# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023495$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023496if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023497 $as_echo_n "(cached) " >&6
23498else
cristy8b350f62009-11-15 23:12:43 +000023499 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 +000023500
cristy3ed852e2009-09-05 21:47:34 +000023501else
cristy8b350f62009-11-15 23:12:43 +000023502 if test "$ac_cv_type_off_t" = yes; then
23503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023505as_fn_error 77 "cannot compute sizeof (off_t)
23506See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023507 else
23508 ac_cv_sizeof_off_t=0
23509 fi
23510fi
cristy8b350f62009-11-15 23:12:43 +000023511
cristy3ed852e2009-09-05 21:47:34 +000023512fi
cristy8b350f62009-11-15 23:12:43 +000023513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023514$as_echo "$ac_cv_sizeof_off_t" >&6; }
23515
23516
23517
23518cat >>confdefs.h <<_ACEOF
23519#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23520_ACEOF
23521
23522
23523
23524# Obtain size of size_t and define as SIZEOF_SIZE_T
23525# The cast to long int works around a bug in the HP C Compiler
23526# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23527# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23528# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023530$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023531if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023532 $as_echo_n "(cached) " >&6
23533else
cristy8b350f62009-11-15 23:12:43 +000023534 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 +000023535
cristy3ed852e2009-09-05 21:47:34 +000023536else
cristy8b350f62009-11-15 23:12:43 +000023537 if test "$ac_cv_type_size_t" = yes; then
23538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023540as_fn_error 77 "cannot compute sizeof (size_t)
23541See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023542 else
23543 ac_cv_sizeof_size_t=0
23544 fi
23545fi
cristy8b350f62009-11-15 23:12:43 +000023546
cristy3ed852e2009-09-05 21:47:34 +000023547fi
cristy8b350f62009-11-15 23:12:43 +000023548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023549$as_echo "$ac_cv_sizeof_size_t" >&6; }
23550
23551
23552
23553cat >>confdefs.h <<_ACEOF
23554#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23555_ACEOF
23556
23557
23558
cristy330e9352010-06-01 18:42:49 +000023559# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23560# The cast to long int works around a bug in the HP C Compiler
23561# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23562# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23563# This bug is HP SR number 8606223364.
23564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23565$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023566if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023567 $as_echo_n "(cached) " >&6
23568else
23569 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23570
23571else
23572 if test "$ac_cv_type_ssize_t" = yes; then
23573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023575as_fn_error 77 "cannot compute sizeof (ssize_t)
23576See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023577 else
23578 ac_cv_sizeof_ssize_t=0
23579 fi
23580fi
23581
23582fi
23583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23584$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23585
23586
23587
23588cat >>confdefs.h <<_ACEOF
23589#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23590_ACEOF
23591
23592
23593
cristy3ed852e2009-09-05 21:47:34 +000023594# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23595# The cast to long int works around a bug in the HP C Compiler
23596# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23597# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23598# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023600$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023601if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023602 $as_echo_n "(cached) " >&6
23603else
cristy8b350f62009-11-15 23:12:43 +000023604 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 +000023605
cristy3ed852e2009-09-05 21:47:34 +000023606else
cristy8b350f62009-11-15 23:12:43 +000023607 if test "$ac_cv_type_unsigned_intp" = yes; then
23608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023610as_fn_error 77 "cannot compute sizeof (unsigned int*)
23611See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023612 else
23613 ac_cv_sizeof_unsigned_intp=0
23614 fi
23615fi
cristy8b350f62009-11-15 23:12:43 +000023616
cristy3ed852e2009-09-05 21:47:34 +000023617fi
cristy8b350f62009-11-15 23:12:43 +000023618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023619$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23620
23621
23622
23623cat >>confdefs.h <<_ACEOF
23624#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23625_ACEOF
23626
23627
23628
23629#
23630# Compute sized types for current CPU and compiler options.
23631#
23632
cristy8b350f62009-11-15 23:12:43 +000023633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023634$as_echo_n "checking for signed 8-bit type... " >&6; }
23635INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23637$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023638
23639
cristy8b350f62009-11-15 23:12:43 +000023640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023641$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23642UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23644$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023645
23646
cristy8b350f62009-11-15 23:12:43 +000023647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023648$as_echo_n "checking for signed 16-bit type... " >&6; }
23649INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23651$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023652
23653
cristy8b350f62009-11-15 23:12:43 +000023654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023655$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23656UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23658$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023659
23660
cristy8b350f62009-11-15 23:12:43 +000023661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023662$as_echo_n "checking for signed 32-bit type... " >&6; }
23663INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023664INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023665if test $ac_cv_sizeof_signed_int -eq 4; then
23666 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023667 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023668elif test $ac_cv_sizeof_signed_long -eq 4; then
23669 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023670 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023671fi
cristyad38abe2012-12-23 23:03:21 +000023672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23673$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023674
23675
cristy6d5e20f2011-04-25 13:48:54 +000023676
cristy8b350f62009-11-15 23:12:43 +000023677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023678$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23679UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023680UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023681if test $ac_cv_sizeof_unsigned_int -eq 4; then
23682 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023683 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023684elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23685 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023686 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023687fi
cristyad38abe2012-12-23 23:03:21 +000023688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23689$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023690
23691
cristy6d5e20f2011-04-25 13:48:54 +000023692
cristy8b350f62009-11-15 23:12:43 +000023693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023694$as_echo_n "checking for signed 64-bit type... " >&6; }
23695INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023696INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023697if test $ac_cv_sizeof_signed_long -eq 8; then
23698 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023699 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023700elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23701 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023702 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023703fi
cristy3a99dcf2011-12-17 01:29:40 +000023704case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023705 mingw* )
23706 INT64_F='"I64"'
23707 ;;
23708esac
cristyad38abe2012-12-23 23:03:21 +000023709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23710$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023711
23712
cristy6d5e20f2011-04-25 13:48:54 +000023713
cristy8b350f62009-11-15 23:12:43 +000023714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023715$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23716UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023717UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023718if test $ac_cv_sizeof_unsigned_long -eq 8; then
23719 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023720 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023721elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23722 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023723 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023724fi
cristy3a99dcf2011-12-17 01:29:40 +000023725case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023726 mingw* )
23727 UINT64_F='"I64"'
23728 ;;
23729esac
cristyad38abe2012-12-23 23:03:21 +000023730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23731$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023732
23733
cristy6d5e20f2011-04-25 13:48:54 +000023734
cristy8b350f62009-11-15 23:12:43 +000023735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023736$as_echo_n "checking for unsigned maximum type... " >&6; }
23737UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023738UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023739if test "$UINT64_T" != 'none'; then
23740 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023741 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023742elif test "$UINT32_T" != 'none'; then
23743 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023744 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023745fi
cristyad38abe2012-12-23 23:03:21 +000023746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23747$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023748
23749
cristy6d5e20f2011-04-25 13:48:54 +000023750
cristy8b350f62009-11-15 23:12:43 +000023751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023752$as_echo_n "checking for pointer difference type... " >&6; }
23753UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023754UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023755if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23756 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023757 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023758elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23759 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023760 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023761fi
cristyad38abe2012-12-23 23:03:21 +000023762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23763$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023764
23765
cristy6d5e20f2011-04-25 13:48:54 +000023766
cristy8b350f62009-11-15 23:12:43 +000023767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023768$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023770/* end confdefs.h. */
23771
23772int
23773main ()
23774{
23775{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23776 ;
23777 return 0;
23778}
23779_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023780if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23782$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023783else
cristyad38abe2012-12-23 23:03:21 +000023784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23785$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023787$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023789/* end confdefs.h. */
23790
23791int
23792main ()
23793{
23794{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23795 ;
23796 return 0;
23797}
23798_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023799if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23801$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023802
cristy8b350f62009-11-15 23:12:43 +000023803$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023804
23805else
cristyad38abe2012-12-23 23:03:21 +000023806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23807$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023808
cristy8b350f62009-11-15 23:12:43 +000023809$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023810
23811fi
cristy3ed852e2009-09-05 21:47:34 +000023812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23813fi
cristy3ed852e2009-09-05 21:47:34 +000023814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23815
23816########
23817#
23818# Check for functions
23819#
23820########
cristy73bd4a52010-10-05 11:24:23 +000023821for ac_header in stdlib.h unistd.h
23822do :
23823 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23824ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023825if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023826 cat >>confdefs.h <<_ACEOF
23827#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23828_ACEOF
23829
23830fi
23831
23832done
23833
23834for ac_func in getpagesize
23835do :
23836 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023837if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023838 cat >>confdefs.h <<_ACEOF
23839#define HAVE_GETPAGESIZE 1
23840_ACEOF
23841
23842fi
23843done
23844
23845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23846$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023847if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023848 $as_echo_n "(cached) " >&6
23849else
23850 if test "$cross_compiling" = yes; then :
23851 magick_cv_func_mmap_fileio=no
23852else
23853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23854/* end confdefs.h. */
23855$ac_includes_default
23856/* malloc might have been renamed as rpl_malloc. */
23857#undef malloc
23858
23859/*
23860 This test is derived from GNU Autoconf's similar macro.
23861 The purpose of this test is to verify that files may be memory
23862 mapped, and that memory mapping and file I/O are coherent.
23863
23864 The test creates a test file, memory maps the file, updates
23865 the file using the memory map, and then reads the file using
23866 file I/O to verify that the file contains the updates.
23867*/
23868
23869#include <fcntl.h>
23870#include <sys/mman.h>
23871
23872#if !STDC_HEADERS && !HAVE_STDLIB_H
23873char *malloc ();
23874#endif
23875
23876/* This mess was copied from the GNU getpagesize.h. */
23877#if !HAVE_GETPAGESIZE
23878/* Assume that all systems that can run configure have sys/param.h. */
23879# if !HAVE_SYS_PARAM_H
23880# define HAVE_SYS_PARAM_H 1
23881# endif
23882
23883# ifdef _SC_PAGESIZE
23884# define getpagesize() sysconf(_SC_PAGESIZE)
23885# else /* no _SC_PAGESIZE */
23886# if HAVE_SYS_PARAM_H
23887# include <sys/param.h>
23888# ifdef EXEC_PAGESIZE
23889# define getpagesize() EXEC_PAGESIZE
23890# else /* no EXEC_PAGESIZE */
23891# ifdef NBPG
23892# define getpagesize() NBPG * CLSIZE
23893# ifndef CLSIZE
23894# define CLSIZE 1
23895# endif /* no CLSIZE */
23896# else /* no NBPG */
23897# ifdef NBPC
23898# define getpagesize() NBPC
23899# else /* no NBPC */
23900# ifdef PAGESIZE
23901# define getpagesize() PAGESIZE
23902# endif /* PAGESIZE */
23903# endif /* no NBPC */
23904# endif /* no NBPG */
23905# endif /* no EXEC_PAGESIZE */
23906# else /* no HAVE_SYS_PARAM_H */
23907# define getpagesize() 8192 /* punt totally */
23908# endif /* no HAVE_SYS_PARAM_H */
23909# endif /* no _SC_PAGESIZE */
23910
23911#endif /* no HAVE_GETPAGESIZE */
23912
23913int
23914main ()
23915{
23916 char *data, *data2, *data3;
23917 int i, pagesize;
23918 int fd;
23919
23920 pagesize = getpagesize ();
23921
23922 /* First, make a file with some known garbage in it. */
23923 data = (char *) malloc (pagesize);
23924 if (!data)
23925 exit (1);
23926 for (i = 0; i < pagesize; ++i)
23927 *(data + i) = rand ();
23928 umask (0);
23929 fd = creat ("conftest.mmap", 0600);
23930 if (fd < 0)
23931 exit (1);
23932 if (write (fd, data, pagesize) != pagesize)
23933 exit (1);
23934 close (fd);
23935
23936 /* Mmap the file as read/write/shared and verify that we see the
23937 same garbage. */
23938 fd = open ("conftest.mmap", O_RDWR);
23939 if (fd < 0)
23940 exit (1);
23941 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23942 if (data2 == 0)
23943 exit (1);
23944 for (i = 0; i < pagesize; ++i)
23945 if (*(data + i) != *(data2 + i))
23946 exit (1);
23947
23948 /* Finally, make sure that changes to the mapped area
23949 percolate back to the file as seen by read(). */
23950 for (i = 0; i < pagesize; ++i)
23951 *(data2 + i) = *(data2 + i) + 1;
23952 data3 = (char *) malloc (pagesize);
23953 if (!data3)
23954 exit (1);
23955 if (read (fd, data3, pagesize) != pagesize)
23956 exit (1);
23957 for (i = 0; i < pagesize; ++i)
23958 if (*(data2 + i) != *(data3 + i))
23959 exit (1);
23960 close (fd);
23961 exit (0);
23962}
23963_ACEOF
23964if ac_fn_c_try_run "$LINENO"; then :
23965 magick_cv_func_mmap_fileio=yes
23966else
23967 magick_cv_func_mmap_fileio=no
23968fi
23969rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23970 conftest.$ac_objext conftest.beam conftest.$ac_ext
23971fi
23972
23973fi
23974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23975$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23976if test $magick_cv_func_mmap_fileio = yes; then
23977
23978$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23979
23980fi
23981rm -f conftest.mmap
23982
cristy8b350f62009-11-15 23:12:43 +000023983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023984$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023985if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023986 $as_echo_n "(cached) " >&6
23987else
cristy8b350f62009-11-15 23:12:43 +000023988 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023989 ac_cv_func_closedir_void=yes
23990else
cristy8b350f62009-11-15 23:12:43 +000023991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023992/* end confdefs.h. */
23993$ac_includes_default
23994#include <$ac_header_dirent>
23995#ifndef __cplusplus
23996int closedir ();
23997#endif
23998
23999int
24000main ()
24001{
24002return closedir (opendir (".")) != 0;
24003 ;
24004 return 0;
24005}
24006_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024007if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024008 ac_cv_func_closedir_void=no
24009else
cristy8b350f62009-11-15 23:12:43 +000024010 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024011fi
cristy8b350f62009-11-15 23:12:43 +000024012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24013 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024014fi
24015
cristy3ed852e2009-09-05 21:47:34 +000024016fi
cristy8b350f62009-11-15 23:12:43 +000024017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024018$as_echo "$ac_cv_func_closedir_void" >&6; }
24019if test $ac_cv_func_closedir_void = yes; then
24020
cristy8b350f62009-11-15 23:12:43 +000024021$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024022
24023fi
24024
cristycd4c5312009-11-22 01:19:08 +000024025
24026
24027
24028 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024029do :
24030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024031ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24032"
cristy98dddb52010-11-04 00:30:15 +000024033if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024034 cat >>confdefs.h <<_ACEOF
24035#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24036_ACEOF
24037
24038fi
24039
24040done
24041
cristycd4c5312009-11-22 01:19:08 +000024042
24043
24044
24045
24046
24047
24048
cristy3ed852e2009-09-05 21:47:34 +000024049for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024050do :
24051 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024052if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024053 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024054#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024055_ACEOF
24056
24057fi
24058done
24059
cristy8b350f62009-11-15 23:12:43 +000024060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024061$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024062if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024063 $as_echo_n "(cached) " >&6
24064else
cristy8b350f62009-11-15 23:12:43 +000024065 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024066 ac_cv_func_mmap_fixed_mapped=no
24067else
cristy8b350f62009-11-15 23:12:43 +000024068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024069/* end confdefs.h. */
24070$ac_includes_default
24071/* malloc might have been renamed as rpl_malloc. */
24072#undef malloc
24073
24074/* Thanks to Mike Haertel and Jim Avera for this test.
24075 Here is a matrix of mmap possibilities:
24076 mmap private not fixed
24077 mmap private fixed at somewhere currently unmapped
24078 mmap private fixed at somewhere already mapped
24079 mmap shared not fixed
24080 mmap shared fixed at somewhere currently unmapped
24081 mmap shared fixed at somewhere already mapped
24082 For private mappings, we should verify that changes cannot be read()
24083 back from the file, nor mmap's back from the file at a different
24084 address. (There have been systems where private was not correctly
24085 implemented like the infamous i386 svr4.0, and systems where the
24086 VM page cache was not coherent with the file system buffer cache
24087 like early versions of FreeBSD and possibly contemporary NetBSD.)
24088 For shared mappings, we should conversely verify that changes get
24089 propagated back to all the places they're supposed to be.
24090
24091 Grep wants private fixed already mapped.
24092 The main things grep needs to know about mmap are:
24093 * does it exist and is it safe to write into the mmap'd area
24094 * how to use it (BSD variants) */
24095
24096#include <fcntl.h>
24097#include <sys/mman.h>
24098
24099#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24100char *malloc ();
24101#endif
24102
24103/* This mess was copied from the GNU getpagesize.h. */
24104#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024105# ifdef _SC_PAGESIZE
24106# define getpagesize() sysconf(_SC_PAGESIZE)
24107# else /* no _SC_PAGESIZE */
24108# ifdef HAVE_SYS_PARAM_H
24109# include <sys/param.h>
24110# ifdef EXEC_PAGESIZE
24111# define getpagesize() EXEC_PAGESIZE
24112# else /* no EXEC_PAGESIZE */
24113# ifdef NBPG
24114# define getpagesize() NBPG * CLSIZE
24115# ifndef CLSIZE
24116# define CLSIZE 1
24117# endif /* no CLSIZE */
24118# else /* no NBPG */
24119# ifdef NBPC
24120# define getpagesize() NBPC
24121# else /* no NBPC */
24122# ifdef PAGESIZE
24123# define getpagesize() PAGESIZE
24124# endif /* PAGESIZE */
24125# endif /* no NBPC */
24126# endif /* no NBPG */
24127# endif /* no EXEC_PAGESIZE */
24128# else /* no HAVE_SYS_PARAM_H */
24129# define getpagesize() 8192 /* punt totally */
24130# endif /* no HAVE_SYS_PARAM_H */
24131# endif /* no _SC_PAGESIZE */
24132
24133#endif /* no HAVE_GETPAGESIZE */
24134
24135int
24136main ()
24137{
24138 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024139 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024140 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024141 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024142
24143 pagesize = getpagesize ();
24144
24145 /* First, make a file with some known garbage in it. */
24146 data = (char *) malloc (pagesize);
24147 if (!data)
24148 return 1;
24149 for (i = 0; i < pagesize; ++i)
24150 *(data + i) = rand ();
24151 umask (0);
24152 fd = creat ("conftest.mmap", 0600);
24153 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024154 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024155 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024156 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024157 close (fd);
24158
cristycd4c5312009-11-22 01:19:08 +000024159 /* Next, check that the tail of a page is zero-filled. File must have
24160 non-zero length, otherwise we risk SIGBUS for entire page. */
24161 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24162 if (fd2 < 0)
24163 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024164 cdata2 = "";
24165 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024166 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024167 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024168 if (data2 == MAP_FAILED)
24169 return 6;
24170 for (i = 0; i < pagesize; ++i)
24171 if (*(data2 + i))
24172 return 7;
24173 close (fd2);
24174 if (munmap (data2, pagesize))
24175 return 8;
24176
cristy3ed852e2009-09-05 21:47:34 +000024177 /* Next, try to mmap the file at a fixed address which already has
24178 something else allocated at it. If we can, also make sure that
24179 we see the same garbage. */
24180 fd = open ("conftest.mmap", O_RDWR);
24181 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024182 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024183 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24184 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024185 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024186 for (i = 0; i < pagesize; ++i)
24187 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024188 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024189
24190 /* Finally, make sure that changes to the mapped area do not
24191 percolate back to the file as seen by read(). (This is a bug on
24192 some variants of i386 svr4.0.) */
24193 for (i = 0; i < pagesize; ++i)
24194 *(data2 + i) = *(data2 + i) + 1;
24195 data3 = (char *) malloc (pagesize);
24196 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024197 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024198 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024199 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024200 for (i = 0; i < pagesize; ++i)
24201 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024202 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024203 close (fd);
24204 return 0;
24205}
24206_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024207if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024208 ac_cv_func_mmap_fixed_mapped=yes
24209else
cristy8b350f62009-11-15 23:12:43 +000024210 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024211fi
cristy8b350f62009-11-15 23:12:43 +000024212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24213 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024214fi
24215
cristy3ed852e2009-09-05 21:47:34 +000024216fi
cristy8b350f62009-11-15 23:12:43 +000024217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024218$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24219if test $ac_cv_func_mmap_fixed_mapped = yes; then
24220
cristy8b350f62009-11-15 23:12:43 +000024221$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024222
24223fi
cristycd4c5312009-11-22 01:19:08 +000024224rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024225
cristy3ed852e2009-09-05 21:47:34 +000024226for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024227do :
24228 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024229if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024230 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024231#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024232_ACEOF
24233
24234fi
24235
24236done
24237
cristy3ed852e2009-09-05 21:47:34 +000024238for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024239do :
24240 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24241ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024242if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024243 cat >>confdefs.h <<_ACEOF
24244#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24245_ACEOF
24246
24247fi
24248done
24249
24250if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024252$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024253if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024254 $as_echo_n "(cached) " >&6
24255else
cristy8b350f62009-11-15 23:12:43 +000024256 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024257 ac_cv_func_fork_works=cross
24258else
cristy8b350f62009-11-15 23:12:43 +000024259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024260/* end confdefs.h. */
24261$ac_includes_default
24262int
24263main ()
24264{
24265
24266 /* By Ruediger Kuhlmann. */
24267 return fork () < 0;
24268
24269 ;
24270 return 0;
24271}
24272_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024273if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024274 ac_cv_func_fork_works=yes
24275else
cristy8b350f62009-11-15 23:12:43 +000024276 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024277fi
cristy8b350f62009-11-15 23:12:43 +000024278rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24279 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024280fi
24281
cristy3ed852e2009-09-05 21:47:34 +000024282fi
cristy8b350f62009-11-15 23:12:43 +000024283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024284$as_echo "$ac_cv_func_fork_works" >&6; }
24285
24286else
24287 ac_cv_func_fork_works=$ac_cv_func_fork
24288fi
24289if test "x$ac_cv_func_fork_works" = xcross; then
24290 case $host in
24291 *-*-amigaos* | *-*-msdosdjgpp*)
24292 # Override, as these systems have only a dummy fork() stub
24293 ac_cv_func_fork_works=no
24294 ;;
24295 *)
24296 ac_cv_func_fork_works=yes
24297 ;;
24298 esac
cristy8b350f62009-11-15 23:12:43 +000024299 { $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 +000024300$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24301fi
24302ac_cv_func_vfork_works=$ac_cv_func_vfork
24303if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024305$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024306if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024307 $as_echo_n "(cached) " >&6
24308else
cristy8b350f62009-11-15 23:12:43 +000024309 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024310 ac_cv_func_vfork_works=cross
24311else
cristy8b350f62009-11-15 23:12:43 +000024312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024313/* end confdefs.h. */
24314/* Thanks to Paul Eggert for this test. */
24315$ac_includes_default
24316#include <sys/wait.h>
24317#ifdef HAVE_VFORK_H
24318# include <vfork.h>
24319#endif
24320/* On some sparc systems, changes by the child to local and incoming
24321 argument registers are propagated back to the parent. The compiler
24322 is told about this with #include <vfork.h>, but some compilers
24323 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24324 static variable whose address is put into a register that is
24325 clobbered by the vfork. */
24326static void
24327#ifdef __cplusplus
24328sparc_address_test (int arg)
24329# else
24330sparc_address_test (arg) int arg;
24331#endif
24332{
24333 static pid_t child;
24334 if (!child) {
24335 child = vfork ();
24336 if (child < 0) {
24337 perror ("vfork");
24338 _exit(2);
24339 }
24340 if (!child) {
24341 arg = getpid();
24342 write(-1, "", 0);
24343 _exit (arg);
24344 }
24345 }
24346}
24347
24348int
24349main ()
24350{
24351 pid_t parent = getpid ();
24352 pid_t child;
24353
24354 sparc_address_test (0);
24355
24356 child = vfork ();
24357
24358 if (child == 0) {
24359 /* Here is another test for sparc vfork register problems. This
24360 test uses lots of local variables, at least as many local
24361 variables as main has allocated so far including compiler
24362 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24363 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24364 reuse the register of parent for one of the local variables,
24365 since it will think that parent can't possibly be used any more
24366 in this routine. Assigning to the local variable will thus
24367 munge parent in the parent process. */
24368 pid_t
24369 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24370 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24371 /* Convince the compiler that p..p7 are live; otherwise, it might
24372 use the same hardware register for all 8 local variables. */
24373 if (p != p1 || p != p2 || p != p3 || p != p4
24374 || p != p5 || p != p6 || p != p7)
24375 _exit(1);
24376
24377 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24378 from child file descriptors. If the child closes a descriptor
24379 before it execs or exits, this munges the parent's descriptor
24380 as well. Test for this by closing stdout in the child. */
24381 _exit(close(fileno(stdout)) != 0);
24382 } else {
24383 int status;
24384 struct stat st;
24385
24386 while (wait(&status) != child)
24387 ;
24388 return (
24389 /* Was there some problem with vforking? */
24390 child < 0
24391
24392 /* Did the child fail? (This shouldn't happen.) */
24393 || status
24394
24395 /* Did the vfork/compiler bug occur? */
24396 || parent != getpid()
24397
24398 /* Did the file descriptor bug occur? */
24399 || fstat(fileno(stdout), &st) != 0
24400 );
24401 }
24402}
24403_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024404if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024405 ac_cv_func_vfork_works=yes
24406else
cristy8b350f62009-11-15 23:12:43 +000024407 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024408fi
cristy8b350f62009-11-15 23:12:43 +000024409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24410 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024411fi
24412
cristy3ed852e2009-09-05 21:47:34 +000024413fi
cristy8b350f62009-11-15 23:12:43 +000024414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024415$as_echo "$ac_cv_func_vfork_works" >&6; }
24416
24417fi;
24418if test "x$ac_cv_func_fork_works" = xcross; then
24419 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024420 { $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 +000024421$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24422fi
24423
24424if test "x$ac_cv_func_vfork_works" = xyes; then
24425
cristy8b350f62009-11-15 23:12:43 +000024426$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024427
24428else
24429
cristy8b350f62009-11-15 23:12:43 +000024430$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024431
24432fi
24433if test "x$ac_cv_func_fork_works" = xyes; then
24434
cristy8b350f62009-11-15 23:12:43 +000024435$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024436
24437fi
24438
cristy8b350f62009-11-15 23:12:43 +000024439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024440$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024441if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024442 $as_echo_n "(cached) " >&6
24443else
cristy8b350f62009-11-15 23:12:43 +000024444 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024445 ac_cv_func_memcmp_working=no
24446else
cristy8b350f62009-11-15 23:12:43 +000024447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024448/* end confdefs.h. */
24449$ac_includes_default
24450int
24451main ()
24452{
24453
24454 /* Some versions of memcmp are not 8-bit clean. */
24455 char c0 = '\100', c1 = '\200', c2 = '\201';
24456 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24457 return 1;
24458
24459 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24460 or more and with at least one buffer not starting on a 4-byte boundary.
24461 William Lewis provided this test program. */
24462 {
24463 char foo[21];
24464 char bar[21];
24465 int i;
24466 for (i = 0; i < 4; i++)
24467 {
24468 char *a = foo + i;
24469 char *b = bar + i;
24470 strcpy (a, "--------01111111");
24471 strcpy (b, "--------10000000");
24472 if (memcmp (a, b, 16) >= 0)
24473 return 1;
24474 }
24475 return 0;
24476 }
24477
24478 ;
24479 return 0;
24480}
24481_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024482if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024483 ac_cv_func_memcmp_working=yes
24484else
cristy8b350f62009-11-15 23:12:43 +000024485 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024486fi
cristy8b350f62009-11-15 23:12:43 +000024487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24488 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024489fi
24490
cristy3ed852e2009-09-05 21:47:34 +000024491fi
cristy8b350f62009-11-15 23:12:43 +000024492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024493$as_echo "$ac_cv_func_memcmp_working" >&6; }
24494test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24495 *" memcmp.$ac_objext "* ) ;;
24496 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24497 ;;
24498esac
24499
24500
cristy3ed852e2009-09-05 21:47:34 +000024501for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024502do :
24503 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24504ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024505if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024506 cat >>confdefs.h <<_ACEOF
24507#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24508_ACEOF
24509
24510fi
24511
24512done
24513
cristy8b350f62009-11-15 23:12:43 +000024514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024515$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024516if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024517 $as_echo_n "(cached) " >&6
24518else
24519 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24520 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24521 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024523/* end confdefs.h. */
24524$ac_includes_default
24525#ifdef HAVE_SYS_SELECT_H
24526# include <sys/select.h>
24527#endif
24528#ifdef HAVE_SYS_SOCKET_H
24529# include <sys/socket.h>
24530#endif
24531
24532int
24533main ()
24534{
24535extern int select ($ac_arg1,
24536 $ac_arg234, $ac_arg234, $ac_arg234,
24537 $ac_arg5);
24538 ;
24539 return 0;
24540}
24541_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024542if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024543 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024544fi
cristy3ed852e2009-09-05 21:47:34 +000024545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24546 done
24547 done
24548done
24549# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024550: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024551
24552fi
cristy8b350f62009-11-15 23:12:43 +000024553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024554$as_echo "$ac_cv_func_select_args" >&6; }
24555ac_save_IFS=$IFS; IFS=','
24556set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24557IFS=$ac_save_IFS
24558shift
24559
24560cat >>confdefs.h <<_ACEOF
24561#define SELECT_TYPE_ARG1 $1
24562_ACEOF
24563
24564
24565cat >>confdefs.h <<_ACEOF
24566#define SELECT_TYPE_ARG234 ($2)
24567_ACEOF
24568
24569
24570cat >>confdefs.h <<_ACEOF
24571#define SELECT_TYPE_ARG5 ($3)
24572_ACEOF
24573
24574rm -f conftest*
24575
cristyda16f162011-02-19 23:52:17 +000024576if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024577 $as_echo_n "(cached) " >&6
24578else
24579 ac_cv_func_setvbuf_reversed=no
24580fi
24581
24582
cristy8b350f62009-11-15 23:12:43 +000024583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024584$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024585if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024586 $as_echo_n "(cached) " >&6
24587else
cristy8b350f62009-11-15 23:12:43 +000024588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024589/* end confdefs.h. */
24590#include <sys/types.h>
24591#include <signal.h>
24592
24593int
24594main ()
24595{
24596return *(signal (0, 0)) (0) == 1;
24597 ;
24598 return 0;
24599}
24600_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024601if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024602 ac_cv_type_signal=int
24603else
cristy8b350f62009-11-15 23:12:43 +000024604 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024605fi
cristy3ed852e2009-09-05 21:47:34 +000024606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24607fi
cristy8b350f62009-11-15 23:12:43 +000024608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024609$as_echo "$ac_cv_type_signal" >&6; }
24610
24611cat >>confdefs.h <<_ACEOF
24612#define RETSIGTYPE $ac_cv_type_signal
24613_ACEOF
24614
24615
cristy8b350f62009-11-15 23:12:43 +000024616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024617$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024618if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024619 $as_echo_n "(cached) " >&6
24620else
cristy8b350f62009-11-15 23:12:43 +000024621 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024622 ac_cv_func_strtod=no
24623else
cristy8b350f62009-11-15 23:12:43 +000024624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024625/* end confdefs.h. */
24626
24627$ac_includes_default
24628#ifndef strtod
24629double strtod ();
24630#endif
24631int
24632main()
24633{
24634 {
24635 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24636 char *string = " +69";
24637 char *term;
24638 double value;
24639 value = strtod (string, &term);
24640 if (value != 69 || term != (string + 4))
24641 return 1;
24642 }
24643
24644 {
24645 /* Under Solaris 2.4, strtod returns the wrong value for the
24646 terminating character under some conditions. */
24647 char *string = "NaN";
24648 char *term;
24649 strtod (string, &term);
24650 if (term != string && *(term - 1) == 0)
24651 return 1;
24652 }
24653 return 0;
24654}
24655
24656_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024657if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024658 ac_cv_func_strtod=yes
24659else
cristy8b350f62009-11-15 23:12:43 +000024660 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024661fi
cristy8b350f62009-11-15 23:12:43 +000024662rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24663 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024664fi
24665
cristy3ed852e2009-09-05 21:47:34 +000024666fi
cristy8b350f62009-11-15 23:12:43 +000024667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024668$as_echo "$ac_cv_func_strtod" >&6; }
24669if test $ac_cv_func_strtod = no; then
24670 case " $LIBOBJS " in
24671 *" strtod.$ac_objext "* ) ;;
24672 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24673 ;;
24674esac
24675
cristy8b350f62009-11-15 23:12:43 +000024676ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024677if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024678
cristy3ed852e2009-09-05 21:47:34 +000024679fi
24680
cristy3ed852e2009-09-05 21:47:34 +000024681if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024683$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024684if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024685 $as_echo_n "(cached) " >&6
24686else
24687 ac_check_lib_save_LIBS=$LIBS
24688LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024690/* end confdefs.h. */
24691
24692/* Override any GCC internal prototype to avoid an error.
24693 Use char because int might match the return type of a GCC
24694 builtin and then its argument prototype would still apply. */
24695#ifdef __cplusplus
24696extern "C"
24697#endif
24698char pow ();
24699int
24700main ()
24701{
24702return pow ();
24703 ;
24704 return 0;
24705}
24706_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024707if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024708 ac_cv_lib_m_pow=yes
24709else
cristy8b350f62009-11-15 23:12:43 +000024710 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024711fi
cristy8b350f62009-11-15 23:12:43 +000024712rm -f core conftest.err conftest.$ac_objext \
24713 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024714LIBS=$ac_check_lib_save_LIBS
24715fi
cristy8b350f62009-11-15 23:12:43 +000024716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024717$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024718if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024719 POW_LIB=-lm
24720else
cristy8b350f62009-11-15 23:12:43 +000024721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024722$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24723fi
24724
24725fi
24726
24727fi
24728
cristy7d4a1d62011-10-13 15:54:12 +000024729ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24730if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24731 ac_have_decl=1
24732else
24733 ac_have_decl=0
24734fi
24735
24736cat >>confdefs.h <<_ACEOF
24737#define HAVE_DECL_STRERROR_R $ac_have_decl
24738_ACEOF
24739
24740for ac_func in strerror_r
24741do :
24742 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24743if test "x$ac_cv_func_strerror_r" = xyes; then :
24744 cat >>confdefs.h <<_ACEOF
24745#define HAVE_STRERROR_R 1
24746_ACEOF
24747
24748fi
24749done
24750
24751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24752$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24753if ${ac_cv_func_strerror_r_char_p+:} false; then :
24754 $as_echo_n "(cached) " >&6
24755else
24756
24757 ac_cv_func_strerror_r_char_p=no
24758 if test $ac_cv_have_decl_strerror_r = yes; then
24759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24760/* end confdefs.h. */
24761$ac_includes_default
24762int
24763main ()
24764{
24765
24766 char buf[100];
24767 char x = *strerror_r (0, buf, sizeof buf);
24768 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024769 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024770
24771 ;
24772 return 0;
24773}
24774_ACEOF
24775if ac_fn_c_try_compile "$LINENO"; then :
24776 ac_cv_func_strerror_r_char_p=yes
24777fi
24778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24779 else
24780 # strerror_r is not declared. Choose between
24781 # systems that have relatively inaccessible declarations for the
24782 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24783 # former has a strerror_r that returns char*, while the latter
24784 # has a strerror_r that returns `int'.
24785 # This test should segfault on the DEC system.
24786 if test "$cross_compiling" = yes; then :
24787 :
24788else
24789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24790/* end confdefs.h. */
24791$ac_includes_default
24792 extern char *strerror_r ();
24793int
24794main ()
24795{
24796char buf[100];
24797 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024798 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024799 ;
24800 return 0;
24801}
24802_ACEOF
24803if ac_fn_c_try_run "$LINENO"; then :
24804 ac_cv_func_strerror_r_char_p=yes
24805fi
24806rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24807 conftest.$ac_objext conftest.beam conftest.$ac_ext
24808fi
24809
24810 fi
24811
24812fi
24813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24814$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24815if test $ac_cv_func_strerror_r_char_p = yes; then
24816
24817$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24818
24819fi
24820
cristy3ed852e2009-09-05 21:47:34 +000024821for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024822do :
24823 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024824if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024825 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024826#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024827_ACEOF
24828
cristy8b350f62009-11-15 23:12:43 +000024829ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024830if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024831
cristy8b350f62009-11-15 23:12:43 +000024832$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024833
24834fi
24835
24836fi
24837done
24838
24839
24840
cristy161b9262010-03-20 19:34:32 +000024841#
24842# Find math library
24843#
24844MATH_LIBS=''
24845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24846$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024847if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024848 $as_echo_n "(cached) " >&6
24849else
24850 ac_check_lib_save_LIBS=$LIBS
24851LIBS="-lm $LIBS"
24852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24853/* end confdefs.h. */
24854
24855/* Override any GCC internal prototype to avoid an error.
24856 Use char because int might match the return type of a GCC
24857 builtin and then its argument prototype would still apply. */
24858#ifdef __cplusplus
24859extern "C"
24860#endif
24861char sqrt ();
24862int
24863main ()
24864{
24865return sqrt ();
24866 ;
24867 return 0;
24868}
24869_ACEOF
24870if ac_fn_c_try_link "$LINENO"; then :
24871 ac_cv_lib_m_sqrt=yes
24872else
24873 ac_cv_lib_m_sqrt=no
24874fi
24875rm -f core conftest.err conftest.$ac_objext \
24876 conftest$ac_exeext conftest.$ac_ext
24877LIBS=$ac_check_lib_save_LIBS
24878fi
24879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24880$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024881if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024882 MATH_LIBS="-lm"
24883fi
24884
24885LIBS="$MATH_LIBS $LIBS"
24886
24887
cristy85572162013-01-04 19:19:32 +000024888#
24889# Find socket library
24890#
cristy8a5d7f42013-01-06 15:24:33 +000024891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
24892$as_echo_n "checking for library containing gethostbyname... " >&6; }
24893if ${ac_cv_search_gethostbyname+:} false; then :
24894 $as_echo_n "(cached) " >&6
24895else
24896 ac_func_search_save_LIBS=$LIBS
24897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24898/* end confdefs.h. */
24899
24900/* Override any GCC internal prototype to avoid an error.
24901 Use char because int might match the return type of a GCC
24902 builtin and then its argument prototype would still apply. */
24903#ifdef __cplusplus
24904extern "C"
24905#endif
24906char gethostbyname ();
24907int
24908main ()
24909{
24910return gethostbyname ();
24911 ;
24912 return 0;
24913}
24914_ACEOF
24915for ac_lib in '' resolv nsl; do
24916 if test -z "$ac_lib"; then
24917 ac_res="none required"
24918 else
24919 ac_res=-l$ac_lib
24920 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24921 fi
24922 if ac_fn_c_try_link "$LINENO"; then :
24923 ac_cv_search_gethostbyname=$ac_res
24924fi
24925rm -f core conftest.err conftest.$ac_objext \
24926 conftest$ac_exeext
24927 if ${ac_cv_search_gethostbyname+:} false; then :
24928 break
24929fi
24930done
24931if ${ac_cv_search_gethostbyname+:} false; then :
24932
24933else
24934 ac_cv_search_gethostbyname=no
24935fi
24936rm conftest.$ac_ext
24937LIBS=$ac_func_search_save_LIBS
24938fi
24939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
24940$as_echo "$ac_cv_search_gethostbyname" >&6; }
24941ac_res=$ac_cv_search_gethostbyname
24942if test "$ac_res" != no; then :
24943 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24944
24945fi
24946
cristy85572162013-01-04 19:19:32 +000024947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
24948$as_echo_n "checking for library containing socket... " >&6; }
24949if ${ac_cv_search_socket+:} false; then :
24950 $as_echo_n "(cached) " >&6
24951else
24952 ac_func_search_save_LIBS=$LIBS
24953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24954/* end confdefs.h. */
24955
24956/* Override any GCC internal prototype to avoid an error.
24957 Use char because int might match the return type of a GCC
24958 builtin and then its argument prototype would still apply. */
24959#ifdef __cplusplus
24960extern "C"
24961#endif
24962char socket ();
24963int
24964main ()
24965{
24966return socket ();
24967 ;
24968 return 0;
24969}
24970_ACEOF
24971for ac_lib in '' socket; do
24972 if test -z "$ac_lib"; then
24973 ac_res="none required"
24974 else
24975 ac_res=-l$ac_lib
24976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24977 fi
24978 if ac_fn_c_try_link "$LINENO"; then :
24979 ac_cv_search_socket=$ac_res
24980fi
24981rm -f core conftest.err conftest.$ac_objext \
24982 conftest$ac_exeext
24983 if ${ac_cv_search_socket+:} false; then :
24984 break
24985fi
24986done
24987if ${ac_cv_search_socket+:} false; then :
24988
24989else
24990 ac_cv_search_socket=no
24991fi
24992rm conftest.$ac_ext
24993LIBS=$ac_func_search_save_LIBS
24994fi
24995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
24996$as_echo "$ac_cv_search_socket" >&6; }
24997ac_res=$ac_cv_search_socket
24998if test "$ac_res" != no; then :
24999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25000
cristy85572162013-01-04 19:19:32 +000025001
cristy8a5d7f42013-01-06 15:24:33 +000025002$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025003
cristy8a5d7f42013-01-06 15:24:33 +000025004 MAGICK_FEATURES="DistributedPixelCache $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025005
25006fi
25007
25008
25009for 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 socket 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 +000025010do :
25011 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25012ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025013if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025014 cat >>confdefs.h <<_ACEOF
25015#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25016_ACEOF
25017
25018fi
25019done
25020
25021
cristye43a45e2009-09-28 14:49:00 +000025022#
25023# Check for clock_gettime().
25024#
cristy8b350f62009-11-15 23:12:43 +000025025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025026$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025027if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025028 $as_echo_n "(cached) " >&6
25029else
25030 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025032/* end confdefs.h. */
25033
25034/* Override any GCC internal prototype to avoid an error.
25035 Use char because int might match the return type of a GCC
25036 builtin and then its argument prototype would still apply. */
25037#ifdef __cplusplus
25038extern "C"
25039#endif
25040char clock_gettime ();
25041int
25042main ()
25043{
25044return clock_gettime ();
25045 ;
25046 return 0;
25047}
25048_ACEOF
25049for ac_lib in '' rt; do
25050 if test -z "$ac_lib"; then
25051 ac_res="none required"
25052 else
25053 ac_res=-l$ac_lib
25054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25055 fi
cristy8b350f62009-11-15 23:12:43 +000025056 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025057 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025058fi
cristy8b350f62009-11-15 23:12:43 +000025059rm -f core conftest.err conftest.$ac_objext \
25060 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025061 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025062 break
25063fi
25064done
cristyda16f162011-02-19 23:52:17 +000025065if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025066
cristye43a45e2009-09-28 14:49:00 +000025067else
25068 ac_cv_search_clock_gettime=no
25069fi
25070rm conftest.$ac_ext
25071LIBS=$ac_func_search_save_LIBS
25072fi
cristy8b350f62009-11-15 23:12:43 +000025073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025074$as_echo "$ac_cv_search_clock_gettime" >&6; }
25075ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025076if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25078
25079
cristy8b350f62009-11-15 23:12:43 +000025080$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025081
cristy8b350f62009-11-15 23:12:43 +000025082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025083$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025085/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025086
25087 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025088int
25089main ()
25090{
25091clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025092 ;
25093 return 0;
25094}
25095_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025096if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025097
cristyad38abe2012-12-23 23:03:21 +000025098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25099$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025100
cristy8b350f62009-11-15 23:12:43 +000025101$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025102
25103
25104else
cristyad38abe2012-12-23 23:03:21 +000025105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25106$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025107
25108fi
cristye43a45e2009-09-28 14:49:00 +000025109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25110
25111else
25112
cristy8b350f62009-11-15 23:12:43 +000025113 for ac_func in gettimeofday ftime
25114do :
25115 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25116ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025117if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025118 cat >>confdefs.h <<_ACEOF
25119#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25120_ACEOF
25121 break
25122fi
25123done
25124
25125
25126
25127fi
25128
25129
cristy3ed852e2009-09-05 21:47:34 +000025130########
25131#
25132# Check for function prototypes
25133#
25134########
25135
cristy8b350f62009-11-15 23:12:43 +000025136ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025137#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025138"
cristyda16f162011-02-19 23:52:17 +000025139if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025140 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025141else
cristy8b350f62009-11-15 23:12:43 +000025142 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025143fi
25144
cristy3ed852e2009-09-05 21:47:34 +000025145cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025146#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025147_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025148ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025149#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025150"
cristyda16f162011-02-19 23:52:17 +000025151if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025152 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025153else
cristy8b350f62009-11-15 23:12:43 +000025154 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025155fi
25156
cristy3ed852e2009-09-05 21:47:34 +000025157cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025158#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025159_ACEOF
25160
25161
cristy8b350f62009-11-15 23:12:43 +000025162ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025163#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025164"
cristyda16f162011-02-19 23:52:17 +000025165if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025166 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025167else
cristy8b350f62009-11-15 23:12:43 +000025168 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025169fi
25170
cristy3ed852e2009-09-05 21:47:34 +000025171cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025172#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025173_ACEOF
25174
25175
cristy8b350f62009-11-15 23:12:43 +000025176ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025177#include <stdio.h>
25178#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025179"
cristyda16f162011-02-19 23:52:17 +000025180if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025181 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025182else
cristy8b350f62009-11-15 23:12:43 +000025183 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025184fi
25185
cristy3ed852e2009-09-05 21:47:34 +000025186cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025187#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025188_ACEOF
25189
25190
cristy3ed852e2009-09-05 21:47:34 +000025191########
25192#
25193# C++ Support Tests (For Magick++)
25194#
25195########
25196have_magick_plus_plus='no'
25197if test "$with_magick_plus_plus" = 'yes'; then
25198 OLIBS="$LIBS"
25199 LIBS=''
25200 ac_ext=cpp
25201ac_cpp='$CXXCPP $CPPFLAGS'
25202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25205
25206
25207 # Full set of headers used...
25208 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25209 # functional iomanip iosfwd iostream iterator list string strstream utility
25210 ac_ext=cpp
25211ac_cpp='$CXXCPP $CPPFLAGS'
25212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25215
25216 ac_ext=cpp
25217ac_cpp='$CXXCPP $CPPFLAGS'
25218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25221if test -z "$CXX"; then
25222 if test -n "$CCC"; then
25223 CXX=$CCC
25224 else
25225 if test -n "$ac_tool_prefix"; then
25226 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25227 do
25228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25229set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025231$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025232if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025233 $as_echo_n "(cached) " >&6
25234else
25235 if test -n "$CXX"; then
25236 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25237else
25238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25239for as_dir in $PATH
25240do
25241 IFS=$as_save_IFS
25242 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025243 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025245 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025247 break 2
25248 fi
25249done
cristy8b350f62009-11-15 23:12:43 +000025250 done
cristy3ed852e2009-09-05 21:47:34 +000025251IFS=$as_save_IFS
25252
25253fi
25254fi
25255CXX=$ac_cv_prog_CXX
25256if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025258$as_echo "$CXX" >&6; }
25259else
cristy8b350f62009-11-15 23:12:43 +000025260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025261$as_echo "no" >&6; }
25262fi
25263
25264
25265 test -n "$CXX" && break
25266 done
25267fi
25268if test -z "$CXX"; then
25269 ac_ct_CXX=$CXX
25270 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25271do
25272 # Extract the first word of "$ac_prog", so it can be a program name with args.
25273set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025275$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025276if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025277 $as_echo_n "(cached) " >&6
25278else
25279 if test -n "$ac_ct_CXX"; then
25280 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25281else
25282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25283for as_dir in $PATH
25284do
25285 IFS=$as_save_IFS
25286 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025287 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025289 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025291 break 2
25292 fi
25293done
cristy8b350f62009-11-15 23:12:43 +000025294 done
cristy3ed852e2009-09-05 21:47:34 +000025295IFS=$as_save_IFS
25296
25297fi
25298fi
25299ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25300if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025302$as_echo "$ac_ct_CXX" >&6; }
25303else
cristy8b350f62009-11-15 23:12:43 +000025304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025305$as_echo "no" >&6; }
25306fi
25307
25308
25309 test -n "$ac_ct_CXX" && break
25310done
25311
25312 if test "x$ac_ct_CXX" = x; then
25313 CXX="g++"
25314 else
25315 case $cross_compiling:$ac_tool_warned in
25316yes:)
cristy8b350f62009-11-15 23:12:43 +000025317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25319ac_tool_warned=yes ;;
25320esac
25321 CXX=$ac_ct_CXX
25322 fi
25323fi
25324
25325 fi
25326fi
25327# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025328$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025329set X $ac_compile
25330ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025331for ac_option in --version -v -V -qversion; do
25332 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025333case "(($ac_try" in
25334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25335 *) ac_try_echo=$ac_try;;
25336esac
cristy8b350f62009-11-15 23:12:43 +000025337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25338$as_echo "$ac_try_echo"; } >&5
25339 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025340 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025341 if test -s conftest.err; then
25342 sed '10a\
25343... rest of stderr output deleted ...
25344 10q' conftest.err >conftest.er1
25345 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025346 fi
cristycd4c5312009-11-22 01:19:08 +000025347 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25349 test $ac_status = 0; }
25350done
cristy3ed852e2009-09-05 21:47:34 +000025351
cristy8b350f62009-11-15 23:12:43 +000025352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025353$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025354if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025355 $as_echo_n "(cached) " >&6
25356else
cristy8b350f62009-11-15 23:12:43 +000025357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025358/* end confdefs.h. */
25359
25360int
25361main ()
25362{
25363#ifndef __GNUC__
25364 choke me
25365#endif
25366
25367 ;
25368 return 0;
25369}
25370_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025371if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025372 ac_compiler_gnu=yes
25373else
cristy8b350f62009-11-15 23:12:43 +000025374 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025375fi
cristy3ed852e2009-09-05 21:47:34 +000025376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25377ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25378
25379fi
cristy8b350f62009-11-15 23:12:43 +000025380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025381$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25382if test $ac_compiler_gnu = yes; then
25383 GXX=yes
25384else
25385 GXX=
25386fi
25387ac_test_CXXFLAGS=${CXXFLAGS+set}
25388ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025390$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025391if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025392 $as_echo_n "(cached) " >&6
25393else
25394 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25395 ac_cxx_werror_flag=yes
25396 ac_cv_prog_cxx_g=no
25397 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025399/* end confdefs.h. */
25400
25401int
25402main ()
25403{
25404
25405 ;
25406 return 0;
25407}
25408_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025409if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025410 ac_cv_prog_cxx_g=yes
25411else
cristy8b350f62009-11-15 23:12:43 +000025412 CXXFLAGS=""
25413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025414/* end confdefs.h. */
25415
25416int
25417main ()
25418{
25419
25420 ;
25421 return 0;
25422}
25423_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025424if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025425
cristy8b350f62009-11-15 23:12:43 +000025426else
25427 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025428 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025430/* end confdefs.h. */
25431
25432int
25433main ()
25434{
25435
25436 ;
25437 return 0;
25438}
25439_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025440if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025441 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025442fi
cristy3ed852e2009-09-05 21:47:34 +000025443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25444fi
cristy3ed852e2009-09-05 21:47:34 +000025445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25446fi
cristy3ed852e2009-09-05 21:47:34 +000025447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25448 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25449fi
cristy8b350f62009-11-15 23:12:43 +000025450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025451$as_echo "$ac_cv_prog_cxx_g" >&6; }
25452if test "$ac_test_CXXFLAGS" = set; then
25453 CXXFLAGS=$ac_save_CXXFLAGS
25454elif test $ac_cv_prog_cxx_g = yes; then
25455 if test "$GXX" = yes; then
25456 CXXFLAGS="-g -O2"
25457 else
25458 CXXFLAGS="-g"
25459 fi
25460else
25461 if test "$GXX" = yes; then
25462 CXXFLAGS="-O2"
25463 else
25464 CXXFLAGS=
25465 fi
25466fi
25467ac_ext=cpp
25468ac_cpp='$CXXCPP $CPPFLAGS'
25469ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25470ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25471ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25472
cristy73bd4a52010-10-05 11:24:23 +000025473depcc="$CXX" am_compiler_list=
25474
25475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25476$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025477if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025478 $as_echo_n "(cached) " >&6
25479else
25480 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25481 # We make a subdir and do the tests there. Otherwise we can end up
25482 # making bogus files that we don't know about and never remove. For
25483 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025484 # making a dummy file named 'D' -- because '-MD' means "put the output
25485 # in D".
cristy7247bba2012-02-05 16:37:27 +000025486 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025487 mkdir conftest.dir
25488 # Copy depcomp to subdir because otherwise we won't find it if we're
25489 # using a relative directory.
25490 cp "$am_depcomp" conftest.dir
25491 cd conftest.dir
25492 # We will build objects and dependencies in a subdirectory because
25493 # it helps to detect inapplicable dependency modes. For instance
25494 # both Tru64's cc and ICC support -MD to output dependencies as a
25495 # side effect of compilation, but ICC will put the dependencies in
25496 # the current directory while Tru64 will put them in the object
25497 # directory.
25498 mkdir sub
25499
25500 am_cv_CXX_dependencies_compiler_type=none
25501 if test "$am_compiler_list" = ""; then
25502 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25503 fi
25504 am__universal=false
25505 case " $depcc " in #(
25506 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25507 esac
25508
25509 for depmode in $am_compiler_list; do
25510 # Setup a source with many dependencies, because some compilers
25511 # like to wrap large dependency lists on column 80 (with \), and
25512 # we should not choose a depcomp mode which is confused by this.
25513 #
25514 # We need to recreate these files for each test, as the compiler may
25515 # overwrite some of them when testing with obscure command lines.
25516 # This happens at least with the AIX C compiler.
25517 : > sub/conftest.c
25518 for i in 1 2 3 4 5 6; do
25519 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025520 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25521 # Solaris 10 /bin/sh.
25522 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025523 done
25524 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25525
cristyc0890a62012-07-19 00:18:20 +000025526 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025527 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025528 # handle '-M -o', and we need to detect this. Also, some Intel
25529 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025530 am__obj=sub/conftest.${OBJEXT-o}
25531 am__minus_obj="-o $am__obj"
25532 case $depmode in
25533 gcc)
25534 # This depmode causes a compiler race in universal mode.
25535 test "$am__universal" = false || continue
25536 ;;
25537 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025538 # After this tag, mechanisms are not by side-effect, so they'll
25539 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025540 if test "x$enable_dependency_tracking" = xyes; then
25541 continue
25542 else
25543 break
25544 fi
25545 ;;
cristy7247bba2012-02-05 16:37:27 +000025546 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025547 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025548 # not run yet. These depmodes are late enough in the game, and
25549 # so weak that their functioning should not be impacted.
25550 am__obj=conftest.${OBJEXT-o}
25551 am__minus_obj=
25552 ;;
25553 none) break ;;
25554 esac
25555 if depmode=$depmode \
25556 source=sub/conftest.c object=$am__obj \
25557 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25558 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25559 >/dev/null 2>conftest.err &&
25560 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25561 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25562 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25563 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25564 # icc doesn't choke on unknown options, it will just issue warnings
25565 # or remarks (even with -Werror). So we grep stderr for any message
25566 # that says an option was ignored or not supported.
25567 # When given -MP, icc 7.0 and 7.1 complain thusly:
25568 # icc: Command line warning: ignoring option '-M'; no argument required
25569 # The diagnosis changed in icc 8.0:
25570 # icc: Command line remark: option '-MP' not supported
25571 if (grep 'ignoring option' conftest.err ||
25572 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25573 am_cv_CXX_dependencies_compiler_type=$depmode
25574 break
25575 fi
25576 fi
25577 done
25578
25579 cd ..
25580 rm -rf conftest.dir
25581else
25582 am_cv_CXX_dependencies_compiler_type=none
25583fi
25584
25585fi
25586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25587$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25588CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25589
25590 if
25591 test "x$enable_dependency_tracking" != xno \
25592 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25593 am__fastdepCXX_TRUE=
25594 am__fastdepCXX_FALSE='#'
25595else
25596 am__fastdepCXX_TRUE='#'
25597 am__fastdepCXX_FALSE=
25598fi
25599
25600
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25602$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025603if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025604 $as_echo_n "(cached) " >&6
25605else
25606
25607 ac_ext=cpp
25608ac_cpp='$CXXCPP $CPPFLAGS'
25609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25612
25613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25614/* end confdefs.h. */
25615
25616int f(int x){return 1;}
25617int f(char x){return 1;}
25618int f(bool x){return 1;}
25619
25620int
25621main ()
25622{
25623bool b = true; return f(b);
25624 ;
25625 return 0;
25626}
25627_ACEOF
25628if ac_fn_cxx_try_compile "$LINENO"; then :
25629 ax_cv_cxx_bool=yes
25630else
25631 ax_cv_cxx_bool=no
25632fi
25633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25634 ac_ext=cpp
25635ac_cpp='$CXXCPP $CPPFLAGS'
25636ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25637ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25638ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25639
25640
25641fi
25642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25643$as_echo "$ax_cv_cxx_bool" >&6; }
25644if test "$ax_cv_cxx_bool" = yes; then
25645
25646$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25647
25648fi
25649
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25651$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025652if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025653 $as_echo_n "(cached) " >&6
25654else
25655
25656 ac_ext=cpp
25657ac_cpp='$CXXCPP $CPPFLAGS'
25658ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25659ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25660ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25661
25662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25663/* end confdefs.h. */
25664namespace Outer { namespace Inner { int i = 0; }}
25665int
25666main ()
25667{
25668using namespace Outer::Inner; return i;
25669 ;
25670 return 0;
25671}
25672_ACEOF
25673if ac_fn_cxx_try_compile "$LINENO"; then :
25674 ax_cv_cxx_namespaces=yes
25675else
25676 ax_cv_cxx_namespaces=no
25677fi
25678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25679 ac_ext=cpp
25680ac_cpp='$CXXCPP $CPPFLAGS'
25681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25684
25685
25686fi
25687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25688$as_echo "$ax_cv_cxx_namespaces" >&6; }
25689if test "$ax_cv_cxx_namespaces" = yes; then
25690
25691$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25692
25693fi
25694
25695
25696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25697$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025698if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025699 $as_echo_n "(cached) " >&6
25700else
25701
25702 ac_ext=cpp
25703ac_cpp='$CXXCPP $CPPFLAGS'
25704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25707
25708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25709/* end confdefs.h. */
25710#include <iostream>
25711 std::istream& is = std::cin;
25712int
25713main ()
25714{
25715
25716 ;
25717 return 0;
25718}
25719_ACEOF
25720if ac_fn_cxx_try_compile "$LINENO"; then :
25721 ax_cv_cxx_have_std_namespace=yes
25722else
25723 ax_cv_cxx_have_std_namespace=no
25724fi
25725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25726 ac_ext=cpp
25727ac_cpp='$CXXCPP $CPPFLAGS'
25728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25731
25732
25733fi
25734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25735$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25736 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25737
25738$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25739
25740 fi
25741
25742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25743$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025744if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025745 $as_echo_n "(cached) " >&6
25746else
25747
25748
25749 ac_ext=cpp
25750ac_cpp='$CXXCPP $CPPFLAGS'
25751ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25752ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25753ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25754
25755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25756/* end confdefs.h. */
25757#include <iostream>
25758#include <map>
25759#include <iomanip>
25760#include <cmath>
25761#ifdef HAVE_NAMESPACES
25762using namespace std;
25763#endif
25764int
25765main ()
25766{
25767return 0;
25768 ;
25769 return 0;
25770}
25771_ACEOF
25772if ac_fn_cxx_try_compile "$LINENO"; then :
25773 ac_cv_cxx_have_std_libs=yes
25774else
25775 ac_cv_cxx_have_std_libs=no
25776fi
25777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25778 ac_ext=cpp
25779ac_cpp='$CXXCPP $CPPFLAGS'
25780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25783
25784
25785fi
25786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25787$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25788if test "$ac_cv_cxx_have_std_libs" = yes; then
25789
25790$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25791
25792fi
25793
cristy3ed852e2009-09-05 21:47:34 +000025794
25795 OPENMP_CXXFLAGS=
25796 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025797if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025798 enableval=$enable_openmp;
25799fi
25800
25801 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25803$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025804if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025805 $as_echo_n "(cached) " >&6
25806else
cristy8b350f62009-11-15 23:12:43 +000025807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25808/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025809
25810#ifndef _OPENMP
25811 choke me
25812#endif
25813#include <omp.h>
25814int main () { return omp_get_num_threads (); }
25815
25816_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025817if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025818 ac_cv_prog_cxx_openmp='none needed'
25819else
cristy8b350f62009-11-15 23:12:43 +000025820 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025821 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25822 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025823 ac_save_CXXFLAGS=$CXXFLAGS
25824 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25826/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025827
25828#ifndef _OPENMP
25829 choke me
25830#endif
25831#include <omp.h>
25832int main () { return omp_get_num_threads (); }
25833
25834_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025835if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025836 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025837fi
cristy8b350f62009-11-15 23:12:43 +000025838rm -f core conftest.err conftest.$ac_objext \
25839 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025840 CXXFLAGS=$ac_save_CXXFLAGS
25841 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25842 break
25843 fi
25844 done
25845fi
cristy8b350f62009-11-15 23:12:43 +000025846rm -f core conftest.err conftest.$ac_objext \
25847 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025848fi
cristy8b350f62009-11-15 23:12:43 +000025849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025850$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25851 case $ac_cv_prog_cxx_openmp in #(
25852 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025853 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025854 *)
cristy8b350f62009-11-15 23:12:43 +000025855 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025856 esac
25857 fi
25858
25859
25860 ac_ext=c
25861ac_cpp='$CPP $CPPFLAGS'
25862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25864ac_compiler_gnu=$ac_cv_c_compiler_gnu
25865
25866
cristy8b350f62009-11-15 23:12:43 +000025867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025868$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25869 if \
cristy964cb7f2010-04-25 23:18:00 +000025870 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025871 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025872 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025873 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025874 have_magick_plus_plus='yes'
25875 else
25876 have_magick_plus_plus='no (failed tests)'
25877 fi
cristyad38abe2012-12-23 23:03:21 +000025878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
25879$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025880 LIBS="$OLIBS"
25881fi
cristy73bd4a52010-10-05 11:24:23 +000025882 if test "$have_magick_plus_plus" = 'yes'; then
25883 WITH_MAGICK_PLUS_PLUS_TRUE=
25884 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25885else
25886 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25887 WITH_MAGICK_PLUS_PLUS_FALSE=
25888fi
25889
cristy3ed852e2009-09-05 21:47:34 +000025890
25891# Only check for delegate libraries in subdirectories if requested.
25892if test "$enable_delegate_build" != 'no'; then
25893 # Check for delegate sub-directories and add -I & -L options as required.
25894 # This presumes that delegates are installed as detailed in the ImageMagick
25895 # README. If delegates are installed in a standard location where the
25896 # compiler will automatically find them then these options should not be
25897 # required.
25898
25899 #
25900 # Most delegates have includes in the same directory as the library, but not all...
25901 #
25902 # Includes
cristy2542fc62011-12-06 17:50:25 +000025903 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 +000025904 if test -d "$builddir/$dir"; then
25905 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25906 else
25907 if test -d "$srcdirfull/$dir"; then
25908 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25909 fi
25910 fi
25911 done
25912
25913 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025914 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 +000025915 if test -d "$builddir/$dir/.libs"; then
25916 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25917 else
25918 if test -d "$srcdirfull/$dir/.libs"; then
25919 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25920 fi
25921 fi
25922 if test -d "$builddir/$dir"; then
25923 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25924 else
25925 if test -d "$srcdirfull/$dir"; then
25926 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25927 fi
25928 fi
25929 done
25930fi
25931
25932# Assume that delegate headers reside under same directory as ImageMagick
25933# installation prefix.
25934MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25935
25936#
25937# Find the X11 RGB database
25938#
cristy8b350f62009-11-15 23:12:43 +000025939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025940$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025941if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025942 $as_echo_n "(cached) " >&6
25943else
25944 # Look for the header file in a standard set of common directories.
25945# Check X11 before X11Rn because it is often a symlink to the current release.
25946 for ac_dir in \
25947 /lib/usr/lib/X11 \
25948 /usr/X11/lib \
25949 /usr/X11R4/lib \
25950 /usr/X11R5/lib \
25951 /usr/X11R6/lib \
25952 /usr/X11R7/lib \
25953 /usr/X386/lib \
25954 /usr/XFree86/lib/X11 \
25955 /usr/athena/lib \
25956 /usr/lib \
25957 /usr/lib/X11 \
25958 /usr/lib/X11R4 \
25959 /usr/lib/X11R5 \
25960 /usr/lib/X11R6 \
25961 /usr/lib/X11R7 \
25962 /usr/local/X11/lib \
25963 /usr/local/X11R4/lib \
25964 /usr/local/X11R5/lib \
25965 /usr/local/X11R6/lib \
25966 /usr/local/lib \
25967 /usr/local/lib/X11 \
25968 /usr/local/lib/X11R4 \
25969 /usr/local/lib/X11R5 \
25970 /usr/local/lib/X11R6 \
25971 /usr/local/lib/X11R7 \
25972 /usr/local/x11r5/lib \
25973 /usr/lpp/Xamples/lib \
25974 /usr/openwin/lib \
25975 /usr/openwin/share/lib \
25976 /usr/unsupported/lib \
25977 /usr/x386/lib \
25978 ; do
25979 if test -f "$ac_dir/X11/rgb.txt"; then
25980 im_cv_x_configure="$ac_dir/X11/"
25981 break
25982 elif test -f "$ac_dir/rgb.txt"; then
25983 im_cv_x_configure="$ac_dir/"
25984 break
25985 fi
25986
25987 done
25988fi
cristy8b350f62009-11-15 23:12:43 +000025989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025990$as_echo "$im_cv_x_configure" >&6; }
25991X11_CONFIGURE_PATH="$im_cv_x_configure"
25992case "${build_os}" in
25993 mingw* )
25994 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25995 ;;
25996esac
25997
25998cat >>confdefs.h <<_ACEOF
25999#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26000_ACEOF
26001
26002
26003#
26004# Find OpenMP library
26005#
26006GOMP_LIBS=''
26007if test "$enable_openmp" != 'no'; then
26008 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026009 # Open64 (passes for GCC but uses different OpenMP implementation)
26010 if test "x$GOMP_LIBS" = x ; then
26011 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26013$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26014if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26015 $as_echo_n "(cached) " >&6
26016else
26017 ac_check_lib_save_LIBS=$LIBS
26018LIBS="-lopenmp $LIBS"
26019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26020/* end confdefs.h. */
26021
26022/* Override any GCC internal prototype to avoid an error.
26023 Use char because int might match the return type of a GCC
26024 builtin and then its argument prototype would still apply. */
26025#ifdef __cplusplus
26026extern "C"
26027#endif
26028char omp_get_num_procs ();
26029int
26030main ()
26031{
26032return omp_get_num_procs ();
26033 ;
26034 return 0;
26035}
26036_ACEOF
26037if ac_fn_c_try_link "$LINENO"; then :
26038 ac_cv_lib_openmp_omp_get_num_procs=yes
26039else
26040 ac_cv_lib_openmp_omp_get_num_procs=no
26041fi
26042rm -f core conftest.err conftest.$ac_objext \
26043 conftest$ac_exeext conftest.$ac_ext
26044LIBS=$ac_check_lib_save_LIBS
26045fi
26046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26047$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26048if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26049 GOMP_LIBS="-lopenmp"
26050fi
26051
26052 fi
26053 fi
26054 # GCC
26055 if test "x$GOMP_LIBS" = x ; then
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026057$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026058if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026059 $as_echo_n "(cached) " >&6
26060else
26061 ac_check_lib_save_LIBS=$LIBS
26062LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026064/* end confdefs.h. */
26065
26066/* Override any GCC internal prototype to avoid an error.
26067 Use char because int might match the return type of a GCC
26068 builtin and then its argument prototype would still apply. */
26069#ifdef __cplusplus
26070extern "C"
26071#endif
26072char GOMP_parallel_start ();
26073int
26074main ()
26075{
26076return GOMP_parallel_start ();
26077 ;
26078 return 0;
26079}
26080_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026081if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026082 ac_cv_lib_gomp_GOMP_parallel_start=yes
26083else
cristy8b350f62009-11-15 23:12:43 +000026084 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026085fi
cristy8b350f62009-11-15 23:12:43 +000026086rm -f core conftest.err conftest.$ac_objext \
26087 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026088LIBS=$ac_check_lib_save_LIBS
26089fi
cristy8b350f62009-11-15 23:12:43 +000026090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026091$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026092if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026093 GOMP_LIBS="-lgomp"
26094fi
cristy18307f12011-12-30 01:20:16 +000026095
26096 fi
cristy3ed852e2009-09-05 21:47:34 +000026097 else
cristy18307f12011-12-30 01:20:16 +000026098 # Sun CC
26099 if test "x$GOMP_LIBS" = x ; then
26100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026101$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026102if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026103 $as_echo_n "(cached) " >&6
26104else
26105 ac_check_lib_save_LIBS=$LIBS
26106LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026108/* end confdefs.h. */
26109
26110/* Override any GCC internal prototype to avoid an error.
26111 Use char because int might match the return type of a GCC
26112 builtin and then its argument prototype would still apply. */
26113#ifdef __cplusplus
26114extern "C"
26115#endif
26116char sunw_mp_register_warn ();
26117int
26118main ()
26119{
26120return sunw_mp_register_warn ();
26121 ;
26122 return 0;
26123}
26124_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026125if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026126 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26127else
cristy8b350f62009-11-15 23:12:43 +000026128 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026129fi
cristy8b350f62009-11-15 23:12:43 +000026130rm -f core conftest.err conftest.$ac_objext \
26131 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026132LIBS=$ac_check_lib_save_LIBS
26133fi
cristy8b350f62009-11-15 23:12:43 +000026134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026135$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026136if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026137 GOMP_LIBS="-lmtsk"
26138fi
cristy18307f12011-12-30 01:20:16 +000026139
26140 fi
26141 # AIX xlc
26142 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026144$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026145if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026146 $as_echo_n "(cached) " >&6
26147else
26148 ac_check_lib_save_LIBS=$LIBS
26149LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026151/* end confdefs.h. */
26152
26153/* Override any GCC internal prototype to avoid an error.
26154 Use char because int might match the return type of a GCC
26155 builtin and then its argument prototype would still apply. */
26156#ifdef __cplusplus
26157extern "C"
26158#endif
26159char _xlsmpFlush ();
26160int
26161main ()
26162{
26163return _xlsmpFlush ();
26164 ;
26165 return 0;
26166}
26167_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026168if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026169 ac_cv_lib_xlsmp__xlsmpFlush=yes
26170else
cristy8b350f62009-11-15 23:12:43 +000026171 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026172fi
cristy8b350f62009-11-15 23:12:43 +000026173rm -f core conftest.err conftest.$ac_objext \
26174 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026175LIBS=$ac_check_lib_save_LIBS
26176fi
cristy8b350f62009-11-15 23:12:43 +000026177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026178$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026179if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026180 GOMP_LIBS="-lxlsmp"
26181fi
cristy18307f12011-12-30 01:20:16 +000026182
26183 fi
26184 # SGI IRIX 6.5 MIPSpro C/C++
26185 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026187$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026188if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026189 $as_echo_n "(cached) " >&6
26190else
26191 ac_check_lib_save_LIBS=$LIBS
26192LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026194/* end confdefs.h. */
26195
26196/* Override any GCC internal prototype to avoid an error.
26197 Use char because int might match the return type of a GCC
26198 builtin and then its argument prototype would still apply. */
26199#ifdef __cplusplus
26200extern "C"
26201#endif
26202char mp_destroy ();
26203int
26204main ()
26205{
26206return mp_destroy ();
26207 ;
26208 return 0;
26209}
26210_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026211if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026212 ac_cv_lib_mp_mp_destroy=yes
26213else
cristy8b350f62009-11-15 23:12:43 +000026214 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026215fi
cristy8b350f62009-11-15 23:12:43 +000026216rm -f core conftest.err conftest.$ac_objext \
26217 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026218LIBS=$ac_check_lib_save_LIBS
26219fi
cristy8b350f62009-11-15 23:12:43 +000026220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026221$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026222if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026223 GOMP_LIBS="-lmp"
26224fi
cristy18307f12011-12-30 01:20:16 +000026225
26226 fi
cristy3ed852e2009-09-05 21:47:34 +000026227 fi
26228 LIBS="$GOMP_LIBS $LIBS"
26229fi
26230
26231
26232#
26233# Find Posix threads library
26234#
26235THREAD_LIBS=''
26236if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26237
26238 if test "x$PTHREAD_LIBS" = "x"; then
26239 case "${host_cpu}-${host_os}" in
26240 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026241
26242
26243
26244ac_ext=c
26245ac_cpp='$CPP $CPPFLAGS'
26246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26248ac_compiler_gnu=$ac_cv_c_compiler_gnu
26249
26250magick_pthread_lib_ok=no
26251
26252LIB=-lc_r
26253save_LIBS="$LIBS"
26254LIBS="$LIBS $LIB"
26255
26256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26257$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26259/* end confdefs.h. */
26260#include <pthread.h>
26261int
26262main ()
26263{
26264 pthread_t th;
26265 pthread_join(th, 0);
26266 pthread_attr_init(0);
26267 pthread_cleanup_push(0, 0);
26268 pthread_create(0,0,0,0);
26269 pthread_cleanup_pop(0);
26270 ;
26271 return 0;
26272}
26273_ACEOF
26274if ac_fn_c_try_link "$LINENO"; then :
26275 magick_pthread_lib_ok=yes
26276fi
26277rm -f core conftest.err conftest.$ac_objext \
26278 conftest$ac_exeext conftest.$ac_ext
26279
26280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26281$as_echo "${magick_pthread_lib_ok}" >&6; }
26282if test "$magick_pthread_lib_ok" = yes
26283then
26284 PTHREAD_LIBS=-lc_r
26285 :
26286else
26287
26288 :
26289fi
26290
26291LIBS="$save_LIBS"
26292
26293ac_ext=c
26294ac_cpp='$CPP $CPPFLAGS'
26295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26297ac_compiler_gnu=$ac_cv_c_compiler_gnu
26298
26299 ;;
cristy3ed852e2009-09-05 21:47:34 +000026300 esac
26301 fi
26302
26303 for lib in pthread pthreads; do
26304 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026305
26306
26307
26308ac_ext=c
26309ac_cpp='$CPP $CPPFLAGS'
26310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26312ac_compiler_gnu=$ac_cv_c_compiler_gnu
26313
26314magick_pthread_lib_ok=no
26315
26316LIB=-l$lib
26317save_LIBS="$LIBS"
26318LIBS="$LIBS $LIB"
26319
26320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26321$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26323/* end confdefs.h. */
26324#include <pthread.h>
26325int
26326main ()
26327{
26328 pthread_t th;
26329 pthread_join(th, 0);
26330 pthread_attr_init(0);
26331 pthread_cleanup_push(0, 0);
26332 pthread_create(0,0,0,0);
26333 pthread_cleanup_pop(0);
26334 ;
26335 return 0;
26336}
26337_ACEOF
26338if ac_fn_c_try_link "$LINENO"; then :
26339 magick_pthread_lib_ok=yes
26340fi
26341rm -f core conftest.err conftest.$ac_objext \
26342 conftest$ac_exeext conftest.$ac_ext
26343
26344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26345$as_echo "${magick_pthread_lib_ok}" >&6; }
26346if test "$magick_pthread_lib_ok" = yes
26347then
26348 PTHREAD_LIBS=-l$lib
26349 :
26350else
26351
26352 :
26353fi
26354
26355LIBS="$save_LIBS"
26356
26357ac_ext=c
26358ac_cpp='$CPP $CPPFLAGS'
26359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26361ac_compiler_gnu=$ac_cv_c_compiler_gnu
26362
26363
cristy3ed852e2009-09-05 21:47:34 +000026364 fi
26365 done
26366
26367 THREAD_LIBS="$PTHREAD_LIBS"
26368 LIBS="$LIBS $THREAD_LIBS"
26369fi
26370
26371
26372#
26373# Check for umem.
26374#
26375have_umem='no'
26376UMEM_LIBS=''
26377if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026379$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26381$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026382 failed=0
26383 passed=0
cristy8b350f62009-11-15 23:12:43 +000026384 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026385if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026386 passed=`expr $passed + 1`
26387else
26388 failed=`expr $failed + 1`
26389fi
26390
26391
cristy8b350f62009-11-15 23:12:43 +000026392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026393$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026394if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026395 $as_echo_n "(cached) " >&6
26396else
26397 ac_check_lib_save_LIBS=$LIBS
26398LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026400/* end confdefs.h. */
26401
26402/* Override any GCC internal prototype to avoid an error.
26403 Use char because int might match the return type of a GCC
26404 builtin and then its argument prototype would still apply. */
26405#ifdef __cplusplus
26406extern "C"
26407#endif
26408char umem_alloc ();
26409int
26410main ()
26411{
26412return umem_alloc ();
26413 ;
26414 return 0;
26415}
26416_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026417if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026418 ac_cv_lib_umem_umem_alloc=yes
26419else
cristy8b350f62009-11-15 23:12:43 +000026420 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026421fi
cristy8b350f62009-11-15 23:12:43 +000026422rm -f core conftest.err conftest.$ac_objext \
26423 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026424LIBS=$ac_check_lib_save_LIBS
26425fi
cristy8b350f62009-11-15 23:12:43 +000026426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026427$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026428if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026429 passed=`expr $passed + 1`
26430else
26431 failed=`expr $failed + 1`
26432fi
26433
cristy8b350f62009-11-15 23:12:43 +000026434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026435$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026436if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026437 $as_echo_n "(cached) " >&6
26438else
26439 ac_check_lib_save_LIBS=$LIBS
26440LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026442/* end confdefs.h. */
26443
26444/* Override any GCC internal prototype to avoid an error.
26445 Use char because int might match the return type of a GCC
26446 builtin and then its argument prototype would still apply. */
26447#ifdef __cplusplus
26448extern "C"
26449#endif
26450char umem_free ();
26451int
26452main ()
26453{
26454return umem_free ();
26455 ;
26456 return 0;
26457}
26458_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026459if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026460 ac_cv_lib_umem_umem_free=yes
26461else
cristy8b350f62009-11-15 23:12:43 +000026462 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026463fi
cristy8b350f62009-11-15 23:12:43 +000026464rm -f core conftest.err conftest.$ac_objext \
26465 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026466LIBS=$ac_check_lib_save_LIBS
26467fi
cristy8b350f62009-11-15 23:12:43 +000026468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026469$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026470if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026471 passed=`expr $passed + 1`
26472else
26473 failed=`expr $failed + 1`
26474fi
26475
cristy8b350f62009-11-15 23:12:43 +000026476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026477$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26478 if test $passed -gt 0; then
26479 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26481$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026482 have_umem='no (failed tests)'
26483 else
26484 UMEM_LIBS='-lumem'
26485 LIBS="$UMEM_LIBS $LIBS"
26486
cristy8b350f62009-11-15 23:12:43 +000026487$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026488
cristyad38abe2012-12-23 23:03:21 +000026489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26490$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026491 have_umem='yes'
26492 fi
26493 else
cristyad38abe2012-12-23 23:03:21 +000026494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26495$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026496 fi
26497fi
cristy73bd4a52010-10-05 11:24:23 +000026498 if test "$have_umem" = 'yes'; then
26499 HasUMEM_TRUE=
26500 HasUMEM_FALSE='#'
26501else
26502 HasUMEM_TRUE='#'
26503 HasUMEM_FALSE=
26504fi
26505
cristy3ed852e2009-09-05 21:47:34 +000026506
26507
26508#
26509# Add support for ccmalloc memory debugging library if requested
26510#
26511have_ccmalloc='no'
26512CCMALLOC_LIBS=''
26513if test "$enable_ccmalloc" = 'yes'; then
26514 # Extract the first word of "ccmalloc", so it can be a program name with args.
26515set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026517$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026518if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026519 $as_echo_n "(cached) " >&6
26520else
26521 case $CCMALLOCDelegate in
26522 [\\/]* | ?:[\\/]*)
26523 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26524 ;;
26525 *)
26526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26527for as_dir in $PATH
26528do
26529 IFS=$as_save_IFS
26530 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026531 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026533 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026535 break 2
26536 fi
26537done
cristy8b350f62009-11-15 23:12:43 +000026538 done
cristy3ed852e2009-09-05 21:47:34 +000026539IFS=$as_save_IFS
26540
26541 ;;
26542esac
26543fi
26544CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26545if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026547$as_echo "$CCMALLOCDelegate" >&6; }
26548else
cristy8b350f62009-11-15 23:12:43 +000026549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026550$as_echo "no" >&6; }
26551fi
26552
26553
26554 if test -n "$CCMALLOCDelegate"; then
26555 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26556 OLIBS="$LIBS"
26557 # Assume that gcc is used with ccmalloc.
26558 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026560$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026561if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026562 $as_echo_n "(cached) " >&6
26563else
26564 ac_check_lib_save_LIBS=$LIBS
26565LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026567/* end confdefs.h. */
26568
26569/* Override any GCC internal prototype to avoid an error.
26570 Use char because int might match the return type of a GCC
26571 builtin and then its argument prototype would still apply. */
26572#ifdef __cplusplus
26573extern "C"
26574#endif
26575char ccmalloc_malloc ();
26576int
26577main ()
26578{
26579return ccmalloc_malloc ();
26580 ;
26581 return 0;
26582}
26583_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026584if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026585 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26586else
cristy8b350f62009-11-15 23:12:43 +000026587 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026588fi
cristy8b350f62009-11-15 23:12:43 +000026589rm -f core conftest.err conftest.$ac_objext \
26590 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026591LIBS=$ac_check_lib_save_LIBS
26592fi
cristy8b350f62009-11-15 23:12:43 +000026593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026594$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026595if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026596 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26597fi
26598
26599 if test -n "$CCMALLOC_LIBS"; then
26600 LIBS="$OLIBS"
26601 LIBS="$LIBS $CCMALLOC_LIBS"
26602 have_ccmalloc='yes'
26603 else
26604 LIBS="$OLIBS"
26605 fi
26606 fi
26607fi
26608
26609#
26610# Add support for efence memory debugging library if requested
26611#
26612if test "$enable_efence" = 'yes'; then
26613 EFENCE_LIBS='-lefence'
26614 LIBS="$EFENCE_LIBS $LIBS"
26615fi
26616
cristy3ed852e2009-09-05 21:47:34 +000026617
26618#
26619# Check for BZLIB
26620#
26621
26622
26623# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026624if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026625 withval=$with_bzlib; with_bzlib=$withval
26626else
26627 with_bzlib='yes'
26628fi
26629
26630
26631if test "$with_bzlib" != 'yes'; then
26632 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26633fi
26634
26635have_bzlib='no'
26636if test "$with_bzlib" != 'no'; then
26637 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26639$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026641$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26643$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026644 failed=0
26645 passed=0
26646 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026647 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026648if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026649 passed=`expr $passed + 1`
26650else
26651 failed=`expr $failed + 1`
26652fi
26653
26654
cristy8b350f62009-11-15 23:12:43 +000026655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026656$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026657if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026658 $as_echo_n "(cached) " >&6
26659else
26660 ac_check_lib_save_LIBS=$LIBS
26661LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026663/* end confdefs.h. */
26664
26665/* Override any GCC internal prototype to avoid an error.
26666 Use char because int might match the return type of a GCC
26667 builtin and then its argument prototype would still apply. */
26668#ifdef __cplusplus
26669extern "C"
26670#endif
26671char BZ2_bzDecompress ();
26672int
26673main ()
26674{
26675return BZ2_bzDecompress ();
26676 ;
26677 return 0;
26678}
26679_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026680if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026681 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26682else
cristy8b350f62009-11-15 23:12:43 +000026683 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026684fi
cristy8b350f62009-11-15 23:12:43 +000026685rm -f core conftest.err conftest.$ac_objext \
26686 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026687LIBS=$ac_check_lib_save_LIBS
26688fi
cristy8b350f62009-11-15 23:12:43 +000026689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026690$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026691if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026692 found_libbz=`expr $found_libbz + 1`
26693fi
26694
26695 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026697$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026698if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026699 $as_echo_n "(cached) " >&6
26700else
26701 ac_check_lib_save_LIBS=$LIBS
26702LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026704/* end confdefs.h. */
26705
26706/* Override any GCC internal prototype to avoid an error.
26707 Use char because int might match the return type of a GCC
26708 builtin and then its argument prototype would still apply. */
26709#ifdef __cplusplus
26710extern "C"
26711#endif
26712char _imp__BZ2_decompress ();
26713int
26714main ()
26715{
26716return _imp__BZ2_decompress ();
26717 ;
26718 return 0;
26719}
26720_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026721if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026722 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26723else
cristy8b350f62009-11-15 23:12:43 +000026724 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026725fi
cristy8b350f62009-11-15 23:12:43 +000026726rm -f core conftest.err conftest.$ac_objext \
26727 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026728LIBS=$ac_check_lib_save_LIBS
26729fi
cristy8b350f62009-11-15 23:12:43 +000026730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026731$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026732if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026733 found_libbz=`expr $found_libbz + 1`
26734fi
26735
26736 fi
26737 if test $found_libbz -gt 0; then
26738 passed=`expr $passed + 1`
26739 else
26740 failed=`expr $failed + 1`
26741 fi
cristy8b350f62009-11-15 23:12:43 +000026742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026743$as_echo_n "checking if BZLIB package is complete... " >&6; }
26744 if test $passed -gt 0; then
26745 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26747$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026748 have_bzlib='no (failed tests)'
26749 else
26750 BZLIB_LIBS='-lbz2'
26751 LIBS="$BZLIB_LIBS $LIBS"
26752
cristy8b350f62009-11-15 23:12:43 +000026753$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026754
cristyad38abe2012-12-23 23:03:21 +000026755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26756$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026757 have_bzlib='yes'
26758 fi
26759 else
cristyad38abe2012-12-23 23:03:21 +000026760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26761$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026762 fi
26763fi
cristy73bd4a52010-10-05 11:24:23 +000026764 if test "$have_bzlib" = 'yes'; then
26765 BZLIB_DELEGATE_TRUE=
26766 BZLIB_DELEGATE_FALSE='#'
26767else
26768 BZLIB_DELEGATE_TRUE='#'
26769 BZLIB_DELEGATE_FALSE=
26770fi
26771
cristy3ed852e2009-09-05 21:47:34 +000026772
26773
26774#
26775# Find the X11 include and library directories.
26776#
26777IPC_LIBS=''
26778X11_LIBS=''
26779XEXT_LIBS=''
26780XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026782$as_echo_n "checking for X... " >&6; }
26783
26784
26785# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026786if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026787 withval=$with_x;
26788fi
26789
26790# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26791if test "x$with_x" = xno; then
26792 # The user explicitly disabled X.
26793 have_x=disabled
26794else
26795 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026796 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026797 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026798 $as_echo_n "(cached) " >&6
26799else
26800 # One or both of the vars are not set, and there is no cached value.
26801ac_x_includes=no ac_x_libraries=no
26802rm -f -r conftest.dir
26803if mkdir conftest.dir; then
26804 cd conftest.dir
26805 cat >Imakefile <<'_ACEOF'
26806incroot:
26807 @echo incroot='${INCROOT}'
26808usrlibdir:
26809 @echo usrlibdir='${USRLIBDIR}'
26810libdir:
26811 @echo libdir='${LIBDIR}'
26812_ACEOF
26813 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026814 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026815 for ac_var in incroot usrlibdir libdir; do
26816 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26817 done
26818 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26819 for ac_extension in a so sl dylib la dll; do
26820 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26821 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26822 ac_im_usrlibdir=$ac_im_libdir; break
26823 fi
26824 done
26825 # Screen out bogus values from the imake configuration. They are
26826 # bogus both because they are the default anyway, and because
26827 # using them would break gcc on systems where it needs fixed includes.
26828 case $ac_im_incroot in
26829 /usr/include) ac_x_includes= ;;
26830 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26831 esac
26832 case $ac_im_usrlibdir in
26833 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26834 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26835 esac
26836 fi
26837 cd ..
26838 rm -f -r conftest.dir
26839fi
26840
26841# Standard set of common directories for X headers.
26842# Check X11 before X11Rn because it is often a symlink to the current release.
26843ac_x_header_dirs='
26844/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026845/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026846/usr/X11R6/include
26847/usr/X11R5/include
26848/usr/X11R4/include
26849
26850/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026851/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026852/usr/include/X11R6
26853/usr/include/X11R5
26854/usr/include/X11R4
26855
26856/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026857/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026858/usr/local/X11R6/include
26859/usr/local/X11R5/include
26860/usr/local/X11R4/include
26861
26862/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026863/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026864/usr/local/include/X11R6
26865/usr/local/include/X11R5
26866/usr/local/include/X11R4
26867
26868/usr/X386/include
26869/usr/x386/include
26870/usr/XFree86/include/X11
26871
26872/usr/include
26873/usr/local/include
26874/usr/unsupported/include
26875/usr/athena/include
26876/usr/local/x11r5/include
26877/usr/lpp/Xamples/include
26878
26879/usr/openwin/include
26880/usr/openwin/share/include'
26881
26882if test "$ac_x_includes" = no; then
26883 # Guess where to find include files, by looking for Xlib.h.
26884 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026886/* end confdefs.h. */
26887#include <X11/Xlib.h>
26888_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026889if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026890 # We can compile using X headers with no special include directory.
26891ac_x_includes=
26892else
cristyc7083c12009-10-14 03:16:55 +000026893 for ac_dir in $ac_x_header_dirs; do
26894 if test -r "$ac_dir/X11/Xlib.h"; then
26895 ac_x_includes=$ac_dir
26896 break
26897 fi
26898done
26899fi
cristyda16f162011-02-19 23:52:17 +000026900rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026901fi # $ac_x_includes = no
26902
26903if test "$ac_x_libraries" = no; then
26904 # Check for the libraries.
26905 # See if we find them without any special options.
26906 # Don't add to $LIBS permanently.
26907 ac_save_LIBS=$LIBS
26908 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026910/* end confdefs.h. */
26911#include <X11/Xlib.h>
26912int
26913main ()
26914{
26915XrmInitialize ()
26916 ;
26917 return 0;
26918}
26919_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026920if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026921 LIBS=$ac_save_LIBS
26922# We can link X programs with no special library path.
26923ac_x_libraries=
26924else
cristy8b350f62009-11-15 23:12:43 +000026925 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026926for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26927do
26928 # Don't even attempt the hair of trying to link an X program!
26929 for ac_extension in a so sl dylib la dll; do
26930 if test -r "$ac_dir/libX11.$ac_extension"; then
26931 ac_x_libraries=$ac_dir
26932 break 2
26933 fi
26934 done
26935done
26936fi
cristy8b350f62009-11-15 23:12:43 +000026937rm -f core conftest.err conftest.$ac_objext \
26938 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026939fi # $ac_x_libraries = no
26940
26941case $ac_x_includes,$ac_x_libraries in #(
26942 no,* | *,no | *\'*)
26943 # Didn't find X, or a directory has "'" in its name.
26944 ac_cv_have_x="have_x=no";; #(
26945 *)
26946 # Record where we found X for the cache.
26947 ac_cv_have_x="have_x=yes\
26948 ac_x_includes='$ac_x_includes'\
26949 ac_x_libraries='$ac_x_libraries'"
26950esac
26951fi
26952;; #(
26953 *) have_x=yes;;
26954 esac
26955 eval "$ac_cv_have_x"
26956fi # $with_x != no
26957
26958if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026960$as_echo "$have_x" >&6; }
26961 no_x=yes
26962else
26963 # If each of the values was on the command line, it overrides each guess.
26964 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26965 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26966 # Update the cache value to reflect the command line values.
26967 ac_cv_have_x="have_x=yes\
26968 ac_x_includes='$x_includes'\
26969 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026971$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26972fi
26973
cristy3ed852e2009-09-05 21:47:34 +000026974if test "$no_x" = yes; then
26975 # Not all programs may use this symbol, but it does not hurt to define it.
26976
cristy8b350f62009-11-15 23:12:43 +000026977$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026978
26979 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26980else
26981 if test -n "$x_includes"; then
26982 X_CFLAGS="$X_CFLAGS -I$x_includes"
26983 fi
26984
26985 # It would also be nice to do this for all -L options, not just this one.
26986 if test -n "$x_libraries"; then
26987 X_LIBS="$X_LIBS -L$x_libraries"
26988 # For Solaris; some versions of Sun CC require a space after -R and
26989 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026991$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26992 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26993 ac_xsave_c_werror_flag=$ac_c_werror_flag
26994 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026996/* end confdefs.h. */
26997
26998int
26999main ()
27000{
27001
27002 ;
27003 return 0;
27004}
27005_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027006if ac_fn_c_try_link "$LINENO"; then :
27007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027008$as_echo "no" >&6; }
27009 X_LIBS="$X_LIBS -R$x_libraries"
27010else
cristy8b350f62009-11-15 23:12:43 +000027011 LIBS="$ac_xsave_LIBS -R $x_libraries"
27012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027013/* end confdefs.h. */
27014
27015int
27016main ()
27017{
27018
27019 ;
27020 return 0;
27021}
27022_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027023if ac_fn_c_try_link "$LINENO"; then :
27024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027025$as_echo "yes" >&6; }
27026 X_LIBS="$X_LIBS -R $x_libraries"
27027else
cristy8b350f62009-11-15 23:12:43 +000027028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027029$as_echo "neither works" >&6; }
27030fi
cristy8b350f62009-11-15 23:12:43 +000027031rm -f core conftest.err conftest.$ac_objext \
27032 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027033fi
cristy8b350f62009-11-15 23:12:43 +000027034rm -f core conftest.err conftest.$ac_objext \
27035 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027036 ac_c_werror_flag=$ac_xsave_c_werror_flag
27037 LIBS=$ac_xsave_LIBS
27038 fi
27039
27040 # Check for system-dependent libraries X programs must link with.
27041 # Do this before checking for the system-independent R6 libraries
27042 # (-lICE), since we may need -lsocket or whatever for X linking.
27043
27044 if test "$ISC" = yes; then
27045 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27046 else
27047 # Martyn Johnson says this is needed for Ultrix, if the X
27048 # libraries were built with DECnet support. And Karl Berry says
27049 # the Alpha needs dnet_stub (dnet does not exist).
27050 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027052/* end confdefs.h. */
27053
27054/* Override any GCC internal prototype to avoid an error.
27055 Use char because int might match the return type of a GCC
27056 builtin and then its argument prototype would still apply. */
27057#ifdef __cplusplus
27058extern "C"
27059#endif
27060char XOpenDisplay ();
27061int
27062main ()
27063{
27064return XOpenDisplay ();
27065 ;
27066 return 0;
27067}
27068_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027069if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027070
cristy8b350f62009-11-15 23:12:43 +000027071else
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027073$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027074if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027075 $as_echo_n "(cached) " >&6
27076else
27077 ac_check_lib_save_LIBS=$LIBS
27078LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027080/* end confdefs.h. */
27081
27082/* Override any GCC internal prototype to avoid an error.
27083 Use char because int might match the return type of a GCC
27084 builtin and then its argument prototype would still apply. */
27085#ifdef __cplusplus
27086extern "C"
27087#endif
27088char dnet_ntoa ();
27089int
27090main ()
27091{
27092return dnet_ntoa ();
27093 ;
27094 return 0;
27095}
27096_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027097if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027098 ac_cv_lib_dnet_dnet_ntoa=yes
27099else
cristy8b350f62009-11-15 23:12:43 +000027100 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027101fi
cristy8b350f62009-11-15 23:12:43 +000027102rm -f core conftest.err conftest.$ac_objext \
27103 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027104LIBS=$ac_check_lib_save_LIBS
27105fi
cristy8b350f62009-11-15 23:12:43 +000027106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027107$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027108if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027109 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27110fi
27111
27112 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027114$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027115if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027116 $as_echo_n "(cached) " >&6
27117else
27118 ac_check_lib_save_LIBS=$LIBS
27119LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027121/* end confdefs.h. */
27122
27123/* Override any GCC internal prototype to avoid an error.
27124 Use char because int might match the return type of a GCC
27125 builtin and then its argument prototype would still apply. */
27126#ifdef __cplusplus
27127extern "C"
27128#endif
27129char dnet_ntoa ();
27130int
27131main ()
27132{
27133return dnet_ntoa ();
27134 ;
27135 return 0;
27136}
27137_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027138if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027139 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27140else
cristy8b350f62009-11-15 23:12:43 +000027141 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027142fi
cristy8b350f62009-11-15 23:12:43 +000027143rm -f core conftest.err conftest.$ac_objext \
27144 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027145LIBS=$ac_check_lib_save_LIBS
27146fi
cristy8b350f62009-11-15 23:12:43 +000027147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027148$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027149if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027150 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27151fi
27152
27153 fi
27154fi
cristy8b350f62009-11-15 23:12:43 +000027155rm -f core conftest.err conftest.$ac_objext \
27156 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027157 LIBS="$ac_xsave_LIBS"
27158
27159 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27160 # to get the SysV transport functions.
27161 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27162 # needs -lnsl.
27163 # The nsl library prevents programs from opening the X display
27164 # on Irix 5.2, according to T.E. Dickey.
27165 # The functions gethostbyname, getservbyname, and inet_addr are
27166 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027167 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027168if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027169
cristy3ed852e2009-09-05 21:47:34 +000027170fi
27171
cristy3ed852e2009-09-05 21:47:34 +000027172 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027174$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027175if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027176 $as_echo_n "(cached) " >&6
27177else
27178 ac_check_lib_save_LIBS=$LIBS
27179LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027181/* end confdefs.h. */
27182
27183/* Override any GCC internal prototype to avoid an error.
27184 Use char because int might match the return type of a GCC
27185 builtin and then its argument prototype would still apply. */
27186#ifdef __cplusplus
27187extern "C"
27188#endif
27189char gethostbyname ();
27190int
27191main ()
27192{
27193return gethostbyname ();
27194 ;
27195 return 0;
27196}
27197_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027198if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027199 ac_cv_lib_nsl_gethostbyname=yes
27200else
cristy8b350f62009-11-15 23:12:43 +000027201 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027202fi
cristy8b350f62009-11-15 23:12:43 +000027203rm -f core conftest.err conftest.$ac_objext \
27204 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027205LIBS=$ac_check_lib_save_LIBS
27206fi
cristy8b350f62009-11-15 23:12:43 +000027207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027208$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027209if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027210 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27211fi
27212
27213 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027215$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027216if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027217 $as_echo_n "(cached) " >&6
27218else
27219 ac_check_lib_save_LIBS=$LIBS
27220LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027222/* end confdefs.h. */
27223
27224/* Override any GCC internal prototype to avoid an error.
27225 Use char because int might match the return type of a GCC
27226 builtin and then its argument prototype would still apply. */
27227#ifdef __cplusplus
27228extern "C"
27229#endif
27230char gethostbyname ();
27231int
27232main ()
27233{
27234return gethostbyname ();
27235 ;
27236 return 0;
27237}
27238_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027239if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027240 ac_cv_lib_bsd_gethostbyname=yes
27241else
cristy8b350f62009-11-15 23:12:43 +000027242 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027243fi
cristy8b350f62009-11-15 23:12:43 +000027244rm -f core conftest.err conftest.$ac_objext \
27245 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027246LIBS=$ac_check_lib_save_LIBS
27247fi
cristy8b350f62009-11-15 23:12:43 +000027248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027249$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027250if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027251 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27252fi
27253
27254 fi
27255 fi
27256
27257 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27258 # socket/setsockopt and other routines are undefined under SCO ODT
27259 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27260 # on later versions), says Simon Leinen: it contains gethostby*
27261 # variants that don't use the name server (or something). -lsocket
27262 # must be given before -lnsl if both are needed. We assume that
27263 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027264 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027265if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027266
cristy3ed852e2009-09-05 21:47:34 +000027267fi
27268
cristy3ed852e2009-09-05 21:47:34 +000027269 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027271$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027272if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027273 $as_echo_n "(cached) " >&6
27274else
27275 ac_check_lib_save_LIBS=$LIBS
27276LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027278/* end confdefs.h. */
27279
27280/* Override any GCC internal prototype to avoid an error.
27281 Use char because int might match the return type of a GCC
27282 builtin and then its argument prototype would still apply. */
27283#ifdef __cplusplus
27284extern "C"
27285#endif
27286char connect ();
27287int
27288main ()
27289{
27290return connect ();
27291 ;
27292 return 0;
27293}
27294_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027295if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027296 ac_cv_lib_socket_connect=yes
27297else
cristy8b350f62009-11-15 23:12:43 +000027298 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027299fi
cristy8b350f62009-11-15 23:12:43 +000027300rm -f core conftest.err conftest.$ac_objext \
27301 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027302LIBS=$ac_check_lib_save_LIBS
27303fi
cristy8b350f62009-11-15 23:12:43 +000027304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027305$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027306if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027307 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27308fi
27309
27310 fi
27311
27312 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027313 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027314if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027315
cristy3ed852e2009-09-05 21:47:34 +000027316fi
27317
cristy3ed852e2009-09-05 21:47:34 +000027318 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027320$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027321if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027322 $as_echo_n "(cached) " >&6
27323else
27324 ac_check_lib_save_LIBS=$LIBS
27325LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027327/* end confdefs.h. */
27328
27329/* Override any GCC internal prototype to avoid an error.
27330 Use char because int might match the return type of a GCC
27331 builtin and then its argument prototype would still apply. */
27332#ifdef __cplusplus
27333extern "C"
27334#endif
27335char remove ();
27336int
27337main ()
27338{
27339return remove ();
27340 ;
27341 return 0;
27342}
27343_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027344if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027345 ac_cv_lib_posix_remove=yes
27346else
cristy8b350f62009-11-15 23:12:43 +000027347 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027348fi
cristy8b350f62009-11-15 23:12:43 +000027349rm -f core conftest.err conftest.$ac_objext \
27350 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027351LIBS=$ac_check_lib_save_LIBS
27352fi
cristy8b350f62009-11-15 23:12:43 +000027353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027354$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027355if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027356 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27357fi
27358
27359 fi
27360
27361 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027362 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027363if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027364
cristy3ed852e2009-09-05 21:47:34 +000027365fi
27366
cristy3ed852e2009-09-05 21:47:34 +000027367 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027369$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027370if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027371 $as_echo_n "(cached) " >&6
27372else
27373 ac_check_lib_save_LIBS=$LIBS
27374LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027376/* end confdefs.h. */
27377
27378/* Override any GCC internal prototype to avoid an error.
27379 Use char because int might match the return type of a GCC
27380 builtin and then its argument prototype would still apply. */
27381#ifdef __cplusplus
27382extern "C"
27383#endif
27384char shmat ();
27385int
27386main ()
27387{
27388return shmat ();
27389 ;
27390 return 0;
27391}
27392_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027393if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027394 ac_cv_lib_ipc_shmat=yes
27395else
cristy8b350f62009-11-15 23:12:43 +000027396 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027397fi
cristy8b350f62009-11-15 23:12:43 +000027398rm -f core conftest.err conftest.$ac_objext \
27399 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027400LIBS=$ac_check_lib_save_LIBS
27401fi
cristy8b350f62009-11-15 23:12:43 +000027402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027403$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027404if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027405 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27406fi
27407
27408 fi
27409 fi
27410
27411 # Check for libraries that X11R6 Xt/Xaw programs need.
27412 ac_save_LDFLAGS=$LDFLAGS
27413 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27414 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27415 # check for ICE first), but we must link in the order -lSM -lICE or
27416 # we get undefined symbols. So assume we have SM if we have ICE.
27417 # These have to be linked with before -lX11, unlike the other
27418 # libraries we check for below, so use a different variable.
27419 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027421$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027422if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027423 $as_echo_n "(cached) " >&6
27424else
27425 ac_check_lib_save_LIBS=$LIBS
27426LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027428/* end confdefs.h. */
27429
27430/* Override any GCC internal prototype to avoid an error.
27431 Use char because int might match the return type of a GCC
27432 builtin and then its argument prototype would still apply. */
27433#ifdef __cplusplus
27434extern "C"
27435#endif
27436char IceConnectionNumber ();
27437int
27438main ()
27439{
27440return IceConnectionNumber ();
27441 ;
27442 return 0;
27443}
27444_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027445if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027446 ac_cv_lib_ICE_IceConnectionNumber=yes
27447else
cristy8b350f62009-11-15 23:12:43 +000027448 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027449fi
cristy8b350f62009-11-15 23:12:43 +000027450rm -f core conftest.err conftest.$ac_objext \
27451 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027452LIBS=$ac_check_lib_save_LIBS
27453fi
cristy8b350f62009-11-15 23:12:43 +000027454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027455$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027456if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027457 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27458fi
27459
27460 LDFLAGS=$ac_save_LDFLAGS
27461
27462fi
27463
27464if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27466$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027468$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27470$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027471 LDFLAGS="$LDFLAGS $X_LIBS"
27472 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27473 LIBS="$X11_LIBS $LIBS"
27474 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27475
27476
cristy8b350f62009-11-15 23:12:43 +000027477$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027478
27479 #
27480 # Check for X11 shared memory extension
27481 #
27482 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027483 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027484if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027485 have_shmctl='yes'
27486fi
27487
27488 if test "$have_shmctl" != 'yes'; then
27489 PERSIST_LIBS=$LIBS
27490 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027492/* end confdefs.h. */
27493
27494/* Override any GCC internal prototype to avoid an error.
27495 Use char because int might match the return type of a GCC
27496 builtin and then its argument prototype would still apply. */
27497#ifdef __cplusplus
27498extern "C"
27499#endif
27500char shmctl ();
27501int
27502main ()
27503{
27504return shmctl ();
27505 ;
27506 return 0;
27507}
27508_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027509if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027510 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027511fi
cristy8b350f62009-11-15 23:12:43 +000027512rm -f core conftest.err conftest.$ac_objext \
27513 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027514 LIBS=$PERSIST_LIBS
27515 fi
27516
27517 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027519$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027520if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027521 $as_echo_n "(cached) " >&6
27522else
27523 ac_check_lib_save_LIBS=$LIBS
27524LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027526/* end confdefs.h. */
27527
27528/* Override any GCC internal prototype to avoid an error.
27529 Use char because int might match the return type of a GCC
27530 builtin and then its argument prototype would still apply. */
27531#ifdef __cplusplus
27532extern "C"
27533#endif
27534char XShmAttach ();
27535int
27536main ()
27537{
27538return XShmAttach ();
27539 ;
27540 return 0;
27541}
27542_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027543if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027544 ac_cv_lib_Xext_XShmAttach=yes
27545else
cristy8b350f62009-11-15 23:12:43 +000027546 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027547fi
cristy8b350f62009-11-15 23:12:43 +000027548rm -f core conftest.err conftest.$ac_objext \
27549 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027550LIBS=$ac_check_lib_save_LIBS
27551fi
cristy8b350f62009-11-15 23:12:43 +000027552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027553$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027554if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027555 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027556$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027557
27558fi
27559
27560 fi
27561
27562 #
27563 # Check for X11 shape extension
27564 #
cristy8b350f62009-11-15 23:12:43 +000027565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027566$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027567if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027568 $as_echo_n "(cached) " >&6
27569else
27570 ac_check_lib_save_LIBS=$LIBS
27571LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027573/* end confdefs.h. */
27574
27575/* Override any GCC internal prototype to avoid an error.
27576 Use char because int might match the return type of a GCC
27577 builtin and then its argument prototype would still apply. */
27578#ifdef __cplusplus
27579extern "C"
27580#endif
27581char XShapeCombineMask ();
27582int
27583main ()
27584{
27585return XShapeCombineMask ();
27586 ;
27587 return 0;
27588}
27589_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027590if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027591 ac_cv_lib_Xext_XShapeCombineMask=yes
27592else
cristy8b350f62009-11-15 23:12:43 +000027593 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027594fi
cristy8b350f62009-11-15 23:12:43 +000027595rm -f core conftest.err conftest.$ac_objext \
27596 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027597LIBS=$ac_check_lib_save_LIBS
27598fi
cristy8b350f62009-11-15 23:12:43 +000027599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027600$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027601if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027602 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027603$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027604
27605fi
27606
cristy8b350f62009-11-15 23:12:43 +000027607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027608$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027609if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027610 $as_echo_n "(cached) " >&6
27611else
27612 ac_check_lib_save_LIBS=$LIBS
27613LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027615/* end confdefs.h. */
27616
27617/* Override any GCC internal prototype to avoid an error.
27618 Use char because int might match the return type of a GCC
27619 builtin and then its argument prototype would still apply. */
27620#ifdef __cplusplus
27621extern "C"
27622#endif
27623char XtSetEventDispatcher ();
27624int
27625main ()
27626{
27627return XtSetEventDispatcher ();
27628 ;
27629 return 0;
27630}
27631_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027632if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027633 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27634else
cristy8b350f62009-11-15 23:12:43 +000027635 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027636fi
cristy8b350f62009-11-15 23:12:43 +000027637rm -f core conftest.err conftest.$ac_objext \
27638 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027639LIBS=$ac_check_lib_save_LIBS
27640fi
cristy8b350f62009-11-15 23:12:43 +000027641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027642$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027643if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027644 XT_LIBS='-lXt'
27645fi
27646
27647 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27648fi
27649if test "$no_x" != 'yes'; then
27650 have_x='yes'
27651else
27652 have_x='no'
27653fi
cristy73bd4a52010-10-05 11:24:23 +000027654 if test "$have_x" = 'yes'; then
27655 X11_DELEGATE_TRUE=
27656 X11_DELEGATE_FALSE='#'
27657else
27658 X11_DELEGATE_TRUE='#'
27659 X11_DELEGATE_FALSE=
27660fi
27661
cristy3ed852e2009-09-05 21:47:34 +000027662
27663
27664
27665
27666#
27667# Check for ZLIB
27668#
27669
27670# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027671if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027672 withval=$with_zlib; with_zlib=$withval
27673else
27674 with_zlib='yes'
27675fi
27676
27677
27678if test "$with_zlib" != 'yes'; then
27679 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27680fi
27681
27682have_zlib='no'
27683ZLIB_LIBS=''
27684if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27686$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027688$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27690$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027691 ZLIB_LIBS=''
27692 failed=0
27693 passed=0
cristy8b350f62009-11-15 23:12:43 +000027694 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027695if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027696 passed=`expr $passed + 1`
27697else
27698 failed=`expr $failed + 1`
27699fi
27700
27701
cristy8b350f62009-11-15 23:12:43 +000027702 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027703if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027704 passed=`expr $passed + 1`
27705else
27706 failed=`expr $failed + 1`
27707fi
27708
27709
cristy8b350f62009-11-15 23:12:43 +000027710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027711$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027712if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027713 $as_echo_n "(cached) " >&6
27714else
27715 ac_check_lib_save_LIBS=$LIBS
27716LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027718/* end confdefs.h. */
27719
27720/* Override any GCC internal prototype to avoid an error.
27721 Use char because int might match the return type of a GCC
27722 builtin and then its argument prototype would still apply. */
27723#ifdef __cplusplus
27724extern "C"
27725#endif
27726char compress ();
27727int
27728main ()
27729{
27730return compress ();
27731 ;
27732 return 0;
27733}
27734_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027735if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027736 ac_cv_lib_z_compress=yes
27737else
cristy8b350f62009-11-15 23:12:43 +000027738 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027739fi
cristy8b350f62009-11-15 23:12:43 +000027740rm -f core conftest.err conftest.$ac_objext \
27741 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027742LIBS=$ac_check_lib_save_LIBS
27743fi
cristy8b350f62009-11-15 23:12:43 +000027744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027745$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027746if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027747 passed=`expr $passed + 1`
27748else
27749 failed=`expr $failed + 1`
27750fi
27751
cristy8b350f62009-11-15 23:12:43 +000027752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027753$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027754if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027755 $as_echo_n "(cached) " >&6
27756else
27757 ac_check_lib_save_LIBS=$LIBS
27758LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027760/* end confdefs.h. */
27761
27762/* Override any GCC internal prototype to avoid an error.
27763 Use char because int might match the return type of a GCC
27764 builtin and then its argument prototype would still apply. */
27765#ifdef __cplusplus
27766extern "C"
27767#endif
27768char uncompress ();
27769int
27770main ()
27771{
27772return uncompress ();
27773 ;
27774 return 0;
27775}
27776_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027777if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027778 ac_cv_lib_z_uncompress=yes
27779else
cristy8b350f62009-11-15 23:12:43 +000027780 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027781fi
cristy8b350f62009-11-15 23:12:43 +000027782rm -f core conftest.err conftest.$ac_objext \
27783 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027784LIBS=$ac_check_lib_save_LIBS
27785fi
cristy8b350f62009-11-15 23:12:43 +000027786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027787$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027788if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027789 passed=`expr $passed + 1`
27790else
27791 failed=`expr $failed + 1`
27792fi
27793
cristy8b350f62009-11-15 23:12:43 +000027794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027795$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027796if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027797 $as_echo_n "(cached) " >&6
27798else
27799 ac_check_lib_save_LIBS=$LIBS
27800LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027802/* end confdefs.h. */
27803
27804/* Override any GCC internal prototype to avoid an error.
27805 Use char because int might match the return type of a GCC
27806 builtin and then its argument prototype would still apply. */
27807#ifdef __cplusplus
27808extern "C"
27809#endif
27810char deflate ();
27811int
27812main ()
27813{
27814return deflate ();
27815 ;
27816 return 0;
27817}
27818_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027819if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027820 ac_cv_lib_z_deflate=yes
27821else
cristy8b350f62009-11-15 23:12:43 +000027822 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027823fi
cristy8b350f62009-11-15 23:12:43 +000027824rm -f core conftest.err conftest.$ac_objext \
27825 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027826LIBS=$ac_check_lib_save_LIBS
27827fi
cristy8b350f62009-11-15 23:12:43 +000027828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027829$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027830if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027831 passed=`expr $passed + 1`
27832else
27833 failed=`expr $failed + 1`
27834fi
27835
cristy8b350f62009-11-15 23:12:43 +000027836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027837$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027838if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027839 $as_echo_n "(cached) " >&6
27840else
27841 ac_check_lib_save_LIBS=$LIBS
27842LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027844/* end confdefs.h. */
27845
27846/* Override any GCC internal prototype to avoid an error.
27847 Use char because int might match the return type of a GCC
27848 builtin and then its argument prototype would still apply. */
27849#ifdef __cplusplus
27850extern "C"
27851#endif
27852char inflate ();
27853int
27854main ()
27855{
27856return inflate ();
27857 ;
27858 return 0;
27859}
27860_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027861if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027862 ac_cv_lib_z_inflate=yes
27863else
cristy8b350f62009-11-15 23:12:43 +000027864 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027865fi
cristy8b350f62009-11-15 23:12:43 +000027866rm -f core conftest.err conftest.$ac_objext \
27867 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027868LIBS=$ac_check_lib_save_LIBS
27869fi
cristy8b350f62009-11-15 23:12:43 +000027870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027871$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027872if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027873 passed=`expr $passed + 1`
27874else
27875 failed=`expr $failed + 1`
27876fi
27877
cristy8b350f62009-11-15 23:12:43 +000027878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027879$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027880if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027881 $as_echo_n "(cached) " >&6
27882else
27883 ac_check_lib_save_LIBS=$LIBS
27884LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027886/* end confdefs.h. */
27887
27888/* Override any GCC internal prototype to avoid an error.
27889 Use char because int might match the return type of a GCC
27890 builtin and then its argument prototype would still apply. */
27891#ifdef __cplusplus
27892extern "C"
27893#endif
27894char gzseek ();
27895int
27896main ()
27897{
27898return gzseek ();
27899 ;
27900 return 0;
27901}
27902_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027903if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027904 ac_cv_lib_z_gzseek=yes
27905else
cristy8b350f62009-11-15 23:12:43 +000027906 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027907fi
cristy8b350f62009-11-15 23:12:43 +000027908rm -f core conftest.err conftest.$ac_objext \
27909 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027910LIBS=$ac_check_lib_save_LIBS
27911fi
cristy8b350f62009-11-15 23:12:43 +000027912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027913$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027914if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027915 passed=`expr $passed + 1`
27916else
27917 failed=`expr $failed + 1`
27918fi
27919
cristy8b350f62009-11-15 23:12:43 +000027920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027921$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027922if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027923 $as_echo_n "(cached) " >&6
27924else
27925 ac_check_lib_save_LIBS=$LIBS
27926LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027928/* end confdefs.h. */
27929
27930/* Override any GCC internal prototype to avoid an error.
27931 Use char because int might match the return type of a GCC
27932 builtin and then its argument prototype would still apply. */
27933#ifdef __cplusplus
27934extern "C"
27935#endif
27936char gztell ();
27937int
27938main ()
27939{
27940return gztell ();
27941 ;
27942 return 0;
27943}
27944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027945if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027946 ac_cv_lib_z_gztell=yes
27947else
cristy8b350f62009-11-15 23:12:43 +000027948 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027949fi
cristy8b350f62009-11-15 23:12:43 +000027950rm -f core conftest.err conftest.$ac_objext \
27951 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027952LIBS=$ac_check_lib_save_LIBS
27953fi
cristy8b350f62009-11-15 23:12:43 +000027954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027955$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027956if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027957 passed=`expr $passed + 1`
27958else
27959 failed=`expr $failed + 1`
27960fi
27961
cristy8b350f62009-11-15 23:12:43 +000027962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027963$as_echo_n "checking if ZLIB package is complete... " >&6; }
27964 if test $passed -gt 0; then
27965 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27967$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027968 have_zlib='no (failed tests)'
27969 else
27970 ZLIB_LIBS='-lz'
27971 LIBS="$ZLIB_LIBS $LIBS"
27972
cristy8b350f62009-11-15 23:12:43 +000027973$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027974
cristyad38abe2012-12-23 23:03:21 +000027975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27976$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027977 have_zlib='yes'
27978 fi
27979 else
cristyad38abe2012-12-23 23:03:21 +000027980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27981$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027982 fi
27983fi
cristy73bd4a52010-10-05 11:24:23 +000027984 if test "$have_zlib" = 'yes'; then
27985 ZLIB_DELEGATE_TRUE=
27986 ZLIB_DELEGATE_FALSE='#'
27987else
27988 ZLIB_DELEGATE_TRUE='#'
27989 ZLIB_DELEGATE_FALSE=
27990fi
27991
cristy3ed852e2009-09-05 21:47:34 +000027992
27993
cristy5eef09f2012-10-16 12:08:28 +000027994# whether modules are built or not.
27995with_ltdl='yes'
27996have_ltdl='no'
27997LTDL_LIBS=''
27998if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000027999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28000$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28002$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28004$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028005 failed=0
28006 passed=0
28007 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28008if test "x$ac_cv_header_ltdl_h" = xyes; then :
28009 passed=`expr $passed + 1`
28010else
28011 failed=`expr $failed + 1`
28012fi
28013
28014
28015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28016$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28017if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28018 $as_echo_n "(cached) " >&6
28019else
28020 ac_check_lib_save_LIBS=$LIBS
28021LIBS="-lltdl $LIBS"
28022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28023/* end confdefs.h. */
28024
28025/* Override any GCC internal prototype to avoid an error.
28026 Use char because int might match the return type of a GCC
28027 builtin and then its argument prototype would still apply. */
28028#ifdef __cplusplus
28029extern "C"
28030#endif
28031char lt_dlinit ();
28032int
28033main ()
28034{
28035return lt_dlinit ();
28036 ;
28037 return 0;
28038}
28039_ACEOF
28040if ac_fn_c_try_link "$LINENO"; then :
28041 ac_cv_lib_ltdl_lt_dlinit=yes
28042else
28043 ac_cv_lib_ltdl_lt_dlinit=no
28044fi
28045rm -f core conftest.err conftest.$ac_objext \
28046 conftest$ac_exeext conftest.$ac_ext
28047LIBS=$ac_check_lib_save_LIBS
28048fi
28049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28050$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28051if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28052 passed=`expr $passed + 1`
28053else
28054 failed=`expr $failed + 1`
28055fi
28056
28057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28058$as_echo_n "checking if libltdl package is complete... " >&6; }
28059 if test $passed -gt 0 ; then
28060 if test $failed -gt 0 ; then
28061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28062$as_echo "no -- some components failed test" >&6; }
28063 have_ltdl='no (failed tests)'
28064 else
28065 LTDL_LIBS='-lltdl'
28066 LIBS="$LTDL_LIBS $LIBS"
28067
28068$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28069
28070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28071$as_echo "yes" >&6; }
28072 have_ltdl='yes'
28073 fi
28074 else
28075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28076$as_echo "no" >&6; }
28077 fi
cristyaf4cbf32012-10-16 23:47:41 +000028078 if test "$have_ltdl" != 'yes' ; then
28079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28081as_fn_error 1 "libltdl is required for modules build
28082See \`config.log' for more details" "$LINENO" 5; }
28083 fi
cristy5eef09f2012-10-16 12:08:28 +000028084fi
28085 if test "$have_ltdl" != 'no'; then
28086 WITH_LTDL_TRUE=
28087 WITH_LTDL_FALSE='#'
28088else
28089 WITH_LTDL_TRUE='#'
28090 WITH_LTDL_FALSE=
28091fi
28092
28093
cristy3ed852e2009-09-05 21:47:34 +000028094#
28095# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28096#
28097LIB_DL=''
28098if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028100$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028101if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028102 $as_echo_n "(cached) " >&6
28103else
28104 ac_check_lib_save_LIBS=$LIBS
28105LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028107/* end confdefs.h. */
28108
28109/* Override any GCC internal prototype to avoid an error.
28110 Use char because int might match the return type of a GCC
28111 builtin and then its argument prototype would still apply. */
28112#ifdef __cplusplus
28113extern "C"
28114#endif
28115char dlopen ();
28116int
28117main ()
28118{
28119return dlopen ();
28120 ;
28121 return 0;
28122}
28123_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028124if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028125 ac_cv_lib_dl_dlopen=yes
28126else
cristy8b350f62009-11-15 23:12:43 +000028127 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028128fi
cristy8b350f62009-11-15 23:12:43 +000028129rm -f core conftest.err conftest.$ac_objext \
28130 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028131LIBS=$ac_check_lib_save_LIBS
28132fi
cristy8b350f62009-11-15 23:12:43 +000028133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028134$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028135if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028136 LIB_DL='-ldl'
28137fi
28138
28139 LIBS="$LIB_DL $LIBS"
28140fi
28141
28142
28143
28144#
28145# Check for Autotrace delegate library.
28146#
28147
28148# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028149if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028150 withval=$with_autotrace; with_autotrace=$withval
28151else
28152 with_autotrace='no'
28153fi
28154
28155
28156if test "$with_autotrace" != 'yes'; then
28157 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28158fi
28159
28160have_autotrace='no'
28161AUTOTRACE_CFLAGS=""
28162AUTOTRACE_LIBS=""
28163AUTOTRACE_PKG=""
28164if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28166$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028167
28168pkg_failed=no
28169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28170$as_echo_n "checking for AUTOTRACE... " >&6; }
28171
28172if test -n "$AUTOTRACE_CFLAGS"; then
28173 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28174 elif test -n "$PKG_CONFIG"; then
28175 if test -n "$PKG_CONFIG" && \
28176 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28177 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28178 ac_status=$?
28179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28180 test $ac_status = 0; }; then
28181 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28182else
28183 pkg_failed=yes
28184fi
28185 else
28186 pkg_failed=untried
28187fi
28188if test -n "$AUTOTRACE_LIBS"; then
28189 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28190 elif test -n "$PKG_CONFIG"; then
28191 if test -n "$PKG_CONFIG" && \
28192 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28193 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28194 ac_status=$?
28195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28196 test $ac_status = 0; }; then
28197 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28198else
28199 pkg_failed=yes
28200fi
28201 else
28202 pkg_failed=untried
28203fi
28204
28205
28206
28207if test $pkg_failed = yes; then
28208
28209if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28210 _pkg_short_errors_supported=yes
28211else
28212 _pkg_short_errors_supported=no
28213fi
28214 if test $_pkg_short_errors_supported = yes; then
28215 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28216 else
28217 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28218 fi
28219 # Put the nasty error message in config.log where it belongs
28220 echo "$AUTOTRACE_PKG_ERRORS" >&5
28221
28222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28223$as_echo "no" >&6; }
28224 have_autotrace=no
28225elif test $pkg_failed = untried; then
28226 have_autotrace=no
28227else
28228 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28229 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28231$as_echo "yes" >&6; }
28232 have_autotrace=yes
28233fi
cristyad38abe2012-12-23 23:03:21 +000028234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28235$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028236fi
28237
28238if test "$have_autotrace" = 'yes'; then
28239 failed=0
28240
cristy8b350f62009-11-15 23:12:43 +000028241$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028242
cristyc6722092012-10-14 00:19:31 +000028243 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028244 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028245 fi
28246fi
28247
cristy73bd4a52010-10-05 11:24:23 +000028248 if test "$have_autotrace" = 'yes'; then
28249 AUTOTRACE_DELEGATE_TRUE=
28250 AUTOTRACE_DELEGATE_FALSE='#'
28251else
28252 AUTOTRACE_DELEGATE_TRUE='#'
28253 AUTOTRACE_DELEGATE_FALSE=
28254fi
28255
cristy3ed852e2009-09-05 21:47:34 +000028256
28257
28258
28259
28260#
28261# Check for Display Postscript delegate library.
28262#
28263
28264# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028265if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028266 withval=$with_dps; with_dps=$withval
28267else
28268 with_dps='yes'
28269fi
28270
28271
28272if test "$with_dps" != 'yes'; then
28273 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28274fi
28275
28276have_dps='no'
28277DPS_LIBS=''
28278if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28280$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028282$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28284$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028285 failed=0
28286 passed=0
28287 PERSIST_CPPFLAGS="$CPPFLAGS"
28288 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028289 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 +000028290if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028291 passed=`expr $passed + 1`
28292else
28293 failed=`expr $failed + 1`
28294fi
28295
28296
28297 # DPS issues:
28298 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28299 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28300 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28301 # ImageMagick itself doesn't use -lXt.
28302 have_libdps='no'
28303 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028305$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028306if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028307 $as_echo_n "(cached) " >&6
28308else
28309 ac_check_lib_save_LIBS=$LIBS
28310LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028312/* end confdefs.h. */
28313
28314/* Override any GCC internal prototype to avoid an error.
28315 Use char because int might match the return type of a GCC
28316 builtin and then its argument prototype would still apply. */
28317#ifdef __cplusplus
28318extern "C"
28319#endif
28320char DPSInitialize ();
28321int
28322main ()
28323{
28324return DPSInitialize ();
28325 ;
28326 return 0;
28327}
28328_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028329if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028330 ac_cv_lib_dps_DPSInitialize=yes
28331else
cristy8b350f62009-11-15 23:12:43 +000028332 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028333fi
cristy8b350f62009-11-15 23:12:43 +000028334rm -f core conftest.err conftest.$ac_objext \
28335 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028336LIBS=$ac_check_lib_save_LIBS
28337fi
cristy8b350f62009-11-15 23:12:43 +000028338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028339$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028340if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028341 have_libdps='yes'
28342else
28343 have_libdps='no'
28344fi
28345
28346 if test "$have_libdps" != 'yes'; then
28347 # Unset cache variable so we can try again.
28348 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028350$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028351if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028352 $as_echo_n "(cached) " >&6
28353else
28354 ac_check_lib_save_LIBS=$LIBS
28355LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028357/* end confdefs.h. */
28358
28359/* Override any GCC internal prototype to avoid an error.
28360 Use char because int might match the return type of a GCC
28361 builtin and then its argument prototype would still apply. */
28362#ifdef __cplusplus
28363extern "C"
28364#endif
28365char DPSInitialize ();
28366int
28367main ()
28368{
28369return DPSInitialize ();
28370 ;
28371 return 0;
28372}
28373_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028374if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028375 ac_cv_lib_dps_DPSInitialize=yes
28376else
cristy8b350f62009-11-15 23:12:43 +000028377 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028378fi
cristy8b350f62009-11-15 23:12:43 +000028379rm -f core conftest.err conftest.$ac_objext \
28380 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028381LIBS=$ac_check_lib_save_LIBS
28382fi
cristy8b350f62009-11-15 23:12:43 +000028383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028384$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028385if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028386 have_libdps='yes'
28387else
28388 have_libdps='no'
28389fi
28390
28391 if test "$have_libdps" = 'yes'; then
28392 LIBDPS_XT='-lXt'
28393 fi
28394 fi
28395 if test "$have_libdps" = 'yes'; then
28396 passed=`expr $passed + 1`
28397 else
28398 failed=`expr $failed + 1`
28399 fi
cristy8b350f62009-11-15 23:12:43 +000028400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028401$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028402if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028403 $as_echo_n "(cached) " >&6
28404else
28405 ac_check_lib_save_LIBS=$LIBS
28406LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028408/* end confdefs.h. */
28409
28410/* Override any GCC internal prototype to avoid an error.
28411 Use char because int might match the return type of a GCC
28412 builtin and then its argument prototype would still apply. */
28413#ifdef __cplusplus
28414extern "C"
28415#endif
28416char XDPSPixelsPerPoint ();
28417int
28418main ()
28419{
28420return XDPSPixelsPerPoint ();
28421 ;
28422 return 0;
28423}
28424_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028425if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028426 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28427else
cristy8b350f62009-11-15 23:12:43 +000028428 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028429fi
cristy8b350f62009-11-15 23:12:43 +000028430rm -f core conftest.err conftest.$ac_objext \
28431 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028432LIBS=$ac_check_lib_save_LIBS
28433fi
cristy8b350f62009-11-15 23:12:43 +000028434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028435$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028436if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028437 passed=`expr $passed + 1`
28438else
28439 failed=`expr $failed + 1`
28440fi
28441
cristy8b350f62009-11-15 23:12:43 +000028442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028443$as_echo_n "checking if DPS package is complete... " >&6; }
28444 if test $passed -gt 0; then
28445 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28447$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028448 have_dps='no (failed tests)'
28449 CPPFLAGS="$PERSIST_CPPFLAGS"
28450 else
28451 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28452 LIBS="$DPS_LIBS $LIBS"
28453
cristy8b350f62009-11-15 23:12:43 +000028454$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028455
cristyad38abe2012-12-23 23:03:21 +000028456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28457$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028458 have_dps='yes'
28459 fi
28460 else
cristyad38abe2012-12-23 23:03:21 +000028461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28462$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028463 CPPFLAGS=$PERSIST_CPPFLAGS
28464 fi
28465fi
cristy73bd4a52010-10-05 11:24:23 +000028466 if test "$have_dps" = 'yes'; then
28467 DPS_DELEGATE_TRUE=
28468 DPS_DELEGATE_FALSE='#'
28469else
28470 DPS_DELEGATE_TRUE='#'
28471 DPS_DELEGATE_FALSE=
28472fi
28473
cristy3ed852e2009-09-05 21:47:34 +000028474
28475
28476
28477#
28478# Check for DJVU delegate library.
28479#
28480
28481# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028482if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028483 withval=$with_djvu; with_djvu=$withval
28484else
28485 with_djvu='yes'
28486fi
28487
28488
28489if test "$with_djvu" != 'yes'; then
28490 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28491fi
28492
28493have_djvu='no'
28494DJVU_LIBS=''
28495if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28497$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028499$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28501$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028502 failed=0
28503 passed=0
cristy8b350f62009-11-15 23:12:43 +000028504 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 +000028505if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028506 passed=`expr $passed + 1`
28507else
28508 failed=`expr $failed + 1`
28509fi
28510
28511
cristy8b350f62009-11-15 23:12:43 +000028512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028513$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028514if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028515 $as_echo_n "(cached) " >&6
28516else
28517 ac_check_lib_save_LIBS=$LIBS
28518LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028520/* end confdefs.h. */
28521
28522/* Override any GCC internal prototype to avoid an error.
28523 Use char because int might match the return type of a GCC
28524 builtin and then its argument prototype would still apply. */
28525#ifdef __cplusplus
28526extern "C"
28527#endif
28528char ddjvu_context_create ();
28529int
28530main ()
28531{
28532return ddjvu_context_create ();
28533 ;
28534 return 0;
28535}
28536_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028537if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028538 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28539else
cristy8b350f62009-11-15 23:12:43 +000028540 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028541fi
cristy8b350f62009-11-15 23:12:43 +000028542rm -f core conftest.err conftest.$ac_objext \
28543 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028544LIBS=$ac_check_lib_save_LIBS
28545fi
cristy8b350f62009-11-15 23:12:43 +000028546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028547$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028548if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028549 passed=`expr $passed + 1`
28550else
28551 failed=`expr $failed + 1`
28552fi
28553
cristy8b350f62009-11-15 23:12:43 +000028554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028555$as_echo_n "checking if DJVU package is complete... " >&6; }
28556 if test $passed -gt 0; then
28557 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28559$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028560 have_djvu='no (failed tests)'
28561 else
28562 DJVU_LIBS='-ldjvulibre'
28563 LIBS="$DJVU_LIBS $LIBS"
28564
cristy8b350f62009-11-15 23:12:43 +000028565$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028566
cristyad38abe2012-12-23 23:03:21 +000028567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28568$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028569 have_djvu='yes'
28570 fi
28571 else
cristyad38abe2012-12-23 23:03:21 +000028572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28573$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028574 fi
28575fi
cristy73bd4a52010-10-05 11:24:23 +000028576 if test "$have_djvu" = 'yes'; then
28577 DJVU_DELEGATE_TRUE=
28578 DJVU_DELEGATE_FALSE='#'
28579else
28580 DJVU_DELEGATE_TRUE='#'
28581 DJVU_DELEGATE_FALSE=
28582fi
28583
cristy3ed852e2009-09-05 21:47:34 +000028584
28585
28586
28587#
cristy430a7312010-01-21 20:44:04 +000028588# Set DejaVu font directory.
28589#
28590
28591# Check whether --with-dejavu-font-dir was given.
28592if test "${with_dejavu_font_dir+set}" = set; then :
28593 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28594else
28595 with_dejavu_font_dir='default'
28596fi
28597
28598
28599if test "$with_dejavu_font_dir" != 'default'; then
28600 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28601fi
28602
28603
28604#
cristy3ed852e2009-09-05 21:47:34 +000028605# Check for FFTW delegate library.
28606#
28607
28608# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028609if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028610 withval=$with_fftw; with_fftw=$withval
28611else
28612 with_fftw='yes'
28613fi
28614
28615
28616if test "$with_fftw" != 'yes'; then
28617 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28618fi
28619
cristy81beccd2011-10-03 18:17:24 +000028620have_fftw='no'
28621FFTW_LIBS=''
28622if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28624$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28626$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28628$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028629 failed=0
28630 passed=0
28631 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28632if test "x$ac_cv_header_fftw3_h" = xyes; then :
28633 passed=`expr $passed + 1`
28634else
28635 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028636fi
28637
cristy81beccd2011-10-03 18:17:24 +000028638
28639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28640$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28641if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28642 $as_echo_n "(cached) " >&6
28643else
28644 ac_check_lib_save_LIBS=$LIBS
28645LIBS="-lfftw3 $LIBS"
28646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28647/* end confdefs.h. */
28648
28649/* Override any GCC internal prototype to avoid an error.
28650 Use char because int might match the return type of a GCC
28651 builtin and then its argument prototype would still apply. */
28652#ifdef __cplusplus
28653extern "C"
28654#endif
28655char fftw_execute ();
28656int
28657main ()
28658{
28659return fftw_execute ();
28660 ;
28661 return 0;
28662}
28663_ACEOF
28664if ac_fn_c_try_link "$LINENO"; then :
28665 ac_cv_lib_fftw3_fftw_execute=yes
28666else
28667 ac_cv_lib_fftw3_fftw_execute=no
28668fi
28669rm -f core conftest.err conftest.$ac_objext \
28670 conftest$ac_exeext conftest.$ac_ext
28671LIBS=$ac_check_lib_save_LIBS
28672fi
28673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28674$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28675if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28676 passed=`expr $passed + 1`
28677else
28678 failed=`expr $failed + 1`
28679fi
28680
28681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28682$as_echo_n "checking if FFTW package is complete... " >&6; }
28683 if test $passed -gt 0; then
28684 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28686$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028687 have_fftw='no (failed tests)'
28688 else
28689 FFTW_LIBS='-lfftw3'
28690 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028691
cristy8b350f62009-11-15 23:12:43 +000028692$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028693
cristyad38abe2012-12-23 23:03:21 +000028694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28695$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028696 have_fftw='yes'
28697 fi
28698 else
cristyad38abe2012-12-23 23:03:21 +000028699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28700$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028701 fi
28702fi
cristy73bd4a52010-10-05 11:24:23 +000028703 if test "$have_fftw" = 'yes'; then
28704 FFTW_DELEGATE_TRUE=
28705 FFTW_DELEGATE_FALSE='#'
28706else
28707 FFTW_DELEGATE_TRUE='#'
28708 FFTW_DELEGATE_FALSE=
28709fi
28710
cristy3ed852e2009-09-05 21:47:34 +000028711
28712
28713
28714#
28715# Check for FlashPIX delegate library.
28716#
28717
28718# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028719if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028720 withval=$with_fpx; with_fpx=$withval
28721else
28722 with_fpx='yes'
28723fi
28724
28725
28726if test "$with_fpx" != 'yes'; then
28727 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28728fi
28729
28730have_fpx='no'
28731FPX_LIBS=''
28732if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28734$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028736$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28738$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028739 failed=0
28740 passed=0
28741 ac_ext=cpp
28742ac_cpp='$CXXCPP $CPPFLAGS'
28743ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28744ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28745ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28746
28747
cristy8b350f62009-11-15 23:12:43 +000028748ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028749if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028750 passed=`expr $passed + 1`
28751else
28752 failed=`expr $failed + 1`
28753fi
28754
28755
cristy8b350f62009-11-15 23:12:43 +000028756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028757$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028758if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028759 $as_echo_n "(cached) " >&6
28760else
28761 ac_check_lib_save_LIBS=$LIBS
28762LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028764/* end confdefs.h. */
28765
28766/* Override any GCC internal prototype to avoid an error.
28767 Use char because int might match the return type of a GCC
28768 builtin and then its argument prototype would still apply. */
28769#ifdef __cplusplus
28770extern "C"
28771#endif
28772char FPX_OpenImageByFilename ();
28773int
28774main ()
28775{
28776return FPX_OpenImageByFilename ();
28777 ;
28778 return 0;
28779}
28780_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028781if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028782 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28783else
cristy8b350f62009-11-15 23:12:43 +000028784 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028785fi
cristy8b350f62009-11-15 23:12:43 +000028786rm -f core conftest.err conftest.$ac_objext \
28787 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028788LIBS=$ac_check_lib_save_LIBS
28789fi
cristy8b350f62009-11-15 23:12:43 +000028790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028791$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028792if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028793 passed=`expr $passed + 1`
28794else
28795 failed=`expr $failed + 1`
28796fi
28797
28798 ac_ext=c
28799ac_cpp='$CPP $CPPFLAGS'
28800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28802ac_compiler_gnu=$ac_cv_c_compiler_gnu
28803
cristy8b350f62009-11-15 23:12:43 +000028804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028805$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28806 if test $passed -gt 0; then
28807 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28809$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028810 have_fpx='no (failed tests)'
28811 else
28812 FPX_LIBS='-lfpx'
28813
cristy8b350f62009-11-15 23:12:43 +000028814$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028815
cristyad38abe2012-12-23 23:03:21 +000028816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28817$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028818 have_fpx='yes'
28819 PERLMAINCC="$CXX"
28820 fi
28821 else
cristyad38abe2012-12-23 23:03:21 +000028822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28823$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028824 fi
28825fi
cristy73bd4a52010-10-05 11:24:23 +000028826 if test "$have_fpx" = 'yes'; then
28827 FPX_DELEGATE_TRUE=
28828 FPX_DELEGATE_FALSE='#'
28829else
28830 FPX_DELEGATE_TRUE='#'
28831 FPX_DELEGATE_FALSE=
28832fi
28833
cristy3ed852e2009-09-05 21:47:34 +000028834
28835
28836
28837#
28838# Check for fontconfig delegate library.
28839#
28840
28841# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028842if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028843 withval=$with_fontconfig; with_fontconfig=$withval
28844else
cristyfc3d0222012-02-07 15:05:57 +000028845 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028846fi
28847
28848
28849if test "$with_fontconfig" != 'yes'; then
28850 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28851fi
28852
28853have_fontconfig='no'
28854FONTCONFIG_CFLAGS=""
28855FONTCONFIG_LIBS=""
28856FONTCONFIG_PKG=""
28857if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28859$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028860
28861pkg_failed=no
28862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28863$as_echo_n "checking for FONTCONFIG... " >&6; }
28864
28865if test -n "$FONTCONFIG_CFLAGS"; then
28866 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28867 elif test -n "$PKG_CONFIG"; then
28868 if test -n "$PKG_CONFIG" && \
28869 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28870 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28871 ac_status=$?
28872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28873 test $ac_status = 0; }; then
28874 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28875else
28876 pkg_failed=yes
28877fi
28878 else
28879 pkg_failed=untried
28880fi
28881if test -n "$FONTCONFIG_LIBS"; then
28882 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28883 elif test -n "$PKG_CONFIG"; then
28884 if test -n "$PKG_CONFIG" && \
28885 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28886 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28887 ac_status=$?
28888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28889 test $ac_status = 0; }; then
28890 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28891else
28892 pkg_failed=yes
28893fi
28894 else
28895 pkg_failed=untried
28896fi
28897
28898
28899
28900if test $pkg_failed = yes; then
28901
28902if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28903 _pkg_short_errors_supported=yes
28904else
28905 _pkg_short_errors_supported=no
28906fi
28907 if test $_pkg_short_errors_supported = yes; then
28908 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28909 else
28910 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28911 fi
28912 # Put the nasty error message in config.log where it belongs
28913 echo "$FONTCONFIG_PKG_ERRORS" >&5
28914
28915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28916$as_echo "no" >&6; }
28917 have_fontconfig=no
28918elif test $pkg_failed = untried; then
28919 have_fontconfig=no
28920else
28921 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28922 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28924$as_echo "yes" >&6; }
28925 have_fontconfig=yes
28926fi
cristyad38abe2012-12-23 23:03:21 +000028927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28928$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028929fi
28930
28931if test "$have_fontconfig" = 'yes'; then
28932
cristy8b350f62009-11-15 23:12:43 +000028933$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028934
cristyc6722092012-10-14 00:19:31 +000028935 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028936 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028937 fi
cristy3ed852e2009-09-05 21:47:34 +000028938fi
28939
cristy73bd4a52010-10-05 11:24:23 +000028940 if test "$have_fontconfig" = 'yes'; then
28941 FONTCONFIG_DELEGATE_TRUE=
28942 FONTCONFIG_DELEGATE_FALSE='#'
28943else
28944 FONTCONFIG_DELEGATE_TRUE='#'
28945 FONTCONFIG_DELEGATE_FALSE=
28946fi
28947
cristy3ed852e2009-09-05 21:47:34 +000028948
28949
28950
28951
28952#
cristy81beccd2011-10-03 18:17:24 +000028953# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028954#
28955
28956# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028957if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028958 withval=$with_freetype; with_freetype=$withval
28959else
28960 with_freetype='yes'
28961fi
28962
28963
cristy81beccd2011-10-03 18:17:24 +000028964
cristy3ed852e2009-09-05 21:47:34 +000028965if test "$with_freetype" != 'yes'; then
28966 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28967fi
28968
cristy81beccd2011-10-03 18:17:24 +000028969have_freetype='no'
28970FREETYPE_LIBS=''
28971if test "$with_freetype" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28973$as_echo "-------------------------------------------------------------" >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28975$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28977$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028978 failed=0
28979 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028980 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028981 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028982 freetype_config=''
28983 # Allow the user to specify the location of freetype.
28984 if test "$with_freetype" != 'yes'; then
28985 if test -x "${with_freetype}/bin/freetype-config"; then
28986 freetype_config="${with_freetype}/bin/freetype-config"
28987 elif test -x "${with_freetype}"; then
28988 freetype_config=${with_freetype}
28989 fi
28990 fi
28991 if test -z "$freetype_config"; then
28992 # Extract the first word of "freetype-config", so it can be a program name with args.
28993set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28995$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028996if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028997 $as_echo_n "(cached) " >&6
28998else
cristy98ca0f52011-10-08 23:19:10 +000028999 case $freetype_config in
29000 [\\/]* | ?:[\\/]*)
29001 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
29002 ;;
29003 *)
29004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000029005for as_dir in $PATH
29006do
29007 IFS=$as_save_IFS
29008 test -z "$as_dir" && as_dir=.
29009 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000029010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000029011 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000029012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29013 break 2
29014 fi
29015done
29016 done
29017IFS=$as_save_IFS
29018
cristy98ca0f52011-10-08 23:19:10 +000029019 ;;
29020esac
cristy81beccd2011-10-03 18:17:24 +000029021fi
cristy98ca0f52011-10-08 23:19:10 +000029022freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000029023if test -n "$freetype_config"; then
29024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29025$as_echo "$freetype_config" >&6; }
29026else
29027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29028$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029029fi
29030
cristy98ca0f52011-10-08 23:19:10 +000029031 fi
29032 if test -n "$freetype_config"; then
29033 freetype_prefix=`${freetype_config} --prefix`
29034 freetype_exec_prefix=`${freetype_config} --exec-prefix`
29035 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29036 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000029037 fi
29038
29039 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000029040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000029041$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29042if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29043 $as_echo_n "(cached) " >&6
29044else
29045 ac_check_lib_save_LIBS=$LIBS
29046LIBS="-lfreetype $LIBS"
29047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29048/* end confdefs.h. */
29049
29050/* Override any GCC internal prototype to avoid an error.
29051 Use char because int might match the return type of a GCC
29052 builtin and then its argument prototype would still apply. */
29053#ifdef __cplusplus
29054extern "C"
29055#endif
29056char FT_Init_FreeType ();
29057int
29058main ()
29059{
29060return FT_Init_FreeType ();
29061 ;
29062 return 0;
29063}
29064_ACEOF
29065if ac_fn_c_try_link "$LINENO"; then :
29066 ac_cv_lib_freetype_FT_Init_FreeType=yes
29067else
29068 ac_cv_lib_freetype_FT_Init_FreeType=no
29069fi
29070rm -f core conftest.err conftest.$ac_objext \
29071 conftest$ac_exeext conftest.$ac_ext
29072LIBS=$ac_check_lib_save_LIBS
29073fi
29074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29075$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29076if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29077 FREETYPE_LIBS='-lfreetype'
29078fi
29079
cristy98ca0f52011-10-08 23:19:10 +000029080 if test "$FREETYPE_LIBS" != ''; then
29081 passed=`expr $passed + 1`
29082 else
29083 failed=`expr $failed + 1`
29084 LDFLAGS="$PERSIST_LDFLAGS"
29085 fi
cristy81beccd2011-10-03 18:17:24 +000029086 fi
29087
29088 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29089if test "x$ac_cv_header_ft2build_h" = xyes; then :
29090 FT2BUILD_H='#include <ft2build.h>'
29091else
29092 ft2build=''
29093fi
29094
29095
29096 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29097"
29098if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29099 have_freetype_h='yes'
29100else
29101 have_freetype_h='no'
29102fi
29103
29104
cristy98ca0f52011-10-08 23:19:10 +000029105 if test "$have_freetype_h" = 'yes'; then
29106 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029107 else
cristy98ca0f52011-10-08 23:19:10 +000029108 failed=`expr $failed + 1`
29109 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029110 fi
29111
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29113$as_echo_n "checking if FreeType package is complete... " >&6; }
29114 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029115 if test $failed -gt 0; then
29116 FREETYPE_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000029117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29118$as_echo "no -- some components failed test" >&6; }
cristy98ca0f52011-10-08 23:19:10 +000029119 have_freetype='no (failed tests)'
29120 else
29121 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029122
cristy8b350f62009-11-15 23:12:43 +000029123$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029124
cristy98ca0f52011-10-08 23:19:10 +000029125 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029126
29127$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29128
cristy81beccd2011-10-03 18:17:24 +000029129 fi
cristyad38abe2012-12-23 23:03:21 +000029130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29131$as_echo "yes" >&6; }
cristy98ca0f52011-10-08 23:19:10 +000029132 have_freetype='yes'
29133 fi
cristy81beccd2011-10-03 18:17:24 +000029134 else
cristyad38abe2012-12-23 23:03:21 +000029135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29136$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029137 fi
29138fi
cristy73bd4a52010-10-05 11:24:23 +000029139 if test "$have_freetype" = 'yes'; then
29140 FREETYPE_DELEGATE_TRUE=
29141 FREETYPE_DELEGATE_FALSE='#'
29142else
29143 FREETYPE_DELEGATE_TRUE='#'
29144 FREETYPE_DELEGATE_FALSE=
29145fi
29146
cristy3ed852e2009-09-05 21:47:34 +000029147
29148
29149
cristy3ed852e2009-09-05 21:47:34 +000029150#
29151# Check for Ghostscript library or framework.
29152#
29153# Test for iapi.h & test for gsapi_new_instance in -lgs
29154# or -framework Ghostscript
29155
29156
29157# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029158if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029159 withval=$with_gslib; with_gslib=$withval
29160else
29161 with_gslib='no'
29162fi
29163
29164
cristyb7931f12009-09-25 10:22:21 +000029165gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029166if test "$with_gslib" != 'yes'; then
29167 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29168fi
29169
29170have_gslib='no'
29171GS_LIBS=''
29172if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29174$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029176$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29178$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029179 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029180 failed=0
29181 passed=0
cristy8b350f62009-11-15 23:12:43 +000029182 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 +000029183if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029184 passed=`expr $passed + 1`
29185else
29186 failed=`expr $failed + 1`
29187fi
29188
29189
cristy8b350f62009-11-15 23:12:43 +000029190 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 +000029191if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029192 passed=`expr $passed + 1`
29193else
29194 failed=`expr $failed + 1`
29195fi
29196
29197
cristy73bd4a52010-10-05 11:24:23 +000029198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29199$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029200if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029201 $as_echo_n "(cached) " >&6
29202else
29203 ac_check_framework_save_LIBS=$LIBS
29204LIBS="-framework Ghostscript $LIBS"
29205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29206/* end confdefs.h. */
29207
29208/* Override any GCC internal prototype to avoid an error.
29209 Use char because int might match the return type of a GCC
29210 builtin and then its argument prototype would still apply. */
29211#ifdef __cplusplus
29212extern "C"
29213#endif
29214char gsapi_new_instance ();
29215int
29216main ()
29217{
29218return gsapi_new_instance ();
29219 ;
29220 return 0;
29221}
29222_ACEOF
29223if ac_fn_c_try_link "$LINENO"; then :
29224 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29225else
29226 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29227fi
29228rm -f core conftest.err conftest.$ac_objext \
29229 conftest$ac_exeext conftest.$ac_ext
29230LIBS=$ac_check_framework_save_LIBS
29231fi
29232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29233$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29234if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29235 framework=`expr $framework + 1`
29236else
29237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029238$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029239if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029240 $as_echo_n "(cached) " >&6
29241else
29242 ac_check_lib_save_LIBS=$LIBS
29243LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029245/* end confdefs.h. */
29246
29247/* Override any GCC internal prototype to avoid an error.
29248 Use char because int might match the return type of a GCC
29249 builtin and then its argument prototype would still apply. */
29250#ifdef __cplusplus
29251extern "C"
29252#endif
29253char gsapi_new_instance ();
29254int
29255main ()
29256{
29257return gsapi_new_instance ();
29258 ;
29259 return 0;
29260}
29261_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029262if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029263 ac_cv_lib_gs_gsapi_new_instance=yes
29264else
cristy8b350f62009-11-15 23:12:43 +000029265 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029266fi
cristy8b350f62009-11-15 23:12:43 +000029267rm -f core conftest.err conftest.$ac_objext \
29268 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029269LIBS=$ac_check_lib_save_LIBS
29270fi
cristy8b350f62009-11-15 23:12:43 +000029271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029272$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029273if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029274 passed=`expr $passed + 1`
29275else
29276 failed=`expr $failed + 1`
29277fi
cristy73bd4a52010-10-05 11:24:23 +000029278
29279fi
cristy8b350f62009-11-15 23:12:43 +000029280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029281$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29282 if test $passed -gt 0; then
29283 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29285$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029286 have_gslib='no (failed tests)'
29287 else
29288 if test $framework -gt 0; then
29289 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029290 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29292$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029293 else
cristyad38abe2012-12-23 23:03:21 +000029294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29295$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029296 GS_LIBS='-lgs'
29297 fi
29298 LIBS="$GS_LIBS $LIBS"
29299
cristy8b350f62009-11-15 23:12:43 +000029300$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029301
29302 have_gslib='yes'
29303 fi
29304 else
cristyad38abe2012-12-23 23:03:21 +000029305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29306$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029307 fi
29308fi
cristy73bd4a52010-10-05 11:24:23 +000029309 if test "$have_gslib" = 'yes'; then
29310 GS_DELEGATE_TRUE=
29311 GS_DELEGATE_FALSE='#'
29312else
29313 GS_DELEGATE_TRUE='#'
29314 GS_DELEGATE_FALSE=
29315fi
29316
cristy3ed852e2009-09-05 21:47:34 +000029317
29318
29319# Set default font search path
29320
29321# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029322if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029323 withval=$with_fontpath; with_fontpath=$withval
29324else
29325 with_fontpath=''
29326fi
29327
29328
29329if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29330 with_fontpath=''
29331else
29332
29333cat >>confdefs.h <<_ACEOF
29334#define MAGICK_FONT_PATH "$with_fontpath"
29335_ACEOF
29336
29337fi
29338if test "$with_fontpath=" != ''; then
29339 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29340fi
29341
29342# Set Ghostscript font directory
29343
29344# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029345if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029346 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29347else
29348 with_gs_font_dir='default'
29349fi
29350
29351
29352if test "$with_gs_font_dir" != 'default'; then
29353 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29354fi
29355
29356
29357#
29358# Check for GVC delegate library.
29359#
29360
29361# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029362if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029363 withval=$with_gvc; with_gvc=$withval
29364else
cristy1b70dc82012-07-01 23:15:05 +000029365 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029366fi
29367
29368
29369if test "$with_gvc" != 'yes'; then
29370 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29371fi
29372
29373GVC_PKG=""
29374if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29376$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029377
29378pkg_failed=no
29379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29380$as_echo_n "checking for GVC... " >&6; }
29381
29382if test -n "$GVC_CFLAGS"; then
29383 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29384 elif test -n "$PKG_CONFIG"; then
29385 if test -n "$PKG_CONFIG" && \
29386 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29387 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29388 ac_status=$?
29389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29390 test $ac_status = 0; }; then
29391 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29392else
29393 pkg_failed=yes
29394fi
29395 else
29396 pkg_failed=untried
29397fi
29398if test -n "$GVC_LIBS"; then
29399 pkg_cv_GVC_LIBS="$GVC_LIBS"
29400 elif test -n "$PKG_CONFIG"; then
29401 if test -n "$PKG_CONFIG" && \
29402 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29403 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29404 ac_status=$?
29405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29406 test $ac_status = 0; }; then
29407 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29408else
29409 pkg_failed=yes
29410fi
29411 else
29412 pkg_failed=untried
29413fi
29414
29415
29416
29417if test $pkg_failed = yes; then
29418
29419if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29420 _pkg_short_errors_supported=yes
29421else
29422 _pkg_short_errors_supported=no
29423fi
29424 if test $_pkg_short_errors_supported = yes; then
29425 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29426 else
29427 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29428 fi
29429 # Put the nasty error message in config.log where it belongs
29430 echo "$GVC_PKG_ERRORS" >&5
29431
29432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29433$as_echo "no" >&6; }
29434 have_gvc=no
29435elif test $pkg_failed = untried; then
29436 have_gvc=no
29437else
29438 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29439 GVC_LIBS=$pkg_cv_GVC_LIBS
29440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29441$as_echo "yes" >&6; }
29442 have_gvc=yes
29443fi
cristyad38abe2012-12-23 23:03:21 +000029444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29445$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029446fi
29447
29448if test "$have_gvc" = 'yes'; then
29449
cristy8b350f62009-11-15 23:12:43 +000029450$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029451
cristyc6722092012-10-14 00:19:31 +000029452 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029453 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29454 fi
29455fi
29456
cristy73bd4a52010-10-05 11:24:23 +000029457 if test "$have_gvc" = 'yes'; then
29458 GVC_DELEGATE_TRUE=
29459 GVC_DELEGATE_FALSE='#'
29460else
29461 GVC_DELEGATE_TRUE='#'
29462 GVC_DELEGATE_FALSE=
29463fi
29464
cristy3ed852e2009-09-05 21:47:34 +000029465
29466
29467
29468
29469#
29470# Check for JBIG delegate library.
29471#
29472
29473
29474# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029475if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029476 withval=$with_jbig; with_jbig=$withval
29477else
29478 with_jbig='yes'
29479fi
29480
29481
29482have_jbig='no'
29483JBIG_LIBS=''
29484if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29486$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029488$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29490$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029491 failed=0
29492 passed=0
cristy8b350f62009-11-15 23:12:43 +000029493 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029494if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029495 passed=`expr $passed + 1`
29496else
29497 failed=`expr $failed + 1`
29498fi
29499
29500
cristy8b350f62009-11-15 23:12:43 +000029501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029502$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029503if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029504 $as_echo_n "(cached) " >&6
29505else
29506 ac_check_lib_save_LIBS=$LIBS
29507LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029509/* end confdefs.h. */
29510
29511/* Override any GCC internal prototype to avoid an error.
29512 Use char because int might match the return type of a GCC
29513 builtin and then its argument prototype would still apply. */
29514#ifdef __cplusplus
29515extern "C"
29516#endif
29517char jbg_dec_init ();
29518int
29519main ()
29520{
29521return jbg_dec_init ();
29522 ;
29523 return 0;
29524}
29525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029526if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029527 ac_cv_lib_jbig_jbg_dec_init=yes
29528else
cristy8b350f62009-11-15 23:12:43 +000029529 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029530fi
cristy8b350f62009-11-15 23:12:43 +000029531rm -f core conftest.err conftest.$ac_objext \
29532 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029533LIBS=$ac_check_lib_save_LIBS
29534fi
cristy8b350f62009-11-15 23:12:43 +000029535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029536$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029537if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029538 passed=`expr $passed + 1`
29539else
29540 failed=`expr $failed + 1`
29541fi
29542
cristy8b350f62009-11-15 23:12:43 +000029543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029544$as_echo_n "checking if JBIG package is complete... " >&6; }
29545 if test $passed -gt 0; then
29546 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29548$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029549 have_jbig='no (failed tests)'
29550 else
29551 JBIG_LIBS='-ljbig'
29552 LIBS="$JBIG_LIBS $LIBS"
29553
cristy8b350f62009-11-15 23:12:43 +000029554$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029555
cristyad38abe2012-12-23 23:03:21 +000029556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29557$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029558 have_jbig='yes'
29559 fi
29560 else
cristyad38abe2012-12-23 23:03:21 +000029561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29562$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029563 fi
29564fi
cristy73bd4a52010-10-05 11:24:23 +000029565 if test "$have_jbig" = 'yes'; then
29566 JBIG_DELEGATE_TRUE=
29567 JBIG_DELEGATE_FALSE='#'
29568else
29569 JBIG_DELEGATE_TRUE='#'
29570 JBIG_DELEGATE_FALSE=
29571fi
29572
cristy3ed852e2009-09-05 21:47:34 +000029573
29574
29575
29576#
29577# Check for JPEG delegate library.
29578#
29579
29580# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029581if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029582 withval=$with_jpeg; with_jpeg=$withval
29583else
29584 with_jpeg='yes'
29585fi
29586
29587
29588if test "$with_jpeg" != 'yes'; then
29589 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29590fi
29591
29592have_jpeg='no'
29593JPEG_LIBS=''
29594if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29596$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029598$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29600$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029601 failed=0
29602 passed=0
cristy8b350f62009-11-15 23:12:43 +000029603 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029604if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029605 passed=`expr $passed + 1`
29606else
29607 failed=`expr $failed + 1`
29608fi
29609
29610
cristy8b350f62009-11-15 23:12:43 +000029611 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029612if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029613 passed=`expr $passed + 1`
29614else
29615 failed=`expr $failed + 1`
29616fi
29617
29618
cristy8b350f62009-11-15 23:12:43 +000029619 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029620if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029621 passed=`expr $passed + 1`
29622else
29623 failed=`expr $failed + 1`
29624fi
29625
29626
cristy8b350f62009-11-15 23:12:43 +000029627 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029628if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029629 passed=`expr $passed + 1`
29630else
29631 failed=`expr $failed + 1`
29632fi
29633
29634
cristy8b350f62009-11-15 23:12:43 +000029635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029636$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029637if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029638 $as_echo_n "(cached) " >&6
29639else
29640 ac_check_lib_save_LIBS=$LIBS
29641LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029643/* end confdefs.h. */
29644
29645/* Override any GCC internal prototype to avoid an error.
29646 Use char because int might match the return type of a GCC
29647 builtin and then its argument prototype would still apply. */
29648#ifdef __cplusplus
29649extern "C"
29650#endif
29651char jpeg_read_header ();
29652int
29653main ()
29654{
29655return jpeg_read_header ();
29656 ;
29657 return 0;
29658}
29659_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029660if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029661 ac_cv_lib_jpeg_jpeg_read_header=yes
29662else
cristy8b350f62009-11-15 23:12:43 +000029663 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029664fi
cristy8b350f62009-11-15 23:12:43 +000029665rm -f core conftest.err conftest.$ac_objext \
29666 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029667LIBS=$ac_check_lib_save_LIBS
29668fi
cristy8b350f62009-11-15 23:12:43 +000029669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029670$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029671if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029672 passed=`expr $passed + 1`
29673else
29674 failed=`expr $failed + 1`
29675fi
29676
29677
29678# Test for compatible JPEG library
29679if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029681$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029682if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029683 $as_echo_n "(cached) " >&6
29684else
cristy8b350f62009-11-15 23:12:43 +000029685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029686/* end confdefs.h. */
29687#include <stdio.h>
29688#include <stdlib.h>
29689#include <jpeglib.h>
29690
29691int
29692main ()
29693{
29694
29695#if JPEG_LIB_VERSION < 62
29696#error IJG JPEG library must be version 6b or newer!
29697#endif
29698return 0;
29699
29700 ;
29701 return 0;
29702}
29703_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029704if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029705 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29706else
cristy8b350f62009-11-15 23:12:43 +000029707 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029708fi
cristy3ed852e2009-09-05 21:47:34 +000029709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29710fi
cristy8b350f62009-11-15 23:12:43 +000029711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029712$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29713fi
cristy8b350f62009-11-15 23:12:43 +000029714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029715$as_echo_n "checking if JPEG package is complete... " >&6; }
29716 if test $passed -gt 0; then
29717 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29719$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029720 have_jpeg='no (failed tests)'
29721 else
29722 JPEG_LIBS='-ljpeg'
29723 LIBS="$JPEG_LIBS $LIBS"
29724
cristy8b350f62009-11-15 23:12:43 +000029725$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029726
cristyad38abe2012-12-23 23:03:21 +000029727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29728$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029729 have_jpeg='yes'
29730 fi
29731 else
cristyad38abe2012-12-23 23:03:21 +000029732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29733$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029734 fi
29735fi
cristy73bd4a52010-10-05 11:24:23 +000029736 if test "$have_jpeg" = 'yes'; then
29737 JPEG_DELEGATE_TRUE=
29738 JPEG_DELEGATE_FALSE='#'
29739else
29740 JPEG_DELEGATE_TRUE='#'
29741 JPEG_DELEGATE_FALSE=
29742fi
29743
cristy3ed852e2009-09-05 21:47:34 +000029744
29745
29746
29747#
29748# Check for JPEG Version 2 delegate library.
29749#
29750
29751# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029752if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029753 withval=$with_jp2; with_jp2=$withval
29754else
29755 with_jp2='yes'
29756fi
29757
29758
29759if test "$with_jp2" != 'yes'; then
29760 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29761fi
29762
29763have_jp2='no'
29764JP2_LIBS=''
29765if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29767$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029769$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29771$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029772 failed=0
29773 passed=0
cristy8b350f62009-11-15 23:12:43 +000029774 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 +000029775if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029776 passed=`expr $passed + 1`
29777else
29778 failed=`expr $failed + 1`
29779fi
29780
29781
cristy8b350f62009-11-15 23:12:43 +000029782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029783$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029784if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029785 $as_echo_n "(cached) " >&6
29786else
29787 ac_check_lib_save_LIBS=$LIBS
29788LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029790/* end confdefs.h. */
29791
29792/* Override any GCC internal prototype to avoid an error.
29793 Use char because int might match the return type of a GCC
29794 builtin and then its argument prototype would still apply. */
29795#ifdef __cplusplus
29796extern "C"
29797#endif
29798char jas_stream_fopen ();
29799int
29800main ()
29801{
29802return jas_stream_fopen ();
29803 ;
29804 return 0;
29805}
29806_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029807if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029808 ac_cv_lib_jasper_jas_stream_fopen=yes
29809else
cristy8b350f62009-11-15 23:12:43 +000029810 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029811fi
cristy8b350f62009-11-15 23:12:43 +000029812rm -f core conftest.err conftest.$ac_objext \
29813 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029814LIBS=$ac_check_lib_save_LIBS
29815fi
cristy8b350f62009-11-15 23:12:43 +000029816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029817$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029818if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029819 passed=`expr $passed + 1`
29820else
29821 failed=`expr $failed + 1`
29822fi
29823
cristy8b350f62009-11-15 23:12:43 +000029824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029825$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29826 if test $passed -gt 0; then
29827 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29829$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029830 have_jp2='no (failed tests)'
29831 else
29832 JP2_LIBS='-ljasper'
29833 LIBS="$JP2_LIBS $LIBS"
29834
cristy8b350f62009-11-15 23:12:43 +000029835$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029836
cristyad38abe2012-12-23 23:03:21 +000029837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29838$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029839 have_jp2='yes'
29840 fi
29841 else
cristyad38abe2012-12-23 23:03:21 +000029842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29843$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029844 fi
29845fi
cristy73bd4a52010-10-05 11:24:23 +000029846 if test "$have_jp2" = 'yes'; then
29847 JP2_DELEGATE_TRUE=
29848 JP2_DELEGATE_FALSE='#'
29849else
29850 JP2_DELEGATE_TRUE='#'
29851 JP2_DELEGATE_FALSE=
29852fi
29853
cristy3ed852e2009-09-05 21:47:34 +000029854
29855
29856
29857#
29858# Check for LCMS delegate library.
29859#
cristy71203402010-06-18 13:12:03 +000029860# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029861
29862# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029863if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029864 withval=$with_lcms; with_lcms=$withval
29865else
29866 with_lcms='yes'
29867fi
29868
cristy71203402010-06-18 13:12:03 +000029869if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029870 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29871fi
29872
cristy71203402010-06-18 13:12:03 +000029873# Disable LCMS2.
29874
29875# Check whether --with-lcms2 was given.
29876if test "${with_lcms2+set}" = set; then :
29877 withval=$with_lcms2; with_lcms2=$withval
29878else
29879 with_lcms2='yes'
29880fi
29881
29882if test "$with_lcms2" != 'yes' ; then
29883 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29884fi
29885
29886have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029887LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029888if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29890$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29892$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29894$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029895 failed=0
29896 passed=0
29897 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029898
29899 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029900 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029901if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029902 have_lcms_header='yes'
29903fi
29904
29905
29906 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029907
29908$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29909
cristy71203402010-06-18 13:12:03 +000029910 passed=`expr $passed + 1`
29911 fi
29912
29913 # Check for <lcms2/lcms2.h)
29914 if test "$have_lcms_header" != 'yes'; then
29915 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 +000029916if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029917 have_lcms_header='yes'
29918fi
29919
29920
cristy71203402010-06-18 13:12:03 +000029921 if test "$have_lcms_header" = 'yes'; then
29922 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029923
cristy71203402010-06-18 13:12:03 +000029924$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029925
cristy71203402010-06-18 13:12:03 +000029926 fi
cristyd09bcf92010-03-25 03:04:45 +000029927 fi
cristy71203402010-06-18 13:12:03 +000029928
29929 # Failed to find lcms header?
29930 if test "$have_lcms_header" != 'yes'; then
29931 failed=`expr $failed + 1`
29932 fi
29933
29934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29935$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029936if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029937 $as_echo_n "(cached) " >&6
29938else
29939 ac_check_lib_save_LIBS=$LIBS
29940LIBS="-llcms2 $LIBS"
29941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29942/* end confdefs.h. */
29943
29944/* Override any GCC internal prototype to avoid an error.
29945 Use char because int might match the return type of a GCC
29946 builtin and then its argument prototype would still apply. */
29947#ifdef __cplusplus
29948extern "C"
29949#endif
cristy71203402010-06-18 13:12:03 +000029950char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029951int
29952main ()
29953{
cristy71203402010-06-18 13:12:03 +000029954return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029955 ;
29956 return 0;
29957}
29958_ACEOF
29959if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029960 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029961else
cristy71203402010-06-18 13:12:03 +000029962 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029963fi
29964rm -f core conftest.err conftest.$ac_objext \
29965 conftest$ac_exeext conftest.$ac_ext
29966LIBS=$ac_check_lib_save_LIBS
29967fi
cristy71203402010-06-18 13:12:03 +000029968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29969$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029970if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029971 passed=`expr $passed + 1`
29972else
29973 failed=`expr $failed + 1`
29974fi
29975
cristy71203402010-06-18 13:12:03 +000029976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29977$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029978 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029979 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29981$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029982 have_lcms2='no (failed tests)'
29983 else
29984 LCMS_LIBS='-llcms2'
29985 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29987$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029988 have_lcms2='yes'
29989 fi
cristyd09bcf92010-03-25 03:04:45 +000029990 else
cristyad38abe2012-12-23 23:03:21 +000029991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29992$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029993 fi
29994fi
29995
cristy71203402010-06-18 13:12:03 +000029996#
29997# Check for LCMS v1 (1.11 or later)
29998#
29999if test $have_lcms2 = 'yes'; then
30000 with_lcms='no'
30001fi
30002
30003have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030004if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30006$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30008$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30010$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030011 failed=0
30012 passed=0
30013 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030014
30015 # Check for <lcms.h>
30016 if test "$have_lcms_header" != 'yes'; then
30017 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030018if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030019 have_lcms_header='yes'
30020fi
30021
30022
cristy71203402010-06-18 13:12:03 +000030023 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030024 passed=`expr $passed + 1`
30025
cristy8b350f62009-11-15 23:12:43 +000030026$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030027
cristy71203402010-06-18 13:12:03 +000030028 fi
30029 fi
30030
30031 # Check for <lcms/lcms.h>
30032 if test "$have_lcms_header" != 'yes'; then
30033 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 +000030034if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030035 have_lcms_header='yes'
30036fi
30037
30038
cristy71203402010-06-18 13:12:03 +000030039 if test "$have_lcms_header" = 'yes'; then
30040 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030041
cristy8b350f62009-11-15 23:12:43 +000030042$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030043
cristy71203402010-06-18 13:12:03 +000030044 fi
cristy3ed852e2009-09-05 21:47:34 +000030045 fi
cristy71203402010-06-18 13:12:03 +000030046
30047 # Failed to find lcms header?
30048 if test "$have_lcms_header" != 'yes'; then
30049 failed=`expr $failed + 1`
30050 fi
30051
30052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30053$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030054if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030055 $as_echo_n "(cached) " >&6
30056else
30057 ac_check_lib_save_LIBS=$LIBS
30058LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030060/* end confdefs.h. */
30061
30062/* Override any GCC internal prototype to avoid an error.
30063 Use char because int might match the return type of a GCC
30064 builtin and then its argument prototype would still apply. */
30065#ifdef __cplusplus
30066extern "C"
30067#endif
cristy71203402010-06-18 13:12:03 +000030068char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030069int
30070main ()
30071{
cristy71203402010-06-18 13:12:03 +000030072return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030073 ;
30074 return 0;
30075}
30076_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030077if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030078 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030079else
cristy71203402010-06-18 13:12:03 +000030080 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030081fi
cristy8b350f62009-11-15 23:12:43 +000030082rm -f core conftest.err conftest.$ac_objext \
30083 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030084LIBS=$ac_check_lib_save_LIBS
30085fi
cristy71203402010-06-18 13:12:03 +000030086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30087$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030088if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030089 passed=`expr $passed + 1`
30090else
30091 failed=`expr $failed + 1`
30092fi
30093
cristy8b350f62009-11-15 23:12:43 +000030094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030095$as_echo_n "checking if LCMS package is complete... " >&6; }
30096 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030097 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30099$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030100 have_lcms='no (failed tests)'
30101 else
30102 LCMS_LIBS='-llcms'
30103 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30105$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030106 have_lcms='yes'
30107 fi
cristy3ed852e2009-09-05 21:47:34 +000030108 else
cristyad38abe2012-12-23 23:03:21 +000030109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30110$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030111 fi
30112fi
cristy71203402010-06-18 13:12:03 +000030113
cristy73bd4a52010-10-05 11:24:23 +000030114 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30115 LCMS_DELEGATE_TRUE=
30116 LCMS_DELEGATE_FALSE='#'
30117else
30118 LCMS_DELEGATE_TRUE='#'
30119 LCMS_DELEGATE_FALSE=
30120fi
30121
cristy71203402010-06-18 13:12:03 +000030122if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30123
30124$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30125
30126fi
30127
cristy3ed852e2009-09-05 21:47:34 +000030128
30129
30130
30131#
30132# Check for the LQR (Liquid Rescale) delegate library.
30133#
30134
30135# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030136if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030137 withval=$with_lqr; with_lqr=$withval
30138else
30139 with_lqr='yes'
30140fi
30141
30142
30143if test "$with_lqr" != 'yes'; then
30144 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30145fi
30146
30147have_lqr='no'
30148LQR_CFLAGS=""
30149LQR_LIBS=""
30150LQR_PKG=""
30151if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30153$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030154
30155pkg_failed=no
30156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30157$as_echo_n "checking for LQR... " >&6; }
30158
30159if test -n "$LQR_CFLAGS"; then
30160 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30161 elif test -n "$PKG_CONFIG"; then
30162 if test -n "$PKG_CONFIG" && \
30163 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30164 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30165 ac_status=$?
30166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30167 test $ac_status = 0; }; then
30168 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30169else
30170 pkg_failed=yes
30171fi
30172 else
30173 pkg_failed=untried
30174fi
30175if test -n "$LQR_LIBS"; then
30176 pkg_cv_LQR_LIBS="$LQR_LIBS"
30177 elif test -n "$PKG_CONFIG"; then
30178 if test -n "$PKG_CONFIG" && \
30179 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30180 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30181 ac_status=$?
30182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30183 test $ac_status = 0; }; then
30184 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30185else
30186 pkg_failed=yes
30187fi
30188 else
30189 pkg_failed=untried
30190fi
30191
30192
30193
30194if test $pkg_failed = yes; then
30195
30196if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30197 _pkg_short_errors_supported=yes
30198else
30199 _pkg_short_errors_supported=no
30200fi
30201 if test $_pkg_short_errors_supported = yes; then
30202 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30203 else
30204 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30205 fi
30206 # Put the nasty error message in config.log where it belongs
30207 echo "$LQR_PKG_ERRORS" >&5
30208
30209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30210$as_echo "no" >&6; }
30211 have_lqr=no
30212elif test $pkg_failed = untried; then
30213 have_lqr=no
30214else
30215 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30216 LQR_LIBS=$pkg_cv_LQR_LIBS
30217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30218$as_echo "yes" >&6; }
30219 have_lqr=yes
30220fi
cristyad38abe2012-12-23 23:03:21 +000030221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30222$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030223fi
30224
30225if test "$have_lqr" = 'yes'; then
30226
cristy8b350f62009-11-15 23:12:43 +000030227$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030228
30229 CFLAGS="$LQR_CFLAGS $CFLAGS"
30230fi
30231
cristy73bd4a52010-10-05 11:24:23 +000030232 if test "$have_lqr" = 'yes'; then
30233 LQR_DELEGATE_TRUE=
30234 LQR_DELEGATE_FALSE='#'
30235else
30236 LQR_DELEGATE_TRUE='#'
30237 LQR_DELEGATE_FALSE=
30238fi
30239
cristy3ed852e2009-09-05 21:47:34 +000030240
30241
30242
30243
cristy81beccd2011-10-03 18:17:24 +000030244# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030245
30246# Check whether --with-lzma was given.
30247if test "${with_lzma+set}" = set; then :
30248 withval=$with_lzma; with_lzma=$withval
30249else
30250 with_lzma='yes'
30251fi
30252
cristy81beccd2011-10-03 18:17:24 +000030253if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030254 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30255fi
30256
cristyb94e5002011-11-14 13:20:10 +000030257LZMA_PKG=""
30258if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30260$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030261
30262pkg_failed=no
30263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030264$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030265
30266if test -n "$LZMA_CFLAGS"; then
30267 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30268 elif test -n "$PKG_CONFIG"; then
30269 if test -n "$PKG_CONFIG" && \
30270 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30271 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30272 ac_status=$?
30273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30274 test $ac_status = 0; }; then
30275 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30276else
30277 pkg_failed=yes
30278fi
30279 else
30280 pkg_failed=untried
30281fi
30282if test -n "$LZMA_LIBS"; then
30283 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30284 elif test -n "$PKG_CONFIG"; then
30285 if test -n "$PKG_CONFIG" && \
30286 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30287 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30288 ac_status=$?
30289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30290 test $ac_status = 0; }; then
30291 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30292else
30293 pkg_failed=yes
30294fi
30295 else
30296 pkg_failed=untried
30297fi
30298
30299
30300
30301if test $pkg_failed = yes; then
30302
30303if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30304 _pkg_short_errors_supported=yes
30305else
30306 _pkg_short_errors_supported=no
30307fi
30308 if test $_pkg_short_errors_supported = yes; then
30309 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30310 else
30311 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30312 fi
30313 # Put the nasty error message in config.log where it belongs
30314 echo "$LZMA_PKG_ERRORS" >&5
30315
30316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30317$as_echo "no" >&6; }
30318 have_lzma=no
30319elif test $pkg_failed = untried; then
30320 have_lzma=no
30321else
30322 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30323 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30325$as_echo "yes" >&6; }
30326 have_lzma=yes
30327fi
cristyad38abe2012-12-23 23:03:21 +000030328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30329$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030330fi
30331
cristyb94e5002011-11-14 13:20:10 +000030332if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030333
30334$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30335
cristyc6722092012-10-14 00:19:31 +000030336 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030337 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030338 fi
cristyfbb0ef02010-12-19 02:32:11 +000030339fi
cristyb94e5002011-11-14 13:20:10 +000030340
cristyfbb0ef02010-12-19 02:32:11 +000030341 if test "$have_lzma" = 'yes'; then
30342 LZMA_DELEGATE_TRUE=
30343 LZMA_DELEGATE_FALSE='#'
30344else
30345 LZMA_DELEGATE_TRUE='#'
30346 LZMA_DELEGATE_FALSE=
30347fi
30348
30349
30350
30351
cristyb94e5002011-11-14 13:20:10 +000030352
cristy3ed852e2009-09-05 21:47:34 +000030353#
30354# Check for the OpenEXR delegate library.
30355#
30356
30357# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030358if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030359 withval=$with_openexr; with_openexr=$withval
30360else
30361 with_openexr='yes'
30362fi
30363
30364
30365if test "$with_openexr" != 'yes'; then
30366 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30367fi
30368
30369have_openexr='no'
30370OPENEXR_CFLAGS=""
30371OPENEXR_LIBS=""
30372OPENEXR_PKG=""
30373if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30375$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030376
30377pkg_failed=no
30378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30379$as_echo_n "checking for OPENEXR... " >&6; }
30380
30381if test -n "$OPENEXR_CFLAGS"; then
30382 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30383 elif test -n "$PKG_CONFIG"; then
30384 if test -n "$PKG_CONFIG" && \
30385 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30386 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30387 ac_status=$?
30388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30389 test $ac_status = 0; }; then
30390 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30391else
30392 pkg_failed=yes
30393fi
30394 else
30395 pkg_failed=untried
30396fi
30397if test -n "$OPENEXR_LIBS"; then
30398 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30399 elif test -n "$PKG_CONFIG"; then
30400 if test -n "$PKG_CONFIG" && \
30401 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30402 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30403 ac_status=$?
30404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30405 test $ac_status = 0; }; then
30406 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30407else
30408 pkg_failed=yes
30409fi
30410 else
30411 pkg_failed=untried
30412fi
30413
30414
30415
30416if test $pkg_failed = yes; then
30417
30418if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30419 _pkg_short_errors_supported=yes
30420else
30421 _pkg_short_errors_supported=no
30422fi
30423 if test $_pkg_short_errors_supported = yes; then
30424 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30425 else
30426 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30427 fi
30428 # Put the nasty error message in config.log where it belongs
30429 echo "$OPENEXR_PKG_ERRORS" >&5
30430
30431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30432$as_echo "no" >&6; }
30433 have_openexr=no
30434elif test $pkg_failed = untried; then
30435 have_openexr=no
30436else
30437 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30438 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30440$as_echo "yes" >&6; }
30441 have_openexr=yes
30442fi
cristyad38abe2012-12-23 23:03:21 +000030443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30444$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030445fi
30446
30447if test "$have_openexr" = 'yes'; then
30448
cristy8b350f62009-11-15 23:12:43 +000030449$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030450
cristyc6722092012-10-14 00:19:31 +000030451 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030452 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30453 fi
30454fi
30455
cristy73bd4a52010-10-05 11:24:23 +000030456 if test "$have_openexr" = 'yes'; then
30457 OPENEXR_DELEGATE_TRUE=
30458 OPENEXR_DELEGATE_FALSE='#'
30459else
30460 OPENEXR_DELEGATE_TRUE='#'
30461 OPENEXR_DELEGATE_FALSE=
30462fi
30463
cristy3ed852e2009-09-05 21:47:34 +000030464
30465
30466
30467
30468#
cristy41cbe8a2011-10-27 01:35:18 +000030469# Check for PANGO delegate library.
30470#
30471
30472# Check whether --with-pango was given.
30473if test "${with_pango+set}" = set; then :
30474 withval=$with_pango; with_pango=$withval
30475else
cristyfc3d0222012-02-07 15:05:57 +000030476 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030477fi
30478
30479
30480if test "$with_pango" != 'yes'; then
30481 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30482fi
30483
30484have_pango='no'
cristya054b762012-03-26 23:16:00 +000030485have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030486PANGO_CFLAGS=""
30487PANGO_LIBS=""
30488PANGO_PKG=""
30489if test "x$with_pango" = "xyes"; then
30490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30491$as_echo "-------------------------------------------------------------" >&6; }
30492
30493pkg_failed=no
30494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30495$as_echo_n "checking for PANGO... " >&6; }
30496
30497if test -n "$PANGO_CFLAGS"; then
30498 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30499 elif test -n "$PKG_CONFIG"; then
30500 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30502 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030503 ac_status=$?
30504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30505 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030506 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030507else
30508 pkg_failed=yes
30509fi
30510 else
30511 pkg_failed=untried
30512fi
30513if test -n "$PANGO_LIBS"; then
30514 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30515 elif test -n "$PKG_CONFIG"; then
30516 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030517 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30518 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030519 ac_status=$?
30520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30521 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030522 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030523else
30524 pkg_failed=yes
30525fi
30526 else
30527 pkg_failed=untried
30528fi
30529
30530
30531
30532if test $pkg_failed = yes; then
30533
30534if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30535 _pkg_short_errors_supported=yes
30536else
30537 _pkg_short_errors_supported=no
30538fi
30539 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030540 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030541 else
cristya054b762012-03-26 23:16:00 +000030542 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030543 fi
30544 # Put the nasty error message in config.log where it belongs
30545 echo "$PANGO_PKG_ERRORS" >&5
30546
30547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30548$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030549 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030550elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030551 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030552else
30553 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30554 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30556$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030557 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030558fi
30559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30560$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030561
30562pkg_failed=no
30563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30564$as_echo_n "checking for PANGO... " >&6; }
30565
30566if test -n "$PANGO_CFLAGS"; then
30567 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30568 elif test -n "$PKG_CONFIG"; then
30569 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030570 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30571 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030572 ac_status=$?
30573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30574 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030575 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030576else
30577 pkg_failed=yes
30578fi
30579 else
30580 pkg_failed=untried
30581fi
30582if test -n "$PANGO_LIBS"; then
30583 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30584 elif test -n "$PKG_CONFIG"; then
30585 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030586 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30587 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030588 ac_status=$?
30589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30590 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030591 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030592else
30593 pkg_failed=yes
30594fi
30595 else
30596 pkg_failed=untried
30597fi
30598
30599
30600
30601if test $pkg_failed = yes; then
30602
30603if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30604 _pkg_short_errors_supported=yes
30605else
30606 _pkg_short_errors_supported=no
30607fi
30608 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030609 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030610 else
cristy2542fc62011-12-06 17:50:25 +000030611 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030612 fi
30613 # Put the nasty error message in config.log where it belongs
30614 echo "$PANGO_PKG_ERRORS" >&5
30615
30616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30617$as_echo "no" >&6; }
30618 have_pango=no
30619elif test $pkg_failed = untried; then
30620 have_pango=no
30621else
30622 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30623 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30625$as_echo "yes" >&6; }
30626 have_pango=yes
30627fi
30628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30629$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030630fi
30631
30632if test "$have_pango" = 'yes'; then
30633
30634$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30635
cristyc6722092012-10-14 00:19:31 +000030636 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030637 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30638 fi
30639fi
30640
cristya054b762012-03-26 23:16:00 +000030641if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030642
cristya054b762012-03-26 23:16:00 +000030643$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030644
cristyc6722092012-10-14 00:19:31 +000030645 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030646 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030647 fi
30648fi
30649
30650 if test "$have_pango" = 'yes'; then
30651 PANGO_DELEGATE_TRUE=
30652 PANGO_DELEGATE_FALSE='#'
30653else
30654 PANGO_DELEGATE_TRUE='#'
30655 PANGO_DELEGATE_FALSE=
30656fi
30657
cristya054b762012-03-26 23:16:00 +000030658 if test "$have_pangocairo" = 'yes'; then
30659 PANGOCAIRO_DELEGATE_TRUE=
30660 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030661else
cristya054b762012-03-26 23:16:00 +000030662 PANGOCAIRO_DELEGATE_TRUE='#'
30663 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030664fi
30665
30666
30667
30668
30669
30670#
cristy3ed852e2009-09-05 21:47:34 +000030671# Check for PNG delegate library.
30672#
30673
30674# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030675if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030676 withval=$with_png; with_png=$withval
30677else
30678 with_png='yes'
30679fi
30680
30681
30682if test "$with_png" != 'yes'; then
30683 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30684fi
30685
cristy81beccd2011-10-03 18:17:24 +000030686have_png='no'
30687PNG_LIBS=''
30688
30689if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30691$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30693$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30695$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030696 failed=0
30697 passed=0
30698 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30699if test "x$ac_cv_header_png_h" = xyes; then :
30700 passed=`expr $passed + 1`
30701else
30702 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030703fi
30704
cristy81beccd2011-10-03 18:17:24 +000030705
30706
30707 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030708 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030709 if test "$have_png" = 'no' ; then
30710 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030711 pnglib='png'
30712 else
30713 pnglib="png1${var}"
30714 fi
30715
30716# Test for compatible LIBPNG library
30717 failed=0
30718 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030719 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030720 if test "${pnglib}" != 'png' ; then
30721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30722$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30724/* end confdefs.h. */
30725#include <stdio.h>
30726#include <stdlib.h>
30727#include <png.h>
30728
30729int
30730main ()
30731{
30732
30733#if PNG_LIBPNG_VER_MINOR != ${var}
30734#error LIBPNG library must be version 1${var}!
30735Kaboom, Kaboom
30736#endif
30737return 0;
30738
30739 ;
30740 return 0;
30741}
30742_ACEOF
30743if ac_fn_c_try_compile "$LINENO"; then :
30744 ac_cv_libpng_ok='yes'
30745else
30746 ac_cv_libpng_ok='no'
30747fi
30748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30749 if test "$ac_cv_libpng_ok" = 'yes' ; then
30750 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30752$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030753 else
30754 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30756$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030757 fi
30758 else
30759 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30761$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030762 fi
30763 fi
30764
30765 if test $passed -gt 0 -a $failed -le 0; then
30766 if test "1${var}" = '15' ; then
30767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30768$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30769if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30770 $as_echo_n "(cached) " >&6
30771else
30772 ac_check_lib_save_LIBS=$LIBS
30773LIBS="-lpng15 $LIBS"
30774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30775/* end confdefs.h. */
30776
30777/* Override any GCC internal prototype to avoid an error.
30778 Use char because int might match the return type of a GCC
30779 builtin and then its argument prototype would still apply. */
30780#ifdef __cplusplus
30781extern "C"
30782#endif
30783char png_get_io_ptr ();
30784int
30785main ()
30786{
30787return png_get_io_ptr ();
30788 ;
30789 return 0;
30790}
30791_ACEOF
30792if ac_fn_c_try_link "$LINENO"; then :
30793 ac_cv_lib_png15_png_get_io_ptr=yes
30794else
30795 ac_cv_lib_png15_png_get_io_ptr=no
30796fi
30797rm -f core conftest.err conftest.$ac_objext \
30798 conftest$ac_exeext conftest.$ac_ext
30799LIBS=$ac_check_lib_save_LIBS
30800fi
30801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30802$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30803if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30804 passed=`expr $passed + 1`
30805else
30806 failed=`expr $failed + 1`
30807fi
30808
30809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30810$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30811if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30812 $as_echo_n "(cached) " >&6
30813else
30814 ac_check_lib_save_LIBS=$LIBS
30815LIBS="-lpng15 $LIBS"
30816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30817/* end confdefs.h. */
30818
30819/* Override any GCC internal prototype to avoid an error.
30820 Use char because int might match the return type of a GCC
30821 builtin and then its argument prototype would still apply. */
30822#ifdef __cplusplus
30823extern "C"
30824#endif
30825char png_longjmp ();
30826int
30827main ()
30828{
30829return png_longjmp ();
30830 ;
30831 return 0;
30832}
30833_ACEOF
30834if ac_fn_c_try_link "$LINENO"; then :
30835 ac_cv_lib_png15_png_longjmp=yes
30836else
30837 ac_cv_lib_png15_png_longjmp=no
30838fi
30839rm -f core conftest.err conftest.$ac_objext \
30840 conftest$ac_exeext conftest.$ac_ext
30841LIBS=$ac_check_lib_save_LIBS
30842fi
30843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30844$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30845if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30846 passed=`expr $passed + 1`
30847else
30848 failed=`expr $failed + 1`
30849fi
30850
30851 fi
30852 if test "1${var}" = '14' ; then
30853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30854$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30855if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30856 $as_echo_n "(cached) " >&6
30857else
30858 ac_check_lib_save_LIBS=$LIBS
30859LIBS="-lpng14 $LIBS"
30860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30861/* end confdefs.h. */
30862
30863/* Override any GCC internal prototype to avoid an error.
30864 Use char because int might match the return type of a GCC
30865 builtin and then its argument prototype would still apply. */
30866#ifdef __cplusplus
30867extern "C"
30868#endif
30869char png_get_io_ptr ();
30870int
30871main ()
30872{
30873return png_get_io_ptr ();
30874 ;
30875 return 0;
30876}
30877_ACEOF
30878if ac_fn_c_try_link "$LINENO"; then :
30879 ac_cv_lib_png14_png_get_io_ptr=yes
30880else
30881 ac_cv_lib_png14_png_get_io_ptr=no
30882fi
30883rm -f core conftest.err conftest.$ac_objext \
30884 conftest$ac_exeext conftest.$ac_ext
30885LIBS=$ac_check_lib_save_LIBS
30886fi
30887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30888$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30889if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30890 passed=`expr $passed + 1`
30891else
30892 failed=`expr $failed + 1`
30893fi
30894
30895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30896$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30897if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30898 $as_echo_n "(cached) " >&6
30899else
30900 ac_check_lib_save_LIBS=$LIBS
30901LIBS="-lpng14 $LIBS"
30902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30903/* end confdefs.h. */
30904
30905/* Override any GCC internal prototype to avoid an error.
30906 Use char because int might match the return type of a GCC
30907 builtin and then its argument prototype would still apply. */
30908#ifdef __cplusplus
30909extern "C"
30910#endif
30911char png_get_io_state ();
30912int
30913main ()
30914{
30915return png_get_io_state ();
30916 ;
30917 return 0;
30918}
30919_ACEOF
30920if ac_fn_c_try_link "$LINENO"; then :
30921 ac_cv_lib_png14_png_get_io_state=yes
30922else
30923 ac_cv_lib_png14_png_get_io_state=no
30924fi
30925rm -f core conftest.err conftest.$ac_objext \
30926 conftest$ac_exeext conftest.$ac_ext
30927LIBS=$ac_check_lib_save_LIBS
30928fi
30929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30930$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30931if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30932 passed=`expr $passed + 1`
30933else
30934 failed=`expr $failed + 1`
30935fi
30936
30937 fi
30938 if test "1${var}" = '12' ; then
30939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30940$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30941if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30942 $as_echo_n "(cached) " >&6
30943else
30944 ac_check_lib_save_LIBS=$LIBS
30945LIBS="-lpng12 $LIBS"
30946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30947/* end confdefs.h. */
30948
30949/* Override any GCC internal prototype to avoid an error.
30950 Use char because int might match the return type of a GCC
30951 builtin and then its argument prototype would still apply. */
30952#ifdef __cplusplus
30953extern "C"
30954#endif
30955char png_get_io_ptr ();
30956int
30957main ()
30958{
30959return png_get_io_ptr ();
30960 ;
30961 return 0;
30962}
30963_ACEOF
30964if ac_fn_c_try_link "$LINENO"; then :
30965 ac_cv_lib_png12_png_get_io_ptr=yes
30966else
30967 ac_cv_lib_png12_png_get_io_ptr=no
30968fi
30969rm -f core conftest.err conftest.$ac_objext \
30970 conftest$ac_exeext conftest.$ac_ext
30971LIBS=$ac_check_lib_save_LIBS
30972fi
30973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30974$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30975if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30976 passed=`expr $passed + 1`
30977else
30978 failed=`expr $failed + 1`
30979fi
30980
30981 fi
30982 if test "1${var}" = '1' ; then
30983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30984$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30985if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30986 $as_echo_n "(cached) " >&6
30987else
30988 ac_check_lib_save_LIBS=$LIBS
30989LIBS="-lpng $LIBS"
30990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30991/* end confdefs.h. */
30992
30993/* Override any GCC internal prototype to avoid an error.
30994 Use char because int might match the return type of a GCC
30995 builtin and then its argument prototype would still apply. */
30996#ifdef __cplusplus
30997extern "C"
30998#endif
30999char png_get_io_ptr ();
31000int
31001main ()
31002{
31003return png_get_io_ptr ();
31004 ;
31005 return 0;
31006}
31007_ACEOF
31008if ac_fn_c_try_link "$LINENO"; then :
31009 ac_cv_lib_png_png_get_io_ptr=yes
31010else
31011 ac_cv_lib_png_png_get_io_ptr=no
31012fi
31013rm -f core conftest.err conftest.$ac_objext \
31014 conftest$ac_exeext conftest.$ac_ext
31015LIBS=$ac_check_lib_save_LIBS
31016fi
31017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31018$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31019if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31020 passed=`expr $passed + 1`
31021else
31022 failed=`expr $failed + 1`
31023fi
31024
31025 fi
31026 if test $passed -gt 0 -a $failed -le 0 ; then
31027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31028$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31029 if test $passed -gt 0 ; then
31030 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31032$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031033 have_png='no (failed tests)'
31034 else
31035 PNG_LIBS="-l${pnglib}"
31036 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031037
cristy8b350f62009-11-15 23:12:43 +000031038$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031039
cristyad38abe2012-12-23 23:03:21 +000031040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31041$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031042 have_png='yes'
31043 fi
31044 fi
31045 fi
31046 fi
31047 fi
31048 done
31049 fi
cristy3ed852e2009-09-05 21:47:34 +000031050fi
cristy64877302011-08-23 19:10:31 +000031051
cristy73bd4a52010-10-05 11:24:23 +000031052 if test "$have_png" = 'yes'; then
31053 PNG_DELEGATE_TRUE=
31054 PNG_DELEGATE_FALSE='#'
31055else
31056 PNG_DELEGATE_TRUE='#'
31057 PNG_DELEGATE_FALSE=
31058fi
31059
cristy3ed852e2009-09-05 21:47:34 +000031060
cristy50d3f5c2011-09-10 20:09:06 +000031061
cristy3ed852e2009-09-05 21:47:34 +000031062
31063
31064#
31065# Check for RSVG delegate library.
31066#
31067
31068# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031069if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031070 withval=$with_rsvg; with_rsvg=$withval
31071else
cristy1164d5f2012-08-15 00:58:25 +000031072 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031073fi
31074
31075
31076if test "$with_rsvg" != 'yes'; then
31077 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31078fi
31079
31080have_rsvg='no'
31081have_cairo='no'
31082RSVG_CFLAGS=""
31083RSVG_LIBS=""
31084RSVG_PKG=""
31085if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31087$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031088
31089pkg_failed=no
31090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31091$as_echo_n "checking for RSVG... " >&6; }
31092
31093if test -n "$RSVG_CFLAGS"; then
31094 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31095 elif test -n "$PKG_CONFIG"; then
31096 if test -n "$PKG_CONFIG" && \
31097 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31098 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31099 ac_status=$?
31100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31101 test $ac_status = 0; }; then
31102 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31103else
31104 pkg_failed=yes
31105fi
31106 else
31107 pkg_failed=untried
31108fi
31109if test -n "$RSVG_LIBS"; then
31110 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31111 elif test -n "$PKG_CONFIG"; then
31112 if test -n "$PKG_CONFIG" && \
31113 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31114 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31115 ac_status=$?
31116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31117 test $ac_status = 0; }; then
31118 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31119else
31120 pkg_failed=yes
31121fi
31122 else
31123 pkg_failed=untried
31124fi
31125
31126
31127
31128if test $pkg_failed = yes; then
31129
31130if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31131 _pkg_short_errors_supported=yes
31132else
31133 _pkg_short_errors_supported=no
31134fi
31135 if test $_pkg_short_errors_supported = yes; then
31136 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31137 else
31138 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31139 fi
31140 # Put the nasty error message in config.log where it belongs
31141 echo "$RSVG_PKG_ERRORS" >&5
31142
31143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31144$as_echo "no" >&6; }
31145 have_rsvg=no
31146elif test $pkg_failed = untried; then
31147 have_rsvg=no
31148else
31149 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31150 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31152$as_echo "yes" >&6; }
31153 have_rsvg=yes
31154fi
cristyad38abe2012-12-23 23:03:21 +000031155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31156$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031157
31158pkg_failed=no
31159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31160$as_echo_n "checking for CAIRO_SVG... " >&6; }
31161
31162if test -n "$CAIRO_SVG_CFLAGS"; then
31163 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31164 elif test -n "$PKG_CONFIG"; then
31165 if test -n "$PKG_CONFIG" && \
31166 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31167 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31168 ac_status=$?
31169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31170 test $ac_status = 0; }; then
31171 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31172else
31173 pkg_failed=yes
31174fi
31175 else
31176 pkg_failed=untried
31177fi
31178if test -n "$CAIRO_SVG_LIBS"; then
31179 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31180 elif test -n "$PKG_CONFIG"; then
31181 if test -n "$PKG_CONFIG" && \
31182 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31183 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31184 ac_status=$?
31185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31186 test $ac_status = 0; }; then
31187 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31188else
31189 pkg_failed=yes
31190fi
31191 else
31192 pkg_failed=untried
31193fi
31194
31195
31196
31197if test $pkg_failed = yes; then
31198
31199if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31200 _pkg_short_errors_supported=yes
31201else
31202 _pkg_short_errors_supported=no
31203fi
31204 if test $_pkg_short_errors_supported = yes; then
31205 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31206 else
31207 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31208 fi
31209 # Put the nasty error message in config.log where it belongs
31210 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31211
31212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31213$as_echo "no" >&6; }
31214 have_cairo=no
31215elif test $pkg_failed = untried; then
31216 have_cairo=no
31217else
31218 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31219 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31221$as_echo "yes" >&6; }
31222 have_cairo=yes
31223fi
cristyad38abe2012-12-23 23:03:21 +000031224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31225$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031226fi
31227
31228if test "$have_rsvg" = 'yes'; then
31229
cristy8b350f62009-11-15 23:12:43 +000031230$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031231
cristyc6722092012-10-14 00:19:31 +000031232 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031233 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31234 fi
31235fi
31236
31237if test "$have_cairo" = 'yes'; then
31238
cristy8b350f62009-11-15 23:12:43 +000031239$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031240
cristyc6722092012-10-14 00:19:31 +000031241 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031242 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31243 fi
31244fi
31245
cristy73bd4a52010-10-05 11:24:23 +000031246 if test "$have_rsvg" = 'yes'; then
31247 RSVG_DELEGATE_TRUE=
31248 RSVG_DELEGATE_FALSE='#'
31249else
31250 RSVG_DELEGATE_TRUE='#'
31251 RSVG_DELEGATE_FALSE=
31252fi
31253
31254 if test "$have_cairo" = 'yes'; then
31255 CAIRO_DELEGATE_TRUE=
31256 CAIRO_DELEGATE_FALSE='#'
31257else
31258 CAIRO_DELEGATE_TRUE='#'
31259 CAIRO_DELEGATE_FALSE=
31260fi
31261
cristy3ed852e2009-09-05 21:47:34 +000031262
31263
31264
31265
31266#
31267# Check for TIFF delegate library.
31268#
31269
31270# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031271if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031272 withval=$with_tiff; with_tiff=$withval
31273else
31274 with_tiff='yes'
31275fi
31276
31277
31278if test "$with_tiff" != 'yes'; then
31279 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31280fi
31281
31282have_tiff='no'
31283TIFF_LIBS=''
31284if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31286$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031288$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31290$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031291 failed=0
31292 passed=0
cristy8b350f62009-11-15 23:12:43 +000031293 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031294if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031295 passed=`expr $passed + 1`
31296else
31297 failed=`expr $failed + 1`
31298fi
31299
31300
cristy8b350f62009-11-15 23:12:43 +000031301 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031302if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031303 passed=`expr $passed + 1`
31304else
31305 failed=`expr $failed + 1`
31306fi
31307
31308
cristy8b350f62009-11-15 23:12:43 +000031309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031310$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031311if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031312 $as_echo_n "(cached) " >&6
31313else
31314 ac_check_lib_save_LIBS=$LIBS
31315LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031317/* end confdefs.h. */
31318
31319/* Override any GCC internal prototype to avoid an error.
31320 Use char because int might match the return type of a GCC
31321 builtin and then its argument prototype would still apply. */
31322#ifdef __cplusplus
31323extern "C"
31324#endif
31325char TIFFOpen ();
31326int
31327main ()
31328{
31329return TIFFOpen ();
31330 ;
31331 return 0;
31332}
31333_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031334if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031335 ac_cv_lib_tiff_TIFFOpen=yes
31336else
cristy8b350f62009-11-15 23:12:43 +000031337 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031338fi
cristy8b350f62009-11-15 23:12:43 +000031339rm -f core conftest.err conftest.$ac_objext \
31340 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031341LIBS=$ac_check_lib_save_LIBS
31342fi
cristy8b350f62009-11-15 23:12:43 +000031343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031344$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031345if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031346 passed=`expr $passed + 1`
31347else
31348 failed=`expr $failed + 1`
31349fi
31350
cristy8b350f62009-11-15 23:12:43 +000031351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031352$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031353if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031354 $as_echo_n "(cached) " >&6
31355else
31356 ac_check_lib_save_LIBS=$LIBS
31357LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031359/* end confdefs.h. */
31360
31361/* Override any GCC internal prototype to avoid an error.
31362 Use char because int might match the return type of a GCC
31363 builtin and then its argument prototype would still apply. */
31364#ifdef __cplusplus
31365extern "C"
31366#endif
31367char TIFFClientOpen ();
31368int
31369main ()
31370{
31371return TIFFClientOpen ();
31372 ;
31373 return 0;
31374}
31375_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031376if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031377 ac_cv_lib_tiff_TIFFClientOpen=yes
31378else
cristy8b350f62009-11-15 23:12:43 +000031379 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031380fi
cristy8b350f62009-11-15 23:12:43 +000031381rm -f core conftest.err conftest.$ac_objext \
31382 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031383LIBS=$ac_check_lib_save_LIBS
31384fi
cristy8b350f62009-11-15 23:12:43 +000031385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031386$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031387if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031388 passed=`expr $passed + 1`
31389else
31390 failed=`expr $failed + 1`
31391fi
31392
cristy8b350f62009-11-15 23:12:43 +000031393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031394$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031395if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031396 $as_echo_n "(cached) " >&6
31397else
31398 ac_check_lib_save_LIBS=$LIBS
31399LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031401/* end confdefs.h. */
31402
31403/* Override any GCC internal prototype to avoid an error.
31404 Use char because int might match the return type of a GCC
31405 builtin and then its argument prototype would still apply. */
31406#ifdef __cplusplus
31407extern "C"
31408#endif
31409char TIFFIsByteSwapped ();
31410int
31411main ()
31412{
31413return TIFFIsByteSwapped ();
31414 ;
31415 return 0;
31416}
31417_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031418if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031419 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31420else
cristy8b350f62009-11-15 23:12:43 +000031421 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031422fi
cristy8b350f62009-11-15 23:12:43 +000031423rm -f core conftest.err conftest.$ac_objext \
31424 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031425LIBS=$ac_check_lib_save_LIBS
31426fi
cristy8b350f62009-11-15 23:12:43 +000031427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031428$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031429if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031430 passed=`expr $passed + 1`
31431else
31432 failed=`expr $failed + 1`
31433fi
31434
cristy8b350f62009-11-15 23:12:43 +000031435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031436$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031437if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031438 $as_echo_n "(cached) " >&6
31439else
31440 ac_check_lib_save_LIBS=$LIBS
31441LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031443/* end confdefs.h. */
31444
31445/* Override any GCC internal prototype to avoid an error.
31446 Use char because int might match the return type of a GCC
31447 builtin and then its argument prototype would still apply. */
31448#ifdef __cplusplus
31449extern "C"
31450#endif
31451char TIFFReadRGBATile ();
31452int
31453main ()
31454{
31455return TIFFReadRGBATile ();
31456 ;
31457 return 0;
31458}
31459_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031460if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031461 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31462else
cristy8b350f62009-11-15 23:12:43 +000031463 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031464fi
cristy8b350f62009-11-15 23:12:43 +000031465rm -f core conftest.err conftest.$ac_objext \
31466 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031467LIBS=$ac_check_lib_save_LIBS
31468fi
cristy8b350f62009-11-15 23:12:43 +000031469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031470$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031471if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031472 passed=`expr $passed + 1`
31473else
31474 failed=`expr $failed + 1`
31475fi
31476
cristy8b350f62009-11-15 23:12:43 +000031477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031478$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031479if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031480 $as_echo_n "(cached) " >&6
31481else
31482 ac_check_lib_save_LIBS=$LIBS
31483LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031485/* end confdefs.h. */
31486
31487/* Override any GCC internal prototype to avoid an error.
31488 Use char because int might match the return type of a GCC
31489 builtin and then its argument prototype would still apply. */
31490#ifdef __cplusplus
31491extern "C"
31492#endif
31493char TIFFReadRGBAStrip ();
31494int
31495main ()
31496{
31497return TIFFReadRGBAStrip ();
31498 ;
31499 return 0;
31500}
31501_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031502if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031503 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31504else
cristy8b350f62009-11-15 23:12:43 +000031505 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031506fi
cristy8b350f62009-11-15 23:12:43 +000031507rm -f core conftest.err conftest.$ac_objext \
31508 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031509LIBS=$ac_check_lib_save_LIBS
31510fi
cristy8b350f62009-11-15 23:12:43 +000031511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031512$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031513if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031514 passed=`expr $passed + 1`
31515else
31516 failed=`expr $failed + 1`
31517fi
31518
cristy8b350f62009-11-15 23:12:43 +000031519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031520$as_echo_n "checking if TIFF package is complete... " >&6; }
31521 if test $passed -gt 0; then
31522 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31524$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031525 have_tiff='no (failed tests)'
31526 else
31527 TIFF_LIBS='-ltiff'
31528 LIBS="$TIFF_LIBS $LIBS"
31529
cristy8b350f62009-11-15 23:12:43 +000031530$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031531
cristyad38abe2012-12-23 23:03:21 +000031532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31533$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031534 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031535 for ac_header in tiffconf.h
31536do :
31537 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031538if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031539 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031540#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031541_ACEOF
31542
31543fi
31544
31545done
31546
cristy8b350f62009-11-15 23:12:43 +000031547 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031548 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31549 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31550 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031551do :
31552 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31553ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031554if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031555 cat >>confdefs.h <<_ACEOF
31556#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31557_ACEOF
31558
31559fi
31560done
31561
31562 fi
31563 else
cristyad38abe2012-12-23 23:03:21 +000031564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31565$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031566 fi
31567fi
cristy73bd4a52010-10-05 11:24:23 +000031568 if test "$have_tiff" = 'yes'; then
31569 TIFF_DELEGATE_TRUE=
31570 TIFF_DELEGATE_FALSE='#'
31571else
31572 TIFF_DELEGATE_TRUE='#'
31573 TIFF_DELEGATE_FALSE=
31574fi
31575
cristy3ed852e2009-09-05 21:47:34 +000031576
31577
31578
31579#
cristyb1860752011-03-14 00:27:46 +000031580# Check for WEBP delegate library.
31581#
31582
31583# Check whether --with-webp was given.
31584if test "${with_webp+set}" = set; then :
31585 withval=$with_webp; with_webp=$withval
31586else
31587 with_webp='yes'
31588fi
31589
31590
31591if test "$with_webp" != 'yes'; then
31592 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31593fi
31594
31595have_webp='no'
31596WEBP_LIBS=''
31597if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31599$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31601$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31603$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031604 failed=0
31605 passed=0
31606 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31607if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31608 passed=`expr $passed + 1`
31609else
31610 failed=`expr $failed + 1`
31611fi
31612
31613
31614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31615$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31616if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31617 $as_echo_n "(cached) " >&6
31618else
31619 ac_check_lib_save_LIBS=$LIBS
31620LIBS="-lwebp $LIBS"
31621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31622/* end confdefs.h. */
31623
31624/* Override any GCC internal prototype to avoid an error.
31625 Use char because int might match the return type of a GCC
31626 builtin and then its argument prototype would still apply. */
31627#ifdef __cplusplus
31628extern "C"
31629#endif
31630char WebPDecodeRGB ();
31631int
31632main ()
31633{
31634return WebPDecodeRGB ();
31635 ;
31636 return 0;
31637}
31638_ACEOF
31639if ac_fn_c_try_link "$LINENO"; then :
31640 ac_cv_lib_webp_WebPDecodeRGB=yes
31641else
31642 ac_cv_lib_webp_WebPDecodeRGB=no
31643fi
31644rm -f core conftest.err conftest.$ac_objext \
31645 conftest$ac_exeext conftest.$ac_ext
31646LIBS=$ac_check_lib_save_LIBS
31647fi
31648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31649$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31650if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31651 passed=`expr $passed + 1`
31652else
31653 failed=`expr $failed + 1`
31654fi
31655
31656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31657$as_echo_n "checking if WEBP package is complete... " >&6; }
31658 if test $passed -gt 0; then
31659 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31661$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031662 have_webp='no (failed tests)'
31663 else
31664 WEBP_LIBS='-lwebp'
31665 LIBS="$WEBP_LIBS $LIBS"
31666
31667$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31668
cristyad38abe2012-12-23 23:03:21 +000031669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31670$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031671 have_webp='yes'
31672 fi
31673 else
cristyad38abe2012-12-23 23:03:21 +000031674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31675$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031676 fi
31677fi
31678 if test "$have_webp" = 'yes'; then
31679 WEBP_DELEGATE_TRUE=
31680 WEBP_DELEGATE_FALSE='#'
31681else
31682 WEBP_DELEGATE_TRUE='#'
31683 WEBP_DELEGATE_FALSE=
31684fi
31685
31686
31687
31688
31689#
cristy3ed852e2009-09-05 21:47:34 +000031690# Set Windows font directory.
31691#
31692
31693# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031694if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031695 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31696else
31697 with_windows_font_dir=''
31698fi
31699
31700if test "$with_windows_font_dir" != '' ; then
31701 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31702fi
31703
31704
31705#
31706# Check for WMF delegate library.
31707#
31708
31709# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031710if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031711 withval=$with_wmf; with_wmf=$withval
31712else
cristyfc3d0222012-02-07 15:05:57 +000031713 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031714fi
31715
31716
31717if test "$with_wmf" != 'yes'; then
31718 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31719fi
31720
31721have_wmf='no'
31722WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031723WMF_LIBS_DEPS=''
31724OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031725if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31727$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031729$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31731$as_echo "" >&6; }
31732 have_libwmf='no'
31733 have_libwmflite='no'
31734 have_libwmf_ipa_h='no'
31735
31736 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31737"
31738if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31739 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031740fi
31741
31742
cristy03f7cf92011-12-15 01:40:41 +000031743 if test "$have_libwmf_ipa_h" = 'yes'; then
31744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31745$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31746if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031747 $as_echo_n "(cached) " >&6
31748else
31749 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031750LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031752/* end confdefs.h. */
31753
31754/* Override any GCC internal prototype to avoid an error.
31755 Use char because int might match the return type of a GCC
31756 builtin and then its argument prototype would still apply. */
31757#ifdef __cplusplus
31758extern "C"
31759#endif
cristy03f7cf92011-12-15 01:40:41 +000031760char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031761int
31762main ()
31763{
cristy03f7cf92011-12-15 01:40:41 +000031764return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031765 ;
31766 return 0;
31767}
31768_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031769if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031770 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031771else
cristy03f7cf92011-12-15 01:40:41 +000031772 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031773fi
cristy8b350f62009-11-15 23:12:43 +000031774rm -f core conftest.err conftest.$ac_objext \
31775 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031776LIBS=$ac_check_lib_save_LIBS
31777fi
cristy03f7cf92011-12-15 01:40:41 +000031778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31779$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31780if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31781 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031782fi
31783
cristy03f7cf92011-12-15 01:40:41 +000031784 if test "$have_libwmflite" = 'yes'; then
31785
31786$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31787
31788 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031789 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031790 have_wmf='yes'
31791 else
31792 WMF_LIBS_DEPS=''
31793 WMF_CONFIG_LIBS=`libwmf-config --libs`
31794 for lib in xml2 expat freetype jpeg png z; do
31795 testlib="-l${lib}"
31796 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31797 done
31798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31799$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31800if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31801 $as_echo_n "(cached) " >&6
31802else
31803 ac_check_lib_save_LIBS=$LIBS
31804LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31806/* end confdefs.h. */
31807
31808/* Override any GCC internal prototype to avoid an error.
31809 Use char because int might match the return type of a GCC
31810 builtin and then its argument prototype would still apply. */
31811#ifdef __cplusplus
31812extern "C"
31813#endif
31814char wmf_api_create ();
31815int
31816main ()
31817{
31818return wmf_api_create ();
31819 ;
31820 return 0;
31821}
31822_ACEOF
31823if ac_fn_c_try_link "$LINENO"; then :
31824 ac_cv_lib_wmf_wmf_api_create=yes
31825else
31826 ac_cv_lib_wmf_wmf_api_create=no
31827fi
31828rm -f core conftest.err conftest.$ac_objext \
31829 conftest$ac_exeext conftest.$ac_ext
31830LIBS=$ac_check_lib_save_LIBS
31831fi
31832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31833$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31834if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31835 have_libwmf='yes'
31836fi
31837
31838 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031839
cristy8b350f62009-11-15 23:12:43 +000031840$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031841
cristy03f7cf92011-12-15 01:40:41 +000031842 WMF_LIBS='-lwmf'
31843 LIBS="$WMF_LIBS $LIBS"
31844 have_wmf='yes'
31845 else
31846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31847$as_echo "no -- some components failed test" >&6; }
31848 have_wmf='no (failed tests)'
31849 have_wmflite='no (failed tests)'
31850 LIBS="$OLIBS"
31851 WMF_LIBS=''
31852 fi
glennrp33e524b2011-08-24 17:41:57 +000031853 fi
cristy03f7cf92011-12-15 01:40:41 +000031854 fi
31855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31856$as_echo_n "checking if WMF package is complete... " >&6; }
31857 if test "$have_wmf" = 'yes'; then
31858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31859$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031860 else
cristy03f7cf92011-12-15 01:40:41 +000031861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31862$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031863 fi
cristy3ed852e2009-09-05 21:47:34 +000031864fi
cristy73bd4a52010-10-05 11:24:23 +000031865 if test "$have_wmf" = 'yes'; then
31866 WMF_DELEGATE_TRUE=
31867 WMF_DELEGATE_FALSE='#'
31868else
31869 WMF_DELEGATE_TRUE='#'
31870 WMF_DELEGATE_FALSE=
31871fi
31872
cristy3ed852e2009-09-05 21:47:34 +000031873
31874
31875
cristy81beccd2011-10-03 18:17:24 +000031876
31877
cristy3ed852e2009-09-05 21:47:34 +000031878#
31879# Check for XML delegate library.
31880#
31881
31882# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031883if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031884 withval=$with_xml; with_xml=$withval
31885else
cristyfc3d0222012-02-07 15:05:57 +000031886 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000031887fi
31888
31889
cristy81beccd2011-10-03 18:17:24 +000031890if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031891 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31892fi
31893
cristy81beccd2011-10-03 18:17:24 +000031894have_xml='no'
31895XML_LIBS=''
31896if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31898$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31900$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31902$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031903 PERSIST_LDFLAGS=$LDFLAGS
31904 PERSIST_CPPFLAGS=$CPPFLAGS
31905 xml2_config=''
31906 # Extract the first word of "xml2-config", so it can be a program name with args.
31907set dummy xml2-config; ac_word=$2
31908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31909$as_echo_n "checking for $ac_word... " >&6; }
31910if ${ac_cv_path_xml2_config+:} false; then :
31911 $as_echo_n "(cached) " >&6
31912else
31913 case $xml2_config in
31914 [\\/]* | ?:[\\/]*)
31915 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31916 ;;
31917 *)
31918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31919for as_dir in $PATH
31920do
31921 IFS=$as_save_IFS
31922 test -z "$as_dir" && as_dir=.
31923 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000031924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000031925 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31927 break 2
31928 fi
31929done
31930 done
31931IFS=$as_save_IFS
31932
31933 ;;
31934esac
31935fi
31936xml2_config=$ac_cv_path_xml2_config
31937if test -n "$xml2_config"; then
31938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31939$as_echo "$xml2_config" >&6; }
31940else
31941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31942$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031943fi
31944
cristy81beccd2011-10-03 18:17:24 +000031945 if test -n "$xml2_config"; then
31946 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31947 # the shared library installed under /usr/lib, whereas the package
31948 # installs itself under $prefix/libxml and $prefix/lib.
31949 xml2_prefix=`xml2-config --prefix`
31950 if test -d "${xml2_prefix}/include/libxml2"; then
31951 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31952 fi
31953 if test "${xml2_prefix}" != '/usr'; then
31954 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31955 fi
31956 fi
31957 failed=0
31958 passed=0
31959 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31960if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31961 passed=`expr $passed + 1`
31962else
31963 failed=`expr $failed + 1`
31964fi
31965
31966
31967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31968$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31969if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31970 $as_echo_n "(cached) " >&6
31971else
31972 ac_check_lib_save_LIBS=$LIBS
31973LIBS="-lxml2 $LIBS"
31974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31975/* end confdefs.h. */
31976
31977/* Override any GCC internal prototype to avoid an error.
31978 Use char because int might match the return type of a GCC
31979 builtin and then its argument prototype would still apply. */
31980#ifdef __cplusplus
31981extern "C"
31982#endif
31983char xmlSAXVersion ();
31984int
31985main ()
31986{
31987return xmlSAXVersion ();
31988 ;
31989 return 0;
31990}
31991_ACEOF
31992if ac_fn_c_try_link "$LINENO"; then :
31993 ac_cv_lib_xml2_xmlSAXVersion=yes
31994else
31995 ac_cv_lib_xml2_xmlSAXVersion=no
31996fi
31997rm -f core conftest.err conftest.$ac_objext \
31998 conftest$ac_exeext conftest.$ac_ext
31999LIBS=$ac_check_lib_save_LIBS
32000fi
32001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32002$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32003if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32004 passed=`expr $passed + 1`
32005else
32006 failed=`expr $failed + 1`
32007fi
32008
32009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32010$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32011if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32012 $as_echo_n "(cached) " >&6
32013else
32014 ac_check_lib_save_LIBS=$LIBS
32015LIBS="-lxml2 $LIBS"
32016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32017/* end confdefs.h. */
32018
32019/* Override any GCC internal prototype to avoid an error.
32020 Use char because int might match the return type of a GCC
32021 builtin and then its argument prototype would still apply. */
32022#ifdef __cplusplus
32023extern "C"
32024#endif
32025char xmlParseChunk ();
32026int
32027main ()
32028{
32029return xmlParseChunk ();
32030 ;
32031 return 0;
32032}
32033_ACEOF
32034if ac_fn_c_try_link "$LINENO"; then :
32035 ac_cv_lib_xml2_xmlParseChunk=yes
32036else
32037 ac_cv_lib_xml2_xmlParseChunk=no
32038fi
32039rm -f core conftest.err conftest.$ac_objext \
32040 conftest$ac_exeext conftest.$ac_ext
32041LIBS=$ac_check_lib_save_LIBS
32042fi
32043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32044$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32045if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32046 passed=`expr $passed + 1`
32047else
32048 failed=`expr $failed + 1`
32049fi
32050
32051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32052$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32053if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32054 $as_echo_n "(cached) " >&6
32055else
32056 ac_check_lib_save_LIBS=$LIBS
32057LIBS="-lxml2 $LIBS"
32058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32059/* end confdefs.h. */
32060
32061/* Override any GCC internal prototype to avoid an error.
32062 Use char because int might match the return type of a GCC
32063 builtin and then its argument prototype would still apply. */
32064#ifdef __cplusplus
32065extern "C"
32066#endif
32067char xmlCreatePushParserCtxt ();
32068int
32069main ()
32070{
32071return xmlCreatePushParserCtxt ();
32072 ;
32073 return 0;
32074}
32075_ACEOF
32076if ac_fn_c_try_link "$LINENO"; then :
32077 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32078else
32079 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32080fi
32081rm -f core conftest.err conftest.$ac_objext \
32082 conftest$ac_exeext conftest.$ac_ext
32083LIBS=$ac_check_lib_save_LIBS
32084fi
32085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32086$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32087if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32088 passed=`expr $passed + 1`
32089else
32090 failed=`expr $failed + 1`
32091fi
32092
32093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32094$as_echo_n "checking if XML package is complete... " >&6; }
32095 if test $passed -gt 0; then
32096 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32098$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032099 have_xml='no (failed tests)'
32100 LDFLAGS="$PERSIST_LDFLAGS"
32101 CPPFLAGS="$PERSIST_CPPFLAGS"
32102 else
32103 XML_LIBS='-lxml2'
32104 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032105
cristy8b350f62009-11-15 23:12:43 +000032106$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032107
cristyad38abe2012-12-23 23:03:21 +000032108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32109$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032110 have_xml='yes'
32111 fi
32112 else
cristyad38abe2012-12-23 23:03:21 +000032113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32114$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032115 fi
32116fi
cristy73bd4a52010-10-05 11:24:23 +000032117 if test "$have_xml" = 'yes'; then
32118 XML_DELEGATE_TRUE=
32119 XML_DELEGATE_FALSE='#'
32120else
32121 XML_DELEGATE_TRUE='#'
32122 XML_DELEGATE_FALSE=
32123fi
32124
cristy3ed852e2009-09-05 21:47:34 +000032125
32126
32127
32128# Substitute compiler name to build/link PerlMagick
32129#
32130
32131
32132#
32133# Configure install Paths
32134#
cristy7def36a2011-10-28 19:04:41 +000032135
cristy2a11bef2011-10-28 18:33:11 +000032136# Path to ImageMagick header files
32137INCLUDE_RELATIVE_PATH="ImageMagick"
cristye52f12f2012-12-31 15:32:36 +000032138INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32139DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032140case "${build_os}" in
32141 mingw* )
32142 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32143 ;;
32144esac
32145
32146cat >>confdefs.h <<_ACEOF
32147#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32148_ACEOF
32149
32150
cristy3ed852e2009-09-05 21:47:34 +000032151
cristye52f12f2012-12-31 15:32:36 +000032152# Path to ImageMagick header files (arch part)
32153INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32154DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32155case "${build_os}" in
32156 mingw* )
32157 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32158 ;;
32159esac
32160
32161cat >>confdefs.h <<_ACEOF
32162#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32163_ACEOF
32164
32165
32166
cristy3ed852e2009-09-05 21:47:34 +000032167# Subdirectory under lib to place ImageMagick lib files
32168LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32169
32170cat >>confdefs.h <<_ACEOF
32171#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32172_ACEOF
32173
32174
32175# Path to ImageMagick bin directory
32176EXECUTABLE_PATH="${BIN_DIR}"
32177DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32178case "${build_os}" in
32179 mingw* )
32180 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32181 ;;
32182esac
32183
32184cat >>confdefs.h <<_ACEOF
32185#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32186_ACEOF
32187
32188
32189
32190# Path to ImageMagick lib
32191LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32192DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32193case "${build_os}" in
32194 mingw* )
32195 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32196 ;;
32197esac
32198
32199cat >>confdefs.h <<_ACEOF
32200#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32201_ACEOF
32202
32203
32204
cristy3ed852e2009-09-05 21:47:34 +000032205#
cristy01ff9f32012-12-01 18:15:29 +000032206# path to modules lib
32207if test "x$MODULES_BASEDIRNAME" = "x"; then
32208 MODULES_BASEDIRNAME="modules"
32209fi
cristy3ed852e2009-09-05 21:47:34 +000032210
32211cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032212#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032213_ACEOF
32214
cristy01ff9f32012-12-01 18:15:29 +000032215
32216
32217if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032218 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32219else
cristy3ed852e2009-09-05 21:47:34 +000032220
32221cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032222#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032223_ACEOF
32224
cristycf4a3c22012-12-02 21:47:25 +000032225fi
cristy01ff9f32012-12-01 18:15:29 +000032226
32227
cristy371d4812012-12-01 19:48:10 +000032228MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032229
32230MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32231
32232
32233#
32234# path to coders lib
32235if test "x$CODER_DIRNAME" = "x"; then
32236 CODER_DIRNAME="coders"
32237fi
32238
32239cat >>confdefs.h <<_ACEOF
32240#define CODER_DIRNAME "$CODER_DIRNAME"
32241_ACEOF
32242
32243
32244
cristy371d4812012-12-01 19:48:10 +000032245CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032246CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032247
32248
32249#
32250# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032251#
32252# path to coders lib
32253if test "x$FILTER_DIRNAME" = "x"; then
32254 FILTER_DIRNAME="filters"
32255fi
cristy3ed852e2009-09-05 21:47:34 +000032256
32257cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032258#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032259_ACEOF
32260
cristy3ed852e2009-09-05 21:47:34 +000032261
cristy3ed852e2009-09-05 21:47:34 +000032262
cristy371d4812012-12-01 19:48:10 +000032263FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032264FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032265
32266
32267#
32268# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032269DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032270DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32271DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032272case "${build_os}" in
32273 mingw* )
32274 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32275 ;;
32276esac
32277
32278cat >>confdefs.h <<_ACEOF
32279#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32280_ACEOF
32281
32282
32283
cristy2a11bef2011-10-28 18:33:11 +000032284# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032285CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032286
32287cat >>confdefs.h <<_ACEOF
32288#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32289_ACEOF
32290
cristy7def36a2011-10-28 19:04:41 +000032291CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032292DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32293case "${build_os}" in
32294 mingw* )
32295 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32296 ;;
32297esac
32298
32299cat >>confdefs.h <<_ACEOF
32300#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32301_ACEOF
32302
32303
32304
cristy2a11bef2011-10-28 18:33:11 +000032305# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032306SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032307
32308cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032309#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032310_ACEOF
32311
cristy670aa3c2011-11-03 00:54:00 +000032312SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032313DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032314case "${build_os}" in
32315 mingw* )
cristy4f820712011-04-01 12:35:43 +000032316 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032317 ;;
32318esac
32319
32320cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032321#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032322_ACEOF
32323
32324
32325
cristy54378032012-12-04 15:52:20 +000032326#
32327# Subdirectory to place architecture-dependent configuration files.
32328if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32329 SHAREARCH_BASEDIRNAME="config"
32330fi
cristy670aa3c2011-11-03 00:54:00 +000032331
32332cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032333#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032334_ACEOF
32335
cristy54378032012-12-04 15:52:20 +000032336
32337
32338if test "x$SHAREARCH_DIRNAME" = "x"; then
32339 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32340else
cristy670aa3c2011-11-03 00:54:00 +000032341
32342cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032343#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032344_ACEOF
32345
cristy54378032012-12-04 15:52:20 +000032346fi
32347
32348
32349SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32350
32351SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032352
32353
cristy3ed852e2009-09-05 21:47:34 +000032354#
32355# program_transform_name is formed for use in a Makefile, so create a
32356# modified version for use in a shell script.
32357configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32358
32359# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32361$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032363$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32365$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032366AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032367BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032368BZIPDelegateDefault='bzip2'
32369BrowseDelegateDefault='xdg-open'
32370CGMDecodeDelegateDefault='ralcgm'
32371CatDelegateDefault='cat'
32372DNGDecodeDelegateDefault='ufraw-batch'
32373GVCDecodeDelegateDefault='dot'
32374DVIDecodeDelegateDefault='dvips'
32375EchoDelegateDefault='echo'
32376EditorDelegateDefault='xterm'
32377FIGDecodeDelegateDefault='fig2dev'
32378ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32379DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32380MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32381GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032382HPGLDecodeDelegateDefault='hp2xx'
32383HTMLDecodeDelegateDefault='html2ps'
32384ILBMDecodeDelegateDefault='ilbmtoppm'
32385ILBMEncodeDelegateDefault='ppmtoilbm'
32386LPDelegateDefault='lp'
32387LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032388LaunchDelegateDefault='gimp'
32389MANDelegateDefault='groff'
32390MPEGDecodeDelegateDefault='ffmpeg'
32391MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032392MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032393MVDelegateDefault='mv'
32394PCLDelegateDefault='pcl6'
32395PGPDecodeDelegateDefault='pgpv'
32396POVDelegateDefault='povray'
32397if test "$native_win32_build" = 'yes'; then
32398 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032399elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032400 PSDelegateDefault='gsc'
32401else
32402 PSDelegateDefault='gs'
32403fi
32404RLEEncodeDelegateDefault='rawtorle'
32405RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032406RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032407SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032408SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032409TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032410UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032411WMFDecodeDelegateDefault='wmf2eps'
32412WWWDecodeDelegateDefault='curl'
32413XPSDelegateDefault='gxps'
32414ZipDelegateDefault='gzip'
32415
32416# Search for delegates
32417# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32418set dummy "$AutotraceDecodeDelegateDefault"; 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_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032422 $as_echo_n "(cached) " >&6
32423else
32424 case $AutotraceDecodeDelegate in
32425 [\\/]* | ?:[\\/]*)
32426 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # 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_AutotraceDecodeDelegate="$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_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32445 ;;
32446esac
32447fi
32448AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32449if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032451$as_echo "$AutotraceDecodeDelegate" >&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
cristy3ed852e2009-09-05 21:47:34 +000032458# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32459set dummy "$BlenderDecodeDelegateDefault"; 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_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032463 $as_echo_n "(cached) " >&6
32464else
32465 case $BlenderDecodeDelegate in
32466 [\\/]* | ?:[\\/]*)
32467 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # 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_BlenderDecodeDelegate="$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_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32486 ;;
32487esac
32488fi
32489BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32490if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032492$as_echo "$BlenderDecodeDelegate" >&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 ""$BZIPDelegateDefault"", so it can be a program name with args.
32500set dummy "$BZIPDelegateDefault"; 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_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032504 $as_echo_n "(cached) " >&6
32505else
32506 case $BZIPDelegate in
32507 [\\/]* | ?:[\\/]*)
32508 ac_cv_path_BZIPDelegate="$BZIPDelegate" # 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_BZIPDelegate="$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_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32527 ;;
32528esac
32529fi
32530BZIPDelegate=$ac_cv_path_BZIPDelegate
32531if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032533$as_echo "$BZIPDelegate" >&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
cristyc59f0e72012-08-27 12:59:33 +000032540for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32541do
32542 # Extract the first word of "$ac_prog", so it can be a program name with args.
32543set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032545$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032546if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032547 $as_echo_n "(cached) " >&6
32548else
32549 case $BrowseDelegate in
32550 [\\/]* | ?:[\\/]*)
32551 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32552 ;;
32553 *)
32554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32555for as_dir in $PATH
32556do
32557 IFS=$as_save_IFS
32558 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032559 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032561 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032563 break 2
32564 fi
32565done
cristy8b350f62009-11-15 23:12:43 +000032566 done
cristy3ed852e2009-09-05 21:47:34 +000032567IFS=$as_save_IFS
32568
cristy3ed852e2009-09-05 21:47:34 +000032569 ;;
32570esac
32571fi
32572BrowseDelegate=$ac_cv_path_BrowseDelegate
32573if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032575$as_echo "$BrowseDelegate" >&6; }
32576else
cristy8b350f62009-11-15 23:12:43 +000032577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032578$as_echo "no" >&6; }
32579fi
32580
32581
cristyc59f0e72012-08-27 12:59:33 +000032582 test -n "$BrowseDelegate" && break
32583done
32584test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32585
cristy3ed852e2009-09-05 21:47:34 +000032586# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32587set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032589$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032590if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032591 $as_echo_n "(cached) " >&6
32592else
32593 case $CGMDecodeDelegate in
32594 [\\/]* | ?:[\\/]*)
32595 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32596 ;;
32597 *)
32598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32599for as_dir in $PATH
32600do
32601 IFS=$as_save_IFS
32602 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032603 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032605 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032607 break 2
32608 fi
32609done
cristy8b350f62009-11-15 23:12:43 +000032610 done
cristy3ed852e2009-09-05 21:47:34 +000032611IFS=$as_save_IFS
32612
32613 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32614 ;;
32615esac
32616fi
32617CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32618if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032620$as_echo "$CGMDecodeDelegate" >&6; }
32621else
cristy8b350f62009-11-15 23:12:43 +000032622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032623$as_echo "no" >&6; }
32624fi
32625
32626
32627# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32628set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032630$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032631if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032632 $as_echo_n "(cached) " >&6
32633else
32634 case $CatDelegate in
32635 [\\/]* | ?:[\\/]*)
32636 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32637 ;;
32638 *)
32639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32640for as_dir in $PATH
32641do
32642 IFS=$as_save_IFS
32643 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032644 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032646 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032648 break 2
32649 fi
32650done
cristy8b350f62009-11-15 23:12:43 +000032651 done
cristy3ed852e2009-09-05 21:47:34 +000032652IFS=$as_save_IFS
32653
32654 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32655 ;;
32656esac
32657fi
32658CatDelegate=$ac_cv_path_CatDelegate
32659if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032661$as_echo "$CatDelegate" >&6; }
32662else
cristy8b350f62009-11-15 23:12:43 +000032663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032664$as_echo "no" >&6; }
32665fi
32666
32667
32668# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32669set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032671$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032672if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032673 $as_echo_n "(cached) " >&6
32674else
32675 case $DNGDecodeDelegate in
32676 [\\/]* | ?:[\\/]*)
32677 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32678 ;;
32679 *)
32680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32681for as_dir in $PATH
32682do
32683 IFS=$as_save_IFS
32684 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032685 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032687 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032689 break 2
32690 fi
32691done
cristy8b350f62009-11-15 23:12:43 +000032692 done
cristy3ed852e2009-09-05 21:47:34 +000032693IFS=$as_save_IFS
32694
32695 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32696 ;;
32697esac
32698fi
32699DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32700if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032702$as_echo "$DNGDecodeDelegate" >&6; }
32703else
cristy8b350f62009-11-15 23:12:43 +000032704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032705$as_echo "no" >&6; }
32706fi
32707
32708
32709# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32710set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032712$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032713if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032714 $as_echo_n "(cached) " >&6
32715else
32716 case $GVCDecodeDelegate in
32717 [\\/]* | ?:[\\/]*)
32718 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32719 ;;
32720 *)
32721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32722for as_dir in $PATH
32723do
32724 IFS=$as_save_IFS
32725 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032726 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032728 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032730 break 2
32731 fi
32732done
cristy8b350f62009-11-15 23:12:43 +000032733 done
cristy3ed852e2009-09-05 21:47:34 +000032734IFS=$as_save_IFS
32735
32736 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32737 ;;
32738esac
32739fi
32740GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32741if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032743$as_echo "$GVCDecodeDelegate" >&6; }
32744else
cristy8b350f62009-11-15 23:12:43 +000032745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032746$as_echo "no" >&6; }
32747fi
32748
32749
32750# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32751set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032753$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032754if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032755 $as_echo_n "(cached) " >&6
32756else
32757 case $DVIDecodeDelegate in
32758 [\\/]* | ?:[\\/]*)
32759 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32760 ;;
32761 *)
32762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32763for as_dir in $PATH
32764do
32765 IFS=$as_save_IFS
32766 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032767 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032769 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032771 break 2
32772 fi
32773done
cristy8b350f62009-11-15 23:12:43 +000032774 done
cristy3ed852e2009-09-05 21:47:34 +000032775IFS=$as_save_IFS
32776
32777 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32778 ;;
32779esac
32780fi
32781DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32782if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032784$as_echo "$DVIDecodeDelegate" >&6; }
32785else
cristy8b350f62009-11-15 23:12:43 +000032786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032787$as_echo "no" >&6; }
32788fi
32789
32790
32791# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32792set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032794$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032795if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032796 $as_echo_n "(cached) " >&6
32797else
32798 case $EchoDelegate in
32799 [\\/]* | ?:[\\/]*)
32800 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32801 ;;
32802 *)
32803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32804for as_dir in $PATH
32805do
32806 IFS=$as_save_IFS
32807 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032808 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032810 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032812 break 2
32813 fi
32814done
cristy8b350f62009-11-15 23:12:43 +000032815 done
cristy3ed852e2009-09-05 21:47:34 +000032816IFS=$as_save_IFS
32817
32818 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32819 ;;
32820esac
32821fi
32822EchoDelegate=$ac_cv_path_EchoDelegate
32823if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032825$as_echo "$EchoDelegate" >&6; }
32826else
cristy8b350f62009-11-15 23:12:43 +000032827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032828$as_echo "no" >&6; }
32829fi
32830
32831
32832# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32833set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032835$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032836if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032837 $as_echo_n "(cached) " >&6
32838else
32839 case $EditorDelegate in
32840 [\\/]* | ?:[\\/]*)
32841 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32842 ;;
32843 *)
32844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32845for as_dir in $PATH
32846do
32847 IFS=$as_save_IFS
32848 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032849 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032851 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032853 break 2
32854 fi
32855done
cristy8b350f62009-11-15 23:12:43 +000032856 done
cristy3ed852e2009-09-05 21:47:34 +000032857IFS=$as_save_IFS
32858
32859 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32860 ;;
32861esac
32862fi
32863EditorDelegate=$ac_cv_path_EditorDelegate
32864if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032866$as_echo "$EditorDelegate" >&6; }
32867else
cristy8b350f62009-11-15 23:12:43 +000032868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032869$as_echo "no" >&6; }
32870fi
32871
32872
32873# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32874set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032876$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032877if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032878 $as_echo_n "(cached) " >&6
32879else
32880 case $FIGDecodeDelegate in
32881 [\\/]* | ?:[\\/]*)
32882 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32883 ;;
32884 *)
32885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32886for as_dir in $PATH
32887do
32888 IFS=$as_save_IFS
32889 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032890 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032892 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032894 break 2
32895 fi
32896done
cristy8b350f62009-11-15 23:12:43 +000032897 done
cristy3ed852e2009-09-05 21:47:34 +000032898IFS=$as_save_IFS
32899
32900 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32901 ;;
32902esac
32903fi
32904FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32905if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032907$as_echo "$FIGDecodeDelegate" >&6; }
32908else
cristy8b350f62009-11-15 23:12:43 +000032909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032910$as_echo "no" >&6; }
32911fi
32912
32913
32914# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32915set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032917$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032918if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032919 $as_echo_n "(cached) " >&6
32920else
32921 case $ConvertDelegate in
32922 [\\/]* | ?:[\\/]*)
32923 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32924 ;;
32925 *)
32926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32927for as_dir in $PATH
32928do
32929 IFS=$as_save_IFS
32930 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032931 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032933 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032935 break 2
32936 fi
32937done
cristy8b350f62009-11-15 23:12:43 +000032938 done
cristy3ed852e2009-09-05 21:47:34 +000032939IFS=$as_save_IFS
32940
32941 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32942 ;;
32943esac
32944fi
32945ConvertDelegate=$ac_cv_path_ConvertDelegate
32946if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032948$as_echo "$ConvertDelegate" >&6; }
32949else
cristy8b350f62009-11-15 23:12:43 +000032950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032951$as_echo "no" >&6; }
32952fi
32953
32954
32955# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32956set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032958$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032959if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032960 $as_echo_n "(cached) " >&6
32961else
32962 case $DisplayDelegate in
32963 [\\/]* | ?:[\\/]*)
32964 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32965 ;;
32966 *)
32967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32968for as_dir in $PATH
32969do
32970 IFS=$as_save_IFS
32971 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032972 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032974 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032976 break 2
32977 fi
32978done
cristy8b350f62009-11-15 23:12:43 +000032979 done
cristy3ed852e2009-09-05 21:47:34 +000032980IFS=$as_save_IFS
32981
32982 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32983 ;;
32984esac
32985fi
32986DisplayDelegate=$ac_cv_path_DisplayDelegate
32987if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032989$as_echo "$DisplayDelegate" >&6; }
32990else
cristy8b350f62009-11-15 23:12:43 +000032991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032992$as_echo "no" >&6; }
32993fi
32994
32995
32996# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32997set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032999$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033000if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033001 $as_echo_n "(cached) " >&6
33002else
33003 case $MogrifyDelegate in
33004 [\\/]* | ?:[\\/]*)
33005 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33006 ;;
33007 *)
33008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33009for as_dir in $PATH
33010do
33011 IFS=$as_save_IFS
33012 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033013 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033015 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033017 break 2
33018 fi
33019done
cristy8b350f62009-11-15 23:12:43 +000033020 done
cristy3ed852e2009-09-05 21:47:34 +000033021IFS=$as_save_IFS
33022
33023 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33024 ;;
33025esac
33026fi
33027MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33028if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033030$as_echo "$MogrifyDelegate" >&6; }
33031else
cristy8b350f62009-11-15 23:12:43 +000033032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033033$as_echo "no" >&6; }
33034fi
33035
33036
33037# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33038set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033040$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033041if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033042 $as_echo_n "(cached) " >&6
33043else
33044 case $GnuplotDecodeDelegate in
33045 [\\/]* | ?:[\\/]*)
33046 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33047 ;;
33048 *)
33049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33050for as_dir in $PATH
33051do
33052 IFS=$as_save_IFS
33053 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033056 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033058 break 2
33059 fi
33060done
cristy8b350f62009-11-15 23:12:43 +000033061 done
cristy3ed852e2009-09-05 21:47:34 +000033062IFS=$as_save_IFS
33063
33064 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33065 ;;
33066esac
33067fi
33068GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33069if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033071$as_echo "$GnuplotDecodeDelegate" >&6; }
33072else
cristy8b350f62009-11-15 23:12:43 +000033073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033074$as_echo "no" >&6; }
33075fi
33076
33077
cristy3ed852e2009-09-05 21:47:34 +000033078# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33079set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033081$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033082if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033083 $as_echo_n "(cached) " >&6
33084else
33085 case $HPGLDecodeDelegate in
33086 [\\/]* | ?:[\\/]*)
33087 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33088 ;;
33089 *)
33090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33091for as_dir in $PATH
33092do
33093 IFS=$as_save_IFS
33094 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033095 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033097 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033099 break 2
33100 fi
33101done
cristy8b350f62009-11-15 23:12:43 +000033102 done
cristy3ed852e2009-09-05 21:47:34 +000033103IFS=$as_save_IFS
33104
33105 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33106 ;;
33107esac
33108fi
33109HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33110if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033112$as_echo "$HPGLDecodeDelegate" >&6; }
33113else
cristy8b350f62009-11-15 23:12:43 +000033114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033115$as_echo "no" >&6; }
33116fi
33117
33118
33119# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33120set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033122$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033123if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033124 $as_echo_n "(cached) " >&6
33125else
33126 case $HTMLDecodeDelegate in
33127 [\\/]* | ?:[\\/]*)
33128 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33129 ;;
33130 *)
33131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33132for as_dir in $PATH
33133do
33134 IFS=$as_save_IFS
33135 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033136 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033138 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033140 break 2
33141 fi
33142done
cristy8b350f62009-11-15 23:12:43 +000033143 done
cristy3ed852e2009-09-05 21:47:34 +000033144IFS=$as_save_IFS
33145
33146 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33147 ;;
33148esac
33149fi
33150HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33151if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033153$as_echo "$HTMLDecodeDelegate" >&6; }
33154else
cristy8b350f62009-11-15 23:12:43 +000033155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033156$as_echo "no" >&6; }
33157fi
33158
33159
33160# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33161set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033163$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033164if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033165 $as_echo_n "(cached) " >&6
33166else
33167 case $ILBMDecodeDelegate in
33168 [\\/]* | ?:[\\/]*)
33169 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33170 ;;
33171 *)
33172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33173for as_dir in $PATH
33174do
33175 IFS=$as_save_IFS
33176 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033177 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033179 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033181 break 2
33182 fi
33183done
cristy8b350f62009-11-15 23:12:43 +000033184 done
cristy3ed852e2009-09-05 21:47:34 +000033185IFS=$as_save_IFS
33186
33187 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33188 ;;
33189esac
33190fi
33191ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33192if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033194$as_echo "$ILBMDecodeDelegate" >&6; }
33195else
cristy8b350f62009-11-15 23:12:43 +000033196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033197$as_echo "no" >&6; }
33198fi
33199
33200
33201# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33202set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033204$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033205if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033206 $as_echo_n "(cached) " >&6
33207else
33208 case $ILBMEncodeDelegate in
33209 [\\/]* | ?:[\\/]*)
33210 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33211 ;;
33212 *)
33213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33214for as_dir in $PATH
33215do
33216 IFS=$as_save_IFS
33217 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033218 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033220 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033222 break 2
33223 fi
33224done
cristy8b350f62009-11-15 23:12:43 +000033225 done
cristy3ed852e2009-09-05 21:47:34 +000033226IFS=$as_save_IFS
33227
33228 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33229 ;;
33230esac
33231fi
33232ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33233if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033235$as_echo "$ILBMEncodeDelegate" >&6; }
33236else
cristy8b350f62009-11-15 23:12:43 +000033237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033238$as_echo "no" >&6; }
33239fi
33240
33241
33242# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33243set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033245$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033246if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033247 $as_echo_n "(cached) " >&6
33248else
33249 case $LPDelegate in
33250 [\\/]* | ?:[\\/]*)
33251 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33252 ;;
33253 *)
33254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33255for as_dir in $PATH
33256do
33257 IFS=$as_save_IFS
33258 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033259 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033261 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033263 break 2
33264 fi
33265done
cristy8b350f62009-11-15 23:12:43 +000033266 done
cristy3ed852e2009-09-05 21:47:34 +000033267IFS=$as_save_IFS
33268
33269 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33270 ;;
33271esac
33272fi
33273LPDelegate=$ac_cv_path_LPDelegate
33274if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033276$as_echo "$LPDelegate" >&6; }
33277else
cristy8b350f62009-11-15 23:12:43 +000033278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033279$as_echo "no" >&6; }
33280fi
33281
33282
33283# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33284set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033286$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033287if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033288 $as_echo_n "(cached) " >&6
33289else
33290 case $LPRDelegate in
33291 [\\/]* | ?:[\\/]*)
33292 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33293 ;;
33294 *)
33295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33296for as_dir in $PATH
33297do
33298 IFS=$as_save_IFS
33299 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033300 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033302 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033304 break 2
33305 fi
33306done
cristy8b350f62009-11-15 23:12:43 +000033307 done
cristy3ed852e2009-09-05 21:47:34 +000033308IFS=$as_save_IFS
33309
33310 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33311 ;;
33312esac
33313fi
33314LPRDelegate=$ac_cv_path_LPRDelegate
33315if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033317$as_echo "$LPRDelegate" >&6; }
33318else
cristy8b350f62009-11-15 23:12:43 +000033319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033320$as_echo "no" >&6; }
33321fi
33322
33323
cristy3ed852e2009-09-05 21:47:34 +000033324# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33325set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033327$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033328if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033329 $as_echo_n "(cached) " >&6
33330else
33331 case $LaunchDelegate in
33332 [\\/]* | ?:[\\/]*)
33333 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33334 ;;
33335 *)
33336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33337for as_dir in $PATH
33338do
33339 IFS=$as_save_IFS
33340 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033341 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033343 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033345 break 2
33346 fi
33347done
cristy8b350f62009-11-15 23:12:43 +000033348 done
cristy3ed852e2009-09-05 21:47:34 +000033349IFS=$as_save_IFS
33350
33351 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33352 ;;
33353esac
33354fi
33355LaunchDelegate=$ac_cv_path_LaunchDelegate
33356if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033358$as_echo "$LaunchDelegate" >&6; }
33359else
cristy8b350f62009-11-15 23:12:43 +000033360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033361$as_echo "no" >&6; }
33362fi
33363
33364
33365# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33366set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033368$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033369if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033370 $as_echo_n "(cached) " >&6
33371else
33372 case $MANDelegate in
33373 [\\/]* | ?:[\\/]*)
33374 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33375 ;;
33376 *)
33377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33378for as_dir in $PATH
33379do
33380 IFS=$as_save_IFS
33381 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033382 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033384 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033386 break 2
33387 fi
33388done
cristy8b350f62009-11-15 23:12:43 +000033389 done
cristy3ed852e2009-09-05 21:47:34 +000033390IFS=$as_save_IFS
33391
33392 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33393 ;;
33394esac
33395fi
33396MANDelegate=$ac_cv_path_MANDelegate
33397if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033399$as_echo "$MANDelegate" >&6; }
33400else
cristy8b350f62009-11-15 23:12:43 +000033401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033402$as_echo "no" >&6; }
33403fi
33404
33405
33406# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33407set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033409$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033410if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033411 $as_echo_n "(cached) " >&6
33412else
33413 case $MPEGDecodeDelegate in
33414 [\\/]* | ?:[\\/]*)
33415 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33416 ;;
33417 *)
33418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33419for as_dir in $PATH
33420do
33421 IFS=$as_save_IFS
33422 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033423 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033425 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033427 break 2
33428 fi
33429done
cristy8b350f62009-11-15 23:12:43 +000033430 done
cristy3ed852e2009-09-05 21:47:34 +000033431IFS=$as_save_IFS
33432
33433 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33434 ;;
33435esac
33436fi
33437MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33438if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033440$as_echo "$MPEGDecodeDelegate" >&6; }
33441else
cristy8b350f62009-11-15 23:12:43 +000033442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033443$as_echo "no" >&6; }
33444fi
33445
33446
33447# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33448set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033450$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033451if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033452 $as_echo_n "(cached) " >&6
33453else
33454 case $MPEGEncodeDelegate in
33455 [\\/]* | ?:[\\/]*)
33456 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33457 ;;
33458 *)
33459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33460for as_dir in $PATH
33461do
33462 IFS=$as_save_IFS
33463 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033464 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033466 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033468 break 2
33469 fi
33470done
cristy8b350f62009-11-15 23:12:43 +000033471 done
cristy3ed852e2009-09-05 21:47:34 +000033472IFS=$as_save_IFS
33473
33474 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33475 ;;
33476esac
33477fi
33478MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33479if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033481$as_echo "$MPEGEncodeDelegate" >&6; }
33482else
cristy8b350f62009-11-15 23:12:43 +000033483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033484$as_echo "no" >&6; }
33485fi
33486
33487
cristy935c86e2010-06-05 23:50:07 +000033488# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33489set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33491$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033492if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033493 $as_echo_n "(cached) " >&6
33494else
33495 case $MrSIDDecodeDelegate in
33496 [\\/]* | ?:[\\/]*)
33497 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33498 ;;
33499 *)
33500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33501for as_dir in $PATH
33502do
33503 IFS=$as_save_IFS
33504 test -z "$as_dir" && as_dir=.
33505 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033507 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33509 break 2
33510 fi
33511done
33512 done
33513IFS=$as_save_IFS
33514
33515 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33516 ;;
33517esac
33518fi
33519MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33520if test -n "$MrSIDDecodeDelegate"; then
33521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33522$as_echo "$MrSIDDecodeDelegate" >&6; }
33523else
33524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33525$as_echo "no" >&6; }
33526fi
33527
33528
cristy3ed852e2009-09-05 21:47:34 +000033529# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33530set dummy "$MVDelegateDefault"; 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_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033534 $as_echo_n "(cached) " >&6
33535else
33536 case $MVDelegate in
33537 [\\/]* | ?:[\\/]*)
33538 ac_cv_path_MVDelegate="$MVDelegate" # 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_MVDelegate="$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_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33557 ;;
33558esac
33559fi
33560MVDelegate=$ac_cv_path_MVDelegate
33561if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033563$as_echo "$MVDelegate" >&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 ""$PCLDelegateDefault"", so it can be a program name with args.
33571set dummy "$PCLDelegateDefault"; 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_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033575 $as_echo_n "(cached) " >&6
33576else
33577 case $PCLDelegate in
33578 [\\/]* | ?:[\\/]*)
33579 ac_cv_path_PCLDelegate="$PCLDelegate" # 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_PCLDelegate="$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_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33598 ;;
33599esac
33600fi
33601PCLDelegate=$ac_cv_path_PCLDelegate
33602if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033604$as_echo "$PCLDelegate" >&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
33611# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33612set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033614$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033615if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033616 $as_echo_n "(cached) " >&6
33617else
33618 case $PGPDecodeDelegate in
33619 [\\/]* | ?:[\\/]*)
33620 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # 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=.
cristy8b350f62009-11-15 23:12:43 +000033628 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
cristy3ed852e2009-09-05 21:47:34 +000033630 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033632 break 2
33633 fi
33634done
cristy8b350f62009-11-15 23:12:43 +000033635 done
cristy3ed852e2009-09-05 21:47:34 +000033636IFS=$as_save_IFS
33637
33638 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33639 ;;
33640esac
33641fi
33642PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33643if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033645$as_echo "$PGPDecodeDelegate" >&6; }
33646else
cristy8b350f62009-11-15 23:12:43 +000033647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033648$as_echo "no" >&6; }
33649fi
33650
33651
33652# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33653set dummy "$POVDelegateDefault"; 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_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033657 $as_echo_n "(cached) " >&6
33658else
33659 case $POVDelegate in
33660 [\\/]* | ?:[\\/]*)
33661 ac_cv_path_POVDelegate="$POVDelegate" # 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_POVDelegate="$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_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33680 ;;
33681esac
33682fi
33683POVDelegate=$ac_cv_path_POVDelegate
33684if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033686$as_echo "$POVDelegate" >&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
33693for ac_prog in gsx gsc "$PSDelegateDefault"
33694do
33695 # Extract the first word of "$ac_prog", so it can be a program name with args.
33696set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033698$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033699if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033700 $as_echo_n "(cached) " >&6
33701else
33702 case $PSDelegate in
33703 [\\/]* | ?:[\\/]*)
33704 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33705 ;;
33706 *)
33707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33708for as_dir in $PATH
33709do
33710 IFS=$as_save_IFS
33711 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033712 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033714 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033716 break 2
33717 fi
33718done
cristy8b350f62009-11-15 23:12:43 +000033719 done
cristy3ed852e2009-09-05 21:47:34 +000033720IFS=$as_save_IFS
33721
33722 ;;
33723esac
33724fi
33725PSDelegate=$ac_cv_path_PSDelegate
33726if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033728$as_echo "$PSDelegate" >&6; }
33729else
cristy8b350f62009-11-15 23:12:43 +000033730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033731$as_echo "no" >&6; }
33732fi
33733
33734
33735 test -n "$PSDelegate" && break
33736done
33737test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33738
33739# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33740set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033742$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033743if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033744 $as_echo_n "(cached) " >&6
33745else
33746 case $RLEEncodeDelegate in
33747 [\\/]* | ?:[\\/]*)
33748 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33749 ;;
33750 *)
33751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33752for as_dir in $PATH
33753do
33754 IFS=$as_save_IFS
33755 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033756 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033758 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033760 break 2
33761 fi
33762done
cristy8b350f62009-11-15 23:12:43 +000033763 done
cristy3ed852e2009-09-05 21:47:34 +000033764IFS=$as_save_IFS
33765
33766 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33767 ;;
33768esac
33769fi
33770RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33771if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033773$as_echo "$RLEEncodeDelegate" >&6; }
33774else
cristy8b350f62009-11-15 23:12:43 +000033775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033776$as_echo "no" >&6; }
33777fi
33778
33779
33780# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33781set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033783$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033784if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033785 $as_echo_n "(cached) " >&6
33786else
33787 case $RMDelegate in
33788 [\\/]* | ?:[\\/]*)
33789 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33790 ;;
33791 *)
33792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33793for as_dir in $PATH
33794do
33795 IFS=$as_save_IFS
33796 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033797 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033799 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033801 break 2
33802 fi
33803done
cristy8b350f62009-11-15 23:12:43 +000033804 done
cristy3ed852e2009-09-05 21:47:34 +000033805IFS=$as_save_IFS
33806
33807 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33808 ;;
33809esac
33810fi
33811RMDelegate=$ac_cv_path_RMDelegate
33812if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033814$as_echo "$RMDelegate" >&6; }
33815else
cristy8b350f62009-11-15 23:12:43 +000033816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033817$as_echo "no" >&6; }
33818fi
33819
33820
cristy4689cf02010-02-17 21:15:45 +000033821# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33822set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33824$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033825if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033826 $as_echo_n "(cached) " >&6
33827else
33828 case $RSVGDecodeDelegate in
33829 [\\/]* | ?:[\\/]*)
33830 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33831 ;;
33832 *)
33833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33834for as_dir in $PATH
33835do
33836 IFS=$as_save_IFS
33837 test -z "$as_dir" && as_dir=.
33838 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000033840 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33842 break 2
33843 fi
33844done
33845 done
33846IFS=$as_save_IFS
33847
33848 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33849 ;;
33850esac
33851fi
33852RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33853if test -n "$RSVGDecodeDelegate"; then
33854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33855$as_echo "$RSVGDecodeDelegate" >&6; }
33856else
33857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33858$as_echo "no" >&6; }
33859fi
33860
33861
cristy3ed852e2009-09-05 21:47:34 +000033862# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33863set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033866if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033867 $as_echo_n "(cached) " >&6
33868else
33869 case $SCANDecodeDelegate in
33870 [\\/]* | ?:[\\/]*)
33871 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33872 ;;
33873 *)
33874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33875for as_dir in $PATH
33876do
33877 IFS=$as_save_IFS
33878 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033879 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033881 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033883 break 2
33884 fi
33885done
cristy8b350f62009-11-15 23:12:43 +000033886 done
cristy3ed852e2009-09-05 21:47:34 +000033887IFS=$as_save_IFS
33888
33889 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33890 ;;
33891esac
33892fi
33893SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33894if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033896$as_echo "$SCANDecodeDelegate" >&6; }
33897else
cristy8b350f62009-11-15 23:12:43 +000033898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033899$as_echo "no" >&6; }
33900fi
33901
33902
cristyec6934f2012-08-14 18:38:40 +000033903# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
33904set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
33905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33906$as_echo_n "checking for $ac_word... " >&6; }
33907if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
33908 $as_echo_n "(cached) " >&6
33909else
33910 case $SVGDecodeDelegate in
33911 [\\/]* | ?:[\\/]*)
33912 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
33913 ;;
33914 *)
33915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33916for as_dir in $PATH
33917do
33918 IFS=$as_save_IFS
33919 test -z "$as_dir" && as_dir=.
33920 for ac_exec_ext in '' $ac_executable_extensions; do
33921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33922 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33924 break 2
33925 fi
33926done
33927 done
33928IFS=$as_save_IFS
33929
33930 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
33931 ;;
33932esac
33933fi
33934SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
33935if test -n "$SVGDecodeDelegate"; then
33936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
33937$as_echo "$SVGDecodeDelegate" >&6; }
33938else
33939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33940$as_echo "no" >&6; }
33941fi
33942
33943
cristy3ed852e2009-09-05 21:47:34 +000033944# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33945set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033947$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033948if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033949 $as_echo_n "(cached) " >&6
33950else
33951 case $TXTDelegate in
33952 [\\/]* | ?:[\\/]*)
33953 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33954 ;;
33955 *)
33956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33957for as_dir in $PATH
33958do
33959 IFS=$as_save_IFS
33960 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033961 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033963 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033965 break 2
33966 fi
33967done
cristy8b350f62009-11-15 23:12:43 +000033968 done
cristy3ed852e2009-09-05 21:47:34 +000033969IFS=$as_save_IFS
33970
33971 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33972 ;;
33973esac
33974fi
33975TXTDelegate=$ac_cv_path_TXTDelegate
33976if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033978$as_echo "$TXTDelegate" >&6; }
33979else
cristy8b350f62009-11-15 23:12:43 +000033980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033981$as_echo "no" >&6; }
33982fi
33983
33984
cristy5ac9ac82010-07-29 13:24:24 +000033985# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33986set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33988$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033989if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033990 $as_echo_n "(cached) " >&6
33991else
33992 case $UniconvertorDelegate in
33993 [\\/]* | ?:[\\/]*)
33994 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33995 ;;
33996 *)
33997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33998for as_dir in $PATH
33999do
34000 IFS=$as_save_IFS
34001 test -z "$as_dir" && as_dir=.
34002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034004 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34006 break 2
34007 fi
34008done
34009 done
34010IFS=$as_save_IFS
34011
34012 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34013 ;;
34014esac
34015fi
34016UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34017if test -n "$UniconvertorDelegate"; then
34018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34019$as_echo "$UniconvertorDelegate" >&6; }
34020else
34021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34022$as_echo "no" >&6; }
34023fi
34024
34025
cristy3ed852e2009-09-05 21:47:34 +000034026# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34027set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034029$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034030if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034031 $as_echo_n "(cached) " >&6
34032else
34033 case $WMFDecodeDelegate in
34034 [\\/]* | ?:[\\/]*)
34035 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34036 ;;
34037 *)
34038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34039for as_dir in $PATH
34040do
34041 IFS=$as_save_IFS
34042 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034043 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034045 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034047 break 2
34048 fi
34049done
cristy8b350f62009-11-15 23:12:43 +000034050 done
cristy3ed852e2009-09-05 21:47:34 +000034051IFS=$as_save_IFS
34052
34053 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34054 ;;
34055esac
34056fi
34057WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34058if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034060$as_echo "$WMFDecodeDelegate" >&6; }
34061else
cristy8b350f62009-11-15 23:12:43 +000034062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034063$as_echo "no" >&6; }
34064fi
34065
34066
34067# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34068set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034070$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034071if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034072 $as_echo_n "(cached) " >&6
34073else
34074 case $WWWDecodeDelegate in
34075 [\\/]* | ?:[\\/]*)
34076 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34077 ;;
34078 *)
34079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34080for as_dir in $PATH
34081do
34082 IFS=$as_save_IFS
34083 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034084 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034086 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034088 break 2
34089 fi
34090done
cristy8b350f62009-11-15 23:12:43 +000034091 done
cristy3ed852e2009-09-05 21:47:34 +000034092IFS=$as_save_IFS
34093
34094 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34095 ;;
34096esac
34097fi
34098WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34099if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034101$as_echo "$WWWDecodeDelegate" >&6; }
34102else
cristy8b350f62009-11-15 23:12:43 +000034103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034104$as_echo "no" >&6; }
34105fi
34106
34107
34108# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34109set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034111$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034112if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034113 $as_echo_n "(cached) " >&6
34114else
34115 case $XPSDelegate in
34116 [\\/]* | ?:[\\/]*)
34117 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34118 ;;
34119 *)
34120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34121for as_dir in $PATH
34122do
34123 IFS=$as_save_IFS
34124 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034125 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034127 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034129 break 2
34130 fi
34131done
cristy8b350f62009-11-15 23:12:43 +000034132 done
cristy3ed852e2009-09-05 21:47:34 +000034133IFS=$as_save_IFS
34134
34135 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34136 ;;
34137esac
34138fi
34139XPSDelegate=$ac_cv_path_XPSDelegate
34140if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034142$as_echo "$XPSDelegate" >&6; }
34143else
cristy8b350f62009-11-15 23:12:43 +000034144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034145$as_echo "no" >&6; }
34146fi
34147
34148
34149# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34150set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034152$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034153if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034154 $as_echo_n "(cached) " >&6
34155else
34156 case $ZipDelegate in
34157 [\\/]* | ?:[\\/]*)
34158 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34159 ;;
34160 *)
34161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34162for as_dir in $PATH
34163do
34164 IFS=$as_save_IFS
34165 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034166 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034168 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034170 break 2
34171 fi
34172done
cristy8b350f62009-11-15 23:12:43 +000034173 done
cristy3ed852e2009-09-05 21:47:34 +000034174IFS=$as_save_IFS
34175
34176 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34177 ;;
34178esac
34179fi
34180ZipDelegate=$ac_cv_path_ZipDelegate
34181if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034183$as_echo "$ZipDelegate" >&6; }
34184else
cristy8b350f62009-11-15 23:12:43 +000034185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034186$as_echo "no" >&6; }
34187fi
34188
34189
34190
34191# Prefer lpr to lp; lp needs options tacked on.
34192if test "$LPRDelegate" != no; then
34193 PrintDelegate="$LPRDelegate"
34194else
34195 PrintDelegate="$LPDelegate -c -s"
34196fi
34197
34198
34199# Installed ImageMagick utiltity paths
34200ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34201DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34202MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34203
34204# Set delegate booleans
34205have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34206have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34207have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34208have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34209have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034210have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034211have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34212have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034213have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34214have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34215
34216#
34217# Test for font directories
34218#
34219type_include_files=''
34220
cristy430a7312010-01-21 20:44:04 +000034221# Dejavu fonts.
34222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34223$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34224dejavu_font_dir=''
34225if test "${with_dejavu_font_dir}" != 'default'; then
34226 dejavu_font_dir="${with_dejavu_font_dir}/"
34227else
34228 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34229 if test -f "${font_dir}DejaVuSerif.ttf"; then
34230 dejavu_font_dir="${font_dir}"
34231 break 1
34232 fi
34233 done
34234fi
34235if test "${dejavu_font_dir}x" != 'x'; then
34236 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34238$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034239else
cristyad38abe2012-12-23 23:03:21 +000034240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34241$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034242fi
34243
34244
cristy3ed852e2009-09-05 21:47:34 +000034245# Windows
34246windows_font_dir=''
34247if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34248 windows_font_dir="${with_windows_font_dir}/"
34249fi
cristy430a7312010-01-21 20:44:04 +000034250if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034251 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34252 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34253 fi
34254 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34255 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34256 fi
34257 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34258 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34259 fi
34260fi
cristy430a7312010-01-21 20:44:04 +000034261if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034262 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34263fi
34264
34265
34266# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034268$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34269ghostscript_font_dir=''
34270if test "${with_gs_font_dir}" != 'default'; then
34271 ghostscript_font_dir="${with_gs_font_dir}/"
34272else
34273 if test "${native_win32_build}" = 'yes'; then
34274 # Native Windows Build
34275 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34276 if test -f "${font_dir}a010013l.pfb"; then
34277 ghostscript_font_dir="$font_dir"
34278 break 1
34279 fi
34280 done
34281 if test "${PSDelegate}" != 'gswin32c'; then
34282 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34283 fi
34284 else
34285 # Linux / Mac OS X / Unix Build
34286 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
34287 if test -f "${font_dir}a010013l.pfb"; then
34288 ghostscript_font_dir="${font_dir}"
34289 break 1
34290 fi
34291 done
34292 if test "${ghostscript_font_dir}x" = 'x'; then
34293 if test "$PSDelegate" != 'gs'; then
34294 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34295 fi
34296 fi
34297 fi
34298fi
34299if test "${ghostscript_font_dir}x" != 'x'; then
34300 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34302$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034303else
cristyad38abe2012-12-23 23:03:21 +000034304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34305$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034306fi
34307
34308case "${build_os}" in
34309 mingw* )
34310 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34311 ;;
34312esac
34313
34314
34315
34316#
34317# Handle case where user doesn't want frozen paths
34318#
34319if test "$with_frozenpaths" != 'yes'; then
34320 # Re-set delegate definitions to default (no paths)
34321 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034322 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34323 BZIPDelegate="$BZIPDelegateDefault"
34324 BrowseDelegate="$BrowseDelegateDefault"
34325 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34326 CatDelegate="$CatDelegateDefault"
34327 ConvertDelegate="$ConvertDelegateDefault"
34328 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34329 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34330 EchoDelegate="$EchoDelegateDefault"
34331 EditorDelegate="$EditorDelegateDefault"
34332 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34333 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34334 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34335 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34336 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34337 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34338 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034339 LaunchDelegate="$LaunchDelegateDefault"
34340 MANDelegate="$MANDelegateDefault"
34341 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34342 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034343 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034344 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34345 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034346 PCLDelegate="$PCLDelegateDefault"
34347 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34348 POVDelegate="$POVDelegateDefault"
34349 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034350 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34351 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034352 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034353 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034354 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034355 ShowImageDelegate="$ShowImageDelegateDefault"
34356 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034357 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034358 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34359 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34360 XPSDelegate="$XPSDelegateDefault"
34361 ZipDelegate="$ZipDelegateDefault"
34362fi
34363
34364# Delegate substitutions
34365
34366
34367
34368
34369
34370
34371
34372
34373
34374
34375
34376
34377
34378
34379
34380
34381
34382
34383
34384
34385
34386
34387
34388
34389
34390
34391
34392
34393
34394
34395
34396
34397
34398
34399
34400
34401
34402
34403
34404
cristy3ed852e2009-09-05 21:47:34 +000034405#
34406# RPM support.
34407#
34408RPM=''
34409for ac_prog in gnutar gtar tar
34410do
34411 # Extract the first word of "$ac_prog", so it can be a program name with args.
34412set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034414$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034415if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034416 $as_echo_n "(cached) " >&6
34417else
34418 if test -n "$TAR"; then
34419 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34420else
34421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34422for as_dir in $PATH
34423do
34424 IFS=$as_save_IFS
34425 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034426 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034428 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034430 break 2
34431 fi
34432done
cristy8b350f62009-11-15 23:12:43 +000034433 done
cristy3ed852e2009-09-05 21:47:34 +000034434IFS=$as_save_IFS
34435
34436fi
34437fi
34438TAR=$ac_cv_prog_TAR
34439if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034441$as_echo "$TAR" >&6; }
34442else
cristy8b350f62009-11-15 23:12:43 +000034443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034444$as_echo "no" >&6; }
34445fi
34446
34447
34448 test -n "$TAR" && break
34449done
34450
34451for ac_prog in perl
34452do
34453 # Extract the first word of "$ac_prog", so it can be a program name with args.
34454set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034456$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034457if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034458 $as_echo_n "(cached) " >&6
34459else
34460 if test -n "$PERL"; then
34461 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34462else
34463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34464for as_dir in $PATH
34465do
34466 IFS=$as_save_IFS
34467 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034470 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034472 break 2
34473 fi
34474done
cristy8b350f62009-11-15 23:12:43 +000034475 done
cristy3ed852e2009-09-05 21:47:34 +000034476IFS=$as_save_IFS
34477
34478fi
34479fi
34480PERL=$ac_cv_prog_PERL
34481if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034483$as_echo "$PERL" >&6; }
34484else
cristy8b350f62009-11-15 23:12:43 +000034485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034486$as_echo "no" >&6; }
34487fi
34488
34489
34490 test -n "$PERL" && break
34491done
34492
34493for ac_prog in rpmbuild rpm
34494do
34495 # Extract the first word of "$ac_prog", so it can be a program name with args.
34496set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034498$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034499if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034500 $as_echo_n "(cached) " >&6
34501else
34502 if test -n "$RPM"; then
34503 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34504else
34505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34506for as_dir in $PATH
34507do
34508 IFS=$as_save_IFS
34509 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034510 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034512 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034514 break 2
34515 fi
34516done
cristy8b350f62009-11-15 23:12:43 +000034517 done
cristy3ed852e2009-09-05 21:47:34 +000034518IFS=$as_save_IFS
34519
34520fi
34521fi
34522RPM=$ac_cv_prog_RPM
34523if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034525$as_echo "$RPM" >&6; }
34526else
cristy8b350f62009-11-15 23:12:43 +000034527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034528$as_echo "no" >&6; }
34529fi
34530
34531
34532 test -n "$RPM" && break
34533done
34534
34535
cristy73bd4a52010-10-05 11:24:23 +000034536ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34537
34538
34539AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34540
34541
34542AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34543
34544
34545AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34546
34547
34548 if test "x$RPM" != "x" ; then
34549 RPM_DELEGATE_TRUE=
34550 RPM_DELEGATE_FALSE='#'
34551else
34552 RPM_DELEGATE_TRUE='#'
34553 RPM_DELEGATE_FALSE=
34554fi
34555
cristy3ed852e2009-09-05 21:47:34 +000034556
34557#
34558# 7ZIP support (http://p7zip.sourceforge.net/)
34559#
34560P7ZIP=''
34561for ac_prog in 7za
34562do
34563 # Extract the first word of "$ac_prog", so it can be a program name with args.
34564set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034566$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034567if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034568 $as_echo_n "(cached) " >&6
34569else
34570 if test -n "$P7ZIP"; then
34571 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34572else
34573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34574for as_dir in $PATH
34575do
34576 IFS=$as_save_IFS
34577 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034578 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034580 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034582 break 2
34583 fi
34584done
cristy8b350f62009-11-15 23:12:43 +000034585 done
cristy3ed852e2009-09-05 21:47:34 +000034586IFS=$as_save_IFS
34587
34588fi
34589fi
34590P7ZIP=$ac_cv_prog_P7ZIP
34591if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034593$as_echo "$P7ZIP" >&6; }
34594else
cristy8b350f62009-11-15 23:12:43 +000034595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034596$as_echo "no" >&6; }
34597fi
34598
34599
34600 test -n "$P7ZIP" && break
34601done
34602
34603
cristy73bd4a52010-10-05 11:24:23 +000034604 if test "x$P7ZIP" != "x" ; then
34605 P7ZIP_DELEGATE_TRUE=
34606 P7ZIP_DELEGATE_FALSE='#'
34607else
34608 P7ZIP_DELEGATE_TRUE='#'
34609 P7ZIP_DELEGATE_FALSE=
34610fi
34611
cristy3ed852e2009-09-05 21:47:34 +000034612
34613#
34614# ZIP support (http://www.info-zip.org/Zip.html)
34615#
34616ZIP=''
34617for ac_prog in zip
34618do
34619 # Extract the first word of "$ac_prog", so it can be a program name with args.
34620set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034622$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034623if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034624 $as_echo_n "(cached) " >&6
34625else
34626 if test -n "$ZIP"; then
34627 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34628else
34629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34630for as_dir in $PATH
34631do
34632 IFS=$as_save_IFS
34633 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034634 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034636 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034638 break 2
34639 fi
34640done
cristy8b350f62009-11-15 23:12:43 +000034641 done
cristy3ed852e2009-09-05 21:47:34 +000034642IFS=$as_save_IFS
34643
34644fi
34645fi
34646ZIP=$ac_cv_prog_ZIP
34647if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034649$as_echo "$ZIP" >&6; }
34650else
cristy8b350f62009-11-15 23:12:43 +000034651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034652$as_echo "no" >&6; }
34653fi
34654
34655
34656 test -n "$ZIP" && break
34657done
34658
34659
cristy73bd4a52010-10-05 11:24:23 +000034660 if test "x$ZIP" != "x" ; then
34661 ZIP_DELEGATE_TRUE=
34662 ZIP_DELEGATE_FALSE='#'
34663else
34664 ZIP_DELEGATE_TRUE='#'
34665 ZIP_DELEGATE_FALSE=
34666fi
34667
cristy3ed852e2009-09-05 21:47:34 +000034668
34669#
34670# GhostPCL related configuration.
34671#
34672PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034673PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034674PCLMonoDevice=pbmraw
34675if test -z "$PCLVersion"; then
34676 PCLVersion='unknown'
34677fi
34678if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34680$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034682$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34684$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034685 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034687$as_echo_n "checking for pcl color device... " >&6; }
34688 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34689 :
34690 else
34691 PCLColorDevice=ppmraw
34692 fi
cristyad38abe2012-12-23 23:03:21 +000034693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
34694$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034695
34696 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034698$as_echo_n "checking for pcl CMYK device... " >&6; }
34699 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34700 :
34701 else
34702 PCLCMYKDevice=$PCLColorDevice
34703 fi
cristyad38abe2012-12-23 23:03:21 +000034704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
34705$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034706
34707 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034709$as_echo_n "checking for pcl mono device... " >&6; }
34710 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34711 :
34712 else
34713 PCLMonoDevice=$PCLColorDevice
34714 fi
cristyad38abe2012-12-23 23:03:21 +000034715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
34716$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034717fi
34718
34719
34720
34721
34722
34723
34724#
34725# GhostXPS related configuration.
34726#
34727XPSColorDevice=ppmraw
34728XPSCMYKDevice=bmpsep8
34729XPSMonoDevice=pbmraw
34730if test -z "$XPSVersion"; then
34731 XPSVersion='unknown'
34732fi
34733if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34735$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034737$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34739$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034740 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034742$as_echo_n "checking for xps color device... " >&6; }
34743 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34744 :
34745 else
34746 XPSColorDevice=ppmraw
34747 fi
cristyad38abe2012-12-23 23:03:21 +000034748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
34749$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034750
34751 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034753$as_echo_n "checking for xps CMYK device... " >&6; }
34754 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34755 :
34756 else
34757 XPSCMYKDevice=$XPSColorDevice
34758 fi
cristyad38abe2012-12-23 23:03:21 +000034759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
34760$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034761
34762 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034764$as_echo_n "checking for xps mono device... " >&6; }
34765 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34766 :
34767 else
34768 XPSMonoDevice=$XPSColorDevice
34769 fi
cristyad38abe2012-12-23 23:03:21 +000034770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
34771$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034772fi
34773
34774
34775
34776
34777
34778
34779#
34780# Ghostscript related configuration.
34781#
cristya97426c2011-02-04 01:41:27 +000034782GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034783GSColorDevice=pnmraw
34784GSCMYKDevice=pam
34785GSMonoDevice=pbmraw
34786GSPDFDevice=pdfwrite
34787GSPSDevice=pswrite
34788GSEPSDevice=epswrite
34789GSVersion='unknown'
34790if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34792$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034794$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34796$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034798$as_echo_n "checking for Ghostscript version... " >&6; }
34799 if GSVersion=`$PSDelegate --version`; then
34800 :
34801 else
34802 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34803 fi
cristyad38abe2012-12-23 23:03:21 +000034804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
34805$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034806
34807 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034809$as_echo_n "checking for gs alpha device... " >&6; }
34810 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34811 :
34812 else
34813 GSAlphaDevice=pnmraw
34814 fi
cristyad38abe2012-12-23 23:03:21 +000034815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
34816$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034817
34818 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034820$as_echo_n "checking for gs color device... " >&6; }
34821 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34822 :
34823 else
34824 GSColorDevice=pnmraw
34825 fi
cristyad38abe2012-12-23 23:03:21 +000034826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
34827$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034828
34829 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034831$as_echo_n "checking for gs CMYK device... " >&6; }
34832 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34833 :
34834 else
34835 GSCMYKDevice=bmpsep8
34836 fi
cristyad38abe2012-12-23 23:03:21 +000034837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
34838$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034839
34840 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034842$as_echo_n "checking for gs mono device... " >&6; }
34843 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34844 :
34845 else
34846 GSMonoDevice=$GSColorDevice
34847 fi
cristyad38abe2012-12-23 23:03:21 +000034848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
34849$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034850
34851 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034853$as_echo_n "checking for gs PDF writing device... " >&6; }
34854 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34855 :
34856 else
34857 GSPDFDevice=nodevice
34858 fi
cristyad38abe2012-12-23 23:03:21 +000034859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
34860$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034861
34862 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034864$as_echo_n "checking for gs PS writing device... " >&6; }
34865 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34866 :
34867 else
34868 GSPSDevice=nodevice
34869 fi
cristyad38abe2012-12-23 23:03:21 +000034870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
34871$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034872
34873 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034875$as_echo_n "checking for gs EPS writing device... " >&6; }
34876 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34877 :
34878 else
34879 GSEPSDevice=nodevice
34880 fi
cristyad38abe2012-12-23 23:03:21 +000034881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
34882$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034883fi
34884
34885
34886
34887
34888
34889
34890
34891
34892
34893
34894#
34895# PerlMagick-related configuration
34896#
34897
34898# Look for PERL if PerlMagick requested
34899# If name/path of desired PERL interpreter is specified, look for that one first
34900have_perl='no'
34901if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000034902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34903$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034905$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34907$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034908 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034910$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034911if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034912 $as_echo_n "(cached) " >&6
34913else
34914 ac_cv_path_PERL="$with_perl"
34915fi
cristy8b350f62009-11-15 23:12:43 +000034916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034917$as_echo "$ac_cv_path_PERL" >&6; };
34918 PERL=$ac_cv_path_PERL
34919 have_perl="$ac_cv_path_PERL"
34920 else
34921 for ac_prog in perl perl5
34922do
34923 # Extract the first word of "$ac_prog", so it can be a program name with args.
34924set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034926$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034927if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034928 $as_echo_n "(cached) " >&6
34929else
34930 case $PERL in
34931 [\\/]* | ?:[\\/]*)
34932 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34933 ;;
34934 *)
34935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34936for as_dir in $PATH
34937do
34938 IFS=$as_save_IFS
34939 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034942 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034944 break 2
34945 fi
34946done
cristy8b350f62009-11-15 23:12:43 +000034947 done
cristy3ed852e2009-09-05 21:47:34 +000034948IFS=$as_save_IFS
34949
34950 ;;
34951esac
34952fi
34953PERL=$ac_cv_path_PERL
34954if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034956$as_echo "$PERL" >&6; }
34957else
cristy8b350f62009-11-15 23:12:43 +000034958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034959$as_echo "no" >&6; }
34960fi
34961
34962
34963 test -n "$PERL" && break
34964done
34965 if test "$ac_cv_path_PERL"; then
34966 have_perl="$ac_cv_path_PERL"
34967 fi
34968 fi
34969fi
34970
cristy949301e2010-01-06 01:38:40 +000034971if test "$with_perl" != 'yes' ; then
34972 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34973fi
34974
34975PERL_SUPPORTS_DESTDIR='no'
34976
cristy3ed852e2009-09-05 21:47:34 +000034977with_perl_static='no'
34978with_perl_dynamic='no'
34979if test "$have_perl" != 'no'; then
34980 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34981 with_perl_static='yes'
34982 fi
34983 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34984 with_perl_dynamic='yes'
34985 fi
34986 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034987
34988
34989
34990
34991 if test -n "$PERL"; then :
34992
34993 ax_perl_version="5.8.1"
34994
34995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34996$as_echo_n "checking for perl version... " >&6; }
34997
34998 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34999
35000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35001$as_echo "$perl_version" >&6; }
35002
35003 PERL_VERSION=$perl_version
35004
35005
35006
35007
35008
35009 # Used to indicate true or false condition
35010 ax_compare_version=false
35011
35012 # Convert the two version strings to be compared into a format that
35013 # allows a simple string comparison. The end result is that a version
35014 # string of the form 1.12.5-r617 will be converted to the form
35015 # 0001001200050617. In other words, each number is zero padded to four
35016 # digits, and non digits are removed.
35017
35018 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35019 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35020 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35021 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35022 -e 's/[^0-9]//g'`
35023
35024
35025 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35026 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35027 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35028 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35029 -e 's/[^0-9]//g'`
35030
35031
35032 ax_compare_version=`echo "x$ax_compare_version_A
35033x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35034
35035
35036
35037 if test "$ax_compare_version" = "true" ; then
35038
35039 :
35040 PERL_SUPPORTS_DESTDIR='yes'
35041
35042 else
35043 :
35044 PERL_SUPPORTS_DESTDIR='no'
35045
35046 fi
35047
35048
35049else
35050
35051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35052$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35053 PERL_SUPPORTS_DESTDIR='no'
35054
cristy3ed852e2009-09-05 21:47:34 +000035055fi
cristy73bd4a52010-10-05 11:24:23 +000035056
35057fi
35058 if test "$have_perl" != 'no'; then
35059 WITH_PERL_TRUE=
35060 WITH_PERL_FALSE='#'
35061else
35062 WITH_PERL_TRUE='#'
35063 WITH_PERL_FALSE=
35064fi
35065
35066 if test $with_perl_static = 'yes'; then
35067 WITH_PERL_STATIC_TRUE=
35068 WITH_PERL_STATIC_FALSE='#'
35069else
35070 WITH_PERL_STATIC_TRUE='#'
35071 WITH_PERL_STATIC_FALSE=
35072fi
35073
35074 if test $with_perl_dynamic = 'yes'; then
35075 WITH_PERL_DYNAMIC_TRUE=
35076 WITH_PERL_DYNAMIC_FALSE='#'
35077else
35078 WITH_PERL_DYNAMIC_TRUE='#'
35079 WITH_PERL_DYNAMIC_FALSE=
35080fi
35081
cristy3ed852e2009-09-05 21:47:34 +000035082
35083
35084# Determine path to pick up MagickCore library from for use with building PerlMagick
35085MAGICKCORE_PATH="${LIB_DIR}"
35086if test $with_perl_static = 'yes'; then
35087 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35088 libtool_objdir=$objdir
35089
35090 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035091 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035092fi
35093
35094
cristy2a3eb392012-12-17 13:39:20 +000035095# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035096MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035097if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035098 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035099fi
cristy2a3eb392012-12-17 13:39:20 +000035100if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035101 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035102fi
35103if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035104 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035105fi
35106if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035107 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035108fi
35109if test "$have_ffmpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035110 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035111fi
35112if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035113 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035114fi
35115if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035116 MAGICK_DELEGATES="$MAGICK_DELEGATES xfig"
cristy2a3eb392012-12-17 13:39:20 +000035117fi
35118if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035119 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035120fi
35121if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035122 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035123fi
35124if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035125 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035126fi
35127if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035128 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035129fi
35130if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035131 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035132fi
35133if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035134 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035135fi
35136if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035137 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035138fi
35139if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035140 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035141fi
35142if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035143 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035144fi
35145if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035146 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035147fi
35148if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035149 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035150fi
35151if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035152 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035153fi
35154if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035155 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035156fi
35157if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035158 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035159fi
35160have_ps='no'
35161if test "$have_dps" = 'yes' || \
35162 test "$have_gs" = 'yes' || \
35163 test "${native_win32_build}" = 'yes' ; then
35164 have_ps='yes'
35165fi
35166if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035167 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035168fi
35169if test "$have_ralcgm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035170 MAGICK_DELEGATES="$MAGICK_DELEGATES cgm"
cristy2a3eb392012-12-17 13:39:20 +000035171fi
35172if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035173 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035174fi
35175if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035176 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035177fi
35178if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035179 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035180fi
35181if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035182 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035183fi
35184if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035185 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035186fi
35187if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035188 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035189fi
35190if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035191 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035192fi
35193if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035194 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035195fi
cristy2a3eb392012-12-17 13:39:20 +000035196# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035197MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035198MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035199
35200
cristyfa161182012-12-19 15:45:28 +000035201
cristy3ed852e2009-09-05 21:47:34 +000035202#
35203# Handle special compiler flags
35204#
35205
35206# Add '-p' if prof source profiling support enabled
35207if test "$enable_prof" = 'yes'; then
35208 CFLAGS="-p $CFLAGS"
35209 CXXFLAGS="-p $CXXFLAGS"
35210 LDFLAGS="-p $LDFLAGS"
35211fi
35212
35213# Add '-pg' if gprof source profiling support enabled
35214if test "$enable_gprof" = 'yes'; then
35215 CFLAGS="-pg $CFLAGS"
35216 CXXFLAGS="-pg $CXXFLAGS"
35217 LDFLAGS="-pg $LDFLAGS"
35218fi
35219
35220# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35221# This is a gcc-specific feature
35222if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035224$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035225if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035226 $as_echo_n "(cached) " >&6
35227else
35228 ac_check_lib_save_LIBS=$LIBS
35229LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035231/* end confdefs.h. */
35232
35233/* Override any GCC internal prototype to avoid an error.
35234 Use char because int might match the return type of a GCC
35235 builtin and then its argument prototype would still apply. */
35236#ifdef __cplusplus
35237extern "C"
35238#endif
35239char _gcov_init ();
35240int
35241main ()
35242{
35243return _gcov_init ();
35244 ;
35245 return 0;
35246}
35247_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035248if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035249 ac_cv_lib_gcov__gcov_init=yes
35250else
cristy8b350f62009-11-15 23:12:43 +000035251 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035252fi
cristy8b350f62009-11-15 23:12:43 +000035253rm -f core conftest.err conftest.$ac_objext \
35254 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035255LIBS=$ac_check_lib_save_LIBS
35256fi
cristy8b350f62009-11-15 23:12:43 +000035257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035258$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035259if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035260 cat >>confdefs.h <<_ACEOF
35261#define HAVE_LIBGCOV 1
35262_ACEOF
35263
35264 LIBS="-lgcov $LIBS"
35265
35266fi
35267
cristy8b350f62009-11-15 23:12:43 +000035268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035269$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035270if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035271 $as_echo_n "(cached) " >&6
35272else
35273 ac_check_lib_save_LIBS=$LIBS
35274LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035276/* end confdefs.h. */
35277
35278/* Override any GCC internal prototype to avoid an error.
35279 Use char because int might match the return type of a GCC
35280 builtin and then its argument prototype would still apply. */
35281#ifdef __cplusplus
35282extern "C"
35283#endif
35284char __gcov_init ();
35285int
35286main ()
35287{
35288return __gcov_init ();
35289 ;
35290 return 0;
35291}
35292_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035293if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035294 ac_cv_lib_gcov___gcov_init=yes
35295else
cristy8b350f62009-11-15 23:12:43 +000035296 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035297fi
cristy8b350f62009-11-15 23:12:43 +000035298rm -f core conftest.err conftest.$ac_objext \
35299 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035300LIBS=$ac_check_lib_save_LIBS
35301fi
cristy8b350f62009-11-15 23:12:43 +000035302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035303$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035304if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035305 cat >>confdefs.h <<_ACEOF
35306#define HAVE_LIBGCOV 1
35307_ACEOF
35308
35309 LIBS="-lgcov $LIBS"
35310
35311fi
35312
35313 case "$target_os" in
35314 darwin*)
35315 OSX_GCOV_LDFLAG="-Wl,-single_module"
35316 ;;
35317 *)
35318 OSX_GCOV_LDFLAG=""
35319 ;;
35320 esac
35321
35322 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35323 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35324 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35325fi
35326
35327#
35328# Build library dependency list for libMagickCore
35329#
35330
cristyc6722092012-10-14 00:19:31 +000035331if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035332 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 +000035333else
cristy3a75f062012-09-08 23:29:40 +000035334 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 +000035335fi
35336
35337
35338#
35339# Remove extraneous spaces from output variables (asthetic)
35340#
35341X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35342X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35343X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35344X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35345
35346CC=`echo $CC | sed -e 's/ */ /g'`
35347CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35348CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35349CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035350DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35351LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35352TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35353MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35354#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35355
35356# Pass only user-provided LIBS as "global" libraries
35357LIBS=$USER_LIBS
35358
35359#AC_SUBST(CPPFLAGS)
35360
35361#AC_SUBST(LDFLAGS)
35362#AC_SUBST(X_PRE_LIBS)
35363#AC_SUBST(X_LIBS)
35364#AC_SUBST(X_EXTRA_LIBS)
35365
35366MAGICK_CFLAGS=$CFLAGS
35367MAGICK_CXXFLAGS="$CXXFLAGS"
35368MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35369MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35370MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035371MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035372
35373
35374
35375
35376
35377
35378
35379
35380# Set configured scripts to executable.
35381ac_config_commands="$ac_config_commands default"
35382
cristy2bd4b6e2012-07-22 15:29:11 +000035383ac_config_commands="$ac_config_commands magick.sh.in"
35384
cristy3ed852e2009-09-05 21:47:34 +000035385ac_config_commands="$ac_config_commands MagickCore-config.in"
35386
cristy3ed852e2009-09-05 21:47:34 +000035387ac_config_commands="$ac_config_commands MagickWand-config.in"
35388
cristy3ed852e2009-09-05 21:47:34 +000035389ac_config_commands="$ac_config_commands Magick++-config.in"
35390
35391ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35392
35393
cristyad38abe2012-12-23 23:03:21 +000035394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35395$as_echo "-------------------------------------------------------------" >&6; }
35396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35397$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035398cat >confcache <<\_ACEOF
35399# This file is a shell script that caches the results of configure
35400# tests run on this system so they can be shared between configure
35401# scripts and configure runs, see configure's option --config-cache.
35402# It is not useful on other systems. If it contains results you don't
35403# want to keep, you may remove or edit it.
35404#
35405# config.status only pays attention to the cache file if you give it
35406# the --recheck option to rerun configure.
35407#
35408# `ac_cv_env_foo' variables (set or unset) will be overridden when
35409# loading this file, other *unset* `ac_cv_foo' will be assigned the
35410# following values.
35411
35412_ACEOF
35413
35414# The following way of writing the cache mishandles newlines in values,
35415# but we know of no workaround that is simple, portable, and efficient.
35416# So, we kill variables containing newlines.
35417# Ultrix sh set writes to stderr and can't be redirected directly,
35418# and sets the high bit in the cache file unless we assign to the vars.
35419(
35420 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35421 eval ac_val=\$$ac_var
35422 case $ac_val in #(
35423 *${as_nl}*)
35424 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035425 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035426$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35427 esac
35428 case $ac_var in #(
35429 _ | IFS | as_nl) ;; #(
35430 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035431 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035432 esac ;;
35433 esac
35434 done
35435
35436 (set) 2>&1 |
35437 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35438 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035439 # `set' does not quote correctly, so add quotes: double-quote
35440 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035441 sed -n \
35442 "s/'/'\\\\''/g;
35443 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35444 ;; #(
35445 *)
35446 # `set' quotes correctly as required by POSIX, so do not add quotes.
35447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35448 ;;
35449 esac |
35450 sort
35451) |
35452 sed '
35453 /^ac_cv_env_/b end
35454 t clear
35455 :clear
35456 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35457 t end
35458 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35459 :end' >>confcache
35460if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35461 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035462 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035463 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035464$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035465 if test ! -f "$cache_file" || test -h "$cache_file"; then
35466 cat confcache >"$cache_file"
35467 else
35468 case $cache_file in #(
35469 */* | ?:*)
35470 mv -f confcache "$cache_file"$$ &&
35471 mv -f "$cache_file"$$ "$cache_file" ;; #(
35472 *)
35473 mv -f confcache "$cache_file" ;;
35474 esac
35475 fi
35476 fi
cristy3ed852e2009-09-05 21:47:34 +000035477 else
cristy8b350f62009-11-15 23:12:43 +000035478 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035479$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35480 fi
35481fi
35482rm -f confcache
35483
35484test "x$prefix" = xNONE && prefix=$ac_default_prefix
35485# Let make expand exec_prefix.
35486test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35487
35488DEFS=-DHAVE_CONFIG_H
35489
35490ac_libobjs=
35491ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035492U=
cristy3ed852e2009-09-05 21:47:34 +000035493for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35494 # 1. Remove the extension, and $U if already installed.
35495 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35496 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35497 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35498 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035499 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35500 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035501done
35502LIBOBJS=$ac_libobjs
35503
35504LTLIBOBJS=$ac_ltlibobjs
35505
35506
cristyc0890a62012-07-19 00:18:20 +000035507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35508$as_echo_n "checking that generated files are newer than configure... " >&6; }
35509 if test -n "$am_sleep_pid"; then
35510 # Hide warnings about reused PIDs.
35511 wait $am_sleep_pid 2>/dev/null
35512 fi
35513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35514$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035515 if test -n "$EXEEXT"; then
35516 am__EXEEXT_TRUE=
35517 am__EXEEXT_FALSE='#'
35518else
35519 am__EXEEXT_TRUE='#'
35520 am__EXEEXT_FALSE=
35521fi
cristy3ed852e2009-09-05 21:47:34 +000035522
cristy73bd4a52010-10-05 11:24:23 +000035523if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035524 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035525Usually this means the macro was only invoked conditionally." "$LINENO" 5
35526fi
35527if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035528 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035529Usually this means the macro was only invoked conditionally." "$LINENO" 5
35530fi
35531if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035532 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035533Usually this means the macro was only invoked conditionally." "$LINENO" 5
35534fi
35535if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035536 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035537Usually this means the macro was only invoked conditionally." "$LINENO" 5
35538fi
cristy9b86f202012-11-28 21:55:35 +000035539if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35540 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35541Usually this means the macro was only invoked conditionally." "$LINENO" 5
35542fi
cristy73bd4a52010-10-05 11:24:23 +000035543if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035544 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035545Usually this means the macro was only invoked conditionally." "$LINENO" 5
35546fi
35547if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035548 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035549Usually this means the macro was only invoked conditionally." "$LINENO" 5
35550fi
35551if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035552 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035553Usually this means the macro was only invoked conditionally." "$LINENO" 5
35554fi
35555if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035556 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035557Usually this means the macro was only invoked conditionally." "$LINENO" 5
35558fi
cristy73bd4a52010-10-05 11:24:23 +000035559if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035560 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035561Usually this means the macro was only invoked conditionally." "$LINENO" 5
35562fi
35563if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035564 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035565Usually this means the macro was only invoked conditionally." "$LINENO" 5
35566fi
cristy73bd4a52010-10-05 11:24:23 +000035567if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035568 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035569Usually this means the macro was only invoked conditionally." "$LINENO" 5
35570fi
cristy71d8c202012-03-20 17:05:01 +000035571if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35572 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35573Usually this means the macro was only invoked conditionally." "$LINENO" 5
35574fi
cristy73bd4a52010-10-05 11:24:23 +000035575
35576if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035577 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035578Usually this means the macro was only invoked conditionally." "$LINENO" 5
35579fi
35580if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035581 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035582Usually this means the macro was only invoked conditionally." "$LINENO" 5
35583fi
35584if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035585 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035586Usually this means the macro was only invoked conditionally." "$LINENO" 5
35587fi
35588if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035589 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035590Usually this means the macro was only invoked conditionally." "$LINENO" 5
35591fi
35592if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035593 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035594Usually this means the macro was only invoked conditionally." "$LINENO" 5
35595fi
35596if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035597 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035598Usually this means the macro was only invoked conditionally." "$LINENO" 5
35599fi
cristy5eef09f2012-10-16 12:08:28 +000035600if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35601 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35602Usually this means the macro was only invoked conditionally." "$LINENO" 5
35603fi
cristy73bd4a52010-10-05 11:24:23 +000035604if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035605 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035606Usually this means the macro was only invoked conditionally." "$LINENO" 5
35607fi
35608if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035609 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035610Usually this means the macro was only invoked conditionally." "$LINENO" 5
35611fi
35612if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035613 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035614Usually this means the macro was only invoked conditionally." "$LINENO" 5
35615fi
35616if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035617 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035618Usually this means the macro was only invoked conditionally." "$LINENO" 5
35619fi
35620if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035621 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035622Usually this means the macro was only invoked conditionally." "$LINENO" 5
35623fi
35624if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035625 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035626Usually this means the macro was only invoked conditionally." "$LINENO" 5
35627fi
35628if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035629 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035630Usually this means the macro was only invoked conditionally." "$LINENO" 5
35631fi
35632if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035633 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035634Usually this means the macro was only invoked conditionally." "$LINENO" 5
35635fi
35636if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035637 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035638Usually this means the macro was only invoked conditionally." "$LINENO" 5
35639fi
35640if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035641 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035642Usually this means the macro was only invoked conditionally." "$LINENO" 5
35643fi
35644if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035645 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035646Usually this means the macro was only invoked conditionally." "$LINENO" 5
35647fi
35648if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035649 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035650Usually this means the macro was only invoked conditionally." "$LINENO" 5
35651fi
35652if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035653 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035654Usually this means the macro was only invoked conditionally." "$LINENO" 5
35655fi
35656if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035657 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035658Usually this means the macro was only invoked conditionally." "$LINENO" 5
35659fi
cristyfbb0ef02010-12-19 02:32:11 +000035660if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35661 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35662Usually this means the macro was only invoked conditionally." "$LINENO" 5
35663fi
cristy73bd4a52010-10-05 11:24:23 +000035664if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035665 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035666Usually this means the macro was only invoked conditionally." "$LINENO" 5
35667fi
cristy41cbe8a2011-10-27 01:35:18 +000035668if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35669 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35670Usually this means the macro was only invoked conditionally." "$LINENO" 5
35671fi
cristya054b762012-03-26 23:16:00 +000035672if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35673 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035674Usually this means the macro was only invoked conditionally." "$LINENO" 5
35675fi
cristy73bd4a52010-10-05 11:24:23 +000035676if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035677 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035678Usually this means the macro was only invoked conditionally." "$LINENO" 5
35679fi
35680if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035681 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035682Usually this means the macro was only invoked conditionally." "$LINENO" 5
35683fi
35684if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035685 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035686Usually this means the macro was only invoked conditionally." "$LINENO" 5
35687fi
35688if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035689 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035690Usually this means the macro was only invoked conditionally." "$LINENO" 5
35691fi
cristyb1860752011-03-14 00:27:46 +000035692if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35693 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35694Usually this means the macro was only invoked conditionally." "$LINENO" 5
35695fi
cristy73bd4a52010-10-05 11:24:23 +000035696if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035697 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035698Usually this means the macro was only invoked conditionally." "$LINENO" 5
35699fi
35700if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035701 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035702Usually this means the macro was only invoked conditionally." "$LINENO" 5
35703fi
35704if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035705 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035706Usually this means the macro was only invoked conditionally." "$LINENO" 5
35707fi
35708if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035709 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035710Usually this means the macro was only invoked conditionally." "$LINENO" 5
35711fi
35712if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035713 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035714Usually this means the macro was only invoked conditionally." "$LINENO" 5
35715fi
35716if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035717 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035718Usually this means the macro was only invoked conditionally." "$LINENO" 5
35719fi
35720if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035721 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035722Usually this means the macro was only invoked conditionally." "$LINENO" 5
35723fi
35724if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035725 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035726Usually this means the macro was only invoked conditionally." "$LINENO" 5
35727fi
cristy3ed852e2009-09-05 21:47:34 +000035728
cristyda16f162011-02-19 23:52:17 +000035729: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035730ac_write_fail=0
35731ac_clean_files_save=$ac_clean_files
35732ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035733{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035734$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035735as_write_fail=0
35736cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035737#! $SHELL
35738# Generated by $as_me.
35739# Run this file to recreate the current configuration.
35740# Compiler output produced by configure, useful for debugging
35741# configure, is in config.log if it exists.
35742
35743debug=false
35744ac_cs_recheck=false
35745ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035746
cristy8b350f62009-11-15 23:12:43 +000035747SHELL=\${CONFIG_SHELL-$SHELL}
35748export SHELL
35749_ASEOF
35750cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35751## -------------------- ##
35752## M4sh Initialization. ##
35753## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035754
35755# Be more Bourne compatible
35756DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035757if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035758 emulate sh
35759 NULLCMD=:
35760 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35761 # is contrary to our usage. Disable this feature.
35762 alias -g '${1+"$@"}'='"$@"'
35763 setopt NO_GLOB_SUBST
35764else
cristy8b350f62009-11-15 23:12:43 +000035765 case `(set -o) 2>/dev/null` in #(
35766 *posix*) :
35767 set -o posix ;; #(
35768 *) :
35769 ;;
cristy3ed852e2009-09-05 21:47:34 +000035770esac
cristy3ed852e2009-09-05 21:47:34 +000035771fi
35772
35773
cristy3ed852e2009-09-05 21:47:34 +000035774as_nl='
35775'
35776export as_nl
35777# Printing a long string crashes Solaris 7 /usr/bin/printf.
35778as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35779as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35780as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035781# Prefer a ksh shell builtin over an external printf program on Solaris,
35782# but without wasting forks for bash or zsh.
35783if test -z "$BASH_VERSION$ZSH_VERSION" \
35784 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35785 as_echo='print -r --'
35786 as_echo_n='print -rn --'
35787elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035788 as_echo='printf %s\n'
35789 as_echo_n='printf %s'
35790else
35791 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35792 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35793 as_echo_n='/usr/ucb/echo -n'
35794 else
35795 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35796 as_echo_n_body='eval
35797 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035798 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035799 *"$as_nl"*)
35800 expr "X$arg" : "X\\(.*\\)$as_nl";
35801 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35802 esac;
35803 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35804 '
35805 export as_echo_n_body
35806 as_echo_n='sh -c $as_echo_n_body as_echo'
35807 fi
35808 export as_echo_body
35809 as_echo='sh -c $as_echo_body as_echo'
35810fi
35811
35812# The user is always right.
35813if test "${PATH_SEPARATOR+set}" != set; then
35814 PATH_SEPARATOR=:
35815 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35816 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35817 PATH_SEPARATOR=';'
35818 }
35819fi
35820
cristy3ed852e2009-09-05 21:47:34 +000035821
35822# IFS
35823# We need space, tab and new line, in precisely that order. Quoting is
35824# there to prevent editors from complaining about space-tab.
35825# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35826# splitting by setting IFS to empty value.)
35827IFS=" "" $as_nl"
35828
35829# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035830as_myself=
cristy8b350f62009-11-15 23:12:43 +000035831case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035832 *[\\/]* ) as_myself=$0 ;;
35833 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35834for as_dir in $PATH
35835do
35836 IFS=$as_save_IFS
35837 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035838 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35839 done
cristy3ed852e2009-09-05 21:47:34 +000035840IFS=$as_save_IFS
35841
35842 ;;
35843esac
35844# We did not find ourselves, most probably we were run as `sh COMMAND'
35845# in which case we are not to be found in the path.
35846if test "x$as_myself" = x; then
35847 as_myself=$0
35848fi
35849if test ! -f "$as_myself"; then
35850 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035851 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035852fi
35853
cristy8b350f62009-11-15 23:12:43 +000035854# Unset variables that we do not need and which cause bugs (e.g. in
35855# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35856# suppresses any "Segmentation fault" message there. '((' could
35857# trigger a bug in pdksh 5.2.14.
35858for as_var in BASH_ENV ENV MAIL MAILPATH
35859do eval test x\${$as_var+set} = xset \
35860 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035861done
35862PS1='$ '
35863PS2='> '
35864PS4='+ '
35865
35866# NLS nuisances.
35867LC_ALL=C
35868export LC_ALL
35869LANGUAGE=C
35870export LANGUAGE
35871
cristy8b350f62009-11-15 23:12:43 +000035872# CDPATH.
35873(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35874
35875
cristy98dddb52010-11-04 00:30:15 +000035876# as_fn_error STATUS ERROR [LINENO LOG_FD]
35877# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035878# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35879# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035880# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035881as_fn_error ()
35882{
cristy98dddb52010-11-04 00:30:15 +000035883 as_status=$1; test $as_status -eq 0 && as_status=1
35884 if test "$4"; then
35885 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35886 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035887 fi
cristy98dddb52010-11-04 00:30:15 +000035888 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035889 as_fn_exit $as_status
35890} # as_fn_error
35891
35892
35893# as_fn_set_status STATUS
35894# -----------------------
35895# Set $? to STATUS, without forking.
35896as_fn_set_status ()
35897{
35898 return $1
35899} # as_fn_set_status
35900
35901# as_fn_exit STATUS
35902# -----------------
35903# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35904as_fn_exit ()
35905{
35906 set +e
35907 as_fn_set_status $1
35908 exit $1
35909} # as_fn_exit
35910
35911# as_fn_unset VAR
35912# ---------------
35913# Portably unset VAR.
35914as_fn_unset ()
35915{
35916 { eval $1=; unset $1;}
35917}
35918as_unset=as_fn_unset
35919# as_fn_append VAR VALUE
35920# ----------------------
35921# Append the text in VALUE to the end of the definition contained in VAR. Take
35922# advantage of any shell optimizations that allow amortized linear growth over
35923# repeated appends, instead of the typical quadratic growth present in naive
35924# implementations.
35925if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35926 eval 'as_fn_append ()
35927 {
35928 eval $1+=\$2
35929 }'
35930else
35931 as_fn_append ()
35932 {
35933 eval $1=\$$1\$2
35934 }
35935fi # as_fn_append
35936
35937# as_fn_arith ARG...
35938# ------------------
35939# Perform arithmetic evaluation on the ARGs, and store the result in the
35940# global $as_val. Take advantage of shells that can avoid forks. The arguments
35941# must be portable across $(()) and expr.
35942if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35943 eval 'as_fn_arith ()
35944 {
35945 as_val=$(( $* ))
35946 }'
35947else
35948 as_fn_arith ()
35949 {
35950 as_val=`expr "$@" || test $? -eq 1`
35951 }
35952fi # as_fn_arith
35953
35954
cristy3ed852e2009-09-05 21:47:34 +000035955if expr a : '\(a\)' >/dev/null 2>&1 &&
35956 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35957 as_expr=expr
35958else
35959 as_expr=false
35960fi
35961
35962if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35963 as_basename=basename
35964else
35965 as_basename=false
35966fi
35967
cristy8b350f62009-11-15 23:12:43 +000035968if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35969 as_dirname=dirname
35970else
35971 as_dirname=false
35972fi
cristy3ed852e2009-09-05 21:47:34 +000035973
cristy3ed852e2009-09-05 21:47:34 +000035974as_me=`$as_basename -- "$0" ||
35975$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35976 X"$0" : 'X\(//\)$' \| \
35977 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35978$as_echo X/"$0" |
35979 sed '/^.*\/\([^/][^/]*\)\/*$/{
35980 s//\1/
35981 q
35982 }
35983 /^X\/\(\/\/\)$/{
35984 s//\1/
35985 q
35986 }
35987 /^X\/\(\/\).*/{
35988 s//\1/
35989 q
35990 }
35991 s/.*/./; q'`
35992
cristy8b350f62009-11-15 23:12:43 +000035993# Avoid depending upon Character Ranges.
35994as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35995as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35996as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35997as_cr_digits='0123456789'
35998as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035999
36000ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036001case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036002-n*)
cristy8b350f62009-11-15 23:12:43 +000036003 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036004 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036005 xy) ECHO_C='\c';;
36006 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36007 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036008 esac;;
36009*)
36010 ECHO_N='-n';;
36011esac
cristy3ed852e2009-09-05 21:47:34 +000036012
36013rm -f conf$$ conf$$.exe conf$$.file
36014if test -d conf$$.dir; then
36015 rm -f conf$$.dir/conf$$.file
36016else
36017 rm -f conf$$.dir
36018 mkdir conf$$.dir 2>/dev/null
36019fi
36020if (echo >conf$$.file) 2>/dev/null; then
36021 if ln -s conf$$.file conf$$ 2>/dev/null; then
36022 as_ln_s='ln -s'
36023 # ... but there are two gotchas:
36024 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36025 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036026 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036027 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036028 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036029 elif ln conf$$.file conf$$ 2>/dev/null; then
36030 as_ln_s=ln
36031 else
cristy14fefe52012-05-21 00:59:18 +000036032 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036033 fi
36034else
cristy14fefe52012-05-21 00:59:18 +000036035 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036036fi
36037rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36038rmdir conf$$.dir 2>/dev/null
36039
cristy8b350f62009-11-15 23:12:43 +000036040
36041# as_fn_mkdir_p
36042# -------------
36043# Create "$as_dir" as a directory, including parents if necessary.
36044as_fn_mkdir_p ()
36045{
36046
36047 case $as_dir in #(
36048 -*) as_dir=./$as_dir;;
36049 esac
36050 test -d "$as_dir" || eval $as_mkdir_p || {
36051 as_dirs=
36052 while :; do
36053 case $as_dir in #(
36054 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36055 *) as_qdir=$as_dir;;
36056 esac
36057 as_dirs="'$as_qdir' $as_dirs"
36058 as_dir=`$as_dirname -- "$as_dir" ||
36059$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36060 X"$as_dir" : 'X\(//\)[^/]' \| \
36061 X"$as_dir" : 'X\(//\)$' \| \
36062 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36063$as_echo X"$as_dir" |
36064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36065 s//\1/
36066 q
36067 }
36068 /^X\(\/\/\)[^/].*/{
36069 s//\1/
36070 q
36071 }
36072 /^X\(\/\/\)$/{
36073 s//\1/
36074 q
36075 }
36076 /^X\(\/\).*/{
36077 s//\1/
36078 q
36079 }
36080 s/.*/./; q'`
36081 test -d "$as_dir" && break
36082 done
36083 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036084 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036085
36086
36087} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036088if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036089 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036090else
36091 test -d ./-p && rmdir ./-p
36092 as_mkdir_p=false
36093fi
36094
cristy14fefe52012-05-21 00:59:18 +000036095
36096# as_fn_executable_p FILE
36097# -----------------------
36098# Test if FILE is an executable regular file.
36099as_fn_executable_p ()
36100{
36101 test -f "$1" && test -x "$1"
36102} # as_fn_executable_p
36103as_test_x='test -x'
36104as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036105
36106# Sed expression to map a string onto a valid CPP name.
36107as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36108
36109# Sed expression to map a string onto a valid variable name.
36110as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36111
36112
36113exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036114## ----------------------------------- ##
36115## Main body of $CONFIG_STATUS script. ##
36116## ----------------------------------- ##
36117_ASEOF
36118test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036119
cristy8b350f62009-11-15 23:12:43 +000036120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36121# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036122# report actual input values of CONFIG_FILES etc. instead of their
36123# values after options handling.
36124ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036125This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036126generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036127
36128 CONFIG_FILES = $CONFIG_FILES
36129 CONFIG_HEADERS = $CONFIG_HEADERS
36130 CONFIG_LINKS = $CONFIG_LINKS
36131 CONFIG_COMMANDS = $CONFIG_COMMANDS
36132 $ $0 $@
36133
36134on `(hostname || uname -n) 2>/dev/null | sed 1q`
36135"
36136
36137_ACEOF
36138
36139case $ac_config_files in *"
36140"*) set x $ac_config_files; shift; ac_config_files=$*;;
36141esac
36142
36143case $ac_config_headers in *"
36144"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36145esac
36146
36147
36148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36149# Files that config.status was made for.
36150config_files="$ac_config_files"
36151config_headers="$ac_config_headers"
36152config_commands="$ac_config_commands"
36153
36154_ACEOF
36155
36156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36157ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036158\`$as_me' instantiates files and other configuration actions
36159from templates according to the current configuration. Unless the files
36160and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036161
cristy8b350f62009-11-15 23:12:43 +000036162Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036163
36164 -h, --help print this help, then exit
36165 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036166 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036167 -q, --quiet, --silent
36168 do not print progress messages
36169 -d, --debug don't remove temporary files
36170 --recheck update $as_me by reconfiguring in the same conditions
36171 --file=FILE[:TEMPLATE]
36172 instantiate the configuration file FILE
36173 --header=FILE[:TEMPLATE]
36174 instantiate the configuration header FILE
36175
36176Configuration files:
36177$config_files
36178
36179Configuration headers:
36180$config_headers
36181
36182Configuration commands:
36183$config_commands
36184
cristy8b350f62009-11-15 23:12:43 +000036185Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036186
36187_ACEOF
36188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036189ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036190ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036191ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036192configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036193 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036194
cristy14fefe52012-05-21 00:59:18 +000036195Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036196This config.status script is free software; the Free Software Foundation
36197gives unlimited permission to copy, distribute and modify it."
36198
36199ac_pwd='$ac_pwd'
36200srcdir='$srcdir'
36201INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036202MKDIR_P='$MKDIR_P'
36203AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036204test -n "\$AWK" || AWK=awk
36205_ACEOF
36206
36207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36208# The default lists apply if the user does not specify any file.
36209ac_need_defaults=:
36210while test $# != 0
36211do
36212 case $1 in
cristyda16f162011-02-19 23:52:17 +000036213 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036214 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36215 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36216 ac_shift=:
36217 ;;
cristyda16f162011-02-19 23:52:17 +000036218 --*=)
36219 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36220 ac_optarg=
36221 ac_shift=:
36222 ;;
cristy3ed852e2009-09-05 21:47:34 +000036223 *)
36224 ac_option=$1
36225 ac_optarg=$2
36226 ac_shift=shift
36227 ;;
36228 esac
36229
36230 case $ac_option in
36231 # Handling of the options.
36232 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36233 ac_cs_recheck=: ;;
36234 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36235 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036236 --config | --confi | --conf | --con | --co | --c )
36237 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036238 --debug | --debu | --deb | --de | --d | -d )
36239 debug=: ;;
36240 --file | --fil | --fi | --f )
36241 $ac_shift
36242 case $ac_optarg in
36243 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036244 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036245 esac
cristy8b350f62009-11-15 23:12:43 +000036246 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036247 ac_need_defaults=false;;
36248 --header | --heade | --head | --hea )
36249 $ac_shift
36250 case $ac_optarg in
36251 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36252 esac
cristy8b350f62009-11-15 23:12:43 +000036253 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036254 ac_need_defaults=false;;
36255 --he | --h)
36256 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036257 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036258Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036259 --help | --hel | -h )
36260 $as_echo "$ac_cs_usage"; exit ;;
36261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36262 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36263 ac_cs_silent=: ;;
36264
36265 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036266 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036267Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036268
cristy8b350f62009-11-15 23:12:43 +000036269 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036270 ac_need_defaults=false ;;
36271
36272 esac
36273 shift
36274done
36275
36276ac_configure_extra_args=
36277
36278if $ac_cs_silent; then
36279 exec 6>/dev/null
36280 ac_configure_extra_args="$ac_configure_extra_args --silent"
36281fi
36282
36283_ACEOF
36284cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36285if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036286 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036287 shift
36288 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36289 CONFIG_SHELL='$SHELL'
36290 export CONFIG_SHELL
36291 exec "\$@"
36292fi
36293
36294_ACEOF
36295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36296exec 5>>config.log
36297{
36298 echo
36299 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36300## Running $as_me. ##
36301_ASBOX
36302 $as_echo "$ac_log"
36303} >&5
36304
36305_ACEOF
36306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036307#
36308# INIT-COMMANDS
36309#
36310PACKAGE="$PACKAGE"
36311AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36312
36313
36314# The HP-UX ksh and POSIX shell print the target directory to stdout
36315# if CDPATH is set.
36316(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36317
36318sed_quote_subst='$sed_quote_subst'
36319double_quote_subst='$double_quote_subst'
36320delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036321SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36322Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36323GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36324EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36325FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36326SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36327ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36328LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36329macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36330macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36331AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36332DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36333OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36334enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36335enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36336pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36337enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036338PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036339host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36340host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36341host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36342build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36343build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36344build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36345NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36346LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36347max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36348ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36349exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36350lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36351lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36352lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036353lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36354lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036355reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36356reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36357deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36358file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036359file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36360want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36361sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036362AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36363AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036364archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036365STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36366RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36367old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36368old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36369old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36370lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36371CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36372CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36373compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36374GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36375lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36376lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36377lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36378lt_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 +000036379nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36380lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036381objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36382MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36383lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036384lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036385lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036386lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36387lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36388need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036389MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036390DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36391NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36392LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36393OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36394OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36395libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36396shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36397extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36398archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36399enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36400export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36401whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36402compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36403old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36404old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36405archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36406archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36407module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36408module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36409with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36410allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36411no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36412hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036413hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36414hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36415hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36416hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36417hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36418hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36419inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36420link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036421always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36422export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36423exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36424include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36425prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036426postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036427file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36428variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36429need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36430need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36431version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36432runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36433shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36434shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36435libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36436library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36437soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36438install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36439postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36440postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36441finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36442finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36443hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36444sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36445sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36446hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36447enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36448enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36449enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36450old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36451striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36452compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36453predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36454postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36455predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36456postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36457compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36458LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36459reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36460reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36461old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36462compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36463GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36464lt_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 +000036465lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036466lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036467lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36468lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36469archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36470enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36471export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36472whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36473compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36474old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36475old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36476archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36477archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36478module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36479module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36480with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36481allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36482no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36483hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036484hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36485hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36486hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36487hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36488hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36489hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36490inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36491link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036492always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36493export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36494exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36495include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36496prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036497postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036498file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36499hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36500compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36501predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36502postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36503predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36504postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36505compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036506
36507LTCC='$LTCC'
36508LTCFLAGS='$LTCFLAGS'
36509compiler='$compiler_DEFAULT'
36510
cristy0c60a692010-11-04 01:09:47 +000036511# A function that is used when there is no print builtin or printf.
36512func_fallback_echo ()
36513{
36514 eval 'cat <<_LTECHO_EOF
36515\$1
36516_LTECHO_EOF'
36517}
36518
cristy73bd4a52010-10-05 11:24:23 +000036519# Quote evaled strings.
36520for var in SED \
36521GREP \
36522EGREP \
36523FGREP \
cristy0c60a692010-11-04 01:09:47 +000036524SHELL \
36525ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036526LD \
cristy0c60a692010-11-04 01:09:47 +000036527AS \
36528DLLTOOL \
36529OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036530PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036531NM \
36532LN_S \
36533lt_SP2NL \
36534lt_NL2SP \
36535reload_flag \
36536deplibs_check_method \
36537file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036538file_magic_glob \
36539want_nocaseglob \
36540sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036541AR \
36542AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036543archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036544STRIP \
36545RANLIB \
36546CC \
36547CFLAGS \
36548compiler \
36549lt_cv_sys_global_symbol_pipe \
36550lt_cv_sys_global_symbol_to_cdecl \
36551lt_cv_sys_global_symbol_to_c_name_address \
36552lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036553nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036554lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036555lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036556lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036557lt_prog_compiler_static \
36558lt_cv_prog_compiler_c_o \
36559need_locks \
cristyda16f162011-02-19 23:52:17 +000036560MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036561DSYMUTIL \
36562NMEDIT \
36563LIPO \
36564OTOOL \
36565OTOOL64 \
36566shrext_cmds \
36567export_dynamic_flag_spec \
36568whole_archive_flag_spec \
36569compiler_needs_object \
36570with_gnu_ld \
36571allow_undefined_flag \
36572no_undefined_flag \
36573hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036574hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036575exclude_expsyms \
36576include_expsyms \
36577file_list_spec \
36578variables_saved_for_relink \
36579libname_spec \
36580library_names_spec \
36581soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036582install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036583finish_eval \
36584old_striplib \
36585striplib \
36586compiler_lib_search_dirs \
36587predep_objects \
36588postdep_objects \
36589predeps \
36590postdeps \
36591compiler_lib_search_path \
36592LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036593reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036594compiler_CXX \
36595lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036596lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036597lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036598lt_prog_compiler_static_CXX \
36599lt_cv_prog_compiler_c_o_CXX \
36600export_dynamic_flag_spec_CXX \
36601whole_archive_flag_spec_CXX \
36602compiler_needs_object_CXX \
36603with_gnu_ld_CXX \
36604allow_undefined_flag_CXX \
36605no_undefined_flag_CXX \
36606hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036607hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036608exclude_expsyms_CXX \
36609include_expsyms_CXX \
36610file_list_spec_CXX \
36611compiler_lib_search_dirs_CXX \
36612predep_objects_CXX \
36613postdep_objects_CXX \
36614predeps_CXX \
36615postdeps_CXX \
36616compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036617 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036618 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036619 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036620 ;;
36621 *)
36622 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36623 ;;
36624 esac
36625done
36626
36627# Double-quote double-evaled strings.
36628for var in reload_cmds \
36629old_postinstall_cmds \
36630old_postuninstall_cmds \
36631old_archive_cmds \
36632extract_expsyms_cmds \
36633old_archive_from_new_cmds \
36634old_archive_from_expsyms_cmds \
36635archive_cmds \
36636archive_expsym_cmds \
36637module_cmds \
36638module_expsym_cmds \
36639export_symbols_cmds \
36640prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036641postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036642postinstall_cmds \
36643postuninstall_cmds \
36644finish_cmds \
36645sys_lib_search_path_spec \
36646sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036647reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036648old_archive_cmds_CXX \
36649old_archive_from_new_cmds_CXX \
36650old_archive_from_expsyms_cmds_CXX \
36651archive_cmds_CXX \
36652archive_expsym_cmds_CXX \
36653module_cmds_CXX \
36654module_expsym_cmds_CXX \
36655export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036656prelink_cmds_CXX \
36657postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036658 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036659 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036660 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036661 ;;
36662 *)
36663 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36664 ;;
36665 esac
36666done
36667
cristy73bd4a52010-10-05 11:24:23 +000036668ac_aux_dir='$ac_aux_dir'
36669xsi_shell='$xsi_shell'
36670lt_shell_append='$lt_shell_append'
36671
36672# See if we are running on zsh, and set the options which allow our
36673# commands through without removal of \ escapes INIT.
36674if test -n "\${ZSH_VERSION+set}" ; then
36675 setopt NO_GLOB_SUBST
36676fi
36677
36678
36679 PACKAGE='$PACKAGE'
36680 VERSION='$VERSION'
36681 TIMESTAMP='$TIMESTAMP'
36682 RM='$RM'
36683 ofile='$ofile'
36684
36685
36686
36687
36688
36689
cristy3ed852e2009-09-05 21:47:34 +000036690_ACEOF
36691
36692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36693
36694# Handling of arguments.
36695for ac_config_target in $ac_config_targets
36696do
36697 case $ac_config_target in
36698 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000036699 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000036700 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036701 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36702 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36703 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36704 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36705 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036706 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036707 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036708 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36709 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36710 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36711 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36712 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036713 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036714 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36715 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036716 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36717 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36718 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036719 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36720 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36721 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36722 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36723 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36724 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36725 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36726 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36727 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36728 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36729 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36730 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36731 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36732 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36733 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36734 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36735 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036736 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36737 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036738 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36739 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036740 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000036741 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036742 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036743 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036744 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36745 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36746
cristy98dddb52010-11-04 00:30:15 +000036747 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036748 esac
36749done
36750
36751
36752# If the user did not use the arguments to specify the items to instantiate,
36753# then the envvar interface is used. Set only those that are not.
36754# We use the long form for the default assignment because of an extremely
36755# bizarre bug on SunOS 4.1.3.
36756if $ac_need_defaults; then
36757 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36758 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36759 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36760fi
36761
36762# Have a temporary directory for convenience. Make it in the build tree
36763# simply because there is no reason against having it here, and in addition,
36764# creating and moving files from /tmp can sometimes cause problems.
36765# Hook for its removal unless debugging.
36766# Note that there is a small window in which the directory will not be cleaned:
36767# after its creation but before its name has been assigned to `$tmp'.
36768$debug ||
36769{
cristyda16f162011-02-19 23:52:17 +000036770 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036771 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036772 : "${ac_tmp:=$tmp}"
36773 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036774' 0
cristy8b350f62009-11-15 23:12:43 +000036775 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036776}
36777# Create a (secure) tmp directory for tmp files.
36778
36779{
36780 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036781 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036782} ||
36783{
36784 tmp=./conf$$-$RANDOM
36785 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036786} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036787ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036788
36789# Set up the scripts for CONFIG_FILES section.
36790# No need to generate them if there are no CONFIG_FILES.
36791# This happens for instance with `./config.status config.h'.
36792if test -n "$CONFIG_FILES"; then
36793
36794
cristy8b350f62009-11-15 23:12:43 +000036795ac_cr=`echo X | tr X '\015'`
36796# On cygwin, bash can eat \r inside `` if the user requested igncr.
36797# But we know of no other shell where ac_cr would be empty at this
36798# point, so we can use a bashism as a fallback.
36799if test "x$ac_cr" = x; then
36800 eval ac_cr=\$\'\\r\'
36801fi
cristy3ed852e2009-09-05 21:47:34 +000036802ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36803if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036804 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036805else
36806 ac_cs_awk_cr=$ac_cr
36807fi
36808
cristyda16f162011-02-19 23:52:17 +000036809echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036810_ACEOF
36811
36812
36813{
36814 echo "cat >conf$$subs.awk <<_ACEOF" &&
36815 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36816 echo "_ACEOF"
36817} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036818 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36819ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036820ac_delim='%!_!# '
36821for ac_last_try in false false false false false :; do
36822 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036823 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036824
36825 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36826 if test $ac_delim_n = $ac_delim_num; then
36827 break
36828 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036829 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036830 else
36831 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36832 fi
36833done
36834rm -f conf$$subs.sh
36835
36836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036837cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036838_ACEOF
36839sed -n '
36840h
36841s/^/S["/; s/!.*/"]=/
36842p
36843g
36844s/^[^!]*!//
36845:repl
36846t repl
36847s/'"$ac_delim"'$//
36848t delim
36849:nl
36850h
cristycd4c5312009-11-22 01:19:08 +000036851s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036852t more1
36853s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36854p
36855n
36856b repl
36857:more1
36858s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36859p
36860g
36861s/.\{148\}//
36862t nl
36863:delim
36864h
cristycd4c5312009-11-22 01:19:08 +000036865s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036866t more2
36867s/["\\]/\\&/g; s/^/"/; s/$/"/
36868p
36869b
36870:more2
36871s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36872p
36873g
36874s/.\{148\}//
36875t delim
36876' <conf$$subs.awk | sed '
36877/^[^""]/{
36878 N
36879 s/\n//
36880}
36881' >>$CONFIG_STATUS || ac_write_fail=1
36882rm -f conf$$subs.awk
36883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36884_ACAWK
cristyda16f162011-02-19 23:52:17 +000036885cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036886 for (key in S) S_is_set[key] = 1
36887 FS = ""
36888
36889}
36890{
36891 line = $ 0
36892 nfields = split(line, field, "@")
36893 substed = 0
36894 len = length(field[1])
36895 for (i = 2; i < nfields; i++) {
36896 key = field[i]
36897 keylen = length(key)
36898 if (S_is_set[key]) {
36899 value = S[key]
36900 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36901 len += length(value) + length(field[++i])
36902 substed = 1
36903 } else
36904 len += 1 + keylen
36905 }
36906
36907 print line
36908}
36909
36910_ACAWK
36911_ACEOF
36912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36913if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36914 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36915else
36916 cat
cristyda16f162011-02-19 23:52:17 +000036917fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036918 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036919_ACEOF
36920
cristy98dddb52010-11-04 00:30:15 +000036921# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36922# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036923# trailing colons and then remove the whole line if VPATH becomes empty
36924# (actually we leave an empty line to preserve line numbers).
36925if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036926 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36927h
36928s///
36929s/^/:/
36930s/[ ]*$/:/
36931s/:\$(srcdir):/:/g
36932s/:\${srcdir}:/:/g
36933s/:@srcdir@:/:/g
36934s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036935s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036936x
36937s/\(=[ ]*\).*/\1/
36938G
36939s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036940s/^[^=]*=[ ]*$//
36941}'
36942fi
36943
36944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36945fi # test -n "$CONFIG_FILES"
36946
36947# Set up the scripts for CONFIG_HEADERS section.
36948# No need to generate them if there are no CONFIG_HEADERS.
36949# This happens for instance with `./config.status Makefile'.
36950if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036951cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036952BEGIN {
36953_ACEOF
36954
36955# Transform confdefs.h into an awk script `defines.awk', embedded as
36956# here-document in config.status, that substitutes the proper values into
36957# config.h.in to produce config.h.
36958
36959# Create a delimiter string that does not exist in confdefs.h, to ease
36960# handling of long lines.
36961ac_delim='%!_!# '
36962for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036963 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36964 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036965 break
36966 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036967 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036968 else
36969 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36970 fi
36971done
36972
36973# For the awk script, D is an array of macro values keyed by name,
36974# likewise P contains macro parameters if any. Preserve backslash
36975# newline sequences.
36976
36977ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36978sed -n '
36979s/.\{148\}/&'"$ac_delim"'/g
36980t rset
36981:rset
36982s/^[ ]*#[ ]*define[ ][ ]*/ /
36983t def
36984d
36985:def
36986s/\\$//
36987t bsnl
36988s/["\\]/\\&/g
36989s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36990D["\1"]=" \3"/p
36991s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36992d
36993:bsnl
36994s/["\\]/\\&/g
36995s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36996D["\1"]=" \3\\\\\\n"\\/p
36997t cont
36998s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36999t cont
37000d
37001:cont
37002n
37003s/.\{148\}/&'"$ac_delim"'/g
37004t clear
37005:clear
37006s/\\$//
37007t bsnlc
37008s/["\\]/\\&/g; s/^/"/; s/$/"/p
37009d
37010:bsnlc
37011s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37012b cont
37013' <confdefs.h | sed '
37014s/'"$ac_delim"'/"\\\
37015"/g' >>$CONFIG_STATUS || ac_write_fail=1
37016
37017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37018 for (key in D) D_is_set[key] = 1
37019 FS = ""
37020}
37021/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37022 line = \$ 0
37023 split(line, arg, " ")
37024 if (arg[1] == "#") {
37025 defundef = arg[2]
37026 mac1 = arg[3]
37027 } else {
37028 defundef = substr(arg[1], 2)
37029 mac1 = arg[2]
37030 }
37031 split(mac1, mac2, "(") #)
37032 macro = mac2[1]
37033 prefix = substr(line, 1, index(line, defundef) - 1)
37034 if (D_is_set[macro]) {
37035 # Preserve the white space surrounding the "#".
37036 print prefix "define", macro P[macro] D[macro]
37037 next
37038 } else {
37039 # Replace #undef with comments. This is necessary, for example,
37040 # in the case of _POSIX_SOURCE, which is predefined and required
37041 # on some systems where configure will not decide to define it.
37042 if (defundef == "undef") {
37043 print "/*", prefix defundef, macro, "*/"
37044 next
37045 }
37046 }
37047}
37048{ print }
37049_ACAWK
37050_ACEOF
37051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037052 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037053fi # test -n "$CONFIG_HEADERS"
37054
37055
37056eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37057shift
37058for ac_tag
37059do
37060 case $ac_tag in
37061 :[FHLC]) ac_mode=$ac_tag; continue;;
37062 esac
37063 case $ac_mode$ac_tag in
37064 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037065 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037066 :[FH]-) ac_tag=-:-;;
37067 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37068 esac
37069 ac_save_IFS=$IFS
37070 IFS=:
37071 set x $ac_tag
37072 IFS=$ac_save_IFS
37073 shift
37074 ac_file=$1
37075 shift
37076
37077 case $ac_mode in
37078 :L) ac_source=$1;;
37079 :[FH])
37080 ac_file_inputs=
37081 for ac_f
37082 do
37083 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037084 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037085 *) # Look for the file first in the build tree, then in the source tree
37086 # (if the path is not absolute). The absolute path cannot be DOS-style,
37087 # because $ac_f cannot contain `:'.
37088 test -f "$ac_f" ||
37089 case $ac_f in
37090 [\\/$]*) false;;
37091 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37092 esac ||
cristy98dddb52010-11-04 00:30:15 +000037093 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037094 esac
37095 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037096 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037097 done
37098
37099 # Let's still pretend it is `configure' which instantiates (i.e., don't
37100 # use $as_me), people would be surprised to read:
37101 # /* config.h. Generated by config.status. */
37102 configure_input='Generated from '`
37103 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37104 `' by configure.'
37105 if test x"$ac_file" != x-; then
37106 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037107 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037108$as_echo "$as_me: creating $ac_file" >&6;}
37109 fi
37110 # Neutralize special characters interpreted by sed in replacement strings.
37111 case $configure_input in #(
37112 *\&* | *\|* | *\\* )
37113 ac_sed_conf_input=`$as_echo "$configure_input" |
37114 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37115 *) ac_sed_conf_input=$configure_input;;
37116 esac
37117
37118 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037119 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037120 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037121 esac
37122 ;;
37123 esac
37124
37125 ac_dir=`$as_dirname -- "$ac_file" ||
37126$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37127 X"$ac_file" : 'X\(//\)[^/]' \| \
37128 X"$ac_file" : 'X\(//\)$' \| \
37129 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37130$as_echo X"$ac_file" |
37131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37132 s//\1/
37133 q
37134 }
37135 /^X\(\/\/\)[^/].*/{
37136 s//\1/
37137 q
37138 }
37139 /^X\(\/\/\)$/{
37140 s//\1/
37141 q
37142 }
37143 /^X\(\/\).*/{
37144 s//\1/
37145 q
37146 }
37147 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037148 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037149 ac_builddir=.
37150
37151case "$ac_dir" in
37152.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37153*)
37154 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37155 # A ".." for each directory in $ac_dir_suffix.
37156 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37157 case $ac_top_builddir_sub in
37158 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37159 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37160 esac ;;
37161esac
37162ac_abs_top_builddir=$ac_pwd
37163ac_abs_builddir=$ac_pwd$ac_dir_suffix
37164# for backward compatibility:
37165ac_top_builddir=$ac_top_build_prefix
37166
37167case $srcdir in
37168 .) # We are building in place.
37169 ac_srcdir=.
37170 ac_top_srcdir=$ac_top_builddir_sub
37171 ac_abs_top_srcdir=$ac_pwd ;;
37172 [\\/]* | ?:[\\/]* ) # Absolute name.
37173 ac_srcdir=$srcdir$ac_dir_suffix;
37174 ac_top_srcdir=$srcdir
37175 ac_abs_top_srcdir=$srcdir ;;
37176 *) # Relative name.
37177 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37178 ac_top_srcdir=$ac_top_build_prefix$srcdir
37179 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37180esac
37181ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37182
37183
37184 case $ac_mode in
37185 :F)
37186 #
37187 # CONFIG_FILE
37188 #
37189
37190 case $INSTALL in
37191 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37192 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37193 esac
cristy73bd4a52010-10-05 11:24:23 +000037194 ac_MKDIR_P=$MKDIR_P
37195 case $MKDIR_P in
37196 [\\/$]* | ?:[\\/]* ) ;;
37197 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37198 esac
cristy3ed852e2009-09-05 21:47:34 +000037199_ACEOF
37200
37201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37202# If the template does not know about datarootdir, expand it.
37203# FIXME: This hack should be removed a few years after 2.60.
37204ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037205ac_sed_dataroot='
37206/datarootdir/ {
37207 p
37208 q
37209}
37210/@datadir@/p
37211/@docdir@/p
37212/@infodir@/p
37213/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037214/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037215case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37216*datarootdir*) ac_datarootdir_seen=yes;;
37217*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037219$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37220_ACEOF
37221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37222 ac_datarootdir_hack='
37223 s&@datadir@&$datadir&g
37224 s&@docdir@&$docdir&g
37225 s&@infodir@&$infodir&g
37226 s&@localedir@&$localedir&g
37227 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037228 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037229esac
37230_ACEOF
37231
37232# Neutralize VPATH when `$srcdir' = `.'.
37233# Shell code in configure.ac might set extrasub.
37234# FIXME: do we really want to maintain this feature?
37235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37236ac_sed_extra="$ac_vpsub
37237$extrasub
37238_ACEOF
37239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37240:t
37241/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37242s|@configure_input@|$ac_sed_conf_input|;t t
37243s&@top_builddir@&$ac_top_builddir_sub&;t t
37244s&@top_build_prefix@&$ac_top_build_prefix&;t t
37245s&@srcdir@&$ac_srcdir&;t t
37246s&@abs_srcdir@&$ac_abs_srcdir&;t t
37247s&@top_srcdir@&$ac_top_srcdir&;t t
37248s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37249s&@builddir@&$ac_builddir&;t t
37250s&@abs_builddir@&$ac_abs_builddir&;t t
37251s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37252s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037253s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037254$ac_datarootdir_hack
37255"
cristyda16f162011-02-19 23:52:17 +000037256eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37257 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037258
37259test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037260 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37261 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37262 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037264which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037265$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037266which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037267
cristyda16f162011-02-19 23:52:17 +000037268 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037269 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037270 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37271 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037272 esac \
cristy98dddb52010-11-04 00:30:15 +000037273 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037274 ;;
37275 :H)
37276 #
37277 # CONFIG_HEADER
37278 #
37279 if test x"$ac_file" != x-; then
37280 {
37281 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037282 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37283 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037285 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037286 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037287$as_echo "$as_me: $ac_file is unchanged" >&6;}
37288 else
37289 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037290 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037292 fi
37293 else
37294 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037295 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037296 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037297 fi
cristy73bd4a52010-10-05 11:24:23 +000037298# Compute "$ac_file"'s index in $config_headers.
37299_am_arg="$ac_file"
37300_am_stamp_count=1
37301for _am_header in $config_headers :; do
37302 case $_am_header in
37303 $_am_arg | $_am_arg:* )
37304 break ;;
37305 * )
37306 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37307 esac
37308done
37309echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37310$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37311 X"$_am_arg" : 'X\(//\)[^/]' \| \
37312 X"$_am_arg" : 'X\(//\)$' \| \
37313 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37314$as_echo X"$_am_arg" |
37315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37316 s//\1/
37317 q
37318 }
37319 /^X\(\/\/\)[^/].*/{
37320 s//\1/
37321 q
37322 }
37323 /^X\(\/\/\)$/{
37324 s//\1/
37325 q
37326 }
37327 /^X\(\/\).*/{
37328 s//\1/
37329 q
37330 }
37331 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037332 ;;
37333
cristy8b350f62009-11-15 23:12:43 +000037334 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037335$as_echo "$as_me: executing $ac_file commands" >&6;}
37336 ;;
37337 esac
37338
37339
37340 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037341 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037342ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37343ac_prefix_conf_PKG=`echo MagickCore`
37344ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37345ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37346ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37347if test ".$ac_prefix_conf_INP" = "."; then
37348 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37349 case "$ac_file" in
37350 *.h) ac_prefix_conf_INP=$ac_file ;;
37351 *)
37352 esac
37353 test ".$ac_prefix_conf_INP" != "." && break
37354 done
37355fi
37356if test ".$ac_prefix_conf_INP" = "."; then
37357 case "$ac_prefix_conf_OUT" in
37358 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37359 ;;
37360 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37361 ;;
37362 *) ac_prefix_conf_INP=config.h
37363 ;;
37364 esac
37365fi
37366if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037367 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037368else
37369 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37370 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37371 fi fi
37372 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37373$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37374 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037375 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37376 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37377 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37378 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37379 $as_echo "#endif/" >> conftest.prefix
37380 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37381 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37382 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037383 # now executing _script on _DEF input to create _OUT output file
37384 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37385 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37386 echo ' ' >>$tmp/pconfig.h
37387 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37388
37389 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37390 echo ' ' >>$tmp/pconfig.h
37391 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37392 echo "#endif" >>$tmp/pconfig.h
37393 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37394 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37395$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37396 else
37397 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37398$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37399 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37400 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37401 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37402$as_echo X"$ac_prefix_conf_OUT" |
37403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37404 s//\1/
37405 q
37406 }
37407 /^X\(\/\/\)[^/].*/{
37408 s//\1/
37409 q
37410 }
37411 /^X\(\/\/\)$/{
37412 s//\1/
37413 q
37414 }
37415 /^X\(\/\).*/{
37416 s//\1/
37417 q
37418 }
37419 s/.*/./; q'`
37420 as_dir="$ac_dir"; as_fn_mkdir_p
37421 rm -f "$ac_prefix_conf_OUT"
37422 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37423 fi
37424 cp conftest.prefix _configs.sed
37425 else
cristy98dddb52010-11-04 00:30:15 +000037426 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 +000037427 fi
37428 rm -f conftest.*
37429fi
37430 ;;
37431 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37432 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37433 # are listed without --file. Let's play safe and only enable the eval
37434 # if we detect the quoting.
37435 case $CONFIG_FILES in
37436 *\'*) eval set x "$CONFIG_FILES" ;;
37437 *) set x $CONFIG_FILES ;;
37438 esac
37439 shift
37440 for mf
37441 do
37442 # Strip MF so we end up with the name of the file.
37443 mf=`echo "$mf" | sed -e 's/:.*$//'`
37444 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037445 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037446 # some people rename them; so instead we look at the file content.
37447 # Grep'ing the first line is not enough: some people post-process
37448 # each Makefile.in and add a new line on top of each file to say so.
37449 # Grep'ing the whole file is not good either: AIX grep has a line
37450 # limit of 2048, but all sed's we know have understand at least 4000.
37451 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37452 dirpart=`$as_dirname -- "$mf" ||
37453$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37454 X"$mf" : 'X\(//\)[^/]' \| \
37455 X"$mf" : 'X\(//\)$' \| \
37456 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37457$as_echo X"$mf" |
37458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37459 s//\1/
37460 q
37461 }
37462 /^X\(\/\/\)[^/].*/{
37463 s//\1/
37464 q
37465 }
37466 /^X\(\/\/\)$/{
37467 s//\1/
37468 q
37469 }
37470 /^X\(\/\).*/{
37471 s//\1/
37472 q
37473 }
37474 s/.*/./; q'`
37475 else
37476 continue
37477 fi
37478 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037479 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037480 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37481 test -z "$DEPDIR" && continue
37482 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37483 test -z "am__include" && continue
37484 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037485 # Find all dependency output files, they are included files with
37486 # $(DEPDIR) in their names. We invoke sed twice because it is the
37487 # simplest approach to changing $(DEPDIR) to its actual value in the
37488 # expansion.
37489 for file in `sed -n "
37490 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037491 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037492 # Make sure the directory exists.
37493 test -f "$dirpart/$file" && continue
37494 fdir=`$as_dirname -- "$file" ||
37495$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37496 X"$file" : 'X\(//\)[^/]' \| \
37497 X"$file" : 'X\(//\)$' \| \
37498 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37499$as_echo X"$file" |
37500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37501 s//\1/
37502 q
37503 }
37504 /^X\(\/\/\)[^/].*/{
37505 s//\1/
37506 q
37507 }
37508 /^X\(\/\/\)$/{
37509 s//\1/
37510 q
37511 }
37512 /^X\(\/\).*/{
37513 s//\1/
37514 q
37515 }
37516 s/.*/./; q'`
37517 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37518 # echo "creating $dirpart/$file"
37519 echo '# dummy' > "$dirpart/$file"
37520 done
37521 done
37522}
37523 ;;
37524 "libtool":C)
37525
37526 # See if we are running on zsh, and set the options which allow our
37527 # commands through without removal of \ escapes.
37528 if test -n "${ZSH_VERSION+set}" ; then
37529 setopt NO_GLOB_SUBST
37530 fi
37531
37532 cfgfile="${ofile}T"
37533 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37534 $RM "$cfgfile"
37535
37536 cat <<_LT_EOF >> "$cfgfile"
37537#! $SHELL
37538
37539# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37540# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37541# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37542# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37543#
37544# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037545# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37546# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037547# Written by Gordon Matzigkeit, 1996
37548#
37549# This file is part of GNU Libtool.
37550#
37551# GNU Libtool is free software; you can redistribute it and/or
37552# modify it under the terms of the GNU General Public License as
37553# published by the Free Software Foundation; either version 2 of
37554# the License, or (at your option) any later version.
37555#
37556# As a special exception to the GNU General Public License,
37557# if you distribute this file as part of a program or library that
37558# is built using GNU Libtool, you may include this file under the
37559# same distribution terms that you use for the rest of that program.
37560#
37561# GNU Libtool is distributed in the hope that it will be useful,
37562# but WITHOUT ANY WARRANTY; without even the implied warranty of
37563# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37564# GNU General Public License for more details.
37565#
37566# You should have received a copy of the GNU General Public License
37567# along with GNU Libtool; see the file COPYING. If not, a copy
37568# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37569# obtained by writing to the Free Software Foundation, Inc.,
37570# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37571
37572
37573# The names of the tagged configurations supported by this script.
37574available_tags="CXX "
37575
37576# ### BEGIN LIBTOOL CONFIG
37577
37578# A sed program that does not truncate output.
37579SED=$lt_SED
37580
37581# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37582Xsed="\$SED -e 1s/^X//"
37583
37584# A grep program that handles long lines.
37585GREP=$lt_GREP
37586
37587# An ERE matcher.
37588EGREP=$lt_EGREP
37589
37590# A literal string matcher.
37591FGREP=$lt_FGREP
37592
cristy0c60a692010-11-04 01:09:47 +000037593# Shell to use when invoking shell scripts.
37594SHELL=$lt_SHELL
37595
37596# An echo program that protects backslashes.
37597ECHO=$lt_ECHO
37598
cristy73bd4a52010-10-05 11:24:23 +000037599# Which release of libtool.m4 was used?
37600macro_version=$macro_version
37601macro_revision=$macro_revision
37602
37603# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037604AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037605
37606# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037607DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037608
37609# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037610OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037611
37612# Whether or not to build shared libraries.
37613build_libtool_libs=$enable_shared
37614
37615# Whether or not to build static libraries.
37616build_old_libs=$enable_static
37617
37618# What type of objects to build.
37619pic_mode=$pic_mode
37620
37621# Whether or not to optimize for fast installation.
37622fast_install=$enable_fast_install
37623
cristy99bd5232011-12-07 14:38:20 +000037624# The PATH separator for the build system.
37625PATH_SEPARATOR=$lt_PATH_SEPARATOR
37626
cristy73bd4a52010-10-05 11:24:23 +000037627# The host system.
37628host_alias=$host_alias
37629host=$host
37630host_os=$host_os
37631
37632# The build system.
37633build_alias=$build_alias
37634build=$build
37635build_os=$build_os
37636
37637# A BSD- or MS-compatible name lister.
37638NM=$lt_NM
37639
37640# Whether we need soft or hard links.
37641LN_S=$lt_LN_S
37642
37643# What is the maximum length of a command?
37644max_cmd_len=$max_cmd_len
37645
37646# Object file suffix (normally "o").
37647objext=$ac_objext
37648
37649# Executable file suffix (normally "").
37650exeext=$exeext
37651
37652# whether the shell understands "unset".
37653lt_unset=$lt_unset
37654
37655# turn spaces into newlines.
37656SP2NL=$lt_lt_SP2NL
37657
37658# turn newlines into spaces.
37659NL2SP=$lt_lt_NL2SP
37660
cristyda16f162011-02-19 23:52:17 +000037661# convert \$build file names to \$host format.
37662to_host_file_cmd=$lt_cv_to_host_file_cmd
37663
37664# convert \$build files to toolchain format.
37665to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37666
cristy73bd4a52010-10-05 11:24:23 +000037667# Method to check whether dependent libraries are shared objects.
37668deplibs_check_method=$lt_deplibs_check_method
37669
cristyda16f162011-02-19 23:52:17 +000037670# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037671file_magic_cmd=$lt_file_magic_cmd
37672
cristyda16f162011-02-19 23:52:17 +000037673# How to find potential files when deplibs_check_method = "file_magic".
37674file_magic_glob=$lt_file_magic_glob
37675
37676# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37677want_nocaseglob=$lt_want_nocaseglob
37678
37679# Command to associate shared and link libraries.
37680sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37681
cristy73bd4a52010-10-05 11:24:23 +000037682# The archiver.
37683AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037684
37685# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037686AR_FLAGS=$lt_AR_FLAGS
37687
cristyda16f162011-02-19 23:52:17 +000037688# How to feed a file listing to the archiver.
37689archiver_list_spec=$lt_archiver_list_spec
37690
cristy73bd4a52010-10-05 11:24:23 +000037691# A symbol stripping program.
37692STRIP=$lt_STRIP
37693
37694# Commands used to install an old-style archive.
37695RANLIB=$lt_RANLIB
37696old_postinstall_cmds=$lt_old_postinstall_cmds
37697old_postuninstall_cmds=$lt_old_postuninstall_cmds
37698
cristy0c60a692010-11-04 01:09:47 +000037699# Whether to use a lock for old archive extraction.
37700lock_old_archive_extraction=$lock_old_archive_extraction
37701
cristy73bd4a52010-10-05 11:24:23 +000037702# A C compiler.
37703LTCC=$lt_CC
37704
37705# LTCC compiler flags.
37706LTCFLAGS=$lt_CFLAGS
37707
37708# Take the output of nm and produce a listing of raw symbols and C names.
37709global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37710
37711# Transform the output of nm in a proper C declaration.
37712global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37713
37714# Transform the output of nm in a C name address pair.
37715global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37716
37717# Transform the output of nm in a C name address pair when lib prefix is needed.
37718global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37719
cristyda16f162011-02-19 23:52:17 +000037720# Specify filename containing input files for \$NM.
37721nm_file_list_spec=$lt_nm_file_list_spec
37722
37723# The root where to search for dependent libraries,and in which our libraries should be installed.
37724lt_sysroot=$lt_sysroot
37725
cristy73bd4a52010-10-05 11:24:23 +000037726# The name of the directory that contains temporary libtool files.
37727objdir=$objdir
37728
cristy73bd4a52010-10-05 11:24:23 +000037729# Used to examine libraries when file_magic_cmd begins with "file".
37730MAGIC_CMD=$MAGIC_CMD
37731
37732# Must we lock files when doing compilation?
37733need_locks=$lt_need_locks
37734
cristyda16f162011-02-19 23:52:17 +000037735# Manifest tool.
37736MANIFEST_TOOL=$lt_MANIFEST_TOOL
37737
cristy73bd4a52010-10-05 11:24:23 +000037738# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37739DSYMUTIL=$lt_DSYMUTIL
37740
37741# Tool to change global to local symbols on Mac OS X.
37742NMEDIT=$lt_NMEDIT
37743
37744# Tool to manipulate fat objects and archives on Mac OS X.
37745LIPO=$lt_LIPO
37746
37747# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37748OTOOL=$lt_OTOOL
37749
37750# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37751OTOOL64=$lt_OTOOL64
37752
37753# Old archive suffix (normally "a").
37754libext=$libext
37755
37756# Shared library suffix (normally ".so").
37757shrext_cmds=$lt_shrext_cmds
37758
37759# The commands to extract the exported symbol list from a shared archive.
37760extract_expsyms_cmds=$lt_extract_expsyms_cmds
37761
37762# Variables whose values should be saved in libtool wrapper scripts and
37763# restored at link time.
37764variables_saved_for_relink=$lt_variables_saved_for_relink
37765
37766# Do we need the "lib" prefix for modules?
37767need_lib_prefix=$need_lib_prefix
37768
37769# Do we need a version for libraries?
37770need_version=$need_version
37771
37772# Library versioning type.
37773version_type=$version_type
37774
37775# Shared library runtime path variable.
37776runpath_var=$runpath_var
37777
37778# Shared library path variable.
37779shlibpath_var=$shlibpath_var
37780
37781# Is shlibpath searched before the hard-coded library search path?
37782shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37783
37784# Format of library name prefix.
37785libname_spec=$lt_libname_spec
37786
37787# List of archive names. First name is the real one, the rest are links.
37788# The last name is the one that the linker finds with -lNAME
37789library_names_spec=$lt_library_names_spec
37790
37791# The coded name of the library, if different from the real name.
37792soname_spec=$lt_soname_spec
37793
cristy0c60a692010-11-04 01:09:47 +000037794# Permission mode override for installation of shared libraries.
37795install_override_mode=$lt_install_override_mode
37796
cristy73bd4a52010-10-05 11:24:23 +000037797# Command to use after installation of a shared archive.
37798postinstall_cmds=$lt_postinstall_cmds
37799
37800# Command to use after uninstallation of a shared archive.
37801postuninstall_cmds=$lt_postuninstall_cmds
37802
37803# Commands used to finish a libtool library installation in a directory.
37804finish_cmds=$lt_finish_cmds
37805
37806# As "finish_cmds", except a single script fragment to be evaled but
37807# not shown.
37808finish_eval=$lt_finish_eval
37809
37810# Whether we should hardcode library paths into libraries.
37811hardcode_into_libs=$hardcode_into_libs
37812
37813# Compile-time system search path for libraries.
37814sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37815
37816# Run-time system search path for libraries.
37817sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37818
37819# Whether dlopen is supported.
37820dlopen_support=$enable_dlopen
37821
37822# Whether dlopen of programs is supported.
37823dlopen_self=$enable_dlopen_self
37824
37825# Whether dlopen of statically linked programs is supported.
37826dlopen_self_static=$enable_dlopen_self_static
37827
37828# Commands to strip libraries.
37829old_striplib=$lt_old_striplib
37830striplib=$lt_striplib
37831
37832
37833# The linker used to build libraries.
37834LD=$lt_LD
37835
cristy0c60a692010-11-04 01:09:47 +000037836# How to create reloadable object files.
37837reload_flag=$lt_reload_flag
37838reload_cmds=$lt_reload_cmds
37839
cristy73bd4a52010-10-05 11:24:23 +000037840# Commands used to build an old-style archive.
37841old_archive_cmds=$lt_old_archive_cmds
37842
37843# A language specific compiler.
37844CC=$lt_compiler
37845
37846# Is the compiler the GNU compiler?
37847with_gcc=$GCC
37848
37849# Compiler flag to turn off builtin functions.
37850no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37851
cristy73bd4a52010-10-05 11:24:23 +000037852# Additional compiler flags for building library objects.
37853pic_flag=$lt_lt_prog_compiler_pic
37854
cristyda16f162011-02-19 23:52:17 +000037855# How to pass a linker flag through the compiler.
37856wl=$lt_lt_prog_compiler_wl
37857
cristy73bd4a52010-10-05 11:24:23 +000037858# Compiler flag to prevent dynamic linking.
37859link_static_flag=$lt_lt_prog_compiler_static
37860
37861# Does compiler simultaneously support -c and -o options?
37862compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37863
37864# Whether or not to add -lc for building shared libraries.
37865build_libtool_need_lc=$archive_cmds_need_lc
37866
37867# Whether or not to disallow shared libs when runtime libs are static.
37868allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37869
37870# Compiler flag to allow reflexive dlopens.
37871export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37872
37873# Compiler flag to generate shared objects directly from archives.
37874whole_archive_flag_spec=$lt_whole_archive_flag_spec
37875
37876# Whether the compiler copes with passing no objects directly.
37877compiler_needs_object=$lt_compiler_needs_object
37878
37879# Create an old-style archive from a shared archive.
37880old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37881
37882# Create a temporary old-style archive to link instead of a shared archive.
37883old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37884
37885# Commands used to build a shared archive.
37886archive_cmds=$lt_archive_cmds
37887archive_expsym_cmds=$lt_archive_expsym_cmds
37888
37889# Commands used to build a loadable module if different from building
37890# a shared archive.
37891module_cmds=$lt_module_cmds
37892module_expsym_cmds=$lt_module_expsym_cmds
37893
37894# Whether we are building with GNU ld or not.
37895with_gnu_ld=$lt_with_gnu_ld
37896
37897# Flag that allows shared libraries with undefined symbols to be built.
37898allow_undefined_flag=$lt_allow_undefined_flag
37899
37900# Flag that enforces no undefined symbols.
37901no_undefined_flag=$lt_no_undefined_flag
37902
37903# Flag to hardcode \$libdir into a binary during linking.
37904# This must work even if \$libdir does not exist
37905hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37906
cristy73bd4a52010-10-05 11:24:23 +000037907# Whether we need a single "-rpath" flag with a separated argument.
37908hardcode_libdir_separator=$lt_hardcode_libdir_separator
37909
37910# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37911# DIR into the resulting binary.
37912hardcode_direct=$hardcode_direct
37913
37914# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37915# DIR into the resulting binary and the resulting library dependency is
37916# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37917# library is relocated.
37918hardcode_direct_absolute=$hardcode_direct_absolute
37919
37920# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37921# into the resulting binary.
37922hardcode_minus_L=$hardcode_minus_L
37923
37924# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37925# into the resulting binary.
37926hardcode_shlibpath_var=$hardcode_shlibpath_var
37927
37928# Set to "yes" if building a shared library automatically hardcodes DIR
37929# into the library and all subsequent libraries and executables linked
37930# against it.
37931hardcode_automatic=$hardcode_automatic
37932
37933# Set to yes if linker adds runtime paths of dependent libraries
37934# to runtime path list.
37935inherit_rpath=$inherit_rpath
37936
37937# Whether libtool must link a program against all its dependency libraries.
37938link_all_deplibs=$link_all_deplibs
37939
cristy73bd4a52010-10-05 11:24:23 +000037940# Set to "yes" if exported symbols are required.
37941always_export_symbols=$always_export_symbols
37942
37943# The commands to list exported symbols.
37944export_symbols_cmds=$lt_export_symbols_cmds
37945
37946# Symbols that should not be listed in the preloaded symbols.
37947exclude_expsyms=$lt_exclude_expsyms
37948
37949# Symbols that must always be exported.
37950include_expsyms=$lt_include_expsyms
37951
37952# Commands necessary for linking programs (against libraries) with templates.
37953prelink_cmds=$lt_prelink_cmds
37954
cristyda16f162011-02-19 23:52:17 +000037955# Commands necessary for finishing linking programs.
37956postlink_cmds=$lt_postlink_cmds
37957
cristy73bd4a52010-10-05 11:24:23 +000037958# Specify filename containing input files.
37959file_list_spec=$lt_file_list_spec
37960
37961# How to hardcode a shared library path into an executable.
37962hardcode_action=$hardcode_action
37963
37964# The directories searched by this compiler when creating a shared library.
37965compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37966
37967# Dependencies to place before and after the objects being linked to
37968# create a shared library.
37969predep_objects=$lt_predep_objects
37970postdep_objects=$lt_postdep_objects
37971predeps=$lt_predeps
37972postdeps=$lt_postdeps
37973
37974# The library search path used internally by the compiler when linking
37975# a shared library.
37976compiler_lib_search_path=$lt_compiler_lib_search_path
37977
37978# ### END LIBTOOL CONFIG
37979
37980_LT_EOF
37981
37982 case $host_os in
37983 aix3*)
37984 cat <<\_LT_EOF >> "$cfgfile"
37985# AIX sometimes has problems with the GCC collect2 program. For some
37986# reason, if we set the COLLECT_NAMES environment variable, the problems
37987# vanish in a puff of smoke.
37988if test "X${COLLECT_NAMES+set}" != Xset; then
37989 COLLECT_NAMES=
37990 export COLLECT_NAMES
37991fi
37992_LT_EOF
37993 ;;
37994 esac
37995
37996
37997ltmain="$ac_aux_dir/ltmain.sh"
37998
37999
38000 # We use sed instead of cat because bash on DJGPP gets confused if
38001 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38002 # text mode, it properly converts lines to CR/LF. This bash problem
38003 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038004 sed '$q' "$ltmain" >> "$cfgfile" \
38005 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038006
cristyda16f162011-02-19 23:52:17 +000038007 if test x"$xsi_shell" = xyes; then
38008 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38009func_dirname ()\
38010{\
38011\ case ${1} in\
38012\ */*) func_dirname_result="${1%/*}${2}" ;;\
38013\ * ) func_dirname_result="${3}" ;;\
38014\ esac\
38015} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38016 && mv -f "$cfgfile.tmp" "$cfgfile" \
38017 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38018test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038019
38020
cristyda16f162011-02-19 23:52:17 +000038021 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38022func_basename ()\
38023{\
38024\ func_basename_result="${1##*/}"\
38025} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38026 && mv -f "$cfgfile.tmp" "$cfgfile" \
38027 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38028test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038029
38030
cristyda16f162011-02-19 23:52:17 +000038031 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38032func_dirname_and_basename ()\
38033{\
38034\ case ${1} in\
38035\ */*) func_dirname_result="${1%/*}${2}" ;;\
38036\ * ) func_dirname_result="${3}" ;;\
38037\ esac\
38038\ func_basename_result="${1##*/}"\
38039} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38040 && mv -f "$cfgfile.tmp" "$cfgfile" \
38041 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38042test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038043
cristyda16f162011-02-19 23:52:17 +000038044
38045 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38046func_stripname ()\
38047{\
38048\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38049\ # positional parameters, so assign one to ordinary parameter first.\
38050\ func_stripname_result=${3}\
38051\ func_stripname_result=${func_stripname_result#"${1}"}\
38052\ func_stripname_result=${func_stripname_result%"${2}"}\
38053} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38054 && mv -f "$cfgfile.tmp" "$cfgfile" \
38055 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38056test 0 -eq $? || _lt_function_replace_fail=:
38057
38058
38059 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38060func_split_long_opt ()\
38061{\
38062\ func_split_long_opt_name=${1%%=*}\
38063\ func_split_long_opt_arg=${1#*=}\
38064} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38065 && mv -f "$cfgfile.tmp" "$cfgfile" \
38066 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38067test 0 -eq $? || _lt_function_replace_fail=:
38068
38069
38070 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38071func_split_short_opt ()\
38072{\
38073\ func_split_short_opt_arg=${1#??}\
38074\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38075} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38076 && mv -f "$cfgfile.tmp" "$cfgfile" \
38077 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38078test 0 -eq $? || _lt_function_replace_fail=:
38079
38080
38081 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38082func_lo2o ()\
38083{\
38084\ case ${1} in\
38085\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38086\ *) func_lo2o_result=${1} ;;\
38087\ esac\
38088} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38089 && mv -f "$cfgfile.tmp" "$cfgfile" \
38090 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38091test 0 -eq $? || _lt_function_replace_fail=:
38092
38093
38094 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38095func_xform ()\
38096{\
38097 func_xform_result=${1%.*}.lo\
38098} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38099 && mv -f "$cfgfile.tmp" "$cfgfile" \
38100 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38101test 0 -eq $? || _lt_function_replace_fail=:
38102
38103
38104 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38105func_arith ()\
38106{\
38107 func_arith_result=$(( $* ))\
38108} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38109 && mv -f "$cfgfile.tmp" "$cfgfile" \
38110 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38111test 0 -eq $? || _lt_function_replace_fail=:
38112
38113
38114 sed -e '/^func_len ()$/,/^} # func_len /c\
38115func_len ()\
38116{\
38117 func_len_result=${#1}\
38118} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38119 && mv -f "$cfgfile.tmp" "$cfgfile" \
38120 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38121test 0 -eq $? || _lt_function_replace_fail=:
38122
38123fi
38124
38125if test x"$lt_shell_append" = xyes; then
38126 sed -e '/^func_append ()$/,/^} # func_append /c\
38127func_append ()\
38128{\
38129 eval "${1}+=\\${2}"\
38130} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38131 && mv -f "$cfgfile.tmp" "$cfgfile" \
38132 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38133test 0 -eq $? || _lt_function_replace_fail=:
38134
38135
38136 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38137func_append_quoted ()\
38138{\
38139\ func_quote_for_eval "${2}"\
38140\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38141} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38142 && mv -f "$cfgfile.tmp" "$cfgfile" \
38143 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38144test 0 -eq $? || _lt_function_replace_fail=:
38145
38146
38147 # Save a `func_append' function call where possible by direct use of '+='
38148 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38149 && mv -f "$cfgfile.tmp" "$cfgfile" \
38150 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38151 test 0 -eq $? || _lt_function_replace_fail=:
38152else
38153 # Save a `func_append' function call even when '+=' is not available
38154 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38155 && mv -f "$cfgfile.tmp" "$cfgfile" \
38156 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38157 test 0 -eq $? || _lt_function_replace_fail=:
38158fi
38159
38160if test x"$_lt_function_replace_fail" = x":"; then
38161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38162$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38163fi
38164
38165
38166 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038167 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38168 chmod +x "$ofile"
38169
38170
38171 cat <<_LT_EOF >> "$ofile"
38172
38173# ### BEGIN LIBTOOL TAG CONFIG: CXX
38174
38175# The linker used to build libraries.
38176LD=$lt_LD_CXX
38177
cristy0c60a692010-11-04 01:09:47 +000038178# How to create reloadable object files.
38179reload_flag=$lt_reload_flag_CXX
38180reload_cmds=$lt_reload_cmds_CXX
38181
cristy73bd4a52010-10-05 11:24:23 +000038182# Commands used to build an old-style archive.
38183old_archive_cmds=$lt_old_archive_cmds_CXX
38184
38185# A language specific compiler.
38186CC=$lt_compiler_CXX
38187
38188# Is the compiler the GNU compiler?
38189with_gcc=$GCC_CXX
38190
38191# Compiler flag to turn off builtin functions.
38192no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38193
cristy73bd4a52010-10-05 11:24:23 +000038194# Additional compiler flags for building library objects.
38195pic_flag=$lt_lt_prog_compiler_pic_CXX
38196
cristyda16f162011-02-19 23:52:17 +000038197# How to pass a linker flag through the compiler.
38198wl=$lt_lt_prog_compiler_wl_CXX
38199
cristy73bd4a52010-10-05 11:24:23 +000038200# Compiler flag to prevent dynamic linking.
38201link_static_flag=$lt_lt_prog_compiler_static_CXX
38202
38203# Does compiler simultaneously support -c and -o options?
38204compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38205
38206# Whether or not to add -lc for building shared libraries.
38207build_libtool_need_lc=$archive_cmds_need_lc_CXX
38208
38209# Whether or not to disallow shared libs when runtime libs are static.
38210allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38211
38212# Compiler flag to allow reflexive dlopens.
38213export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38214
38215# Compiler flag to generate shared objects directly from archives.
38216whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38217
38218# Whether the compiler copes with passing no objects directly.
38219compiler_needs_object=$lt_compiler_needs_object_CXX
38220
38221# Create an old-style archive from a shared archive.
38222old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38223
38224# Create a temporary old-style archive to link instead of a shared archive.
38225old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38226
38227# Commands used to build a shared archive.
38228archive_cmds=$lt_archive_cmds_CXX
38229archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38230
38231# Commands used to build a loadable module if different from building
38232# a shared archive.
38233module_cmds=$lt_module_cmds_CXX
38234module_expsym_cmds=$lt_module_expsym_cmds_CXX
38235
38236# Whether we are building with GNU ld or not.
38237with_gnu_ld=$lt_with_gnu_ld_CXX
38238
38239# Flag that allows shared libraries with undefined symbols to be built.
38240allow_undefined_flag=$lt_allow_undefined_flag_CXX
38241
38242# Flag that enforces no undefined symbols.
38243no_undefined_flag=$lt_no_undefined_flag_CXX
38244
38245# Flag to hardcode \$libdir into a binary during linking.
38246# This must work even if \$libdir does not exist
38247hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38248
cristy73bd4a52010-10-05 11:24:23 +000038249# Whether we need a single "-rpath" flag with a separated argument.
38250hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38251
38252# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38253# DIR into the resulting binary.
38254hardcode_direct=$hardcode_direct_CXX
38255
38256# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38257# DIR into the resulting binary and the resulting library dependency is
38258# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38259# library is relocated.
38260hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38261
38262# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38263# into the resulting binary.
38264hardcode_minus_L=$hardcode_minus_L_CXX
38265
38266# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38267# into the resulting binary.
38268hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38269
38270# Set to "yes" if building a shared library automatically hardcodes DIR
38271# into the library and all subsequent libraries and executables linked
38272# against it.
38273hardcode_automatic=$hardcode_automatic_CXX
38274
38275# Set to yes if linker adds runtime paths of dependent libraries
38276# to runtime path list.
38277inherit_rpath=$inherit_rpath_CXX
38278
38279# Whether libtool must link a program against all its dependency libraries.
38280link_all_deplibs=$link_all_deplibs_CXX
38281
cristy73bd4a52010-10-05 11:24:23 +000038282# Set to "yes" if exported symbols are required.
38283always_export_symbols=$always_export_symbols_CXX
38284
38285# The commands to list exported symbols.
38286export_symbols_cmds=$lt_export_symbols_cmds_CXX
38287
38288# Symbols that should not be listed in the preloaded symbols.
38289exclude_expsyms=$lt_exclude_expsyms_CXX
38290
38291# Symbols that must always be exported.
38292include_expsyms=$lt_include_expsyms_CXX
38293
38294# Commands necessary for linking programs (against libraries) with templates.
38295prelink_cmds=$lt_prelink_cmds_CXX
38296
cristyda16f162011-02-19 23:52:17 +000038297# Commands necessary for finishing linking programs.
38298postlink_cmds=$lt_postlink_cmds_CXX
38299
cristy73bd4a52010-10-05 11:24:23 +000038300# Specify filename containing input files.
38301file_list_spec=$lt_file_list_spec_CXX
38302
38303# How to hardcode a shared library path into an executable.
38304hardcode_action=$hardcode_action_CXX
38305
38306# The directories searched by this compiler when creating a shared library.
38307compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38308
38309# Dependencies to place before and after the objects being linked to
38310# create a shared library.
38311predep_objects=$lt_predep_objects_CXX
38312postdep_objects=$lt_postdep_objects_CXX
38313predeps=$lt_predeps_CXX
38314postdeps=$lt_postdeps_CXX
38315
38316# The library search path used internally by the compiler when linking
38317# a shared library.
38318compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38319
38320# ### END LIBTOOL TAG CONFIG: CXX
38321_LT_EOF
38322
38323 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038324 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038325 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038326 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038327 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38328 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38329
38330 esac
38331done # for ac_tag
38332
38333
cristy8b350f62009-11-15 23:12:43 +000038334as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038335_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038336ac_clean_files=$ac_clean_files_save
38337
38338test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038339 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038340
38341
38342# configure is writing to config.log, and then calls config.status.
38343# config.status does its own redirection, appending to config.log.
38344# Unfortunately, on DOS this fails, as config.log is still kept open
38345# by configure, so config.status won't be able to write to it; its
38346# output is simply discarded. So we exec the FD to /dev/null,
38347# effectively closing config.log, so it can be properly (re)opened and
38348# appended to by config.status. When coming back to configure, we
38349# need to make the FD available again.
38350if test "$no_create" != yes; then
38351 ac_cs_success=:
38352 ac_config_status_args=
38353 test "$silent" = yes &&
38354 ac_config_status_args="$ac_config_status_args --quiet"
38355 exec 5>/dev/null
38356 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38357 exec 5>>config.log
38358 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38359 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038360 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038361fi
38362if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038364$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38365fi
38366
38367
38368rm -f magick-version
38369
cristy430a7312010-01-21 20:44:04 +000038370result_dejavu_font_dir='none'
38371if test "${dejavu_font_dir}x" != 'x'; then
38372 result_dejavu_font_dir=$dejavu_font_dir
38373fi
38374
cristy3ed852e2009-09-05 21:47:34 +000038375result_ghostscript_font_dir='none'
38376if test "${ghostscript_font_dir}x" != 'x'; then
38377 result_ghostscript_font_dir=$ghostscript_font_dir
38378fi
38379
38380result_windows_font_dir='none'
38381if test "${windows_font_dir}x" != 'x'; then
38382 result_windows_font_dir=${windows_font_dir}
38383fi
38384
cristyad38abe2012-12-23 23:03:21 +000038385{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038386ImageMagick is configured as follows. Please verify that this configuration
38387matches your expectations.
38388
38389Host system type: $host
38390Build system type: $build
38391
38392 Option Value
38393-------------------------------------------------------------------------------
38394Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38395Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038396Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038397GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38398Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38399High Dynamic Range Imagery
38400 --enable-hdri=$enable_hdri $enable_hdri
38401
38402Delegate Configuration:
38403BZLIB --with-bzlib=$with_bzlib $have_bzlib
38404Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038405Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038406DJVU --with-djvu=$with_djvu $have_djvu
38407DPS --with-dps=$with_dps $have_dps
38408FFTW --with-fftw=$with_fftw $have_fftw
38409FlashPIX --with-fpx=$with_fpx $have_fpx
38410FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38411FreeType --with-freetype=$with_freetype $have_freetype
38412GhostPCL None $PCLDelegate ($PCLVersion)
38413GhostXPS None $XPSDelegate ($XPSVersion)
38414Ghostscript None $PSDelegate ($GSVersion)
38415Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38416Ghostscript lib --with-gslib=$with_gslib $have_gslib
38417Graphviz --with-gvc=$with_gvc $have_gvc
38418JBIG --with-jbig=$with_jbig $have_jbig
38419JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38420JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038421LCMS v1 --with-lcms=$with_lcms $have_lcms
38422LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038423LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038424LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038425LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038426Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38427OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038428PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038429PERL --with-perl=$with_perl $have_perl
38430PNG --with-png=$with_png $have_png
38431RSVG --with-rsvg=$with_rsvg $have_rsvg
38432TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038433WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038434Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038435WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038436X11 --with-x=$with_x $have_x
38437XML --with-xml=$with_xml $have_xml
38438ZLIB --with-zlib=$with_zlib $have_zlib
38439
38440X11 Configuration:
38441 X_CFLAGS = $X_CFLAGS
38442 X_PRE_LIBS = $X_PRE_LIBS
38443 X_LIBS = $X_LIBS
38444 X_EXTRA_LIBS = $X_EXTRA_LIBS
38445
38446Options used to compile and link:
38447 PREFIX = $PREFIX_DIR
38448 EXEC-PREFIX = $EXEC_PREFIX_DIR
38449 VERSION = $PACKAGE_VERSION
38450 CC = $CC
38451 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038452 CPPFLAGS = $MAGICK_CPPFLAGS
38453 PCFLAGS = $MAGICK_PCFLAGS
38454 DEFS = $DEFS
38455 LDFLAGS = $LDFLAGS
38456 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38457 LIBS = $MAGICK_LIBS
38458 CXX = $CXX
38459 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038460 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038461 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038462" >&5
cristyad38abe2012-12-23 23:03:21 +000038463$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038464ImageMagick is configured as follows. Please verify that this configuration
38465matches your expectations.
38466
38467Host system type: $host
38468Build system type: $build
38469
38470 Option Value
38471-------------------------------------------------------------------------------
38472Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38473Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038474Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038475GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38476Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38477High Dynamic Range Imagery
38478 --enable-hdri=$enable_hdri $enable_hdri
38479
38480Delegate Configuration:
38481BZLIB --with-bzlib=$with_bzlib $have_bzlib
38482Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038483Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038484DJVU --with-djvu=$with_djvu $have_djvu
38485DPS --with-dps=$with_dps $have_dps
38486FFTW --with-fftw=$with_fftw $have_fftw
38487FlashPIX --with-fpx=$with_fpx $have_fpx
38488FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38489FreeType --with-freetype=$with_freetype $have_freetype
38490GhostPCL None $PCLDelegate ($PCLVersion)
38491GhostXPS None $XPSDelegate ($XPSVersion)
38492Ghostscript None $PSDelegate ($GSVersion)
38493Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38494Ghostscript lib --with-gslib=$with_gslib $have_gslib
38495Graphviz --with-gvc=$with_gvc $have_gvc
38496JBIG --with-jbig=$with_jbig $have_jbig
38497JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38498JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038499LCMS v1 --with-lcms=$with_lcms $have_lcms
38500LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038501LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038502LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038503LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038504Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38505OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038506PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038507PERL --with-perl=$with_perl $have_perl
38508PNG --with-png=$with_png $have_png
38509RSVG --with-rsvg=$with_rsvg $have_rsvg
38510TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038511WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038512Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038513WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038514X11 --with-x=$with_x $have_x
38515XML --with-xml=$with_xml $have_xml
38516ZLIB --with-zlib=$with_zlib $have_zlib
38517
38518X11 Configuration:
38519 X_CFLAGS = $X_CFLAGS
38520 X_PRE_LIBS = $X_PRE_LIBS
38521 X_LIBS = $X_LIBS
38522 X_EXTRA_LIBS = $X_EXTRA_LIBS
38523
38524Options used to compile and link:
38525 PREFIX = $PREFIX_DIR
38526 EXEC-PREFIX = $EXEC_PREFIX_DIR
38527 VERSION = $PACKAGE_VERSION
38528 CC = $CC
38529 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038530 CPPFLAGS = $MAGICK_CPPFLAGS
38531 PCFLAGS = $MAGICK_PCFLAGS
38532 DEFS = $DEFS
38533 LDFLAGS = $LDFLAGS
38534 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38535 LIBS = $MAGICK_LIBS
38536 CXX = $CXX
38537 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038538 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038539 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038540" >&6; }