blob: a6c487e32ca60c4a2041c544735001b0b4f68050 [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
cristy73bd4a52010-10-05 11:24:23 +0000816FREETYPE_DELEGATE_FALSE
817FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000818FREETYPE_LIBS
819FREETYPE_CFLAGS
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
cristy03f187e2013-01-24 00:22:19 +00001193FREETYPE_CFLAGS
1194FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001195GVC_CFLAGS
1196GVC_LIBS
1197LQR_CFLAGS
1198LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001199LZMA_CFLAGS
1200LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001201OPENEXR_CFLAGS
1202OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001203PANGO_CFLAGS
1204PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001205RSVG_CFLAGS
1206RSVG_LIBS
1207CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001208CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001209
1210
1211# Initialize some variables set by options.
1212ac_init_help=
1213ac_init_version=false
1214ac_unrecognized_opts=
1215ac_unrecognized_sep=
1216# The variables have the same names as the options, with
1217# dashes changed to underlines.
1218cache_file=/dev/null
1219exec_prefix=NONE
1220no_create=
1221no_recursion=
1222prefix=NONE
1223program_prefix=NONE
1224program_suffix=NONE
1225program_transform_name=s,x,x,
1226silent=
1227site=
1228srcdir=
1229verbose=
1230x_includes=NONE
1231x_libraries=NONE
1232
1233# Installation directory options.
1234# These are left unexpanded so users can "make install exec_prefix=/foo"
1235# and all the variables that are supposed to be based on exec_prefix
1236# by default will actually change.
1237# Use braces instead of parens because sh, perl, etc. also accept them.
1238# (The list follows the same order as the GNU Coding Standards.)
1239bindir='${exec_prefix}/bin'
1240sbindir='${exec_prefix}/sbin'
1241libexecdir='${exec_prefix}/libexec'
1242datarootdir='${prefix}/share'
1243datadir='${datarootdir}'
1244sysconfdir='${prefix}/etc'
1245sharedstatedir='${prefix}/com'
1246localstatedir='${prefix}/var'
1247includedir='${prefix}/include'
1248oldincludedir='/usr/include'
1249docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1250infodir='${datarootdir}/info'
1251htmldir='${docdir}'
1252dvidir='${docdir}'
1253pdfdir='${docdir}'
1254psdir='${docdir}'
1255libdir='${exec_prefix}/lib'
1256localedir='${datarootdir}/locale'
1257mandir='${datarootdir}/man'
1258
1259ac_prev=
1260ac_dashdash=
1261for ac_option
1262do
1263 # If the previous option needs an argument, assign it.
1264 if test -n "$ac_prev"; then
1265 eval $ac_prev=\$ac_option
1266 ac_prev=
1267 continue
1268 fi
1269
1270 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001271 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1272 *=) ac_optarg= ;;
1273 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001274 esac
1275
1276 # Accept the important Cygnus configure options, so we can diagnose typos.
1277
1278 case $ac_dashdash$ac_option in
1279 --)
1280 ac_dashdash=yes ;;
1281
1282 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1283 ac_prev=bindir ;;
1284 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1285 bindir=$ac_optarg ;;
1286
1287 -build | --build | --buil | --bui | --bu)
1288 ac_prev=build_alias ;;
1289 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1290 build_alias=$ac_optarg ;;
1291
1292 -cache-file | --cache-file | --cache-fil | --cache-fi \
1293 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1294 ac_prev=cache_file ;;
1295 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1296 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1297 cache_file=$ac_optarg ;;
1298
1299 --config-cache | -C)
1300 cache_file=config.cache ;;
1301
1302 -datadir | --datadir | --datadi | --datad)
1303 ac_prev=datadir ;;
1304 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1305 datadir=$ac_optarg ;;
1306
1307 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1308 | --dataroo | --dataro | --datar)
1309 ac_prev=datarootdir ;;
1310 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1311 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1312 datarootdir=$ac_optarg ;;
1313
1314 -disable-* | --disable-*)
1315 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001318 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001319 ac_useropt_orig=$ac_useropt
1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1322 *"
1323"enable_$ac_useropt"
1324"*) ;;
1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1326 ac_unrecognized_sep=', ';;
1327 esac
1328 eval enable_$ac_useropt=no ;;
1329
1330 -docdir | --docdir | --docdi | --doc | --do)
1331 ac_prev=docdir ;;
1332 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1333 docdir=$ac_optarg ;;
1334
1335 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1336 ac_prev=dvidir ;;
1337 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1338 dvidir=$ac_optarg ;;
1339
1340 -enable-* | --enable-*)
1341 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1342 # Reject names that are not valid shell variable names.
1343 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001344 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001345 ac_useropt_orig=$ac_useropt
1346 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347 case $ac_user_opts in
1348 *"
1349"enable_$ac_useropt"
1350"*) ;;
1351 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1352 ac_unrecognized_sep=', ';;
1353 esac
1354 eval enable_$ac_useropt=\$ac_optarg ;;
1355
1356 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1357 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1358 | --exec | --exe | --ex)
1359 ac_prev=exec_prefix ;;
1360 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1361 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1362 | --exec=* | --exe=* | --ex=*)
1363 exec_prefix=$ac_optarg ;;
1364
1365 -gas | --gas | --ga | --g)
1366 # Obsolete; use --with-gas.
1367 with_gas=yes ;;
1368
1369 -help | --help | --hel | --he | -h)
1370 ac_init_help=long ;;
1371 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1372 ac_init_help=recursive ;;
1373 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1374 ac_init_help=short ;;
1375
1376 -host | --host | --hos | --ho)
1377 ac_prev=host_alias ;;
1378 -host=* | --host=* | --hos=* | --ho=*)
1379 host_alias=$ac_optarg ;;
1380
1381 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1382 ac_prev=htmldir ;;
1383 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1384 | --ht=*)
1385 htmldir=$ac_optarg ;;
1386
1387 -includedir | --includedir | --includedi | --included | --include \
1388 | --includ | --inclu | --incl | --inc)
1389 ac_prev=includedir ;;
1390 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1391 | --includ=* | --inclu=* | --incl=* | --inc=*)
1392 includedir=$ac_optarg ;;
1393
1394 -infodir | --infodir | --infodi | --infod | --info | --inf)
1395 ac_prev=infodir ;;
1396 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1397 infodir=$ac_optarg ;;
1398
1399 -libdir | --libdir | --libdi | --libd)
1400 ac_prev=libdir ;;
1401 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1402 libdir=$ac_optarg ;;
1403
1404 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1405 | --libexe | --libex | --libe)
1406 ac_prev=libexecdir ;;
1407 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1408 | --libexe=* | --libex=* | --libe=*)
1409 libexecdir=$ac_optarg ;;
1410
1411 -localedir | --localedir | --localedi | --localed | --locale)
1412 ac_prev=localedir ;;
1413 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1414 localedir=$ac_optarg ;;
1415
1416 -localstatedir | --localstatedir | --localstatedi | --localstated \
1417 | --localstate | --localstat | --localsta | --localst | --locals)
1418 ac_prev=localstatedir ;;
1419 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1420 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1421 localstatedir=$ac_optarg ;;
1422
1423 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1424 ac_prev=mandir ;;
1425 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1426 mandir=$ac_optarg ;;
1427
1428 -nfp | --nfp | --nf)
1429 # Obsolete; use --without-fp.
1430 with_fp=no ;;
1431
1432 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1433 | --no-cr | --no-c | -n)
1434 no_create=yes ;;
1435
1436 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1437 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1438 no_recursion=yes ;;
1439
1440 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1441 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1442 | --oldin | --oldi | --old | --ol | --o)
1443 ac_prev=oldincludedir ;;
1444 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1445 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1446 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1447 oldincludedir=$ac_optarg ;;
1448
1449 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1450 ac_prev=prefix ;;
1451 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1452 prefix=$ac_optarg ;;
1453
1454 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1455 | --program-pre | --program-pr | --program-p)
1456 ac_prev=program_prefix ;;
1457 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1458 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1459 program_prefix=$ac_optarg ;;
1460
1461 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1462 | --program-suf | --program-su | --program-s)
1463 ac_prev=program_suffix ;;
1464 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1465 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1466 program_suffix=$ac_optarg ;;
1467
1468 -program-transform-name | --program-transform-name \
1469 | --program-transform-nam | --program-transform-na \
1470 | --program-transform-n | --program-transform- \
1471 | --program-transform | --program-transfor \
1472 | --program-transfo | --program-transf \
1473 | --program-trans | --program-tran \
1474 | --progr-tra | --program-tr | --program-t)
1475 ac_prev=program_transform_name ;;
1476 -program-transform-name=* | --program-transform-name=* \
1477 | --program-transform-nam=* | --program-transform-na=* \
1478 | --program-transform-n=* | --program-transform-=* \
1479 | --program-transform=* | --program-transfor=* \
1480 | --program-transfo=* | --program-transf=* \
1481 | --program-trans=* | --program-tran=* \
1482 | --progr-tra=* | --program-tr=* | --program-t=*)
1483 program_transform_name=$ac_optarg ;;
1484
1485 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1486 ac_prev=pdfdir ;;
1487 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1488 pdfdir=$ac_optarg ;;
1489
1490 -psdir | --psdir | --psdi | --psd | --ps)
1491 ac_prev=psdir ;;
1492 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1493 psdir=$ac_optarg ;;
1494
1495 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1496 | -silent | --silent | --silen | --sile | --sil)
1497 silent=yes ;;
1498
1499 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1500 ac_prev=sbindir ;;
1501 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1502 | --sbi=* | --sb=*)
1503 sbindir=$ac_optarg ;;
1504
1505 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1506 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1507 | --sharedst | --shareds | --shared | --share | --shar \
1508 | --sha | --sh)
1509 ac_prev=sharedstatedir ;;
1510 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1511 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1512 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1513 | --sha=* | --sh=*)
1514 sharedstatedir=$ac_optarg ;;
1515
1516 -site | --site | --sit)
1517 ac_prev=site ;;
1518 -site=* | --site=* | --sit=*)
1519 site=$ac_optarg ;;
1520
1521 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1522 ac_prev=srcdir ;;
1523 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1524 srcdir=$ac_optarg ;;
1525
1526 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1527 | --syscon | --sysco | --sysc | --sys | --sy)
1528 ac_prev=sysconfdir ;;
1529 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1530 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1531 sysconfdir=$ac_optarg ;;
1532
1533 -target | --target | --targe | --targ | --tar | --ta | --t)
1534 ac_prev=target_alias ;;
1535 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1536 target_alias=$ac_optarg ;;
1537
1538 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1539 verbose=yes ;;
1540
1541 -version | --version | --versio | --versi | --vers | -V)
1542 ac_init_version=: ;;
1543
1544 -with-* | --with-*)
1545 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1546 # Reject names that are not valid shell variable names.
1547 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001548 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001549 ac_useropt_orig=$ac_useropt
1550 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1551 case $ac_user_opts in
1552 *"
1553"with_$ac_useropt"
1554"*) ;;
1555 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1556 ac_unrecognized_sep=', ';;
1557 esac
1558 eval with_$ac_useropt=\$ac_optarg ;;
1559
1560 -without-* | --without-*)
1561 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1562 # Reject names that are not valid shell variable names.
1563 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001564 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001565 ac_useropt_orig=$ac_useropt
1566 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1567 case $ac_user_opts in
1568 *"
1569"with_$ac_useropt"
1570"*) ;;
1571 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1572 ac_unrecognized_sep=', ';;
1573 esac
1574 eval with_$ac_useropt=no ;;
1575
1576 --x)
1577 # Obsolete; use --with-x.
1578 with_x=yes ;;
1579
1580 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1581 | --x-incl | --x-inc | --x-in | --x-i)
1582 ac_prev=x_includes ;;
1583 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1584 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1585 x_includes=$ac_optarg ;;
1586
1587 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1588 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1589 ac_prev=x_libraries ;;
1590 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1591 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1592 x_libraries=$ac_optarg ;;
1593
cristy98dddb52010-11-04 00:30:15 +00001594 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1595Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001596 ;;
1597
1598 *=*)
1599 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1600 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001601 case $ac_envvar in #(
1602 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001603 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001604 esac
cristy3ed852e2009-09-05 21:47:34 +00001605 eval $ac_envvar=\$ac_optarg
1606 export $ac_envvar ;;
1607
1608 *)
1609 # FIXME: should be removed in autoconf 3.0.
1610 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1611 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1612 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001613 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001614 ;;
1615
1616 esac
1617done
1618
1619if test -n "$ac_prev"; then
1620 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001621 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001622fi
1623
1624if test -n "$ac_unrecognized_opts"; then
1625 case $enable_option_checking in
1626 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001627 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001628 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1629 esac
1630fi
1631
1632# Check all directory arguments for consistency.
1633for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1634 datadir sysconfdir sharedstatedir localstatedir includedir \
1635 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1636 libdir localedir mandir
1637do
1638 eval ac_val=\$$ac_var
1639 # Remove trailing slashes.
1640 case $ac_val in
1641 */ )
1642 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1643 eval $ac_var=\$ac_val;;
1644 esac
1645 # Be sure to have absolute directory names.
1646 case $ac_val in
1647 [\\/$]* | ?:[\\/]* ) continue;;
1648 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1649 esac
cristy98dddb52010-11-04 00:30:15 +00001650 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001651done
1652
1653# There might be people who depend on the old broken behavior: `$host'
1654# used to hold the argument of --host etc.
1655# FIXME: To remove some day.
1656build=$build_alias
1657host=$host_alias
1658target=$target_alias
1659
1660# FIXME: To remove some day.
1661if test "x$host_alias" != x; then
1662 if test "x$build_alias" = x; then
1663 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001664 elif test "x$build_alias" != "x$host_alias"; then
1665 cross_compiling=yes
1666 fi
1667fi
1668
1669ac_tool_prefix=
1670test -n "$host_alias" && ac_tool_prefix=$host_alias-
1671
1672test "$silent" = yes && exec 6>/dev/null
1673
1674
1675ac_pwd=`pwd` && test -n "$ac_pwd" &&
1676ac_ls_di=`ls -di .` &&
1677ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001678 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001679test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001680 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001681
1682
1683# Find the source files, if location was not specified.
1684if test -z "$srcdir"; then
1685 ac_srcdir_defaulted=yes
1686 # Try the directory containing this script, then the parent directory.
1687 ac_confdir=`$as_dirname -- "$as_myself" ||
1688$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1689 X"$as_myself" : 'X\(//\)[^/]' \| \
1690 X"$as_myself" : 'X\(//\)$' \| \
1691 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1692$as_echo X"$as_myself" |
1693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1694 s//\1/
1695 q
1696 }
1697 /^X\(\/\/\)[^/].*/{
1698 s//\1/
1699 q
1700 }
1701 /^X\(\/\/\)$/{
1702 s//\1/
1703 q
1704 }
1705 /^X\(\/\).*/{
1706 s//\1/
1707 q
1708 }
1709 s/.*/./; q'`
1710 srcdir=$ac_confdir
1711 if test ! -r "$srcdir/$ac_unique_file"; then
1712 srcdir=..
1713 fi
1714else
1715 ac_srcdir_defaulted=no
1716fi
1717if test ! -r "$srcdir/$ac_unique_file"; then
1718 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001719 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001720fi
1721ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1722ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001723 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001724 pwd)`
1725# When building in place, set srcdir=.
1726if test "$ac_abs_confdir" = "$ac_pwd"; then
1727 srcdir=.
1728fi
1729# Remove unnecessary trailing slashes from srcdir.
1730# Double slashes in file names in object file debugging info
1731# mess up M-x gdb in Emacs.
1732case $srcdir in
1733*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1734esac
1735for ac_var in $ac_precious_vars; do
1736 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1737 eval ac_env_${ac_var}_value=\$${ac_var}
1738 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1739 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1740done
1741
1742#
1743# Report the --help message.
1744#
1745if test "$ac_init_help" = "long"; then
1746 # Omit some internal or obsolete options to make the list less imposing.
1747 # This message is too long to be a string in the A/UX 3.1 sh.
1748 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001749\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001750
1751Usage: $0 [OPTION]... [VAR=VALUE]...
1752
1753To assign environment variables (e.g., CC, CFLAGS...), specify them as
1754VAR=VALUE. See below for descriptions of some of the useful variables.
1755
1756Defaults for the options are specified in brackets.
1757
1758Configuration:
1759 -h, --help display this help and exit
1760 --help=short display options specific to this package
1761 --help=recursive display the short help of all the included packages
1762 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001763 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001764 --cache-file=FILE cache test results in FILE [disabled]
1765 -C, --config-cache alias for \`--cache-file=config.cache'
1766 -n, --no-create do not create output files
1767 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1768
1769Installation directories:
1770 --prefix=PREFIX install architecture-independent files in PREFIX
1771 [$ac_default_prefix]
1772 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1773 [PREFIX]
1774
1775By default, \`make install' will install all the files in
1776\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1777an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1778for instance \`--prefix=\$HOME'.
1779
1780For better control, use the options below.
1781
1782Fine tuning of the installation directories:
1783 --bindir=DIR user executables [EPREFIX/bin]
1784 --sbindir=DIR system admin executables [EPREFIX/sbin]
1785 --libexecdir=DIR program executables [EPREFIX/libexec]
1786 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1787 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1788 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1789 --libdir=DIR object code libraries [EPREFIX/lib]
1790 --includedir=DIR C header files [PREFIX/include]
1791 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1792 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1793 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1794 --infodir=DIR info documentation [DATAROOTDIR/info]
1795 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1796 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001797 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001798 --htmldir=DIR html documentation [DOCDIR]
1799 --dvidir=DIR dvi documentation [DOCDIR]
1800 --pdfdir=DIR pdf documentation [DOCDIR]
1801 --psdir=DIR ps documentation [DOCDIR]
1802_ACEOF
1803
1804 cat <<\_ACEOF
1805
cristy73bd4a52010-10-05 11:24:23 +00001806Program names:
1807 --program-prefix=PREFIX prepend PREFIX to installed program names
1808 --program-suffix=SUFFIX append SUFFIX to installed program names
1809 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1810
cristy3ed852e2009-09-05 21:47:34 +00001811X features:
1812 --x-includes=DIR X include files are in DIR
1813 --x-libraries=DIR X library files are in DIR
1814
1815System types:
1816 --build=BUILD configure for building on BUILD [guessed]
1817 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1818 --target=TARGET configure for building compilers for TARGET [HOST]
1819_ACEOF
1820fi
1821
1822if test -n "$ac_init_help"; then
1823 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001824 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001825 esac
1826 cat <<\_ACEOF
1827
1828Optional Features:
1829 --disable-option-checking ignore unrecognized --enable/--with options
1830 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1831 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001832 --enable-silent-rules less verbose build output (undo: "make V=1")
1833 --disable-silent-rules verbose build output (undo: "make V=0")
1834 --enable-dependency-tracking
1835 do not reject slow dependency extractors
1836 --disable-dependency-tracking
1837 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001838 --enable-ld-version-script
1839 enable linker version script (default is enabled
1840 when possible)
cristya3824692012-03-30 17:22:07 +00001841 --enable-bounds-checking
1842 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001843 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001844 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001845 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001846 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001847 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001848 --enable-shared[=PKGS] build shared libraries [default=yes]
1849 --enable-static[=PKGS] build static libraries [default=yes]
1850 --enable-fast-install[=PKGS]
1851 optimize for fast installation [default=yes]
1852 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001853 --enable-delegate-build look for delegate libraries in build directory
1854 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001855 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001856 --disable-installed Formally install ImageMagick under PREFIX
1857 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001858 --enable-zero-configuration
1859 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001860 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001861 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001862 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001863 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001864 --enable-maintainer-mode
1865 enable make rules and dependencies not useful (and
1866 sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001867 --enable-ccmalloc enable 'ccmalloc' memory debug support
1868 --enable-efence enable 'efence' memory debug support
1869 --enable-prof enable 'prof' profiling support
1870 --enable-gprof enable 'gprof' profiling support
1871 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001872 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001873 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001874
1875Optional Packages:
1876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001878 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001879 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001880 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1881 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001882 --includearch-dir=DIR ARCH specific include directory
1883 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001884 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001885 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001886 both]
cristyda16f162011-02-19 23:52:17 +00001887 --with-sysroot=DIR Search for dependent libraries within DIR
1888 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001889 --with-modules enable building dynamically loadable modules
1890 --with-method-prefix=PREFIX
1891 prefix MagickCore API methods
1892 --with-quantum-depth=DEPTH
1893 number of bits in a pixel quantum (default 16)
1894 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1895 memory)
1896 --with-frozenpaths freeze delegate paths
1897 --without-magick-plus-plus
1898 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001899 --with-package-release-name=NAME
1900 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001901 --with-perl enable build/install of PerlMagick
1902 --with-perl-options=OPTIONS
1903 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001904 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001905 --with-umem enable umem memory allocation library support
1906 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1907 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001908 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001909 --without-zlib disable ZLIB support
1910 --with-autotrace enable autotrace support
1911 --without-dps disable Display Postscript support
1912 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001913 --with-dejavu-font-dir=DIR
1914 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001915 --without-fftw disable FFTW support
1916 --without-fpx disable FlashPIX support
1917 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001918 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001919 --without-gslib enable Ghostscript library support
1920 --with-fontpath=DIR prepend to default font search path
1921 --with-gs-font-dir=DIR Ghostscript font directory
cristy1b70dc82012-07-01 23:15:05 +00001922 --with-gvc disable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001923 --without-jbig disable JBIG support
1924 --without-jpeg disable JPEG support
1925 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001926 --without-lcms disable lcms (v1.1X) support
1927 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001928 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001929 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001930 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001931 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001932 --without-png disable PNG support
cristy1164d5f2012-08-15 00:58:25 +00001933 --without-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001934 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001935 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001936 --with-windows-font-dir=DIR
1937 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001938 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001939 --without-xml disable XML support
1940
1941Some influential environment variables:
1942 CC C compiler command
1943 CFLAGS C compiler flags
1944 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1945 nonstandard directory <lib dir>
1946 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001947 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001948 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001949 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001950 CXX C++ compiler command
1951 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001952 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001953 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001954 XMKMF Path to xmkmf, Makefile generator for X Window System
1955 AUTOTRACE_CFLAGS
1956 C compiler flags for AUTOTRACE, overriding pkg-config
1957 AUTOTRACE_LIBS
1958 linker flags for AUTOTRACE, overriding pkg-config
1959 FONTCONFIG_CFLAGS
1960 C compiler flags for FONTCONFIG, overriding pkg-config
1961 FONTCONFIG_LIBS
1962 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001963 FREETYPE_CFLAGS
1964 C compiler flags for FREETYPE, overriding pkg-config
1965 FREETYPE_LIBS
1966 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001967 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1968 GVC_LIBS linker flags for GVC, overriding pkg-config
1969 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1970 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001971 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1972 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001973 OPENEXR_CFLAGS
1974 C compiler flags for OPENEXR, overriding pkg-config
1975 OPENEXR_LIBS
1976 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001977 PANGO_CFLAGS
1978 C compiler flags for PANGO, overriding pkg-config
1979 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001980 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1981 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1982 CAIRO_SVG_CFLAGS
1983 C compiler flags for CAIRO_SVG, overriding pkg-config
1984 CAIRO_SVG_LIBS
1985 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001986
1987Use these variables to override the choices made by `configure' or to help
1988it to find libraries and programs with nonstandard names/locations.
1989
1990Report bugs to <http://www.imagemagick.org>.
1991_ACEOF
1992ac_status=$?
1993fi
1994
1995if test "$ac_init_help" = "recursive"; then
1996 # If there are subdirs, report their specific --help.
1997 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1998 test -d "$ac_dir" ||
1999 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2000 continue
2001 ac_builddir=.
2002
2003case "$ac_dir" in
2004.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2005*)
2006 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2007 # A ".." for each directory in $ac_dir_suffix.
2008 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2009 case $ac_top_builddir_sub in
2010 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2011 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2012 esac ;;
2013esac
2014ac_abs_top_builddir=$ac_pwd
2015ac_abs_builddir=$ac_pwd$ac_dir_suffix
2016# for backward compatibility:
2017ac_top_builddir=$ac_top_build_prefix
2018
2019case $srcdir in
2020 .) # We are building in place.
2021 ac_srcdir=.
2022 ac_top_srcdir=$ac_top_builddir_sub
2023 ac_abs_top_srcdir=$ac_pwd ;;
2024 [\\/]* | ?:[\\/]* ) # Absolute name.
2025 ac_srcdir=$srcdir$ac_dir_suffix;
2026 ac_top_srcdir=$srcdir
2027 ac_abs_top_srcdir=$srcdir ;;
2028 *) # Relative name.
2029 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2030 ac_top_srcdir=$ac_top_build_prefix$srcdir
2031 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2032esac
2033ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2034
2035 cd "$ac_dir" || { ac_status=$?; continue; }
2036 # Check for guested configure.
2037 if test -f "$ac_srcdir/configure.gnu"; then
2038 echo &&
2039 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2040 elif test -f "$ac_srcdir/configure"; then
2041 echo &&
2042 $SHELL "$ac_srcdir/configure" --help=recursive
2043 else
2044 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2045 fi || ac_status=$?
2046 cd "$ac_pwd" || { ac_status=$?; break; }
2047 done
2048fi
2049
2050test -n "$ac_init_help" && exit $ac_status
2051if $ac_init_version; then
2052 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002053ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002054generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002055
cristy14fefe52012-05-21 00:59:18 +00002056Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002057This configure script is free software; the Free Software Foundation
2058gives unlimited permission to copy, distribute and modify it.
2059_ACEOF
2060 exit
2061fi
cristy8b350f62009-11-15 23:12:43 +00002062
2063## ------------------------ ##
2064## Autoconf initialization. ##
2065## ------------------------ ##
2066
2067# ac_fn_c_try_compile LINENO
2068# --------------------------
2069# Try to compile conftest.$ac_ext, and return whether this succeeded.
2070ac_fn_c_try_compile ()
2071{
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 rm -f conftest.$ac_objext
2074 if { { ac_try="$ac_compile"
2075case "(($ac_try" in
2076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2077 *) ac_try_echo=$ac_try;;
2078esac
2079eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2080$as_echo "$ac_try_echo"; } >&5
2081 (eval "$ac_compile") 2>conftest.err
2082 ac_status=$?
2083 if test -s conftest.err; then
2084 grep -v '^ *+' conftest.err >conftest.er1
2085 cat conftest.er1 >&5
2086 mv -f conftest.er1 conftest.err
2087 fi
2088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089 test $ac_status = 0; } && {
2090 test -z "$ac_c_werror_flag" ||
2091 test ! -s conftest.err
2092 } && test -s conftest.$ac_objext; then :
2093 ac_retval=0
2094else
2095 $as_echo "$as_me: failed program was:" >&5
2096sed 's/^/| /' conftest.$ac_ext >&5
2097
2098 ac_retval=1
2099fi
cristyda16f162011-02-19 23:52:17 +00002100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002101 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002102
2103} # ac_fn_c_try_compile
2104
cristy95646052009-11-28 23:05:30 +00002105# ac_fn_c_try_cpp LINENO
2106# ----------------------
2107# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2108ac_fn_c_try_cpp ()
2109{
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 if { { ac_try="$ac_cpp conftest.$ac_ext"
2112case "(($ac_try" in
2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114 *) ac_try_echo=$ac_try;;
2115esac
2116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117$as_echo "$ac_try_echo"; } >&5
2118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2119 ac_status=$?
2120 if test -s conftest.err; then
2121 grep -v '^ *+' conftest.err >conftest.er1
2122 cat conftest.er1 >&5
2123 mv -f conftest.er1 conftest.err
2124 fi
2125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002126 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2128 test ! -s conftest.err
2129 }; then :
2130 ac_retval=0
2131else
2132 $as_echo "$as_me: failed program was:" >&5
2133sed 's/^/| /' conftest.$ac_ext >&5
2134
2135 ac_retval=1
2136fi
cristyda16f162011-02-19 23:52:17 +00002137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002138 as_fn_set_status $ac_retval
2139
2140} # ac_fn_c_try_cpp
2141
cristy8b350f62009-11-15 23:12:43 +00002142# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2143# -------------------------------------------------------
2144# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2145# the include files in INCLUDES and setting the cache variable VAR
2146# accordingly.
2147ac_fn_c_check_header_mongrel ()
2148{
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002150 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2152$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002153if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002154 $as_echo_n "(cached) " >&6
2155fi
2156eval ac_res=\$$3
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158$as_echo "$ac_res" >&6; }
2159else
2160 # Is the header compilable?
2161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2162$as_echo_n "checking $2 usability... " >&6; }
2163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164/* end confdefs.h. */
2165$4
2166#include <$2>
2167_ACEOF
2168if ac_fn_c_try_compile "$LINENO"; then :
2169 ac_header_compiler=yes
2170else
2171 ac_header_compiler=no
2172fi
2173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2175$as_echo "$ac_header_compiler" >&6; }
2176
2177# Is the header present?
2178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2179$as_echo_n "checking $2 presence... " >&6; }
2180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181/* end confdefs.h. */
2182#include <$2>
2183_ACEOF
2184if ac_fn_c_try_cpp "$LINENO"; then :
2185 ac_header_preproc=yes
2186else
2187 ac_header_preproc=no
2188fi
cristyda16f162011-02-19 23:52:17 +00002189rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2191$as_echo "$ac_header_preproc" >&6; }
2192
2193# So? What about this header?
2194case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2195 yes:no: )
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2197$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2199$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2200 ;;
2201 no:yes:* )
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2203$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2205$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2207$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2209$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2211$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002212( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002213## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002214## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002215 ) | sed "s/^/$as_me: WARNING: /" >&2
2216 ;;
2217esac
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2219$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002220if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002221 $as_echo_n "(cached) " >&6
2222else
2223 eval "$3=\$ac_header_compiler"
2224fi
2225eval ac_res=\$$3
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2227$as_echo "$ac_res" >&6; }
2228fi
cristyda16f162011-02-19 23:52:17 +00002229 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002230
2231} # ac_fn_c_check_header_mongrel
2232
2233# ac_fn_c_try_run LINENO
2234# ----------------------
2235# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2236# that executables *can* be run.
2237ac_fn_c_try_run ()
2238{
2239 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240 if { { ac_try="$ac_link"
2241case "(($ac_try" in
2242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2243 *) ac_try_echo=$ac_try;;
2244esac
2245eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2246$as_echo "$ac_try_echo"; } >&5
2247 (eval "$ac_link") 2>&5
2248 ac_status=$?
2249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2250 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2251 { { case "(($ac_try" in
2252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2253 *) ac_try_echo=$ac_try;;
2254esac
2255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2256$as_echo "$ac_try_echo"; } >&5
2257 (eval "$ac_try") 2>&5
2258 ac_status=$?
2259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2260 test $ac_status = 0; }; }; then :
2261 ac_retval=0
2262else
2263 $as_echo "$as_me: program exited with status $ac_status" >&5
2264 $as_echo "$as_me: failed program was:" >&5
2265sed 's/^/| /' conftest.$ac_ext >&5
2266
2267 ac_retval=$ac_status
2268fi
2269 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002271 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002272
2273} # ac_fn_c_try_run
2274
2275# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2276# -------------------------------------------------------
2277# Tests whether HEADER exists and can be compiled using the include files in
2278# INCLUDES, setting the cache variable VAR accordingly.
2279ac_fn_c_check_header_compile ()
2280{
2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2283$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002284if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002285 $as_echo_n "(cached) " >&6
2286else
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288/* end confdefs.h. */
2289$4
2290#include <$2>
2291_ACEOF
2292if ac_fn_c_try_compile "$LINENO"; then :
2293 eval "$3=yes"
2294else
2295 eval "$3=no"
2296fi
2297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298fi
2299eval ac_res=\$$3
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2301$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002302 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002303
2304} # ac_fn_c_check_header_compile
2305
cristya0b81c32010-01-22 02:54:33 +00002306# ac_fn_cxx_try_compile LINENO
2307# ----------------------------
2308# Try to compile conftest.$ac_ext, and return whether this succeeded.
2309ac_fn_cxx_try_compile ()
2310{
2311 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2312 rm -f conftest.$ac_objext
2313 if { { ac_try="$ac_compile"
2314case "(($ac_try" in
2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 *) ac_try_echo=$ac_try;;
2317esac
2318eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2319$as_echo "$ac_try_echo"; } >&5
2320 (eval "$ac_compile") 2>conftest.err
2321 ac_status=$?
2322 if test -s conftest.err; then
2323 grep -v '^ *+' conftest.err >conftest.er1
2324 cat conftest.er1 >&5
2325 mv -f conftest.er1 conftest.err
2326 fi
2327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2328 test $ac_status = 0; } && {
2329 test -z "$ac_cxx_werror_flag" ||
2330 test ! -s conftest.err
2331 } && test -s conftest.$ac_objext; then :
2332 ac_retval=0
2333else
2334 $as_echo "$as_me: failed program was:" >&5
2335sed 's/^/| /' conftest.$ac_ext >&5
2336
2337 ac_retval=1
2338fi
cristyda16f162011-02-19 23:52:17 +00002339 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002340 as_fn_set_status $ac_retval
2341
2342} # ac_fn_cxx_try_compile
2343
cristy8b350f62009-11-15 23:12:43 +00002344# ac_fn_c_try_link LINENO
2345# -----------------------
2346# Try to link conftest.$ac_ext, and return whether this succeeded.
2347ac_fn_c_try_link ()
2348{
2349 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2350 rm -f conftest.$ac_objext conftest$ac_exeext
2351 if { { ac_try="$ac_link"
2352case "(($ac_try" in
2353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354 *) ac_try_echo=$ac_try;;
2355esac
2356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2357$as_echo "$ac_try_echo"; } >&5
2358 (eval "$ac_link") 2>conftest.err
2359 ac_status=$?
2360 if test -s conftest.err; then
2361 grep -v '^ *+' conftest.err >conftest.er1
2362 cat conftest.er1 >&5
2363 mv -f conftest.er1 conftest.err
2364 fi
2365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2366 test $ac_status = 0; } && {
2367 test -z "$ac_c_werror_flag" ||
2368 test ! -s conftest.err
2369 } && test -s conftest$ac_exeext && {
2370 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002371 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002372 }; then :
2373 ac_retval=0
2374else
2375 $as_echo "$as_me: failed program was:" >&5
2376sed 's/^/| /' conftest.$ac_ext >&5
2377
2378 ac_retval=1
2379fi
2380 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2381 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2382 # interfere with the next link command; also delete a directory that is
2383 # left behind by Apple's compiler. We do this before executing the actions.
2384 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002385 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002386 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002387
2388} # ac_fn_c_try_link
2389
cristy73bd4a52010-10-05 11:24:23 +00002390# ac_fn_c_check_func LINENO FUNC VAR
2391# ----------------------------------
2392# Tests whether FUNC exists, setting the cache variable VAR accordingly
2393ac_fn_c_check_func ()
2394{
2395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2397$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002398if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002399 $as_echo_n "(cached) " >&6
2400else
2401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2402/* end confdefs.h. */
2403/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2405#define $2 innocuous_$2
2406
2407/* System header to define __stub macros and hopefully few prototypes,
2408 which can conflict with char $2 (); below.
2409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2410 <limits.h> exists even on freestanding compilers. */
2411
2412#ifdef __STDC__
2413# include <limits.h>
2414#else
2415# include <assert.h>
2416#endif
2417
2418#undef $2
2419
2420/* Override any GCC internal prototype to avoid an error.
2421 Use char because int might match the return type of a GCC
2422 builtin and then its argument prototype would still apply. */
2423#ifdef __cplusplus
2424extern "C"
2425#endif
2426char $2 ();
2427/* The GNU C library defines this for functions which it implements
2428 to always fail with ENOSYS. Some functions are actually named
2429 something starting with __ and the normal name is an alias. */
2430#if defined __stub_$2 || defined __stub___$2
2431choke me
2432#endif
2433
2434int
2435main ()
2436{
2437return $2 ();
2438 ;
2439 return 0;
2440}
2441_ACEOF
2442if ac_fn_c_try_link "$LINENO"; then :
2443 eval "$3=yes"
2444else
2445 eval "$3=no"
2446fi
2447rm -f core conftest.err conftest.$ac_objext \
2448 conftest$ac_exeext conftest.$ac_ext
2449fi
2450eval ac_res=\$$3
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2452$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002454
2455} # ac_fn_c_check_func
2456
2457# ac_fn_cxx_try_cpp LINENO
2458# ------------------------
2459# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2460ac_fn_cxx_try_cpp ()
2461{
2462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2463 if { { ac_try="$ac_cpp conftest.$ac_ext"
2464case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2467esac
2468eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2469$as_echo "$ac_try_echo"; } >&5
2470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2471 ac_status=$?
2472 if test -s conftest.err; then
2473 grep -v '^ *+' conftest.err >conftest.er1
2474 cat conftest.er1 >&5
2475 mv -f conftest.er1 conftest.err
2476 fi
2477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002478 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002479 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2480 test ! -s conftest.err
2481 }; then :
2482 ac_retval=0
2483else
2484 $as_echo "$as_me: failed program was:" >&5
2485sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 ac_retval=1
2488fi
cristyda16f162011-02-19 23:52:17 +00002489 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002490 as_fn_set_status $ac_retval
2491
2492} # ac_fn_cxx_try_cpp
2493
2494# ac_fn_cxx_try_link LINENO
2495# -------------------------
2496# Try to link conftest.$ac_ext, and return whether this succeeded.
2497ac_fn_cxx_try_link ()
2498{
2499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2500 rm -f conftest.$ac_objext conftest$ac_exeext
2501 if { { ac_try="$ac_link"
2502case "(($ac_try" in
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2505esac
2506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2507$as_echo "$ac_try_echo"; } >&5
2508 (eval "$ac_link") 2>conftest.err
2509 ac_status=$?
2510 if test -s conftest.err; then
2511 grep -v '^ *+' conftest.err >conftest.er1
2512 cat conftest.er1 >&5
2513 mv -f conftest.er1 conftest.err
2514 fi
2515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2516 test $ac_status = 0; } && {
2517 test -z "$ac_cxx_werror_flag" ||
2518 test ! -s conftest.err
2519 } && test -s conftest$ac_exeext && {
2520 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002521 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002522 }; then :
2523 ac_retval=0
2524else
2525 $as_echo "$as_me: failed program was:" >&5
2526sed 's/^/| /' conftest.$ac_ext >&5
2527
2528 ac_retval=1
2529fi
2530 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2531 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2532 # interfere with the next link command; also delete a directory that is
2533 # left behind by Apple's compiler. We do this before executing the actions.
2534 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002535 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002536 as_fn_set_status $ac_retval
2537
2538} # ac_fn_cxx_try_link
2539
cristy8b350f62009-11-15 23:12:43 +00002540# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2541# -------------------------------------------
2542# Tests whether TYPE exists after having included INCLUDES, setting cache
2543# variable VAR accordingly.
2544ac_fn_c_check_type ()
2545{
2546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2548$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002549if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002550 $as_echo_n "(cached) " >&6
2551else
2552 eval "$3=no"
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554/* end confdefs.h. */
2555$4
2556int
2557main ()
2558{
2559if (sizeof ($2))
2560 return 0;
2561 ;
2562 return 0;
2563}
2564_ACEOF
2565if ac_fn_c_try_compile "$LINENO"; then :
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567/* end confdefs.h. */
2568$4
2569int
2570main ()
2571{
2572if (sizeof (($2)))
2573 return 0;
2574 ;
2575 return 0;
2576}
2577_ACEOF
2578if ac_fn_c_try_compile "$LINENO"; then :
2579
2580else
2581 eval "$3=yes"
2582fi
2583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584fi
2585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586fi
2587eval ac_res=\$$3
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2589$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002591
2592} # ac_fn_c_check_type
2593
cristy92703d82010-04-26 00:18:18 +00002594# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2595# ----------------------------------------------------
2596# Tries to find if the field MEMBER exists in type AGGR, after including
2597# INCLUDES, setting cache variable VAR accordingly.
2598ac_fn_c_check_member ()
2599{
2600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2602$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002603if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002604 $as_echo_n "(cached) " >&6
2605else
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607/* end confdefs.h. */
2608$5
2609int
2610main ()
2611{
2612static $2 ac_aggr;
2613if (ac_aggr.$3)
2614return 0;
2615 ;
2616 return 0;
2617}
2618_ACEOF
2619if ac_fn_c_try_compile "$LINENO"; then :
2620 eval "$4=yes"
2621else
2622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2623/* end confdefs.h. */
2624$5
2625int
2626main ()
2627{
2628static $2 ac_aggr;
2629if (sizeof ac_aggr.$3)
2630return 0;
2631 ;
2632 return 0;
2633}
2634_ACEOF
2635if ac_fn_c_try_compile "$LINENO"; then :
2636 eval "$4=yes"
2637else
2638 eval "$4=no"
2639fi
2640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641fi
2642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643fi
2644eval ac_res=\$$4
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002648
2649} # ac_fn_c_check_member
2650
cristy5eef09f2012-10-16 12:08:28 +00002651# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2652# ---------------------------------------------
2653# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2654# accordingly.
2655ac_fn_c_check_decl ()
2656{
2657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2658 as_decl_name=`echo $2|sed 's/ *(.*//'`
2659 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2661$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2662if eval \${$3+:} false; then :
2663 $as_echo_n "(cached) " >&6
2664else
2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666/* end confdefs.h. */
2667$4
2668int
2669main ()
2670{
2671#ifndef $as_decl_name
2672#ifdef __cplusplus
2673 (void) $as_decl_use;
2674#else
2675 (void) $as_decl_name;
2676#endif
2677#endif
2678
2679 ;
2680 return 0;
2681}
2682_ACEOF
2683if ac_fn_c_try_compile "$LINENO"; then :
2684 eval "$3=yes"
2685else
2686 eval "$3=no"
2687fi
2688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2689fi
2690eval ac_res=\$$3
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692$as_echo "$ac_res" >&6; }
2693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2694
2695} # ac_fn_c_check_decl
2696
cristy501c8042011-05-26 17:46:28 +00002697# ac_fn_c_find_intX_t LINENO BITS VAR
2698# -----------------------------------
2699# Finds a signed integer type with width BITS, setting cache variable VAR
2700# accordingly.
2701ac_fn_c_find_intX_t ()
2702{
2703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2705$as_echo_n "checking for int$2_t... " >&6; }
2706if eval \${$3+:} false; then :
2707 $as_echo_n "(cached) " >&6
2708else
2709 eval "$3=no"
2710 # Order is important - never check a type that is potentially smaller
2711 # than half of the expected target width.
2712 for ac_type in int$2_t 'int' 'long int' \
2713 'long long int' 'short int' 'signed char'; do
2714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2715/* end confdefs.h. */
2716$ac_includes_default
2717 enum { N = $2 / 2 - 1 };
2718int
2719main ()
2720{
2721static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002722test_array [0] = 0;
2723return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002724
2725 ;
2726 return 0;
2727}
2728_ACEOF
2729if ac_fn_c_try_compile "$LINENO"; then :
2730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2731/* end confdefs.h. */
2732$ac_includes_default
2733 enum { N = $2 / 2 - 1 };
2734int
2735main ()
2736{
2737static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2738 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002739test_array [0] = 0;
2740return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002741
2742 ;
2743 return 0;
2744}
2745_ACEOF
2746if ac_fn_c_try_compile "$LINENO"; then :
2747
2748else
2749 case $ac_type in #(
2750 int$2_t) :
2751 eval "$3=yes" ;; #(
2752 *) :
2753 eval "$3=\$ac_type" ;;
2754esac
2755fi
2756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2757fi
2758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2759 if eval test \"x\$"$3"\" = x"no"; then :
2760
2761else
2762 break
2763fi
2764 done
2765fi
2766eval ac_res=\$$3
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2768$as_echo "$ac_res" >&6; }
2769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2770
2771} # ac_fn_c_find_intX_t
2772
2773# ac_fn_c_find_uintX_t LINENO BITS VAR
2774# ------------------------------------
2775# Finds an unsigned integer type with width BITS, setting cache variable VAR
2776# accordingly.
2777ac_fn_c_find_uintX_t ()
2778{
2779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2781$as_echo_n "checking for uint$2_t... " >&6; }
2782if eval \${$3+:} false; then :
2783 $as_echo_n "(cached) " >&6
2784else
2785 eval "$3=no"
2786 # Order is important - never check a type that is potentially smaller
2787 # than half of the expected target width.
2788 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2789 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791/* end confdefs.h. */
2792$ac_includes_default
2793int
2794main ()
2795{
2796static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002797test_array [0] = 0;
2798return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002799
2800 ;
2801 return 0;
2802}
2803_ACEOF
2804if ac_fn_c_try_compile "$LINENO"; then :
2805 case $ac_type in #(
2806 uint$2_t) :
2807 eval "$3=yes" ;; #(
2808 *) :
2809 eval "$3=\$ac_type" ;;
2810esac
2811fi
2812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813 if eval test \"x\$"$3"\" = x"no"; then :
2814
2815else
2816 break
2817fi
2818 done
2819fi
2820eval ac_res=\$$3
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2822$as_echo "$ac_res" >&6; }
2823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2824
2825} # ac_fn_c_find_uintX_t
2826
cristy8b350f62009-11-15 23:12:43 +00002827# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2828# --------------------------------------------
2829# Tries to find the compile-time value of EXPR in a program that includes
2830# INCLUDES, setting VAR accordingly. Returns whether the value could be
2831# computed
2832ac_fn_c_compute_int ()
2833{
2834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2835 if test "$cross_compiling" = yes; then
2836 # Depending upon the size, compute the lo and hi bounds.
2837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2838/* end confdefs.h. */
2839$4
2840int
2841main ()
2842{
2843static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002844test_array [0] = 0;
2845return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002846
2847 ;
2848 return 0;
2849}
2850_ACEOF
2851if ac_fn_c_try_compile "$LINENO"; then :
2852 ac_lo=0 ac_mid=0
2853 while :; do
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855/* end confdefs.h. */
2856$4
2857int
2858main ()
2859{
2860static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002861test_array [0] = 0;
2862return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002863
2864 ;
2865 return 0;
2866}
2867_ACEOF
2868if ac_fn_c_try_compile "$LINENO"; then :
2869 ac_hi=$ac_mid; break
2870else
2871 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2872 if test $ac_lo -le $ac_mid; then
2873 ac_lo= ac_hi=
2874 break
2875 fi
2876 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2877fi
2878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2879 done
2880else
2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882/* end confdefs.h. */
2883$4
2884int
2885main ()
2886{
2887static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002888test_array [0] = 0;
2889return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002890
2891 ;
2892 return 0;
2893}
2894_ACEOF
2895if ac_fn_c_try_compile "$LINENO"; then :
2896 ac_hi=-1 ac_mid=-1
2897 while :; do
2898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2899/* end confdefs.h. */
2900$4
2901int
2902main ()
2903{
2904static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002905test_array [0] = 0;
2906return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002907
2908 ;
2909 return 0;
2910}
2911_ACEOF
2912if ac_fn_c_try_compile "$LINENO"; then :
2913 ac_lo=$ac_mid; break
2914else
2915 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2916 if test $ac_mid -le $ac_hi; then
2917 ac_lo= ac_hi=
2918 break
2919 fi
2920 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2921fi
2922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2923 done
2924else
2925 ac_lo= ac_hi=
2926fi
2927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2928fi
2929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2930# Binary search between lo and hi bounds.
2931while test "x$ac_lo" != "x$ac_hi"; do
2932 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2934/* end confdefs.h. */
2935$4
2936int
2937main ()
2938{
2939static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002940test_array [0] = 0;
2941return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002942
2943 ;
2944 return 0;
2945}
2946_ACEOF
2947if ac_fn_c_try_compile "$LINENO"; then :
2948 ac_hi=$ac_mid
2949else
2950 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2951fi
2952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2953done
2954case $ac_lo in #((
2955?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2956'') ac_retval=1 ;;
2957esac
2958 else
2959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2960/* end confdefs.h. */
2961$4
2962static long int longval () { return $2; }
2963static unsigned long int ulongval () { return $2; }
2964#include <stdio.h>
2965#include <stdlib.h>
2966int
2967main ()
2968{
2969
2970 FILE *f = fopen ("conftest.val", "w");
2971 if (! f)
2972 return 1;
2973 if (($2) < 0)
2974 {
2975 long int i = longval ();
2976 if (i != ($2))
2977 return 1;
2978 fprintf (f, "%ld", i);
2979 }
2980 else
2981 {
2982 unsigned long int i = ulongval ();
2983 if (i != ($2))
2984 return 1;
2985 fprintf (f, "%lu", i);
2986 }
2987 /* Do not output a trailing newline, as this causes \r\n confusion
2988 on some platforms. */
2989 return ferror (f) || fclose (f) != 0;
2990
2991 ;
2992 return 0;
2993}
2994_ACEOF
2995if ac_fn_c_try_run "$LINENO"; then :
2996 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2997else
2998 ac_retval=1
2999fi
3000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3001 conftest.$ac_objext conftest.beam conftest.$ac_ext
3002rm -f conftest.val
3003
3004 fi
cristyda16f162011-02-19 23:52:17 +00003005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003006 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003007
3008} # ac_fn_c_compute_int
3009
3010# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3011# ---------------------------------------------------------
3012# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3013# the include files in INCLUDES and setting the cache variable VAR
3014# accordingly.
3015ac_fn_cxx_check_header_mongrel ()
3016{
3017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003018 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3020$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003021if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003022 $as_echo_n "(cached) " >&6
3023fi
3024eval ac_res=\$$3
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3026$as_echo "$ac_res" >&6; }
3027else
3028 # Is the header compilable?
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3030$as_echo_n "checking $2 usability... " >&6; }
3031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3032/* end confdefs.h. */
3033$4
3034#include <$2>
3035_ACEOF
3036if ac_fn_cxx_try_compile "$LINENO"; then :
3037 ac_header_compiler=yes
3038else
3039 ac_header_compiler=no
3040fi
3041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3043$as_echo "$ac_header_compiler" >&6; }
3044
3045# Is the header present?
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3047$as_echo_n "checking $2 presence... " >&6; }
3048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049/* end confdefs.h. */
3050#include <$2>
3051_ACEOF
3052if ac_fn_cxx_try_cpp "$LINENO"; then :
3053 ac_header_preproc=yes
3054else
3055 ac_header_preproc=no
3056fi
cristyda16f162011-02-19 23:52:17 +00003057rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3059$as_echo "$ac_header_preproc" >&6; }
3060
3061# So? What about this header?
3062case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3063 yes:no: )
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3065$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3067$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3068 ;;
3069 no:yes:* )
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3071$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3073$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3075$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3077$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3079$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003080( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003081## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003082## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003083 ) | sed "s/^/$as_me: WARNING: /" >&2
3084 ;;
3085esac
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3087$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003088if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003089 $as_echo_n "(cached) " >&6
3090else
3091 eval "$3=\$ac_header_compiler"
3092fi
3093eval ac_res=\$$3
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3095$as_echo "$ac_res" >&6; }
3096fi
cristyda16f162011-02-19 23:52:17 +00003097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003098
3099} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003100cat >config.log <<_ACEOF
3101This file contains any messages produced by compilers while
3102running configure, to aid debugging if configure makes a mistake.
3103
cristy29eb34e2011-10-16 00:46:08 +00003104It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003105generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003106
3107 $ $0 $@
3108
3109_ACEOF
3110exec 5>>config.log
3111{
3112cat <<_ASUNAME
3113## --------- ##
3114## Platform. ##
3115## --------- ##
3116
3117hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3118uname -m = `(uname -m) 2>/dev/null || echo unknown`
3119uname -r = `(uname -r) 2>/dev/null || echo unknown`
3120uname -s = `(uname -s) 2>/dev/null || echo unknown`
3121uname -v = `(uname -v) 2>/dev/null || echo unknown`
3122
3123/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3124/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3125
3126/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3127/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3128/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3129/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3130/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3131/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3132/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3133
3134_ASUNAME
3135
3136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137for as_dir in $PATH
3138do
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003141 $as_echo "PATH: $as_dir"
3142 done
cristy3ed852e2009-09-05 21:47:34 +00003143IFS=$as_save_IFS
3144
3145} >&5
3146
3147cat >&5 <<_ACEOF
3148
3149
3150## ----------- ##
3151## Core tests. ##
3152## ----------- ##
3153
3154_ACEOF
3155
3156
3157# Keep a trace of the command line.
3158# Strip out --no-create and --no-recursion so they do not pile up.
3159# Strip out --silent because we don't want to record it for future runs.
3160# Also quote any args containing shell meta-characters.
3161# Make two passes to allow for proper duplicate-argument suppression.
3162ac_configure_args=
3163ac_configure_args0=
3164ac_configure_args1=
3165ac_must_keep_next=false
3166for ac_pass in 1 2
3167do
3168 for ac_arg
3169 do
3170 case $ac_arg in
3171 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3173 | -silent | --silent | --silen | --sile | --sil)
3174 continue ;;
3175 *\'*)
3176 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3177 esac
3178 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003179 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003180 2)
cristy8b350f62009-11-15 23:12:43 +00003181 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003182 if test $ac_must_keep_next = true; then
3183 ac_must_keep_next=false # Got value, back to normal.
3184 else
3185 case $ac_arg in
3186 *=* | --config-cache | -C | -disable-* | --disable-* \
3187 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3188 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3189 | -with-* | --with-* | -without-* | --without-* | --x)
3190 case "$ac_configure_args0 " in
3191 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3192 esac
3193 ;;
3194 -* ) ac_must_keep_next=true ;;
3195 esac
3196 fi
cristy8b350f62009-11-15 23:12:43 +00003197 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003198 ;;
3199 esac
3200 done
3201done
cristy8b350f62009-11-15 23:12:43 +00003202{ ac_configure_args0=; unset ac_configure_args0;}
3203{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003204
3205# When interrupted or exit'd, cleanup temporary files, and complete
3206# config.log. We remove comments because anyway the quotes in there
3207# would cause problems or look ugly.
3208# WARNING: Use '\'' to represent an apostrophe within the trap.
3209# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3210trap 'exit_status=$?
3211 # Save into config.log some information that might help in debugging.
3212 {
3213 echo
3214
cristy98dddb52010-11-04 00:30:15 +00003215 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003216## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003217## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003218 echo
3219 # The following way of writing the cache mishandles newlines in values,
3220(
3221 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3222 eval ac_val=\$$ac_var
3223 case $ac_val in #(
3224 *${as_nl}*)
3225 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003226 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003227$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3228 esac
3229 case $ac_var in #(
3230 _ | IFS | as_nl) ;; #(
3231 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003232 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003233 esac ;;
3234 esac
3235 done
3236 (set) 2>&1 |
3237 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3238 *${as_nl}ac_space=\ *)
3239 sed -n \
3240 "s/'\''/'\''\\\\'\'''\''/g;
3241 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3242 ;; #(
3243 *)
3244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3245 ;;
3246 esac |
3247 sort
3248)
3249 echo
3250
cristy98dddb52010-11-04 00:30:15 +00003251 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003252## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003253## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003254 echo
3255 for ac_var in $ac_subst_vars
3256 do
3257 eval ac_val=\$$ac_var
3258 case $ac_val in
3259 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3260 esac
3261 $as_echo "$ac_var='\''$ac_val'\''"
3262 done | sort
3263 echo
3264
3265 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003266 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003267## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003268## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003269 echo
3270 for ac_var in $ac_subst_files
3271 do
3272 eval ac_val=\$$ac_var
3273 case $ac_val in
3274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3275 esac
3276 $as_echo "$ac_var='\''$ac_val'\''"
3277 done | sort
3278 echo
3279 fi
3280
3281 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003282 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003283## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003284## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003285 echo
3286 cat confdefs.h
3287 echo
3288 fi
3289 test "$ac_signal" != 0 &&
3290 $as_echo "$as_me: caught signal $ac_signal"
3291 $as_echo "$as_me: exit $exit_status"
3292 } >&5
3293 rm -f core *.core core.conftest.* &&
3294 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3295 exit $exit_status
3296' 0
3297for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003298 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003299done
3300ac_signal=0
3301
3302# confdefs.h avoids OS command line length limits that DEFS can exceed.
3303rm -f -r conftest* confdefs.h
3304
cristy8b350f62009-11-15 23:12:43 +00003305$as_echo "/* confdefs.h */" > confdefs.h
3306
cristy3ed852e2009-09-05 21:47:34 +00003307# Predefined preprocessor variables.
3308
3309cat >>confdefs.h <<_ACEOF
3310#define PACKAGE_NAME "$PACKAGE_NAME"
3311_ACEOF
3312
cristy3ed852e2009-09-05 21:47:34 +00003313cat >>confdefs.h <<_ACEOF
3314#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3315_ACEOF
3316
cristy3ed852e2009-09-05 21:47:34 +00003317cat >>confdefs.h <<_ACEOF
3318#define PACKAGE_VERSION "$PACKAGE_VERSION"
3319_ACEOF
3320
cristy3ed852e2009-09-05 21:47:34 +00003321cat >>confdefs.h <<_ACEOF
3322#define PACKAGE_STRING "$PACKAGE_STRING"
3323_ACEOF
3324
cristy3ed852e2009-09-05 21:47:34 +00003325cat >>confdefs.h <<_ACEOF
3326#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3327_ACEOF
3328
cristy8b350f62009-11-15 23:12:43 +00003329cat >>confdefs.h <<_ACEOF
3330#define PACKAGE_URL "$PACKAGE_URL"
3331_ACEOF
3332
cristy3ed852e2009-09-05 21:47:34 +00003333
3334# Let the site file select an alternate cache file if it wants to.
3335# Prefer an explicitly selected file to automatically selected ones.
3336ac_site_file1=NONE
3337ac_site_file2=NONE
3338if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003339 # We do not want a PATH search for config.site.
3340 case $CONFIG_SITE in #((
3341 -*) ac_site_file1=./$CONFIG_SITE;;
3342 */*) ac_site_file1=$CONFIG_SITE;;
3343 *) ac_site_file1=./$CONFIG_SITE;;
3344 esac
cristy3ed852e2009-09-05 21:47:34 +00003345elif test "x$prefix" != xNONE; then
3346 ac_site_file1=$prefix/share/config.site
3347 ac_site_file2=$prefix/etc/config.site
3348else
3349 ac_site_file1=$ac_default_prefix/share/config.site
3350 ac_site_file2=$ac_default_prefix/etc/config.site
3351fi
3352for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3353do
3354 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003355 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003356 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003357$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3358 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003359 . "$ac_site_file" \
3360 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362as_fn_error $? "failed to load site script $ac_site_file
3363See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003364 fi
3365done
3366
3367if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003368 # Some versions of bash will fail to source /dev/null (special files
3369 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3370 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003372$as_echo "$as_me: loading cache $cache_file" >&6;}
3373 case $cache_file in
3374 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3375 *) . "./$cache_file";;
3376 esac
3377 fi
3378else
cristy8b350f62009-11-15 23:12:43 +00003379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003380$as_echo "$as_me: creating cache $cache_file" >&6;}
3381 >$cache_file
3382fi
3383
cristycd4c5312009-11-22 01:19:08 +00003384as_fn_append ac_header_list " stdlib.h"
3385as_fn_append ac_header_list " unistd.h"
3386as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003387# Check that the precious variables saved in the cache have kept the same
3388# value.
3389ac_cache_corrupted=false
3390for ac_var in $ac_precious_vars; do
3391 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3392 eval ac_new_set=\$ac_env_${ac_var}_set
3393 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3394 eval ac_new_val=\$ac_env_${ac_var}_value
3395 case $ac_old_set,$ac_new_set in
3396 set,)
cristy8b350f62009-11-15 23:12:43 +00003397 { $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 +00003398$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3399 ac_cache_corrupted=: ;;
3400 ,set)
cristy8b350f62009-11-15 23:12:43 +00003401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003402$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3403 ac_cache_corrupted=: ;;
3404 ,);;
3405 *)
3406 if test "x$ac_old_val" != "x$ac_new_val"; then
3407 # differences in whitespace do not lead to failure.
3408 ac_old_val_w=`echo x $ac_old_val`
3409 ac_new_val_w=`echo x $ac_new_val`
3410 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003412$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3413 ac_cache_corrupted=:
3414 else
cristy8b350f62009-11-15 23:12:43 +00003415 { $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 +00003416$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3417 eval $ac_var=\$ac_old_val
3418 fi
cristy8b350f62009-11-15 23:12:43 +00003419 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003420$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003421 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003422$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3423 fi;;
3424 esac
3425 # Pass precious variables to config.status.
3426 if test "$ac_new_set" = set; then
3427 case $ac_new_val in
3428 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3429 *) ac_arg=$ac_var=$ac_new_val ;;
3430 esac
3431 case " $ac_configure_args " in
3432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003433 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003434 esac
3435 fi
3436done
3437if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003441$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003442 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003443fi
cristy8b350f62009-11-15 23:12:43 +00003444## -------------------- ##
3445## Main body of script. ##
3446## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003447
3448ac_ext=c
3449ac_cpp='$CPP $CPPFLAGS'
3450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453
3454
3455
3456ac_aux_dir=
3457for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003458 if test -f "$ac_dir/install-sh"; then
3459 ac_aux_dir=$ac_dir
3460 ac_install_sh="$ac_aux_dir/install-sh -c"
3461 break
3462 elif test -f "$ac_dir/install.sh"; then
3463 ac_aux_dir=$ac_dir
3464 ac_install_sh="$ac_aux_dir/install.sh -c"
3465 break
3466 elif test -f "$ac_dir/shtool"; then
3467 ac_aux_dir=$ac_dir
3468 ac_install_sh="$ac_aux_dir/shtool install -c"
3469 break
3470 fi
cristy3ed852e2009-09-05 21:47:34 +00003471done
3472if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003473 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003474fi
3475
3476# These three variables are undocumented and unsupported,
3477# and are intended to be withdrawn in a future Autoconf release.
3478# They can cause serious problems if a builder's source tree is in a directory
3479# whose full name contains unusual characters.
3480ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3481ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3482ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3483
3484
3485
3486
3487ac_config_headers="$ac_config_headers config/config.h"
3488
cristy24fc1fe2010-10-23 21:13:01 +00003489
cristy01ff9f32012-12-01 18:15:29 +00003490ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003491
cristy2df32802012-09-17 01:15:28 +00003492ac_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 +00003493
3494
3495#
3496# Save initial user-tunable values
3497#
3498USER_LIBS=$LIBS
3499for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3500 eval isset=\${$var+set}
3501 if test "$isset" = 'set'; then
3502 eval val=$`echo $var`
3503 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3504 fi
3505done
3506
3507
3508CONFIGURE_ARGS="$0 ${ac_configure_args}"
3509
3510
3511# Source file containing package/library versioning information.
3512. ${srcdir}/version.sh
3513
cristy15a88782010-01-31 23:24:49 +00003514echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003515# Make sure we can run config.sub.
3516$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003517 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003518
cristy8b350f62009-11-15 23:12:43 +00003519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003520$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003521if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003522 $as_echo_n "(cached) " >&6
3523else
3524 ac_build_alias=$build_alias
3525test "x$ac_build_alias" = x &&
3526 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3527test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003528 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003529ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003530 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003531
3532fi
cristy8b350f62009-11-15 23:12:43 +00003533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003534$as_echo "$ac_cv_build" >&6; }
3535case $ac_cv_build in
3536*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003537*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003538esac
3539build=$ac_cv_build
3540ac_save_IFS=$IFS; IFS='-'
3541set x $ac_cv_build
3542shift
3543build_cpu=$1
3544build_vendor=$2
3545shift; shift
3546# Remember, the first character of IFS is used to create $*,
3547# except with old shells:
3548build_os=$*
3549IFS=$ac_save_IFS
3550case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3551
3552
cristy8b350f62009-11-15 23:12:43 +00003553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003554$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003555if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003556 $as_echo_n "(cached) " >&6
3557else
3558 if test "x$host_alias" = x; then
3559 ac_cv_host=$ac_cv_build
3560else
3561 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003562 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003563fi
3564
3565fi
cristy8b350f62009-11-15 23:12:43 +00003566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003567$as_echo "$ac_cv_host" >&6; }
3568case $ac_cv_host in
3569*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003570*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003571esac
3572host=$ac_cv_host
3573ac_save_IFS=$IFS; IFS='-'
3574set x $ac_cv_host
3575shift
3576host_cpu=$1
3577host_vendor=$2
3578shift; shift
3579# Remember, the first character of IFS is used to create $*,
3580# except with old shells:
3581host_os=$*
3582IFS=$ac_save_IFS
3583case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3584
3585
cristy8b350f62009-11-15 23:12:43 +00003586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003587$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003588if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003589 $as_echo_n "(cached) " >&6
3590else
3591 if test "x$target_alias" = x; then
3592 ac_cv_target=$ac_cv_host
3593else
3594 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003595 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003596fi
3597
3598fi
cristy8b350f62009-11-15 23:12:43 +00003599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003600$as_echo "$ac_cv_target" >&6; }
3601case $ac_cv_target in
3602*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003603*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003604esac
3605target=$ac_cv_target
3606ac_save_IFS=$IFS; IFS='-'
3607set x $ac_cv_target
3608shift
3609target_cpu=$1
3610target_vendor=$2
3611shift; shift
3612# Remember, the first character of IFS is used to create $*,
3613# except with old shells:
3614target_os=$*
3615IFS=$ac_save_IFS
3616case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3617
3618
3619# The aliases save the names the user supplied, while $host etc.
3620# will get canonicalized.
3621test -n "$target_alias" &&
3622 test "$program_prefix$program_suffix$program_transform_name" = \
3623 NONENONEs,x,x, &&
3624 program_prefix=${target_alias}-
3625
cristy837d6dc2010-02-27 01:16:57 +00003626
3627
3628
cristy8be34142012-06-17 14:07:18 +00003629
cristy19615b82011-04-13 20:02:01 +00003630MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003631
3632
cristy27d53d62012-07-29 23:30:07 +00003633cat >>confdefs.h <<_ACEOF
3634#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3635_ACEOF
3636
3637
cristy19615b82011-04-13 20:02:01 +00003638MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003639
3640
cristy27d53d62012-07-29 23:30:07 +00003641cat >>confdefs.h <<_ACEOF
3642#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3643_ACEOF
3644
3645
cristy19615b82011-04-13 20:02:01 +00003646MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003647
3648
cristy27d53d62012-07-29 23:30:07 +00003649cat >>confdefs.h <<_ACEOF
3650#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3651_ACEOF
3652
3653
cristy3ed852e2009-09-05 21:47:34 +00003654# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003655MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3656
3657MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3658
cristy03f187e2013-01-24 00:22:19 +00003659MAGICK_SVN_REVISION=10737:10755M
cristyd694ca32011-03-27 21:42:54 +00003660
cristy3ed852e2009-09-05 21:47:34 +00003661
3662
3663# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3665$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003666# Reject unsafe characters in $srcdir or the absolute working directory
3667# name. Accept space and tab only in the latter.
3668am_lf='
3669'
3670case `pwd` in
3671 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003672 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003673esac
3674case $srcdir in
3675 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003676 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003677esac
cristy3ed852e2009-09-05 21:47:34 +00003678
cristyc0890a62012-07-19 00:18:20 +00003679# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003680# arguments. Must try -L first in case configure is actually a
3681# symlink; some systems play weird games with the mod time of symlinks
3682# (eg FreeBSD returns the mod time of the symlink's containing
3683# directory).
3684if (
cristyc0890a62012-07-19 00:18:20 +00003685 am_has_slept=no
3686 for am_try in 1 2; do
3687 echo "timestamp, slept: $am_has_slept" > conftest.file
3688 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3689 if test "$*" = "X"; then
3690 # -L didn't work.
3691 set X `ls -t "$srcdir/configure" conftest.file`
3692 fi
3693 if test "$*" != "X $srcdir/configure conftest.file" \
3694 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003695
cristyc0890a62012-07-19 00:18:20 +00003696 # If neither matched, then we have a broken ls. This can happen
3697 # if, for instance, CONFIG_SHELL is bash and it inherits a
3698 # broken ls alias from the environment. This has actually
3699 # happened. Such a system could not be considered "sane".
3700 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3701 alias in your environment" "$LINENO" 5
3702 fi
3703 if test "$2" = conftest.file || test $am_try -eq 2; then
3704 break
3705 fi
3706 # Just in case.
3707 sleep 1
3708 am_has_slept=yes
3709 done
cristy73bd4a52010-10-05 11:24:23 +00003710 test "$2" = conftest.file
3711 )
3712then
3713 # Ok.
3714 :
3715else
cristy98dddb52010-11-04 00:30:15 +00003716 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003717Check your system clock" "$LINENO" 5
3718fi
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3720$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003721# If we didn't sleep, we still need to ensure time stamps of config.status and
3722# generated files are strictly newer.
3723am_sleep_pid=
3724if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3725 ( sleep 1 ) &
3726 am_sleep_pid=$!
3727fi
cristy73bd4a52010-10-05 11:24:23 +00003728
cristyc0890a62012-07-19 00:18:20 +00003729rm -f conftest.file
3730
3731
3732am__api_version='1.12'
cristy73bd4a52010-10-05 11:24:23 +00003733
3734# Find a good install program. We prefer a C program (faster),
3735# so one script is as good as another. But avoid the broken or
3736# incompatible versions:
3737# SysV /etc/install, /usr/sbin/install
3738# SunOS /usr/etc/install
3739# IRIX /sbin/install
3740# AIX /bin/install
3741# AmigaOS /C/install, which installs bootblocks on floppy discs
3742# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3743# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3744# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3745# OS/2's system install, which has a completely different semantic
3746# ./install, which can be erroneously created by make from ./install.sh.
3747# Reject install programs that cannot install multiple files.
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3749$as_echo_n "checking for a BSD-compatible install... " >&6; }
3750if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003751if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003752 $as_echo_n "(cached) " >&6
3753else
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755for as_dir in $PATH
3756do
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 # Account for people who put trailing slashes in PATH elements.
3760case $as_dir/ in #((
3761 ./ | .// | /[cC]/* | \
3762 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3763 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3764 /usr/ucb/* ) ;;
3765 *)
3766 # OSF1 and SCO ODT 3.0 have their own names for install.
3767 # Don't use installbsd from OSF since it installs stuff as root
3768 # by default.
3769 for ac_prog in ginstall scoinst install; do
3770 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003771 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003772 if test $ac_prog = install &&
3773 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3774 # AIX install. It has an incompatible calling convention.
3775 :
3776 elif test $ac_prog = install &&
3777 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3778 # program-specific install script used by HP pwplus--don't use.
3779 :
3780 else
3781 rm -rf conftest.one conftest.two conftest.dir
3782 echo one > conftest.one
3783 echo two > conftest.two
3784 mkdir conftest.dir
3785 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3786 test -s conftest.one && test -s conftest.two &&
3787 test -s conftest.dir/conftest.one &&
3788 test -s conftest.dir/conftest.two
3789 then
3790 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3791 break 3
3792 fi
3793 fi
3794 fi
3795 done
3796 done
3797 ;;
3798esac
3799
3800 done
3801IFS=$as_save_IFS
3802
3803rm -rf conftest.one conftest.two conftest.dir
3804
3805fi
3806 if test "${ac_cv_path_install+set}" = set; then
3807 INSTALL=$ac_cv_path_install
3808 else
3809 # As a last resort, use the slow shell script. Don't cache a
3810 # value for INSTALL within a source directory, because that will
3811 # break other packages using the cache if that directory is
3812 # removed, or if the value is a relative name.
3813 INSTALL=$ac_install_sh
3814 fi
3815fi
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3817$as_echo "$INSTALL" >&6; }
3818
3819# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3820# It thinks the first close brace ends the variable substitution.
3821test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3822
3823test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3824
3825test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3826
3827test "$program_prefix" != NONE &&
3828 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3829# Use a double $ so make ignores it.
3830test "$program_suffix" != NONE &&
3831 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3832# Double any \ or $.
3833# By default was `s,x,x', remove it if useless.
3834ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3835program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3836
3837# expand $ac_aux_dir to an absolute path
3838am_aux_dir=`cd $ac_aux_dir && pwd`
3839
3840if test x"${MISSING+set}" != xset; then
3841 case $am_aux_dir in
3842 *\ * | *\ *)
3843 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3844 *)
3845 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3846 esac
3847fi
3848# Use eval to expand $SHELL
3849if eval "$MISSING --run true"; then
3850 am_missing_run="$MISSING --run "
3851else
3852 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3854$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003855fi
3856
3857if test x"${install_sh}" != xset; then
3858 case $am_aux_dir in
3859 *\ * | *\ *)
3860 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3861 *)
3862 install_sh="\${SHELL} $am_aux_dir/install-sh"
3863 esac
3864fi
3865
cristyc0890a62012-07-19 00:18:20 +00003866# Installed binaries are usually stripped using 'strip' when the user
3867# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003868# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003869# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003870if test "$cross_compiling" != no; then
3871 if test -n "$ac_tool_prefix"; then
3872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3873set dummy ${ac_tool_prefix}strip; ac_word=$2
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003876if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003877 $as_echo_n "(cached) " >&6
3878else
3879 if test -n "$STRIP"; then
3880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3881else
3882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883for as_dir in $PATH
3884do
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003889 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 break 2
3892 fi
3893done
3894 done
3895IFS=$as_save_IFS
3896
3897fi
3898fi
3899STRIP=$ac_cv_prog_STRIP
3900if test -n "$STRIP"; then
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3902$as_echo "$STRIP" >&6; }
3903else
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905$as_echo "no" >&6; }
3906fi
3907
3908
3909fi
3910if test -z "$ac_cv_prog_STRIP"; then
3911 ac_ct_STRIP=$STRIP
3912 # Extract the first word of "strip", so it can be a program name with args.
3913set dummy strip; ac_word=$2
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003916if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003917 $as_echo_n "(cached) " >&6
3918else
3919 if test -n "$ac_ct_STRIP"; then
3920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3921else
3922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923for as_dir in $PATH
3924do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003929 ac_cv_prog_ac_ct_STRIP="strip"
3930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 break 2
3932 fi
3933done
3934 done
3935IFS=$as_save_IFS
3936
3937fi
3938fi
3939ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3940if test -n "$ac_ct_STRIP"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3942$as_echo "$ac_ct_STRIP" >&6; }
3943else
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945$as_echo "no" >&6; }
3946fi
3947
3948 if test "x$ac_ct_STRIP" = x; then
3949 STRIP=":"
3950 else
3951 case $cross_compiling:$ac_tool_warned in
3952yes:)
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3955ac_tool_warned=yes ;;
3956esac
3957 STRIP=$ac_ct_STRIP
3958 fi
3959else
3960 STRIP="$ac_cv_prog_STRIP"
3961fi
3962
3963fi
3964INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3965
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3967$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3968if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003969 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003970 $as_echo_n "(cached) " >&6
3971else
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_prog in mkdir gmkdir; do
3978 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003979 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003980 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3981 'mkdir (GNU coreutils) '* | \
3982 'mkdir (coreutils) '* | \
3983 'mkdir (fileutils) '4.1*)
3984 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3985 break 3;;
3986 esac
3987 done
3988 done
3989 done
3990IFS=$as_save_IFS
3991
3992fi
3993
3994 test -d ./--version && rmdir ./--version
3995 if test "${ac_cv_path_mkdir+set}" = set; then
3996 MKDIR_P="$ac_cv_path_mkdir -p"
3997 else
3998 # As a last resort, use the slow shell script. Don't cache a
3999 # value for MKDIR_P within a source directory, because that will
4000 # break other packages using the cache if that directory is
4001 # removed, or if the value is a relative name.
4002 MKDIR_P="$ac_install_sh -d"
4003 fi
4004fi
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4006$as_echo "$MKDIR_P" >&6; }
4007
cristy73bd4a52010-10-05 11:24:23 +00004008for ac_prog in gawk mawk nawk awk
4009do
4010 # Extract the first word of "$ac_prog", so it can be a program name with args.
4011set dummy $ac_prog; ac_word=$2
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4013$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004014if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004015 $as_echo_n "(cached) " >&6
4016else
4017 if test -n "$AWK"; then
4018 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4019else
4020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021for as_dir in $PATH
4022do
4023 IFS=$as_save_IFS
4024 test -z "$as_dir" && as_dir=.
4025 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004027 ac_cv_prog_AWK="$ac_prog"
4028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4029 break 2
4030 fi
4031done
4032 done
4033IFS=$as_save_IFS
4034
4035fi
4036fi
4037AWK=$ac_cv_prog_AWK
4038if test -n "$AWK"; then
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4040$as_echo "$AWK" >&6; }
4041else
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4043$as_echo "no" >&6; }
4044fi
4045
4046
4047 test -n "$AWK" && break
4048done
4049
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4051$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4052set x ${MAKE-make}
4053ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004054if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004055 $as_echo_n "(cached) " >&6
4056else
4057 cat >conftest.make <<\_ACEOF
4058SHELL = /bin/sh
4059all:
4060 @echo '@@@%%%=$(MAKE)=@@@%%%'
4061_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004062# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004063case `${MAKE-make} -f conftest.make 2>/dev/null` in
4064 *@@@%%%=?*=@@@%%%*)
4065 eval ac_cv_prog_make_${ac_make}_set=yes;;
4066 *)
4067 eval ac_cv_prog_make_${ac_make}_set=no;;
4068esac
4069rm -f conftest.make
4070fi
4071if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4073$as_echo "yes" >&6; }
4074 SET_MAKE=
4075else
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077$as_echo "no" >&6; }
4078 SET_MAKE="MAKE=${MAKE-make}"
4079fi
4080
4081rm -rf .tst 2>/dev/null
4082mkdir .tst 2>/dev/null
4083if test -d .tst; then
4084 am__leading_dot=.
4085else
4086 am__leading_dot=_
4087fi
4088rmdir .tst 2>/dev/null
4089
cristya448bd22011-10-14 12:38:13 +00004090# Check whether --enable-silent-rules was given.
4091if test "${enable_silent_rules+set}" = set; then :
4092 enableval=$enable_silent_rules;
4093fi
4094
cristyc0890a62012-07-19 00:18:20 +00004095case $enable_silent_rules in # (((
4096 yes) AM_DEFAULT_VERBOSITY=0;;
4097 no) AM_DEFAULT_VERBOSITY=1;;
4098 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004099esac
cristyc3fb77b2012-02-06 01:49:41 +00004100am_make=${MAKE-make}
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4102$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4103if ${am_cv_make_support_nested_variables+:} false; then :
4104 $as_echo_n "(cached) " >&6
4105else
4106 if $as_echo 'TRUE=$(BAR$(V))
4107BAR0=false
4108BAR1=true
4109V=1
4110am__doit:
4111 @$(TRUE)
4112.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4113 am_cv_make_support_nested_variables=yes
4114else
4115 am_cv_make_support_nested_variables=no
4116fi
4117fi
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4119$as_echo "$am_cv_make_support_nested_variables" >&6; }
4120if test $am_cv_make_support_nested_variables = yes; then
4121 AM_V='$(V)'
4122 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4123else
4124 AM_V=$AM_DEFAULT_VERBOSITY
4125 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4126fi
cristya448bd22011-10-14 12:38:13 +00004127AM_BACKSLASH='\'
4128
cristy73bd4a52010-10-05 11:24:23 +00004129if test "`cd $srcdir && pwd`" != "`pwd`"; then
4130 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4131 # is not polluted with repeated "-I."
4132 am__isrc=' -I$(srcdir)'
4133 # test to see if srcdir already configured
4134 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004135 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004136 fi
4137fi
4138
4139# test whether we have cygpath
4140if test -z "$CYGPATH_W"; then
4141 if (cygpath --version) >/dev/null 2>/dev/null; then
4142 CYGPATH_W='cygpath -w'
4143 else
4144 CYGPATH_W=echo
4145 fi
4146fi
4147
4148
4149# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004150 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004151 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004152
4153
cristya448bd22011-10-14 12:38:13 +00004154cat >>confdefs.h <<_ACEOF
4155#define PACKAGE "$PACKAGE"
4156_ACEOF
4157
4158
4159cat >>confdefs.h <<_ACEOF
4160#define VERSION "$VERSION"
4161_ACEOF
4162
cristy73bd4a52010-10-05 11:24:23 +00004163# Some tools Automake needs.
4164
4165ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4166
4167
4168AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4169
4170
4171AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4172
4173
4174AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4175
4176
4177MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4178
cristyc0890a62012-07-19 00:18:20 +00004179# For better backward compatibility. To be removed once Automake 1.9.x
4180# dies out for good. For more background, see:
4181# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4182# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4183mkdir_p='$(MKDIR_P)'
4184
cristy73bd4a52010-10-05 11:24:23 +00004185# We need awk for the "check" target. The system "awk" is bad on
4186# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004187# Always define AMTAR for backward compatibility. Yes, it's still used
4188# in the wild :-( We should find a proper way to deprecate it ...
4189AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004190
cristyc3fb77b2012-02-06 01:49:41 +00004191am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004192
4193
4194
4195
4196
cristy3ed852e2009-09-05 21:47:34 +00004197
4198# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004199# Check whether --enable-silent-rules was given.
4200if test "${enable_silent_rules+set}" = set; then :
4201 enableval=$enable_silent_rules;
4202fi
4203
cristyc0890a62012-07-19 00:18:20 +00004204case $enable_silent_rules in # (((
4205 yes) AM_DEFAULT_VERBOSITY=0;;
4206 no) AM_DEFAULT_VERBOSITY=1;;
4207 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004208esac
cristyc3fb77b2012-02-06 01:49:41 +00004209am_make=${MAKE-make}
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4211$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4212if ${am_cv_make_support_nested_variables+:} false; then :
4213 $as_echo_n "(cached) " >&6
4214else
4215 if $as_echo 'TRUE=$(BAR$(V))
4216BAR0=false
4217BAR1=true
4218V=1
4219am__doit:
4220 @$(TRUE)
4221.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4222 am_cv_make_support_nested_variables=yes
4223else
4224 am_cv_make_support_nested_variables=no
4225fi
4226fi
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4228$as_echo "$am_cv_make_support_nested_variables" >&6; }
4229if test $am_cv_make_support_nested_variables = yes; then
4230 AM_V='$(V)'
4231 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4232else
4233 AM_V=$AM_DEFAULT_VERBOSITY
4234 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4235fi
cristy73bd4a52010-10-05 11:24:23 +00004236AM_BACKSLASH='\'
4237
cristy3ed852e2009-09-05 21:47:34 +00004238
4239MAGICK_LIB_VERSION="0x"
4240if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4241 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4242fi
4243MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4244if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4245 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4246fi
4247MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4248if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4249 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4250fi
4251MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4252
4253
4254# Definition used to define MagickLibVersionText in version.h
4255MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4256
4257
4258# Definition used to define MagickLibVersionNumber in version.h
4259MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4260
4261
4262# Regenerate config.status if ChangeLog or version.sh is updated.
4263CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4264
4265
4266PERLMAINCC=$CC
4267
4268MAGICK_CFLAGS=''
4269MAGICK_CPPFLAGS=$CPPFLAGS_USER
4270MAGICK_PCFLAGS=$CPPFLAGS_USER
4271MAGICK_LDFLAGS=''
4272MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004273MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004274
4275#
4276# Evaluate shell variable equivalents to Makefile directory variables
4277#
4278if test "x$prefix" = xNONE; then
4279 prefix=$ac_default_prefix
4280fi
4281# Let make expand exec_prefix.
4282if test "x$exec_prefix" = xNONE; then
4283 exec_prefix='${prefix}'
4284fi
4285
4286#
4287eval "eval PREFIX_DIR=${prefix}"
4288
4289eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4290
4291eval "eval BIN_DIR=$bindir"
4292
4293eval "eval SBIN_DIR=$sbindir"
4294
4295eval "eval LIBEXEC_DIR=$libexecdir"
4296
4297eval "eval DATA_DIR=$datadir"
4298
cristy4e65ec22012-04-08 01:33:27 +00004299eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004300
cristy3ed852e2009-09-05 21:47:34 +00004301eval "eval SYSCONF_DIR=$sysconfdir"
4302
4303eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4304
4305eval "eval LOCALSTATE_DIR=$localstatedir"
4306
4307eval "eval LIB_DIR=$libdir"
4308
4309eval "eval INCLUDE_DIR=$includedir"
4310
4311eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4312
4313eval "eval INFO_DIR=$infodir"
4314
4315eval "eval MAN_DIR=$mandir"
4316
4317
4318# Get full paths to source and build directories
4319srcdirfull="`cd $srcdir && pwd`"
4320builddir="`pwd`"
4321
4322#
4323# Compute variables useful for running uninstalled software.
4324#
4325MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4326MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4327MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4328MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4329DIRSEP=':'
4330case "${build_os}" in
4331 mingw* )
4332 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4333 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4334 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4335 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4336 DIRSEP=';'
4337 ;;
4338esac
4339case "${host_os}" in
4340 mingw* )
4341 DIRSEP=';'
4342 ;;
4343esac
4344
4345
4346
4347
4348
4349
cristya0b81c32010-01-22 02:54:33 +00004350
4351#
4352# Enable OS features.
4353#
cristy73bd4a52010-10-05 11:24:23 +00004354DEPDIR="${am__leading_dot}deps"
4355
4356ac_config_commands="$ac_config_commands depfiles"
4357
4358
4359am_make=${MAKE-make}
4360cat > confinc << 'END'
4361am__doit:
4362 @echo this is the am__doit target
4363.PHONY: am__doit
4364END
4365# If we don't find an include directive, just comment out the code.
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4367$as_echo_n "checking for style of include used by $am_make... " >&6; }
4368am__include="#"
4369am__quote=
4370_am_result=none
4371# First try GNU make style include.
4372echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004373# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004374case `$am_make -s -f confmf 2> /dev/null` in #(
4375*the\ am__doit\ target*)
4376 am__include=include
4377 am__quote=
4378 _am_result=GNU
4379 ;;
4380esac
4381# Now try BSD make style include.
4382if test "$am__include" = "#"; then
4383 echo '.include "confinc"' > confmf
4384 case `$am_make -s -f confmf 2> /dev/null` in #(
4385 *the\ am__doit\ target*)
4386 am__include=.include
4387 am__quote="\""
4388 _am_result=BSD
4389 ;;
4390 esac
4391fi
4392
4393
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4395$as_echo "$_am_result" >&6; }
4396rm -f confinc confmf
4397
4398# Check whether --enable-dependency-tracking was given.
4399if test "${enable_dependency_tracking+set}" = set; then :
4400 enableval=$enable_dependency_tracking;
4401fi
4402
4403if test "x$enable_dependency_tracking" != xno; then
4404 am_depcomp="$ac_aux_dir/depcomp"
4405 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004406 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004407fi
4408 if test "x$enable_dependency_tracking" != xno; then
4409 AMDEP_TRUE=
4410 AMDEP_FALSE='#'
4411else
4412 AMDEP_TRUE='#'
4413 AMDEP_FALSE=
4414fi
4415
4416
cristy3ed852e2009-09-05 21:47:34 +00004417ac_ext=c
4418ac_cpp='$CPP $CPPFLAGS'
4419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4421ac_compiler_gnu=$ac_cv_c_compiler_gnu
4422if test -n "$ac_tool_prefix"; then
4423 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4424set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004426$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004427if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004428 $as_echo_n "(cached) " >&6
4429else
4430 if test -n "$CC"; then
4431 ac_cv_prog_CC="$CC" # Let the user override the test.
4432else
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004438 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004440 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004442 break 2
4443 fi
4444done
cristy8b350f62009-11-15 23:12:43 +00004445 done
cristy3ed852e2009-09-05 21:47:34 +00004446IFS=$as_save_IFS
4447
4448fi
4449fi
4450CC=$ac_cv_prog_CC
4451if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004453$as_echo "$CC" >&6; }
4454else
cristy8b350f62009-11-15 23:12:43 +00004455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004456$as_echo "no" >&6; }
4457fi
4458
4459
4460fi
4461if test -z "$ac_cv_prog_CC"; then
4462 ac_ct_CC=$CC
4463 # Extract the first word of "gcc", so it can be a program name with args.
4464set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004466$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004467if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004468 $as_echo_n "(cached) " >&6
4469else
4470 if test -n "$ac_ct_CC"; then
4471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4472else
4473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474for as_dir in $PATH
4475do
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004478 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004480 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004482 break 2
4483 fi
4484done
cristy8b350f62009-11-15 23:12:43 +00004485 done
cristy3ed852e2009-09-05 21:47:34 +00004486IFS=$as_save_IFS
4487
4488fi
4489fi
4490ac_ct_CC=$ac_cv_prog_ac_ct_CC
4491if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004493$as_echo "$ac_ct_CC" >&6; }
4494else
cristy8b350f62009-11-15 23:12:43 +00004495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004496$as_echo "no" >&6; }
4497fi
4498
4499 if test "x$ac_ct_CC" = x; then
4500 CC=""
4501 else
4502 case $cross_compiling:$ac_tool_warned in
4503yes:)
cristy8b350f62009-11-15 23:12:43 +00004504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4506ac_tool_warned=yes ;;
4507esac
4508 CC=$ac_ct_CC
4509 fi
4510else
4511 CC="$ac_cv_prog_CC"
4512fi
4513
4514if test -z "$CC"; then
4515 if test -n "$ac_tool_prefix"; then
4516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4517set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004519$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004520if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004521 $as_echo_n "(cached) " >&6
4522else
4523 if test -n "$CC"; then
4524 ac_cv_prog_CC="$CC" # Let the user override the test.
4525else
4526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527for as_dir in $PATH
4528do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004531 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004533 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004535 break 2
4536 fi
4537done
cristy8b350f62009-11-15 23:12:43 +00004538 done
cristy3ed852e2009-09-05 21:47:34 +00004539IFS=$as_save_IFS
4540
4541fi
4542fi
4543CC=$ac_cv_prog_CC
4544if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004546$as_echo "$CC" >&6; }
4547else
cristy8b350f62009-11-15 23:12:43 +00004548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004549$as_echo "no" >&6; }
4550fi
4551
4552
4553 fi
4554fi
4555if test -z "$CC"; then
4556 # Extract the first word of "cc", so it can be a program name with args.
4557set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004559$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004560if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004561 $as_echo_n "(cached) " >&6
4562else
4563 if test -n "$CC"; then
4564 ac_cv_prog_CC="$CC" # Let the user override the test.
4565else
4566 ac_prog_rejected=no
4567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568for as_dir in $PATH
4569do
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004572 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004574 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4575 ac_prog_rejected=yes
4576 continue
4577 fi
4578 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004580 break 2
4581 fi
4582done
cristy8b350f62009-11-15 23:12:43 +00004583 done
cristy3ed852e2009-09-05 21:47:34 +00004584IFS=$as_save_IFS
4585
4586if test $ac_prog_rejected = yes; then
4587 # We found a bogon in the path, so make sure we never use it.
4588 set dummy $ac_cv_prog_CC
4589 shift
4590 if test $# != 0; then
4591 # We chose a different compiler from the bogus one.
4592 # However, it has the same basename, so the bogon will be chosen
4593 # first if we set CC to just the basename; use the full file name.
4594 shift
4595 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4596 fi
4597fi
4598fi
4599fi
4600CC=$ac_cv_prog_CC
4601if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004603$as_echo "$CC" >&6; }
4604else
cristy8b350f62009-11-15 23:12:43 +00004605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004606$as_echo "no" >&6; }
4607fi
4608
4609
4610fi
4611if test -z "$CC"; then
4612 if test -n "$ac_tool_prefix"; then
4613 for ac_prog in cl.exe
4614 do
4615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4616set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004618$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004619if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004620 $as_echo_n "(cached) " >&6
4621else
4622 if test -n "$CC"; then
4623 ac_cv_prog_CC="$CC" # Let the user override the test.
4624else
4625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626for as_dir in $PATH
4627do
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004630 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004632 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004634 break 2
4635 fi
4636done
cristy8b350f62009-11-15 23:12:43 +00004637 done
cristy3ed852e2009-09-05 21:47:34 +00004638IFS=$as_save_IFS
4639
4640fi
4641fi
4642CC=$ac_cv_prog_CC
4643if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004645$as_echo "$CC" >&6; }
4646else
cristy8b350f62009-11-15 23:12:43 +00004647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004648$as_echo "no" >&6; }
4649fi
4650
4651
4652 test -n "$CC" && break
4653 done
4654fi
4655if test -z "$CC"; then
4656 ac_ct_CC=$CC
4657 for ac_prog in cl.exe
4658do
4659 # Extract the first word of "$ac_prog", so it can be a program name with args.
4660set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004662$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004663if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004664 $as_echo_n "(cached) " >&6
4665else
4666 if test -n "$ac_ct_CC"; then
4667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4668else
4669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670for as_dir in $PATH
4671do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004674 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004676 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004678 break 2
4679 fi
4680done
cristy8b350f62009-11-15 23:12:43 +00004681 done
cristy3ed852e2009-09-05 21:47:34 +00004682IFS=$as_save_IFS
4683
4684fi
4685fi
4686ac_ct_CC=$ac_cv_prog_ac_ct_CC
4687if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004689$as_echo "$ac_ct_CC" >&6; }
4690else
cristy8b350f62009-11-15 23:12:43 +00004691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004692$as_echo "no" >&6; }
4693fi
4694
4695
4696 test -n "$ac_ct_CC" && break
4697done
4698
4699 if test "x$ac_ct_CC" = x; then
4700 CC=""
4701 else
4702 case $cross_compiling:$ac_tool_warned in
4703yes:)
cristy8b350f62009-11-15 23:12:43 +00004704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4706ac_tool_warned=yes ;;
4707esac
4708 CC=$ac_ct_CC
4709 fi
4710fi
4711
4712fi
4713
4714
cristy8b350f62009-11-15 23:12:43 +00004715test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004717as_fn_error $? "no acceptable C compiler found in \$PATH
4718See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004719
4720# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004721$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004722set X $ac_compile
4723ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004724for ac_option in --version -v -V -qversion; do
4725 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004726case "(($ac_try" in
4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728 *) ac_try_echo=$ac_try;;
4729esac
cristy8b350f62009-11-15 23:12:43 +00004730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4731$as_echo "$ac_try_echo"; } >&5
4732 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004733 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004734 if test -s conftest.err; then
4735 sed '10a\
4736... rest of stderr output deleted ...
4737 10q' conftest.err >conftest.er1
4738 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004739 fi
cristycd4c5312009-11-22 01:19:08 +00004740 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4742 test $ac_status = 0; }
4743done
cristy3ed852e2009-09-05 21:47:34 +00004744
cristy8b350f62009-11-15 23:12:43 +00004745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004746/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004747
cristy3ed852e2009-09-05 21:47:34 +00004748int
4749main ()
4750{
4751
4752 ;
4753 return 0;
4754}
4755_ACEOF
4756ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004757ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004758# Try to create an executable without -o first, disregard a.out.
4759# It will help us diagnose broken compilers, and finding out an intuition
4760# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4762$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004763ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4764
4765# The possible output files:
4766ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4767
4768ac_rmfiles=
4769for ac_file in $ac_files
4770do
4771 case $ac_file in
4772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4773 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4774 esac
4775done
4776rm -f $ac_rmfiles
4777
cristy8b350f62009-11-15 23:12:43 +00004778if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004779case "(($ac_try" in
4780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4781 *) ac_try_echo=$ac_try;;
4782esac
cristy8b350f62009-11-15 23:12:43 +00004783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4784$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004785 (eval "$ac_link_default") 2>&5
4786 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4788 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004789 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4790# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4791# in a Makefile. We should not override ac_cv_exeext if it was cached,
4792# so that the user can short-circuit this test for compilers unknown to
4793# Autoconf.
4794for ac_file in $ac_files ''
4795do
4796 test -f "$ac_file" || continue
4797 case $ac_file in
4798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4799 ;;
4800 [ab].out )
4801 # We found the default executable, but exeext='' is most
4802 # certainly right.
4803 break;;
4804 *.* )
cristy8b350f62009-11-15 23:12:43 +00004805 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004806 then :; else
4807 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4808 fi
4809 # We set ac_cv_exeext here because the later test for it is not
4810 # safe: cross compilers may not add the suffix if given an `-o'
4811 # argument, so we may need to know it at that point already.
4812 # Even if this section looks crufty: it has the advantage of
4813 # actually working.
4814 break;;
4815 * )
4816 break;;
4817 esac
4818done
4819test "$ac_cv_exeext" = no && ac_cv_exeext=
4820
4821else
4822 ac_file=''
4823fi
cristy8b350f62009-11-15 23:12:43 +00004824if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4826$as_echo "no" >&6; }
4827$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004828sed 's/^/| /' conftest.$ac_ext >&5
4829
cristy8b350f62009-11-15 23:12:43 +00004830{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004832as_fn_error 77 "C compiler cannot create executables
4833See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004834else
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4836$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004837fi
cristycd4c5312009-11-22 01:19:08 +00004838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4839$as_echo_n "checking for C compiler default output file name... " >&6; }
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4841$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004842ac_exeext=$ac_cv_exeext
4843
cristycd4c5312009-11-22 01:19:08 +00004844rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004845ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004847$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004848if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004849case "(($ac_try" in
4850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4852esac
cristy8b350f62009-11-15 23:12:43 +00004853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4854$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004855 (eval "$ac_link") 2>&5
4856 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4858 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004859 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4860# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4861# work properly (i.e., refer to `conftest.exe'), while it won't with
4862# `rm'.
4863for ac_file in conftest.exe conftest conftest.*; do
4864 test -f "$ac_file" || continue
4865 case $ac_file in
4866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4867 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4868 break;;
4869 * ) break;;
4870 esac
4871done
4872else
cristy8b350f62009-11-15 23:12:43 +00004873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004875as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4876See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004877fi
cristycd4c5312009-11-22 01:19:08 +00004878rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004880$as_echo "$ac_cv_exeext" >&6; }
4881
4882rm -f conftest.$ac_ext
4883EXEEXT=$ac_cv_exeext
4884ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886/* end confdefs.h. */
4887#include <stdio.h>
4888int
4889main ()
4890{
4891FILE *f = fopen ("conftest.out", "w");
4892 return ferror (f) || fclose (f) != 0;
4893
4894 ;
4895 return 0;
4896}
4897_ACEOF
4898ac_clean_files="$ac_clean_files conftest.out"
4899# Check that the compiler produces executables we can run. If not, either
4900# the compiler is broken, or we cross compile.
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4902$as_echo_n "checking whether we are cross compiling... " >&6; }
4903if test "$cross_compiling" != yes; then
4904 { { ac_try="$ac_link"
4905case "(($ac_try" in
4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4908esac
4909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4910$as_echo "$ac_try_echo"; } >&5
4911 (eval "$ac_link") 2>&5
4912 ac_status=$?
4913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4914 test $ac_status = 0; }
4915 if { ac_try='./conftest$ac_cv_exeext'
4916 { { case "(($ac_try" in
4917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4918 *) ac_try_echo=$ac_try;;
4919esac
4920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4921$as_echo "$ac_try_echo"; } >&5
4922 (eval "$ac_try") 2>&5
4923 ac_status=$?
4924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4925 test $ac_status = 0; }; }; then
4926 cross_compiling=no
4927 else
4928 if test "$cross_compiling" = maybe; then
4929 cross_compiling=yes
4930 else
4931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004933as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004934If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004935See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004936 fi
4937 fi
4938fi
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4940$as_echo "$cross_compiling" >&6; }
4941
4942rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4943ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004945$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004946if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004947 $as_echo_n "(cached) " >&6
4948else
cristy8b350f62009-11-15 23:12:43 +00004949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004950/* end confdefs.h. */
4951
4952int
4953main ()
4954{
4955
4956 ;
4957 return 0;
4958}
4959_ACEOF
4960rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004961if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004962case "(($ac_try" in
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4965esac
cristy8b350f62009-11-15 23:12:43 +00004966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4967$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004968 (eval "$ac_compile") 2>&5
4969 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4971 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004972 for ac_file in conftest.o conftest.obj conftest.*; do
4973 test -f "$ac_file" || continue;
4974 case $ac_file in
4975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4976 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4977 break;;
4978 esac
4979done
4980else
4981 $as_echo "$as_me: failed program was:" >&5
4982sed 's/^/| /' conftest.$ac_ext >&5
4983
cristy8b350f62009-11-15 23:12:43 +00004984{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004986as_fn_error $? "cannot compute suffix of object files: cannot compile
4987See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004988fi
cristy3ed852e2009-09-05 21:47:34 +00004989rm -f conftest.$ac_cv_objext conftest.$ac_ext
4990fi
cristy8b350f62009-11-15 23:12:43 +00004991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004992$as_echo "$ac_cv_objext" >&6; }
4993OBJEXT=$ac_cv_objext
4994ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004996$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004997if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004998 $as_echo_n "(cached) " >&6
4999else
cristy8b350f62009-11-15 23:12:43 +00005000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005001/* end confdefs.h. */
5002
5003int
5004main ()
5005{
5006#ifndef __GNUC__
5007 choke me
5008#endif
5009
5010 ;
5011 return 0;
5012}
5013_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005014if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005015 ac_compiler_gnu=yes
5016else
cristy8b350f62009-11-15 23:12:43 +00005017 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005018fi
cristy3ed852e2009-09-05 21:47:34 +00005019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5020ac_cv_c_compiler_gnu=$ac_compiler_gnu
5021
5022fi
cristy8b350f62009-11-15 23:12:43 +00005023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005024$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5025if test $ac_compiler_gnu = yes; then
5026 GCC=yes
5027else
5028 GCC=
5029fi
5030ac_test_CFLAGS=${CFLAGS+set}
5031ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005033$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005034if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005035 $as_echo_n "(cached) " >&6
5036else
5037 ac_save_c_werror_flag=$ac_c_werror_flag
5038 ac_c_werror_flag=yes
5039 ac_cv_prog_cc_g=no
5040 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005042/* end confdefs.h. */
5043
5044int
5045main ()
5046{
5047
5048 ;
5049 return 0;
5050}
5051_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005052if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005053 ac_cv_prog_cc_g=yes
5054else
cristy8b350f62009-11-15 23:12:43 +00005055 CFLAGS=""
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005057/* end confdefs.h. */
5058
5059int
5060main ()
5061{
5062
5063 ;
5064 return 0;
5065}
5066_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005067if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005068
cristy8b350f62009-11-15 23:12:43 +00005069else
5070 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005071 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005073/* end confdefs.h. */
5074
5075int
5076main ()
5077{
5078
5079 ;
5080 return 0;
5081}
5082_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005083if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005084 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005085fi
cristy3ed852e2009-09-05 21:47:34 +00005086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087fi
cristy3ed852e2009-09-05 21:47:34 +00005088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089fi
cristy3ed852e2009-09-05 21:47:34 +00005090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091 ac_c_werror_flag=$ac_save_c_werror_flag
5092fi
cristy8b350f62009-11-15 23:12:43 +00005093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005094$as_echo "$ac_cv_prog_cc_g" >&6; }
5095if test "$ac_test_CFLAGS" = set; then
5096 CFLAGS=$ac_save_CFLAGS
5097elif test $ac_cv_prog_cc_g = yes; then
5098 if test "$GCC" = yes; then
5099 CFLAGS="-g -O2"
5100 else
5101 CFLAGS="-g"
5102 fi
5103else
5104 if test "$GCC" = yes; then
5105 CFLAGS="-O2"
5106 else
5107 CFLAGS=
5108 fi
5109fi
cristy8b350f62009-11-15 23:12:43 +00005110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005111$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005112if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005113 $as_echo_n "(cached) " >&6
5114else
5115 ac_cv_prog_cc_c89=no
5116ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005118/* end confdefs.h. */
5119#include <stdarg.h>
5120#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005121struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005122/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5123struct buf { int x; };
5124FILE * (*rcsopen) (struct buf *, struct stat *, int);
5125static char *e (p, i)
5126 char **p;
5127 int i;
5128{
5129 return p[i];
5130}
5131static char *f (char * (*g) (char **, int), char **p, ...)
5132{
5133 char *s;
5134 va_list v;
5135 va_start (v,p);
5136 s = g (p, va_arg (v,int));
5137 va_end (v);
5138 return s;
5139}
5140
5141/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5142 function prototypes and stuff, but not '\xHH' hex character constants.
5143 These don't provoke an error unfortunately, instead are silently treated
5144 as 'x'. The following induces an error, until -std is added to get
5145 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5146 array size at least. It's necessary to write '\x00'==0 to get something
5147 that's true only with -std. */
5148int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5149
5150/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5151 inside strings and character constants. */
5152#define FOO(x) 'x'
5153int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5154
5155int test (int i, double x);
5156struct s1 {int (*f) (int a);};
5157struct s2 {int (*f) (double a);};
5158int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5159int argc;
5160char **argv;
5161int
5162main ()
5163{
5164return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5165 ;
5166 return 0;
5167}
5168_ACEOF
5169for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5170 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5171do
5172 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005173 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005174 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005175fi
cristy3ed852e2009-09-05 21:47:34 +00005176rm -f core conftest.err conftest.$ac_objext
5177 test "x$ac_cv_prog_cc_c89" != "xno" && break
5178done
5179rm -f conftest.$ac_ext
5180CC=$ac_save_CC
5181
5182fi
5183# AC_CACHE_VAL
5184case "x$ac_cv_prog_cc_c89" in
5185 x)
cristy8b350f62009-11-15 23:12:43 +00005186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005187$as_echo "none needed" >&6; } ;;
5188 xno)
cristy8b350f62009-11-15 23:12:43 +00005189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005190$as_echo "unsupported" >&6; } ;;
5191 *)
5192 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005194$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5195esac
cristy8b350f62009-11-15 23:12:43 +00005196if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005197
cristy8b350f62009-11-15 23:12:43 +00005198fi
cristy3ed852e2009-09-05 21:47:34 +00005199
5200ac_ext=c
5201ac_cpp='$CPP $CPPFLAGS'
5202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5204ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005205
cristy73bd4a52010-10-05 11:24:23 +00005206depcc="$CC" am_compiler_list=
5207
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5209$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005210if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005211 $as_echo_n "(cached) " >&6
5212else
5213 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5214 # We make a subdir and do the tests there. Otherwise we can end up
5215 # making bogus files that we don't know about and never remove. For
5216 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005217 # making a dummy file named 'D' -- because '-MD' means "put the output
5218 # in D".
cristy7247bba2012-02-05 16:37:27 +00005219 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005220 mkdir conftest.dir
5221 # Copy depcomp to subdir because otherwise we won't find it if we're
5222 # using a relative directory.
5223 cp "$am_depcomp" conftest.dir
5224 cd conftest.dir
5225 # We will build objects and dependencies in a subdirectory because
5226 # it helps to detect inapplicable dependency modes. For instance
5227 # both Tru64's cc and ICC support -MD to output dependencies as a
5228 # side effect of compilation, but ICC will put the dependencies in
5229 # the current directory while Tru64 will put them in the object
5230 # directory.
5231 mkdir sub
5232
5233 am_cv_CC_dependencies_compiler_type=none
5234 if test "$am_compiler_list" = ""; then
5235 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5236 fi
5237 am__universal=false
5238 case " $depcc " in #(
5239 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5240 esac
5241
5242 for depmode in $am_compiler_list; do
5243 # Setup a source with many dependencies, because some compilers
5244 # like to wrap large dependency lists on column 80 (with \), and
5245 # we should not choose a depcomp mode which is confused by this.
5246 #
5247 # We need to recreate these files for each test, as the compiler may
5248 # overwrite some of them when testing with obscure command lines.
5249 # This happens at least with the AIX C compiler.
5250 : > sub/conftest.c
5251 for i in 1 2 3 4 5 6; do
5252 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005253 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5254 # Solaris 10 /bin/sh.
5255 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005256 done
5257 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5258
cristyc0890a62012-07-19 00:18:20 +00005259 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005260 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005261 # handle '-M -o', and we need to detect this. Also, some Intel
5262 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005263 am__obj=sub/conftest.${OBJEXT-o}
5264 am__minus_obj="-o $am__obj"
5265 case $depmode in
5266 gcc)
5267 # This depmode causes a compiler race in universal mode.
5268 test "$am__universal" = false || continue
5269 ;;
5270 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005271 # After this tag, mechanisms are not by side-effect, so they'll
5272 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005273 if test "x$enable_dependency_tracking" = xyes; then
5274 continue
5275 else
5276 break
5277 fi
5278 ;;
cristy7247bba2012-02-05 16:37:27 +00005279 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005280 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005281 # not run yet. These depmodes are late enough in the game, and
5282 # so weak that their functioning should not be impacted.
5283 am__obj=conftest.${OBJEXT-o}
5284 am__minus_obj=
5285 ;;
5286 none) break ;;
5287 esac
5288 if depmode=$depmode \
5289 source=sub/conftest.c object=$am__obj \
5290 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5291 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5292 >/dev/null 2>conftest.err &&
5293 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5294 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5295 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5296 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5297 # icc doesn't choke on unknown options, it will just issue warnings
5298 # or remarks (even with -Werror). So we grep stderr for any message
5299 # that says an option was ignored or not supported.
5300 # When given -MP, icc 7.0 and 7.1 complain thusly:
5301 # icc: Command line warning: ignoring option '-M'; no argument required
5302 # The diagnosis changed in icc 8.0:
5303 # icc: Command line remark: option '-MP' not supported
5304 if (grep 'ignoring option' conftest.err ||
5305 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5306 am_cv_CC_dependencies_compiler_type=$depmode
5307 break
5308 fi
5309 fi
5310 done
5311
5312 cd ..
5313 rm -rf conftest.dir
5314else
5315 am_cv_CC_dependencies_compiler_type=none
5316fi
5317
5318fi
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5320$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5321CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5322
5323 if
5324 test "x$enable_dependency_tracking" != xno \
5325 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5326 am__fastdepCC_TRUE=
5327 am__fastdepCC_FALSE='#'
5328else
5329 am__fastdepCC_TRUE='#'
5330 am__fastdepCC_FALSE=
5331fi
5332
5333
cristy3ed852e2009-09-05 21:47:34 +00005334
cristya0b81c32010-01-22 02:54:33 +00005335ac_ext=c
5336ac_cpp='$CPP $CPPFLAGS'
5337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5339ac_compiler_gnu=$ac_cv_c_compiler_gnu
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5341$as_echo_n "checking how to run the C preprocessor... " >&6; }
5342# On Suns, sometimes $CPP names a directory.
5343if test -n "$CPP" && test -d "$CPP"; then
5344 CPP=
5345fi
5346if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005347 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005348 $as_echo_n "(cached) " >&6
5349else
5350 # Double quotes because CPP needs to be expanded
5351 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5352 do
5353 ac_preproc_ok=false
5354for ac_c_preproc_warn_flag in '' yes
5355do
5356 # Use a header file that comes with gcc, so configuring glibc
5357 # with a fresh cross-compiler works.
5358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5359 # <limits.h> exists even on freestanding compilers.
5360 # On the NeXT, cc -E runs the code through the compiler's parser,
5361 # not just through cpp. "Syntax error" is here to catch this case.
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363/* end confdefs.h. */
5364#ifdef __STDC__
5365# include <limits.h>
5366#else
5367# include <assert.h>
5368#endif
5369 Syntax error
5370_ACEOF
5371if ac_fn_c_try_cpp "$LINENO"; then :
5372
5373else
5374 # Broken: fails on valid input.
5375continue
5376fi
cristyda16f162011-02-19 23:52:17 +00005377rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005378
5379 # OK, works on sane cases. Now check whether nonexistent headers
5380 # can be detected and how.
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382/* end confdefs.h. */
5383#include <ac_nonexistent.h>
5384_ACEOF
5385if ac_fn_c_try_cpp "$LINENO"; then :
5386 # Broken: success on invalid input.
5387continue
5388else
5389 # Passes both tests.
5390ac_preproc_ok=:
5391break
5392fi
cristyda16f162011-02-19 23:52:17 +00005393rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005394
5395done
5396# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005397rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005398if $ac_preproc_ok; then :
5399 break
5400fi
5401
5402 done
5403 ac_cv_prog_CPP=$CPP
5404
5405fi
5406 CPP=$ac_cv_prog_CPP
5407else
5408 ac_cv_prog_CPP=$CPP
5409fi
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5411$as_echo "$CPP" >&6; }
5412ac_preproc_ok=false
5413for ac_c_preproc_warn_flag in '' yes
5414do
5415 # Use a header file that comes with gcc, so configuring glibc
5416 # with a fresh cross-compiler works.
5417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5418 # <limits.h> exists even on freestanding compilers.
5419 # On the NeXT, cc -E runs the code through the compiler's parser,
5420 # not just through cpp. "Syntax error" is here to catch this case.
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422/* end confdefs.h. */
5423#ifdef __STDC__
5424# include <limits.h>
5425#else
5426# include <assert.h>
5427#endif
5428 Syntax error
5429_ACEOF
5430if ac_fn_c_try_cpp "$LINENO"; then :
5431
5432else
5433 # Broken: fails on valid input.
5434continue
5435fi
cristyda16f162011-02-19 23:52:17 +00005436rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005437
5438 # OK, works on sane cases. Now check whether nonexistent headers
5439 # can be detected and how.
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441/* end confdefs.h. */
5442#include <ac_nonexistent.h>
5443_ACEOF
5444if ac_fn_c_try_cpp "$LINENO"; then :
5445 # Broken: success on invalid input.
5446continue
5447else
5448 # Passes both tests.
5449ac_preproc_ok=:
5450break
5451fi
cristyda16f162011-02-19 23:52:17 +00005452rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005453
5454done
5455# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005456rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005457if $ac_preproc_ok; then :
5458
5459else
5460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005462as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5463See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005464fi
5465
5466ac_ext=c
5467ac_cpp='$CPP $CPPFLAGS'
5468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5470ac_compiler_gnu=$ac_cv_c_compiler_gnu
5471
5472
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5474$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005475if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005476 $as_echo_n "(cached) " >&6
5477else
5478 if test -z "$GREP"; then
5479 ac_path_GREP_found=false
5480 # Loop through the user's path and test for each of PROGNAME-LIST
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5483do
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 for ac_prog in grep ggrep; do
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005489 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005490# Check for GNU ac_path_GREP and select it if it is found.
5491 # Check for GNU $ac_path_GREP
5492case `"$ac_path_GREP" --version 2>&1` in
5493*GNU*)
5494 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5495*)
5496 ac_count=0
5497 $as_echo_n 0123456789 >"conftest.in"
5498 while :
5499 do
5500 cat "conftest.in" "conftest.in" >"conftest.tmp"
5501 mv "conftest.tmp" "conftest.in"
5502 cp "conftest.in" "conftest.nl"
5503 $as_echo 'GREP' >> "conftest.nl"
5504 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5505 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5506 as_fn_arith $ac_count + 1 && ac_count=$as_val
5507 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5508 # Best one so far, save it but keep looking for a better one
5509 ac_cv_path_GREP="$ac_path_GREP"
5510 ac_path_GREP_max=$ac_count
5511 fi
5512 # 10*(2^10) chars as input seems more than enough
5513 test $ac_count -gt 10 && break
5514 done
5515 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5516esac
5517
5518 $ac_path_GREP_found && break 3
5519 done
5520 done
5521 done
5522IFS=$as_save_IFS
5523 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005524 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005525 fi
5526else
5527 ac_cv_path_GREP=$GREP
5528fi
5529
5530fi
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5532$as_echo "$ac_cv_path_GREP" >&6; }
5533 GREP="$ac_cv_path_GREP"
5534
5535
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5537$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005538if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005539 $as_echo_n "(cached) " >&6
5540else
5541 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5542 then ac_cv_path_EGREP="$GREP -E"
5543 else
5544 if test -z "$EGREP"; then
5545 ac_path_EGREP_found=false
5546 # Loop through the user's path and test for each of PROGNAME-LIST
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5549do
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_prog in egrep; do
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005555 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005556# Check for GNU ac_path_EGREP and select it if it is found.
5557 # Check for GNU $ac_path_EGREP
5558case `"$ac_path_EGREP" --version 2>&1` in
5559*GNU*)
5560 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5561*)
5562 ac_count=0
5563 $as_echo_n 0123456789 >"conftest.in"
5564 while :
5565 do
5566 cat "conftest.in" "conftest.in" >"conftest.tmp"
5567 mv "conftest.tmp" "conftest.in"
5568 cp "conftest.in" "conftest.nl"
5569 $as_echo 'EGREP' >> "conftest.nl"
5570 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5571 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5572 as_fn_arith $ac_count + 1 && ac_count=$as_val
5573 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5574 # Best one so far, save it but keep looking for a better one
5575 ac_cv_path_EGREP="$ac_path_EGREP"
5576 ac_path_EGREP_max=$ac_count
5577 fi
5578 # 10*(2^10) chars as input seems more than enough
5579 test $ac_count -gt 10 && break
5580 done
5581 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5582esac
5583
5584 $ac_path_EGREP_found && break 3
5585 done
5586 done
5587 done
5588IFS=$as_save_IFS
5589 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005590 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005591 fi
5592else
5593 ac_cv_path_EGREP=$EGREP
5594fi
5595
5596 fi
5597fi
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5599$as_echo "$ac_cv_path_EGREP" >&6; }
5600 EGREP="$ac_cv_path_EGREP"
5601
5602
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5604$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005605if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005606 $as_echo_n "(cached) " >&6
5607else
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609/* end confdefs.h. */
5610#include <stdlib.h>
5611#include <stdarg.h>
5612#include <string.h>
5613#include <float.h>
5614
5615int
5616main ()
5617{
5618
5619 ;
5620 return 0;
5621}
5622_ACEOF
5623if ac_fn_c_try_compile "$LINENO"; then :
5624 ac_cv_header_stdc=yes
5625else
5626 ac_cv_header_stdc=no
5627fi
5628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629
5630if test $ac_cv_header_stdc = yes; then
5631 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633/* end confdefs.h. */
5634#include <string.h>
5635
5636_ACEOF
5637if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5638 $EGREP "memchr" >/dev/null 2>&1; then :
5639
5640else
5641 ac_cv_header_stdc=no
5642fi
5643rm -f conftest*
5644
5645fi
5646
5647if test $ac_cv_header_stdc = yes; then
5648 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650/* end confdefs.h. */
5651#include <stdlib.h>
5652
5653_ACEOF
5654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5655 $EGREP "free" >/dev/null 2>&1; then :
5656
5657else
5658 ac_cv_header_stdc=no
5659fi
5660rm -f conftest*
5661
5662fi
5663
5664if test $ac_cv_header_stdc = yes; then
5665 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5666 if test "$cross_compiling" = yes; then :
5667 :
5668else
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670/* end confdefs.h. */
5671#include <ctype.h>
5672#include <stdlib.h>
5673#if ((' ' & 0x0FF) == 0x020)
5674# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5675# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5676#else
5677# define ISLOWER(c) \
5678 (('a' <= (c) && (c) <= 'i') \
5679 || ('j' <= (c) && (c) <= 'r') \
5680 || ('s' <= (c) && (c) <= 'z'))
5681# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5682#endif
5683
5684#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5685int
5686main ()
5687{
5688 int i;
5689 for (i = 0; i < 256; i++)
5690 if (XOR (islower (i), ISLOWER (i))
5691 || toupper (i) != TOUPPER (i))
5692 return 2;
5693 return 0;
5694}
5695_ACEOF
5696if ac_fn_c_try_run "$LINENO"; then :
5697
5698else
5699 ac_cv_header_stdc=no
5700fi
5701rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5702 conftest.$ac_objext conftest.beam conftest.$ac_ext
5703fi
5704
5705fi
5706fi
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5708$as_echo "$ac_cv_header_stdc" >&6; }
5709if test $ac_cv_header_stdc = yes; then
5710
5711$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5712
5713fi
5714
5715# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5716for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5717 inttypes.h stdint.h unistd.h
5718do :
5719 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5720ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5721"
cristy98dddb52010-11-04 00:30:15 +00005722if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005723 cat >>confdefs.h <<_ACEOF
5724#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5725_ACEOF
5726
5727fi
5728
5729done
5730
5731
5732
5733 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 +00005734if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005735 MINIX=yes
5736else
5737 MINIX=
5738fi
5739
5740
5741 if test "$MINIX" = yes; then
5742
5743$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5744
5745
5746$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5747
5748
5749$as_echo "#define _MINIX 1" >>confdefs.h
5750
5751 fi
5752
5753
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5755$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005756if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005757 $as_echo_n "(cached) " >&6
5758else
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760/* end confdefs.h. */
5761
cristy14fefe52012-05-21 00:59:18 +00005762# define __EXTENSIONS__ 1
5763 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005764int
5765main ()
5766{
5767
5768 ;
5769 return 0;
5770}
5771_ACEOF
5772if ac_fn_c_try_compile "$LINENO"; then :
5773 ac_cv_safe_to_define___extensions__=yes
5774else
5775 ac_cv_safe_to_define___extensions__=no
5776fi
5777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778fi
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5780$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5781 test $ac_cv_safe_to_define___extensions__ = yes &&
5782 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5783
5784 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5785
5786 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5787
5788 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5789
5790 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5791
5792
5793
5794# Check for programs
5795ac_ext=c
5796ac_cpp='$CPP $CPPFLAGS'
5797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799ac_compiler_gnu=$ac_cv_c_compiler_gnu
5800if test -n "$ac_tool_prefix"; then
5801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5802set dummy ${ac_tool_prefix}gcc; ac_word=$2
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005805if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005806 $as_echo_n "(cached) " >&6
5807else
5808 if test -n "$CC"; then
5809 ac_cv_prog_CC="$CC" # Let the user override the test.
5810else
5811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812for as_dir in $PATH
5813do
5814 IFS=$as_save_IFS
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005818 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 break 2
5821 fi
5822done
5823 done
5824IFS=$as_save_IFS
5825
5826fi
5827fi
5828CC=$ac_cv_prog_CC
5829if test -n "$CC"; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5831$as_echo "$CC" >&6; }
5832else
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834$as_echo "no" >&6; }
5835fi
5836
5837
5838fi
5839if test -z "$ac_cv_prog_CC"; then
5840 ac_ct_CC=$CC
5841 # Extract the first word of "gcc", so it can be a program name with args.
5842set dummy gcc; ac_word=$2
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005845if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005846 $as_echo_n "(cached) " >&6
5847else
5848 if test -n "$ac_ct_CC"; then
5849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5850else
5851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852for as_dir in $PATH
5853do
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005858 ac_cv_prog_ac_ct_CC="gcc"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5861 fi
5862done
5863 done
5864IFS=$as_save_IFS
5865
5866fi
5867fi
5868ac_ct_CC=$ac_cv_prog_ac_ct_CC
5869if test -n "$ac_ct_CC"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5871$as_echo "$ac_ct_CC" >&6; }
5872else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874$as_echo "no" >&6; }
5875fi
5876
5877 if test "x$ac_ct_CC" = x; then
5878 CC=""
5879 else
5880 case $cross_compiling:$ac_tool_warned in
5881yes:)
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5884ac_tool_warned=yes ;;
5885esac
5886 CC=$ac_ct_CC
5887 fi
5888else
5889 CC="$ac_cv_prog_CC"
5890fi
5891
5892if test -z "$CC"; then
5893 if test -n "$ac_tool_prefix"; then
5894 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5895set dummy ${ac_tool_prefix}cc; ac_word=$2
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005898if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005899 $as_echo_n "(cached) " >&6
5900else
5901 if test -n "$CC"; then
5902 ac_cv_prog_CC="$CC" # Let the user override the test.
5903else
5904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905for as_dir in $PATH
5906do
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005911 ac_cv_prog_CC="${ac_tool_prefix}cc"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5914 fi
5915done
5916 done
5917IFS=$as_save_IFS
5918
5919fi
5920fi
5921CC=$ac_cv_prog_CC
5922if test -n "$CC"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5924$as_echo "$CC" >&6; }
5925else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927$as_echo "no" >&6; }
5928fi
5929
5930
5931 fi
5932fi
5933if test -z "$CC"; then
5934 # Extract the first word of "cc", so it can be a program name with args.
5935set dummy cc; ac_word=$2
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005938if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005939 $as_echo_n "(cached) " >&6
5940else
5941 if test -n "$CC"; then
5942 ac_cv_prog_CC="$CC" # Let the user override the test.
5943else
5944 ac_prog_rejected=no
5945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946for as_dir in $PATH
5947do
5948 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005952 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5953 ac_prog_rejected=yes
5954 continue
5955 fi
5956 ac_cv_prog_CC="cc"
5957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 break 2
5959 fi
5960done
5961 done
5962IFS=$as_save_IFS
5963
5964if test $ac_prog_rejected = yes; then
5965 # We found a bogon in the path, so make sure we never use it.
5966 set dummy $ac_cv_prog_CC
5967 shift
5968 if test $# != 0; then
5969 # We chose a different compiler from the bogus one.
5970 # However, it has the same basename, so the bogon will be chosen
5971 # first if we set CC to just the basename; use the full file name.
5972 shift
5973 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5974 fi
5975fi
5976fi
5977fi
5978CC=$ac_cv_prog_CC
5979if test -n "$CC"; then
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5981$as_echo "$CC" >&6; }
5982else
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984$as_echo "no" >&6; }
5985fi
5986
5987
5988fi
5989if test -z "$CC"; then
5990 if test -n "$ac_tool_prefix"; then
5991 for ac_prog in cl.exe
5992 do
5993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5994set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005997if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005998 $as_echo_n "(cached) " >&6
5999else
6000 if test -n "$CC"; then
6001 ac_cv_prog_CC="$CC" # Let the user override the test.
6002else
6003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004for as_dir in $PATH
6005do
6006 IFS=$as_save_IFS
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006010 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 break 2
6013 fi
6014done
6015 done
6016IFS=$as_save_IFS
6017
6018fi
6019fi
6020CC=$ac_cv_prog_CC
6021if test -n "$CC"; then
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6023$as_echo "$CC" >&6; }
6024else
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6026$as_echo "no" >&6; }
6027fi
6028
6029
6030 test -n "$CC" && break
6031 done
6032fi
6033if test -z "$CC"; then
6034 ac_ct_CC=$CC
6035 for ac_prog in cl.exe
6036do
6037 # Extract the first word of "$ac_prog", so it can be a program name with args.
6038set dummy $ac_prog; ac_word=$2
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6040$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006041if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006042 $as_echo_n "(cached) " >&6
6043else
6044 if test -n "$ac_ct_CC"; then
6045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6046else
6047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048for as_dir in $PATH
6049do
6050 IFS=$as_save_IFS
6051 test -z "$as_dir" && as_dir=.
6052 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006054 ac_cv_prog_ac_ct_CC="$ac_prog"
6055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6056 break 2
6057 fi
6058done
6059 done
6060IFS=$as_save_IFS
6061
6062fi
6063fi
6064ac_ct_CC=$ac_cv_prog_ac_ct_CC
6065if test -n "$ac_ct_CC"; then
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6067$as_echo "$ac_ct_CC" >&6; }
6068else
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070$as_echo "no" >&6; }
6071fi
6072
6073
6074 test -n "$ac_ct_CC" && break
6075done
6076
6077 if test "x$ac_ct_CC" = x; then
6078 CC=""
6079 else
6080 case $cross_compiling:$ac_tool_warned in
6081yes:)
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6084ac_tool_warned=yes ;;
6085esac
6086 CC=$ac_ct_CC
6087 fi
6088fi
6089
6090fi
6091
6092
6093test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006095as_fn_error $? "no acceptable C compiler found in \$PATH
6096See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006097
6098# Provide some information about the compiler.
6099$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6100set X $ac_compile
6101ac_compiler=$2
6102for ac_option in --version -v -V -qversion; do
6103 { { ac_try="$ac_compiler $ac_option >&5"
6104case "(($ac_try" in
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6107esac
6108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6109$as_echo "$ac_try_echo"; } >&5
6110 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6111 ac_status=$?
6112 if test -s conftest.err; then
6113 sed '10a\
6114... rest of stderr output deleted ...
6115 10q' conftest.err >conftest.er1
6116 cat conftest.er1 >&5
6117 fi
6118 rm -f conftest.er1 conftest.err
6119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6120 test $ac_status = 0; }
6121done
6122
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6124$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006125if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006126 $as_echo_n "(cached) " >&6
6127else
6128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129/* end confdefs.h. */
6130
6131int
6132main ()
6133{
6134#ifndef __GNUC__
6135 choke me
6136#endif
6137
6138 ;
6139 return 0;
6140}
6141_ACEOF
6142if ac_fn_c_try_compile "$LINENO"; then :
6143 ac_compiler_gnu=yes
6144else
6145 ac_compiler_gnu=no
6146fi
6147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148ac_cv_c_compiler_gnu=$ac_compiler_gnu
6149
6150fi
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6152$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6153if test $ac_compiler_gnu = yes; then
6154 GCC=yes
6155else
6156 GCC=
6157fi
6158ac_test_CFLAGS=${CFLAGS+set}
6159ac_save_CFLAGS=$CFLAGS
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6161$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006162if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006163 $as_echo_n "(cached) " >&6
6164else
6165 ac_save_c_werror_flag=$ac_c_werror_flag
6166 ac_c_werror_flag=yes
6167 ac_cv_prog_cc_g=no
6168 CFLAGS="-g"
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170/* end confdefs.h. */
6171
6172int
6173main ()
6174{
6175
6176 ;
6177 return 0;
6178}
6179_ACEOF
6180if ac_fn_c_try_compile "$LINENO"; then :
6181 ac_cv_prog_cc_g=yes
6182else
6183 CFLAGS=""
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185/* end confdefs.h. */
6186
6187int
6188main ()
6189{
6190
6191 ;
6192 return 0;
6193}
6194_ACEOF
6195if ac_fn_c_try_compile "$LINENO"; then :
6196
6197else
6198 ac_c_werror_flag=$ac_save_c_werror_flag
6199 CFLAGS="-g"
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201/* end confdefs.h. */
6202
6203int
6204main ()
6205{
6206
6207 ;
6208 return 0;
6209}
6210_ACEOF
6211if ac_fn_c_try_compile "$LINENO"; then :
6212 ac_cv_prog_cc_g=yes
6213fi
6214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215fi
6216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217fi
6218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 ac_c_werror_flag=$ac_save_c_werror_flag
6220fi
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6222$as_echo "$ac_cv_prog_cc_g" >&6; }
6223if test "$ac_test_CFLAGS" = set; then
6224 CFLAGS=$ac_save_CFLAGS
6225elif test $ac_cv_prog_cc_g = yes; then
6226 if test "$GCC" = yes; then
6227 CFLAGS="-g -O2"
6228 else
6229 CFLAGS="-g"
6230 fi
6231else
6232 if test "$GCC" = yes; then
6233 CFLAGS="-O2"
6234 else
6235 CFLAGS=
6236 fi
6237fi
6238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6239$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006240if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006241 $as_echo_n "(cached) " >&6
6242else
6243 ac_cv_prog_cc_c89=no
6244ac_save_CC=$CC
6245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246/* end confdefs.h. */
6247#include <stdarg.h>
6248#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006249struct stat;
cristya0b81c32010-01-22 02:54:33 +00006250/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6251struct buf { int x; };
6252FILE * (*rcsopen) (struct buf *, struct stat *, int);
6253static char *e (p, i)
6254 char **p;
6255 int i;
6256{
6257 return p[i];
6258}
6259static char *f (char * (*g) (char **, int), char **p, ...)
6260{
6261 char *s;
6262 va_list v;
6263 va_start (v,p);
6264 s = g (p, va_arg (v,int));
6265 va_end (v);
6266 return s;
6267}
6268
6269/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6270 function prototypes and stuff, but not '\xHH' hex character constants.
6271 These don't provoke an error unfortunately, instead are silently treated
6272 as 'x'. The following induces an error, until -std is added to get
6273 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6274 array size at least. It's necessary to write '\x00'==0 to get something
6275 that's true only with -std. */
6276int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6277
6278/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6279 inside strings and character constants. */
6280#define FOO(x) 'x'
6281int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6282
6283int test (int i, double x);
6284struct s1 {int (*f) (int a);};
6285struct s2 {int (*f) (double a);};
6286int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6287int argc;
6288char **argv;
6289int
6290main ()
6291{
6292return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6293 ;
6294 return 0;
6295}
6296_ACEOF
6297for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6298 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6299do
6300 CC="$ac_save_CC $ac_arg"
6301 if ac_fn_c_try_compile "$LINENO"; then :
6302 ac_cv_prog_cc_c89=$ac_arg
6303fi
6304rm -f core conftest.err conftest.$ac_objext
6305 test "x$ac_cv_prog_cc_c89" != "xno" && break
6306done
6307rm -f conftest.$ac_ext
6308CC=$ac_save_CC
6309
6310fi
6311# AC_CACHE_VAL
6312case "x$ac_cv_prog_cc_c89" in
6313 x)
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6315$as_echo "none needed" >&6; } ;;
6316 xno)
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6318$as_echo "unsupported" >&6; } ;;
6319 *)
6320 CC="$CC $ac_cv_prog_cc_c89"
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6322$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6323esac
6324if test "x$ac_cv_prog_cc_c89" != xno; then :
6325
6326fi
6327
6328ac_ext=c
6329ac_cpp='$CPP $CPPFLAGS'
6330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6332ac_compiler_gnu=$ac_cv_c_compiler_gnu
6333
cristy73bd4a52010-10-05 11:24:23 +00006334depcc="$CC" am_compiler_list=
6335
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6337$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006338if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006339 $as_echo_n "(cached) " >&6
6340else
6341 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6342 # We make a subdir and do the tests there. Otherwise we can end up
6343 # making bogus files that we don't know about and never remove. For
6344 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006345 # making a dummy file named 'D' -- because '-MD' means "put the output
6346 # in D".
cristy7247bba2012-02-05 16:37:27 +00006347 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006348 mkdir conftest.dir
6349 # Copy depcomp to subdir because otherwise we won't find it if we're
6350 # using a relative directory.
6351 cp "$am_depcomp" conftest.dir
6352 cd conftest.dir
6353 # We will build objects and dependencies in a subdirectory because
6354 # it helps to detect inapplicable dependency modes. For instance
6355 # both Tru64's cc and ICC support -MD to output dependencies as a
6356 # side effect of compilation, but ICC will put the dependencies in
6357 # the current directory while Tru64 will put them in the object
6358 # directory.
6359 mkdir sub
6360
6361 am_cv_CC_dependencies_compiler_type=none
6362 if test "$am_compiler_list" = ""; then
6363 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6364 fi
6365 am__universal=false
6366 case " $depcc " in #(
6367 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6368 esac
6369
6370 for depmode in $am_compiler_list; do
6371 # Setup a source with many dependencies, because some compilers
6372 # like to wrap large dependency lists on column 80 (with \), and
6373 # we should not choose a depcomp mode which is confused by this.
6374 #
6375 # We need to recreate these files for each test, as the compiler may
6376 # overwrite some of them when testing with obscure command lines.
6377 # This happens at least with the AIX C compiler.
6378 : > sub/conftest.c
6379 for i in 1 2 3 4 5 6; do
6380 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006381 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6382 # Solaris 10 /bin/sh.
6383 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006384 done
6385 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6386
cristyc0890a62012-07-19 00:18:20 +00006387 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006388 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006389 # handle '-M -o', and we need to detect this. Also, some Intel
6390 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006391 am__obj=sub/conftest.${OBJEXT-o}
6392 am__minus_obj="-o $am__obj"
6393 case $depmode in
6394 gcc)
6395 # This depmode causes a compiler race in universal mode.
6396 test "$am__universal" = false || continue
6397 ;;
6398 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006399 # After this tag, mechanisms are not by side-effect, so they'll
6400 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006401 if test "x$enable_dependency_tracking" = xyes; then
6402 continue
6403 else
6404 break
6405 fi
6406 ;;
cristy7247bba2012-02-05 16:37:27 +00006407 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006408 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006409 # not run yet. These depmodes are late enough in the game, and
6410 # so weak that their functioning should not be impacted.
6411 am__obj=conftest.${OBJEXT-o}
6412 am__minus_obj=
6413 ;;
6414 none) break ;;
6415 esac
6416 if depmode=$depmode \
6417 source=sub/conftest.c object=$am__obj \
6418 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6419 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6420 >/dev/null 2>conftest.err &&
6421 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6422 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6423 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6424 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6425 # icc doesn't choke on unknown options, it will just issue warnings
6426 # or remarks (even with -Werror). So we grep stderr for any message
6427 # that says an option was ignored or not supported.
6428 # When given -MP, icc 7.0 and 7.1 complain thusly:
6429 # icc: Command line warning: ignoring option '-M'; no argument required
6430 # The diagnosis changed in icc 8.0:
6431 # icc: Command line remark: option '-MP' not supported
6432 if (grep 'ignoring option' conftest.err ||
6433 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6434 am_cv_CC_dependencies_compiler_type=$depmode
6435 break
6436 fi
6437 fi
6438 done
6439
6440 cd ..
6441 rm -rf conftest.dir
6442else
6443 am_cv_CC_dependencies_compiler_type=none
6444fi
6445
6446fi
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6448$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6449CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6450
6451 if
6452 test "x$enable_dependency_tracking" != xno \
6453 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6454 am__fastdepCC_TRUE=
6455 am__fastdepCC_FALSE='#'
6456else
6457 am__fastdepCC_TRUE='#'
6458 am__fastdepCC_FALSE=
6459fi
6460
6461
cristy95646052009-11-28 23:05:30 +00006462ac_ext=cpp
6463ac_cpp='$CXXCPP $CPPFLAGS'
6464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6467if test -z "$CXX"; then
6468 if test -n "$CCC"; then
6469 CXX=$CCC
6470 else
6471 if test -n "$ac_tool_prefix"; then
6472 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6473 do
6474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6475set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006478if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006479 $as_echo_n "(cached) " >&6
6480else
6481 if test -n "$CXX"; then
6482 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6483else
6484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485for as_dir in $PATH
6486do
6487 IFS=$as_save_IFS
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006491 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6493 break 2
6494 fi
6495done
6496 done
6497IFS=$as_save_IFS
6498
6499fi
6500fi
6501CXX=$ac_cv_prog_CXX
6502if test -n "$CXX"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6504$as_echo "$CXX" >&6; }
6505else
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507$as_echo "no" >&6; }
6508fi
6509
6510
6511 test -n "$CXX" && break
6512 done
6513fi
6514if test -z "$CXX"; then
6515 ac_ct_CXX=$CXX
6516 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6517do
6518 # Extract the first word of "$ac_prog", so it can be a program name with args.
6519set dummy $ac_prog; ac_word=$2
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006522if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006523 $as_echo_n "(cached) " >&6
6524else
6525 if test -n "$ac_ct_CXX"; then
6526 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6527else
6528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529for as_dir in $PATH
6530do
6531 IFS=$as_save_IFS
6532 test -z "$as_dir" && as_dir=.
6533 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006535 ac_cv_prog_ac_ct_CXX="$ac_prog"
6536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 break 2
6538 fi
6539done
6540 done
6541IFS=$as_save_IFS
6542
6543fi
6544fi
6545ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6546if test -n "$ac_ct_CXX"; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6548$as_echo "$ac_ct_CXX" >&6; }
6549else
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551$as_echo "no" >&6; }
6552fi
6553
6554
6555 test -n "$ac_ct_CXX" && break
6556done
6557
6558 if test "x$ac_ct_CXX" = x; then
6559 CXX="g++"
6560 else
6561 case $cross_compiling:$ac_tool_warned in
6562yes:)
6563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6565ac_tool_warned=yes ;;
6566esac
6567 CXX=$ac_ct_CXX
6568 fi
6569fi
6570
6571 fi
6572fi
6573# Provide some information about the compiler.
6574$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6575set X $ac_compile
6576ac_compiler=$2
6577for ac_option in --version -v -V -qversion; do
6578 { { ac_try="$ac_compiler $ac_option >&5"
6579case "(($ac_try" in
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6582esac
6583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6584$as_echo "$ac_try_echo"; } >&5
6585 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6586 ac_status=$?
6587 if test -s conftest.err; then
6588 sed '10a\
6589... rest of stderr output deleted ...
6590 10q' conftest.err >conftest.er1
6591 cat conftest.er1 >&5
6592 fi
6593 rm -f conftest.er1 conftest.err
6594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6595 test $ac_status = 0; }
6596done
6597
6598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6599$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006600if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006601 $as_echo_n "(cached) " >&6
6602else
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604/* end confdefs.h. */
6605
6606int
6607main ()
6608{
6609#ifndef __GNUC__
6610 choke me
6611#endif
6612
6613 ;
6614 return 0;
6615}
6616_ACEOF
6617if ac_fn_cxx_try_compile "$LINENO"; then :
6618 ac_compiler_gnu=yes
6619else
6620 ac_compiler_gnu=no
6621fi
6622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6624
6625fi
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6627$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6628if test $ac_compiler_gnu = yes; then
6629 GXX=yes
6630else
6631 GXX=
6632fi
6633ac_test_CXXFLAGS=${CXXFLAGS+set}
6634ac_save_CXXFLAGS=$CXXFLAGS
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6636$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006637if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006638 $as_echo_n "(cached) " >&6
6639else
6640 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6641 ac_cxx_werror_flag=yes
6642 ac_cv_prog_cxx_g=no
6643 CXXFLAGS="-g"
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645/* end confdefs.h. */
6646
6647int
6648main ()
6649{
6650
6651 ;
6652 return 0;
6653}
6654_ACEOF
6655if ac_fn_cxx_try_compile "$LINENO"; then :
6656 ac_cv_prog_cxx_g=yes
6657else
6658 CXXFLAGS=""
6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660/* end confdefs.h. */
6661
6662int
6663main ()
6664{
6665
6666 ;
6667 return 0;
6668}
6669_ACEOF
6670if ac_fn_cxx_try_compile "$LINENO"; then :
6671
6672else
6673 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6674 CXXFLAGS="-g"
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676/* end confdefs.h. */
6677
6678int
6679main ()
6680{
6681
6682 ;
6683 return 0;
6684}
6685_ACEOF
6686if ac_fn_cxx_try_compile "$LINENO"; then :
6687 ac_cv_prog_cxx_g=yes
6688fi
6689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690fi
6691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692fi
6693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6695fi
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6697$as_echo "$ac_cv_prog_cxx_g" >&6; }
6698if test "$ac_test_CXXFLAGS" = set; then
6699 CXXFLAGS=$ac_save_CXXFLAGS
6700elif test $ac_cv_prog_cxx_g = yes; then
6701 if test "$GXX" = yes; then
6702 CXXFLAGS="-g -O2"
6703 else
6704 CXXFLAGS="-g"
6705 fi
6706else
6707 if test "$GXX" = yes; then
6708 CXXFLAGS="-O2"
6709 else
6710 CXXFLAGS=
6711 fi
6712fi
6713ac_ext=c
6714ac_cpp='$CPP $CPPFLAGS'
6715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6717ac_compiler_gnu=$ac_cv_c_compiler_gnu
6718
cristy73bd4a52010-10-05 11:24:23 +00006719depcc="$CXX" am_compiler_list=
6720
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6722$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006723if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006724 $as_echo_n "(cached) " >&6
6725else
6726 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6727 # We make a subdir and do the tests there. Otherwise we can end up
6728 # making bogus files that we don't know about and never remove. For
6729 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006730 # making a dummy file named 'D' -- because '-MD' means "put the output
6731 # in D".
cristy7247bba2012-02-05 16:37:27 +00006732 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006733 mkdir conftest.dir
6734 # Copy depcomp to subdir because otherwise we won't find it if we're
6735 # using a relative directory.
6736 cp "$am_depcomp" conftest.dir
6737 cd conftest.dir
6738 # We will build objects and dependencies in a subdirectory because
6739 # it helps to detect inapplicable dependency modes. For instance
6740 # both Tru64's cc and ICC support -MD to output dependencies as a
6741 # side effect of compilation, but ICC will put the dependencies in
6742 # the current directory while Tru64 will put them in the object
6743 # directory.
6744 mkdir sub
6745
6746 am_cv_CXX_dependencies_compiler_type=none
6747 if test "$am_compiler_list" = ""; then
6748 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6749 fi
6750 am__universal=false
6751 case " $depcc " in #(
6752 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6753 esac
6754
6755 for depmode in $am_compiler_list; do
6756 # Setup a source with many dependencies, because some compilers
6757 # like to wrap large dependency lists on column 80 (with \), and
6758 # we should not choose a depcomp mode which is confused by this.
6759 #
6760 # We need to recreate these files for each test, as the compiler may
6761 # overwrite some of them when testing with obscure command lines.
6762 # This happens at least with the AIX C compiler.
6763 : > sub/conftest.c
6764 for i in 1 2 3 4 5 6; do
6765 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006766 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6767 # Solaris 10 /bin/sh.
6768 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006769 done
6770 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6771
cristyc0890a62012-07-19 00:18:20 +00006772 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006773 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006774 # handle '-M -o', and we need to detect this. Also, some Intel
6775 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006776 am__obj=sub/conftest.${OBJEXT-o}
6777 am__minus_obj="-o $am__obj"
6778 case $depmode in
6779 gcc)
6780 # This depmode causes a compiler race in universal mode.
6781 test "$am__universal" = false || continue
6782 ;;
6783 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006784 # After this tag, mechanisms are not by side-effect, so they'll
6785 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006786 if test "x$enable_dependency_tracking" = xyes; then
6787 continue
6788 else
6789 break
6790 fi
6791 ;;
cristy7247bba2012-02-05 16:37:27 +00006792 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006793 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006794 # not run yet. These depmodes are late enough in the game, and
6795 # so weak that their functioning should not be impacted.
6796 am__obj=conftest.${OBJEXT-o}
6797 am__minus_obj=
6798 ;;
6799 none) break ;;
6800 esac
6801 if depmode=$depmode \
6802 source=sub/conftest.c object=$am__obj \
6803 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6804 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6805 >/dev/null 2>conftest.err &&
6806 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6807 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6808 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6809 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6810 # icc doesn't choke on unknown options, it will just issue warnings
6811 # or remarks (even with -Werror). So we grep stderr for any message
6812 # that says an option was ignored or not supported.
6813 # When given -MP, icc 7.0 and 7.1 complain thusly:
6814 # icc: Command line warning: ignoring option '-M'; no argument required
6815 # The diagnosis changed in icc 8.0:
6816 # icc: Command line remark: option '-MP' not supported
6817 if (grep 'ignoring option' conftest.err ||
6818 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6819 am_cv_CXX_dependencies_compiler_type=$depmode
6820 break
6821 fi
6822 fi
6823 done
6824
6825 cd ..
6826 rm -rf conftest.dir
6827else
6828 am_cv_CXX_dependencies_compiler_type=none
6829fi
6830
6831fi
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6833$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6834CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6835
6836 if
6837 test "x$enable_dependency_tracking" != xno \
6838 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6839 am__fastdepCXX_TRUE=
6840 am__fastdepCXX_FALSE='#'
6841else
6842 am__fastdepCXX_TRUE='#'
6843 am__fastdepCXX_FALSE=
6844fi
6845
6846
cristy8b350f62009-11-15 23:12:43 +00006847 case $ac_cv_prog_cc_stdc in #(
6848 no) :
6849 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6850 *) :
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006852$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006853if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006854 $as_echo_n "(cached) " >&6
6855else
6856 ac_cv_prog_cc_c99=no
6857ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006859/* end confdefs.h. */
6860#include <stdarg.h>
6861#include <stdbool.h>
6862#include <stdlib.h>
6863#include <wchar.h>
6864#include <stdio.h>
6865
6866// Check varargs macros. These examples are taken from C99 6.10.3.5.
6867#define debug(...) fprintf (stderr, __VA_ARGS__)
6868#define showlist(...) puts (#__VA_ARGS__)
6869#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6870static void
6871test_varargs_macros (void)
6872{
6873 int x = 1234;
6874 int y = 5678;
6875 debug ("Flag");
6876 debug ("X = %d\n", x);
6877 showlist (The first, second, and third items.);
6878 report (x>y, "x is %d but y is %d", x, y);
6879}
6880
6881// Check long long types.
6882#define BIG64 18446744073709551615ull
6883#define BIG32 4294967295ul
6884#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6885#if !BIG_OK
6886 your preprocessor is broken;
6887#endif
6888#if BIG_OK
6889#else
6890 your preprocessor is broken;
6891#endif
6892static long long int bignum = -9223372036854775807LL;
6893static unsigned long long int ubignum = BIG64;
6894
6895struct incomplete_array
6896{
6897 int datasize;
6898 double data[];
6899};
6900
6901struct named_init {
6902 int number;
6903 const wchar_t *name;
6904 double average;
6905};
6906
6907typedef const char *ccp;
6908
6909static inline int
6910test_restrict (ccp restrict text)
6911{
6912 // See if C++-style comments work.
6913 // Iterate through items via the restricted pointer.
6914 // Also check for declarations in for loops.
6915 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6916 continue;
6917 return 0;
6918}
6919
6920// Check varargs and va_copy.
6921static void
6922test_varargs (const char *format, ...)
6923{
6924 va_list args;
6925 va_start (args, format);
6926 va_list args_copy;
6927 va_copy (args_copy, args);
6928
6929 const char *str;
6930 int number;
6931 float fnumber;
6932
6933 while (*format)
6934 {
6935 switch (*format++)
6936 {
6937 case 's': // string
6938 str = va_arg (args_copy, const char *);
6939 break;
6940 case 'd': // int
6941 number = va_arg (args_copy, int);
6942 break;
6943 case 'f': // float
6944 fnumber = va_arg (args_copy, double);
6945 break;
6946 default:
6947 break;
6948 }
6949 }
6950 va_end (args_copy);
6951 va_end (args);
6952}
6953
6954int
6955main ()
6956{
6957
6958 // Check bool.
6959 _Bool success = false;
6960
6961 // Check restrict.
6962 if (test_restrict ("String literal") == 0)
6963 success = true;
6964 char *restrict newvar = "Another string";
6965
6966 // Check varargs.
6967 test_varargs ("s, d' f .", "string", 65, 34.234);
6968 test_varargs_macros ();
6969
6970 // Check flexible array members.
6971 struct incomplete_array *ia =
6972 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6973 ia->datasize = 10;
6974 for (int i = 0; i < ia->datasize; ++i)
6975 ia->data[i] = i * 1.234;
6976
6977 // Check named initializers.
6978 struct named_init ni = {
6979 .number = 34,
6980 .name = L"Test wide string",
6981 .average = 543.34343,
6982 };
6983
6984 ni.number = 58;
6985
6986 int dynamic_array[ni.number];
6987 dynamic_array[ni.number - 1] = 543;
6988
6989 // work around unused variable warnings
6990 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6991 || dynamic_array[ni.number - 1] != 543);
6992
6993 ;
6994 return 0;
6995}
6996_ACEOF
cristy14fefe52012-05-21 00:59:18 +00006997for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00006998do
6999 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007000 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007001 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007002fi
cristy3ed852e2009-09-05 21:47:34 +00007003rm -f core conftest.err conftest.$ac_objext
7004 test "x$ac_cv_prog_cc_c99" != "xno" && break
7005done
7006rm -f conftest.$ac_ext
7007CC=$ac_save_CC
7008
7009fi
7010# AC_CACHE_VAL
7011case "x$ac_cv_prog_cc_c99" in
7012 x)
cristy8b350f62009-11-15 23:12:43 +00007013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007014$as_echo "none needed" >&6; } ;;
7015 xno)
cristy8b350f62009-11-15 23:12:43 +00007016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007017$as_echo "unsupported" >&6; } ;;
7018 *)
7019 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007021$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7022esac
cristy8b350f62009-11-15 23:12:43 +00007023if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007024 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7025else
cristy8b350f62009-11-15 23:12:43 +00007026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007027$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007028if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007029 $as_echo_n "(cached) " >&6
7030else
7031 ac_cv_prog_cc_c89=no
7032ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007034/* end confdefs.h. */
7035#include <stdarg.h>
7036#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007037struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007038/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7039struct buf { int x; };
7040FILE * (*rcsopen) (struct buf *, struct stat *, int);
7041static char *e (p, i)
7042 char **p;
7043 int i;
7044{
7045 return p[i];
7046}
7047static char *f (char * (*g) (char **, int), char **p, ...)
7048{
7049 char *s;
7050 va_list v;
7051 va_start (v,p);
7052 s = g (p, va_arg (v,int));
7053 va_end (v);
7054 return s;
7055}
7056
7057/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7058 function prototypes and stuff, but not '\xHH' hex character constants.
7059 These don't provoke an error unfortunately, instead are silently treated
7060 as 'x'. The following induces an error, until -std is added to get
7061 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7062 array size at least. It's necessary to write '\x00'==0 to get something
7063 that's true only with -std. */
7064int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7065
7066/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7067 inside strings and character constants. */
7068#define FOO(x) 'x'
7069int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7070
7071int test (int i, double x);
7072struct s1 {int (*f) (int a);};
7073struct s2 {int (*f) (double a);};
7074int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7075int argc;
7076char **argv;
7077int
7078main ()
7079{
7080return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7081 ;
7082 return 0;
7083}
7084_ACEOF
7085for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7086 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7087do
7088 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007089 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007090 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007091fi
cristy3ed852e2009-09-05 21:47:34 +00007092rm -f core conftest.err conftest.$ac_objext
7093 test "x$ac_cv_prog_cc_c89" != "xno" && break
7094done
7095rm -f conftest.$ac_ext
7096CC=$ac_save_CC
7097
7098fi
7099# AC_CACHE_VAL
7100case "x$ac_cv_prog_cc_c89" in
7101 x)
cristy8b350f62009-11-15 23:12:43 +00007102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007103$as_echo "none needed" >&6; } ;;
7104 xno)
cristy8b350f62009-11-15 23:12:43 +00007105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007106$as_echo "unsupported" >&6; } ;;
7107 *)
7108 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007110$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7111esac
cristy8b350f62009-11-15 23:12:43 +00007112if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007113 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7114else
7115 ac_cv_prog_cc_stdc=no
7116fi
7117
cristy3ed852e2009-09-05 21:47:34 +00007118fi
cristy3ed852e2009-09-05 21:47:34 +00007119 ;;
7120esac
cristy8b350f62009-11-15 23:12:43 +00007121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007122$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007123 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007124 $as_echo_n "(cached) " >&6
7125fi
7126
cristy8b350f62009-11-15 23:12:43 +00007127 case $ac_cv_prog_cc_stdc in #(
7128 no) :
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7130$as_echo "unsupported" >&6; } ;; #(
7131 '') :
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7133$as_echo "none needed" >&6; } ;; #(
7134 *) :
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007136$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7137esac
7138
cristy3ed852e2009-09-05 21:47:34 +00007139ac_ext=c
7140ac_cpp='$CPP $CPPFLAGS'
7141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7143ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007145$as_echo_n "checking how to run the C preprocessor... " >&6; }
7146# On Suns, sometimes $CPP names a directory.
7147if test -n "$CPP" && test -d "$CPP"; then
7148 CPP=
7149fi
7150if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007151 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007152 $as_echo_n "(cached) " >&6
7153else
7154 # Double quotes because CPP needs to be expanded
7155 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7156 do
7157 ac_preproc_ok=false
7158for ac_c_preproc_warn_flag in '' yes
7159do
7160 # Use a header file that comes with gcc, so configuring glibc
7161 # with a fresh cross-compiler works.
7162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7163 # <limits.h> exists even on freestanding compilers.
7164 # On the NeXT, cc -E runs the code through the compiler's parser,
7165 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007167/* end confdefs.h. */
7168#ifdef __STDC__
7169# include <limits.h>
7170#else
7171# include <assert.h>
7172#endif
7173 Syntax error
7174_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007175if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007176
cristy8b350f62009-11-15 23:12:43 +00007177else
cristy3ed852e2009-09-05 21:47:34 +00007178 # Broken: fails on valid input.
7179continue
7180fi
cristyda16f162011-02-19 23:52:17 +00007181rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007182
7183 # OK, works on sane cases. Now check whether nonexistent headers
7184 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007186/* end confdefs.h. */
7187#include <ac_nonexistent.h>
7188_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007189if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007190 # Broken: success on invalid input.
7191continue
7192else
cristy3ed852e2009-09-05 21:47:34 +00007193 # Passes both tests.
7194ac_preproc_ok=:
7195break
7196fi
cristyda16f162011-02-19 23:52:17 +00007197rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007198
7199done
7200# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007201rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007202if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007203 break
7204fi
7205
7206 done
7207 ac_cv_prog_CPP=$CPP
7208
7209fi
7210 CPP=$ac_cv_prog_CPP
7211else
7212 ac_cv_prog_CPP=$CPP
7213fi
cristy8b350f62009-11-15 23:12:43 +00007214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007215$as_echo "$CPP" >&6; }
7216ac_preproc_ok=false
7217for ac_c_preproc_warn_flag in '' yes
7218do
7219 # Use a header file that comes with gcc, so configuring glibc
7220 # with a fresh cross-compiler works.
7221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7222 # <limits.h> exists even on freestanding compilers.
7223 # On the NeXT, cc -E runs the code through the compiler's parser,
7224 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007226/* end confdefs.h. */
7227#ifdef __STDC__
7228# include <limits.h>
7229#else
7230# include <assert.h>
7231#endif
7232 Syntax error
7233_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007234if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007235
cristy8b350f62009-11-15 23:12:43 +00007236else
cristy3ed852e2009-09-05 21:47:34 +00007237 # Broken: fails on valid input.
7238continue
7239fi
cristyda16f162011-02-19 23:52:17 +00007240rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007241
7242 # OK, works on sane cases. Now check whether nonexistent headers
7243 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007245/* end confdefs.h. */
7246#include <ac_nonexistent.h>
7247_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007248if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007249 # Broken: success on invalid input.
7250continue
7251else
cristy3ed852e2009-09-05 21:47:34 +00007252 # Passes both tests.
7253ac_preproc_ok=:
7254break
7255fi
cristyda16f162011-02-19 23:52:17 +00007256rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007257
7258done
7259# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007260rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007261if $ac_preproc_ok; then :
7262
cristy3ed852e2009-09-05 21:47:34 +00007263else
cristy8b350f62009-11-15 23:12:43 +00007264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007266as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7267See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007268fi
7269
7270ac_ext=c
7271ac_cpp='$CPP $CPPFLAGS'
7272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7274ac_compiler_gnu=$ac_cv_c_compiler_gnu
7275
cristy73bd4a52010-10-05 11:24:23 +00007276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7277$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007278if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007279 $as_echo_n "(cached) " >&6
7280else
7281 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7282 for ac_i in 1 2 3 4 5 6 7; do
7283 ac_script="$ac_script$as_nl$ac_script"
7284 done
7285 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7286 { ac_script=; unset ac_script;}
7287 if test -z "$SED"; then
7288 ac_path_SED_found=false
7289 # Loop through the user's path and test for each of PROGNAME-LIST
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291for as_dir in $PATH
7292do
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_prog in sed gsed; do
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007298 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007299# Check for GNU ac_path_SED and select it if it is found.
7300 # Check for GNU $ac_path_SED
7301case `"$ac_path_SED" --version 2>&1` in
7302*GNU*)
7303 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7304*)
7305 ac_count=0
7306 $as_echo_n 0123456789 >"conftest.in"
7307 while :
7308 do
7309 cat "conftest.in" "conftest.in" >"conftest.tmp"
7310 mv "conftest.tmp" "conftest.in"
7311 cp "conftest.in" "conftest.nl"
7312 $as_echo '' >> "conftest.nl"
7313 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7315 as_fn_arith $ac_count + 1 && ac_count=$as_val
7316 if test $ac_count -gt ${ac_path_SED_max-0}; then
7317 # Best one so far, save it but keep looking for a better one
7318 ac_cv_path_SED="$ac_path_SED"
7319 ac_path_SED_max=$ac_count
7320 fi
7321 # 10*(2^10) chars as input seems more than enough
7322 test $ac_count -gt 10 && break
7323 done
7324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7325esac
7326
7327 $ac_path_SED_found && break 3
7328 done
7329 done
7330 done
7331IFS=$as_save_IFS
7332 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007333 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007334 fi
7335else
7336 ac_cv_path_SED=$SED
7337fi
7338
7339fi
7340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7341$as_echo "$ac_cv_path_SED" >&6; }
7342 SED="$ac_cv_path_SED"
7343 rm -f conftest.sed
7344
7345test -z "$SED" && SED=sed
7346Xsed="$SED -e 1s/^X//"
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7359$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007360if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007361 $as_echo_n "(cached) " >&6
7362else
7363 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7364 then ac_cv_path_FGREP="$GREP -F"
7365 else
7366 if test -z "$FGREP"; then
7367 ac_path_FGREP_found=false
7368 # Loop through the user's path and test for each of PROGNAME-LIST
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7371do
7372 IFS=$as_save_IFS
7373 test -z "$as_dir" && as_dir=.
7374 for ac_prog in fgrep; do
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007377 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007378# Check for GNU ac_path_FGREP and select it if it is found.
7379 # Check for GNU $ac_path_FGREP
7380case `"$ac_path_FGREP" --version 2>&1` in
7381*GNU*)
7382 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7383*)
7384 ac_count=0
7385 $as_echo_n 0123456789 >"conftest.in"
7386 while :
7387 do
7388 cat "conftest.in" "conftest.in" >"conftest.tmp"
7389 mv "conftest.tmp" "conftest.in"
7390 cp "conftest.in" "conftest.nl"
7391 $as_echo 'FGREP' >> "conftest.nl"
7392 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7394 as_fn_arith $ac_count + 1 && ac_count=$as_val
7395 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7396 # Best one so far, save it but keep looking for a better one
7397 ac_cv_path_FGREP="$ac_path_FGREP"
7398 ac_path_FGREP_max=$ac_count
7399 fi
7400 # 10*(2^10) chars as input seems more than enough
7401 test $ac_count -gt 10 && break
7402 done
7403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7404esac
7405
7406 $ac_path_FGREP_found && break 3
7407 done
7408 done
7409 done
7410IFS=$as_save_IFS
7411 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007412 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007413 fi
7414else
7415 ac_cv_path_FGREP=$FGREP
7416fi
7417
7418 fi
7419fi
7420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7421$as_echo "$ac_cv_path_FGREP" >&6; }
7422 FGREP="$ac_cv_path_FGREP"
7423
7424
7425test -z "$GREP" && GREP=grep
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
cristy0c60a692010-11-04 01:09:47 +00007443ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7444ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7445ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7446
7447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7448$as_echo_n "checking how to print strings... " >&6; }
7449# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007450if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007451 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7452 ECHO='print -r --'
7453elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7454 ECHO='printf %s\n'
7455else
7456 # Use this function as a fallback that always works.
7457 func_fallback_echo ()
7458 {
7459 eval 'cat <<_LTECHO_EOF
7460$1
7461_LTECHO_EOF'
7462 }
7463 ECHO='func_fallback_echo'
7464fi
7465
7466# func_echo_all arg...
7467# Invoke $ECHO with all args, space-separated.
7468func_echo_all ()
7469{
7470 $ECHO ""
7471}
7472
7473case "$ECHO" in
7474 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7475$as_echo "printf" >&6; } ;;
7476 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7477$as_echo "print -r" >&6; } ;;
7478 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7479$as_echo "cat" >&6; } ;;
7480esac
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
cristy73bd4a52010-10-05 11:24:23 +00007495
7496
7497# Check whether --with-gnu-ld was given.
7498if test "${with_gnu_ld+set}" = set; then :
7499 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7500else
7501 with_gnu_ld=no
7502fi
7503
7504ac_prog=ld
7505if test "$GCC" = yes; then
7506 # Check if gcc -print-prog-name=ld gives a path.
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7508$as_echo_n "checking for ld used by $CC... " >&6; }
7509 case $host in
7510 *-*-mingw*)
7511 # gcc leaves a trailing carriage return which upsets mingw
7512 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7513 *)
7514 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7515 esac
7516 case $ac_prog in
7517 # Accept absolute paths.
7518 [\\/]* | ?:[\\/]*)
7519 re_direlt='/[^/][^/]*/\.\./'
7520 # Canonicalize the pathname of ld
7521 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7522 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7523 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7524 done
7525 test -z "$LD" && LD="$ac_prog"
7526 ;;
7527 "")
7528 # If it fails, then pretend we aren't using GCC.
7529 ac_prog=ld
7530 ;;
7531 *)
7532 # If it is relative, then search for the first ld in PATH.
7533 with_gnu_ld=unknown
7534 ;;
7535 esac
7536elif test "$with_gnu_ld" = yes; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7538$as_echo_n "checking for GNU ld... " >&6; }
7539else
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7541$as_echo_n "checking for non-GNU ld... " >&6; }
7542fi
cristyda16f162011-02-19 23:52:17 +00007543if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007544 $as_echo_n "(cached) " >&6
7545else
7546 if test -z "$LD"; then
7547 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7548 for ac_dir in $PATH; do
7549 IFS="$lt_save_ifs"
7550 test -z "$ac_dir" && ac_dir=.
7551 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7552 lt_cv_path_LD="$ac_dir/$ac_prog"
7553 # Check to see if the program is GNU ld. I'd rather use --version,
7554 # but apparently some variants of GNU ld only accept -v.
7555 # Break only if it was the GNU/non-GNU ld that we prefer.
7556 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7557 *GNU* | *'with BFD'*)
7558 test "$with_gnu_ld" != no && break
7559 ;;
7560 *)
7561 test "$with_gnu_ld" != yes && break
7562 ;;
7563 esac
7564 fi
7565 done
7566 IFS="$lt_save_ifs"
7567else
7568 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7569fi
7570fi
7571
7572LD="$lt_cv_path_LD"
7573if test -n "$LD"; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7575$as_echo "$LD" >&6; }
7576else
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578$as_echo "no" >&6; }
7579fi
cristy98dddb52010-11-04 00:30:15 +00007580test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7582$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007583if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007584 $as_echo_n "(cached) " >&6
7585else
7586 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7587case `$LD -v 2>&1 </dev/null` in
7588*GNU* | *'with BFD'*)
7589 lt_cv_prog_gnu_ld=yes
7590 ;;
7591*)
7592 lt_cv_prog_gnu_ld=no
7593 ;;
7594esac
7595fi
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7597$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7598with_gnu_ld=$lt_cv_prog_gnu_ld
7599
7600
7601
7602
7603
7604
7605
7606
7607
cristy3ed852e2009-09-05 21:47:34 +00007608
cristy837d6dc2010-02-27 01:16:57 +00007609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7610$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007611if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007612 $as_echo_n "(cached) " >&6
7613else
7614 ac_cv_prog_cc_c99=no
7615ac_save_CC=$CC
7616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617/* end confdefs.h. */
7618#include <stdarg.h>
7619#include <stdbool.h>
7620#include <stdlib.h>
7621#include <wchar.h>
7622#include <stdio.h>
7623
7624// Check varargs macros. These examples are taken from C99 6.10.3.5.
7625#define debug(...) fprintf (stderr, __VA_ARGS__)
7626#define showlist(...) puts (#__VA_ARGS__)
7627#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7628static void
7629test_varargs_macros (void)
7630{
7631 int x = 1234;
7632 int y = 5678;
7633 debug ("Flag");
7634 debug ("X = %d\n", x);
7635 showlist (The first, second, and third items.);
7636 report (x>y, "x is %d but y is %d", x, y);
7637}
7638
7639// Check long long types.
7640#define BIG64 18446744073709551615ull
7641#define BIG32 4294967295ul
7642#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7643#if !BIG_OK
7644 your preprocessor is broken;
7645#endif
7646#if BIG_OK
7647#else
7648 your preprocessor is broken;
7649#endif
7650static long long int bignum = -9223372036854775807LL;
7651static unsigned long long int ubignum = BIG64;
7652
7653struct incomplete_array
7654{
7655 int datasize;
7656 double data[];
7657};
7658
7659struct named_init {
7660 int number;
7661 const wchar_t *name;
7662 double average;
7663};
7664
7665typedef const char *ccp;
7666
7667static inline int
7668test_restrict (ccp restrict text)
7669{
7670 // See if C++-style comments work.
7671 // Iterate through items via the restricted pointer.
7672 // Also check for declarations in for loops.
7673 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7674 continue;
7675 return 0;
7676}
7677
7678// Check varargs and va_copy.
7679static void
7680test_varargs (const char *format, ...)
7681{
7682 va_list args;
7683 va_start (args, format);
7684 va_list args_copy;
7685 va_copy (args_copy, args);
7686
7687 const char *str;
7688 int number;
7689 float fnumber;
7690
7691 while (*format)
7692 {
7693 switch (*format++)
7694 {
7695 case 's': // string
7696 str = va_arg (args_copy, const char *);
7697 break;
7698 case 'd': // int
7699 number = va_arg (args_copy, int);
7700 break;
7701 case 'f': // float
7702 fnumber = va_arg (args_copy, double);
7703 break;
7704 default:
7705 break;
7706 }
7707 }
7708 va_end (args_copy);
7709 va_end (args);
7710}
7711
7712int
7713main ()
7714{
7715
7716 // Check bool.
7717 _Bool success = false;
7718
7719 // Check restrict.
7720 if (test_restrict ("String literal") == 0)
7721 success = true;
7722 char *restrict newvar = "Another string";
7723
7724 // Check varargs.
7725 test_varargs ("s, d' f .", "string", 65, 34.234);
7726 test_varargs_macros ();
7727
7728 // Check flexible array members.
7729 struct incomplete_array *ia =
7730 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7731 ia->datasize = 10;
7732 for (int i = 0; i < ia->datasize; ++i)
7733 ia->data[i] = i * 1.234;
7734
7735 // Check named initializers.
7736 struct named_init ni = {
7737 .number = 34,
7738 .name = L"Test wide string",
7739 .average = 543.34343,
7740 };
7741
7742 ni.number = 58;
7743
7744 int dynamic_array[ni.number];
7745 dynamic_array[ni.number - 1] = 543;
7746
7747 // work around unused variable warnings
7748 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7749 || dynamic_array[ni.number - 1] != 543);
7750
7751 ;
7752 return 0;
7753}
7754_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007755for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007756do
7757 CC="$ac_save_CC $ac_arg"
7758 if ac_fn_c_try_compile "$LINENO"; then :
7759 ac_cv_prog_cc_c99=$ac_arg
7760fi
7761rm -f core conftest.err conftest.$ac_objext
7762 test "x$ac_cv_prog_cc_c99" != "xno" && break
7763done
7764rm -f conftest.$ac_ext
7765CC=$ac_save_CC
7766
7767fi
7768# AC_CACHE_VAL
7769case "x$ac_cv_prog_cc_c99" in
7770 x)
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7772$as_echo "none needed" >&6; } ;;
7773 xno)
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7775$as_echo "unsupported" >&6; } ;;
7776 *)
7777 CC="$CC $ac_cv_prog_cc_c99"
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7779$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7780esac
7781if test "x$ac_cv_prog_cc_c99" != xno; then :
7782
7783fi
7784
7785
cristy73bd4a52010-10-05 11:24:23 +00007786if test "x$CC" != xcc; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7788$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7789else
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7791$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7792fi
7793set dummy $CC; ac_cc=`$as_echo "$2" |
7794 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007795if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007796 $as_echo_n "(cached) " >&6
7797else
cristy73bd4a52010-10-05 11:24:23 +00007798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799/* end confdefs.h. */
7800
7801int
7802main ()
7803{
7804
7805 ;
7806 return 0;
7807}
7808_ACEOF
7809# Make sure it works both with $CC and with simple cc.
7810# We do the test twice because some compilers refuse to overwrite an
7811# existing .o file with -o, though they will create one.
7812ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7813rm -f conftest2.*
7814if { { case "(($ac_try" in
7815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816 *) ac_try_echo=$ac_try;;
7817esac
7818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7819$as_echo "$ac_try_echo"; } >&5
7820 (eval "$ac_try") 2>&5
7821 ac_status=$?
7822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7823 test $ac_status = 0; } &&
7824 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826 *) ac_try_echo=$ac_try;;
7827esac
7828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7829$as_echo "$ac_try_echo"; } >&5
7830 (eval "$ac_try") 2>&5
7831 ac_status=$?
7832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7833 test $ac_status = 0; };
7834then
7835 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7836 if test "x$CC" != xcc; then
7837 # Test first that cc exists at all.
7838 if { ac_try='cc -c conftest.$ac_ext >&5'
7839 { { case "(($ac_try" in
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7842esac
7843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7844$as_echo "$ac_try_echo"; } >&5
7845 (eval "$ac_try") 2>&5
7846 ac_status=$?
7847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7848 test $ac_status = 0; }; }; then
7849 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7850 rm -f conftest2.*
7851 if { { case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7854esac
7855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7856$as_echo "$ac_try_echo"; } >&5
7857 (eval "$ac_try") 2>&5
7858 ac_status=$?
7859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7860 test $ac_status = 0; } &&
7861 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864esac
7865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7866$as_echo "$ac_try_echo"; } >&5
7867 (eval "$ac_try") 2>&5
7868 ac_status=$?
7869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7870 test $ac_status = 0; };
7871 then
7872 # cc works too.
7873 :
7874 else
7875 # cc exists but doesn't like -o.
7876 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7877 fi
7878 fi
7879 fi
7880else
7881 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7882fi
7883rm -f core conftest*
7884
7885fi
7886if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7888$as_echo "yes" >&6; }
7889else
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891$as_echo "no" >&6; }
7892
7893$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7894
7895fi
7896
7897# FIXME: we rely on the cache variable name because
7898# there is no other way.
7899set dummy $CC
7900am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7901eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7902if test "$am_t" != yes; then
7903 # Losing compiler, so override with the script.
7904 # FIXME: It is wrong to rewrite CC.
7905 # But if we don't then we get into trouble of one sort or another.
7906 # A longer-term fix would be to have automake use am__CC in this case,
7907 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7908 CC="$am_aux_dir/compile $CC"
7909fi
7910
7911
7912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7913$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007914if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007915 $as_echo_n "(cached) " >&6
7916else
7917 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007918 ac_ext=c
7919ac_cpp='$CPP $CPPFLAGS'
7920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7922ac_compiler_gnu=$ac_cv_c_compiler_gnu
7923
7924 ac_save_CFLAGS="$CFLAGS"
7925for 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" #
7926do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928/* end confdefs.h. */
7929
7930int
7931main ()
7932{
cristy24fc1fe2010-10-23 21:13:01 +00007933
cristy73bd4a52010-10-05 11:24:23 +00007934 ;
7935 return 0;
7936}
7937_ACEOF
7938if ac_fn_c_try_compile "$LINENO"; then :
7939 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7940fi
7941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942done
7943 CFLAGS="$ac_save_CFLAGS"
7944 ac_ext=c
7945ac_cpp='$CPP $CPPFLAGS'
7946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7948ac_compiler_gnu=$ac_cv_c_compiler_gnu
7949
7950
7951fi
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7953$as_echo "$ac_cv_cflags_warn_all" >&6; }
7954case ".$ac_cv_cflags_warn_all" in
7955 .ok|.ok,*) ;;
7956 .|.no|.no,*)
7957 ;;
7958 *)
7959 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7960 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7961 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7962 ac_status=$?
7963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7964 test $ac_status = 0; }
7965 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7966 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7967 ac_status=$?
7968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7969 test $ac_status = 0; }
7970 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7971 fi
7972 ;;
nicolas6237c462010-10-05 06:11:49 +00007973esac
cristy3ed852e2009-09-05 21:47:34 +00007974
cristy016e8b82012-12-26 12:11:06 +00007975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7976$as_echo_n "checking for C compiler vendor... " >&6; }
7977if ${ax_cv_c_compiler_vendor+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979else
7980 # note: don't check for gcc first since some other compilers define __GNUC__
7981 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
7982 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
7983 pathscale: __PATHCC__,__PATHSCALE__
7984 clang: __clang__
7985 gnu: __GNUC__
7986 sun: __SUNPRO_C,__SUNPRO_CC
7987 hp: __HP_cc,__HP_aCC
7988 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
7989 borland: __BORLANDC__,__TURBOC__
7990 comeau: __COMO__
7991 cray: _CRAYC
7992 kai: __KCC
7993 lcc: __LCC__
7994 sgi: __sgi,sgi
7995 microsoft: _MSC_VER
7996 metrowerks: __MWERKS__
7997 watcom: __WATCOMC__
7998 portland: __PGI
7999 unknown: UNKNOWN"
8000 for ventest in $vendors; do
8001 case $ventest in
8002 *:) vendor=$ventest; continue ;;
8003 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8004 esac
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006/* end confdefs.h. */
8007
8008int
8009main ()
8010{
8011
8012 #if !($vencpp)
8013 thisisanerror;
8014 #endif
8015
8016 ;
8017 return 0;
8018}
8019_ACEOF
8020if ac_fn_c_try_compile "$LINENO"; then :
8021 break
8022fi
8023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024 done
8025 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8026
8027fi
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8029$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8030
cristya0b81c32010-01-22 02:54:33 +00008031
8032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8033$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8034set x ${MAKE-make}
8035ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008036if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008037 $as_echo_n "(cached) " >&6
8038else
8039 cat >conftest.make <<\_ACEOF
8040SHELL = /bin/sh
8041all:
8042 @echo '@@@%%%=$(MAKE)=@@@%%%'
8043_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008044# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008045case `${MAKE-make} -f conftest.make 2>/dev/null` in
8046 *@@@%%%=?*=@@@%%%*)
8047 eval ac_cv_prog_make_${ac_make}_set=yes;;
8048 *)
8049 eval ac_cv_prog_make_${ac_make}_set=no;;
8050esac
8051rm -f conftest.make
8052fi
8053if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8055$as_echo "yes" >&6; }
8056 SET_MAKE=
8057else
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059$as_echo "no" >&6; }
8060 SET_MAKE="MAKE=${MAKE-make}"
8061fi
8062
cristy8b350f62009-11-15 23:12:43 +00008063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008064$as_echo_n "checking whether ln -s works... " >&6; }
8065LN_S=$as_ln_s
8066if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008068$as_echo "yes" >&6; }
8069else
cristy8b350f62009-11-15 23:12:43 +00008070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008071$as_echo "no, using $LN_S" >&6; }
8072fi
8073
cristybc556452012-08-17 19:44:03 +00008074for ac_prog in gawk mawk nawk awk
8075do
8076 # Extract the first word of "$ac_prog", so it can be a program name with args.
8077set dummy $ac_prog; ac_word=$2
8078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079$as_echo_n "checking for $ac_word... " >&6; }
8080if ${ac_cv_prog_AWK+:} false; then :
8081 $as_echo_n "(cached) " >&6
8082else
8083 if test -n "$AWK"; then
8084 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8085else
8086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087for as_dir in $PATH
8088do
8089 IFS=$as_save_IFS
8090 test -z "$as_dir" && as_dir=.
8091 for ac_exec_ext in '' $ac_executable_extensions; do
8092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8093 ac_cv_prog_AWK="$ac_prog"
8094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8095 break 2
8096 fi
8097done
8098 done
8099IFS=$as_save_IFS
8100
8101fi
8102fi
8103AWK=$ac_cv_prog_AWK
8104if test -n "$AWK"; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8106$as_echo "$AWK" >&6; }
8107else
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109$as_echo "no" >&6; }
8110fi
8111
8112
8113 test -n "$AWK" && break
8114done
8115
cristy73bd4a52010-10-05 11:24:23 +00008116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8117$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8118
8119# Check whether --with-dmalloc was given.
8120if test "${with_dmalloc+set}" = set; then :
8121 withval=$with_dmalloc; if test "$withval" = yes; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8123$as_echo "yes" >&6; }
8124
8125$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8126
8127 LIBS="$LIBS -ldmalloc"
8128 LDFLAGS="$LDFLAGS -g"
8129else
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131$as_echo "no" >&6; }
8132fi
8133else
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135$as_echo "no" >&6; }
8136fi
8137
8138
8139
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8141$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008142if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008143 $as_echo_n "(cached) " >&6
8144else
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146/* end confdefs.h. */
8147#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008148 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008149 static void
8150 foo(void) {
8151 exit(1);
8152 }
8153
8154int
8155main ()
8156{
8157
8158 ;
8159 return 0;
8160}
8161_ACEOF
8162if ac_fn_c_try_compile "$LINENO"; then :
8163 ax_cv___attribute__=yes
8164else
8165 ax_cv___attribute__=no
8166
8167fi
8168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169
8170fi
8171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8172$as_echo "$ax_cv___attribute__" >&6; }
8173 if test "$ax_cv___attribute__" = "yes"; then
8174
8175$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8176
8177 fi
8178
8179
8180
cristy37110d62012-03-01 18:38:20 +00008181
8182
8183# Check whether --with-gcc-arch was given.
8184if test "${with_gcc_arch+set}" = set; then :
8185 withval=$with_gcc_arch; ax_gcc_arch=$withval
8186else
cristya32d1812012-03-02 19:24:21 +00008187 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008188fi
8189
8190
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8192$as_echo_n "checking for gcc architecture flag... " >&6; }
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8194$as_echo "" >&6; }
8195if ${ax_cv_gcc_archflag+:} false; then :
8196 $as_echo_n "(cached) " >&6
8197else
8198
8199ax_cv_gcc_archflag="unknown"
8200
8201if test "$GCC" = yes; then
8202
8203if test "x$ax_gcc_arch" = xyes; then
8204ax_gcc_arch=""
8205if test "$cross_compiling" = no; then
8206case $host_cpu in
8207 i[3456]86*|x86_64*) # use cpuid codes
8208
8209ac_ext=c
8210ac_cpp='$CPP $CPPFLAGS'
8211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8213ac_compiler_gnu=$ac_cv_c_compiler_gnu
8214
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8216$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8217if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8218 $as_echo_n "(cached) " >&6
8219else
8220 if test "$cross_compiling" = yes; then :
8221 ax_cv_gcc_x86_cpuid_0=unknown
8222else
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224/* end confdefs.h. */
8225#include <stdio.h>
8226int
8227main ()
8228{
8229
8230 int op = 0, eax, ebx, ecx, edx;
8231 FILE *f;
8232 __asm__("cpuid"
8233 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8234 : "a" (op));
8235 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8236 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8237 fclose(f);
8238 return 0;
8239
8240 ;
8241 return 0;
8242}
8243_ACEOF
8244if ac_fn_c_try_run "$LINENO"; then :
8245 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8246else
8247 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8248fi
8249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8250 conftest.$ac_objext conftest.beam conftest.$ac_ext
8251fi
8252
8253fi
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8255$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8256ac_ext=c
8257ac_cpp='$CPP $CPPFLAGS'
8258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8260ac_compiler_gnu=$ac_cv_c_compiler_gnu
8261
8262
8263
8264ac_ext=c
8265ac_cpp='$CPP $CPPFLAGS'
8266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8268ac_compiler_gnu=$ac_cv_c_compiler_gnu
8269
8270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8271$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8272if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8273 $as_echo_n "(cached) " >&6
8274else
8275 if test "$cross_compiling" = yes; then :
8276 ax_cv_gcc_x86_cpuid_1=unknown
8277else
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279/* end confdefs.h. */
8280#include <stdio.h>
8281int
8282main ()
8283{
8284
8285 int op = 1, eax, ebx, ecx, edx;
8286 FILE *f;
8287 __asm__("cpuid"
8288 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8289 : "a" (op));
8290 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8291 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8292 fclose(f);
8293 return 0;
8294
8295 ;
8296 return 0;
8297}
8298_ACEOF
8299if ac_fn_c_try_run "$LINENO"; then :
8300 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8301else
8302 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8303fi
8304rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8305 conftest.$ac_objext conftest.beam conftest.$ac_ext
8306fi
8307
8308fi
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8310$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8311ac_ext=c
8312ac_cpp='$CPP $CPPFLAGS'
8313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8315ac_compiler_gnu=$ac_cv_c_compiler_gnu
8316
8317
8318 case $ax_cv_gcc_x86_cpuid_0 in
8319 *:756e6547:*:*) # Intel
8320 case $ax_cv_gcc_x86_cpuid_1 in
8321 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8322 *5??:*:*:*) ax_gcc_arch=pentium ;;
8323 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8324 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8325 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8326 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8327 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8328 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8329 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8330 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8331 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8332 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8333 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8334 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8335 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8336 case $host_cpu in
8337 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8338 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8339 esac ;;
8340 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8341 esac ;;
8342 *:68747541:*:*) # AMD
8343 case $ax_cv_gcc_x86_cpuid_1 in
8344 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8345 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8346 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8347 *60?:*:*:*) ax_gcc_arch=k7 ;;
8348 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8349 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8350 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8351 *6[68a]?:*:*:*)
8352
8353ac_ext=c
8354ac_cpp='$CPP $CPPFLAGS'
8355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8357ac_compiler_gnu=$ac_cv_c_compiler_gnu
8358
8359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8360$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8361if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8362 $as_echo_n "(cached) " >&6
8363else
8364 if test "$cross_compiling" = yes; then :
8365 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8366else
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368/* end confdefs.h. */
8369#include <stdio.h>
8370int
8371main ()
8372{
8373
8374 int op = 0x80000006, eax, ebx, ecx, edx;
8375 FILE *f;
8376 __asm__("cpuid"
8377 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8378 : "a" (op));
8379 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8380 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8381 fclose(f);
8382 return 0;
8383
8384 ;
8385 return 0;
8386}
8387_ACEOF
8388if ac_fn_c_try_run "$LINENO"; then :
8389 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8390else
8391 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8392fi
8393rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8394 conftest.$ac_objext conftest.beam conftest.$ac_ext
8395fi
8396
8397fi
8398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8399$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8400ac_ext=c
8401ac_cpp='$CPP $CPPFLAGS'
8402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8404ac_compiler_gnu=$ac_cv_c_compiler_gnu
8405
8406 # L2 cache size
8407 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8408 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8409 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8410 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8411 esac ;;
8412 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8413 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8414 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8415 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8416 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8417 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8418 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8419 esac ;;
8420 *:746e6543:*:*) # IDT
8421 case $ax_cv_gcc_x86_cpuid_1 in
8422 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8423 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8424 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8425 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8426 esac ;;
8427 esac
8428 if test x"$ax_gcc_arch" = x; then # fallback
8429 case $host_cpu in
8430 i586*) ax_gcc_arch=pentium ;;
8431 i686*) ax_gcc_arch=pentiumpro ;;
8432 esac
8433 fi
8434 ;;
8435
8436 sparc*)
8437 # Extract the first word of "prtdiag", so it can be a program name with args.
8438set dummy prtdiag; ac_word=$2
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440$as_echo_n "checking for $ac_word... " >&6; }
8441if ${ac_cv_path_PRTDIAG+:} false; then :
8442 $as_echo_n "(cached) " >&6
8443else
8444 case $PRTDIAG in
8445 [\\/]* | ?:[\\/]*)
8446 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8447 ;;
8448 *)
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8451for as_dir in $as_dummy
8452do
8453 IFS=$as_save_IFS
8454 test -z "$as_dir" && as_dir=.
8455 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008457 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8459 break 2
8460 fi
8461done
8462 done
8463IFS=$as_save_IFS
8464
8465 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8466 ;;
8467esac
8468fi
8469PRTDIAG=$ac_cv_path_PRTDIAG
8470if test -n "$PRTDIAG"; then
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8472$as_echo "$PRTDIAG" >&6; }
8473else
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475$as_echo "no" >&6; }
8476fi
8477
8478
8479 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`
8480 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8481 case $cputype in
8482 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8483 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8484 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8485 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8486 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8487 *cypress*) ax_gcc_arch=cypress ;;
8488 esac ;;
8489
8490 alphaev5) ax_gcc_arch=ev5 ;;
8491 alphaev56) ax_gcc_arch=ev56 ;;
8492 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8493 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8494 alphaev6) ax_gcc_arch=ev6 ;;
8495 alphaev67) ax_gcc_arch=ev67 ;;
8496 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8497 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8498 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8499 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8500
8501 powerpc*)
8502 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`
8503 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8504 case $cputype in
8505 *750*) ax_gcc_arch="750 G3" ;;
8506 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8507 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8508 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8509 *970*) ax_gcc_arch="970 G5 power4";;
8510 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8511 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8512 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8513 *) ax_gcc_arch=$cputype ;;
8514 esac
8515 ax_gcc_arch="$ax_gcc_arch powerpc"
8516 ;;
8517esac
8518fi # not cross-compiling
8519fi # guess arch
8520
8521if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8522for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008523 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008524 flags="-mtune=$arch"
8525 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8526 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8527 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8528 else
8529 flags="-march=$arch -mcpu=$arch -m$arch"
8530 fi
8531 for flag in $flags; do
8532 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8534$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8535if eval \${$as_CACHEVAR+:} false; then :
8536 $as_echo_n "(cached) " >&6
8537else
8538
8539 ax_check_save_flags=$CFLAGS
8540 CFLAGS="$CFLAGS $flag"
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542/* end confdefs.h. */
8543
8544int
8545main ()
8546{
8547
8548 ;
8549 return 0;
8550}
8551_ACEOF
8552if ac_fn_c_try_compile "$LINENO"; then :
8553 eval "$as_CACHEVAR=yes"
8554else
8555 eval "$as_CACHEVAR=no"
8556fi
8557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8558 CFLAGS=$ax_check_save_flags
8559fi
8560eval ac_res=\$$as_CACHEVAR
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8562$as_echo "$ac_res" >&6; }
8563if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8564 ax_cv_gcc_archflag=$flag; break
8565else
8566 :
8567fi
8568
8569 done
8570 test "x$ax_cv_gcc_archflag" = xunknown || break
8571done
8572fi
8573
8574fi # $GCC=yes
8575
8576fi
8577
8578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8579$as_echo_n "checking for gcc architecture flag... " >&6; }
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8581$as_echo "$ax_cv_gcc_archflag" >&6; }
8582if test "x$ax_cv_gcc_archflag" = xunknown; then
8583 :
8584else
8585 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8586fi
8587
8588
8589
cristy73bd4a52010-10-05 11:24:23 +00008590if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8591 if test -n "$ac_tool_prefix"; then
8592 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8593set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008596if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008597 $as_echo_n "(cached) " >&6
8598else
8599 case $PKG_CONFIG in
8600 [\\/]* | ?:[\\/]*)
8601 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8602 ;;
8603 *)
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605for as_dir in $PATH
8606do
8607 IFS=$as_save_IFS
8608 test -z "$as_dir" && as_dir=.
8609 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008611 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8613 break 2
8614 fi
8615done
8616 done
8617IFS=$as_save_IFS
8618
8619 ;;
8620esac
8621fi
8622PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8623if test -n "$PKG_CONFIG"; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8625$as_echo "$PKG_CONFIG" >&6; }
8626else
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628$as_echo "no" >&6; }
8629fi
8630
8631
8632fi
8633if test -z "$ac_cv_path_PKG_CONFIG"; then
8634 ac_pt_PKG_CONFIG=$PKG_CONFIG
8635 # Extract the first word of "pkg-config", so it can be a program name with args.
8636set dummy pkg-config; ac_word=$2
8637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008639if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008640 $as_echo_n "(cached) " >&6
8641else
8642 case $ac_pt_PKG_CONFIG in
8643 [\\/]* | ?:[\\/]*)
8644 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8645 ;;
8646 *)
8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648for as_dir in $PATH
8649do
8650 IFS=$as_save_IFS
8651 test -z "$as_dir" && as_dir=.
8652 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008654 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8656 break 2
8657 fi
8658done
8659 done
8660IFS=$as_save_IFS
8661
8662 ;;
8663esac
8664fi
8665ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8666if test -n "$ac_pt_PKG_CONFIG"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8668$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8669else
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671$as_echo "no" >&6; }
8672fi
8673
8674 if test "x$ac_pt_PKG_CONFIG" = x; then
8675 PKG_CONFIG=""
8676 else
8677 case $cross_compiling:$ac_tool_warned in
8678yes:)
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8681ac_tool_warned=yes ;;
8682esac
8683 PKG_CONFIG=$ac_pt_PKG_CONFIG
8684 fi
8685else
8686 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8687fi
8688
8689fi
8690if test -n "$PKG_CONFIG"; then
8691 _pkg_min_version=0.9.0
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8693$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8694 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8696$as_echo "yes" >&6; }
8697 else
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8699$as_echo "no" >&6; }
8700 PKG_CONFIG=""
8701 fi
8702
8703fi
cristy3ed852e2009-09-05 21:47:34 +00008704
cristy9b86f202012-11-28 21:55:35 +00008705# Check for linker script support
8706
8707 # Check whether --enable-ld-version-script was given.
8708if test "${enable_ld_version_script+set}" = set; then :
8709 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8710fi
8711
8712 if test -z "$have_ld_version_script"; then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8714$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8715 save_LDFLAGS="$LDFLAGS"
8716 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8717 cat > conftest.map <<EOF
8718foo
8719EOF
8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721/* end confdefs.h. */
8722
8723int
8724main ()
8725{
8726
8727 ;
8728 return 0;
8729}
8730_ACEOF
8731if ac_fn_c_try_link "$LINENO"; then :
8732 accepts_syntax_errors=yes
8733else
8734 accepts_syntax_errors=no
8735fi
8736rm -f core conftest.err conftest.$ac_objext \
8737 conftest$ac_exeext conftest.$ac_ext
8738 if test "$accepts_syntax_errors" = no; then
8739 cat > conftest.map <<EOF
8740VERS_1 {
8741 global: sym;
8742};
8743
8744VERS_2 {
8745 global: sym;
8746} VERS_1;
8747EOF
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749/* end confdefs.h. */
8750
8751int
8752main ()
8753{
8754
8755 ;
8756 return 0;
8757}
8758_ACEOF
8759if ac_fn_c_try_link "$LINENO"; then :
8760 have_ld_version_script=yes
8761else
8762 have_ld_version_script=no
8763fi
8764rm -f core conftest.err conftest.$ac_objext \
8765 conftest$ac_exeext conftest.$ac_ext
8766 else
8767 have_ld_version_script=no
8768 fi
8769 rm -f conftest.map
8770 LDFLAGS="$save_LDFLAGS"
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8772$as_echo "$have_ld_version_script" >&6; }
8773 fi
8774 if test "$have_ld_version_script" = "yes"; then
8775 HAVE_LD_VERSION_SCRIPT_TRUE=
8776 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8777else
8778 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8779 HAVE_LD_VERSION_SCRIPT_FALSE=
8780fi
8781
8782
8783
cristy3ed852e2009-09-05 21:47:34 +00008784#
cristy3ed852e2009-09-05 21:47:34 +00008785# Enable run-time checking.
8786#
8787# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008788if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008789 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8790else
8791 enable_bounds_checking='no'
8792fi
8793
8794
8795if test "$enable_bounds_checking" = yes; then
8796
cristy8b350f62009-11-15 23:12:43 +00008797$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008798
8799fi
8800
8801#
8802# Tests for Windows
8803#
8804
8805
8806
8807GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008808native_win32_build='no'
8809cygwin_build='no'
8810case "${host_os}" in
8811 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008812 cygwin_build='yes'
8813 GDI32_LIBS='-lgdi32'
8814 ;;
8815 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008816 native_win32_build='yes'
8817 GDI32_LIBS='-lgdi32'
8818 ;;
8819esac
8820if test "${GDI32_LIBS}x" != 'x'; then
8821
cristy8b350f62009-11-15 23:12:43 +00008822$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008823
8824fi
8825
cristy73bd4a52010-10-05 11:24:23 +00008826 if test "${GDI32_LIBS}x" != 'x' ; then
8827 WINGDI32_DELEGATE_TRUE=
8828 WINGDI32_DELEGATE_FALSE='#'
8829else
8830 WINGDI32_DELEGATE_TRUE='#'
8831 WINGDI32_DELEGATE_FALSE=
8832fi
8833
8834 if test "${native_win32_build}" = 'yes' ; then
8835 WIN32_NATIVE_BUILD_TRUE=
8836 WIN32_NATIVE_BUILD_FALSE='#'
8837else
8838 WIN32_NATIVE_BUILD_TRUE='#'
8839 WIN32_NATIVE_BUILD_FALSE=
8840fi
8841
8842 if test "${cygwin_build}" = 'yes' ; then
8843 CYGWIN_BUILD_TRUE=
8844 CYGWIN_BUILD_FALSE='#'
8845else
8846 CYGWIN_BUILD_TRUE='#'
8847 CYGWIN_BUILD_FALSE=
8848fi
8849
8850 if test "x${CC}" = 'xcl.exe' ; then
8851 USING_CL_TRUE=
8852 USING_CL_FALSE='#'
8853else
8854 USING_CL_TRUE='#'
8855 USING_CL_FALSE=
8856fi
8857
cristy3ed852e2009-09-05 21:47:34 +00008858
8859WinPathScript="${srcdirfull}/winpath.sh"
8860
8861
8862#
8863# Compiler flags tweaks
8864#
8865if test "${GCC}" != "yes"; then
8866 case "${host}" in
8867 *-*-hpux* )
8868 # aCC: HP ANSI C++ B3910B A.03.34
8869 CFLAGS="${CFLAGS} -Wp,-H30000"
8870 if test -n "${CXXFLAGS}"; then
8871 CXXFLAGS='-AA'
8872 else
8873 CXXFLAGS="${CXXFLAGS} -AA"
8874 fi
8875 ;;
8876 *-dec-osf5.* )
8877 # Compaq alphaev68-dec-osf5.1 compiler
8878 if test -n "${CXXFLAGS}"; then
8879 CXXFLAGS='-std strict_ansi -noimplicit_include'
8880 else
8881 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8882 fi
8883 esac
8884fi
8885
8886# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008888$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008889if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008890 $as_echo_n "(cached) " >&6
8891else
8892
8893im_cv_ld_lazyload='none'
8894case "${host}" in
8895 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8896 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8897 im_cv_ld_lazyload='-Wl,-zlazyload'
8898 fi
8899 ;;
8900esac
8901
8902fi
cristy8b350f62009-11-15 23:12:43 +00008903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008904$as_echo "$im_cv_ld_lazyload" >&6; }
8905if test "${im_cv_ld_lazyload}" != 'none' ; then
8906 if test -z "${LDFLAGS}" ; then
8907 LDFLAGS="${im_cv_ld_lazyload}"
8908 else
8909 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8910 fi
8911fi
8912
8913case "$host" in
8914*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008915 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008916if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008917 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8918else
8919 build_osxuniversal=no
8920fi
8921
8922
8923 if test "${build_osxuniversal}" != no ; then
8924 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008925 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008926Please re-run configure with these options:
8927 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008928 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008929 fi
8930 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8931 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8932 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8933 fi
8934 ;;
8935esac
8936
cristy0151ae12011-10-28 16:32:29 +00008937#
8938# ARCH specific include directory
8939#
8940
cristy670aa3c2011-11-03 00:54:00 +00008941# Check whether --with-includearch-dir was given.
8942if test "${with_includearch_dir+set}" = set; then :
8943 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008944else
cristy670aa3c2011-11-03 00:54:00 +00008945 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008946fi
8947
8948
cristy670aa3c2011-11-03 00:54:00 +00008949eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008950
cristy0151ae12011-10-28 16:32:29 +00008951
8952#
8953# ARCH specific configuration directory
8954#
8955
cristy670aa3c2011-11-03 00:54:00 +00008956# Check whether --with-sharearch-dir was given.
8957if test "${with_sharearch_dir+set}" = set; then :
8958 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008959else
cristy408ebcd2011-11-14 01:36:57 +00008960 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008961fi
8962
8963
cristy670aa3c2011-11-03 00:54:00 +00008964eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008965
cristy0151ae12011-10-28 16:32:29 +00008966
8967#
cristy3ed852e2009-09-05 21:47:34 +00008968# Enable support for threads
8969
8970# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008971if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008972 withval=$with_threads; with_threads=$withval
8973else
8974 with_threads='yes'
8975fi
8976
8977
8978have_threads=no
8979if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008980
8981
cristy73bd4a52010-10-05 11:24:23 +00008982ac_ext=c
8983ac_cpp='$CPP $CPPFLAGS'
8984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8986ac_compiler_gnu=$ac_cv_c_compiler_gnu
8987
8988ax_pthread_ok=no
8989
8990# We used to check for pthread.h first, but this fails if pthread.h
8991# requires special compiler flags (e.g. on True64 or Sequent).
8992# It gets checked for in the link test anyway.
8993
8994# First of all, check if the user has set any of the PTHREAD_LIBS,
8995# etcetera environment variables, and if threads linking works using
8996# them:
8997if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8998 save_CFLAGS="$CFLAGS"
8999 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9000 save_LIBS="$LIBS"
9001 LIBS="$PTHREAD_LIBS $LIBS"
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9003$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005/* end confdefs.h. */
9006
9007/* Override any GCC internal prototype to avoid an error.
9008 Use char because int might match the return type of a GCC
9009 builtin and then its argument prototype would still apply. */
9010#ifdef __cplusplus
9011extern "C"
9012#endif
9013char pthread_join ();
9014int
9015main ()
9016{
9017return pthread_join ();
9018 ;
9019 return 0;
9020}
9021_ACEOF
9022if ac_fn_c_try_link "$LINENO"; then :
9023 ax_pthread_ok=yes
9024fi
9025rm -f core conftest.err conftest.$ac_objext \
9026 conftest$ac_exeext conftest.$ac_ext
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9028$as_echo "$ax_pthread_ok" >&6; }
9029 if test x"$ax_pthread_ok" = xno; then
9030 PTHREAD_LIBS=""
9031 PTHREAD_CFLAGS=""
9032 fi
9033 LIBS="$save_LIBS"
9034 CFLAGS="$save_CFLAGS"
9035fi
9036
9037# We must check for the threads library under a number of different
9038# names; the ordering is very important because some systems
9039# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9040# libraries is broken (non-POSIX).
9041
9042# Create a list of thread flags to try. Items starting with a "-" are
9043# C compiler flags, and other items are library names, except for "none"
9044# which indicates that we try without any flags at all, and "pthread-config"
9045# which is a program returning the flags for the Pth emulation library.
9046
cristy18307f12011-12-30 01:20:16 +00009047ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009048
9049# The ordering *is* (sometimes) important. Some notes on the
9050# individual items follow:
9051
9052# pthreads: AIX (must check this before -lpthread)
9053# none: in case threads are in libc; should be tried before -Kthread and
9054# other compiler flags to prevent continual compiler warnings
9055# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9056# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9057# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9058# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9059# -pthreads: Solaris/gcc
9060# -mthreads: Mingw32/gcc, Lynx/gcc
9061# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9062# doesn't hurt to check since this sometimes defines pthreads too;
9063# also defines -D_REENTRANT)
9064# ... -mt is also the pthreads flag for HP/aCC
9065# pthread: Linux, etcetera
9066# --thread-safe: KAI C++
9067# pthread-config: use pthread-config program (for GNU Pth library)
9068
9069case "${host_cpu}-${host_os}" in
9070 *solaris*)
9071
9072 # On Solaris (at least, for some versions), libc contains stubbed
9073 # (non-functional) versions of the pthreads routines, so link-based
9074 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9075 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9076 # a function called by this macro, so we could check for that, but
9077 # who knows whether they'll stub that too in a future libc.) So,
9078 # we'll just look for -pthreads and -lpthread first:
9079
9080 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9081 ;;
9082
cristya316db12011-10-24 00:49:45 +00009083 *-darwin*)
9084 ax_pthread_flags="-pthread $ax_pthread_flags"
9085 ;;
cristy73bd4a52010-10-05 11:24:23 +00009086esac
9087
9088if test x"$ax_pthread_ok" = xno; then
9089for flag in $ax_pthread_flags; do
9090
9091 case $flag in
9092 none)
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9094$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9095 ;;
9096
9097 -*)
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9099$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9100 PTHREAD_CFLAGS="$flag"
9101 ;;
9102
cristya316db12011-10-24 00:49:45 +00009103 pthread-config)
9104 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009105set dummy pthread-config; ac_word=$2
9106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9107$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009108if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009109 $as_echo_n "(cached) " >&6
9110else
9111 if test -n "$ax_pthread_config"; then
9112 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9113else
9114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9115for as_dir in $PATH
9116do
9117 IFS=$as_save_IFS
9118 test -z "$as_dir" && as_dir=.
9119 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009121 ac_cv_prog_ax_pthread_config="yes"
9122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9123 break 2
9124 fi
9125done
9126 done
9127IFS=$as_save_IFS
9128
9129 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9130fi
9131fi
9132ax_pthread_config=$ac_cv_prog_ax_pthread_config
9133if test -n "$ax_pthread_config"; then
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9135$as_echo "$ax_pthread_config" >&6; }
9136else
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9138$as_echo "no" >&6; }
9139fi
9140
9141
cristya316db12011-10-24 00:49:45 +00009142 if test x"$ax_pthread_config" = xno; then continue; fi
9143 PTHREAD_CFLAGS="`pthread-config --cflags`"
9144 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9145 ;;
cristy73bd4a52010-10-05 11:24:23 +00009146
9147 *)
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9149$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9150 PTHREAD_LIBS="-l$flag"
9151 ;;
9152 esac
9153
9154 save_LIBS="$LIBS"
9155 save_CFLAGS="$CFLAGS"
9156 LIBS="$PTHREAD_LIBS $LIBS"
9157 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9158
9159 # Check for various functions. We must include pthread.h,
9160 # since some functions may be macros. (On the Sequent, we
9161 # need a special flag -Kthread to make this header compile.)
9162 # We check for pthread_join because it is in -lpthread on IRIX
9163 # while pthread_create is in libc. We check for pthread_attr_init
9164 # due to DEC craziness with -lpthreads. We check for
9165 # pthread_cleanup_push because it is one of the few pthread
9166 # functions on Solaris that doesn't have a non-functional libc stub.
9167 # We try pthread_create on general principles.
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169/* end confdefs.h. */
9170#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009171 static void routine(void *a) { a = 0; }
9172 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009173int
9174main ()
9175{
9176pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009177 pthread_create(&th, 0, start_routine, 0);
9178 pthread_join(th, 0);
9179 pthread_attr_init(&attr);
9180 pthread_cleanup_push(routine, 0);
9181 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009182 ;
9183 return 0;
9184}
9185_ACEOF
9186if ac_fn_c_try_link "$LINENO"; then :
9187 ax_pthread_ok=yes
9188fi
9189rm -f core conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
9191
9192 LIBS="$save_LIBS"
9193 CFLAGS="$save_CFLAGS"
9194
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9196$as_echo "$ax_pthread_ok" >&6; }
9197 if test "x$ax_pthread_ok" = xyes; then
9198 break;
9199 fi
9200
9201 PTHREAD_LIBS=""
9202 PTHREAD_CFLAGS=""
9203done
9204fi
9205
9206# Various other checks:
9207if test "x$ax_pthread_ok" = xyes; then
9208 save_LIBS="$LIBS"
9209 LIBS="$PTHREAD_LIBS $LIBS"
9210 save_CFLAGS="$CFLAGS"
9211 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9212
9213 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009215$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009216 attr_name=unknown
9217 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009219/* end confdefs.h. */
9220#include <pthread.h>
9221int
9222main ()
9223{
cristya316db12011-10-24 00:49:45 +00009224int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009225 ;
9226 return 0;
9227}
9228_ACEOF
9229if ac_fn_c_try_link "$LINENO"; then :
9230 attr_name=$attr; break
9231fi
9232rm -f core conftest.err conftest.$ac_objext \
9233 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009234 done
cristy73bd4a52010-10-05 11:24:23 +00009235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9236$as_echo "$attr_name" >&6; }
9237 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9238
9239cat >>confdefs.h <<_ACEOF
9240#define PTHREAD_CREATE_JOINABLE $attr_name
9241_ACEOF
9242
9243 fi
9244
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9246$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9247 flag=no
9248 case "${host_cpu}-${host_os}" in
9249 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9250 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9251 esac
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9253$as_echo "${flag}" >&6; }
9254 if test "x$flag" != xno; then
9255 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9256 fi
9257
cristya316db12011-10-24 00:49:45 +00009258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9259$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9260if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9261 $as_echo_n "(cached) " >&6
9262else
9263
9264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265/* end confdefs.h. */
9266
9267 #include <pthread.h>
9268int
9269main ()
9270{
9271int i = PTHREAD_PRIO_INHERIT;
9272 ;
9273 return 0;
9274}
9275_ACEOF
9276if ac_fn_c_try_link "$LINENO"; then :
9277 ax_cv_PTHREAD_PRIO_INHERIT=yes
9278else
9279 ax_cv_PTHREAD_PRIO_INHERIT=no
9280fi
9281rm -f core conftest.err conftest.$ac_objext \
9282 conftest$ac_exeext conftest.$ac_ext
9283
9284fi
9285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9286$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9287 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9288
9289$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9290
9291fi
9292
cristy73bd4a52010-10-05 11:24:23 +00009293 LIBS="$save_LIBS"
9294 CFLAGS="$save_CFLAGS"
9295
9296 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009297 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009298 for ac_prog in xlc_r cc_r
9299do
9300 # Extract the first word of "$ac_prog", so it can be a program name with args.
9301set dummy $ac_prog; ac_word=$2
9302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9303$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009304if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009305 $as_echo_n "(cached) " >&6
9306else
9307 if test -n "$PTHREAD_CC"; then
9308 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9309else
9310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9311for as_dir in $PATH
9312do
9313 IFS=$as_save_IFS
9314 test -z "$as_dir" && as_dir=.
9315 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009317 ac_cv_prog_PTHREAD_CC="$ac_prog"
9318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9319 break 2
9320 fi
9321done
9322 done
9323IFS=$as_save_IFS
9324
9325fi
9326fi
9327PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9328if test -n "$PTHREAD_CC"; then
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9330$as_echo "$PTHREAD_CC" >&6; }
9331else
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9333$as_echo "no" >&6; }
9334fi
9335
9336
9337 test -n "$PTHREAD_CC" && break
9338done
9339test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9340
9341 else
9342 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009343 fi
cristy73bd4a52010-10-05 11:24:23 +00009344else
9345 PTHREAD_CC="$CC"
9346fi
9347
9348
9349
9350
9351
9352# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9353if test x"$ax_pthread_ok" = xyes; then
9354
9355$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9356
9357 :
9358else
9359 ax_pthread_ok=no
9360
9361fi
9362ac_ext=c
9363ac_cpp='$CPP $CPPFLAGS'
9364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9366ac_compiler_gnu=$ac_cv_c_compiler_gnu
9367
9368
cristy7acf8fb2010-09-23 19:58:53 +00009369 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009370 have_threads=yes
9371 DEF_THREAD="$PTHREAD_CFLAGS"
9372 CFLAGS="$CFLAGS $DEF_THREAD"
9373 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9374 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009375 { $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 +00009376$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9377 CC="$PTHREAD_CC"
9378 fi
cristy55bf91c2010-09-24 00:29:41 +00009379
9380$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9381
cristy3ed852e2009-09-05 21:47:34 +00009382 fi
9383fi
9384
9385# Enable support for OpenMP
9386if test "$have_threads" != 'yes'; then
9387 ac_cv_prog_c_openmp=unsupported
9388fi
9389
9390 OPENMP_CFLAGS=
9391 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009392if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009393 enableval=$enable_openmp;
9394fi
9395
9396 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009398$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009399if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009400 $as_echo_n "(cached) " >&6
9401else
cristy8b350f62009-11-15 23:12:43 +00009402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009404
9405#ifndef _OPENMP
9406 choke me
9407#endif
9408#include <omp.h>
9409int main () { return omp_get_num_threads (); }
9410
9411_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009412if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009413 ac_cv_prog_c_openmp='none needed'
9414else
cristy8b350f62009-11-15 23:12:43 +00009415 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009416 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9417 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009418 ac_save_CFLAGS=$CFLAGS
9419 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009422
9423#ifndef _OPENMP
9424 choke me
9425#endif
9426#include <omp.h>
9427int main () { return omp_get_num_threads (); }
9428
9429_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009430if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009431 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009432fi
cristy8b350f62009-11-15 23:12:43 +00009433rm -f core conftest.err conftest.$ac_objext \
9434 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009435 CFLAGS=$ac_save_CFLAGS
9436 if test "$ac_cv_prog_c_openmp" != unsupported; then
9437 break
9438 fi
9439 done
9440fi
cristy8b350f62009-11-15 23:12:43 +00009441rm -f core conftest.err conftest.$ac_objext \
9442 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009443fi
cristy8b350f62009-11-15 23:12:43 +00009444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009445$as_echo "$ac_cv_prog_c_openmp" >&6; }
9446 case $ac_cv_prog_c_openmp in #(
9447 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009448 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009449 *)
cristy8b350f62009-11-15 23:12:43 +00009450 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009451 esac
9452 fi
9453
9454
9455CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9456MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9457
cristy391f1ce2010-09-09 17:23:28 +00009458if test "$enable_openmp" != no; then
9459 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9460 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9461 fi
9462fi
cristy3ed852e2009-09-05 21:47:34 +00009463
cristy736173a2009-09-20 21:18:22 +00009464# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009465
9466
cristy73bd4a52010-10-05 11:24:23 +00009467ac_ext=c
9468ac_cpp='$CPP $CPPFLAGS'
9469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9471ac_compiler_gnu=$ac_cv_c_compiler_gnu
9472
9473ax_pthread_ok=no
9474
9475# We used to check for pthread.h first, but this fails if pthread.h
9476# requires special compiler flags (e.g. on True64 or Sequent).
9477# It gets checked for in the link test anyway.
9478
9479# First of all, check if the user has set any of the PTHREAD_LIBS,
9480# etcetera environment variables, and if threads linking works using
9481# them:
9482if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9483 save_CFLAGS="$CFLAGS"
9484 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9485 save_LIBS="$LIBS"
9486 LIBS="$PTHREAD_LIBS $LIBS"
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9488$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9490/* end confdefs.h. */
9491
9492/* Override any GCC internal prototype to avoid an error.
9493 Use char because int might match the return type of a GCC
9494 builtin and then its argument prototype would still apply. */
9495#ifdef __cplusplus
9496extern "C"
9497#endif
9498char pthread_join ();
9499int
9500main ()
9501{
9502return pthread_join ();
9503 ;
9504 return 0;
9505}
9506_ACEOF
9507if ac_fn_c_try_link "$LINENO"; then :
9508 ax_pthread_ok=yes
9509fi
9510rm -f core conftest.err conftest.$ac_objext \
9511 conftest$ac_exeext conftest.$ac_ext
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9513$as_echo "$ax_pthread_ok" >&6; }
9514 if test x"$ax_pthread_ok" = xno; then
9515 PTHREAD_LIBS=""
9516 PTHREAD_CFLAGS=""
9517 fi
9518 LIBS="$save_LIBS"
9519 CFLAGS="$save_CFLAGS"
9520fi
9521
9522# We must check for the threads library under a number of different
9523# names; the ordering is very important because some systems
9524# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9525# libraries is broken (non-POSIX).
9526
9527# Create a list of thread flags to try. Items starting with a "-" are
9528# C compiler flags, and other items are library names, except for "none"
9529# which indicates that we try without any flags at all, and "pthread-config"
9530# which is a program returning the flags for the Pth emulation library.
9531
cristy18307f12011-12-30 01:20:16 +00009532ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009533
9534# The ordering *is* (sometimes) important. Some notes on the
9535# individual items follow:
9536
9537# pthreads: AIX (must check this before -lpthread)
9538# none: in case threads are in libc; should be tried before -Kthread and
9539# other compiler flags to prevent continual compiler warnings
9540# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9541# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9542# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9543# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9544# -pthreads: Solaris/gcc
9545# -mthreads: Mingw32/gcc, Lynx/gcc
9546# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9547# doesn't hurt to check since this sometimes defines pthreads too;
9548# also defines -D_REENTRANT)
9549# ... -mt is also the pthreads flag for HP/aCC
9550# pthread: Linux, etcetera
9551# --thread-safe: KAI C++
9552# pthread-config: use pthread-config program (for GNU Pth library)
9553
9554case "${host_cpu}-${host_os}" in
9555 *solaris*)
9556
9557 # On Solaris (at least, for some versions), libc contains stubbed
9558 # (non-functional) versions of the pthreads routines, so link-based
9559 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9560 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9561 # a function called by this macro, so we could check for that, but
9562 # who knows whether they'll stub that too in a future libc.) So,
9563 # we'll just look for -pthreads and -lpthread first:
9564
9565 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9566 ;;
9567
cristya316db12011-10-24 00:49:45 +00009568 *-darwin*)
9569 ax_pthread_flags="-pthread $ax_pthread_flags"
9570 ;;
cristy73bd4a52010-10-05 11:24:23 +00009571esac
9572
9573if test x"$ax_pthread_ok" = xno; then
9574for flag in $ax_pthread_flags; do
9575
9576 case $flag in
9577 none)
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9579$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9580 ;;
9581
9582 -*)
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9584$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9585 PTHREAD_CFLAGS="$flag"
9586 ;;
9587
cristya316db12011-10-24 00:49:45 +00009588 pthread-config)
9589 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009590set dummy pthread-config; ac_word=$2
9591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9592$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009593if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009594 $as_echo_n "(cached) " >&6
9595else
9596 if test -n "$ax_pthread_config"; then
9597 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9598else
9599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600for as_dir in $PATH
9601do
9602 IFS=$as_save_IFS
9603 test -z "$as_dir" && as_dir=.
9604 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009606 ac_cv_prog_ax_pthread_config="yes"
9607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9608 break 2
9609 fi
9610done
9611 done
9612IFS=$as_save_IFS
9613
9614 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9615fi
9616fi
9617ax_pthread_config=$ac_cv_prog_ax_pthread_config
9618if test -n "$ax_pthread_config"; then
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9620$as_echo "$ax_pthread_config" >&6; }
9621else
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623$as_echo "no" >&6; }
9624fi
9625
9626
cristya316db12011-10-24 00:49:45 +00009627 if test x"$ax_pthread_config" = xno; then continue; fi
9628 PTHREAD_CFLAGS="`pthread-config --cflags`"
9629 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9630 ;;
cristy73bd4a52010-10-05 11:24:23 +00009631
9632 *)
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9634$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9635 PTHREAD_LIBS="-l$flag"
9636 ;;
9637 esac
9638
9639 save_LIBS="$LIBS"
9640 save_CFLAGS="$CFLAGS"
9641 LIBS="$PTHREAD_LIBS $LIBS"
9642 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9643
9644 # Check for various functions. We must include pthread.h,
9645 # since some functions may be macros. (On the Sequent, we
9646 # need a special flag -Kthread to make this header compile.)
9647 # We check for pthread_join because it is in -lpthread on IRIX
9648 # while pthread_create is in libc. We check for pthread_attr_init
9649 # due to DEC craziness with -lpthreads. We check for
9650 # pthread_cleanup_push because it is one of the few pthread
9651 # functions on Solaris that doesn't have a non-functional libc stub.
9652 # We try pthread_create on general principles.
9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654/* end confdefs.h. */
9655#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009656 static void routine(void *a) { a = 0; }
9657 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009658int
9659main ()
9660{
9661pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009662 pthread_create(&th, 0, start_routine, 0);
9663 pthread_join(th, 0);
9664 pthread_attr_init(&attr);
9665 pthread_cleanup_push(routine, 0);
9666 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009667 ;
9668 return 0;
9669}
9670_ACEOF
9671if ac_fn_c_try_link "$LINENO"; then :
9672 ax_pthread_ok=yes
9673fi
9674rm -f core conftest.err conftest.$ac_objext \
9675 conftest$ac_exeext conftest.$ac_ext
9676
9677 LIBS="$save_LIBS"
9678 CFLAGS="$save_CFLAGS"
9679
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9681$as_echo "$ax_pthread_ok" >&6; }
9682 if test "x$ax_pthread_ok" = xyes; then
9683 break;
9684 fi
9685
9686 PTHREAD_LIBS=""
9687 PTHREAD_CFLAGS=""
9688done
9689fi
9690
9691# Various other checks:
9692if test "x$ax_pthread_ok" = xyes; then
9693 save_LIBS="$LIBS"
9694 LIBS="$PTHREAD_LIBS $LIBS"
9695 save_CFLAGS="$CFLAGS"
9696 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9697
9698 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009700$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009701 attr_name=unknown
9702 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009704/* end confdefs.h. */
9705#include <pthread.h>
9706int
9707main ()
9708{
cristya316db12011-10-24 00:49:45 +00009709int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009710 ;
9711 return 0;
9712}
9713_ACEOF
9714if ac_fn_c_try_link "$LINENO"; then :
9715 attr_name=$attr; break
9716fi
9717rm -f core conftest.err conftest.$ac_objext \
9718 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009719 done
cristy73bd4a52010-10-05 11:24:23 +00009720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9721$as_echo "$attr_name" >&6; }
9722 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9723
9724cat >>confdefs.h <<_ACEOF
9725#define PTHREAD_CREATE_JOINABLE $attr_name
9726_ACEOF
9727
9728 fi
9729
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9731$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9732 flag=no
9733 case "${host_cpu}-${host_os}" in
9734 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9735 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9736 esac
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9738$as_echo "${flag}" >&6; }
9739 if test "x$flag" != xno; then
9740 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9741 fi
9742
cristya316db12011-10-24 00:49:45 +00009743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9744$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9745if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9746 $as_echo_n "(cached) " >&6
9747else
9748
9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750/* end confdefs.h. */
9751
9752 #include <pthread.h>
9753int
9754main ()
9755{
9756int i = PTHREAD_PRIO_INHERIT;
9757 ;
9758 return 0;
9759}
9760_ACEOF
9761if ac_fn_c_try_link "$LINENO"; then :
9762 ax_cv_PTHREAD_PRIO_INHERIT=yes
9763else
9764 ax_cv_PTHREAD_PRIO_INHERIT=no
9765fi
9766rm -f core conftest.err conftest.$ac_objext \
9767 conftest$ac_exeext conftest.$ac_ext
9768
9769fi
9770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9771$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9772 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9773
9774$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9775
9776fi
9777
cristy73bd4a52010-10-05 11:24:23 +00009778 LIBS="$save_LIBS"
9779 CFLAGS="$save_CFLAGS"
9780
9781 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009782 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009783 for ac_prog in xlc_r cc_r
9784do
9785 # Extract the first word of "$ac_prog", so it can be a program name with args.
9786set dummy $ac_prog; ac_word=$2
9787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9788$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009789if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009790 $as_echo_n "(cached) " >&6
9791else
9792 if test -n "$PTHREAD_CC"; then
9793 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9794else
9795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9796for as_dir in $PATH
9797do
9798 IFS=$as_save_IFS
9799 test -z "$as_dir" && as_dir=.
9800 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009802 ac_cv_prog_PTHREAD_CC="$ac_prog"
9803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9804 break 2
9805 fi
9806done
9807 done
9808IFS=$as_save_IFS
9809
9810fi
9811fi
9812PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9813if test -n "$PTHREAD_CC"; then
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9815$as_echo "$PTHREAD_CC" >&6; }
9816else
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9818$as_echo "no" >&6; }
9819fi
9820
9821
9822 test -n "$PTHREAD_CC" && break
9823done
9824test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9825
9826 else
9827 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009828 fi
cristy73bd4a52010-10-05 11:24:23 +00009829else
9830 PTHREAD_CC="$CC"
9831fi
9832
9833
9834
9835
9836
9837# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9838if test x"$ax_pthread_ok" = xyes; then
9839
9840$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9841
9842 :
9843else
9844 ax_pthread_ok=no
9845
9846fi
9847ac_ext=c
9848ac_cpp='$CPP $CPPFLAGS'
9849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9851ac_compiler_gnu=$ac_cv_c_compiler_gnu
9852
9853
9854
9855# Check whether --enable-opencl was given.
9856if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +00009857 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +00009858else
cristy48794642012-09-02 15:19:08 +00009859 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +00009860fi
9861
9862
cristy48794642012-09-02 15:19:08 +00009863if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +00009864 ac_ext=c
9865ac_cpp='$CPP $CPPFLAGS'
9866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9868ac_compiler_gnu=$ac_cv_c_compiler_gnu
9869
cristy75314cc2012-09-15 23:08:29 +00009870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9871$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9872if ${ax_cv_c_compiler_ms+:} false; then :
9873 $as_echo_n "(cached) " >&6
9874else
9875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9876/* end confdefs.h. */
9877
9878int
9879main ()
9880{
9881#ifndef _MSC_VER
9882 choke me
9883#endif
9884
9885 ;
9886 return 0;
9887}
9888_ACEOF
9889if ac_fn_c_try_compile "$LINENO"; then :
9890 ax_compiler_ms=yes
9891else
9892 ax_compiler_ms=no
9893fi
9894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9895ax_cv_c_compiler_ms=$ax_compiler_ms
9896
9897fi
9898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9899$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009900 if test X$ax_compiler_ms = Xno; then :
9901 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9902fi
9903
9904 ax_save_CPPFLAGS=$CPPFLAGS
9905 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9906 for ac_header in CL/cl.h OpenCL/cl.h
9907do :
9908 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9909ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009910if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009911 cat >>confdefs.h <<_ACEOF
9912#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9913_ACEOF
9914
9915fi
9916
9917done
9918
9919 CPPFLAGS=$ax_save_CPPFLAGS
9920
9921 for ac_header in windows.h
9922do :
9923 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009924if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009925 cat >>confdefs.h <<_ACEOF
9926#define HAVE_WINDOWS_H 1
9927_ACEOF
9928
9929fi
9930
9931done
9932
9933
9934
9935
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9937$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009938if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009939 $as_echo_n "(cached) " >&6
9940else
9941 ax_cv_check_cl_libcl=no
9942 case $host_cpu in
9943 x86_64) ax_check_cl_libdir=lib64 ;;
9944 *) ax_check_cl_libdir=lib ;;
9945 esac
9946 ax_save_CPPFLAGS=$CPPFLAGS
9947 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9948 ax_save_LIBS=$LIBS
9949 LIBS=""
9950 ax_check_libs="-lOpenCL -lCL -lclparser"
9951 for ax_lib in $ax_check_libs; do
9952 if test X$ax_compiler_ms = Xyes; then :
9953 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9954else
9955 ax_try_lib=$ax_lib
9956fi
9957 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959/* end confdefs.h. */
9960
9961 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9962 # include <windows.h>
9963 # endif
9964 # ifdef HAVE_CL_CL_H
9965 # include <CL/cl.h>
9966 # elif defined(HAVE_OPENCL_CL_H)
9967 # include <OpenCL/cl.h>
9968 # else
9969 # error no CL.h
9970 # endif
9971int
9972main ()
9973{
9974clCreateContextFromType(0,0,0,0,0)
9975 ;
9976 return 0;
9977}
9978_ACEOF
9979if ac_fn_c_try_link "$LINENO"; then :
9980 ax_cv_check_cl_libcl=$ax_try_lib; break
9981else
9982 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"
9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984/* end confdefs.h. */
9985
9986 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9987 # include <windows.h>
9988 # endif
9989 # ifdef HAVE_CL_CL_H
9990 # include <CL/cl.h>
9991 # elif defined(HAVE_OPENCL_CL_H)
9992 # include <OpenCL/cl.h>
9993 # else
9994 # error no CL.h
9995 # endif
9996int
9997main ()
9998{
9999clCreateContextFromType(0,0,0,0,0)
10000 ;
10001 return 0;
10002}
10003_ACEOF
10004if ac_fn_c_try_link "$LINENO"; then :
10005 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10006else
cristy78c5a0c2010-12-04 20:00:59 +000010007 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 +000010008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009/* end confdefs.h. */
10010
10011 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10012 # include <windows.h>
10013 # endif
10014 # ifdef HAVE_CL_CL_H
10015 # include <CL/cl.h>
10016 # elif defined(HAVE_OPENCL_CL_H)
10017 # include <OpenCL/cl.h>
10018 # else
10019 # error no CL.h
10020 # endif
10021int
10022main ()
10023{
10024clCreateContextFromType(0,0,0,0,0)
10025 ;
10026 return 0;
10027}
10028_ACEOF
10029if ac_fn_c_try_link "$LINENO"; then :
10030 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10031fi
10032rm -f core conftest.err conftest.$ac_objext \
10033 conftest$ac_exeext conftest.$ac_ext
10034fi
10035rm -f core conftest.err conftest.$ac_objext \
10036 conftest$ac_exeext conftest.$ac_ext
10037fi
10038rm -f core conftest.err conftest.$ac_objext \
10039 conftest$ac_exeext conftest.$ac_ext
10040 done
10041
cristyc3f8b8e2011-12-22 14:55:16 +000010042 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010043 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045/* end confdefs.h. */
10046
10047 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10048 # include <windows.h>
10049 # endif
10050 # ifdef HAVE_CL_CL_H
10051 # include <CL/cl.h>
10052 # elif defined(HAVE_OPENCL_CL_H)
10053 # include <OpenCL/cl.h>
10054 # else
10055 # error no CL.h
10056 # endif
10057int
10058main ()
10059{
10060clCreateContextFromType(0,0,0,0,0)
10061 ;
10062 return 0;
10063}
10064_ACEOF
10065if ac_fn_c_try_link "$LINENO"; then :
10066 ax_cv_check_cl_libcl=$LIBS
10067fi
10068rm -f core conftest.err conftest.$ac_objext \
10069 conftest$ac_exeext conftest.$ac_ext
10070fi
10071
10072 LIBS=$ax_save_LIBS
10073 CPPFLAGS=$ax_save_CPPFLAGS
10074fi
10075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10076$as_echo "$ax_cv_check_cl_libcl" >&6; }
10077
10078 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10079 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10080else
10081 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10082$as_echo "#define _OPENCL 1" >>confdefs.h
10083
10084fi
10085 ac_ext=c
10086ac_cpp='$CPP $CPPFLAGS'
10087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10089ac_compiler_gnu=$ac_cv_c_compiler_gnu
10090
10091fi
10092
10093
10094
10095
cristyc7083c12009-10-14 03:16:55 +000010096CFLAGS="$CL_CFLAGS $CFLAGS"
10097LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010098
cristy391f1ce2010-09-09 17:23:28 +000010099if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010100 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010101 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10102 fi
cristyfd9dcd42010-08-08 18:07:02 +000010103fi
cristy2e8b51d2009-10-17 18:26:15 +000010104
cristy3ed852e2009-09-05 21:47:34 +000010105########
10106#
10107# Check for large file support
10108#
10109########
10110# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010111if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010112 enableval=$enable_largefile;
10113fi
10114
10115if test "$enable_largefile" != no; then
10116
cristy8b350f62009-11-15 23:12:43 +000010117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010118$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010119if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010120 $as_echo_n "(cached) " >&6
10121else
10122 ac_cv_sys_largefile_CC=no
10123 if test "$GCC" != yes; then
10124 ac_save_CC=$CC
10125 while :; do
10126 # IRIX 6.2 and later do not support large files by default,
10127 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010129/* end confdefs.h. */
10130#include <sys/types.h>
10131 /* Check that off_t can represent 2**63 - 1 correctly.
10132 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10133 since some C++ compilers masquerading as C compilers
10134 incorrectly reject 9223372036854775807. */
10135#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10137 && LARGE_OFF_T % 2147483647 == 1)
10138 ? 1 : -1];
10139int
10140main ()
10141{
10142
10143 ;
10144 return 0;
10145}
10146_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010147 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010148 break
cristy3ed852e2009-09-05 21:47:34 +000010149fi
cristy3ed852e2009-09-05 21:47:34 +000010150rm -f core conftest.err conftest.$ac_objext
10151 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010152 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010153 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010154fi
cristy3ed852e2009-09-05 21:47:34 +000010155rm -f core conftest.err conftest.$ac_objext
10156 break
10157 done
10158 CC=$ac_save_CC
10159 rm -f conftest.$ac_ext
10160 fi
10161fi
cristy8b350f62009-11-15 23:12:43 +000010162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010163$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10164 if test "$ac_cv_sys_largefile_CC" != no; then
10165 CC=$CC$ac_cv_sys_largefile_CC
10166 fi
10167
cristy8b350f62009-11-15 23:12:43 +000010168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010169$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010170if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010171 $as_echo_n "(cached) " >&6
10172else
10173 while :; do
cristy8b350f62009-11-15 23:12:43 +000010174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010175/* end confdefs.h. */
10176#include <sys/types.h>
10177 /* Check that off_t can represent 2**63 - 1 correctly.
10178 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10179 since some C++ compilers masquerading as C compilers
10180 incorrectly reject 9223372036854775807. */
10181#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10182 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10183 && LARGE_OFF_T % 2147483647 == 1)
10184 ? 1 : -1];
10185int
10186main ()
10187{
10188
10189 ;
10190 return 0;
10191}
10192_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010193if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010194 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010195fi
cristy3ed852e2009-09-05 21:47:34 +000010196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010198/* end confdefs.h. */
10199#define _FILE_OFFSET_BITS 64
10200#include <sys/types.h>
10201 /* Check that off_t can represent 2**63 - 1 correctly.
10202 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10203 since some C++ compilers masquerading as C compilers
10204 incorrectly reject 9223372036854775807. */
10205#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10206 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10207 && LARGE_OFF_T % 2147483647 == 1)
10208 ? 1 : -1];
10209int
10210main ()
10211{
10212
10213 ;
10214 return 0;
10215}
10216_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010217if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010218 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010219fi
cristy3ed852e2009-09-05 21:47:34 +000010220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10221 ac_cv_sys_file_offset_bits=unknown
10222 break
10223done
10224fi
cristy8b350f62009-11-15 23:12:43 +000010225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010226$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10227case $ac_cv_sys_file_offset_bits in #(
10228 no | unknown) ;;
10229 *)
10230cat >>confdefs.h <<_ACEOF
10231#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10232_ACEOF
10233;;
10234esac
10235rm -rf conftest*
10236 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010238$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010239if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010240 $as_echo_n "(cached) " >&6
10241else
10242 while :; do
cristy8b350f62009-11-15 23:12:43 +000010243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010244/* end confdefs.h. */
10245#include <sys/types.h>
10246 /* Check that off_t can represent 2**63 - 1 correctly.
10247 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10248 since some C++ compilers masquerading as C compilers
10249 incorrectly reject 9223372036854775807. */
10250#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10251 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10252 && LARGE_OFF_T % 2147483647 == 1)
10253 ? 1 : -1];
10254int
10255main ()
10256{
10257
10258 ;
10259 return 0;
10260}
10261_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010262if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010263 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010264fi
cristy3ed852e2009-09-05 21:47:34 +000010265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010267/* end confdefs.h. */
10268#define _LARGE_FILES 1
10269#include <sys/types.h>
10270 /* Check that off_t can represent 2**63 - 1 correctly.
10271 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10272 since some C++ compilers masquerading as C compilers
10273 incorrectly reject 9223372036854775807. */
10274#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10275 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10276 && LARGE_OFF_T % 2147483647 == 1)
10277 ? 1 : -1];
10278int
10279main ()
10280{
10281
10282 ;
10283 return 0;
10284}
10285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010286if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010287 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010288fi
cristy3ed852e2009-09-05 21:47:34 +000010289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10290 ac_cv_sys_large_files=unknown
10291 break
10292done
10293fi
cristy8b350f62009-11-15 23:12:43 +000010294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010295$as_echo "$ac_cv_sys_large_files" >&6; }
10296case $ac_cv_sys_large_files in #(
10297 no | unknown) ;;
10298 *)
10299cat >>confdefs.h <<_ACEOF
10300#define _LARGE_FILES $ac_cv_sys_large_files
10301_ACEOF
10302;;
10303esac
10304rm -rf conftest*
10305 fi
cristy14fefe52012-05-21 00:59:18 +000010306
10307
cristy3ed852e2009-09-05 21:47:34 +000010308fi
10309
cristy8b350f62009-11-15 23:12:43 +000010310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010311$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010312if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010313 $as_echo_n "(cached) " >&6
10314else
10315 while :; do
cristy8b350f62009-11-15 23:12:43 +000010316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010317/* end confdefs.h. */
10318#include <sys/types.h> /* for off_t */
10319 #include <stdio.h>
10320int
10321main ()
10322{
10323int (*fp) (FILE *, off_t, int) = fseeko;
10324 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10325 ;
10326 return 0;
10327}
10328_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010329if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010330 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010331fi
cristy8b350f62009-11-15 23:12:43 +000010332rm -f core conftest.err conftest.$ac_objext \
10333 conftest$ac_exeext conftest.$ac_ext
10334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010335/* end confdefs.h. */
10336#define _LARGEFILE_SOURCE 1
10337#include <sys/types.h> /* for off_t */
10338 #include <stdio.h>
10339int
10340main ()
10341{
10342int (*fp) (FILE *, off_t, int) = fseeko;
10343 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10344 ;
10345 return 0;
10346}
10347_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010348if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010349 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010350fi
cristy8b350f62009-11-15 23:12:43 +000010351rm -f core conftest.err conftest.$ac_objext \
10352 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010353 ac_cv_sys_largefile_source=unknown
10354 break
10355done
10356fi
cristy8b350f62009-11-15 23:12:43 +000010357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010358$as_echo "$ac_cv_sys_largefile_source" >&6; }
10359case $ac_cv_sys_largefile_source in #(
10360 no | unknown) ;;
10361 *)
10362cat >>confdefs.h <<_ACEOF
10363#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10364_ACEOF
10365;;
10366esac
10367rm -rf conftest*
10368
10369# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10370# in glibc 2.1.3, but that breaks too many other things.
10371# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10372if test $ac_cv_sys_largefile_source != unknown; then
10373
cristy8b350f62009-11-15 23:12:43 +000010374$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010375
10376fi
10377
10378LFS_CPPFLAGS=''
10379if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010380 case $ac_cv_sys_file_offset_bits in
10381 no)
10382 # nothing to do here as the host supports LFS fine
10383 ;;
10384 unknown)
cristy8b350f62009-11-15 23:12:43 +000010385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010386$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010387 if test "$cross_compiling" = yes; then :
10388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010390as_fn_error $? "cannot run test program while cross compiling
10391See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010392else
cristy8b350f62009-11-15 23:12:43 +000010393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010395#include <unistd.h>
10396 main () {
10397 exit(!(sizeof(off_t) == 8));
10398 }
cristyda16f162011-02-19 23:52:17 +000010399int
10400main ()
10401{
10402
10403 ;
10404 return 0;
10405}
cristy3ed852e2009-09-05 21:47:34 +000010406_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010407if ac_fn_c_try_run "$LINENO"; then :
10408 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010409
cristyad38abe2012-12-23 23:03:21 +000010410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10411$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010412else
cristyad38abe2012-12-23 23:03:21 +000010413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10414$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010415fi
cristy8b350f62009-11-15 23:12:43 +000010416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10417 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010418fi
10419
cristyc1e0cc12011-09-21 16:41:16 +000010420 ;;
10421 *)
10422 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10423 ;;
10424 esac
cristy3ed852e2009-09-05 21:47:34 +000010425 if test "$ac_cv_sys_large_files" != 'no'; then
10426 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10427 fi
10428 if test "$ac_cv_sys_largefile_source" != 'no'; then
10429 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10430 fi
10431fi
10432
10433
cristy3ed852e2009-09-05 21:47:34 +000010434# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010435enable_dlopen=yes
10436
10437
10438
10439case `pwd` in
10440 *\ * | *\ *)
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10442$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10443esac
10444
10445
10446
cristy99bd5232011-12-07 14:38:20 +000010447macro_version='2.4.2'
10448macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462ltmain="$ac_aux_dir/ltmain.sh"
10463
cristy0c60a692010-11-04 01:09:47 +000010464# Backslashify metacharacters that are still active within
10465# double-quoted strings.
10466sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10467
10468# Same as above, but do not quote variable references.
10469double_quote_subst='s/\(["`\\]\)/\\\1/g'
10470
10471# Sed substitution to delay expansion of an escaped shell variable in a
10472# double_quote_subst'ed string.
10473delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10474
10475# Sed substitution to delay expansion of an escaped single quote.
10476delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10477
10478# Sed substitution to avoid accidental globbing in evaled expressions
10479no_glob_subst='s/\*/\\\*/g'
10480
cristy73bd4a52010-10-05 11:24:23 +000010481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10482$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010483if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010484 $as_echo_n "(cached) " >&6
10485else
10486 if test -n "$NM"; then
10487 # Let the user override the test.
10488 lt_cv_path_NM="$NM"
10489else
10490 lt_nm_to_check="${ac_tool_prefix}nm"
10491 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10492 lt_nm_to_check="$lt_nm_to_check nm"
10493 fi
10494 for lt_tmp_nm in $lt_nm_to_check; do
10495 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10496 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10497 IFS="$lt_save_ifs"
10498 test -z "$ac_dir" && ac_dir=.
10499 tmp_nm="$ac_dir/$lt_tmp_nm"
10500 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10501 # Check to see if the nm accepts a BSD-compat flag.
10502 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10503 # nm: unknown option "B" ignored
10504 # Tru64's nm complains that /dev/null is an invalid object file
10505 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10506 */dev/null* | *'Invalid file or object type'*)
10507 lt_cv_path_NM="$tmp_nm -B"
10508 break
10509 ;;
10510 *)
10511 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10512 */dev/null*)
10513 lt_cv_path_NM="$tmp_nm -p"
10514 break
10515 ;;
10516 *)
10517 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10518 continue # so that we can try to find one that supports BSD flags
10519 ;;
10520 esac
10521 ;;
10522 esac
10523 fi
10524 done
10525 IFS="$lt_save_ifs"
10526 done
10527 : ${lt_cv_path_NM=no}
10528fi
10529fi
10530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10531$as_echo "$lt_cv_path_NM" >&6; }
10532if test "$lt_cv_path_NM" != "no"; then
10533 NM="$lt_cv_path_NM"
10534else
10535 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010536 if test -n "$DUMPBIN"; then :
10537 # Let the user override the test.
10538 else
10539 if test -n "$ac_tool_prefix"; then
10540 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010541 do
10542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10543set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010546if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010547 $as_echo_n "(cached) " >&6
10548else
10549 if test -n "$DUMPBIN"; then
10550 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10551else
10552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10553for as_dir in $PATH
10554do
10555 IFS=$as_save_IFS
10556 test -z "$as_dir" && as_dir=.
10557 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010559 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10561 break 2
10562 fi
10563done
10564 done
10565IFS=$as_save_IFS
10566
10567fi
10568fi
10569DUMPBIN=$ac_cv_prog_DUMPBIN
10570if test -n "$DUMPBIN"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10572$as_echo "$DUMPBIN" >&6; }
10573else
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575$as_echo "no" >&6; }
10576fi
10577
10578
10579 test -n "$DUMPBIN" && break
10580 done
10581fi
10582if test -z "$DUMPBIN"; then
10583 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010584 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010585do
10586 # Extract the first word of "$ac_prog", so it can be a program name with args.
10587set dummy $ac_prog; ac_word=$2
10588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10589$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010590if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010591 $as_echo_n "(cached) " >&6
10592else
10593 if test -n "$ac_ct_DUMPBIN"; then
10594 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10595else
10596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10597for as_dir in $PATH
10598do
10599 IFS=$as_save_IFS
10600 test -z "$as_dir" && as_dir=.
10601 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010603 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10605 break 2
10606 fi
10607done
10608 done
10609IFS=$as_save_IFS
10610
10611fi
10612fi
10613ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10614if test -n "$ac_ct_DUMPBIN"; then
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10616$as_echo "$ac_ct_DUMPBIN" >&6; }
10617else
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10619$as_echo "no" >&6; }
10620fi
10621
10622
10623 test -n "$ac_ct_DUMPBIN" && break
10624done
10625
10626 if test "x$ac_ct_DUMPBIN" = x; then
10627 DUMPBIN=":"
10628 else
10629 case $cross_compiling:$ac_tool_warned in
10630yes:)
10631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10633ac_tool_warned=yes ;;
10634esac
10635 DUMPBIN=$ac_ct_DUMPBIN
10636 fi
10637fi
10638
cristy0c60a692010-11-04 01:09:47 +000010639 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10640 *COFF*)
10641 DUMPBIN="$DUMPBIN -symbols"
10642 ;;
10643 *)
10644 DUMPBIN=:
10645 ;;
10646 esac
10647 fi
cristy73bd4a52010-10-05 11:24:23 +000010648
10649 if test "$DUMPBIN" != ":"; then
10650 NM="$DUMPBIN"
10651 fi
10652fi
10653test -z "$NM" && NM=nm
10654
10655
10656
10657
10658
10659
10660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10661$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010662if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010663 $as_echo_n "(cached) " >&6
10664else
10665 lt_cv_nm_interface="BSD nm"
10666 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010667 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010668 (eval "$ac_compile" 2>conftest.err)
10669 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010670 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010671 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10672 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010673 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010674 cat conftest.out >&5
10675 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10676 lt_cv_nm_interface="MS dumpbin"
10677 fi
10678 rm -f conftest*
10679fi
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10681$as_echo "$lt_cv_nm_interface" >&6; }
10682
10683# find the maximum length of command line arguments
10684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10685$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010686if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010687 $as_echo_n "(cached) " >&6
10688else
10689 i=0
10690 teststring="ABCD"
10691
10692 case $build_os in
10693 msdosdjgpp*)
10694 # On DJGPP, this test can blow up pretty badly due to problems in libc
10695 # (any single argument exceeding 2000 bytes causes a buffer overrun
10696 # during glob expansion). Even if it were fixed, the result of this
10697 # check would be larger than it should be.
10698 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10699 ;;
10700
10701 gnu*)
10702 # Under GNU Hurd, this test is not required because there is
10703 # no limit to the length of command line arguments.
10704 # Libtool will interpret -1 as no limit whatsoever
10705 lt_cv_sys_max_cmd_len=-1;
10706 ;;
10707
10708 cygwin* | mingw* | cegcc*)
10709 # On Win9x/ME, this test blows up -- it succeeds, but takes
10710 # about 5 minutes as the teststring grows exponentially.
10711 # Worse, since 9x/ME are not pre-emptively multitasking,
10712 # you end up with a "frozen" computer, even though with patience
10713 # the test eventually succeeds (with a max line length of 256k).
10714 # Instead, let's just punt: use the minimum linelength reported by
10715 # all of the supported platforms: 8192 (on NT/2K/XP).
10716 lt_cv_sys_max_cmd_len=8192;
10717 ;;
10718
cristy0c60a692010-11-04 01:09:47 +000010719 mint*)
10720 # On MiNT this can take a long time and run out of memory.
10721 lt_cv_sys_max_cmd_len=8192;
10722 ;;
10723
cristy73bd4a52010-10-05 11:24:23 +000010724 amigaos*)
10725 # On AmigaOS with pdksh, this test takes hours, literally.
10726 # So we just punt and use a minimum line length of 8192.
10727 lt_cv_sys_max_cmd_len=8192;
10728 ;;
10729
10730 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10731 # This has been around since 386BSD, at least. Likely further.
10732 if test -x /sbin/sysctl; then
10733 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10734 elif test -x /usr/sbin/sysctl; then
10735 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10736 else
10737 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10738 fi
10739 # And add a safety zone
10740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10742 ;;
10743
10744 interix*)
10745 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10746 lt_cv_sys_max_cmd_len=196608
10747 ;;
10748
cristy99bd5232011-12-07 14:38:20 +000010749 os2*)
10750 # The test takes a long time on OS/2.
10751 lt_cv_sys_max_cmd_len=8192
10752 ;;
10753
cristy73bd4a52010-10-05 11:24:23 +000010754 osf*)
10755 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10756 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10757 # nice to cause kernel panics so lets avoid the loop below.
10758 # First set a reasonable default.
10759 lt_cv_sys_max_cmd_len=16384
10760 #
10761 if test -x /sbin/sysconfig; then
10762 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10763 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10764 esac
10765 fi
10766 ;;
10767 sco3.2v5*)
10768 lt_cv_sys_max_cmd_len=102400
10769 ;;
10770 sysv5* | sco5v6* | sysv4.2uw2*)
10771 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10772 if test -n "$kargmax"; then
10773 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10774 else
10775 lt_cv_sys_max_cmd_len=32768
10776 fi
10777 ;;
10778 *)
10779 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10780 if test -n "$lt_cv_sys_max_cmd_len"; then
10781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10783 else
10784 # Make teststring a little bigger before we do anything with it.
10785 # a 1K string should be a reasonable start.
10786 for i in 1 2 3 4 5 6 7 8 ; do
10787 teststring=$teststring$teststring
10788 done
10789 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10790 # If test is not a shell built-in, we'll probably end up computing a
10791 # maximum length that is only half of the actual maximum length, but
10792 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010793 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010794 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010795 test $i != 17 # 1/2 MB should be enough
10796 do
10797 i=`expr $i + 1`
10798 teststring=$teststring$teststring
10799 done
10800 # Only check the string length outside the loop.
10801 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10802 teststring=
10803 # Add a significant safety factor because C++ compilers can tack on
10804 # massive amounts of additional arguments before passing them to the
10805 # linker. It appears as though 1/2 is a usable value.
10806 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10807 fi
10808 ;;
10809 esac
10810
10811fi
10812
10813if test -n $lt_cv_sys_max_cmd_len ; then
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10815$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10816else
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10818$as_echo "none" >&6; }
10819fi
10820max_cmd_len=$lt_cv_sys_max_cmd_len
10821
10822
10823
10824
10825
10826
10827: ${CP="cp -f"}
10828: ${MV="mv -f"}
10829: ${RM="rm -f"}
10830
10831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10832$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10833# Try some XSI features
10834xsi_shell=no
10835( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010836 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10837 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010838 && eval 'test $(( 1 + 1 )) -eq 2 \
10839 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10840 && xsi_shell=yes
10841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10842$as_echo "$xsi_shell" >&6; }
10843
10844
10845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10846$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10847lt_shell_append=no
10848( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10849 >/dev/null 2>&1 \
10850 && lt_shell_append=yes
10851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10852$as_echo "$lt_shell_append" >&6; }
10853
10854
10855if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10856 lt_unset=unset
10857else
10858 lt_unset=false
10859fi
10860
10861
10862
10863
10864
10865# test EBCDIC or ASCII
10866case `echo X|tr X '\101'` in
10867 A) # ASCII based system
10868 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10869 lt_SP2NL='tr \040 \012'
10870 lt_NL2SP='tr \015\012 \040\040'
10871 ;;
10872 *) # EBCDIC based system
10873 lt_SP2NL='tr \100 \n'
10874 lt_NL2SP='tr \r\n \100\100'
10875 ;;
10876esac
10877
10878
10879
10880
10881
10882
10883
10884
10885
cristyda16f162011-02-19 23:52:17 +000010886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10887$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10888if ${lt_cv_to_host_file_cmd+:} false; then :
10889 $as_echo_n "(cached) " >&6
10890else
10891 case $host in
10892 *-*-mingw* )
10893 case $build in
10894 *-*-mingw* ) # actually msys
10895 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10896 ;;
10897 *-*-cygwin* )
10898 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10899 ;;
10900 * ) # otherwise, assume *nix
10901 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10902 ;;
10903 esac
10904 ;;
10905 *-*-cygwin* )
10906 case $build in
10907 *-*-mingw* ) # actually msys
10908 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10909 ;;
10910 *-*-cygwin* )
10911 lt_cv_to_host_file_cmd=func_convert_file_noop
10912 ;;
10913 * ) # otherwise, assume *nix
10914 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10915 ;;
10916 esac
10917 ;;
10918 * ) # unhandled hosts (and "normal" native builds)
10919 lt_cv_to_host_file_cmd=func_convert_file_noop
10920 ;;
10921esac
10922
10923fi
10924
10925to_host_file_cmd=$lt_cv_to_host_file_cmd
10926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10927$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10928
10929
10930
10931
10932
10933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10934$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10935if ${lt_cv_to_tool_file_cmd+:} false; then :
10936 $as_echo_n "(cached) " >&6
10937else
10938 #assume ordinary cross tools, or native build.
10939lt_cv_to_tool_file_cmd=func_convert_file_noop
10940case $host in
10941 *-*-mingw* )
10942 case $build in
10943 *-*-mingw* ) # actually msys
10944 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10945 ;;
10946 esac
10947 ;;
10948esac
10949
10950fi
10951
10952to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10954$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10955
10956
10957
10958
10959
cristy73bd4a52010-10-05 11:24:23 +000010960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10961$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010962if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010963 $as_echo_n "(cached) " >&6
10964else
10965 lt_cv_ld_reload_flag='-r'
10966fi
10967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10968$as_echo "$lt_cv_ld_reload_flag" >&6; }
10969reload_flag=$lt_cv_ld_reload_flag
10970case $reload_flag in
10971"" | " "*) ;;
10972*) reload_flag=" $reload_flag" ;;
10973esac
10974reload_cmds='$LD$reload_flag -o $output$reload_objs'
10975case $host_os in
cristyda16f162011-02-19 23:52:17 +000010976 cygwin* | mingw* | pw32* | cegcc*)
10977 if test "$GCC" != yes; then
10978 reload_cmds=false
10979 fi
10980 ;;
cristy73bd4a52010-10-05 11:24:23 +000010981 darwin*)
10982 if test "$GCC" = yes; then
10983 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10984 else
10985 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10986 fi
10987 ;;
10988esac
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998if test -n "$ac_tool_prefix"; then
10999 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11000set dummy ${ac_tool_prefix}objdump; ac_word=$2
11001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11002$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011003if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011004 $as_echo_n "(cached) " >&6
11005else
11006 if test -n "$OBJDUMP"; then
11007 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11008else
11009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11010for as_dir in $PATH
11011do
11012 IFS=$as_save_IFS
11013 test -z "$as_dir" && as_dir=.
11014 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011016 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11018 break 2
11019 fi
11020done
11021 done
11022IFS=$as_save_IFS
11023
11024fi
11025fi
11026OBJDUMP=$ac_cv_prog_OBJDUMP
11027if test -n "$OBJDUMP"; then
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11029$as_echo "$OBJDUMP" >&6; }
11030else
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11032$as_echo "no" >&6; }
11033fi
11034
11035
11036fi
11037if test -z "$ac_cv_prog_OBJDUMP"; then
11038 ac_ct_OBJDUMP=$OBJDUMP
11039 # Extract the first word of "objdump", so it can be a program name with args.
11040set dummy objdump; ac_word=$2
11041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11042$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011043if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011044 $as_echo_n "(cached) " >&6
11045else
11046 if test -n "$ac_ct_OBJDUMP"; then
11047 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11048else
11049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11050for as_dir in $PATH
11051do
11052 IFS=$as_save_IFS
11053 test -z "$as_dir" && as_dir=.
11054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011056 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11058 break 2
11059 fi
11060done
11061 done
11062IFS=$as_save_IFS
11063
11064fi
11065fi
11066ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11067if test -n "$ac_ct_OBJDUMP"; then
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11069$as_echo "$ac_ct_OBJDUMP" >&6; }
11070else
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072$as_echo "no" >&6; }
11073fi
11074
11075 if test "x$ac_ct_OBJDUMP" = x; then
11076 OBJDUMP="false"
11077 else
11078 case $cross_compiling:$ac_tool_warned in
11079yes:)
11080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11082ac_tool_warned=yes ;;
11083esac
11084 OBJDUMP=$ac_ct_OBJDUMP
11085 fi
11086else
11087 OBJDUMP="$ac_cv_prog_OBJDUMP"
11088fi
11089
11090test -z "$OBJDUMP" && OBJDUMP=objdump
11091
11092
11093
11094
11095
11096
11097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11098$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011099if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011100 $as_echo_n "(cached) " >&6
11101else
11102 lt_cv_file_magic_cmd='$MAGIC_CMD'
11103lt_cv_file_magic_test_file=
11104lt_cv_deplibs_check_method='unknown'
11105# Need to set the preceding variable on all platforms that support
11106# interlibrary dependencies.
11107# 'none' -- dependencies not supported.
11108# `unknown' -- same as none, but documents that we really don't know.
11109# 'pass_all' -- all dependencies passed with no checks.
11110# 'test_compile' -- check by making test program.
11111# 'file_magic [[regex]]' -- check by looking for files in library path
11112# which responds to the $file_magic_cmd with a given extended regex.
11113# If you have `file' or equivalent on your system and you're not sure
11114# whether `pass_all' will *always* work, you probably want this one.
11115
11116case $host_os in
11117aix[4-9]*)
11118 lt_cv_deplibs_check_method=pass_all
11119 ;;
11120
11121beos*)
11122 lt_cv_deplibs_check_method=pass_all
11123 ;;
11124
11125bsdi[45]*)
11126 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11127 lt_cv_file_magic_cmd='/usr/bin/file -L'
11128 lt_cv_file_magic_test_file=/shlib/libc.so
11129 ;;
11130
11131cygwin*)
11132 # func_win32_libid is a shell function defined in ltmain.sh
11133 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11134 lt_cv_file_magic_cmd='func_win32_libid'
11135 ;;
11136
11137mingw* | pw32*)
11138 # Base MSYS/MinGW do not provide the 'file' command needed by
11139 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11140 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011141 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11142 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011143 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11144 lt_cv_file_magic_cmd='func_win32_libid'
11145 else
cristy0c60a692010-11-04 01:09:47 +000011146 # Keep this pattern in sync with the one in func_win32_libid.
11147 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 +000011148 lt_cv_file_magic_cmd='$OBJDUMP -f'
11149 fi
11150 ;;
11151
cristy0c60a692010-11-04 01:09:47 +000011152cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011153 # use the weaker test based on 'objdump'. See mingw*.
11154 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11155 lt_cv_file_magic_cmd='$OBJDUMP -f'
11156 ;;
11157
11158darwin* | rhapsody*)
11159 lt_cv_deplibs_check_method=pass_all
11160 ;;
11161
11162freebsd* | dragonfly*)
11163 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11164 case $host_cpu in
11165 i*86 )
11166 # Not sure whether the presence of OpenBSD here was a mistake.
11167 # Let's accept both of them until this is cleared up.
11168 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11169 lt_cv_file_magic_cmd=/usr/bin/file
11170 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11171 ;;
11172 esac
11173 else
11174 lt_cv_deplibs_check_method=pass_all
11175 fi
11176 ;;
11177
11178gnu*)
11179 lt_cv_deplibs_check_method=pass_all
11180 ;;
11181
cristy0c60a692010-11-04 01:09:47 +000011182haiku*)
11183 lt_cv_deplibs_check_method=pass_all
11184 ;;
11185
cristy73bd4a52010-10-05 11:24:23 +000011186hpux10.20* | hpux11*)
11187 lt_cv_file_magic_cmd=/usr/bin/file
11188 case $host_cpu in
11189 ia64*)
11190 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11191 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11192 ;;
11193 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011194 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 +000011195 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11196 ;;
11197 *)
cristy0c60a692010-11-04 01:09:47 +000011198 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 +000011199 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11200 ;;
11201 esac
11202 ;;
11203
11204interix[3-9]*)
11205 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11207 ;;
11208
11209irix5* | irix6* | nonstopux*)
11210 case $LD in
11211 *-32|*"-32 ") libmagic=32-bit;;
11212 *-n32|*"-n32 ") libmagic=N32;;
11213 *-64|*"-64 ") libmagic=64-bit;;
11214 *) libmagic=never-match;;
11215 esac
11216 lt_cv_deplibs_check_method=pass_all
11217 ;;
11218
cristy99bd5232011-12-07 14:38:20 +000011219# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011220linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011221 lt_cv_deplibs_check_method=pass_all
11222 ;;
11223
11224netbsd*)
11225 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11227 else
11228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11229 fi
11230 ;;
11231
11232newos6*)
11233 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11234 lt_cv_file_magic_cmd=/usr/bin/file
11235 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11236 ;;
11237
11238*nto* | *qnx*)
11239 lt_cv_deplibs_check_method=pass_all
11240 ;;
11241
11242openbsd*)
11243 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11245 else
11246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11247 fi
11248 ;;
11249
11250osf3* | osf4* | osf5*)
11251 lt_cv_deplibs_check_method=pass_all
11252 ;;
11253
11254rdos*)
11255 lt_cv_deplibs_check_method=pass_all
11256 ;;
11257
11258solaris*)
11259 lt_cv_deplibs_check_method=pass_all
11260 ;;
11261
11262sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11263 lt_cv_deplibs_check_method=pass_all
11264 ;;
11265
11266sysv4 | sysv4.3*)
11267 case $host_vendor in
11268 motorola)
11269 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]'
11270 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11271 ;;
11272 ncr)
11273 lt_cv_deplibs_check_method=pass_all
11274 ;;
11275 sequent)
11276 lt_cv_file_magic_cmd='/bin/file'
11277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11278 ;;
11279 sni)
11280 lt_cv_file_magic_cmd='/bin/file'
11281 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11282 lt_cv_file_magic_test_file=/lib/libc.so
11283 ;;
11284 siemens)
11285 lt_cv_deplibs_check_method=pass_all
11286 ;;
11287 pc)
11288 lt_cv_deplibs_check_method=pass_all
11289 ;;
11290 esac
11291 ;;
11292
11293tpf*)
11294 lt_cv_deplibs_check_method=pass_all
11295 ;;
11296esac
11297
11298fi
11299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11300$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011301
11302file_magic_glob=
11303want_nocaseglob=no
11304if test "$build" = "$host"; then
11305 case $host_os in
11306 mingw* | pw32*)
11307 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11308 want_nocaseglob=yes
11309 else
11310 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11311 fi
11312 ;;
11313 esac
11314fi
11315
cristy73bd4a52010-10-05 11:24:23 +000011316file_magic_cmd=$lt_cv_file_magic_cmd
11317deplibs_check_method=$lt_cv_deplibs_check_method
11318test -z "$deplibs_check_method" && deplibs_check_method=unknown
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
cristyda16f162011-02-19 23:52:17 +000011331
11332
11333
11334
11335
11336
11337
11338
11339
11340
cristy73bd4a52010-10-05 11:24:23 +000011341if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011342 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11343set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11345$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011346if ${ac_cv_prog_DLLTOOL+:} false; then :
11347 $as_echo_n "(cached) " >&6
11348else
11349 if test -n "$DLLTOOL"; then
11350 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11351else
11352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353for as_dir in $PATH
11354do
11355 IFS=$as_save_IFS
11356 test -z "$as_dir" && as_dir=.
11357 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011359 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11361 break 2
11362 fi
11363done
11364 done
11365IFS=$as_save_IFS
11366
11367fi
11368fi
11369DLLTOOL=$ac_cv_prog_DLLTOOL
11370if test -n "$DLLTOOL"; then
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11372$as_echo "$DLLTOOL" >&6; }
11373else
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375$as_echo "no" >&6; }
11376fi
11377
11378
11379fi
11380if test -z "$ac_cv_prog_DLLTOOL"; then
11381 ac_ct_DLLTOOL=$DLLTOOL
11382 # Extract the first word of "dlltool", so it can be a program name with args.
11383set dummy dlltool; ac_word=$2
11384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11385$as_echo_n "checking for $ac_word... " >&6; }
11386if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11387 $as_echo_n "(cached) " >&6
11388else
11389 if test -n "$ac_ct_DLLTOOL"; then
11390 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11391else
11392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11393for as_dir in $PATH
11394do
11395 IFS=$as_save_IFS
11396 test -z "$as_dir" && as_dir=.
11397 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011399 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11401 break 2
11402 fi
11403done
11404 done
11405IFS=$as_save_IFS
11406
11407fi
11408fi
11409ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11410if test -n "$ac_ct_DLLTOOL"; then
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11412$as_echo "$ac_ct_DLLTOOL" >&6; }
11413else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415$as_echo "no" >&6; }
11416fi
11417
11418 if test "x$ac_ct_DLLTOOL" = x; then
11419 DLLTOOL="false"
11420 else
11421 case $cross_compiling:$ac_tool_warned in
11422yes:)
11423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11425ac_tool_warned=yes ;;
11426esac
11427 DLLTOOL=$ac_ct_DLLTOOL
11428 fi
11429else
11430 DLLTOOL="$ac_cv_prog_DLLTOOL"
11431fi
11432
11433test -z "$DLLTOOL" && DLLTOOL=dlltool
11434
11435
11436
11437
11438
11439
11440
11441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11442$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11443if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11444 $as_echo_n "(cached) " >&6
11445else
11446 lt_cv_sharedlib_from_linklib_cmd='unknown'
11447
11448case $host_os in
11449cygwin* | mingw* | pw32* | cegcc*)
11450 # two different shell functions defined in ltmain.sh
11451 # decide which to use based on capabilities of $DLLTOOL
11452 case `$DLLTOOL --help 2>&1` in
11453 *--identify-strict*)
11454 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11455 ;;
11456 *)
11457 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11458 ;;
11459 esac
11460 ;;
11461*)
11462 # fallback: assume linklib IS sharedlib
11463 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11464 ;;
11465esac
11466
11467fi
11468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11469$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11470sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11471test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11472
11473
11474
11475
11476
11477
11478
11479if test -n "$ac_tool_prefix"; then
11480 for ac_prog in ar
11481 do
11482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11483set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11485$as_echo_n "checking for $ac_word... " >&6; }
11486if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011487 $as_echo_n "(cached) " >&6
11488else
11489 if test -n "$AR"; then
11490 ac_cv_prog_AR="$AR" # Let the user override the test.
11491else
11492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11493for as_dir in $PATH
11494do
11495 IFS=$as_save_IFS
11496 test -z "$as_dir" && as_dir=.
11497 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011499 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11501 break 2
11502 fi
11503done
11504 done
11505IFS=$as_save_IFS
11506
11507fi
11508fi
11509AR=$ac_cv_prog_AR
11510if test -n "$AR"; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11512$as_echo "$AR" >&6; }
11513else
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515$as_echo "no" >&6; }
11516fi
11517
11518
cristyda16f162011-02-19 23:52:17 +000011519 test -n "$AR" && break
11520 done
cristy73bd4a52010-10-05 11:24:23 +000011521fi
cristyda16f162011-02-19 23:52:17 +000011522if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011523 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011524 for ac_prog in ar
11525do
11526 # Extract the first word of "$ac_prog", so it can be a program name with args.
11527set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11529$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011530if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011531 $as_echo_n "(cached) " >&6
11532else
11533 if test -n "$ac_ct_AR"; then
11534 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11535else
11536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11537for as_dir in $PATH
11538do
11539 IFS=$as_save_IFS
11540 test -z "$as_dir" && as_dir=.
11541 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011543 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11545 break 2
11546 fi
11547done
11548 done
11549IFS=$as_save_IFS
11550
11551fi
11552fi
11553ac_ct_AR=$ac_cv_prog_ac_ct_AR
11554if test -n "$ac_ct_AR"; then
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11556$as_echo "$ac_ct_AR" >&6; }
11557else
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559$as_echo "no" >&6; }
11560fi
11561
cristyda16f162011-02-19 23:52:17 +000011562
11563 test -n "$ac_ct_AR" && break
11564done
11565
cristy73bd4a52010-10-05 11:24:23 +000011566 if test "x$ac_ct_AR" = x; then
11567 AR="false"
11568 else
11569 case $cross_compiling:$ac_tool_warned in
11570yes:)
11571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11573ac_tool_warned=yes ;;
11574esac
11575 AR=$ac_ct_AR
11576 fi
cristy73bd4a52010-10-05 11:24:23 +000011577fi
11578
cristyda16f162011-02-19 23:52:17 +000011579: ${AR=ar}
11580: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
cristyda16f162011-02-19 23:52:17 +000011592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11593$as_echo_n "checking for archiver @FILE support... " >&6; }
11594if ${lt_cv_ar_at_file+:} false; then :
11595 $as_echo_n "(cached) " >&6
11596else
11597 lt_cv_ar_at_file=no
11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599/* end confdefs.h. */
11600
11601int
11602main ()
11603{
11604
11605 ;
11606 return 0;
11607}
11608_ACEOF
11609if ac_fn_c_try_compile "$LINENO"; then :
11610 echo conftest.$ac_objext > conftest.lst
11611 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11613 (eval $lt_ar_try) 2>&5
11614 ac_status=$?
11615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11616 test $ac_status = 0; }
11617 if test "$ac_status" -eq 0; then
11618 # Ensure the archiver fails upon bogus file names.
11619 rm -f conftest.$ac_objext libconftest.a
11620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11621 (eval $lt_ar_try) 2>&5
11622 ac_status=$?
11623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11624 test $ac_status = 0; }
11625 if test "$ac_status" -ne 0; then
11626 lt_cv_ar_at_file=@
11627 fi
11628 fi
11629 rm -f conftest.* libconftest.a
11630
11631fi
11632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633
11634fi
11635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11636$as_echo "$lt_cv_ar_at_file" >&6; }
11637
11638if test "x$lt_cv_ar_at_file" = xno; then
11639 archiver_list_spec=
11640else
11641 archiver_list_spec=$lt_cv_ar_at_file
11642fi
11643
11644
11645
11646
11647
11648
11649
cristy73bd4a52010-10-05 11:24:23 +000011650if test -n "$ac_tool_prefix"; then
11651 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11652set dummy ${ac_tool_prefix}strip; ac_word=$2
11653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11654$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011655if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011656 $as_echo_n "(cached) " >&6
11657else
11658 if test -n "$STRIP"; then
11659 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11660else
11661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11662for as_dir in $PATH
11663do
11664 IFS=$as_save_IFS
11665 test -z "$as_dir" && as_dir=.
11666 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011668 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11670 break 2
11671 fi
11672done
11673 done
11674IFS=$as_save_IFS
11675
11676fi
11677fi
11678STRIP=$ac_cv_prog_STRIP
11679if test -n "$STRIP"; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11681$as_echo "$STRIP" >&6; }
11682else
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684$as_echo "no" >&6; }
11685fi
11686
11687
11688fi
11689if test -z "$ac_cv_prog_STRIP"; then
11690 ac_ct_STRIP=$STRIP
11691 # Extract the first word of "strip", so it can be a program name with args.
11692set dummy strip; ac_word=$2
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11694$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011695if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011696 $as_echo_n "(cached) " >&6
11697else
11698 if test -n "$ac_ct_STRIP"; then
11699 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11700else
11701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702for as_dir in $PATH
11703do
11704 IFS=$as_save_IFS
11705 test -z "$as_dir" && as_dir=.
11706 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011708 ac_cv_prog_ac_ct_STRIP="strip"
11709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11710 break 2
11711 fi
11712done
11713 done
11714IFS=$as_save_IFS
11715
11716fi
11717fi
11718ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11719if test -n "$ac_ct_STRIP"; then
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11721$as_echo "$ac_ct_STRIP" >&6; }
11722else
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724$as_echo "no" >&6; }
11725fi
11726
11727 if test "x$ac_ct_STRIP" = x; then
11728 STRIP=":"
11729 else
11730 case $cross_compiling:$ac_tool_warned in
11731yes:)
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11734ac_tool_warned=yes ;;
11735esac
11736 STRIP=$ac_ct_STRIP
11737 fi
11738else
11739 STRIP="$ac_cv_prog_STRIP"
11740fi
11741
11742test -z "$STRIP" && STRIP=:
11743
11744
11745
11746
11747
11748
11749if test -n "$ac_tool_prefix"; then
11750 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11751set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11753$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011754if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011755 $as_echo_n "(cached) " >&6
11756else
11757 if test -n "$RANLIB"; then
11758 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11759else
11760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761for as_dir in $PATH
11762do
11763 IFS=$as_save_IFS
11764 test -z "$as_dir" && as_dir=.
11765 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011767 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11769 break 2
11770 fi
11771done
11772 done
11773IFS=$as_save_IFS
11774
11775fi
11776fi
11777RANLIB=$ac_cv_prog_RANLIB
11778if test -n "$RANLIB"; then
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11780$as_echo "$RANLIB" >&6; }
11781else
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11783$as_echo "no" >&6; }
11784fi
11785
11786
11787fi
11788if test -z "$ac_cv_prog_RANLIB"; then
11789 ac_ct_RANLIB=$RANLIB
11790 # Extract the first word of "ranlib", so it can be a program name with args.
11791set dummy ranlib; ac_word=$2
11792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11793$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011794if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011795 $as_echo_n "(cached) " >&6
11796else
11797 if test -n "$ac_ct_RANLIB"; then
11798 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11799else
11800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801for as_dir in $PATH
11802do
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
11805 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011807 ac_cv_prog_ac_ct_RANLIB="ranlib"
11808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11809 break 2
11810 fi
11811done
11812 done
11813IFS=$as_save_IFS
11814
11815fi
11816fi
11817ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11818if test -n "$ac_ct_RANLIB"; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11820$as_echo "$ac_ct_RANLIB" >&6; }
11821else
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823$as_echo "no" >&6; }
11824fi
11825
11826 if test "x$ac_ct_RANLIB" = x; then
11827 RANLIB=":"
11828 else
11829 case $cross_compiling:$ac_tool_warned in
11830yes:)
11831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11833ac_tool_warned=yes ;;
11834esac
11835 RANLIB=$ac_ct_RANLIB
11836 fi
11837else
11838 RANLIB="$ac_cv_prog_RANLIB"
11839fi
11840
11841test -z "$RANLIB" && RANLIB=:
11842
11843
11844
11845
11846
11847
11848# Determine commands to create old-style static archives.
11849old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11850old_postinstall_cmds='chmod 644 $oldlib'
11851old_postuninstall_cmds=
11852
11853if test -n "$RANLIB"; then
11854 case $host_os in
11855 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011856 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011857 ;;
11858 *)
cristy99bd5232011-12-07 14:38:20 +000011859 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011860 ;;
11861 esac
cristy99bd5232011-12-07 14:38:20 +000011862 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011863fi
11864
cristy0c60a692010-11-04 01:09:47 +000011865case $host_os in
11866 darwin*)
11867 lock_old_archive_extraction=yes ;;
11868 *)
11869 lock_old_archive_extraction=no ;;
11870esac
11871
11872
11873
11874
11875
11876
cristy73bd4a52010-10-05 11:24:23 +000011877
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
11905
11906
11907
11908
11909
11910# If no C compiler was specified, use CC.
11911LTCC=${LTCC-"$CC"}
11912
11913# If no C compiler flags were specified, use CFLAGS.
11914LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11915
11916# Allow CC to be a program name with arguments.
11917compiler=$CC
11918
11919
11920# Check for command to grab the raw symbol name followed by C symbol from nm.
11921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11922$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011923if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011924 $as_echo_n "(cached) " >&6
11925else
11926
11927# These are sane defaults that work on at least a few old systems.
11928# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11929
11930# Character class describing NM global symbol codes.
11931symcode='[BCDEGRST]'
11932
11933# Regexp to match symbols that can be accessed directly from C.
11934sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11935
11936# Define system-specific variables.
11937case $host_os in
11938aix*)
11939 symcode='[BCDT]'
11940 ;;
11941cygwin* | mingw* | pw32* | cegcc*)
11942 symcode='[ABCDGISTW]'
11943 ;;
11944hpux*)
11945 if test "$host_cpu" = ia64; then
11946 symcode='[ABCDEGRST]'
11947 fi
11948 ;;
11949irix* | nonstopux*)
11950 symcode='[BCDEGRST]'
11951 ;;
11952osf*)
11953 symcode='[BCDEGQRST]'
11954 ;;
11955solaris*)
11956 symcode='[BDRT]'
11957 ;;
11958sco3.2v5*)
11959 symcode='[DT]'
11960 ;;
11961sysv4.2uw2*)
11962 symcode='[DT]'
11963 ;;
11964sysv5* | sco5v6* | unixware* | OpenUNIX*)
11965 symcode='[ABDT]'
11966 ;;
11967sysv4)
11968 symcode='[DFNSTU]'
11969 ;;
11970esac
11971
11972# If we're using GNU nm, then use its standard symbol codes.
11973case `$NM -V 2>&1` in
11974*GNU* | *'with BFD'*)
11975 symcode='[ABCDGIRSTW]' ;;
11976esac
11977
11978# Transform an extracted symbol line into a proper C declaration.
11979# Some systems (esp. on ia64) link data and code symbols differently,
11980# so use this general approach.
11981lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11982
11983# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011984lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11985lt_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 +000011986
11987# Handle CRLF in mingw tool chain
11988opt_cr=
11989case $build_os in
11990mingw*)
11991 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11992 ;;
11993esac
11994
11995# Try without a prefix underscore, then with it.
11996for ac_symprfx in "" "_"; do
11997
11998 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11999 symxfrm="\\1 $ac_symprfx\\2 \\2"
12000
12001 # Write the raw and C identifiers.
12002 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12003 # Fake it for dumpbin and say T for any non-static function
12004 # and D for any global variable.
12005 # Also find C++ and __fastcall symbols from MSVC++,
12006 # which start with @ or ?.
12007 lt_cv_sys_global_symbol_pipe="$AWK '"\
12008" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012009" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012010" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12011" \$ 0!~/External *\|/{next};"\
12012" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12013" {if(hide[section]) next};"\
12014" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12015" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12016" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12017" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12018" ' prfx=^$ac_symprfx"
12019 else
12020 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12021 fi
cristyda16f162011-02-19 23:52:17 +000012022 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012023
12024 # Check to see that the pipe works correctly.
12025 pipe_works=no
12026
12027 rm -f conftest*
12028 cat > conftest.$ac_ext <<_LT_EOF
12029#ifdef __cplusplus
12030extern "C" {
12031#endif
12032char nm_test_var;
12033void nm_test_func(void);
12034void nm_test_func(void){}
12035#ifdef __cplusplus
12036}
12037#endif
12038int main(){nm_test_var='a';nm_test_func();return(0);}
12039_LT_EOF
12040
12041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12042 (eval $ac_compile) 2>&5
12043 ac_status=$?
12044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12045 test $ac_status = 0; }; then
12046 # Now try to grab the symbols.
12047 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12049 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012050 ac_status=$?
12051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12052 test $ac_status = 0; } && test -s "$nlist"; then
12053 # Try sorting and uniquifying the output.
12054 if sort "$nlist" | uniq > "$nlist"T; then
12055 mv -f "$nlist"T "$nlist"
12056 else
12057 rm -f "$nlist"T
12058 fi
12059
12060 # Make sure that we snagged all the symbols we need.
12061 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12062 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12063 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012064/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12065#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12066/* DATA imports from DLLs on WIN32 con't be const, because runtime
12067 relocations are performed -- see ld's documentation on pseudo-relocs. */
12068# define LT_DLSYM_CONST
12069#elif defined(__osf__)
12070/* This system does not cope well with relocations in const data. */
12071# define LT_DLSYM_CONST
12072#else
12073# define LT_DLSYM_CONST const
12074#endif
12075
cristy73bd4a52010-10-05 11:24:23 +000012076#ifdef __cplusplus
12077extern "C" {
12078#endif
12079
12080_LT_EOF
12081 # Now generate the symbol file.
12082 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12083
12084 cat <<_LT_EOF >> conftest.$ac_ext
12085
12086/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012087LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012088 const char *name;
12089 void *address;
12090}
12091lt__PROGRAM__LTX_preloaded_symbols[] =
12092{
12093 { "@PROGRAM@", (void *) 0 },
12094_LT_EOF
12095 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12096 cat <<\_LT_EOF >> conftest.$ac_ext
12097 {0, (void *) 0}
12098};
12099
12100/* This works around a problem in FreeBSD linker */
12101#ifdef FREEBSD_WORKAROUND
12102static const void *lt_preloaded_setup() {
12103 return lt__PROGRAM__LTX_preloaded_symbols;
12104}
12105#endif
12106
12107#ifdef __cplusplus
12108}
12109#endif
12110_LT_EOF
12111 # Now try linking the two files.
12112 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012113 lt_globsym_save_LIBS=$LIBS
12114 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012115 LIBS="conftstm.$ac_objext"
12116 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12118 (eval $ac_link) 2>&5
12119 ac_status=$?
12120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12121 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12122 pipe_works=yes
12123 fi
cristyda16f162011-02-19 23:52:17 +000012124 LIBS=$lt_globsym_save_LIBS
12125 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012126 else
12127 echo "cannot find nm_test_func in $nlist" >&5
12128 fi
12129 else
12130 echo "cannot find nm_test_var in $nlist" >&5
12131 fi
12132 else
12133 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12134 fi
12135 else
12136 echo "$progname: failed program was:" >&5
12137 cat conftest.$ac_ext >&5
12138 fi
12139 rm -rf conftest* conftst*
12140
12141 # Do not use the global_symbol_pipe unless it works.
12142 if test "$pipe_works" = yes; then
12143 break
12144 else
12145 lt_cv_sys_global_symbol_pipe=
12146 fi
12147done
12148
12149fi
12150
12151if test -z "$lt_cv_sys_global_symbol_pipe"; then
12152 lt_cv_sys_global_symbol_to_cdecl=
12153fi
12154if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12156$as_echo "failed" >&6; }
12157else
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12159$as_echo "ok" >&6; }
12160fi
12161
cristyda16f162011-02-19 23:52:17 +000012162# Response file support.
12163if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12164 nm_file_list_spec='@'
12165elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12166 nm_file_list_spec='@'
12167fi
cristy73bd4a52010-10-05 11:24:23 +000012168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
cristyda16f162011-02-19 23:52:17 +000012189
12190
12191
12192
12193
12194
12195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12196$as_echo_n "checking for sysroot... " >&6; }
12197
12198# Check whether --with-sysroot was given.
12199if test "${with_sysroot+set}" = set; then :
12200 withval=$with_sysroot;
12201else
12202 with_sysroot=no
12203fi
12204
12205
12206lt_sysroot=
12207case ${with_sysroot} in #(
12208 yes)
12209 if test "$GCC" = yes; then
12210 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12211 fi
12212 ;; #(
12213 /*)
12214 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12215 ;; #(
12216 no|'')
12217 ;; #(
12218 *)
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12220$as_echo "${with_sysroot}" >&6; }
12221 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12222 ;;
12223esac
12224
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12226$as_echo "${lt_sysroot:-no}" >&6; }
12227
12228
12229
12230
12231
cristy73bd4a52010-10-05 11:24:23 +000012232# Check whether --enable-libtool-lock was given.
12233if test "${enable_libtool_lock+set}" = set; then :
12234 enableval=$enable_libtool_lock;
12235fi
12236
12237test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12238
12239# Some flags need to be propagated to the compiler or linker for good
12240# libtool support.
12241case $host in
12242ia64-*-hpux*)
12243 # Find out which ABI we are using.
12244 echo 'int i;' > conftest.$ac_ext
12245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12246 (eval $ac_compile) 2>&5
12247 ac_status=$?
12248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12249 test $ac_status = 0; }; then
12250 case `/usr/bin/file conftest.$ac_objext` in
12251 *ELF-32*)
12252 HPUX_IA64_MODE="32"
12253 ;;
12254 *ELF-64*)
12255 HPUX_IA64_MODE="64"
12256 ;;
12257 esac
12258 fi
12259 rm -rf conftest*
12260 ;;
12261*-*-irix6*)
12262 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012263 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12265 (eval $ac_compile) 2>&5
12266 ac_status=$?
12267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12268 test $ac_status = 0; }; then
12269 if test "$lt_cv_prog_gnu_ld" = yes; then
12270 case `/usr/bin/file conftest.$ac_objext` in
12271 *32-bit*)
12272 LD="${LD-ld} -melf32bsmip"
12273 ;;
12274 *N32*)
12275 LD="${LD-ld} -melf32bmipn32"
12276 ;;
12277 *64-bit*)
12278 LD="${LD-ld} -melf64bmip"
12279 ;;
12280 esac
12281 else
12282 case `/usr/bin/file conftest.$ac_objext` in
12283 *32-bit*)
12284 LD="${LD-ld} -32"
12285 ;;
12286 *N32*)
12287 LD="${LD-ld} -n32"
12288 ;;
12289 *64-bit*)
12290 LD="${LD-ld} -64"
12291 ;;
12292 esac
12293 fi
12294 fi
12295 rm -rf conftest*
12296 ;;
12297
12298x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12299s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12300 # Find out which ABI we are using.
12301 echo 'int i;' > conftest.$ac_ext
12302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12303 (eval $ac_compile) 2>&5
12304 ac_status=$?
12305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12306 test $ac_status = 0; }; then
12307 case `/usr/bin/file conftest.o` in
12308 *32-bit*)
12309 case $host in
12310 x86_64-*kfreebsd*-gnu)
12311 LD="${LD-ld} -m elf_i386_fbsd"
12312 ;;
12313 x86_64-*linux*)
12314 LD="${LD-ld} -m elf_i386"
12315 ;;
12316 ppc64-*linux*|powerpc64-*linux*)
12317 LD="${LD-ld} -m elf32ppclinux"
12318 ;;
12319 s390x-*linux*)
12320 LD="${LD-ld} -m elf_s390"
12321 ;;
12322 sparc64-*linux*)
12323 LD="${LD-ld} -m elf32_sparc"
12324 ;;
12325 esac
12326 ;;
12327 *64-bit*)
12328 case $host in
12329 x86_64-*kfreebsd*-gnu)
12330 LD="${LD-ld} -m elf_x86_64_fbsd"
12331 ;;
12332 x86_64-*linux*)
12333 LD="${LD-ld} -m elf_x86_64"
12334 ;;
12335 ppc*-*linux*|powerpc*-*linux*)
12336 LD="${LD-ld} -m elf64ppc"
12337 ;;
12338 s390*-*linux*|s390*-*tpf*)
12339 LD="${LD-ld} -m elf64_s390"
12340 ;;
12341 sparc*-*linux*)
12342 LD="${LD-ld} -m elf64_sparc"
12343 ;;
12344 esac
12345 ;;
12346 esac
12347 fi
12348 rm -rf conftest*
12349 ;;
12350
12351*-*-sco3.2v5*)
12352 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12353 SAVE_CFLAGS="$CFLAGS"
12354 CFLAGS="$CFLAGS -belf"
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12356$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012357if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012358 $as_echo_n "(cached) " >&6
12359else
12360 ac_ext=c
12361ac_cpp='$CPP $CPPFLAGS'
12362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12364ac_compiler_gnu=$ac_cv_c_compiler_gnu
12365
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367/* end confdefs.h. */
12368
12369int
12370main ()
12371{
12372
12373 ;
12374 return 0;
12375}
12376_ACEOF
12377if ac_fn_c_try_link "$LINENO"; then :
12378 lt_cv_cc_needs_belf=yes
12379else
12380 lt_cv_cc_needs_belf=no
12381fi
12382rm -f core conftest.err conftest.$ac_objext \
12383 conftest$ac_exeext conftest.$ac_ext
12384 ac_ext=c
12385ac_cpp='$CPP $CPPFLAGS'
12386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12388ac_compiler_gnu=$ac_cv_c_compiler_gnu
12389
12390fi
12391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12392$as_echo "$lt_cv_cc_needs_belf" >&6; }
12393 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12394 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12395 CFLAGS="$SAVE_CFLAGS"
12396 fi
12397 ;;
cristy99bd5232011-12-07 14:38:20 +000012398*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012399 # Find out which ABI we are using.
12400 echo 'int i;' > conftest.$ac_ext
12401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12402 (eval $ac_compile) 2>&5
12403 ac_status=$?
12404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12405 test $ac_status = 0; }; then
12406 case `/usr/bin/file conftest.o` in
12407 *64-bit*)
12408 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012409 yes*)
12410 case $host in
12411 i?86-*-solaris*)
12412 LD="${LD-ld} -m elf_x86_64"
12413 ;;
12414 sparc*-*-solaris*)
12415 LD="${LD-ld} -m elf64_sparc"
12416 ;;
12417 esac
12418 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12419 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12420 LD="${LD-ld}_sol2"
12421 fi
12422 ;;
cristy73bd4a52010-10-05 11:24:23 +000012423 *)
12424 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12425 LD="${LD-ld} -64"
12426 fi
12427 ;;
12428 esac
12429 ;;
12430 esac
12431 fi
12432 rm -rf conftest*
12433 ;;
12434esac
12435
12436need_locks="$enable_libtool_lock"
12437
cristyda16f162011-02-19 23:52:17 +000012438if test -n "$ac_tool_prefix"; then
12439 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12440set dummy ${ac_tool_prefix}mt; ac_word=$2
12441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12442$as_echo_n "checking for $ac_word... " >&6; }
12443if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12444 $as_echo_n "(cached) " >&6
12445else
12446 if test -n "$MANIFEST_TOOL"; then
12447 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12448else
12449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450for as_dir in $PATH
12451do
12452 IFS=$as_save_IFS
12453 test -z "$as_dir" && as_dir=.
12454 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012456 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12458 break 2
12459 fi
12460done
12461 done
12462IFS=$as_save_IFS
12463
12464fi
12465fi
12466MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12467if test -n "$MANIFEST_TOOL"; then
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12469$as_echo "$MANIFEST_TOOL" >&6; }
12470else
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472$as_echo "no" >&6; }
12473fi
12474
12475
12476fi
12477if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12478 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12479 # Extract the first word of "mt", so it can be a program name with args.
12480set dummy mt; ac_word=$2
12481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12482$as_echo_n "checking for $ac_word... " >&6; }
12483if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12484 $as_echo_n "(cached) " >&6
12485else
12486 if test -n "$ac_ct_MANIFEST_TOOL"; then
12487 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12488else
12489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12490for as_dir in $PATH
12491do
12492 IFS=$as_save_IFS
12493 test -z "$as_dir" && as_dir=.
12494 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012496 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12498 break 2
12499 fi
12500done
12501 done
12502IFS=$as_save_IFS
12503
12504fi
12505fi
12506ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12507if test -n "$ac_ct_MANIFEST_TOOL"; then
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12509$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12510else
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12512$as_echo "no" >&6; }
12513fi
12514
12515 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12516 MANIFEST_TOOL=":"
12517 else
12518 case $cross_compiling:$ac_tool_warned in
12519yes:)
12520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12522ac_tool_warned=yes ;;
12523esac
12524 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12525 fi
12526else
12527 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12528fi
12529
12530test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12532$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12533if ${lt_cv_path_mainfest_tool+:} false; then :
12534 $as_echo_n "(cached) " >&6
12535else
12536 lt_cv_path_mainfest_tool=no
12537 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12538 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12539 cat conftest.err >&5
12540 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12541 lt_cv_path_mainfest_tool=yes
12542 fi
12543 rm -f conftest*
12544fi
12545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12546$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12547if test "x$lt_cv_path_mainfest_tool" != xyes; then
12548 MANIFEST_TOOL=:
12549fi
12550
12551
12552
12553
12554
cristy73bd4a52010-10-05 11:24:23 +000012555
12556 case $host_os in
12557 rhapsody* | darwin*)
12558 if test -n "$ac_tool_prefix"; then
12559 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12560set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12562$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012563if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012564 $as_echo_n "(cached) " >&6
12565else
12566 if test -n "$DSYMUTIL"; then
12567 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12568else
12569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12570for as_dir in $PATH
12571do
12572 IFS=$as_save_IFS
12573 test -z "$as_dir" && as_dir=.
12574 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012576 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12578 break 2
12579 fi
12580done
12581 done
12582IFS=$as_save_IFS
12583
12584fi
12585fi
12586DSYMUTIL=$ac_cv_prog_DSYMUTIL
12587if test -n "$DSYMUTIL"; then
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12589$as_echo "$DSYMUTIL" >&6; }
12590else
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592$as_echo "no" >&6; }
12593fi
12594
12595
12596fi
12597if test -z "$ac_cv_prog_DSYMUTIL"; then
12598 ac_ct_DSYMUTIL=$DSYMUTIL
12599 # Extract the first word of "dsymutil", so it can be a program name with args.
12600set dummy dsymutil; ac_word=$2
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12602$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012603if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012604 $as_echo_n "(cached) " >&6
12605else
12606 if test -n "$ac_ct_DSYMUTIL"; then
12607 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12608else
12609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12610for as_dir in $PATH
12611do
12612 IFS=$as_save_IFS
12613 test -z "$as_dir" && as_dir=.
12614 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012616 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12618 break 2
12619 fi
12620done
12621 done
12622IFS=$as_save_IFS
12623
12624fi
12625fi
12626ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12627if test -n "$ac_ct_DSYMUTIL"; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12629$as_echo "$ac_ct_DSYMUTIL" >&6; }
12630else
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632$as_echo "no" >&6; }
12633fi
12634
12635 if test "x$ac_ct_DSYMUTIL" = x; then
12636 DSYMUTIL=":"
12637 else
12638 case $cross_compiling:$ac_tool_warned in
12639yes:)
12640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12642ac_tool_warned=yes ;;
12643esac
12644 DSYMUTIL=$ac_ct_DSYMUTIL
12645 fi
12646else
12647 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12648fi
12649
12650 if test -n "$ac_tool_prefix"; then
12651 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12652set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12654$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012655if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012656 $as_echo_n "(cached) " >&6
12657else
12658 if test -n "$NMEDIT"; then
12659 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12660else
12661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12662for as_dir in $PATH
12663do
12664 IFS=$as_save_IFS
12665 test -z "$as_dir" && as_dir=.
12666 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012668 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12670 break 2
12671 fi
12672done
12673 done
12674IFS=$as_save_IFS
12675
12676fi
12677fi
12678NMEDIT=$ac_cv_prog_NMEDIT
12679if test -n "$NMEDIT"; then
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12681$as_echo "$NMEDIT" >&6; }
12682else
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12684$as_echo "no" >&6; }
12685fi
12686
12687
12688fi
12689if test -z "$ac_cv_prog_NMEDIT"; then
12690 ac_ct_NMEDIT=$NMEDIT
12691 # Extract the first word of "nmedit", so it can be a program name with args.
12692set dummy nmedit; ac_word=$2
12693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12694$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012695if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012696 $as_echo_n "(cached) " >&6
12697else
12698 if test -n "$ac_ct_NMEDIT"; then
12699 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12700else
12701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12702for as_dir in $PATH
12703do
12704 IFS=$as_save_IFS
12705 test -z "$as_dir" && as_dir=.
12706 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012708 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12710 break 2
12711 fi
12712done
12713 done
12714IFS=$as_save_IFS
12715
12716fi
12717fi
12718ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12719if test -n "$ac_ct_NMEDIT"; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12721$as_echo "$ac_ct_NMEDIT" >&6; }
12722else
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12724$as_echo "no" >&6; }
12725fi
12726
12727 if test "x$ac_ct_NMEDIT" = x; then
12728 NMEDIT=":"
12729 else
12730 case $cross_compiling:$ac_tool_warned in
12731yes:)
12732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12734ac_tool_warned=yes ;;
12735esac
12736 NMEDIT=$ac_ct_NMEDIT
12737 fi
12738else
12739 NMEDIT="$ac_cv_prog_NMEDIT"
12740fi
12741
12742 if test -n "$ac_tool_prefix"; then
12743 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12744set dummy ${ac_tool_prefix}lipo; ac_word=$2
12745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12746$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012747if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012748 $as_echo_n "(cached) " >&6
12749else
12750 if test -n "$LIPO"; then
12751 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12752else
12753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12754for as_dir in $PATH
12755do
12756 IFS=$as_save_IFS
12757 test -z "$as_dir" && as_dir=.
12758 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012760 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12762 break 2
12763 fi
12764done
12765 done
12766IFS=$as_save_IFS
12767
12768fi
12769fi
12770LIPO=$ac_cv_prog_LIPO
12771if test -n "$LIPO"; then
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12773$as_echo "$LIPO" >&6; }
12774else
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776$as_echo "no" >&6; }
12777fi
12778
12779
12780fi
12781if test -z "$ac_cv_prog_LIPO"; then
12782 ac_ct_LIPO=$LIPO
12783 # Extract the first word of "lipo", so it can be a program name with args.
12784set dummy lipo; ac_word=$2
12785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12786$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012787if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012788 $as_echo_n "(cached) " >&6
12789else
12790 if test -n "$ac_ct_LIPO"; then
12791 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12792else
12793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12794for as_dir in $PATH
12795do
12796 IFS=$as_save_IFS
12797 test -z "$as_dir" && as_dir=.
12798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012800 ac_cv_prog_ac_ct_LIPO="lipo"
12801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12802 break 2
12803 fi
12804done
12805 done
12806IFS=$as_save_IFS
12807
12808fi
12809fi
12810ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12811if test -n "$ac_ct_LIPO"; then
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12813$as_echo "$ac_ct_LIPO" >&6; }
12814else
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816$as_echo "no" >&6; }
12817fi
12818
12819 if test "x$ac_ct_LIPO" = x; then
12820 LIPO=":"
12821 else
12822 case $cross_compiling:$ac_tool_warned in
12823yes:)
12824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12826ac_tool_warned=yes ;;
12827esac
12828 LIPO=$ac_ct_LIPO
12829 fi
12830else
12831 LIPO="$ac_cv_prog_LIPO"
12832fi
12833
12834 if test -n "$ac_tool_prefix"; then
12835 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12836set dummy ${ac_tool_prefix}otool; ac_word=$2
12837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12838$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012839if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012840 $as_echo_n "(cached) " >&6
12841else
12842 if test -n "$OTOOL"; then
12843 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12844else
12845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12846for as_dir in $PATH
12847do
12848 IFS=$as_save_IFS
12849 test -z "$as_dir" && as_dir=.
12850 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012852 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12854 break 2
12855 fi
12856done
12857 done
12858IFS=$as_save_IFS
12859
12860fi
12861fi
12862OTOOL=$ac_cv_prog_OTOOL
12863if test -n "$OTOOL"; then
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12865$as_echo "$OTOOL" >&6; }
12866else
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12868$as_echo "no" >&6; }
12869fi
12870
12871
12872fi
12873if test -z "$ac_cv_prog_OTOOL"; then
12874 ac_ct_OTOOL=$OTOOL
12875 # Extract the first word of "otool", so it can be a program name with args.
12876set dummy otool; ac_word=$2
12877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12878$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012879if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012880 $as_echo_n "(cached) " >&6
12881else
12882 if test -n "$ac_ct_OTOOL"; then
12883 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12884else
12885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886for as_dir in $PATH
12887do
12888 IFS=$as_save_IFS
12889 test -z "$as_dir" && as_dir=.
12890 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012892 ac_cv_prog_ac_ct_OTOOL="otool"
12893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12894 break 2
12895 fi
12896done
12897 done
12898IFS=$as_save_IFS
12899
12900fi
12901fi
12902ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12903if test -n "$ac_ct_OTOOL"; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12905$as_echo "$ac_ct_OTOOL" >&6; }
12906else
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908$as_echo "no" >&6; }
12909fi
12910
12911 if test "x$ac_ct_OTOOL" = x; then
12912 OTOOL=":"
12913 else
12914 case $cross_compiling:$ac_tool_warned in
12915yes:)
12916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12918ac_tool_warned=yes ;;
12919esac
12920 OTOOL=$ac_ct_OTOOL
12921 fi
12922else
12923 OTOOL="$ac_cv_prog_OTOOL"
12924fi
12925
12926 if test -n "$ac_tool_prefix"; then
12927 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12928set dummy ${ac_tool_prefix}otool64; ac_word=$2
12929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12930$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012931if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012932 $as_echo_n "(cached) " >&6
12933else
12934 if test -n "$OTOOL64"; then
12935 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12936else
12937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12938for as_dir in $PATH
12939do
12940 IFS=$as_save_IFS
12941 test -z "$as_dir" && as_dir=.
12942 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012944 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12946 break 2
12947 fi
12948done
12949 done
12950IFS=$as_save_IFS
12951
12952fi
12953fi
12954OTOOL64=$ac_cv_prog_OTOOL64
12955if test -n "$OTOOL64"; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12957$as_echo "$OTOOL64" >&6; }
12958else
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960$as_echo "no" >&6; }
12961fi
12962
12963
12964fi
12965if test -z "$ac_cv_prog_OTOOL64"; then
12966 ac_ct_OTOOL64=$OTOOL64
12967 # Extract the first word of "otool64", so it can be a program name with args.
12968set dummy otool64; ac_word=$2
12969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12970$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012971if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012972 $as_echo_n "(cached) " >&6
12973else
12974 if test -n "$ac_ct_OTOOL64"; then
12975 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12976else
12977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12978for as_dir in $PATH
12979do
12980 IFS=$as_save_IFS
12981 test -z "$as_dir" && as_dir=.
12982 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012984 ac_cv_prog_ac_ct_OTOOL64="otool64"
12985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12986 break 2
12987 fi
12988done
12989 done
12990IFS=$as_save_IFS
12991
12992fi
12993fi
12994ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12995if test -n "$ac_ct_OTOOL64"; then
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12997$as_echo "$ac_ct_OTOOL64" >&6; }
12998else
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000$as_echo "no" >&6; }
13001fi
13002
13003 if test "x$ac_ct_OTOOL64" = x; then
13004 OTOOL64=":"
13005 else
13006 case $cross_compiling:$ac_tool_warned in
13007yes:)
13008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13010ac_tool_warned=yes ;;
13011esac
13012 OTOOL64=$ac_ct_OTOOL64
13013 fi
13014else
13015 OTOOL64="$ac_cv_prog_OTOOL64"
13016fi
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13045$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013046if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013047 $as_echo_n "(cached) " >&6
13048else
13049 lt_cv_apple_cc_single_mod=no
13050 if test -z "${LT_MULTI_MODULE}"; then
13051 # By default we will add the -single_module flag. You can override
13052 # by either setting the environment variable LT_MULTI_MODULE
13053 # non-empty at configure time, or by adding -multi_module to the
13054 # link flags.
13055 rm -rf libconftest.dylib*
13056 echo "int foo(void){return 1;}" > conftest.c
13057 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13058-dynamiclib -Wl,-single_module conftest.c" >&5
13059 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13060 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13061 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013062 # If there is a non-empty error log, and "single_module"
13063 # appears in it, assume the flag caused a linker warning
13064 if test -s conftest.err && $GREP single_module conftest.err; then
13065 cat conftest.err >&5
13066 # Otherwise, if the output was created with a 0 exit code from
13067 # the compiler, it worked.
13068 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013069 lt_cv_apple_cc_single_mod=yes
13070 else
13071 cat conftest.err >&5
13072 fi
13073 rm -rf libconftest.dylib*
13074 rm -f conftest.*
13075 fi
13076fi
13077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13078$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013079
cristy73bd4a52010-10-05 11:24:23 +000013080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13081$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013082if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013083 $as_echo_n "(cached) " >&6
13084else
13085 lt_cv_ld_exported_symbols_list=no
13086 save_LDFLAGS=$LDFLAGS
13087 echo "_main" > conftest.sym
13088 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090/* end confdefs.h. */
13091
13092int
13093main ()
13094{
13095
13096 ;
13097 return 0;
13098}
13099_ACEOF
13100if ac_fn_c_try_link "$LINENO"; then :
13101 lt_cv_ld_exported_symbols_list=yes
13102else
13103 lt_cv_ld_exported_symbols_list=no
13104fi
13105rm -f core conftest.err conftest.$ac_objext \
13106 conftest$ac_exeext conftest.$ac_ext
13107 LDFLAGS="$save_LDFLAGS"
13108
13109fi
13110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13111$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013112
cristy0c60a692010-11-04 01:09:47 +000013113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13114$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013115if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013116 $as_echo_n "(cached) " >&6
13117else
13118 lt_cv_ld_force_load=no
13119 cat > conftest.c << _LT_EOF
13120int forced_loaded() { return 2;}
13121_LT_EOF
13122 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13123 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13124 echo "$AR cru libconftest.a conftest.o" >&5
13125 $AR cru libconftest.a conftest.o 2>&5
13126 echo "$RANLIB libconftest.a" >&5
13127 $RANLIB libconftest.a 2>&5
13128 cat > conftest.c << _LT_EOF
13129int main() { return 0;}
13130_LT_EOF
13131 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13132 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13133 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013134 if test -s conftest.err && $GREP force_load conftest.err; then
13135 cat conftest.err >&5
13136 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013137 lt_cv_ld_force_load=yes
13138 else
13139 cat conftest.err >&5
13140 fi
13141 rm -f conftest.err libconftest.a conftest conftest.c
13142 rm -rf conftest.dSYM
13143
13144fi
13145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13146$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013147 case $host_os in
13148 rhapsody* | darwin1.[012])
13149 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13150 darwin1.*)
13151 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13152 darwin*) # darwin 5.x on
13153 # if running on 10.5 or later, the deployment target defaults
13154 # to the OS version, if on x86, and 10.4, the deployment
13155 # target defaults to 10.4. Don't you love it?
13156 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13157 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13158 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13159 10.[012]*)
13160 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13161 10.*)
13162 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13163 esac
13164 ;;
13165 esac
13166 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13167 _lt_dar_single_mod='$single_module'
13168 fi
13169 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13170 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13171 else
13172 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13173 fi
cristy0c60a692010-11-04 01:09:47 +000013174 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013175 _lt_dsymutil='~$DSYMUTIL $lib || :'
13176 else
13177 _lt_dsymutil=
13178 fi
13179 ;;
13180 esac
13181
13182for ac_header in dlfcn.h
13183do :
13184 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13185"
cristyda16f162011-02-19 23:52:17 +000013186if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013187 cat >>confdefs.h <<_ACEOF
13188#define HAVE_DLFCN_H 1
13189_ACEOF
13190
13191fi
13192
13193done
13194
13195
13196
cristy73bd4a52010-10-05 11:24:23 +000013197
cristyda16f162011-02-19 23:52:17 +000013198func_stripname_cnf ()
13199{
13200 case ${2} in
13201 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13202 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13203 esac
13204} # func_stripname_cnf
13205
13206
13207
cristy73bd4a52010-10-05 11:24:23 +000013208
13209
13210# Set options
13211enable_win32_dll=yes
13212
13213case $host in
cristy0c60a692010-11-04 01:09:47 +000013214*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013215 if test -n "$ac_tool_prefix"; then
13216 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13217set dummy ${ac_tool_prefix}as; ac_word=$2
13218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13219$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013220if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013221 $as_echo_n "(cached) " >&6
13222else
13223 if test -n "$AS"; then
13224 ac_cv_prog_AS="$AS" # Let the user override the test.
13225else
13226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227for as_dir in $PATH
13228do
13229 IFS=$as_save_IFS
13230 test -z "$as_dir" && as_dir=.
13231 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013233 ac_cv_prog_AS="${ac_tool_prefix}as"
13234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13235 break 2
13236 fi
13237done
13238 done
13239IFS=$as_save_IFS
13240
13241fi
13242fi
13243AS=$ac_cv_prog_AS
13244if test -n "$AS"; then
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13246$as_echo "$AS" >&6; }
13247else
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249$as_echo "no" >&6; }
13250fi
13251
13252
13253fi
13254if test -z "$ac_cv_prog_AS"; then
13255 ac_ct_AS=$AS
13256 # Extract the first word of "as", so it can be a program name with args.
13257set dummy as; ac_word=$2
13258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13259$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013260if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013261 $as_echo_n "(cached) " >&6
13262else
13263 if test -n "$ac_ct_AS"; then
13264 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13265else
13266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267for as_dir in $PATH
13268do
13269 IFS=$as_save_IFS
13270 test -z "$as_dir" && as_dir=.
13271 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013273 ac_cv_prog_ac_ct_AS="as"
13274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13275 break 2
13276 fi
13277done
13278 done
13279IFS=$as_save_IFS
13280
13281fi
13282fi
13283ac_ct_AS=$ac_cv_prog_ac_ct_AS
13284if test -n "$ac_ct_AS"; then
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13286$as_echo "$ac_ct_AS" >&6; }
13287else
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289$as_echo "no" >&6; }
13290fi
13291
13292 if test "x$ac_ct_AS" = x; then
13293 AS="false"
13294 else
13295 case $cross_compiling:$ac_tool_warned in
13296yes:)
13297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13299ac_tool_warned=yes ;;
13300esac
13301 AS=$ac_ct_AS
13302 fi
13303else
13304 AS="$ac_cv_prog_AS"
13305fi
13306
13307 if test -n "$ac_tool_prefix"; then
13308 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13309set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13311$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013312if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013313 $as_echo_n "(cached) " >&6
13314else
13315 if test -n "$DLLTOOL"; then
13316 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13317else
13318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13319for as_dir in $PATH
13320do
13321 IFS=$as_save_IFS
13322 test -z "$as_dir" && as_dir=.
13323 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013325 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13327 break 2
13328 fi
13329done
13330 done
13331IFS=$as_save_IFS
13332
13333fi
13334fi
13335DLLTOOL=$ac_cv_prog_DLLTOOL
13336if test -n "$DLLTOOL"; then
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13338$as_echo "$DLLTOOL" >&6; }
13339else
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341$as_echo "no" >&6; }
13342fi
13343
13344
13345fi
13346if test -z "$ac_cv_prog_DLLTOOL"; then
13347 ac_ct_DLLTOOL=$DLLTOOL
13348 # Extract the first word of "dlltool", so it can be a program name with args.
13349set dummy dlltool; ac_word=$2
13350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13351$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013352if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013353 $as_echo_n "(cached) " >&6
13354else
13355 if test -n "$ac_ct_DLLTOOL"; then
13356 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13357else
13358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359for as_dir in $PATH
13360do
13361 IFS=$as_save_IFS
13362 test -z "$as_dir" && as_dir=.
13363 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013365 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13367 break 2
13368 fi
13369done
13370 done
13371IFS=$as_save_IFS
13372
13373fi
13374fi
13375ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13376if test -n "$ac_ct_DLLTOOL"; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13378$as_echo "$ac_ct_DLLTOOL" >&6; }
13379else
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381$as_echo "no" >&6; }
13382fi
13383
13384 if test "x$ac_ct_DLLTOOL" = x; then
13385 DLLTOOL="false"
13386 else
13387 case $cross_compiling:$ac_tool_warned in
13388yes:)
13389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13391ac_tool_warned=yes ;;
13392esac
13393 DLLTOOL=$ac_ct_DLLTOOL
13394 fi
13395else
13396 DLLTOOL="$ac_cv_prog_DLLTOOL"
13397fi
13398
13399 if test -n "$ac_tool_prefix"; then
13400 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13401set dummy ${ac_tool_prefix}objdump; ac_word=$2
13402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13403$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013404if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013405 $as_echo_n "(cached) " >&6
13406else
13407 if test -n "$OBJDUMP"; then
13408 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13409else
13410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13411for as_dir in $PATH
13412do
13413 IFS=$as_save_IFS
13414 test -z "$as_dir" && as_dir=.
13415 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013417 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13419 break 2
13420 fi
13421done
13422 done
13423IFS=$as_save_IFS
13424
13425fi
13426fi
13427OBJDUMP=$ac_cv_prog_OBJDUMP
13428if test -n "$OBJDUMP"; then
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13430$as_echo "$OBJDUMP" >&6; }
13431else
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433$as_echo "no" >&6; }
13434fi
13435
13436
13437fi
13438if test -z "$ac_cv_prog_OBJDUMP"; then
13439 ac_ct_OBJDUMP=$OBJDUMP
13440 # Extract the first word of "objdump", so it can be a program name with args.
13441set dummy objdump; ac_word=$2
13442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13443$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013444if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013445 $as_echo_n "(cached) " >&6
13446else
13447 if test -n "$ac_ct_OBJDUMP"; then
13448 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13449else
13450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13451for as_dir in $PATH
13452do
13453 IFS=$as_save_IFS
13454 test -z "$as_dir" && as_dir=.
13455 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013457 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13459 break 2
13460 fi
13461done
13462 done
13463IFS=$as_save_IFS
13464
13465fi
13466fi
13467ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13468if test -n "$ac_ct_OBJDUMP"; then
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13470$as_echo "$ac_ct_OBJDUMP" >&6; }
13471else
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473$as_echo "no" >&6; }
13474fi
13475
13476 if test "x$ac_ct_OBJDUMP" = x; then
13477 OBJDUMP="false"
13478 else
13479 case $cross_compiling:$ac_tool_warned in
13480yes:)
13481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13483ac_tool_warned=yes ;;
13484esac
13485 OBJDUMP=$ac_ct_OBJDUMP
13486 fi
13487else
13488 OBJDUMP="$ac_cv_prog_OBJDUMP"
13489fi
13490
13491 ;;
13492esac
13493
13494test -z "$AS" && AS=as
13495
13496
13497
13498
13499
13500test -z "$DLLTOOL" && DLLTOOL=dlltool
13501
13502
13503
13504
13505
13506test -z "$OBJDUMP" && OBJDUMP=objdump
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516 # Check whether --enable-shared was given.
13517if test "${enable_shared+set}" = set; then :
13518 enableval=$enable_shared; p=${PACKAGE-default}
13519 case $enableval in
13520 yes) enable_shared=yes ;;
13521 no) enable_shared=no ;;
13522 *)
13523 enable_shared=no
13524 # Look at the argument we got. We use all the common list separators.
13525 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13526 for pkg in $enableval; do
13527 IFS="$lt_save_ifs"
13528 if test "X$pkg" = "X$p"; then
13529 enable_shared=yes
13530 fi
13531 done
13532 IFS="$lt_save_ifs"
13533 ;;
13534 esac
13535else
13536 enable_shared=yes
13537fi
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547 # Check whether --enable-static was given.
13548if test "${enable_static+set}" = set; then :
13549 enableval=$enable_static; p=${PACKAGE-default}
13550 case $enableval in
13551 yes) enable_static=yes ;;
13552 no) enable_static=no ;;
13553 *)
13554 enable_static=no
13555 # Look at the argument we got. We use all the common list separators.
13556 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13557 for pkg in $enableval; do
13558 IFS="$lt_save_ifs"
13559 if test "X$pkg" = "X$p"; then
13560 enable_static=yes
13561 fi
13562 done
13563 IFS="$lt_save_ifs"
13564 ;;
13565 esac
13566else
13567 enable_static=yes
13568fi
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579# Check whether --with-pic was given.
13580if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013581 withval=$with_pic; lt_p=${PACKAGE-default}
13582 case $withval in
13583 yes|no) pic_mode=$withval ;;
13584 *)
13585 pic_mode=default
13586 # Look at the argument we got. We use all the common list separators.
13587 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13588 for lt_pkg in $withval; do
13589 IFS="$lt_save_ifs"
13590 if test "X$lt_pkg" = "X$lt_p"; then
13591 pic_mode=yes
13592 fi
13593 done
13594 IFS="$lt_save_ifs"
13595 ;;
13596 esac
cristy73bd4a52010-10-05 11:24:23 +000013597else
13598 pic_mode=default
13599fi
13600
13601
13602test -z "$pic_mode" && pic_mode=default
13603
13604
13605
13606
13607
13608
13609
13610 # Check whether --enable-fast-install was given.
13611if test "${enable_fast_install+set}" = set; then :
13612 enableval=$enable_fast_install; p=${PACKAGE-default}
13613 case $enableval in
13614 yes) enable_fast_install=yes ;;
13615 no) enable_fast_install=no ;;
13616 *)
13617 enable_fast_install=no
13618 # Look at the argument we got. We use all the common list separators.
13619 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13620 for pkg in $enableval; do
13621 IFS="$lt_save_ifs"
13622 if test "X$pkg" = "X$p"; then
13623 enable_fast_install=yes
13624 fi
13625 done
13626 IFS="$lt_save_ifs"
13627 ;;
13628 esac
13629else
13630 enable_fast_install=yes
13631fi
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643# This can be used to rebuild libtool when needed
13644LIBTOOL_DEPS="$ltmain"
13645
13646# Always use our own libtool.
13647LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
cristy0c60a692010-11-04 01:09:47 +000013673
cristy99bd5232011-12-07 14:38:20 +000013674
13675
13676
13677
cristy73bd4a52010-10-05 11:24:23 +000013678test -z "$LN_S" && LN_S="ln -s"
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693if test -n "${ZSH_VERSION+set}" ; then
13694 setopt NO_GLOB_SUBST
13695fi
13696
13697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13698$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013699if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013700 $as_echo_n "(cached) " >&6
13701else
13702 rm -f .libs 2>/dev/null
13703mkdir .libs 2>/dev/null
13704if test -d .libs; then
13705 lt_cv_objdir=.libs
13706else
13707 # MS-DOS does not allow filenames that begin with a dot.
13708 lt_cv_objdir=_libs
13709fi
13710rmdir .libs 2>/dev/null
13711fi
13712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13713$as_echo "$lt_cv_objdir" >&6; }
13714objdir=$lt_cv_objdir
13715
13716
13717
13718
13719
13720cat >>confdefs.h <<_ACEOF
13721#define LT_OBJDIR "$lt_cv_objdir/"
13722_ACEOF
13723
13724
13725
13726
cristy73bd4a52010-10-05 11:24:23 +000013727case $host_os in
13728aix3*)
13729 # AIX sometimes has problems with the GCC collect2 program. For some
13730 # reason, if we set the COLLECT_NAMES environment variable, the problems
13731 # vanish in a puff of smoke.
13732 if test "X${COLLECT_NAMES+set}" != Xset; then
13733 COLLECT_NAMES=
13734 export COLLECT_NAMES
13735 fi
13736 ;;
13737esac
13738
cristy73bd4a52010-10-05 11:24:23 +000013739# Global variables:
13740ofile=libtool
13741can_build_shared=yes
13742
13743# All known linkers require a `.a' archive for static linking (except MSVC,
13744# which needs '.lib').
13745libext=a
13746
13747with_gnu_ld="$lt_cv_prog_gnu_ld"
13748
13749old_CC="$CC"
13750old_CFLAGS="$CFLAGS"
13751
13752# Set sane defaults for various variables
13753test -z "$CC" && CC=cc
13754test -z "$LTCC" && LTCC=$CC
13755test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13756test -z "$LD" && LD=ld
13757test -z "$ac_objext" && ac_objext=o
13758
13759for cc_temp in $compiler""; do
13760 case $cc_temp in
13761 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13762 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13763 \-*) ;;
13764 *) break;;
13765 esac
13766done
cristy0c60a692010-11-04 01:09:47 +000013767cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013768
13769
13770# Only perform the check for file, if the check method requires it
13771test -z "$MAGIC_CMD" && MAGIC_CMD=file
13772case $deplibs_check_method in
13773file_magic*)
13774 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13776$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013777if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013778 $as_echo_n "(cached) " >&6
13779else
13780 case $MAGIC_CMD in
13781[\\/*] | ?:[\\/]*)
13782 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13783 ;;
13784*)
13785 lt_save_MAGIC_CMD="$MAGIC_CMD"
13786 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13787 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13788 for ac_dir in $ac_dummy; do
13789 IFS="$lt_save_ifs"
13790 test -z "$ac_dir" && ac_dir=.
13791 if test -f $ac_dir/${ac_tool_prefix}file; then
13792 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13793 if test -n "$file_magic_test_file"; then
13794 case $deplibs_check_method in
13795 "file_magic "*)
13796 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13797 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13798 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13799 $EGREP "$file_magic_regex" > /dev/null; then
13800 :
13801 else
13802 cat <<_LT_EOF 1>&2
13803
13804*** Warning: the command libtool uses to detect shared libraries,
13805*** $file_magic_cmd, produces output that libtool cannot recognize.
13806*** The result is that libtool may fail to recognize shared libraries
13807*** as such. This will affect the creation of libtool libraries that
13808*** depend on shared libraries, but programs linked with such libtool
13809*** libraries will work regardless of this problem. Nevertheless, you
13810*** may want to report the problem to your system manager and/or to
13811*** bug-libtool@gnu.org
13812
13813_LT_EOF
13814 fi ;;
13815 esac
13816 fi
13817 break
13818 fi
13819 done
13820 IFS="$lt_save_ifs"
13821 MAGIC_CMD="$lt_save_MAGIC_CMD"
13822 ;;
13823esac
13824fi
13825
13826MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13827if test -n "$MAGIC_CMD"; then
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13829$as_echo "$MAGIC_CMD" >&6; }
13830else
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13832$as_echo "no" >&6; }
13833fi
13834
13835
13836
13837
13838
13839if test -z "$lt_cv_path_MAGIC_CMD"; then
13840 if test -n "$ac_tool_prefix"; then
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13842$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013843if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013844 $as_echo_n "(cached) " >&6
13845else
13846 case $MAGIC_CMD in
13847[\\/*] | ?:[\\/]*)
13848 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13849 ;;
13850*)
13851 lt_save_MAGIC_CMD="$MAGIC_CMD"
13852 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13853 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13854 for ac_dir in $ac_dummy; do
13855 IFS="$lt_save_ifs"
13856 test -z "$ac_dir" && ac_dir=.
13857 if test -f $ac_dir/file; then
13858 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13859 if test -n "$file_magic_test_file"; then
13860 case $deplibs_check_method in
13861 "file_magic "*)
13862 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13863 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13864 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13865 $EGREP "$file_magic_regex" > /dev/null; then
13866 :
13867 else
13868 cat <<_LT_EOF 1>&2
13869
13870*** Warning: the command libtool uses to detect shared libraries,
13871*** $file_magic_cmd, produces output that libtool cannot recognize.
13872*** The result is that libtool may fail to recognize shared libraries
13873*** as such. This will affect the creation of libtool libraries that
13874*** depend on shared libraries, but programs linked with such libtool
13875*** libraries will work regardless of this problem. Nevertheless, you
13876*** may want to report the problem to your system manager and/or to
13877*** bug-libtool@gnu.org
13878
13879_LT_EOF
13880 fi ;;
13881 esac
13882 fi
13883 break
13884 fi
13885 done
13886 IFS="$lt_save_ifs"
13887 MAGIC_CMD="$lt_save_MAGIC_CMD"
13888 ;;
13889esac
13890fi
13891
13892MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13893if test -n "$MAGIC_CMD"; then
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13895$as_echo "$MAGIC_CMD" >&6; }
13896else
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13898$as_echo "no" >&6; }
13899fi
13900
13901
13902 else
13903 MAGIC_CMD=:
13904 fi
13905fi
13906
13907 fi
13908 ;;
13909esac
13910
13911# Use C for the default configuration in the libtool script
13912
13913lt_save_CC="$CC"
13914ac_ext=c
13915ac_cpp='$CPP $CPPFLAGS'
13916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13918ac_compiler_gnu=$ac_cv_c_compiler_gnu
13919
13920
13921# Source file extension for C test sources.
13922ac_ext=c
13923
13924# Object file extension for compiled C test sources.
13925objext=o
13926objext=$objext
13927
13928# Code to be used in simple compile tests
13929lt_simple_compile_test_code="int some_variable = 0;"
13930
13931# Code to be used in simple link tests
13932lt_simple_link_test_code='int main(){return(0);}'
13933
13934
13935
13936
13937
13938
13939
13940# If no C compiler was specified, use CC.
13941LTCC=${LTCC-"$CC"}
13942
13943# If no C compiler flags were specified, use CFLAGS.
13944LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13945
13946# Allow CC to be a program name with arguments.
13947compiler=$CC
13948
13949# Save the default compiler, since it gets overwritten when the other
13950# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13951compiler_DEFAULT=$CC
13952
13953# save warnings/boilerplate of simple test code
13954ac_outfile=conftest.$ac_objext
13955echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13956eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13957_lt_compiler_boilerplate=`cat conftest.err`
13958$RM conftest*
13959
13960ac_outfile=conftest.$ac_objext
13961echo "$lt_simple_link_test_code" >conftest.$ac_ext
13962eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13963_lt_linker_boilerplate=`cat conftest.err`
13964$RM -r conftest*
13965
13966
13967## CAVEAT EMPTOR:
13968## There is no encapsulation within the following macros, do not change
13969## the running order or otherwise move them around unless you know exactly
13970## what you are doing...
13971if test -n "$compiler"; then
13972
13973lt_prog_compiler_no_builtin_flag=
13974
13975if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013976 case $cc_basename in
13977 nvcc*)
13978 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13979 *)
13980 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13981 esac
cristy73bd4a52010-10-05 11:24:23 +000013982
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13984$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013985if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013986 $as_echo_n "(cached) " >&6
13987else
13988 lt_cv_prog_compiler_rtti_exceptions=no
13989 ac_outfile=conftest.$ac_objext
13990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13991 lt_compiler_flag="-fno-rtti -fno-exceptions"
13992 # Insert the option either (1) after the last *FLAGS variable, or
13993 # (2) before a word containing "conftest.", or (3) at the end.
13994 # Note that $ac_compile itself does not contain backslashes and begins
13995 # with a dollar sign (not a hyphen), so the echo should work correctly.
13996 # The option is referenced via a variable to avoid confusing sed.
13997 lt_compile=`echo "$ac_compile" | $SED \
13998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14000 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014001 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014002 (eval "$lt_compile" 2>conftest.err)
14003 ac_status=$?
14004 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014006 if (exit $ac_status) && test -s "$ac_outfile"; then
14007 # The compiler can only warn and ignore the option if not recognized
14008 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014009 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14011 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14012 lt_cv_prog_compiler_rtti_exceptions=yes
14013 fi
14014 fi
14015 $RM conftest*
14016
14017fi
14018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14019$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14020
14021if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14022 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14023else
14024 :
14025fi
14026
14027fi
14028
14029
14030
14031
14032
14033
14034 lt_prog_compiler_wl=
14035lt_prog_compiler_pic=
14036lt_prog_compiler_static=
14037
cristy73bd4a52010-10-05 11:24:23 +000014038
14039 if test "$GCC" = yes; then
14040 lt_prog_compiler_wl='-Wl,'
14041 lt_prog_compiler_static='-static'
14042
14043 case $host_os in
14044 aix*)
14045 # All AIX code is PIC.
14046 if test "$host_cpu" = ia64; then
14047 # AIX 5 now supports IA64 processor
14048 lt_prog_compiler_static='-Bstatic'
14049 fi
14050 ;;
14051
14052 amigaos*)
14053 case $host_cpu in
14054 powerpc)
14055 # see comment about AmigaOS4 .so support
14056 lt_prog_compiler_pic='-fPIC'
14057 ;;
14058 m68k)
14059 # FIXME: we need at least 68020 code to build shared libraries, but
14060 # adding the `-m68020' flag to GCC prevents building anything better,
14061 # like `-m68040'.
14062 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14063 ;;
14064 esac
14065 ;;
14066
14067 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14068 # PIC is the default for these OSes.
14069 ;;
14070
14071 mingw* | cygwin* | pw32* | os2* | cegcc*)
14072 # This hack is so that the source file can tell whether it is being
14073 # built for inclusion in a dll (and should export symbols for example).
14074 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14075 # (--disable-auto-import) libraries
14076 lt_prog_compiler_pic='-DDLL_EXPORT'
14077 ;;
14078
14079 darwin* | rhapsody*)
14080 # PIC is the default on this platform
14081 # Common symbols not allowed in MH_DYLIB files
14082 lt_prog_compiler_pic='-fno-common'
14083 ;;
14084
cristy0c60a692010-11-04 01:09:47 +000014085 haiku*)
14086 # PIC is the default for Haiku.
14087 # The "-static" flag exists, but is broken.
14088 lt_prog_compiler_static=
14089 ;;
14090
cristy73bd4a52010-10-05 11:24:23 +000014091 hpux*)
14092 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14093 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14094 # sets the default TLS model and affects inlining.
14095 case $host_cpu in
14096 hppa*64*)
14097 # +Z the default
14098 ;;
14099 *)
14100 lt_prog_compiler_pic='-fPIC'
14101 ;;
14102 esac
14103 ;;
14104
14105 interix[3-9]*)
14106 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14107 # Instead, we relocate shared libraries at runtime.
14108 ;;
14109
14110 msdosdjgpp*)
14111 # Just because we use GCC doesn't mean we suddenly get shared libraries
14112 # on systems that don't support them.
14113 lt_prog_compiler_can_build_shared=no
14114 enable_shared=no
14115 ;;
14116
14117 *nto* | *qnx*)
14118 # QNX uses GNU C++, but need to define -shared option too, otherwise
14119 # it will coredump.
14120 lt_prog_compiler_pic='-fPIC -shared'
14121 ;;
14122
14123 sysv4*MP*)
14124 if test -d /usr/nec; then
14125 lt_prog_compiler_pic=-Kconform_pic
14126 fi
14127 ;;
14128
14129 *)
14130 lt_prog_compiler_pic='-fPIC'
14131 ;;
14132 esac
cristy0c60a692010-11-04 01:09:47 +000014133
14134 case $cc_basename in
14135 nvcc*) # Cuda Compiler Driver 2.2
14136 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014137 if test -n "$lt_prog_compiler_pic"; then
14138 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14139 fi
cristy0c60a692010-11-04 01:09:47 +000014140 ;;
14141 esac
cristy73bd4a52010-10-05 11:24:23 +000014142 else
14143 # PORTME Check for flag to pass linker flags through the system compiler.
14144 case $host_os in
14145 aix*)
14146 lt_prog_compiler_wl='-Wl,'
14147 if test "$host_cpu" = ia64; then
14148 # AIX 5 now supports IA64 processor
14149 lt_prog_compiler_static='-Bstatic'
14150 else
14151 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14152 fi
14153 ;;
14154
14155 mingw* | cygwin* | pw32* | os2* | cegcc*)
14156 # This hack is so that the source file can tell whether it is being
14157 # built for inclusion in a dll (and should export symbols for example).
14158 lt_prog_compiler_pic='-DDLL_EXPORT'
14159 ;;
14160
14161 hpux9* | hpux10* | hpux11*)
14162 lt_prog_compiler_wl='-Wl,'
14163 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14164 # not for PA HP-UX.
14165 case $host_cpu in
14166 hppa*64*|ia64*)
14167 # +Z the default
14168 ;;
14169 *)
14170 lt_prog_compiler_pic='+Z'
14171 ;;
14172 esac
14173 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14174 lt_prog_compiler_static='${wl}-a ${wl}archive'
14175 ;;
14176
14177 irix5* | irix6* | nonstopux*)
14178 lt_prog_compiler_wl='-Wl,'
14179 # PIC (with -KPIC) is the default.
14180 lt_prog_compiler_static='-non_shared'
14181 ;;
14182
cristy0c60a692010-11-04 01:09:47 +000014183 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014184 case $cc_basename in
14185 # old Intel for x86_64 which still supported -KPIC.
14186 ecc*)
14187 lt_prog_compiler_wl='-Wl,'
14188 lt_prog_compiler_pic='-KPIC'
14189 lt_prog_compiler_static='-static'
14190 ;;
14191 # icc used to be incompatible with GCC.
14192 # ICC 10 doesn't accept -KPIC any more.
14193 icc* | ifort*)
14194 lt_prog_compiler_wl='-Wl,'
14195 lt_prog_compiler_pic='-fPIC'
14196 lt_prog_compiler_static='-static'
14197 ;;
14198 # Lahey Fortran 8.1.
14199 lf95*)
14200 lt_prog_compiler_wl='-Wl,'
14201 lt_prog_compiler_pic='--shared'
14202 lt_prog_compiler_static='--static'
14203 ;;
cristyda16f162011-02-19 23:52:17 +000014204 nagfor*)
14205 # NAG Fortran compiler
14206 lt_prog_compiler_wl='-Wl,-Wl,,'
14207 lt_prog_compiler_pic='-PIC'
14208 lt_prog_compiler_static='-Bstatic'
14209 ;;
cristy0c60a692010-11-04 01:09:47 +000014210 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014211 # Portland Group compilers (*not* the Pentium gcc compiler,
14212 # which looks to be a dead project)
14213 lt_prog_compiler_wl='-Wl,'
14214 lt_prog_compiler_pic='-fpic'
14215 lt_prog_compiler_static='-Bstatic'
14216 ;;
14217 ccc*)
14218 lt_prog_compiler_wl='-Wl,'
14219 # All Alpha code is PIC.
14220 lt_prog_compiler_static='-non_shared'
14221 ;;
cristy0c60a692010-11-04 01:09:47 +000014222 xl* | bgxl* | bgf* | mpixl*)
14223 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014224 lt_prog_compiler_wl='-Wl,'
14225 lt_prog_compiler_pic='-qpic'
14226 lt_prog_compiler_static='-qstaticlink'
14227 ;;
14228 *)
14229 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014230 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014231 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14232 lt_prog_compiler_pic='-KPIC'
14233 lt_prog_compiler_static='-Bstatic'
14234 lt_prog_compiler_wl=''
14235 ;;
cristy99bd5232011-12-07 14:38:20 +000014236 *Sun\ F* | *Sun*Fortran*)
14237 lt_prog_compiler_pic='-KPIC'
14238 lt_prog_compiler_static='-Bstatic'
14239 lt_prog_compiler_wl='-Qoption ld '
14240 ;;
cristy73bd4a52010-10-05 11:24:23 +000014241 *Sun\ C*)
14242 # Sun C 5.9
14243 lt_prog_compiler_pic='-KPIC'
14244 lt_prog_compiler_static='-Bstatic'
14245 lt_prog_compiler_wl='-Wl,'
14246 ;;
cristy99bd5232011-12-07 14:38:20 +000014247 *Intel*\ [CF]*Compiler*)
14248 lt_prog_compiler_wl='-Wl,'
14249 lt_prog_compiler_pic='-fPIC'
14250 lt_prog_compiler_static='-static'
14251 ;;
14252 *Portland\ Group*)
14253 lt_prog_compiler_wl='-Wl,'
14254 lt_prog_compiler_pic='-fpic'
14255 lt_prog_compiler_static='-Bstatic'
14256 ;;
cristy73bd4a52010-10-05 11:24:23 +000014257 esac
14258 ;;
14259 esac
14260 ;;
14261
14262 newsos6)
14263 lt_prog_compiler_pic='-KPIC'
14264 lt_prog_compiler_static='-Bstatic'
14265 ;;
14266
14267 *nto* | *qnx*)
14268 # QNX uses GNU C++, but need to define -shared option too, otherwise
14269 # it will coredump.
14270 lt_prog_compiler_pic='-fPIC -shared'
14271 ;;
14272
14273 osf3* | osf4* | osf5*)
14274 lt_prog_compiler_wl='-Wl,'
14275 # All OSF/1 code is PIC.
14276 lt_prog_compiler_static='-non_shared'
14277 ;;
14278
14279 rdos*)
14280 lt_prog_compiler_static='-non_shared'
14281 ;;
14282
14283 solaris*)
14284 lt_prog_compiler_pic='-KPIC'
14285 lt_prog_compiler_static='-Bstatic'
14286 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014287 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014288 lt_prog_compiler_wl='-Qoption ld ';;
14289 *)
14290 lt_prog_compiler_wl='-Wl,';;
14291 esac
14292 ;;
14293
14294 sunos4*)
14295 lt_prog_compiler_wl='-Qoption ld '
14296 lt_prog_compiler_pic='-PIC'
14297 lt_prog_compiler_static='-Bstatic'
14298 ;;
14299
14300 sysv4 | sysv4.2uw2* | sysv4.3*)
14301 lt_prog_compiler_wl='-Wl,'
14302 lt_prog_compiler_pic='-KPIC'
14303 lt_prog_compiler_static='-Bstatic'
14304 ;;
14305
14306 sysv4*MP*)
14307 if test -d /usr/nec ;then
14308 lt_prog_compiler_pic='-Kconform_pic'
14309 lt_prog_compiler_static='-Bstatic'
14310 fi
14311 ;;
14312
14313 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14314 lt_prog_compiler_wl='-Wl,'
14315 lt_prog_compiler_pic='-KPIC'
14316 lt_prog_compiler_static='-Bstatic'
14317 ;;
14318
14319 unicos*)
14320 lt_prog_compiler_wl='-Wl,'
14321 lt_prog_compiler_can_build_shared=no
14322 ;;
14323
14324 uts4*)
14325 lt_prog_compiler_pic='-pic'
14326 lt_prog_compiler_static='-Bstatic'
14327 ;;
14328
14329 *)
14330 lt_prog_compiler_can_build_shared=no
14331 ;;
14332 esac
14333 fi
14334
14335case $host_os in
14336 # For platforms which do not support PIC, -DPIC is meaningless:
14337 *djgpp*)
14338 lt_prog_compiler_pic=
14339 ;;
14340 *)
14341 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14342 ;;
14343esac
cristy73bd4a52010-10-05 11:24:23 +000014344
cristyda16f162011-02-19 23:52:17 +000014345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14346$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14347if ${lt_cv_prog_compiler_pic+:} false; then :
14348 $as_echo_n "(cached) " >&6
14349else
14350 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14351fi
14352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14353$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14354lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014355
14356#
14357# Check to make sure the PIC flag actually works.
14358#
14359if test -n "$lt_prog_compiler_pic"; then
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14361$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014362if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014363 $as_echo_n "(cached) " >&6
14364else
14365 lt_cv_prog_compiler_pic_works=no
14366 ac_outfile=conftest.$ac_objext
14367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14368 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14369 # Insert the option either (1) after the last *FLAGS variable, or
14370 # (2) before a word containing "conftest.", or (3) at the end.
14371 # Note that $ac_compile itself does not contain backslashes and begins
14372 # with a dollar sign (not a hyphen), so the echo should work correctly.
14373 # The option is referenced via a variable to avoid confusing sed.
14374 lt_compile=`echo "$ac_compile" | $SED \
14375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14377 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014379 (eval "$lt_compile" 2>conftest.err)
14380 ac_status=$?
14381 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014383 if (exit $ac_status) && test -s "$ac_outfile"; then
14384 # The compiler can only warn and ignore the option if not recognized
14385 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14388 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14389 lt_cv_prog_compiler_pic_works=yes
14390 fi
14391 fi
14392 $RM conftest*
14393
14394fi
14395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14396$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14397
14398if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14399 case $lt_prog_compiler_pic in
14400 "" | " "*) ;;
14401 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14402 esac
14403else
14404 lt_prog_compiler_pic=
14405 lt_prog_compiler_can_build_shared=no
14406fi
14407
14408fi
14409
14410
14411
14412
14413
14414
cristyda16f162011-02-19 23:52:17 +000014415
14416
14417
14418
14419
cristy73bd4a52010-10-05 11:24:23 +000014420#
14421# Check to make sure the static flag actually works.
14422#
14423wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14425$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014426if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014427 $as_echo_n "(cached) " >&6
14428else
14429 lt_cv_prog_compiler_static_works=no
14430 save_LDFLAGS="$LDFLAGS"
14431 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14432 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14433 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14434 # The linker can only warn and ignore the option if not recognized
14435 # So say no if there are warnings
14436 if test -s conftest.err; then
14437 # Append any errors to the config.log.
14438 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014439 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14441 if diff conftest.exp conftest.er2 >/dev/null; then
14442 lt_cv_prog_compiler_static_works=yes
14443 fi
14444 else
14445 lt_cv_prog_compiler_static_works=yes
14446 fi
14447 fi
14448 $RM -r conftest*
14449 LDFLAGS="$save_LDFLAGS"
14450
14451fi
14452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14453$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14454
14455if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14456 :
14457else
14458 lt_prog_compiler_static=
14459fi
14460
14461
14462
14463
14464
14465
14466
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14468$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014469if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014470 $as_echo_n "(cached) " >&6
14471else
14472 lt_cv_prog_compiler_c_o=no
14473 $RM -r conftest 2>/dev/null
14474 mkdir conftest
14475 cd conftest
14476 mkdir out
14477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14478
14479 lt_compiler_flag="-o out/conftest2.$ac_objext"
14480 # Insert the option either (1) after the last *FLAGS variable, or
14481 # (2) before a word containing "conftest.", or (3) at the end.
14482 # Note that $ac_compile itself does not contain backslashes and begins
14483 # with a dollar sign (not a hyphen), so the echo should work correctly.
14484 lt_compile=`echo "$ac_compile" | $SED \
14485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14487 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014488 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014489 (eval "$lt_compile" 2>out/conftest.err)
14490 ac_status=$?
14491 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014493 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14494 then
14495 # The compiler can only warn and ignore the option if not recognized
14496 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014497 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014498 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14499 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14500 lt_cv_prog_compiler_c_o=yes
14501 fi
14502 fi
14503 chmod u+w . 2>&5
14504 $RM conftest*
14505 # SGI C++ compiler will create directory out/ii_files/ for
14506 # template instantiation
14507 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14508 $RM out/* && rmdir out
14509 cd ..
14510 $RM -r conftest
14511 $RM conftest*
14512
14513fi
14514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14515$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14516
14517
14518
14519
14520
14521
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14523$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014524if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014525 $as_echo_n "(cached) " >&6
14526else
14527 lt_cv_prog_compiler_c_o=no
14528 $RM -r conftest 2>/dev/null
14529 mkdir conftest
14530 cd conftest
14531 mkdir out
14532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14533
14534 lt_compiler_flag="-o out/conftest2.$ac_objext"
14535 # Insert the option either (1) after the last *FLAGS variable, or
14536 # (2) before a word containing "conftest.", or (3) at the end.
14537 # Note that $ac_compile itself does not contain backslashes and begins
14538 # with a dollar sign (not a hyphen), so the echo should work correctly.
14539 lt_compile=`echo "$ac_compile" | $SED \
14540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14542 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014543 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014544 (eval "$lt_compile" 2>out/conftest.err)
14545 ac_status=$?
14546 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014548 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14549 then
14550 # The compiler can only warn and ignore the option if not recognized
14551 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014552 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014553 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14554 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14555 lt_cv_prog_compiler_c_o=yes
14556 fi
14557 fi
14558 chmod u+w . 2>&5
14559 $RM conftest*
14560 # SGI C++ compiler will create directory out/ii_files/ for
14561 # template instantiation
14562 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14563 $RM out/* && rmdir out
14564 cd ..
14565 $RM -r conftest
14566 $RM conftest*
14567
14568fi
14569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14570$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14571
14572
14573
14574
14575hard_links="nottested"
14576if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14577 # do not overwrite the value of need_locks provided by the user
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14579$as_echo_n "checking if we can lock with hard links... " >&6; }
14580 hard_links=yes
14581 $RM conftest*
14582 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14583 touch conftest.a
14584 ln conftest.a conftest.b 2>&5 || hard_links=no
14585 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14587$as_echo "$hard_links" >&6; }
14588 if test "$hard_links" = no; then
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14590$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14591 need_locks=warn
14592 fi
14593else
14594 need_locks=no
14595fi
14596
14597
14598
14599
14600
14601
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14603$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14604
14605 runpath_var=
14606 allow_undefined_flag=
14607 always_export_symbols=no
14608 archive_cmds=
14609 archive_expsym_cmds=
14610 compiler_needs_object=no
14611 enable_shared_with_static_runtimes=no
14612 export_dynamic_flag_spec=
14613 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14614 hardcode_automatic=no
14615 hardcode_direct=no
14616 hardcode_direct_absolute=no
14617 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014618 hardcode_libdir_separator=
14619 hardcode_minus_L=no
14620 hardcode_shlibpath_var=unsupported
14621 inherit_rpath=no
14622 link_all_deplibs=unknown
14623 module_cmds=
14624 module_expsym_cmds=
14625 old_archive_from_new_cmds=
14626 old_archive_from_expsyms_cmds=
14627 thread_safe_flag_spec=
14628 whole_archive_flag_spec=
14629 # include_expsyms should be a list of space-separated symbols to be *always*
14630 # included in the symbol list
14631 include_expsyms=
14632 # exclude_expsyms can be an extended regexp of symbols to exclude
14633 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14634 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14635 # as well as any symbol that contains `d'.
14636 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14637 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14638 # platforms (ab)use it in PIC code, but their linkers get confused if
14639 # the symbol is explicitly referenced. Since portable code cannot
14640 # rely on this symbol name, it's probably fine to never include it in
14641 # preloaded symbol tables.
14642 # Exclude shared library initialization/finalization symbols.
14643 extract_expsyms_cmds=
14644
14645 case $host_os in
14646 cygwin* | mingw* | pw32* | cegcc*)
14647 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14648 # When not using gcc, we currently assume that we are using
14649 # Microsoft Visual C++.
14650 if test "$GCC" != yes; then
14651 with_gnu_ld=no
14652 fi
14653 ;;
14654 interix*)
14655 # we just hope/assume this is gcc and not c89 (= MSVC++)
14656 with_gnu_ld=yes
14657 ;;
14658 openbsd*)
14659 with_gnu_ld=no
14660 ;;
14661 esac
14662
14663 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014664
14665 # On some targets, GNU ld is compatible enough with the native linker
14666 # that we're better off using the native interface for both.
14667 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014668 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014669 case $host_os in
14670 aix*)
14671 # The AIX port of GNU ld has always aspired to compatibility
14672 # with the native linker. However, as the warning in the GNU ld
14673 # block says, versions before 2.19.5* couldn't really create working
14674 # shared libraries, regardless of the interface used.
14675 case `$LD -v 2>&1` in
14676 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14677 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14678 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14679 *)
14680 lt_use_gnu_ld_interface=yes
14681 ;;
14682 esac
14683 ;;
14684 *)
14685 lt_use_gnu_ld_interface=yes
14686 ;;
14687 esac
14688 fi
14689
14690 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014691 # If archive_cmds runs LD, not CC, wlarc should be empty
14692 wlarc='${wl}'
14693
14694 # Set some defaults for GNU ld with shared library support. These
14695 # are reset later if shared libraries are not supported. Putting them
14696 # here allows them to be overridden if necessary.
14697 runpath_var=LD_RUN_PATH
14698 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14699 export_dynamic_flag_spec='${wl}--export-dynamic'
14700 # ancient GNU ld didn't support --whole-archive et. al.
14701 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14702 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14703 else
14704 whole_archive_flag_spec=
14705 fi
14706 supports_anon_versioning=no
14707 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014708 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014709 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14710 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14711 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14712 *\ 2.11.*) ;; # other 2.11 versions
14713 *) supports_anon_versioning=yes ;;
14714 esac
14715
14716 # See if GNU ld supports shared libraries.
14717 case $host_os in
14718 aix[3-9]*)
14719 # On AIX/PPC, the GNU linker is very broken
14720 if test "$host_cpu" != ia64; then
14721 ld_shlibs=no
14722 cat <<_LT_EOF 1>&2
14723
cristy0c60a692010-11-04 01:09:47 +000014724*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014725*** to be unable to reliably create shared libraries on AIX.
14726*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014727*** really care for shared libraries, you may want to install binutils
14728*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14729*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014730
14731_LT_EOF
14732 fi
14733 ;;
14734
14735 amigaos*)
14736 case $host_cpu in
14737 powerpc)
14738 # see comment about AmigaOS4 .so support
14739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14740 archive_expsym_cmds=''
14741 ;;
14742 m68k)
14743 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)'
14744 hardcode_libdir_flag_spec='-L$libdir'
14745 hardcode_minus_L=yes
14746 ;;
14747 esac
14748 ;;
14749
14750 beos*)
14751 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14752 allow_undefined_flag=unsupported
14753 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14754 # support --undefined. This deserves some investigation. FIXME
14755 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14756 else
14757 ld_shlibs=no
14758 fi
14759 ;;
14760
14761 cygwin* | mingw* | pw32* | cegcc*)
14762 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14763 # as there is no search path for DLLs.
14764 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014765 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014766 allow_undefined_flag=unsupported
14767 always_export_symbols=no
14768 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014769 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'
14770 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 +000014771
14772 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14774 # If the export-symbols file already is a .def file (1st line
14775 # is EXPORTS), use it as is; otherwise, prepend...
14776 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14777 cp $export_symbols $output_objdir/$soname.def;
14778 else
14779 echo EXPORTS > $output_objdir/$soname.def;
14780 cat $export_symbols >> $output_objdir/$soname.def;
14781 fi~
14782 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14783 else
14784 ld_shlibs=no
14785 fi
14786 ;;
14787
cristy0c60a692010-11-04 01:09:47 +000014788 haiku*)
14789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14790 link_all_deplibs=yes
14791 ;;
14792
cristy73bd4a52010-10-05 11:24:23 +000014793 interix[3-9]*)
14794 hardcode_direct=no
14795 hardcode_shlibpath_var=no
14796 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14797 export_dynamic_flag_spec='${wl}-E'
14798 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14799 # Instead, shared libraries are loaded at an image base (0x10000000 by
14800 # default) and relocated if they conflict, which is a slow very memory
14801 # consuming and fragmenting process. To avoid this, we pick a random,
14802 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14803 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14804 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14805 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'
14806 ;;
14807
cristy0c60a692010-11-04 01:09:47 +000014808 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014809 tmp_diet=no
14810 if test "$host_os" = linux-dietlibc; then
14811 case $cc_basename in
14812 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14813 esac
14814 fi
14815 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14816 && test "$tmp_diet" = no
14817 then
cristyda16f162011-02-19 23:52:17 +000014818 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014819 tmp_sharedflag='-shared'
14820 case $cc_basename,$host_cpu in
14821 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014822 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 +000014823 tmp_addflag=' $pic_flag'
14824 ;;
cristy0c60a692010-11-04 01:09:47 +000014825 pgf77* | pgf90* | pgf95* | pgfortran*)
14826 # Portland Group f77 and f90 compilers
14827 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 +000014828 tmp_addflag=' $pic_flag -Mnomain' ;;
14829 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14830 tmp_addflag=' -i_dynamic' ;;
14831 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14832 tmp_addflag=' -i_dynamic -nofor_main' ;;
14833 ifc* | ifort*) # Intel Fortran compiler
14834 tmp_addflag=' -nofor_main' ;;
14835 lf95*) # Lahey Fortran 8.1
14836 whole_archive_flag_spec=
14837 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014838 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014839 tmp_sharedflag='-qmkshrobj'
14840 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014841 nvcc*) # Cuda Compiler Driver 2.2
14842 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'
14843 compiler_needs_object=yes
14844 ;;
cristy73bd4a52010-10-05 11:24:23 +000014845 esac
14846 case `$CC -V 2>&1 | sed 5q` in
14847 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014848 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 +000014849 compiler_needs_object=yes
14850 tmp_sharedflag='-G' ;;
14851 *Sun\ F*) # Sun Fortran 8.3
14852 tmp_sharedflag='-G' ;;
14853 esac
14854 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14855
14856 if test "x$supports_anon_versioning" = xyes; then
14857 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14858 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14859 echo "local: *; };" >> $output_objdir/$libname.ver~
14860 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14861 fi
14862
14863 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014864 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014865 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14866 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014867 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014868 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014869 if test "x$supports_anon_versioning" = xyes; then
14870 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14871 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14872 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014873 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014874 fi
14875 ;;
14876 esac
14877 else
14878 ld_shlibs=no
14879 fi
14880 ;;
14881
14882 netbsd*)
14883 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14884 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14885 wlarc=
14886 else
cristyda16f162011-02-19 23:52:17 +000014887 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14888 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 +000014889 fi
14890 ;;
14891
14892 solaris*)
14893 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14894 ld_shlibs=no
14895 cat <<_LT_EOF 1>&2
14896
14897*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14898*** create shared libraries on Solaris systems. Therefore, libtool
14899*** is disabling shared libraries support. We urge you to upgrade GNU
14900*** binutils to release 2.9.1 or newer. Another option is to modify
14901*** your PATH or compiler configuration so that the native linker is
14902*** used, and then restart.
14903
14904_LT_EOF
14905 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014906 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14907 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 +000014908 else
14909 ld_shlibs=no
14910 fi
14911 ;;
14912
14913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14914 case `$LD -v 2>&1` in
14915 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14916 ld_shlibs=no
14917 cat <<_LT_EOF 1>&2
14918
14919*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14920*** reliably create shared libraries on SCO systems. Therefore, libtool
14921*** is disabling shared libraries support. We urge you to upgrade GNU
14922*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14923*** your PATH or compiler configuration so that the native linker is
14924*** used, and then restart.
14925
14926_LT_EOF
14927 ;;
14928 *)
14929 # For security reasons, it is highly recommended that you always
14930 # use absolute paths for naming shared libraries, and exclude the
14931 # DT_RUNPATH tag from executables and libraries. But doing so
14932 # requires that you compile everything twice, which is a pain.
14933 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14936 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14937 else
14938 ld_shlibs=no
14939 fi
14940 ;;
14941 esac
14942 ;;
14943
14944 sunos4*)
14945 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14946 wlarc=
14947 hardcode_direct=yes
14948 hardcode_shlibpath_var=no
14949 ;;
14950
14951 *)
14952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014953 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14954 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 +000014955 else
14956 ld_shlibs=no
14957 fi
14958 ;;
14959 esac
14960
14961 if test "$ld_shlibs" = no; then
14962 runpath_var=
14963 hardcode_libdir_flag_spec=
14964 export_dynamic_flag_spec=
14965 whole_archive_flag_spec=
14966 fi
14967 else
14968 # PORTME fill in a description of your system's linker (not GNU ld)
14969 case $host_os in
14970 aix3*)
14971 allow_undefined_flag=unsupported
14972 always_export_symbols=yes
14973 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'
14974 # Note: this linker hardcodes the directories in LIBPATH if there
14975 # are no directories specified by -L.
14976 hardcode_minus_L=yes
14977 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14978 # Neither direct hardcoding nor static linking is supported with a
14979 # broken collect2.
14980 hardcode_direct=unsupported
14981 fi
14982 ;;
14983
14984 aix[4-9]*)
14985 if test "$host_cpu" = ia64; then
14986 # On IA64, the linker does run time linking by default, so we don't
14987 # have to do anything special.
14988 aix_use_runtimelinking=no
14989 exp_sym_flag='-Bexport'
14990 no_entry_flag=""
14991 else
14992 # If we're using GNU nm, then we don't want the "-C" option.
14993 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014994 # Also, AIX nm treats weak defined symbols like other global
14995 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014996 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014997 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 +000014998 else
14999 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'
15000 fi
15001 aix_use_runtimelinking=no
15002
15003 # Test if we are trying to use run time linking or normal
15004 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15005 # need to do runtime linking.
15006 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15007 for ld_flag in $LDFLAGS; do
15008 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15009 aix_use_runtimelinking=yes
15010 break
15011 fi
15012 done
15013 ;;
15014 esac
15015
15016 exp_sym_flag='-bexport'
15017 no_entry_flag='-bnoentry'
15018 fi
15019
15020 # When large executables or shared objects are built, AIX ld can
15021 # have problems creating the table of contents. If linking a library
15022 # or program results in "error TOC overflow" add -mminimal-toc to
15023 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15024 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15025
15026 archive_cmds=''
15027 hardcode_direct=yes
15028 hardcode_direct_absolute=yes
15029 hardcode_libdir_separator=':'
15030 link_all_deplibs=yes
15031 file_list_spec='${wl}-f,'
15032
15033 if test "$GCC" = yes; then
15034 case $host_os in aix4.[012]|aix4.[012].*)
15035 # We only want to do this on AIX 4.2 and lower, the check
15036 # below for broken collect2 doesn't work under 4.3+
15037 collect2name=`${CC} -print-prog-name=collect2`
15038 if test -f "$collect2name" &&
15039 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15040 then
15041 # We have reworked collect2
15042 :
15043 else
15044 # We have old collect2
15045 hardcode_direct=unsupported
15046 # It fails to find uninstalled libraries when the uninstalled
15047 # path is not listed in the libpath. Setting hardcode_minus_L
15048 # to unsupported forces relinking
15049 hardcode_minus_L=yes
15050 hardcode_libdir_flag_spec='-L$libdir'
15051 hardcode_libdir_separator=
15052 fi
15053 ;;
15054 esac
15055 shared_flag='-shared'
15056 if test "$aix_use_runtimelinking" = yes; then
15057 shared_flag="$shared_flag "'${wl}-G'
15058 fi
15059 else
15060 # not using gcc
15061 if test "$host_cpu" = ia64; then
15062 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15063 # chokes on -Wl,-G. The following line is correct:
15064 shared_flag='-G'
15065 else
15066 if test "$aix_use_runtimelinking" = yes; then
15067 shared_flag='${wl}-G'
15068 else
15069 shared_flag='${wl}-bM:SRE'
15070 fi
15071 fi
15072 fi
15073
15074 export_dynamic_flag_spec='${wl}-bexpall'
15075 # It seems that -bexpall does not export symbols beginning with
15076 # underscore (_), so it is better to generate a list of symbols to export.
15077 always_export_symbols=yes
15078 if test "$aix_use_runtimelinking" = yes; then
15079 # Warning - without using the other runtime loading flags (-brtl),
15080 # -berok will link without error, but may produce a broken library.
15081 allow_undefined_flag='-berok'
15082 # Determine the default libpath from the value encoded in an
15083 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015084 if test "${lt_cv_aix_libpath+set}" = set; then
15085 aix_libpath=$lt_cv_aix_libpath
15086else
15087 if ${lt_cv_aix_libpath_+:} false; then :
15088 $as_echo_n "(cached) " >&6
15089else
15090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015091/* end confdefs.h. */
15092
15093int
15094main ()
15095{
15096
15097 ;
15098 return 0;
15099}
15100_ACEOF
15101if ac_fn_c_try_link "$LINENO"; then :
15102
cristyda16f162011-02-19 23:52:17 +000015103 lt_aix_libpath_sed='
15104 /Import File Strings/,/^$/ {
15105 /^0/ {
15106 s/^0 *\([^ ]*\) *$/\1/
15107 p
15108 }
15109 }'
15110 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15111 # Check for a 64-bit object if we didn't find anything.
15112 if test -z "$lt_cv_aix_libpath_"; then
15113 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15114 fi
cristy73bd4a52010-10-05 11:24:23 +000015115fi
15116rm -f core conftest.err conftest.$ac_objext \
15117 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015118 if test -z "$lt_cv_aix_libpath_"; then
15119 lt_cv_aix_libpath_="/usr/lib:/lib"
15120 fi
15121
15122fi
15123
15124 aix_libpath=$lt_cv_aix_libpath_
15125fi
cristy73bd4a52010-10-05 11:24:23 +000015126
15127 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015128 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 +000015129 else
15130 if test "$host_cpu" = ia64; then
15131 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15132 allow_undefined_flag="-z nodefs"
15133 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"
15134 else
15135 # Determine the default libpath from the value encoded in an
15136 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015137 if test "${lt_cv_aix_libpath+set}" = set; then
15138 aix_libpath=$lt_cv_aix_libpath
15139else
15140 if ${lt_cv_aix_libpath_+:} false; then :
15141 $as_echo_n "(cached) " >&6
15142else
15143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015144/* end confdefs.h. */
15145
15146int
15147main ()
15148{
15149
15150 ;
15151 return 0;
15152}
15153_ACEOF
15154if ac_fn_c_try_link "$LINENO"; then :
15155
cristyda16f162011-02-19 23:52:17 +000015156 lt_aix_libpath_sed='
15157 /Import File Strings/,/^$/ {
15158 /^0/ {
15159 s/^0 *\([^ ]*\) *$/\1/
15160 p
15161 }
15162 }'
15163 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15164 # Check for a 64-bit object if we didn't find anything.
15165 if test -z "$lt_cv_aix_libpath_"; then
15166 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15167 fi
cristy73bd4a52010-10-05 11:24:23 +000015168fi
15169rm -f core conftest.err conftest.$ac_objext \
15170 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015171 if test -z "$lt_cv_aix_libpath_"; then
15172 lt_cv_aix_libpath_="/usr/lib:/lib"
15173 fi
15174
15175fi
15176
15177 aix_libpath=$lt_cv_aix_libpath_
15178fi
cristy73bd4a52010-10-05 11:24:23 +000015179
15180 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15181 # Warning - without using the other run time loading flags,
15182 # -berok will link without error, but may produce a broken library.
15183 no_undefined_flag=' ${wl}-bernotok'
15184 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015185 if test "$with_gnu_ld" = yes; then
15186 # We only use this code for GNU lds that support --whole-archive.
15187 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15188 else
15189 # Exported symbols can be pulled into shared objects from archives
15190 whole_archive_flag_spec='$convenience'
15191 fi
cristy73bd4a52010-10-05 11:24:23 +000015192 archive_cmds_need_lc=yes
15193 # This is similar to how AIX traditionally builds its shared libraries.
15194 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'
15195 fi
15196 fi
15197 ;;
15198
15199 amigaos*)
15200 case $host_cpu in
15201 powerpc)
15202 # see comment about AmigaOS4 .so support
15203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15204 archive_expsym_cmds=''
15205 ;;
15206 m68k)
15207 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)'
15208 hardcode_libdir_flag_spec='-L$libdir'
15209 hardcode_minus_L=yes
15210 ;;
15211 esac
15212 ;;
15213
15214 bsdi[45]*)
15215 export_dynamic_flag_spec=-rdynamic
15216 ;;
15217
15218 cygwin* | mingw* | pw32* | cegcc*)
15219 # When not using gcc, we currently assume that we are using
15220 # Microsoft Visual C++.
15221 # hardcode_libdir_flag_spec is actually meaningless, as there is
15222 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015223 case $cc_basename in
15224 cl*)
15225 # Native MSVC
15226 hardcode_libdir_flag_spec=' '
15227 allow_undefined_flag=unsupported
15228 always_export_symbols=yes
15229 file_list_spec='@'
15230 # Tell ltmain to make .lib files, not .a files.
15231 libext=lib
15232 # Tell ltmain to make .dll files, not .so files.
15233 shrext_cmds=".dll"
15234 # FIXME: Setting linknames here is a bad hack.
15235 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15236 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15237 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15238 else
15239 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15240 fi~
15241 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15242 linknames='
15243 # The linker will not automatically build a static lib if we build a DLL.
15244 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15245 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015246 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015247 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15248 # Don't use ranlib
15249 old_postinstall_cmds='chmod 644 $oldlib'
15250 postlink_cmds='lt_outputfile="@OUTPUT@"~
15251 lt_tool_outputfile="@TOOL_OUTPUT@"~
15252 case $lt_outputfile in
15253 *.exe|*.EXE) ;;
15254 *)
15255 lt_outputfile="$lt_outputfile.exe"
15256 lt_tool_outputfile="$lt_tool_outputfile.exe"
15257 ;;
15258 esac~
15259 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15260 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15261 $RM "$lt_outputfile.manifest";
15262 fi'
15263 ;;
15264 *)
15265 # Assume MSVC wrapper
15266 hardcode_libdir_flag_spec=' '
15267 allow_undefined_flag=unsupported
15268 # Tell ltmain to make .lib files, not .a files.
15269 libext=lib
15270 # Tell ltmain to make .dll files, not .so files.
15271 shrext_cmds=".dll"
15272 # FIXME: Setting linknames here is a bad hack.
15273 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15274 # The linker will automatically build a .lib file if we build a DLL.
15275 old_archive_from_new_cmds='true'
15276 # FIXME: Should let the user specify the lib program.
15277 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15278 enable_shared_with_static_runtimes=yes
15279 ;;
15280 esac
cristy73bd4a52010-10-05 11:24:23 +000015281 ;;
15282
15283 darwin* | rhapsody*)
15284
15285
15286 archive_cmds_need_lc=no
15287 hardcode_direct=no
15288 hardcode_automatic=yes
15289 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015290 if test "$lt_cv_ld_force_load" = "yes"; then
15291 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 +000015292
cristy0c60a692010-11-04 01:09:47 +000015293 else
15294 whole_archive_flag_spec=''
15295 fi
cristy73bd4a52010-10-05 11:24:23 +000015296 link_all_deplibs=yes
15297 allow_undefined_flag="$_lt_dar_allow_undefined"
15298 case $cc_basename in
15299 ifort*) _lt_dar_can_shared=yes ;;
15300 *) _lt_dar_can_shared=$GCC ;;
15301 esac
15302 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015303 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015304 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15305 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15306 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}"
15307 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}"
15308
15309 else
15310 ld_shlibs=no
15311 fi
15312
15313 ;;
15314
15315 dgux*)
15316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15317 hardcode_libdir_flag_spec='-L$libdir'
15318 hardcode_shlibpath_var=no
15319 ;;
15320
cristy73bd4a52010-10-05 11:24:23 +000015321 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15322 # support. Future versions do this automatically, but an explicit c++rt0.o
15323 # does not break anything, and helps significantly (at the cost of a little
15324 # extra space).
15325 freebsd2.2*)
15326 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15327 hardcode_libdir_flag_spec='-R$libdir'
15328 hardcode_direct=yes
15329 hardcode_shlibpath_var=no
15330 ;;
15331
15332 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015333 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015334 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15335 hardcode_direct=yes
15336 hardcode_minus_L=yes
15337 hardcode_shlibpath_var=no
15338 ;;
15339
15340 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15341 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015342 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015343 hardcode_libdir_flag_spec='-R$libdir'
15344 hardcode_direct=yes
15345 hardcode_shlibpath_var=no
15346 ;;
15347
15348 hpux9*)
15349 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015350 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 +000015351 else
15352 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'
15353 fi
15354 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15355 hardcode_libdir_separator=:
15356 hardcode_direct=yes
15357
15358 # hardcode_minus_L: Not really in the search PATH,
15359 # but as the default location of the library.
15360 hardcode_minus_L=yes
15361 export_dynamic_flag_spec='${wl}-E'
15362 ;;
15363
15364 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015365 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015366 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 +000015367 else
15368 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15369 fi
15370 if test "$with_gnu_ld" = no; then
15371 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015372 hardcode_libdir_separator=:
15373 hardcode_direct=yes
15374 hardcode_direct_absolute=yes
15375 export_dynamic_flag_spec='${wl}-E'
15376 # hardcode_minus_L: Not really in the search PATH,
15377 # but as the default location of the library.
15378 hardcode_minus_L=yes
15379 fi
15380 ;;
15381
15382 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015383 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015384 case $host_cpu in
15385 hppa*64*)
15386 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15387 ;;
15388 ia64*)
cristyda16f162011-02-19 23:52:17 +000015389 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015390 ;;
15391 *)
cristyda16f162011-02-19 23:52:17 +000015392 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 +000015393 ;;
15394 esac
15395 else
15396 case $host_cpu in
15397 hppa*64*)
15398 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15399 ;;
15400 ia64*)
15401 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15402 ;;
15403 *)
cristy0c60a692010-11-04 01:09:47 +000015404
15405 # Older versions of the 11.00 compiler do not understand -b yet
15406 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15408$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015409if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015410 $as_echo_n "(cached) " >&6
15411else
15412 lt_cv_prog_compiler__b=no
15413 save_LDFLAGS="$LDFLAGS"
15414 LDFLAGS="$LDFLAGS -b"
15415 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15416 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15417 # The linker can only warn and ignore the option if not recognized
15418 # So say no if there are warnings
15419 if test -s conftest.err; then
15420 # Append any errors to the config.log.
15421 cat conftest.err 1>&5
15422 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15424 if diff conftest.exp conftest.er2 >/dev/null; then
15425 lt_cv_prog_compiler__b=yes
15426 fi
15427 else
15428 lt_cv_prog_compiler__b=yes
15429 fi
15430 fi
15431 $RM -r conftest*
15432 LDFLAGS="$save_LDFLAGS"
15433
15434fi
15435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15436$as_echo "$lt_cv_prog_compiler__b" >&6; }
15437
15438if test x"$lt_cv_prog_compiler__b" = xyes; then
15439 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15440else
15441 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15442fi
15443
cristy73bd4a52010-10-05 11:24:23 +000015444 ;;
15445 esac
15446 fi
15447 if test "$with_gnu_ld" = no; then
15448 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15449 hardcode_libdir_separator=:
15450
15451 case $host_cpu in
15452 hppa*64*|ia64*)
15453 hardcode_direct=no
15454 hardcode_shlibpath_var=no
15455 ;;
15456 *)
15457 hardcode_direct=yes
15458 hardcode_direct_absolute=yes
15459 export_dynamic_flag_spec='${wl}-E'
15460
15461 # hardcode_minus_L: Not really in the search PATH,
15462 # but as the default location of the library.
15463 hardcode_minus_L=yes
15464 ;;
15465 esac
15466 fi
15467 ;;
15468
15469 irix5* | irix6* | nonstopux*)
15470 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015471 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 +000015472 # Try to use the -exported_symbol ld option, if it does not
15473 # work, assume that -exports_file does not work either and
15474 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015475 # This should be the same for all languages, so no per-tag cache variable.
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15477$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15478if ${lt_cv_irix_exported_symbol+:} false; then :
15479 $as_echo_n "(cached) " >&6
15480else
15481 save_LDFLAGS="$LDFLAGS"
15482 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015484/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015485int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015486_ACEOF
15487if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015488 lt_cv_irix_exported_symbol=yes
15489else
15490 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015491fi
15492rm -f core conftest.err conftest.$ac_objext \
15493 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015494 LDFLAGS="$save_LDFLAGS"
15495fi
15496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15497$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15498 if test "$lt_cv_irix_exported_symbol" = yes; then
15499 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'
15500 fi
cristy73bd4a52010-10-05 11:24:23 +000015501 else
cristy0c60a692010-11-04 01:09:47 +000015502 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'
15503 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 +000015504 fi
15505 archive_cmds_need_lc='no'
15506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15507 hardcode_libdir_separator=:
15508 inherit_rpath=yes
15509 link_all_deplibs=yes
15510 ;;
15511
15512 netbsd*)
15513 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15514 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15515 else
15516 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15517 fi
15518 hardcode_libdir_flag_spec='-R$libdir'
15519 hardcode_direct=yes
15520 hardcode_shlibpath_var=no
15521 ;;
15522
15523 newsos6)
15524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15525 hardcode_direct=yes
15526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15527 hardcode_libdir_separator=:
15528 hardcode_shlibpath_var=no
15529 ;;
15530
15531 *nto* | *qnx*)
15532 ;;
15533
15534 openbsd*)
15535 if test -f /usr/libexec/ld.so; then
15536 hardcode_direct=yes
15537 hardcode_shlibpath_var=no
15538 hardcode_direct_absolute=yes
15539 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15540 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15541 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15542 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15543 export_dynamic_flag_spec='${wl}-E'
15544 else
15545 case $host_os in
15546 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15548 hardcode_libdir_flag_spec='-R$libdir'
15549 ;;
15550 *)
15551 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15552 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15553 ;;
15554 esac
15555 fi
15556 else
15557 ld_shlibs=no
15558 fi
15559 ;;
15560
15561 os2*)
15562 hardcode_libdir_flag_spec='-L$libdir'
15563 hardcode_minus_L=yes
15564 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015565 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 +000015566 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15567 ;;
15568
15569 osf3*)
15570 if test "$GCC" = yes; then
15571 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015572 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 +000015573 else
15574 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015575 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 +000015576 fi
15577 archive_cmds_need_lc='no'
15578 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15579 hardcode_libdir_separator=:
15580 ;;
15581
15582 osf4* | osf5*) # as osf3* with the addition of -msym flag
15583 if test "$GCC" = yes; then
15584 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015585 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 +000015586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15587 else
15588 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015589 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 +000015590 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 +000015591 $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 +000015592
15593 # Both c and cxx compiler support -rpath directly
15594 hardcode_libdir_flag_spec='-rpath $libdir'
15595 fi
15596 archive_cmds_need_lc='no'
15597 hardcode_libdir_separator=:
15598 ;;
15599
15600 solaris*)
15601 no_undefined_flag=' -z defs'
15602 if test "$GCC" = yes; then
15603 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015604 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 +000015605 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 +000015606 $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 +000015607 else
15608 case `$CC -V 2>&1` in
15609 *"Compilers 5.0"*)
15610 wlarc=''
15611 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15612 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15613 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15614 ;;
15615 *)
15616 wlarc='${wl}'
15617 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15618 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15619 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15620 ;;
15621 esac
15622 fi
15623 hardcode_libdir_flag_spec='-R$libdir'
15624 hardcode_shlibpath_var=no
15625 case $host_os in
15626 solaris2.[0-5] | solaris2.[0-5].*) ;;
15627 *)
15628 # The compiler driver will combine and reorder linker options,
15629 # but understands `-z linker_flag'. GCC discards it without `$wl',
15630 # but is careful enough not to reorder.
15631 # Supported since Solaris 2.6 (maybe 2.5.1?)
15632 if test "$GCC" = yes; then
15633 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15634 else
15635 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15636 fi
15637 ;;
15638 esac
15639 link_all_deplibs=yes
15640 ;;
15641
15642 sunos4*)
15643 if test "x$host_vendor" = xsequent; then
15644 # Use $CC to link under sequent, because it throws in some extra .o
15645 # files that make .init and .fini sections work.
15646 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15647 else
15648 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15649 fi
15650 hardcode_libdir_flag_spec='-L$libdir'
15651 hardcode_direct=yes
15652 hardcode_minus_L=yes
15653 hardcode_shlibpath_var=no
15654 ;;
15655
15656 sysv4)
15657 case $host_vendor in
15658 sni)
15659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15660 hardcode_direct=yes # is this really true???
15661 ;;
15662 siemens)
15663 ## LD is ld it makes a PLAMLIB
15664 ## CC just makes a GrossModule.
15665 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15666 reload_cmds='$CC -r -o $output$reload_objs'
15667 hardcode_direct=no
15668 ;;
15669 motorola)
15670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15671 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15672 ;;
15673 esac
15674 runpath_var='LD_RUN_PATH'
15675 hardcode_shlibpath_var=no
15676 ;;
15677
15678 sysv4.3*)
15679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15680 hardcode_shlibpath_var=no
15681 export_dynamic_flag_spec='-Bexport'
15682 ;;
15683
15684 sysv4*MP*)
15685 if test -d /usr/nec; then
15686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15687 hardcode_shlibpath_var=no
15688 runpath_var=LD_RUN_PATH
15689 hardcode_runpath_var=yes
15690 ld_shlibs=yes
15691 fi
15692 ;;
15693
15694 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15695 no_undefined_flag='${wl}-z,text'
15696 archive_cmds_need_lc=no
15697 hardcode_shlibpath_var=no
15698 runpath_var='LD_RUN_PATH'
15699
15700 if test "$GCC" = yes; then
15701 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15702 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15703 else
15704 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15705 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15706 fi
15707 ;;
15708
15709 sysv5* | sco3.2v5* | sco5v6*)
15710 # Note: We can NOT use -z defs as we might desire, because we do not
15711 # link with -lc, and that would cause any symbols used from libc to
15712 # always be unresolved, which means just about no library would
15713 # ever link correctly. If we're not using GNU ld we use -z text
15714 # though, which does catch some bad symbols but isn't as heavy-handed
15715 # as -z defs.
15716 no_undefined_flag='${wl}-z,text'
15717 allow_undefined_flag='${wl}-z,nodefs'
15718 archive_cmds_need_lc=no
15719 hardcode_shlibpath_var=no
15720 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15721 hardcode_libdir_separator=':'
15722 link_all_deplibs=yes
15723 export_dynamic_flag_spec='${wl}-Bexport'
15724 runpath_var='LD_RUN_PATH'
15725
15726 if test "$GCC" = yes; then
15727 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15728 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15729 else
15730 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15731 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15732 fi
15733 ;;
15734
15735 uts4*)
15736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15737 hardcode_libdir_flag_spec='-L$libdir'
15738 hardcode_shlibpath_var=no
15739 ;;
15740
15741 *)
15742 ld_shlibs=no
15743 ;;
15744 esac
15745
15746 if test x$host_vendor = xsni; then
15747 case $host in
15748 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15749 export_dynamic_flag_spec='${wl}-Blargedynsym'
15750 ;;
15751 esac
15752 fi
15753 fi
15754
15755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15756$as_echo "$ld_shlibs" >&6; }
15757test "$ld_shlibs" = no && can_build_shared=no
15758
15759with_gnu_ld=$with_gnu_ld
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775#
15776# Do we need to explicitly link libc?
15777#
15778case "x$archive_cmds_need_lc" in
15779x|xyes)
15780 # Assume -lc should be added
15781 archive_cmds_need_lc=yes
15782
15783 if test "$enable_shared" = yes && test "$GCC" = yes; then
15784 case $archive_cmds in
15785 *'~'*)
15786 # FIXME: we may have to deal with multi-command sequences.
15787 ;;
15788 '$CC '*)
15789 # Test whether the compiler implicitly links with -lc since on some
15790 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15791 # to ld, don't add -lc before -lgcc.
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15793$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015794if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015795 $as_echo_n "(cached) " >&6
15796else
15797 $RM conftest*
15798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015799
cristy0c60a692010-11-04 01:09:47 +000015800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015801 (eval $ac_compile) 2>&5
15802 ac_status=$?
15803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15804 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015805 soname=conftest
15806 lib=conftest
15807 libobjs=conftest.$ac_objext
15808 deplibs=
15809 wl=$lt_prog_compiler_wl
15810 pic_flag=$lt_prog_compiler_pic
15811 compiler_flags=-v
15812 linker_flags=-v
15813 verstring=
15814 output_objdir=.
15815 libname=conftest
15816 lt_save_allow_undefined_flag=$allow_undefined_flag
15817 allow_undefined_flag=
15818 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 +000015819 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15820 ac_status=$?
15821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15822 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015823 then
15824 lt_cv_archive_cmds_need_lc=no
15825 else
15826 lt_cv_archive_cmds_need_lc=yes
15827 fi
15828 allow_undefined_flag=$lt_save_allow_undefined_flag
15829 else
15830 cat conftest.err 1>&5
15831 fi
15832 $RM conftest*
15833
15834fi
15835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15836$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15837 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015838 ;;
15839 esac
15840 fi
15841 ;;
15842esac
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
15989
15990
15991
15992
15993
15994
cristy73bd4a52010-10-05 11:24:23 +000015995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15996$as_echo_n "checking dynamic linker characteristics... " >&6; }
15997
15998if test "$GCC" = yes; then
15999 case $host_os in
16000 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16001 *) lt_awk_arg="/^libraries:/" ;;
16002 esac
cristy0c60a692010-11-04 01:09:47 +000016003 case $host_os in
16004 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16005 *) lt_sed_strip_eq="s,=/,/,g" ;;
16006 esac
16007 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16008 case $lt_search_path_spec in
16009 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016010 # if the path contains ";" then we assume it to be the separator
16011 # otherwise default to the standard path separator (i.e. ":") - it is
16012 # assumed that no part of a normal pathname contains ";" but that should
16013 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016014 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16015 ;;
16016 *)
16017 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16018 ;;
16019 esac
cristy73bd4a52010-10-05 11:24:23 +000016020 # Ok, now we have the path, separated by spaces, we can step through it
16021 # and add multilib dir if necessary.
16022 lt_tmp_lt_search_path_spec=
16023 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16024 for lt_sys_path in $lt_search_path_spec; do
16025 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16026 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16027 else
16028 test -d "$lt_sys_path" && \
16029 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16030 fi
16031 done
cristy0c60a692010-11-04 01:09:47 +000016032 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016033BEGIN {RS=" "; FS="/|\n";} {
16034 lt_foo="";
16035 lt_count=0;
16036 for (lt_i = NF; lt_i > 0; lt_i--) {
16037 if ($lt_i != "" && $lt_i != ".") {
16038 if ($lt_i == "..") {
16039 lt_count++;
16040 } else {
16041 if (lt_count == 0) {
16042 lt_foo="/" $lt_i lt_foo;
16043 } else {
16044 lt_count--;
16045 }
16046 }
16047 }
16048 }
16049 if (lt_foo != "") { lt_freq[lt_foo]++; }
16050 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16051}'`
cristy0c60a692010-11-04 01:09:47 +000016052 # AWK program above erroneously prepends '/' to C:/dos/paths
16053 # for these hosts.
16054 case $host_os in
16055 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16056 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16057 esac
16058 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016059else
16060 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16061fi
16062library_names_spec=
16063libname_spec='lib$name'
16064soname_spec=
16065shrext_cmds=".so"
16066postinstall_cmds=
16067postuninstall_cmds=
16068finish_cmds=
16069finish_eval=
16070shlibpath_var=
16071shlibpath_overrides_runpath=unknown
16072version_type=none
16073dynamic_linker="$host_os ld.so"
16074sys_lib_dlsearch_path_spec="/lib /usr/lib"
16075need_lib_prefix=unknown
16076hardcode_into_libs=no
16077
16078# when you set need_version to no, make sure it does not cause -set_version
16079# flags to be left without arguments
16080need_version=unknown
16081
16082case $host_os in
16083aix3*)
cristy99bd5232011-12-07 14:38:20 +000016084 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016085 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16086 shlibpath_var=LIBPATH
16087
16088 # AIX 3 has no versioning support, so we append a major version to the name.
16089 soname_spec='${libname}${release}${shared_ext}$major'
16090 ;;
16091
16092aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016093 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016094 need_lib_prefix=no
16095 need_version=no
16096 hardcode_into_libs=yes
16097 if test "$host_cpu" = ia64; then
16098 # AIX 5 supports IA64
16099 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16100 shlibpath_var=LD_LIBRARY_PATH
16101 else
16102 # With GCC up to 2.95.x, collect2 would create an import file
16103 # for dependence libraries. The import file would start with
16104 # the line `#! .'. This would cause the generated library to
16105 # depend on `.', always an invalid library. This was fixed in
16106 # development snapshots of GCC prior to 3.0.
16107 case $host_os in
16108 aix4 | aix4.[01] | aix4.[01].*)
16109 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16110 echo ' yes '
16111 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16112 :
16113 else
16114 can_build_shared=no
16115 fi
16116 ;;
16117 esac
16118 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16119 # soname into executable. Probably we can add versioning support to
16120 # collect2, so additional links can be useful in future.
16121 if test "$aix_use_runtimelinking" = yes; then
16122 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16123 # instead of lib<name>.a to let people know that these are not
16124 # typical AIX shared libraries.
16125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16126 else
16127 # We preserve .a as extension for shared libraries through AIX4.2
16128 # and later when we are not doing run time linking.
16129 library_names_spec='${libname}${release}.a $libname.a'
16130 soname_spec='${libname}${release}${shared_ext}$major'
16131 fi
16132 shlibpath_var=LIBPATH
16133 fi
16134 ;;
16135
16136amigaos*)
16137 case $host_cpu in
16138 powerpc)
16139 # Since July 2007 AmigaOS4 officially supports .so libraries.
16140 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16142 ;;
16143 m68k)
16144 library_names_spec='$libname.ixlibrary $libname.a'
16145 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016146 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 +000016147 ;;
16148 esac
16149 ;;
16150
16151beos*)
16152 library_names_spec='${libname}${shared_ext}'
16153 dynamic_linker="$host_os ld.so"
16154 shlibpath_var=LIBRARY_PATH
16155 ;;
16156
16157bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016158 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016159 need_version=no
16160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16161 soname_spec='${libname}${release}${shared_ext}$major'
16162 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16163 shlibpath_var=LD_LIBRARY_PATH
16164 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16165 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16166 # the default ld.so.conf also contains /usr/contrib/lib and
16167 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16168 # libtool to hard-code these into programs
16169 ;;
16170
16171cygwin* | mingw* | pw32* | cegcc*)
16172 version_type=windows
16173 shrext_cmds=".dll"
16174 need_version=no
16175 need_lib_prefix=no
16176
cristyda16f162011-02-19 23:52:17 +000016177 case $GCC,$cc_basename in
16178 yes,*)
16179 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016180 library_names_spec='$libname.dll.a'
16181 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16182 postinstall_cmds='base_file=`basename \${file}`~
16183 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16184 dldir=$destdir/`dirname \$dlpath`~
16185 test -d \$dldir || mkdir -p \$dldir~
16186 $install_prog $dir/$dlname \$dldir/$dlname~
16187 chmod a+x \$dldir/$dlname~
16188 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16189 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16190 fi'
16191 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16192 dlpath=$dir/\$dldll~
16193 $RM \$dlpath'
16194 shlibpath_overrides_runpath=yes
16195
16196 case $host_os in
16197 cygwin*)
16198 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16199 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016200
16201 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016202 ;;
16203 mingw* | cegcc*)
16204 # MinGW DLLs use traditional 'lib' prefix
16205 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016206 ;;
16207 pw32*)
16208 # pw32 DLLs use 'pw' prefix rather than 'lib'
16209 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16210 ;;
16211 esac
cristyda16f162011-02-19 23:52:17 +000016212 dynamic_linker='Win32 ld.exe'
16213 ;;
16214
16215 *,cl*)
16216 # Native MSVC
16217 libname_spec='$name'
16218 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16219 library_names_spec='${libname}.dll.lib'
16220
16221 case $build_os in
16222 mingw*)
16223 sys_lib_search_path_spec=
16224 lt_save_ifs=$IFS
16225 IFS=';'
16226 for lt_path in $LIB
16227 do
16228 IFS=$lt_save_ifs
16229 # Let DOS variable expansion print the short 8.3 style file name.
16230 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16231 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16232 done
16233 IFS=$lt_save_ifs
16234 # Convert to MSYS style.
16235 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16236 ;;
16237 cygwin*)
16238 # Convert to unix form, then to dos form, then back to unix form
16239 # but this time dos style (no spaces!) so that the unix form looks
16240 # like /cygdrive/c/PROGRA~1:/cygdr...
16241 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16242 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16243 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16244 ;;
16245 *)
16246 sys_lib_search_path_spec="$LIB"
16247 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16248 # It is most probably a Windows format PATH.
16249 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16250 else
16251 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16252 fi
16253 # FIXME: find the short name or the path components, as spaces are
16254 # common. (e.g. "Program Files" -> "PROGRA~1")
16255 ;;
16256 esac
16257
16258 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16259 postinstall_cmds='base_file=`basename \${file}`~
16260 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16261 dldir=$destdir/`dirname \$dlpath`~
16262 test -d \$dldir || mkdir -p \$dldir~
16263 $install_prog $dir/$dlname \$dldir/$dlname'
16264 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16265 dlpath=$dir/\$dldll~
16266 $RM \$dlpath'
16267 shlibpath_overrides_runpath=yes
16268 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016269 ;;
16270
16271 *)
cristyda16f162011-02-19 23:52:17 +000016272 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016273 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016274 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016275 ;;
16276 esac
cristy73bd4a52010-10-05 11:24:23 +000016277 # FIXME: first we should search . and the directory the executable is in
16278 shlibpath_var=PATH
16279 ;;
16280
16281darwin* | rhapsody*)
16282 dynamic_linker="$host_os dyld"
16283 version_type=darwin
16284 need_lib_prefix=no
16285 need_version=no
16286 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16287 soname_spec='${libname}${release}${major}$shared_ext'
16288 shlibpath_overrides_runpath=yes
16289 shlibpath_var=DYLD_LIBRARY_PATH
16290 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16291
16292 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16293 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16294 ;;
16295
16296dgux*)
cristy99bd5232011-12-07 14:38:20 +000016297 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016298 need_lib_prefix=no
16299 need_version=no
16300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16301 soname_spec='${libname}${release}${shared_ext}$major'
16302 shlibpath_var=LD_LIBRARY_PATH
16303 ;;
16304
cristy73bd4a52010-10-05 11:24:23 +000016305freebsd* | dragonfly*)
16306 # DragonFly does not have aout. When/if they implement a new
16307 # versioning mechanism, adjust this.
16308 if test -x /usr/bin/objformat; then
16309 objformat=`/usr/bin/objformat`
16310 else
16311 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016312 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016313 *) objformat=elf ;;
16314 esac
16315 fi
16316 version_type=freebsd-$objformat
16317 case $version_type in
16318 freebsd-elf*)
16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16320 need_version=no
16321 need_lib_prefix=no
16322 ;;
16323 freebsd-*)
16324 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16325 need_version=yes
16326 ;;
16327 esac
16328 shlibpath_var=LD_LIBRARY_PATH
16329 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016330 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016331 shlibpath_overrides_runpath=yes
16332 ;;
16333 freebsd3.[01]* | freebsdelf3.[01]*)
16334 shlibpath_overrides_runpath=yes
16335 hardcode_into_libs=yes
16336 ;;
16337 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16338 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16339 shlibpath_overrides_runpath=no
16340 hardcode_into_libs=yes
16341 ;;
16342 *) # from 4.6 on, and DragonFly
16343 shlibpath_overrides_runpath=yes
16344 hardcode_into_libs=yes
16345 ;;
16346 esac
16347 ;;
16348
16349gnu*)
cristy99bd5232011-12-07 14:38:20 +000016350 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016351 need_lib_prefix=no
16352 need_version=no
16353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16354 soname_spec='${libname}${release}${shared_ext}$major'
16355 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016356 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016357 hardcode_into_libs=yes
16358 ;;
16359
cristy0c60a692010-11-04 01:09:47 +000016360haiku*)
cristy99bd5232011-12-07 14:38:20 +000016361 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016362 need_lib_prefix=no
16363 need_version=no
16364 dynamic_linker="$host_os runtime_loader"
16365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16366 soname_spec='${libname}${release}${shared_ext}$major'
16367 shlibpath_var=LIBRARY_PATH
16368 shlibpath_overrides_runpath=yes
16369 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16370 hardcode_into_libs=yes
16371 ;;
16372
cristy73bd4a52010-10-05 11:24:23 +000016373hpux9* | hpux10* | hpux11*)
16374 # Give a soname corresponding to the major version so that dld.sl refuses to
16375 # link against other versions.
16376 version_type=sunos
16377 need_lib_prefix=no
16378 need_version=no
16379 case $host_cpu in
16380 ia64*)
16381 shrext_cmds='.so'
16382 hardcode_into_libs=yes
16383 dynamic_linker="$host_os dld.so"
16384 shlibpath_var=LD_LIBRARY_PATH
16385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387 soname_spec='${libname}${release}${shared_ext}$major'
16388 if test "X$HPUX_IA64_MODE" = X32; then
16389 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16390 else
16391 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16392 fi
16393 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16394 ;;
16395 hppa*64*)
16396 shrext_cmds='.sl'
16397 hardcode_into_libs=yes
16398 dynamic_linker="$host_os dld.sl"
16399 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16400 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16402 soname_spec='${libname}${release}${shared_ext}$major'
16403 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16404 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16405 ;;
16406 *)
16407 shrext_cmds='.sl'
16408 dynamic_linker="$host_os dld.sl"
16409 shlibpath_var=SHLIB_PATH
16410 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16412 soname_spec='${libname}${release}${shared_ext}$major'
16413 ;;
16414 esac
cristy0c60a692010-11-04 01:09:47 +000016415 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016416 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016417 # or fails outright, so override atomically:
16418 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016419 ;;
16420
16421interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016422 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016423 need_lib_prefix=no
16424 need_version=no
16425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16426 soname_spec='${libname}${release}${shared_ext}$major'
16427 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16428 shlibpath_var=LD_LIBRARY_PATH
16429 shlibpath_overrides_runpath=no
16430 hardcode_into_libs=yes
16431 ;;
16432
16433irix5* | irix6* | nonstopux*)
16434 case $host_os in
16435 nonstopux*) version_type=nonstopux ;;
16436 *)
16437 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016438 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016439 else
16440 version_type=irix
16441 fi ;;
16442 esac
16443 need_lib_prefix=no
16444 need_version=no
16445 soname_spec='${libname}${release}${shared_ext}$major'
16446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16447 case $host_os in
16448 irix5* | nonstopux*)
16449 libsuff= shlibsuff=
16450 ;;
16451 *)
16452 case $LD in # libtool.m4 will add one of these switches to LD
16453 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16454 libsuff= shlibsuff= libmagic=32-bit;;
16455 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16456 libsuff=32 shlibsuff=N32 libmagic=N32;;
16457 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16458 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16459 *) libsuff= shlibsuff= libmagic=never-match;;
16460 esac
16461 ;;
16462 esac
16463 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16464 shlibpath_overrides_runpath=no
16465 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16466 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16467 hardcode_into_libs=yes
16468 ;;
16469
16470# No shared lib support for Linux oldld, aout, or coff.
16471linux*oldld* | linux*aout* | linux*coff*)
16472 dynamic_linker=no
16473 ;;
16474
cristy99bd5232011-12-07 14:38:20 +000016475# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016476linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016477 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016478 need_lib_prefix=no
16479 need_version=no
16480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16481 soname_spec='${libname}${release}${shared_ext}$major'
16482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16483 shlibpath_var=LD_LIBRARY_PATH
16484 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016485
cristy73bd4a52010-10-05 11:24:23 +000016486 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016487 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016488 $as_echo_n "(cached) " >&6
16489else
16490 lt_cv_shlibpath_overrides_runpath=no
16491 save_LDFLAGS=$LDFLAGS
16492 save_libdir=$libdir
16493 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16494 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016496/* end confdefs.h. */
16497
16498int
16499main ()
16500{
16501
16502 ;
16503 return 0;
16504}
16505_ACEOF
16506if ac_fn_c_try_link "$LINENO"; then :
16507 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016508 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016509fi
16510fi
16511rm -f core conftest.err conftest.$ac_objext \
16512 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016513 LDFLAGS=$save_LDFLAGS
16514 libdir=$save_libdir
16515
16516fi
16517
16518 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016519
16520 # This implies no fast_install, which is unacceptable.
16521 # Some rework will be needed to allow for fast_install
16522 # before this can be enabled.
16523 hardcode_into_libs=yes
16524
16525 # Add ABI-specific directories to the system library path.
16526 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16527
16528 # Append ld.so.conf contents to the search path
16529 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016530 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 +000016531 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016532
cristy73bd4a52010-10-05 11:24:23 +000016533 fi
16534
16535 # We used to test for /lib/ld.so.1 and disable shared libraries on
16536 # powerpc, because MkLinux only supported shared libraries with the
16537 # GNU dynamic linker. Since this was broken with cross compilers,
16538 # most powerpc-linux boxes support dynamic linking these days and
16539 # people can always --disable-shared, the test was removed, and we
16540 # assume the GNU/Linux dynamic linker is in use.
16541 dynamic_linker='GNU/Linux ld.so'
16542 ;;
16543
16544netbsd*)
16545 version_type=sunos
16546 need_lib_prefix=no
16547 need_version=no
16548 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16551 dynamic_linker='NetBSD (a.out) ld.so'
16552 else
16553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16554 soname_spec='${libname}${release}${shared_ext}$major'
16555 dynamic_linker='NetBSD ld.elf_so'
16556 fi
16557 shlibpath_var=LD_LIBRARY_PATH
16558 shlibpath_overrides_runpath=yes
16559 hardcode_into_libs=yes
16560 ;;
16561
16562newsos6)
cristy99bd5232011-12-07 14:38:20 +000016563 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16565 shlibpath_var=LD_LIBRARY_PATH
16566 shlibpath_overrides_runpath=yes
16567 ;;
16568
16569*nto* | *qnx*)
16570 version_type=qnx
16571 need_lib_prefix=no
16572 need_version=no
16573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16574 soname_spec='${libname}${release}${shared_ext}$major'
16575 shlibpath_var=LD_LIBRARY_PATH
16576 shlibpath_overrides_runpath=no
16577 hardcode_into_libs=yes
16578 dynamic_linker='ldqnx.so'
16579 ;;
16580
16581openbsd*)
16582 version_type=sunos
16583 sys_lib_dlsearch_path_spec="/usr/lib"
16584 need_lib_prefix=no
16585 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16586 case $host_os in
16587 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16588 *) need_version=no ;;
16589 esac
16590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16592 shlibpath_var=LD_LIBRARY_PATH
16593 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16594 case $host_os in
16595 openbsd2.[89] | openbsd2.[89].*)
16596 shlibpath_overrides_runpath=no
16597 ;;
16598 *)
16599 shlibpath_overrides_runpath=yes
16600 ;;
16601 esac
16602 else
16603 shlibpath_overrides_runpath=yes
16604 fi
16605 ;;
16606
16607os2*)
16608 libname_spec='$name'
16609 shrext_cmds=".dll"
16610 need_lib_prefix=no
16611 library_names_spec='$libname${shared_ext} $libname.a'
16612 dynamic_linker='OS/2 ld.exe'
16613 shlibpath_var=LIBPATH
16614 ;;
16615
16616osf3* | osf4* | osf5*)
16617 version_type=osf
16618 need_lib_prefix=no
16619 need_version=no
16620 soname_spec='${libname}${release}${shared_ext}$major'
16621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16622 shlibpath_var=LD_LIBRARY_PATH
16623 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16624 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16625 ;;
16626
16627rdos*)
16628 dynamic_linker=no
16629 ;;
16630
16631solaris*)
cristy99bd5232011-12-07 14:38:20 +000016632 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016633 need_lib_prefix=no
16634 need_version=no
16635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16636 soname_spec='${libname}${release}${shared_ext}$major'
16637 shlibpath_var=LD_LIBRARY_PATH
16638 shlibpath_overrides_runpath=yes
16639 hardcode_into_libs=yes
16640 # ldd complains unless libraries are executable
16641 postinstall_cmds='chmod +x $lib'
16642 ;;
16643
16644sunos4*)
16645 version_type=sunos
16646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16647 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16648 shlibpath_var=LD_LIBRARY_PATH
16649 shlibpath_overrides_runpath=yes
16650 if test "$with_gnu_ld" = yes; then
16651 need_lib_prefix=no
16652 fi
16653 need_version=yes
16654 ;;
16655
16656sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016657 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16659 soname_spec='${libname}${release}${shared_ext}$major'
16660 shlibpath_var=LD_LIBRARY_PATH
16661 case $host_vendor in
16662 sni)
16663 shlibpath_overrides_runpath=no
16664 need_lib_prefix=no
16665 runpath_var=LD_RUN_PATH
16666 ;;
16667 siemens)
16668 need_lib_prefix=no
16669 ;;
16670 motorola)
16671 need_lib_prefix=no
16672 need_version=no
16673 shlibpath_overrides_runpath=no
16674 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16675 ;;
16676 esac
16677 ;;
16678
16679sysv4*MP*)
16680 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016681 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016682 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16683 soname_spec='$libname${shared_ext}.$major'
16684 shlibpath_var=LD_LIBRARY_PATH
16685 fi
16686 ;;
16687
16688sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16689 version_type=freebsd-elf
16690 need_lib_prefix=no
16691 need_version=no
16692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16693 soname_spec='${libname}${release}${shared_ext}$major'
16694 shlibpath_var=LD_LIBRARY_PATH
16695 shlibpath_overrides_runpath=yes
16696 hardcode_into_libs=yes
16697 if test "$with_gnu_ld" = yes; then
16698 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16699 else
16700 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16701 case $host_os in
16702 sco3.2v5*)
16703 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16704 ;;
16705 esac
16706 fi
16707 sys_lib_dlsearch_path_spec='/usr/lib'
16708 ;;
16709
16710tpf*)
16711 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016712 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016713 need_lib_prefix=no
16714 need_version=no
16715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16716 shlibpath_var=LD_LIBRARY_PATH
16717 shlibpath_overrides_runpath=no
16718 hardcode_into_libs=yes
16719 ;;
16720
16721uts4*)
cristy99bd5232011-12-07 14:38:20 +000016722 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16724 soname_spec='${libname}${release}${shared_ext}$major'
16725 shlibpath_var=LD_LIBRARY_PATH
16726 ;;
16727
16728*)
16729 dynamic_linker=no
16730 ;;
16731esac
16732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16733$as_echo "$dynamic_linker" >&6; }
16734test "$dynamic_linker" = no && can_build_shared=no
16735
16736variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16737if test "$GCC" = yes; then
16738 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16739fi
16740
16741if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16742 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16743fi
16744if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16745 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16746fi
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
16828
16829
16830
16831
16832
16833
cristy0c60a692010-11-04 01:09:47 +000016834
16835
16836
16837
16838
cristy73bd4a52010-10-05 11:24:23 +000016839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16840$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16841hardcode_action=
16842if test -n "$hardcode_libdir_flag_spec" ||
16843 test -n "$runpath_var" ||
16844 test "X$hardcode_automatic" = "Xyes" ; then
16845
16846 # We can hardcode non-existent directories.
16847 if test "$hardcode_direct" != no &&
16848 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16849 # have to relink, otherwise we might link with an installed library
16850 # when we should be linking with a yet-to-be-installed one
16851 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16852 test "$hardcode_minus_L" != no; then
16853 # Linking always hardcodes the temporary library directory.
16854 hardcode_action=relink
16855 else
16856 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16857 hardcode_action=immediate
16858 fi
16859else
16860 # We cannot hardcode anything, or else we can only hardcode existing
16861 # directories.
16862 hardcode_action=unsupported
16863fi
16864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16865$as_echo "$hardcode_action" >&6; }
16866
16867if test "$hardcode_action" = relink ||
16868 test "$inherit_rpath" = yes; then
16869 # Fast installation is not supported
16870 enable_fast_install=no
16871elif test "$shlibpath_overrides_runpath" = yes ||
16872 test "$enable_shared" = no; then
16873 # Fast installation is not necessary
16874 enable_fast_install=needless
16875fi
16876
16877
16878
16879
16880
16881
16882 if test "x$enable_dlopen" != xyes; then
16883 enable_dlopen=unknown
16884 enable_dlopen_self=unknown
16885 enable_dlopen_self_static=unknown
16886else
16887 lt_cv_dlopen=no
16888 lt_cv_dlopen_libs=
16889
16890 case $host_os in
16891 beos*)
16892 lt_cv_dlopen="load_add_on"
16893 lt_cv_dlopen_libs=
16894 lt_cv_dlopen_self=yes
16895 ;;
16896
16897 mingw* | pw32* | cegcc*)
16898 lt_cv_dlopen="LoadLibrary"
16899 lt_cv_dlopen_libs=
16900 ;;
16901
16902 cygwin*)
16903 lt_cv_dlopen="dlopen"
16904 lt_cv_dlopen_libs=
16905 ;;
16906
16907 darwin*)
16908 # if libdl is installed we need to link against it
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16910$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016911if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016912 $as_echo_n "(cached) " >&6
16913else
16914 ac_check_lib_save_LIBS=$LIBS
16915LIBS="-ldl $LIBS"
16916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16917/* end confdefs.h. */
16918
16919/* Override any GCC internal prototype to avoid an error.
16920 Use char because int might match the return type of a GCC
16921 builtin and then its argument prototype would still apply. */
16922#ifdef __cplusplus
16923extern "C"
16924#endif
16925char dlopen ();
16926int
16927main ()
16928{
16929return dlopen ();
16930 ;
16931 return 0;
16932}
16933_ACEOF
16934if ac_fn_c_try_link "$LINENO"; then :
16935 ac_cv_lib_dl_dlopen=yes
16936else
16937 ac_cv_lib_dl_dlopen=no
16938fi
16939rm -f core conftest.err conftest.$ac_objext \
16940 conftest$ac_exeext conftest.$ac_ext
16941LIBS=$ac_check_lib_save_LIBS
16942fi
16943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16944$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016945if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016946 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16947else
16948
16949 lt_cv_dlopen="dyld"
16950 lt_cv_dlopen_libs=
16951 lt_cv_dlopen_self=yes
16952
16953fi
16954
16955 ;;
16956
16957 *)
16958 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016959if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016960 lt_cv_dlopen="shl_load"
16961else
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16963$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016964if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016965 $as_echo_n "(cached) " >&6
16966else
16967 ac_check_lib_save_LIBS=$LIBS
16968LIBS="-ldld $LIBS"
16969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16970/* end confdefs.h. */
16971
16972/* Override any GCC internal prototype to avoid an error.
16973 Use char because int might match the return type of a GCC
16974 builtin and then its argument prototype would still apply. */
16975#ifdef __cplusplus
16976extern "C"
16977#endif
16978char shl_load ();
16979int
16980main ()
16981{
16982return shl_load ();
16983 ;
16984 return 0;
16985}
16986_ACEOF
16987if ac_fn_c_try_link "$LINENO"; then :
16988 ac_cv_lib_dld_shl_load=yes
16989else
16990 ac_cv_lib_dld_shl_load=no
16991fi
16992rm -f core conftest.err conftest.$ac_objext \
16993 conftest$ac_exeext conftest.$ac_ext
16994LIBS=$ac_check_lib_save_LIBS
16995fi
16996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16997$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016998if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016999 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17000else
17001 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017002if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017003 lt_cv_dlopen="dlopen"
17004else
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17006$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017007if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017008 $as_echo_n "(cached) " >&6
17009else
17010 ac_check_lib_save_LIBS=$LIBS
17011LIBS="-ldl $LIBS"
17012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17013/* end confdefs.h. */
17014
17015/* Override any GCC internal prototype to avoid an error.
17016 Use char because int might match the return type of a GCC
17017 builtin and then its argument prototype would still apply. */
17018#ifdef __cplusplus
17019extern "C"
17020#endif
17021char dlopen ();
17022int
17023main ()
17024{
17025return dlopen ();
17026 ;
17027 return 0;
17028}
17029_ACEOF
17030if ac_fn_c_try_link "$LINENO"; then :
17031 ac_cv_lib_dl_dlopen=yes
17032else
17033 ac_cv_lib_dl_dlopen=no
17034fi
17035rm -f core conftest.err conftest.$ac_objext \
17036 conftest$ac_exeext conftest.$ac_ext
17037LIBS=$ac_check_lib_save_LIBS
17038fi
17039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17040$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017041if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017042 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17043else
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17045$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017046if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017047 $as_echo_n "(cached) " >&6
17048else
17049 ac_check_lib_save_LIBS=$LIBS
17050LIBS="-lsvld $LIBS"
17051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17052/* end confdefs.h. */
17053
17054/* Override any GCC internal prototype to avoid an error.
17055 Use char because int might match the return type of a GCC
17056 builtin and then its argument prototype would still apply. */
17057#ifdef __cplusplus
17058extern "C"
17059#endif
17060char dlopen ();
17061int
17062main ()
17063{
17064return dlopen ();
17065 ;
17066 return 0;
17067}
17068_ACEOF
17069if ac_fn_c_try_link "$LINENO"; then :
17070 ac_cv_lib_svld_dlopen=yes
17071else
17072 ac_cv_lib_svld_dlopen=no
17073fi
17074rm -f core conftest.err conftest.$ac_objext \
17075 conftest$ac_exeext conftest.$ac_ext
17076LIBS=$ac_check_lib_save_LIBS
17077fi
17078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17079$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017080if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017081 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17082else
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17084$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017085if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017086 $as_echo_n "(cached) " >&6
17087else
17088 ac_check_lib_save_LIBS=$LIBS
17089LIBS="-ldld $LIBS"
17090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17091/* end confdefs.h. */
17092
17093/* Override any GCC internal prototype to avoid an error.
17094 Use char because int might match the return type of a GCC
17095 builtin and then its argument prototype would still apply. */
17096#ifdef __cplusplus
17097extern "C"
17098#endif
17099char dld_link ();
17100int
17101main ()
17102{
17103return dld_link ();
17104 ;
17105 return 0;
17106}
17107_ACEOF
17108if ac_fn_c_try_link "$LINENO"; then :
17109 ac_cv_lib_dld_dld_link=yes
17110else
17111 ac_cv_lib_dld_dld_link=no
17112fi
17113rm -f core conftest.err conftest.$ac_objext \
17114 conftest$ac_exeext conftest.$ac_ext
17115LIBS=$ac_check_lib_save_LIBS
17116fi
17117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17118$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017119if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017120 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17121fi
17122
17123
17124fi
17125
17126
17127fi
17128
17129
17130fi
17131
17132
17133fi
17134
17135
17136fi
17137
17138 ;;
17139 esac
17140
17141 if test "x$lt_cv_dlopen" != xno; then
17142 enable_dlopen=yes
17143 else
17144 enable_dlopen=no
17145 fi
17146
17147 case $lt_cv_dlopen in
17148 dlopen)
17149 save_CPPFLAGS="$CPPFLAGS"
17150 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17151
17152 save_LDFLAGS="$LDFLAGS"
17153 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17154
17155 save_LIBS="$LIBS"
17156 LIBS="$lt_cv_dlopen_libs $LIBS"
17157
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17159$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017160if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017161 $as_echo_n "(cached) " >&6
17162else
17163 if test "$cross_compiling" = yes; then :
17164 lt_cv_dlopen_self=cross
17165else
17166 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17167 lt_status=$lt_dlunknown
17168 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017169#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017170#include "confdefs.h"
17171
17172#if HAVE_DLFCN_H
17173#include <dlfcn.h>
17174#endif
17175
17176#include <stdio.h>
17177
17178#ifdef RTLD_GLOBAL
17179# define LT_DLGLOBAL RTLD_GLOBAL
17180#else
17181# ifdef DL_GLOBAL
17182# define LT_DLGLOBAL DL_GLOBAL
17183# else
17184# define LT_DLGLOBAL 0
17185# endif
17186#endif
17187
17188/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17189 find out it does not work in some platform. */
17190#ifndef LT_DLLAZY_OR_NOW
17191# ifdef RTLD_LAZY
17192# define LT_DLLAZY_OR_NOW RTLD_LAZY
17193# else
17194# ifdef DL_LAZY
17195# define LT_DLLAZY_OR_NOW DL_LAZY
17196# else
17197# ifdef RTLD_NOW
17198# define LT_DLLAZY_OR_NOW RTLD_NOW
17199# else
17200# ifdef DL_NOW
17201# define LT_DLLAZY_OR_NOW DL_NOW
17202# else
17203# define LT_DLLAZY_OR_NOW 0
17204# endif
17205# endif
17206# endif
17207# endif
17208#endif
17209
cristy0c60a692010-11-04 01:09:47 +000017210/* When -fvisbility=hidden is used, assume the code has been annotated
17211 correspondingly for the symbols needed. */
17212#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017213int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017214#endif
17215
cristyda16f162011-02-19 23:52:17 +000017216int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017217int main ()
17218{
17219 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17220 int status = $lt_dlunknown;
17221
17222 if (self)
17223 {
17224 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017225 else
17226 {
17227 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17228 else puts (dlerror ());
17229 }
cristy73bd4a52010-10-05 11:24:23 +000017230 /* dlclose (self); */
17231 }
17232 else
17233 puts (dlerror ());
17234
17235 return status;
17236}
17237_LT_EOF
17238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17239 (eval $ac_link) 2>&5
17240 ac_status=$?
17241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17242 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17243 (./conftest; exit; ) >&5 2>/dev/null
17244 lt_status=$?
17245 case x$lt_status in
17246 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17247 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17248 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17249 esac
17250 else :
17251 # compilation failed
17252 lt_cv_dlopen_self=no
17253 fi
17254fi
17255rm -fr conftest*
17256
17257
17258fi
17259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17260$as_echo "$lt_cv_dlopen_self" >&6; }
17261
17262 if test "x$lt_cv_dlopen_self" = xyes; then
17263 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17265$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017266if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017267 $as_echo_n "(cached) " >&6
17268else
17269 if test "$cross_compiling" = yes; then :
17270 lt_cv_dlopen_self_static=cross
17271else
17272 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17273 lt_status=$lt_dlunknown
17274 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017275#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017276#include "confdefs.h"
17277
17278#if HAVE_DLFCN_H
17279#include <dlfcn.h>
17280#endif
17281
17282#include <stdio.h>
17283
17284#ifdef RTLD_GLOBAL
17285# define LT_DLGLOBAL RTLD_GLOBAL
17286#else
17287# ifdef DL_GLOBAL
17288# define LT_DLGLOBAL DL_GLOBAL
17289# else
17290# define LT_DLGLOBAL 0
17291# endif
17292#endif
17293
17294/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17295 find out it does not work in some platform. */
17296#ifndef LT_DLLAZY_OR_NOW
17297# ifdef RTLD_LAZY
17298# define LT_DLLAZY_OR_NOW RTLD_LAZY
17299# else
17300# ifdef DL_LAZY
17301# define LT_DLLAZY_OR_NOW DL_LAZY
17302# else
17303# ifdef RTLD_NOW
17304# define LT_DLLAZY_OR_NOW RTLD_NOW
17305# else
17306# ifdef DL_NOW
17307# define LT_DLLAZY_OR_NOW DL_NOW
17308# else
17309# define LT_DLLAZY_OR_NOW 0
17310# endif
17311# endif
17312# endif
17313# endif
17314#endif
17315
cristy0c60a692010-11-04 01:09:47 +000017316/* When -fvisbility=hidden is used, assume the code has been annotated
17317 correspondingly for the symbols needed. */
17318#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017319int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017320#endif
17321
cristyda16f162011-02-19 23:52:17 +000017322int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017323int main ()
17324{
17325 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17326 int status = $lt_dlunknown;
17327
17328 if (self)
17329 {
17330 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017331 else
17332 {
17333 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17334 else puts (dlerror ());
17335 }
cristy73bd4a52010-10-05 11:24:23 +000017336 /* dlclose (self); */
17337 }
17338 else
17339 puts (dlerror ());
17340
17341 return status;
17342}
17343_LT_EOF
17344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17345 (eval $ac_link) 2>&5
17346 ac_status=$?
17347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17348 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17349 (./conftest; exit; ) >&5 2>/dev/null
17350 lt_status=$?
17351 case x$lt_status in
17352 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17353 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17354 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17355 esac
17356 else :
17357 # compilation failed
17358 lt_cv_dlopen_self_static=no
17359 fi
17360fi
17361rm -fr conftest*
17362
17363
17364fi
17365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17366$as_echo "$lt_cv_dlopen_self_static" >&6; }
17367 fi
17368
17369 CPPFLAGS="$save_CPPFLAGS"
17370 LDFLAGS="$save_LDFLAGS"
17371 LIBS="$save_LIBS"
17372 ;;
17373 esac
17374
17375 case $lt_cv_dlopen_self in
17376 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17377 *) enable_dlopen_self=unknown ;;
17378 esac
17379
17380 case $lt_cv_dlopen_self_static in
17381 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17382 *) enable_dlopen_self_static=unknown ;;
17383 esac
17384fi
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402striplib=
17403old_striplib=
17404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17405$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17406if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17407 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17408 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17410$as_echo "yes" >&6; }
17411else
17412# FIXME - insert some real tests, host_os isn't really good enough
17413 case $host_os in
17414 darwin*)
17415 if test -n "$STRIP" ; then
17416 striplib="$STRIP -x"
17417 old_striplib="$STRIP -S"
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17419$as_echo "yes" >&6; }
17420 else
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17422$as_echo "no" >&6; }
17423 fi
17424 ;;
17425 *)
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17427$as_echo "no" >&6; }
17428 ;;
17429 esac
17430fi
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443 # Report which library types will actually be built
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17445$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17447$as_echo "$can_build_shared" >&6; }
17448
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17450$as_echo_n "checking whether to build shared libraries... " >&6; }
17451 test "$can_build_shared" = "no" && enable_shared=no
17452
17453 # On AIX, shared libraries and static libraries use the same namespace, and
17454 # are all built from PIC.
17455 case $host_os in
17456 aix3*)
17457 test "$enable_shared" = yes && enable_static=no
17458 if test -n "$RANLIB"; then
17459 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17460 postinstall_cmds='$RANLIB $lib'
17461 fi
17462 ;;
17463
17464 aix[4-9]*)
17465 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17466 test "$enable_shared" = yes && enable_static=no
17467 fi
17468 ;;
17469 esac
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17471$as_echo "$enable_shared" >&6; }
17472
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17474$as_echo_n "checking whether to build static libraries... " >&6; }
17475 # Make sure either enable_shared or enable_static is yes.
17476 test "$enable_shared" = yes || enable_static=yes
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17478$as_echo "$enable_static" >&6; }
17479
17480
17481
17482
17483fi
17484ac_ext=c
17485ac_cpp='$CPP $CPPFLAGS'
17486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17488ac_compiler_gnu=$ac_cv_c_compiler_gnu
17489
17490CC="$lt_save_CC"
17491
cristy0c60a692010-11-04 01:09:47 +000017492 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17493 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17494 (test "X$CXX" != "Xg++"))) ; then
17495 ac_ext=cpp
17496ac_cpp='$CXXCPP $CPPFLAGS'
17497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17501$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17502if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017503 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017504 $as_echo_n "(cached) " >&6
17505else
17506 # Double quotes because CXXCPP needs to be expanded
17507 for CXXCPP in "$CXX -E" "/lib/cpp"
17508 do
17509 ac_preproc_ok=false
17510for ac_cxx_preproc_warn_flag in '' yes
17511do
17512 # Use a header file that comes with gcc, so configuring glibc
17513 # with a fresh cross-compiler works.
17514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17515 # <limits.h> exists even on freestanding compilers.
17516 # On the NeXT, cc -E runs the code through the compiler's parser,
17517 # not just through cpp. "Syntax error" is here to catch this case.
17518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17519/* end confdefs.h. */
17520#ifdef __STDC__
17521# include <limits.h>
17522#else
17523# include <assert.h>
17524#endif
17525 Syntax error
17526_ACEOF
17527if ac_fn_cxx_try_cpp "$LINENO"; then :
17528
17529else
17530 # Broken: fails on valid input.
17531continue
17532fi
cristyda16f162011-02-19 23:52:17 +000017533rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017534
17535 # OK, works on sane cases. Now check whether nonexistent headers
17536 # can be detected and how.
17537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17538/* end confdefs.h. */
17539#include <ac_nonexistent.h>
17540_ACEOF
17541if ac_fn_cxx_try_cpp "$LINENO"; then :
17542 # Broken: success on invalid input.
17543continue
17544else
17545 # Passes both tests.
17546ac_preproc_ok=:
17547break
17548fi
cristyda16f162011-02-19 23:52:17 +000017549rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017550
17551done
17552# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017553rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017554if $ac_preproc_ok; then :
17555 break
17556fi
17557
17558 done
17559 ac_cv_prog_CXXCPP=$CXXCPP
17560
17561fi
17562 CXXCPP=$ac_cv_prog_CXXCPP
17563else
17564 ac_cv_prog_CXXCPP=$CXXCPP
17565fi
17566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17567$as_echo "$CXXCPP" >&6; }
17568ac_preproc_ok=false
17569for ac_cxx_preproc_warn_flag in '' yes
17570do
17571 # Use a header file that comes with gcc, so configuring glibc
17572 # with a fresh cross-compiler works.
17573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17574 # <limits.h> exists even on freestanding compilers.
17575 # On the NeXT, cc -E runs the code through the compiler's parser,
17576 # not just through cpp. "Syntax error" is here to catch this case.
17577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17578/* end confdefs.h. */
17579#ifdef __STDC__
17580# include <limits.h>
17581#else
17582# include <assert.h>
17583#endif
17584 Syntax error
17585_ACEOF
17586if ac_fn_cxx_try_cpp "$LINENO"; then :
17587
17588else
17589 # Broken: fails on valid input.
17590continue
17591fi
cristyda16f162011-02-19 23:52:17 +000017592rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017593
17594 # OK, works on sane cases. Now check whether nonexistent headers
17595 # can be detected and how.
17596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17597/* end confdefs.h. */
17598#include <ac_nonexistent.h>
17599_ACEOF
17600if ac_fn_cxx_try_cpp "$LINENO"; then :
17601 # Broken: success on invalid input.
17602continue
17603else
17604 # Passes both tests.
17605ac_preproc_ok=:
17606break
17607fi
cristyda16f162011-02-19 23:52:17 +000017608rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017609
17610done
17611# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017612rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017613if $ac_preproc_ok; then :
17614
17615else
17616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17618as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17619See \`config.log' for more details" "$LINENO" 5; }
17620fi
17621
17622ac_ext=c
17623ac_cpp='$CPP $CPPFLAGS'
17624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17626ac_compiler_gnu=$ac_cv_c_compiler_gnu
17627
17628else
17629 _lt_caught_CXX_error=yes
17630fi
cristy73bd4a52010-10-05 11:24:23 +000017631
17632ac_ext=cpp
17633ac_cpp='$CXXCPP $CPPFLAGS'
17634ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17635ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17636ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17637
17638archive_cmds_need_lc_CXX=no
17639allow_undefined_flag_CXX=
17640always_export_symbols_CXX=no
17641archive_expsym_cmds_CXX=
17642compiler_needs_object_CXX=no
17643export_dynamic_flag_spec_CXX=
17644hardcode_direct_CXX=no
17645hardcode_direct_absolute_CXX=no
17646hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017647hardcode_libdir_separator_CXX=
17648hardcode_minus_L_CXX=no
17649hardcode_shlibpath_var_CXX=unsupported
17650hardcode_automatic_CXX=no
17651inherit_rpath_CXX=no
17652module_cmds_CXX=
17653module_expsym_cmds_CXX=
17654link_all_deplibs_CXX=unknown
17655old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017656reload_flag_CXX=$reload_flag
17657reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017658no_undefined_flag_CXX=
17659whole_archive_flag_spec_CXX=
17660enable_shared_with_static_runtimes_CXX=no
17661
17662# Source file extension for C++ test sources.
17663ac_ext=cpp
17664
17665# Object file extension for compiled C++ test sources.
17666objext=o
17667objext_CXX=$objext
17668
17669# No sense in running all these tests if we already determined that
17670# the CXX compiler isn't working. Some variables (like enable_shared)
17671# are currently assumed to apply to all compilers on this platform,
17672# and will be corrupted by setting them based on a non-working compiler.
17673if test "$_lt_caught_CXX_error" != yes; then
17674 # Code to be used in simple compile tests
17675 lt_simple_compile_test_code="int some_variable = 0;"
17676
17677 # Code to be used in simple link tests
17678 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17679
17680 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17681
17682
17683
17684
17685
17686
17687# If no C compiler was specified, use CC.
17688LTCC=${LTCC-"$CC"}
17689
17690# If no C compiler flags were specified, use CFLAGS.
17691LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17692
17693# Allow CC to be a program name with arguments.
17694compiler=$CC
17695
17696
17697 # save warnings/boilerplate of simple test code
17698 ac_outfile=conftest.$ac_objext
17699echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17700eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17701_lt_compiler_boilerplate=`cat conftest.err`
17702$RM conftest*
17703
17704 ac_outfile=conftest.$ac_objext
17705echo "$lt_simple_link_test_code" >conftest.$ac_ext
17706eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17707_lt_linker_boilerplate=`cat conftest.err`
17708$RM -r conftest*
17709
17710
17711 # Allow CC to be a program name with arguments.
17712 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017713 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017714 lt_save_LD=$LD
17715 lt_save_GCC=$GCC
17716 GCC=$GXX
17717 lt_save_with_gnu_ld=$with_gnu_ld
17718 lt_save_path_LD=$lt_cv_path_LD
17719 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17720 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17721 else
17722 $as_unset lt_cv_prog_gnu_ld
17723 fi
17724 if test -n "${lt_cv_path_LDCXX+set}"; then
17725 lt_cv_path_LD=$lt_cv_path_LDCXX
17726 else
17727 $as_unset lt_cv_path_LD
17728 fi
17729 test -z "${LDCXX+set}" || LD=$LDCXX
17730 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017731 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017732 compiler=$CC
17733 compiler_CXX=$CC
17734 for cc_temp in $compiler""; do
17735 case $cc_temp in
17736 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17737 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17738 \-*) ;;
17739 *) break;;
17740 esac
17741done
cristy0c60a692010-11-04 01:09:47 +000017742cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017743
17744
17745 if test -n "$compiler"; then
17746 # We don't want -fno-exception when compiling C++ code, so set the
17747 # no_builtin_flag separately
17748 if test "$GXX" = yes; then
17749 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17750 else
17751 lt_prog_compiler_no_builtin_flag_CXX=
17752 fi
17753
17754 if test "$GXX" = yes; then
17755 # Set up default GNU C++ configuration
17756
17757
17758
17759# Check whether --with-gnu-ld was given.
17760if test "${with_gnu_ld+set}" = set; then :
17761 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17762else
17763 with_gnu_ld=no
17764fi
17765
17766ac_prog=ld
17767if test "$GCC" = yes; then
17768 # Check if gcc -print-prog-name=ld gives a path.
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17770$as_echo_n "checking for ld used by $CC... " >&6; }
17771 case $host in
17772 *-*-mingw*)
17773 # gcc leaves a trailing carriage return which upsets mingw
17774 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17775 *)
17776 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17777 esac
17778 case $ac_prog in
17779 # Accept absolute paths.
17780 [\\/]* | ?:[\\/]*)
17781 re_direlt='/[^/][^/]*/\.\./'
17782 # Canonicalize the pathname of ld
17783 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17784 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17785 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17786 done
17787 test -z "$LD" && LD="$ac_prog"
17788 ;;
17789 "")
17790 # If it fails, then pretend we aren't using GCC.
17791 ac_prog=ld
17792 ;;
17793 *)
17794 # If it is relative, then search for the first ld in PATH.
17795 with_gnu_ld=unknown
17796 ;;
17797 esac
17798elif test "$with_gnu_ld" = yes; then
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17800$as_echo_n "checking for GNU ld... " >&6; }
17801else
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17803$as_echo_n "checking for non-GNU ld... " >&6; }
17804fi
cristyda16f162011-02-19 23:52:17 +000017805if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017806 $as_echo_n "(cached) " >&6
17807else
17808 if test -z "$LD"; then
17809 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17810 for ac_dir in $PATH; do
17811 IFS="$lt_save_ifs"
17812 test -z "$ac_dir" && ac_dir=.
17813 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17814 lt_cv_path_LD="$ac_dir/$ac_prog"
17815 # Check to see if the program is GNU ld. I'd rather use --version,
17816 # but apparently some variants of GNU ld only accept -v.
17817 # Break only if it was the GNU/non-GNU ld that we prefer.
17818 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17819 *GNU* | *'with BFD'*)
17820 test "$with_gnu_ld" != no && break
17821 ;;
17822 *)
17823 test "$with_gnu_ld" != yes && break
17824 ;;
17825 esac
17826 fi
17827 done
17828 IFS="$lt_save_ifs"
17829else
17830 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17831fi
17832fi
17833
17834LD="$lt_cv_path_LD"
17835if test -n "$LD"; then
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17837$as_echo "$LD" >&6; }
17838else
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17840$as_echo "no" >&6; }
17841fi
cristy98dddb52010-11-04 00:30:15 +000017842test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17844$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017845if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017846 $as_echo_n "(cached) " >&6
17847else
17848 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17849case `$LD -v 2>&1 </dev/null` in
17850*GNU* | *'with BFD'*)
17851 lt_cv_prog_gnu_ld=yes
17852 ;;
17853*)
17854 lt_cv_prog_gnu_ld=no
17855 ;;
17856esac
17857fi
17858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17859$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17860with_gnu_ld=$lt_cv_prog_gnu_ld
17861
17862
17863
17864
17865
17866
17867
17868 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17869 # archiving commands below assume that GNU ld is being used.
17870 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017871 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17872 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 +000017873
17874 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17875 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17876
17877 # If archive_cmds runs LD, not CC, wlarc should be empty
17878 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17879 # investigate it a little bit more. (MM)
17880 wlarc='${wl}'
17881
17882 # ancient GNU ld didn't support --whole-archive et. al.
17883 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17884 $GREP 'no-whole-archive' > /dev/null; then
17885 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17886 else
17887 whole_archive_flag_spec_CXX=
17888 fi
17889 else
17890 with_gnu_ld=no
17891 wlarc=
17892
17893 # A generic and very simple default shared library creation
17894 # command for GNU C++ for the case where it uses the native
17895 # linker, instead of GNU ld. If possible, this setting should
17896 # overridden to take advantage of the native linker features on
17897 # the platform it is being used on.
17898 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17899 fi
17900
17901 # Commands to make compiler produce verbose output that lists
17902 # what "hidden" libraries, object files and flags are used when
17903 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017904 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017905
17906 else
17907 GXX=no
17908 with_gnu_ld=no
17909 wlarc=
17910 fi
17911
17912 # PORTME: fill in a description of your system's C++ link characteristics
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17914$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17915 ld_shlibs_CXX=yes
17916 case $host_os in
17917 aix3*)
17918 # FIXME: insert proper C++ library support
17919 ld_shlibs_CXX=no
17920 ;;
17921 aix[4-9]*)
17922 if test "$host_cpu" = ia64; then
17923 # On IA64, the linker does run time linking by default, so we don't
17924 # have to do anything special.
17925 aix_use_runtimelinking=no
17926 exp_sym_flag='-Bexport'
17927 no_entry_flag=""
17928 else
17929 aix_use_runtimelinking=no
17930
17931 # Test if we are trying to use run time linking or normal
17932 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17933 # need to do runtime linking.
17934 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17935 for ld_flag in $LDFLAGS; do
17936 case $ld_flag in
17937 *-brtl*)
17938 aix_use_runtimelinking=yes
17939 break
17940 ;;
17941 esac
17942 done
17943 ;;
17944 esac
17945
17946 exp_sym_flag='-bexport'
17947 no_entry_flag='-bnoentry'
17948 fi
17949
17950 # When large executables or shared objects are built, AIX ld can
17951 # have problems creating the table of contents. If linking a library
17952 # or program results in "error TOC overflow" add -mminimal-toc to
17953 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17954 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17955
17956 archive_cmds_CXX=''
17957 hardcode_direct_CXX=yes
17958 hardcode_direct_absolute_CXX=yes
17959 hardcode_libdir_separator_CXX=':'
17960 link_all_deplibs_CXX=yes
17961 file_list_spec_CXX='${wl}-f,'
17962
17963 if test "$GXX" = yes; then
17964 case $host_os in aix4.[012]|aix4.[012].*)
17965 # We only want to do this on AIX 4.2 and lower, the check
17966 # below for broken collect2 doesn't work under 4.3+
17967 collect2name=`${CC} -print-prog-name=collect2`
17968 if test -f "$collect2name" &&
17969 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17970 then
17971 # We have reworked collect2
17972 :
17973 else
17974 # We have old collect2
17975 hardcode_direct_CXX=unsupported
17976 # It fails to find uninstalled libraries when the uninstalled
17977 # path is not listed in the libpath. Setting hardcode_minus_L
17978 # to unsupported forces relinking
17979 hardcode_minus_L_CXX=yes
17980 hardcode_libdir_flag_spec_CXX='-L$libdir'
17981 hardcode_libdir_separator_CXX=
17982 fi
17983 esac
17984 shared_flag='-shared'
17985 if test "$aix_use_runtimelinking" = yes; then
17986 shared_flag="$shared_flag "'${wl}-G'
17987 fi
17988 else
17989 # not using gcc
17990 if test "$host_cpu" = ia64; then
17991 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17992 # chokes on -Wl,-G. The following line is correct:
17993 shared_flag='-G'
17994 else
17995 if test "$aix_use_runtimelinking" = yes; then
17996 shared_flag='${wl}-G'
17997 else
17998 shared_flag='${wl}-bM:SRE'
17999 fi
18000 fi
18001 fi
18002
18003 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18004 # It seems that -bexpall does not export symbols beginning with
18005 # underscore (_), so it is better to generate a list of symbols to
18006 # export.
18007 always_export_symbols_CXX=yes
18008 if test "$aix_use_runtimelinking" = yes; then
18009 # Warning - without using the other runtime loading flags (-brtl),
18010 # -berok will link without error, but may produce a broken library.
18011 allow_undefined_flag_CXX='-berok'
18012 # Determine the default libpath from the value encoded in an empty
18013 # executable.
cristyda16f162011-02-19 23:52:17 +000018014 if test "${lt_cv_aix_libpath+set}" = set; then
18015 aix_libpath=$lt_cv_aix_libpath
18016else
18017 if ${lt_cv_aix_libpath__CXX+:} false; then :
18018 $as_echo_n "(cached) " >&6
18019else
18020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018021/* end confdefs.h. */
18022
18023int
18024main ()
18025{
18026
18027 ;
18028 return 0;
18029}
18030_ACEOF
18031if ac_fn_cxx_try_link "$LINENO"; then :
18032
cristyda16f162011-02-19 23:52:17 +000018033 lt_aix_libpath_sed='
18034 /Import File Strings/,/^$/ {
18035 /^0/ {
18036 s/^0 *\([^ ]*\) *$/\1/
18037 p
18038 }
18039 }'
18040 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18041 # Check for a 64-bit object if we didn't find anything.
18042 if test -z "$lt_cv_aix_libpath__CXX"; then
18043 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18044 fi
cristy73bd4a52010-10-05 11:24:23 +000018045fi
18046rm -f core conftest.err conftest.$ac_objext \
18047 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018048 if test -z "$lt_cv_aix_libpath__CXX"; then
18049 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18050 fi
18051
18052fi
18053
18054 aix_libpath=$lt_cv_aix_libpath__CXX
18055fi
cristy73bd4a52010-10-05 11:24:23 +000018056
18057 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18058
cristy0c60a692010-11-04 01:09:47 +000018059 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 +000018060 else
18061 if test "$host_cpu" = ia64; then
18062 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18063 allow_undefined_flag_CXX="-z nodefs"
18064 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"
18065 else
18066 # Determine the default libpath from the value encoded in an
18067 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018068 if test "${lt_cv_aix_libpath+set}" = set; then
18069 aix_libpath=$lt_cv_aix_libpath
18070else
18071 if ${lt_cv_aix_libpath__CXX+:} false; then :
18072 $as_echo_n "(cached) " >&6
18073else
18074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018075/* end confdefs.h. */
18076
18077int
18078main ()
18079{
18080
18081 ;
18082 return 0;
18083}
18084_ACEOF
18085if ac_fn_cxx_try_link "$LINENO"; then :
18086
cristyda16f162011-02-19 23:52:17 +000018087 lt_aix_libpath_sed='
18088 /Import File Strings/,/^$/ {
18089 /^0/ {
18090 s/^0 *\([^ ]*\) *$/\1/
18091 p
18092 }
18093 }'
18094 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18095 # Check for a 64-bit object if we didn't find anything.
18096 if test -z "$lt_cv_aix_libpath__CXX"; then
18097 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18098 fi
cristy73bd4a52010-10-05 11:24:23 +000018099fi
18100rm -f core conftest.err conftest.$ac_objext \
18101 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018102 if test -z "$lt_cv_aix_libpath__CXX"; then
18103 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18104 fi
18105
18106fi
18107
18108 aix_libpath=$lt_cv_aix_libpath__CXX
18109fi
cristy73bd4a52010-10-05 11:24:23 +000018110
18111 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18112 # Warning - without using the other run time loading flags,
18113 # -berok will link without error, but may produce a broken library.
18114 no_undefined_flag_CXX=' ${wl}-bernotok'
18115 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018116 if test "$with_gnu_ld" = yes; then
18117 # We only use this code for GNU lds that support --whole-archive.
18118 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18119 else
18120 # Exported symbols can be pulled into shared objects from archives
18121 whole_archive_flag_spec_CXX='$convenience'
18122 fi
cristy73bd4a52010-10-05 11:24:23 +000018123 archive_cmds_need_lc_CXX=yes
18124 # This is similar to how AIX traditionally builds its shared
18125 # libraries.
18126 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'
18127 fi
18128 fi
18129 ;;
18130
18131 beos*)
18132 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18133 allow_undefined_flag_CXX=unsupported
18134 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18135 # support --undefined. This deserves some investigation. FIXME
18136 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18137 else
18138 ld_shlibs_CXX=no
18139 fi
18140 ;;
18141
18142 chorus*)
18143 case $cc_basename in
18144 *)
18145 # FIXME: insert proper C++ library support
18146 ld_shlibs_CXX=no
18147 ;;
18148 esac
18149 ;;
18150
18151 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018152 case $GXX,$cc_basename in
18153 ,cl* | no,cl*)
18154 # Native MSVC
18155 # hardcode_libdir_flag_spec is actually meaningless, as there is
18156 # no search path for DLLs.
18157 hardcode_libdir_flag_spec_CXX=' '
18158 allow_undefined_flag_CXX=unsupported
18159 always_export_symbols_CXX=yes
18160 file_list_spec_CXX='@'
18161 # Tell ltmain to make .lib files, not .a files.
18162 libext=lib
18163 # Tell ltmain to make .dll files, not .so files.
18164 shrext_cmds=".dll"
18165 # FIXME: Setting linknames here is a bad hack.
18166 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18167 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18168 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18169 else
18170 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18171 fi~
18172 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18173 linknames='
18174 # The linker will not automatically build a static lib if we build a DLL.
18175 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18176 enable_shared_with_static_runtimes_CXX=yes
18177 # Don't use ranlib
18178 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18179 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18180 lt_tool_outputfile="@TOOL_OUTPUT@"~
18181 case $lt_outputfile in
18182 *.exe|*.EXE) ;;
18183 *)
18184 lt_outputfile="$lt_outputfile.exe"
18185 lt_tool_outputfile="$lt_tool_outputfile.exe"
18186 ;;
18187 esac~
18188 func_to_tool_file "$lt_outputfile"~
18189 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18190 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18191 $RM "$lt_outputfile.manifest";
18192 fi'
18193 ;;
18194 *)
18195 # g++
18196 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18197 # as there is no search path for DLLs.
18198 hardcode_libdir_flag_spec_CXX='-L$libdir'
18199 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18200 allow_undefined_flag_CXX=unsupported
18201 always_export_symbols_CXX=no
18202 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018203
cristyda16f162011-02-19 23:52:17 +000018204 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18205 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'
18206 # If the export-symbols file already is a .def file (1st line
18207 # is EXPORTS), use it as is; otherwise, prepend...
18208 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18209 cp $export_symbols $output_objdir/$soname.def;
18210 else
18211 echo EXPORTS > $output_objdir/$soname.def;
18212 cat $export_symbols >> $output_objdir/$soname.def;
18213 fi~
18214 $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'
18215 else
18216 ld_shlibs_CXX=no
18217 fi
18218 ;;
18219 esac
18220 ;;
cristy73bd4a52010-10-05 11:24:23 +000018221 darwin* | rhapsody*)
18222
18223
18224 archive_cmds_need_lc_CXX=no
18225 hardcode_direct_CXX=no
18226 hardcode_automatic_CXX=yes
18227 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018228 if test "$lt_cv_ld_force_load" = "yes"; then
18229 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 +000018230
cristy0c60a692010-11-04 01:09:47 +000018231 else
18232 whole_archive_flag_spec_CXX=''
18233 fi
cristy73bd4a52010-10-05 11:24:23 +000018234 link_all_deplibs_CXX=yes
18235 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18236 case $cc_basename in
18237 ifort*) _lt_dar_can_shared=yes ;;
18238 *) _lt_dar_can_shared=$GCC ;;
18239 esac
18240 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018241 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018242 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}"
18243 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18244 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}"
18245 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}"
18246 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18247 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}"
18248 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}"
18249 fi
18250
18251 else
18252 ld_shlibs_CXX=no
18253 fi
18254
18255 ;;
18256
18257 dgux*)
18258 case $cc_basename in
18259 ec++*)
18260 # FIXME: insert proper C++ library support
18261 ld_shlibs_CXX=no
18262 ;;
18263 ghcx*)
18264 # Green Hills C++ Compiler
18265 # FIXME: insert proper C++ library support
18266 ld_shlibs_CXX=no
18267 ;;
18268 *)
18269 # FIXME: insert proper C++ library support
18270 ld_shlibs_CXX=no
18271 ;;
18272 esac
18273 ;;
18274
cristy99bd5232011-12-07 14:38:20 +000018275 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018276 # C++ shared libraries reported to be fairly broken before
18277 # switch to ELF
18278 ld_shlibs_CXX=no
18279 ;;
18280
18281 freebsd-elf*)
18282 archive_cmds_need_lc_CXX=no
18283 ;;
18284
18285 freebsd* | dragonfly*)
18286 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18287 # conventions
18288 ld_shlibs_CXX=yes
18289 ;;
18290
18291 gnu*)
18292 ;;
18293
cristy0c60a692010-11-04 01:09:47 +000018294 haiku*)
18295 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18296 link_all_deplibs_CXX=yes
18297 ;;
18298
cristy73bd4a52010-10-05 11:24:23 +000018299 hpux9*)
18300 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18301 hardcode_libdir_separator_CXX=:
18302 export_dynamic_flag_spec_CXX='${wl}-E'
18303 hardcode_direct_CXX=yes
18304 hardcode_minus_L_CXX=yes # Not in the search PATH,
18305 # but as the default
18306 # location of the library.
18307
18308 case $cc_basename in
18309 CC*)
18310 # FIXME: insert proper C++ library support
18311 ld_shlibs_CXX=no
18312 ;;
18313 aCC*)
18314 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'
18315 # Commands to make compiler produce verbose output that lists
18316 # what "hidden" libraries, object files and flags are used when
18317 # linking a shared library.
18318 #
18319 # There doesn't appear to be a way to prevent this compiler from
18320 # explicitly linking system object files so we need to strip them
18321 # from the output so that they don't get included in the library
18322 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018323 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 +000018324 ;;
18325 *)
18326 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018327 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 +000018328 else
18329 # FIXME: insert proper C++ library support
18330 ld_shlibs_CXX=no
18331 fi
18332 ;;
18333 esac
18334 ;;
18335
18336 hpux10*|hpux11*)
18337 if test $with_gnu_ld = no; then
18338 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18339 hardcode_libdir_separator_CXX=:
18340
18341 case $host_cpu in
18342 hppa*64*|ia64*)
18343 ;;
18344 *)
18345 export_dynamic_flag_spec_CXX='${wl}-E'
18346 ;;
18347 esac
18348 fi
18349 case $host_cpu in
18350 hppa*64*|ia64*)
18351 hardcode_direct_CXX=no
18352 hardcode_shlibpath_var_CXX=no
18353 ;;
18354 *)
18355 hardcode_direct_CXX=yes
18356 hardcode_direct_absolute_CXX=yes
18357 hardcode_minus_L_CXX=yes # Not in the search PATH,
18358 # but as the default
18359 # location of the library.
18360 ;;
18361 esac
18362
18363 case $cc_basename in
18364 CC*)
18365 # FIXME: insert proper C++ library support
18366 ld_shlibs_CXX=no
18367 ;;
18368 aCC*)
18369 case $host_cpu in
18370 hppa*64*)
18371 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18372 ;;
18373 ia64*)
18374 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18375 ;;
18376 *)
18377 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18378 ;;
18379 esac
18380 # Commands to make compiler produce verbose output that lists
18381 # what "hidden" libraries, object files and flags are used when
18382 # linking a shared library.
18383 #
18384 # There doesn't appear to be a way to prevent this compiler from
18385 # explicitly linking system object files so we need to strip them
18386 # from the output so that they don't get included in the library
18387 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018388 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 +000018389 ;;
18390 *)
18391 if test "$GXX" = yes; then
18392 if test $with_gnu_ld = no; then
18393 case $host_cpu in
18394 hppa*64*)
18395 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18396 ;;
18397 ia64*)
cristyda16f162011-02-19 23:52:17 +000018398 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 +000018399 ;;
18400 *)
cristyda16f162011-02-19 23:52:17 +000018401 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 +000018402 ;;
18403 esac
18404 fi
18405 else
18406 # FIXME: insert proper C++ library support
18407 ld_shlibs_CXX=no
18408 fi
18409 ;;
18410 esac
18411 ;;
18412
18413 interix[3-9]*)
18414 hardcode_direct_CXX=no
18415 hardcode_shlibpath_var_CXX=no
18416 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18417 export_dynamic_flag_spec_CXX='${wl}-E'
18418 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18419 # Instead, shared libraries are loaded at an image base (0x10000000 by
18420 # default) and relocated if they conflict, which is a slow very memory
18421 # consuming and fragmenting process. To avoid this, we pick a random,
18422 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18423 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18424 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'
18425 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'
18426 ;;
18427 irix5* | irix6*)
18428 case $cc_basename in
18429 CC*)
18430 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018431 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 +000018432
18433 # Archives containing C++ object files must be created using
18434 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18435 # necessary to make sure instantiated templates are included
18436 # in the archive.
18437 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18438 ;;
18439 *)
18440 if test "$GXX" = yes; then
18441 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018442 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 +000018443 else
cristyda16f162011-02-19 23:52:17 +000018444 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 +000018445 fi
18446 fi
18447 link_all_deplibs_CXX=yes
18448 ;;
18449 esac
18450 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18451 hardcode_libdir_separator_CXX=:
18452 inherit_rpath_CXX=yes
18453 ;;
18454
cristy0c60a692010-11-04 01:09:47 +000018455 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018456 case $cc_basename in
18457 KCC*)
18458 # Kuck and Associates, Inc. (KAI) C++ Compiler
18459
18460 # KCC will only create a shared library if the output file
18461 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18462 # to its proper name (with version) after linking.
18463 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'
18464 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'
18465 # Commands to make compiler produce verbose output that lists
18466 # what "hidden" libraries, object files and flags are used when
18467 # linking a shared library.
18468 #
18469 # There doesn't appear to be a way to prevent this compiler from
18470 # explicitly linking system object files so we need to strip them
18471 # from the output so that they don't get included in the library
18472 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018473 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 +000018474
18475 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18476 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18477
18478 # Archives containing C++ object files must be created using
18479 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18480 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18481 ;;
18482 icpc* | ecpc* )
18483 # Intel C++
18484 with_gnu_ld=yes
18485 # version 8.0 and above of icpc choke on multiply defined symbols
18486 # if we add $predep_objects and $postdep_objects, however 7.1 and
18487 # earlier do not add the objects themselves.
18488 case `$CC -V 2>&1` in
18489 *"Version 7."*)
18490 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18491 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'
18492 ;;
18493 *) # Version 8.0 or newer
18494 tmp_idyn=
18495 case $host_cpu in
18496 ia64*) tmp_idyn=' -i_dynamic';;
18497 esac
18498 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18499 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'
18500 ;;
18501 esac
18502 archive_cmds_need_lc_CXX=no
18503 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18504 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18505 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18506 ;;
18507 pgCC* | pgcpp*)
18508 # Portland Group C++ compiler
18509 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018510 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018511 prelink_cmds_CXX='tpldir=Template.dir~
18512 rm -rf $tpldir~
18513 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018514 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018515 old_archive_cmds_CXX='tpldir=Template.dir~
18516 rm -rf $tpldir~
18517 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018518 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018519 $RANLIB $oldlib'
18520 archive_cmds_CXX='tpldir=Template.dir~
18521 rm -rf $tpldir~
18522 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018523 $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 +000018524 archive_expsym_cmds_CXX='tpldir=Template.dir~
18525 rm -rf $tpldir~
18526 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018527 $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 +000018528 ;;
cristy0c60a692010-11-04 01:09:47 +000018529 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018530 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18531 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'
18532 ;;
18533 esac
18534
18535 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18536 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018537 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 +000018538 ;;
18539 cxx*)
18540 # Compaq C++
18541 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18542 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'
18543
18544 runpath_var=LD_RUN_PATH
18545 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18546 hardcode_libdir_separator_CXX=:
18547
18548 # Commands to make compiler produce verbose output that lists
18549 # what "hidden" libraries, object files and flags are used when
18550 # linking a shared library.
18551 #
18552 # There doesn't appear to be a way to prevent this compiler from
18553 # explicitly linking system object files so we need to strip them
18554 # from the output so that they don't get included in the library
18555 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018556 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 +000018557 ;;
cristy0c60a692010-11-04 01:09:47 +000018558 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018559 # IBM XL 8.0 on PPC, with GNU ld
18560 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18561 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18562 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18563 if test "x$supports_anon_versioning" = xyes; then
18564 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18565 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18566 echo "local: *; };" >> $output_objdir/$libname.ver~
18567 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18568 fi
18569 ;;
18570 *)
18571 case `$CC -V 2>&1 | sed 5q` in
18572 *Sun\ C*)
18573 # Sun C++ 5.9
18574 no_undefined_flag_CXX=' -zdefs'
18575 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18576 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'
18577 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018578 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 +000018579 compiler_needs_object_CXX=yes
18580
18581 # Not sure whether something based on
18582 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18583 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018584 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018585
18586 # Archives containing C++ object files must be created using
18587 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18588 # necessary to make sure instantiated templates are included
18589 # in the archive.
18590 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18591 ;;
18592 esac
18593 ;;
18594 esac
18595 ;;
18596
18597 lynxos*)
18598 # FIXME: insert proper C++ library support
18599 ld_shlibs_CXX=no
18600 ;;
18601
18602 m88k*)
18603 # FIXME: insert proper C++ library support
18604 ld_shlibs_CXX=no
18605 ;;
18606
18607 mvs*)
18608 case $cc_basename in
18609 cxx*)
18610 # FIXME: insert proper C++ library support
18611 ld_shlibs_CXX=no
18612 ;;
18613 *)
18614 # FIXME: insert proper C++ library support
18615 ld_shlibs_CXX=no
18616 ;;
18617 esac
18618 ;;
18619
18620 netbsd*)
18621 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18622 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18623 wlarc=
18624 hardcode_libdir_flag_spec_CXX='-R$libdir'
18625 hardcode_direct_CXX=yes
18626 hardcode_shlibpath_var_CXX=no
18627 fi
18628 # Workaround some broken pre-1.5 toolchains
18629 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18630 ;;
18631
18632 *nto* | *qnx*)
18633 ld_shlibs_CXX=yes
18634 ;;
18635
18636 openbsd2*)
18637 # C++ shared libraries are fairly broken
18638 ld_shlibs_CXX=no
18639 ;;
18640
18641 openbsd*)
18642 if test -f /usr/libexec/ld.so; then
18643 hardcode_direct_CXX=yes
18644 hardcode_shlibpath_var_CXX=no
18645 hardcode_direct_absolute_CXX=yes
18646 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18647 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18648 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18649 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18650 export_dynamic_flag_spec_CXX='${wl}-E'
18651 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18652 fi
cristy0c60a692010-11-04 01:09:47 +000018653 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018654 else
18655 ld_shlibs_CXX=no
18656 fi
18657 ;;
18658
18659 osf3* | osf4* | osf5*)
18660 case $cc_basename in
18661 KCC*)
18662 # Kuck and Associates, Inc. (KAI) C++ Compiler
18663
18664 # KCC will only create a shared library if the output file
18665 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18666 # to its proper name (with version) after linking.
18667 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'
18668
18669 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18670 hardcode_libdir_separator_CXX=:
18671
18672 # Archives containing C++ object files must be created using
18673 # the KAI C++ compiler.
18674 case $host in
18675 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18676 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18677 esac
18678 ;;
18679 RCC*)
18680 # Rational C++ 2.4.1
18681 # FIXME: insert proper C++ library support
18682 ld_shlibs_CXX=no
18683 ;;
18684 cxx*)
18685 case $host in
18686 osf3*)
18687 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018688 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 +000018689 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18690 ;;
18691 *)
18692 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018693 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 +000018694 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18695 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018696 $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 +000018697 $RM $lib.exp'
18698 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18699 ;;
18700 esac
18701
18702 hardcode_libdir_separator_CXX=:
18703
18704 # Commands to make compiler produce verbose output that lists
18705 # what "hidden" libraries, object files and flags are used when
18706 # linking a shared library.
18707 #
18708 # There doesn't appear to be a way to prevent this compiler from
18709 # explicitly linking system object files so we need to strip them
18710 # from the output so that they don't get included in the library
18711 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018712 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 +000018713 ;;
18714 *)
18715 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18716 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18717 case $host in
18718 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018719 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 +000018720 ;;
18721 *)
cristyda16f162011-02-19 23:52:17 +000018722 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 +000018723 ;;
18724 esac
18725
18726 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18727 hardcode_libdir_separator_CXX=:
18728
18729 # Commands to make compiler produce verbose output that lists
18730 # what "hidden" libraries, object files and flags are used when
18731 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018732 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018733
18734 else
18735 # FIXME: insert proper C++ library support
18736 ld_shlibs_CXX=no
18737 fi
18738 ;;
18739 esac
18740 ;;
18741
18742 psos*)
18743 # FIXME: insert proper C++ library support
18744 ld_shlibs_CXX=no
18745 ;;
18746
18747 sunos4*)
18748 case $cc_basename in
18749 CC*)
18750 # Sun C++ 4.x
18751 # FIXME: insert proper C++ library support
18752 ld_shlibs_CXX=no
18753 ;;
18754 lcc*)
18755 # Lucid
18756 # FIXME: insert proper C++ library support
18757 ld_shlibs_CXX=no
18758 ;;
18759 *)
18760 # FIXME: insert proper C++ library support
18761 ld_shlibs_CXX=no
18762 ;;
18763 esac
18764 ;;
18765
18766 solaris*)
18767 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018768 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018769 # Sun C++ 4.2, 5.x and Centerline C++
18770 archive_cmds_need_lc_CXX=yes
18771 no_undefined_flag_CXX=' -zdefs'
18772 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18773 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18774 $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'
18775
18776 hardcode_libdir_flag_spec_CXX='-R$libdir'
18777 hardcode_shlibpath_var_CXX=no
18778 case $host_os in
18779 solaris2.[0-5] | solaris2.[0-5].*) ;;
18780 *)
18781 # The compiler driver will combine and reorder linker options,
18782 # but understands `-z linker_flag'.
18783 # Supported since Solaris 2.6 (maybe 2.5.1?)
18784 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18785 ;;
18786 esac
18787 link_all_deplibs_CXX=yes
18788
cristy0c60a692010-11-04 01:09:47 +000018789 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018790
18791 # Archives containing C++ object files must be created using
18792 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18793 # necessary to make sure instantiated templates are included
18794 # in the archive.
18795 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18796 ;;
18797 gcx*)
18798 # Green Hills C++ Compiler
18799 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18800
18801 # The C++ compiler must be used to create the archive.
18802 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18803 ;;
18804 *)
18805 # GNU C++ compiler with Solaris linker
18806 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18807 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18808 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018809 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 +000018810 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 +000018811 $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 +000018812
18813 # Commands to make compiler produce verbose output that lists
18814 # what "hidden" libraries, object files and flags are used when
18815 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018816 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018817 else
18818 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18819 # platform.
18820 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18821 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18822 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18823
18824 # Commands to make compiler produce verbose output that lists
18825 # what "hidden" libraries, object files and flags are used when
18826 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018827 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018828 fi
18829
18830 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18831 case $host_os in
18832 solaris2.[0-5] | solaris2.[0-5].*) ;;
18833 *)
18834 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18835 ;;
18836 esac
18837 fi
18838 ;;
18839 esac
18840 ;;
18841
18842 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18843 no_undefined_flag_CXX='${wl}-z,text'
18844 archive_cmds_need_lc_CXX=no
18845 hardcode_shlibpath_var_CXX=no
18846 runpath_var='LD_RUN_PATH'
18847
18848 case $cc_basename in
18849 CC*)
18850 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18851 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18852 ;;
18853 *)
18854 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18855 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18856 ;;
18857 esac
18858 ;;
18859
18860 sysv5* | sco3.2v5* | sco5v6*)
18861 # Note: We can NOT use -z defs as we might desire, because we do not
18862 # link with -lc, and that would cause any symbols used from libc to
18863 # always be unresolved, which means just about no library would
18864 # ever link correctly. If we're not using GNU ld we use -z text
18865 # though, which does catch some bad symbols but isn't as heavy-handed
18866 # as -z defs.
18867 no_undefined_flag_CXX='${wl}-z,text'
18868 allow_undefined_flag_CXX='${wl}-z,nodefs'
18869 archive_cmds_need_lc_CXX=no
18870 hardcode_shlibpath_var_CXX=no
18871 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18872 hardcode_libdir_separator_CXX=':'
18873 link_all_deplibs_CXX=yes
18874 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18875 runpath_var='LD_RUN_PATH'
18876
18877 case $cc_basename in
18878 CC*)
18879 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18880 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 +000018881 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18882 '"$old_archive_cmds_CXX"
18883 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18884 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018885 ;;
18886 *)
18887 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18888 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18889 ;;
18890 esac
18891 ;;
18892
18893 tandem*)
18894 case $cc_basename in
18895 NCC*)
18896 # NonStop-UX NCC 3.20
18897 # FIXME: insert proper C++ library support
18898 ld_shlibs_CXX=no
18899 ;;
18900 *)
18901 # FIXME: insert proper C++ library support
18902 ld_shlibs_CXX=no
18903 ;;
18904 esac
18905 ;;
18906
18907 vxworks*)
18908 # FIXME: insert proper C++ library support
18909 ld_shlibs_CXX=no
18910 ;;
18911
18912 *)
18913 # FIXME: insert proper C++ library support
18914 ld_shlibs_CXX=no
18915 ;;
18916 esac
18917
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18919$as_echo "$ld_shlibs_CXX" >&6; }
18920 test "$ld_shlibs_CXX" = no && can_build_shared=no
18921
18922 GCC_CXX="$GXX"
18923 LD_CXX="$LD"
18924
18925 ## CAVEAT EMPTOR:
18926 ## There is no encapsulation within the following macros, do not change
18927 ## the running order or otherwise move them around unless you know exactly
18928 ## what you are doing...
18929 # Dependencies to place before and after the object being linked:
18930predep_objects_CXX=
18931postdep_objects_CXX=
18932predeps_CXX=
18933postdeps_CXX=
18934compiler_lib_search_path_CXX=
18935
18936cat > conftest.$ac_ext <<_LT_EOF
18937class Foo
18938{
18939public:
18940 Foo (void) { a = 0; }
18941private:
18942 int a;
18943};
18944_LT_EOF
18945
cristyda16f162011-02-19 23:52:17 +000018946
18947_lt_libdeps_save_CFLAGS=$CFLAGS
18948case "$CC $CFLAGS " in #(
18949*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18950*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018951*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018952esac
18953
cristy73bd4a52010-10-05 11:24:23 +000018954if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18955 (eval $ac_compile) 2>&5
18956 ac_status=$?
18957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18958 test $ac_status = 0; }; then
18959 # Parse the compiler output and extract the necessary
18960 # objects, libraries and library flags.
18961
18962 # Sentinel used to keep track of whether or not we are before
18963 # the conftest object file.
18964 pre_test_object_deps_done=no
18965
18966 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018967 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018968
18969 -L* | -R* | -l*)
18970 # Some compilers place space between "-{L,R}" and the path.
18971 # Remove the space.
18972 if test $p = "-L" ||
18973 test $p = "-R"; then
18974 prev=$p
18975 continue
cristy73bd4a52010-10-05 11:24:23 +000018976 fi
18977
cristyda16f162011-02-19 23:52:17 +000018978 # Expand the sysroot to ease extracting the directories later.
18979 if test -z "$prev"; then
18980 case $p in
18981 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18982 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18983 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18984 esac
18985 fi
18986 case $p in
18987 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18988 esac
cristy73bd4a52010-10-05 11:24:23 +000018989 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018990 case ${prev} in
18991 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018992 # Internal compiler library paths should come after those
18993 # provided the user. The postdeps already come after the
18994 # user supplied libs so there is no need to process them.
18995 if test -z "$compiler_lib_search_path_CXX"; then
18996 compiler_lib_search_path_CXX="${prev}${p}"
18997 else
18998 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18999 fi
19000 ;;
19001 # The "-l" case would never come before the object being
19002 # linked, so don't bother handling this case.
19003 esac
19004 else
19005 if test -z "$postdeps_CXX"; then
19006 postdeps_CXX="${prev}${p}"
19007 else
19008 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19009 fi
19010 fi
cristyda16f162011-02-19 23:52:17 +000019011 prev=
cristy73bd4a52010-10-05 11:24:23 +000019012 ;;
19013
cristyda16f162011-02-19 23:52:17 +000019014 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019015 *.$objext)
19016 # This assumes that the test object file only shows up
19017 # once in the compiler output.
19018 if test "$p" = "conftest.$objext"; then
19019 pre_test_object_deps_done=yes
19020 continue
19021 fi
19022
19023 if test "$pre_test_object_deps_done" = no; then
19024 if test -z "$predep_objects_CXX"; then
19025 predep_objects_CXX="$p"
19026 else
19027 predep_objects_CXX="$predep_objects_CXX $p"
19028 fi
19029 else
19030 if test -z "$postdep_objects_CXX"; then
19031 postdep_objects_CXX="$p"
19032 else
19033 postdep_objects_CXX="$postdep_objects_CXX $p"
19034 fi
19035 fi
19036 ;;
19037
19038 *) ;; # Ignore the rest.
19039
19040 esac
19041 done
19042
19043 # Clean up.
19044 rm -f a.out a.exe
19045else
19046 echo "libtool.m4: error: problem compiling CXX test program"
19047fi
19048
19049$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019050CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019051
19052# PORTME: override above test on systems where it is broken
19053case $host_os in
19054interix[3-9]*)
19055 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19056 # hack all around it, let's just trust "g++" to DTRT.
19057 predep_objects_CXX=
19058 postdep_objects_CXX=
19059 postdeps_CXX=
19060 ;;
19061
19062linux*)
19063 case `$CC -V 2>&1 | sed 5q` in
19064 *Sun\ C*)
19065 # Sun C++ 5.9
19066
19067 # The more standards-conforming stlport4 library is
19068 # incompatible with the Cstd library. Avoid specifying
19069 # it if it's in CXXFLAGS. Ignore libCrun as
19070 # -library=stlport4 depends on it.
19071 case " $CXX $CXXFLAGS " in
19072 *" -library=stlport4 "*)
19073 solaris_use_stlport4=yes
19074 ;;
19075 esac
19076
19077 if test "$solaris_use_stlport4" != yes; then
19078 postdeps_CXX='-library=Cstd -library=Crun'
19079 fi
19080 ;;
19081 esac
19082 ;;
19083
19084solaris*)
19085 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019086 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019087 # The more standards-conforming stlport4 library is
19088 # incompatible with the Cstd library. Avoid specifying
19089 # it if it's in CXXFLAGS. Ignore libCrun as
19090 # -library=stlport4 depends on it.
19091 case " $CXX $CXXFLAGS " in
19092 *" -library=stlport4 "*)
19093 solaris_use_stlport4=yes
19094 ;;
19095 esac
19096
19097 # Adding this requires a known-good setup of shared libraries for
19098 # Sun compiler versions before 5.6, else PIC objects from an old
19099 # archive will be linked into the output, leading to subtle bugs.
19100 if test "$solaris_use_stlport4" != yes; then
19101 postdeps_CXX='-library=Cstd -library=Crun'
19102 fi
19103 ;;
19104 esac
19105 ;;
19106esac
19107
19108
19109case " $postdeps_CXX " in
19110*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19111esac
19112 compiler_lib_search_dirs_CXX=
19113if test -n "${compiler_lib_search_path_CXX}"; then
19114 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19115fi
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147 lt_prog_compiler_wl_CXX=
19148lt_prog_compiler_pic_CXX=
19149lt_prog_compiler_static_CXX=
19150
cristy73bd4a52010-10-05 11:24:23 +000019151
19152 # C++ specific cases for pic, static, wl, etc.
19153 if test "$GXX" = yes; then
19154 lt_prog_compiler_wl_CXX='-Wl,'
19155 lt_prog_compiler_static_CXX='-static'
19156
19157 case $host_os in
19158 aix*)
19159 # All AIX code is PIC.
19160 if test "$host_cpu" = ia64; then
19161 # AIX 5 now supports IA64 processor
19162 lt_prog_compiler_static_CXX='-Bstatic'
19163 fi
19164 ;;
19165
19166 amigaos*)
19167 case $host_cpu in
19168 powerpc)
19169 # see comment about AmigaOS4 .so support
19170 lt_prog_compiler_pic_CXX='-fPIC'
19171 ;;
19172 m68k)
19173 # FIXME: we need at least 68020 code to build shared libraries, but
19174 # adding the `-m68020' flag to GCC prevents building anything better,
19175 # like `-m68040'.
19176 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19177 ;;
19178 esac
19179 ;;
19180
19181 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19182 # PIC is the default for these OSes.
19183 ;;
19184 mingw* | cygwin* | os2* | pw32* | cegcc*)
19185 # This hack is so that the source file can tell whether it is being
19186 # built for inclusion in a dll (and should export symbols for example).
19187 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19188 # (--disable-auto-import) libraries
19189 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19190 ;;
19191 darwin* | rhapsody*)
19192 # PIC is the default on this platform
19193 # Common symbols not allowed in MH_DYLIB files
19194 lt_prog_compiler_pic_CXX='-fno-common'
19195 ;;
19196 *djgpp*)
19197 # DJGPP does not support shared libraries at all
19198 lt_prog_compiler_pic_CXX=
19199 ;;
cristy0c60a692010-11-04 01:09:47 +000019200 haiku*)
19201 # PIC is the default for Haiku.
19202 # The "-static" flag exists, but is broken.
19203 lt_prog_compiler_static_CXX=
19204 ;;
cristy73bd4a52010-10-05 11:24:23 +000019205 interix[3-9]*)
19206 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19207 # Instead, we relocate shared libraries at runtime.
19208 ;;
19209 sysv4*MP*)
19210 if test -d /usr/nec; then
19211 lt_prog_compiler_pic_CXX=-Kconform_pic
19212 fi
19213 ;;
19214 hpux*)
19215 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19216 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19217 # sets the default TLS model and affects inlining.
19218 case $host_cpu in
19219 hppa*64*)
19220 ;;
19221 *)
19222 lt_prog_compiler_pic_CXX='-fPIC'
19223 ;;
19224 esac
19225 ;;
19226 *qnx* | *nto*)
19227 # QNX uses GNU C++, but need to define -shared option too, otherwise
19228 # it will coredump.
19229 lt_prog_compiler_pic_CXX='-fPIC -shared'
19230 ;;
19231 *)
19232 lt_prog_compiler_pic_CXX='-fPIC'
19233 ;;
19234 esac
19235 else
19236 case $host_os in
19237 aix[4-9]*)
19238 # All AIX code is PIC.
19239 if test "$host_cpu" = ia64; then
19240 # AIX 5 now supports IA64 processor
19241 lt_prog_compiler_static_CXX='-Bstatic'
19242 else
19243 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19244 fi
19245 ;;
19246 chorus*)
19247 case $cc_basename in
19248 cxch68*)
19249 # Green Hills C++ Compiler
19250 # _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"
19251 ;;
19252 esac
19253 ;;
cristyda16f162011-02-19 23:52:17 +000019254 mingw* | cygwin* | os2* | pw32* | cegcc*)
19255 # This hack is so that the source file can tell whether it is being
19256 # built for inclusion in a dll (and should export symbols for example).
19257 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19258 ;;
cristy73bd4a52010-10-05 11:24:23 +000019259 dgux*)
19260 case $cc_basename in
19261 ec++*)
19262 lt_prog_compiler_pic_CXX='-KPIC'
19263 ;;
19264 ghcx*)
19265 # Green Hills C++ Compiler
19266 lt_prog_compiler_pic_CXX='-pic'
19267 ;;
19268 *)
19269 ;;
19270 esac
19271 ;;
19272 freebsd* | dragonfly*)
19273 # FreeBSD uses GNU C++
19274 ;;
19275 hpux9* | hpux10* | hpux11*)
19276 case $cc_basename in
19277 CC*)
19278 lt_prog_compiler_wl_CXX='-Wl,'
19279 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19280 if test "$host_cpu" != ia64; then
19281 lt_prog_compiler_pic_CXX='+Z'
19282 fi
19283 ;;
19284 aCC*)
19285 lt_prog_compiler_wl_CXX='-Wl,'
19286 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19287 case $host_cpu in
19288 hppa*64*|ia64*)
19289 # +Z the default
19290 ;;
19291 *)
19292 lt_prog_compiler_pic_CXX='+Z'
19293 ;;
19294 esac
19295 ;;
19296 *)
19297 ;;
19298 esac
19299 ;;
19300 interix*)
19301 # This is c89, which is MS Visual C++ (no shared libs)
19302 # Anyone wants to do a port?
19303 ;;
19304 irix5* | irix6* | nonstopux*)
19305 case $cc_basename in
19306 CC*)
19307 lt_prog_compiler_wl_CXX='-Wl,'
19308 lt_prog_compiler_static_CXX='-non_shared'
19309 # CC pic flag -KPIC is the default.
19310 ;;
19311 *)
19312 ;;
19313 esac
19314 ;;
cristy0c60a692010-11-04 01:09:47 +000019315 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019316 case $cc_basename in
19317 KCC*)
19318 # KAI C++ Compiler
19319 lt_prog_compiler_wl_CXX='--backend -Wl,'
19320 lt_prog_compiler_pic_CXX='-fPIC'
19321 ;;
19322 ecpc* )
19323 # old Intel C++ for x86_64 which still supported -KPIC.
19324 lt_prog_compiler_wl_CXX='-Wl,'
19325 lt_prog_compiler_pic_CXX='-KPIC'
19326 lt_prog_compiler_static_CXX='-static'
19327 ;;
19328 icpc* )
19329 # Intel C++, used to be incompatible with GCC.
19330 # ICC 10 doesn't accept -KPIC any more.
19331 lt_prog_compiler_wl_CXX='-Wl,'
19332 lt_prog_compiler_pic_CXX='-fPIC'
19333 lt_prog_compiler_static_CXX='-static'
19334 ;;
19335 pgCC* | pgcpp*)
19336 # Portland Group C++ compiler
19337 lt_prog_compiler_wl_CXX='-Wl,'
19338 lt_prog_compiler_pic_CXX='-fpic'
19339 lt_prog_compiler_static_CXX='-Bstatic'
19340 ;;
19341 cxx*)
19342 # Compaq C++
19343 # Make sure the PIC flag is empty. It appears that all Alpha
19344 # Linux and Compaq Tru64 Unix objects are PIC.
19345 lt_prog_compiler_pic_CXX=
19346 lt_prog_compiler_static_CXX='-non_shared'
19347 ;;
cristy0c60a692010-11-04 01:09:47 +000019348 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19349 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019350 lt_prog_compiler_wl_CXX='-Wl,'
19351 lt_prog_compiler_pic_CXX='-qpic'
19352 lt_prog_compiler_static_CXX='-qstaticlink'
19353 ;;
19354 *)
19355 case `$CC -V 2>&1 | sed 5q` in
19356 *Sun\ C*)
19357 # Sun C++ 5.9
19358 lt_prog_compiler_pic_CXX='-KPIC'
19359 lt_prog_compiler_static_CXX='-Bstatic'
19360 lt_prog_compiler_wl_CXX='-Qoption ld '
19361 ;;
19362 esac
19363 ;;
19364 esac
19365 ;;
19366 lynxos*)
19367 ;;
19368 m88k*)
19369 ;;
19370 mvs*)
19371 case $cc_basename in
19372 cxx*)
19373 lt_prog_compiler_pic_CXX='-W c,exportall'
19374 ;;
19375 *)
19376 ;;
19377 esac
19378 ;;
19379 netbsd*)
19380 ;;
19381 *qnx* | *nto*)
19382 # QNX uses GNU C++, but need to define -shared option too, otherwise
19383 # it will coredump.
19384 lt_prog_compiler_pic_CXX='-fPIC -shared'
19385 ;;
19386 osf3* | osf4* | osf5*)
19387 case $cc_basename in
19388 KCC*)
19389 lt_prog_compiler_wl_CXX='--backend -Wl,'
19390 ;;
19391 RCC*)
19392 # Rational C++ 2.4.1
19393 lt_prog_compiler_pic_CXX='-pic'
19394 ;;
19395 cxx*)
19396 # Digital/Compaq C++
19397 lt_prog_compiler_wl_CXX='-Wl,'
19398 # Make sure the PIC flag is empty. It appears that all Alpha
19399 # Linux and Compaq Tru64 Unix objects are PIC.
19400 lt_prog_compiler_pic_CXX=
19401 lt_prog_compiler_static_CXX='-non_shared'
19402 ;;
19403 *)
19404 ;;
19405 esac
19406 ;;
19407 psos*)
19408 ;;
19409 solaris*)
19410 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019411 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019412 # Sun C++ 4.2, 5.x and Centerline C++
19413 lt_prog_compiler_pic_CXX='-KPIC'
19414 lt_prog_compiler_static_CXX='-Bstatic'
19415 lt_prog_compiler_wl_CXX='-Qoption ld '
19416 ;;
19417 gcx*)
19418 # Green Hills C++ Compiler
19419 lt_prog_compiler_pic_CXX='-PIC'
19420 ;;
19421 *)
19422 ;;
19423 esac
19424 ;;
19425 sunos4*)
19426 case $cc_basename in
19427 CC*)
19428 # Sun C++ 4.x
19429 lt_prog_compiler_pic_CXX='-pic'
19430 lt_prog_compiler_static_CXX='-Bstatic'
19431 ;;
19432 lcc*)
19433 # Lucid
19434 lt_prog_compiler_pic_CXX='-pic'
19435 ;;
19436 *)
19437 ;;
19438 esac
19439 ;;
19440 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19441 case $cc_basename in
19442 CC*)
19443 lt_prog_compiler_wl_CXX='-Wl,'
19444 lt_prog_compiler_pic_CXX='-KPIC'
19445 lt_prog_compiler_static_CXX='-Bstatic'
19446 ;;
19447 esac
19448 ;;
19449 tandem*)
19450 case $cc_basename in
19451 NCC*)
19452 # NonStop-UX NCC 3.20
19453 lt_prog_compiler_pic_CXX='-KPIC'
19454 ;;
19455 *)
19456 ;;
19457 esac
19458 ;;
19459 vxworks*)
19460 ;;
19461 *)
19462 lt_prog_compiler_can_build_shared_CXX=no
19463 ;;
19464 esac
19465 fi
19466
19467case $host_os in
19468 # For platforms which do not support PIC, -DPIC is meaningless:
19469 *djgpp*)
19470 lt_prog_compiler_pic_CXX=
19471 ;;
19472 *)
19473 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19474 ;;
19475esac
cristy73bd4a52010-10-05 11:24:23 +000019476
cristyda16f162011-02-19 23:52:17 +000019477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19478$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19479if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19480 $as_echo_n "(cached) " >&6
19481else
19482 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19483fi
19484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19485$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19486lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019487
19488#
19489# Check to make sure the PIC flag actually works.
19490#
19491if test -n "$lt_prog_compiler_pic_CXX"; then
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19493$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019494if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019495 $as_echo_n "(cached) " >&6
19496else
19497 lt_cv_prog_compiler_pic_works_CXX=no
19498 ac_outfile=conftest.$ac_objext
19499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19500 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19501 # Insert the option either (1) after the last *FLAGS variable, or
19502 # (2) before a word containing "conftest.", or (3) at the end.
19503 # Note that $ac_compile itself does not contain backslashes and begins
19504 # with a dollar sign (not a hyphen), so the echo should work correctly.
19505 # The option is referenced via a variable to avoid confusing sed.
19506 lt_compile=`echo "$ac_compile" | $SED \
19507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19509 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019510 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019511 (eval "$lt_compile" 2>conftest.err)
19512 ac_status=$?
19513 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019515 if (exit $ac_status) && test -s "$ac_outfile"; then
19516 # The compiler can only warn and ignore the option if not recognized
19517 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019518 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19520 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19521 lt_cv_prog_compiler_pic_works_CXX=yes
19522 fi
19523 fi
19524 $RM conftest*
19525
19526fi
19527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19528$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19529
19530if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19531 case $lt_prog_compiler_pic_CXX in
19532 "" | " "*) ;;
19533 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19534 esac
19535else
19536 lt_prog_compiler_pic_CXX=
19537 lt_prog_compiler_can_build_shared_CXX=no
19538fi
19539
19540fi
19541
19542
19543
cristyda16f162011-02-19 23:52:17 +000019544
19545
cristy73bd4a52010-10-05 11:24:23 +000019546#
19547# Check to make sure the static flag actually works.
19548#
19549wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19551$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019552if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019553 $as_echo_n "(cached) " >&6
19554else
19555 lt_cv_prog_compiler_static_works_CXX=no
19556 save_LDFLAGS="$LDFLAGS"
19557 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19558 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19559 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19560 # The linker can only warn and ignore the option if not recognized
19561 # So say no if there are warnings
19562 if test -s conftest.err; then
19563 # Append any errors to the config.log.
19564 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019565 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19567 if diff conftest.exp conftest.er2 >/dev/null; then
19568 lt_cv_prog_compiler_static_works_CXX=yes
19569 fi
19570 else
19571 lt_cv_prog_compiler_static_works_CXX=yes
19572 fi
19573 fi
19574 $RM -r conftest*
19575 LDFLAGS="$save_LDFLAGS"
19576
19577fi
19578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19579$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19580
19581if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19582 :
19583else
19584 lt_prog_compiler_static_CXX=
19585fi
19586
19587
19588
19589
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19591$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019592if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019593 $as_echo_n "(cached) " >&6
19594else
19595 lt_cv_prog_compiler_c_o_CXX=no
19596 $RM -r conftest 2>/dev/null
19597 mkdir conftest
19598 cd conftest
19599 mkdir out
19600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19601
19602 lt_compiler_flag="-o out/conftest2.$ac_objext"
19603 # Insert the option either (1) after the last *FLAGS variable, or
19604 # (2) before a word containing "conftest.", or (3) at the end.
19605 # Note that $ac_compile itself does not contain backslashes and begins
19606 # with a dollar sign (not a hyphen), so the echo should work correctly.
19607 lt_compile=`echo "$ac_compile" | $SED \
19608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19610 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019611 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019612 (eval "$lt_compile" 2>out/conftest.err)
19613 ac_status=$?
19614 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019616 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19617 then
19618 # The compiler can only warn and ignore the option if not recognized
19619 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019620 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019621 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19622 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19623 lt_cv_prog_compiler_c_o_CXX=yes
19624 fi
19625 fi
19626 chmod u+w . 2>&5
19627 $RM conftest*
19628 # SGI C++ compiler will create directory out/ii_files/ for
19629 # template instantiation
19630 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19631 $RM out/* && rmdir out
19632 cd ..
19633 $RM -r conftest
19634 $RM conftest*
19635
19636fi
19637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19638$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19639
19640
19641
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19643$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019644if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019645 $as_echo_n "(cached) " >&6
19646else
19647 lt_cv_prog_compiler_c_o_CXX=no
19648 $RM -r conftest 2>/dev/null
19649 mkdir conftest
19650 cd conftest
19651 mkdir out
19652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19653
19654 lt_compiler_flag="-o out/conftest2.$ac_objext"
19655 # Insert the option either (1) after the last *FLAGS variable, or
19656 # (2) before a word containing "conftest.", or (3) at the end.
19657 # Note that $ac_compile itself does not contain backslashes and begins
19658 # with a dollar sign (not a hyphen), so the echo should work correctly.
19659 lt_compile=`echo "$ac_compile" | $SED \
19660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19662 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019664 (eval "$lt_compile" 2>out/conftest.err)
19665 ac_status=$?
19666 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019668 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19669 then
19670 # The compiler can only warn and ignore the option if not recognized
19671 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019673 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19674 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19675 lt_cv_prog_compiler_c_o_CXX=yes
19676 fi
19677 fi
19678 chmod u+w . 2>&5
19679 $RM conftest*
19680 # SGI C++ compiler will create directory out/ii_files/ for
19681 # template instantiation
19682 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19683 $RM out/* && rmdir out
19684 cd ..
19685 $RM -r conftest
19686 $RM conftest*
19687
19688fi
19689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19690$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19691
19692
19693
19694
19695hard_links="nottested"
19696if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19697 # do not overwrite the value of need_locks provided by the user
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19699$as_echo_n "checking if we can lock with hard links... " >&6; }
19700 hard_links=yes
19701 $RM conftest*
19702 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19703 touch conftest.a
19704 ln conftest.a conftest.b 2>&5 || hard_links=no
19705 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19707$as_echo "$hard_links" >&6; }
19708 if test "$hard_links" = no; then
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19710$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19711 need_locks=warn
19712 fi
19713else
19714 need_locks=no
19715fi
19716
19717
19718
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19720$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19721
19722 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019723 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019724 case $host_os in
19725 aix[4-9]*)
19726 # If we're using GNU nm, then we don't want the "-C" option.
19727 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019728 # Also, AIX nm treats weak defined symbols like other global defined
19729 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019730 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019731 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 +000019732 else
19733 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'
19734 fi
19735 ;;
19736 pw32*)
19737 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019738 ;;
cristy73bd4a52010-10-05 11:24:23 +000019739 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019740 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019741 cl*)
19742 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19743 ;;
cristyda16f162011-02-19 23:52:17 +000019744 *)
19745 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'
19746 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19747 ;;
19748 esac
19749 ;;
cristy73bd4a52010-10-05 11:24:23 +000019750 *)
19751 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019752 ;;
cristy73bd4a52010-10-05 11:24:23 +000019753 esac
cristy73bd4a52010-10-05 11:24:23 +000019754
19755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19756$as_echo "$ld_shlibs_CXX" >&6; }
19757test "$ld_shlibs_CXX" = no && can_build_shared=no
19758
19759with_gnu_ld_CXX=$with_gnu_ld
19760
19761
19762
19763
19764
19765
19766#
19767# Do we need to explicitly link libc?
19768#
19769case "x$archive_cmds_need_lc_CXX" in
19770x|xyes)
19771 # Assume -lc should be added
19772 archive_cmds_need_lc_CXX=yes
19773
19774 if test "$enable_shared" = yes && test "$GCC" = yes; then
19775 case $archive_cmds_CXX in
19776 *'~'*)
19777 # FIXME: we may have to deal with multi-command sequences.
19778 ;;
19779 '$CC '*)
19780 # Test whether the compiler implicitly links with -lc since on some
19781 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19782 # to ld, don't add -lc before -lgcc.
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19784$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019785if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019786 $as_echo_n "(cached) " >&6
19787else
19788 $RM conftest*
19789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019790
cristy0c60a692010-11-04 01:09:47 +000019791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019792 (eval $ac_compile) 2>&5
19793 ac_status=$?
19794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19795 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019796 soname=conftest
19797 lib=conftest
19798 libobjs=conftest.$ac_objext
19799 deplibs=
19800 wl=$lt_prog_compiler_wl_CXX
19801 pic_flag=$lt_prog_compiler_pic_CXX
19802 compiler_flags=-v
19803 linker_flags=-v
19804 verstring=
19805 output_objdir=.
19806 libname=conftest
19807 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19808 allow_undefined_flag_CXX=
19809 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 +000019810 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19811 ac_status=$?
19812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19813 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019814 then
19815 lt_cv_archive_cmds_need_lc_CXX=no
19816 else
19817 lt_cv_archive_cmds_need_lc_CXX=yes
19818 fi
19819 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19820 else
19821 cat conftest.err 1>&5
19822 fi
19823 $RM conftest*
19824
19825fi
19826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19827$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19828 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019829 ;;
19830 esac
19831 fi
19832 ;;
19833esac
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
19890
19891
19892
19893
19894
19895
cristy73bd4a52010-10-05 11:24:23 +000019896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19897$as_echo_n "checking dynamic linker characteristics... " >&6; }
19898
19899library_names_spec=
19900libname_spec='lib$name'
19901soname_spec=
19902shrext_cmds=".so"
19903postinstall_cmds=
19904postuninstall_cmds=
19905finish_cmds=
19906finish_eval=
19907shlibpath_var=
19908shlibpath_overrides_runpath=unknown
19909version_type=none
19910dynamic_linker="$host_os ld.so"
19911sys_lib_dlsearch_path_spec="/lib /usr/lib"
19912need_lib_prefix=unknown
19913hardcode_into_libs=no
19914
19915# when you set need_version to no, make sure it does not cause -set_version
19916# flags to be left without arguments
19917need_version=unknown
19918
19919case $host_os in
19920aix3*)
cristy99bd5232011-12-07 14:38:20 +000019921 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019922 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19923 shlibpath_var=LIBPATH
19924
19925 # AIX 3 has no versioning support, so we append a major version to the name.
19926 soname_spec='${libname}${release}${shared_ext}$major'
19927 ;;
19928
19929aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019930 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019931 need_lib_prefix=no
19932 need_version=no
19933 hardcode_into_libs=yes
19934 if test "$host_cpu" = ia64; then
19935 # AIX 5 supports IA64
19936 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19937 shlibpath_var=LD_LIBRARY_PATH
19938 else
19939 # With GCC up to 2.95.x, collect2 would create an import file
19940 # for dependence libraries. The import file would start with
19941 # the line `#! .'. This would cause the generated library to
19942 # depend on `.', always an invalid library. This was fixed in
19943 # development snapshots of GCC prior to 3.0.
19944 case $host_os in
19945 aix4 | aix4.[01] | aix4.[01].*)
19946 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19947 echo ' yes '
19948 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19949 :
19950 else
19951 can_build_shared=no
19952 fi
19953 ;;
19954 esac
19955 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19956 # soname into executable. Probably we can add versioning support to
19957 # collect2, so additional links can be useful in future.
19958 if test "$aix_use_runtimelinking" = yes; then
19959 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19960 # instead of lib<name>.a to let people know that these are not
19961 # typical AIX shared libraries.
19962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19963 else
19964 # We preserve .a as extension for shared libraries through AIX4.2
19965 # and later when we are not doing run time linking.
19966 library_names_spec='${libname}${release}.a $libname.a'
19967 soname_spec='${libname}${release}${shared_ext}$major'
19968 fi
19969 shlibpath_var=LIBPATH
19970 fi
19971 ;;
19972
19973amigaos*)
19974 case $host_cpu in
19975 powerpc)
19976 # Since July 2007 AmigaOS4 officially supports .so libraries.
19977 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19979 ;;
19980 m68k)
19981 library_names_spec='$libname.ixlibrary $libname.a'
19982 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019983 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 +000019984 ;;
19985 esac
19986 ;;
19987
19988beos*)
19989 library_names_spec='${libname}${shared_ext}'
19990 dynamic_linker="$host_os ld.so"
19991 shlibpath_var=LIBRARY_PATH
19992 ;;
19993
19994bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019995 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019996 need_version=no
19997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19998 soname_spec='${libname}${release}${shared_ext}$major'
19999 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20000 shlibpath_var=LD_LIBRARY_PATH
20001 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20002 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20003 # the default ld.so.conf also contains /usr/contrib/lib and
20004 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20005 # libtool to hard-code these into programs
20006 ;;
20007
20008cygwin* | mingw* | pw32* | cegcc*)
20009 version_type=windows
20010 shrext_cmds=".dll"
20011 need_version=no
20012 need_lib_prefix=no
20013
cristyda16f162011-02-19 23:52:17 +000020014 case $GCC,$cc_basename in
20015 yes,*)
20016 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020017 library_names_spec='$libname.dll.a'
20018 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20019 postinstall_cmds='base_file=`basename \${file}`~
20020 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20021 dldir=$destdir/`dirname \$dlpath`~
20022 test -d \$dldir || mkdir -p \$dldir~
20023 $install_prog $dir/$dlname \$dldir/$dlname~
20024 chmod a+x \$dldir/$dlname~
20025 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20026 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20027 fi'
20028 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20029 dlpath=$dir/\$dldll~
20030 $RM \$dlpath'
20031 shlibpath_overrides_runpath=yes
20032
20033 case $host_os in
20034 cygwin*)
20035 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20036 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020037
cristy73bd4a52010-10-05 11:24:23 +000020038 ;;
20039 mingw* | cegcc*)
20040 # MinGW DLLs use traditional 'lib' prefix
20041 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020042 ;;
20043 pw32*)
20044 # pw32 DLLs use 'pw' prefix rather than 'lib'
20045 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20046 ;;
20047 esac
cristyda16f162011-02-19 23:52:17 +000020048 dynamic_linker='Win32 ld.exe'
20049 ;;
20050
20051 *,cl*)
20052 # Native MSVC
20053 libname_spec='$name'
20054 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20055 library_names_spec='${libname}.dll.lib'
20056
20057 case $build_os in
20058 mingw*)
20059 sys_lib_search_path_spec=
20060 lt_save_ifs=$IFS
20061 IFS=';'
20062 for lt_path in $LIB
20063 do
20064 IFS=$lt_save_ifs
20065 # Let DOS variable expansion print the short 8.3 style file name.
20066 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20067 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20068 done
20069 IFS=$lt_save_ifs
20070 # Convert to MSYS style.
20071 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20072 ;;
20073 cygwin*)
20074 # Convert to unix form, then to dos form, then back to unix form
20075 # but this time dos style (no spaces!) so that the unix form looks
20076 # like /cygdrive/c/PROGRA~1:/cygdr...
20077 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20078 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20079 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20080 ;;
20081 *)
20082 sys_lib_search_path_spec="$LIB"
20083 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20084 # It is most probably a Windows format PATH.
20085 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20086 else
20087 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20088 fi
20089 # FIXME: find the short name or the path components, as spaces are
20090 # common. (e.g. "Program Files" -> "PROGRA~1")
20091 ;;
20092 esac
20093
20094 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20095 postinstall_cmds='base_file=`basename \${file}`~
20096 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20097 dldir=$destdir/`dirname \$dlpath`~
20098 test -d \$dldir || mkdir -p \$dldir~
20099 $install_prog $dir/$dlname \$dldir/$dlname'
20100 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20101 dlpath=$dir/\$dldll~
20102 $RM \$dlpath'
20103 shlibpath_overrides_runpath=yes
20104 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020105 ;;
20106
20107 *)
cristyda16f162011-02-19 23:52:17 +000020108 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020109 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020110 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020111 ;;
20112 esac
cristy73bd4a52010-10-05 11:24:23 +000020113 # FIXME: first we should search . and the directory the executable is in
20114 shlibpath_var=PATH
20115 ;;
20116
20117darwin* | rhapsody*)
20118 dynamic_linker="$host_os dyld"
20119 version_type=darwin
20120 need_lib_prefix=no
20121 need_version=no
20122 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20123 soname_spec='${libname}${release}${major}$shared_ext'
20124 shlibpath_overrides_runpath=yes
20125 shlibpath_var=DYLD_LIBRARY_PATH
20126 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20127
20128 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20129 ;;
20130
20131dgux*)
cristy99bd5232011-12-07 14:38:20 +000020132 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020133 need_lib_prefix=no
20134 need_version=no
20135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20136 soname_spec='${libname}${release}${shared_ext}$major'
20137 shlibpath_var=LD_LIBRARY_PATH
20138 ;;
20139
cristy73bd4a52010-10-05 11:24:23 +000020140freebsd* | dragonfly*)
20141 # DragonFly does not have aout. When/if they implement a new
20142 # versioning mechanism, adjust this.
20143 if test -x /usr/bin/objformat; then
20144 objformat=`/usr/bin/objformat`
20145 else
20146 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020147 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020148 *) objformat=elf ;;
20149 esac
20150 fi
20151 version_type=freebsd-$objformat
20152 case $version_type in
20153 freebsd-elf*)
20154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20155 need_version=no
20156 need_lib_prefix=no
20157 ;;
20158 freebsd-*)
20159 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20160 need_version=yes
20161 ;;
20162 esac
20163 shlibpath_var=LD_LIBRARY_PATH
20164 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020165 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020166 shlibpath_overrides_runpath=yes
20167 ;;
20168 freebsd3.[01]* | freebsdelf3.[01]*)
20169 shlibpath_overrides_runpath=yes
20170 hardcode_into_libs=yes
20171 ;;
20172 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20173 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20174 shlibpath_overrides_runpath=no
20175 hardcode_into_libs=yes
20176 ;;
20177 *) # from 4.6 on, and DragonFly
20178 shlibpath_overrides_runpath=yes
20179 hardcode_into_libs=yes
20180 ;;
20181 esac
20182 ;;
20183
20184gnu*)
cristy99bd5232011-12-07 14:38:20 +000020185 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020186 need_lib_prefix=no
20187 need_version=no
20188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20189 soname_spec='${libname}${release}${shared_ext}$major'
20190 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020191 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020192 hardcode_into_libs=yes
20193 ;;
20194
cristy0c60a692010-11-04 01:09:47 +000020195haiku*)
cristy99bd5232011-12-07 14:38:20 +000020196 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020197 need_lib_prefix=no
20198 need_version=no
20199 dynamic_linker="$host_os runtime_loader"
20200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20201 soname_spec='${libname}${release}${shared_ext}$major'
20202 shlibpath_var=LIBRARY_PATH
20203 shlibpath_overrides_runpath=yes
20204 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20205 hardcode_into_libs=yes
20206 ;;
20207
cristy73bd4a52010-10-05 11:24:23 +000020208hpux9* | hpux10* | hpux11*)
20209 # Give a soname corresponding to the major version so that dld.sl refuses to
20210 # link against other versions.
20211 version_type=sunos
20212 need_lib_prefix=no
20213 need_version=no
20214 case $host_cpu in
20215 ia64*)
20216 shrext_cmds='.so'
20217 hardcode_into_libs=yes
20218 dynamic_linker="$host_os dld.so"
20219 shlibpath_var=LD_LIBRARY_PATH
20220 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20222 soname_spec='${libname}${release}${shared_ext}$major'
20223 if test "X$HPUX_IA64_MODE" = X32; then
20224 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20225 else
20226 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20227 fi
20228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20229 ;;
20230 hppa*64*)
20231 shrext_cmds='.sl'
20232 hardcode_into_libs=yes
20233 dynamic_linker="$host_os dld.sl"
20234 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20237 soname_spec='${libname}${release}${shared_ext}$major'
20238 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20240 ;;
20241 *)
20242 shrext_cmds='.sl'
20243 dynamic_linker="$host_os dld.sl"
20244 shlibpath_var=SHLIB_PATH
20245 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20247 soname_spec='${libname}${release}${shared_ext}$major'
20248 ;;
20249 esac
cristy0c60a692010-11-04 01:09:47 +000020250 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020251 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020252 # or fails outright, so override atomically:
20253 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020254 ;;
20255
20256interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020257 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020258 need_lib_prefix=no
20259 need_version=no
20260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20261 soname_spec='${libname}${release}${shared_ext}$major'
20262 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20263 shlibpath_var=LD_LIBRARY_PATH
20264 shlibpath_overrides_runpath=no
20265 hardcode_into_libs=yes
20266 ;;
20267
20268irix5* | irix6* | nonstopux*)
20269 case $host_os in
20270 nonstopux*) version_type=nonstopux ;;
20271 *)
20272 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020273 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020274 else
20275 version_type=irix
20276 fi ;;
20277 esac
20278 need_lib_prefix=no
20279 need_version=no
20280 soname_spec='${libname}${release}${shared_ext}$major'
20281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20282 case $host_os in
20283 irix5* | nonstopux*)
20284 libsuff= shlibsuff=
20285 ;;
20286 *)
20287 case $LD in # libtool.m4 will add one of these switches to LD
20288 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20289 libsuff= shlibsuff= libmagic=32-bit;;
20290 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20291 libsuff=32 shlibsuff=N32 libmagic=N32;;
20292 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20293 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20294 *) libsuff= shlibsuff= libmagic=never-match;;
20295 esac
20296 ;;
20297 esac
20298 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20299 shlibpath_overrides_runpath=no
20300 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20301 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20302 hardcode_into_libs=yes
20303 ;;
20304
20305# No shared lib support for Linux oldld, aout, or coff.
20306linux*oldld* | linux*aout* | linux*coff*)
20307 dynamic_linker=no
20308 ;;
20309
cristy99bd5232011-12-07 14:38:20 +000020310# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020311linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020312 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020313 need_lib_prefix=no
20314 need_version=no
20315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20316 soname_spec='${libname}${release}${shared_ext}$major'
20317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20318 shlibpath_var=LD_LIBRARY_PATH
20319 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020320
cristy73bd4a52010-10-05 11:24:23 +000020321 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020322 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020323 $as_echo_n "(cached) " >&6
20324else
20325 lt_cv_shlibpath_overrides_runpath=no
20326 save_LDFLAGS=$LDFLAGS
20327 save_libdir=$libdir
20328 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20329 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020331/* end confdefs.h. */
20332
20333int
20334main ()
20335{
20336
20337 ;
20338 return 0;
20339}
20340_ACEOF
20341if ac_fn_cxx_try_link "$LINENO"; then :
20342 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020343 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020344fi
20345fi
20346rm -f core conftest.err conftest.$ac_objext \
20347 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020348 LDFLAGS=$save_LDFLAGS
20349 libdir=$save_libdir
20350
20351fi
20352
20353 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020354
20355 # This implies no fast_install, which is unacceptable.
20356 # Some rework will be needed to allow for fast_install
20357 # before this can be enabled.
20358 hardcode_into_libs=yes
20359
20360 # Add ABI-specific directories to the system library path.
20361 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20362
20363 # Append ld.so.conf contents to the search path
20364 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020365 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 +000020366 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020367
cristy73bd4a52010-10-05 11:24:23 +000020368 fi
20369
20370 # We used to test for /lib/ld.so.1 and disable shared libraries on
20371 # powerpc, because MkLinux only supported shared libraries with the
20372 # GNU dynamic linker. Since this was broken with cross compilers,
20373 # most powerpc-linux boxes support dynamic linking these days and
20374 # people can always --disable-shared, the test was removed, and we
20375 # assume the GNU/Linux dynamic linker is in use.
20376 dynamic_linker='GNU/Linux ld.so'
20377 ;;
20378
20379netbsd*)
20380 version_type=sunos
20381 need_lib_prefix=no
20382 need_version=no
20383 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20386 dynamic_linker='NetBSD (a.out) ld.so'
20387 else
20388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20389 soname_spec='${libname}${release}${shared_ext}$major'
20390 dynamic_linker='NetBSD ld.elf_so'
20391 fi
20392 shlibpath_var=LD_LIBRARY_PATH
20393 shlibpath_overrides_runpath=yes
20394 hardcode_into_libs=yes
20395 ;;
20396
20397newsos6)
cristy99bd5232011-12-07 14:38:20 +000020398 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20400 shlibpath_var=LD_LIBRARY_PATH
20401 shlibpath_overrides_runpath=yes
20402 ;;
20403
20404*nto* | *qnx*)
20405 version_type=qnx
20406 need_lib_prefix=no
20407 need_version=no
20408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20409 soname_spec='${libname}${release}${shared_ext}$major'
20410 shlibpath_var=LD_LIBRARY_PATH
20411 shlibpath_overrides_runpath=no
20412 hardcode_into_libs=yes
20413 dynamic_linker='ldqnx.so'
20414 ;;
20415
20416openbsd*)
20417 version_type=sunos
20418 sys_lib_dlsearch_path_spec="/usr/lib"
20419 need_lib_prefix=no
20420 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20421 case $host_os in
20422 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20423 *) need_version=no ;;
20424 esac
20425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20427 shlibpath_var=LD_LIBRARY_PATH
20428 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20429 case $host_os in
20430 openbsd2.[89] | openbsd2.[89].*)
20431 shlibpath_overrides_runpath=no
20432 ;;
20433 *)
20434 shlibpath_overrides_runpath=yes
20435 ;;
20436 esac
20437 else
20438 shlibpath_overrides_runpath=yes
20439 fi
20440 ;;
20441
20442os2*)
20443 libname_spec='$name'
20444 shrext_cmds=".dll"
20445 need_lib_prefix=no
20446 library_names_spec='$libname${shared_ext} $libname.a'
20447 dynamic_linker='OS/2 ld.exe'
20448 shlibpath_var=LIBPATH
20449 ;;
20450
20451osf3* | osf4* | osf5*)
20452 version_type=osf
20453 need_lib_prefix=no
20454 need_version=no
20455 soname_spec='${libname}${release}${shared_ext}$major'
20456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20457 shlibpath_var=LD_LIBRARY_PATH
20458 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20459 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20460 ;;
20461
20462rdos*)
20463 dynamic_linker=no
20464 ;;
20465
20466solaris*)
cristy99bd5232011-12-07 14:38:20 +000020467 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020468 need_lib_prefix=no
20469 need_version=no
20470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20471 soname_spec='${libname}${release}${shared_ext}$major'
20472 shlibpath_var=LD_LIBRARY_PATH
20473 shlibpath_overrides_runpath=yes
20474 hardcode_into_libs=yes
20475 # ldd complains unless libraries are executable
20476 postinstall_cmds='chmod +x $lib'
20477 ;;
20478
20479sunos4*)
20480 version_type=sunos
20481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20482 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20483 shlibpath_var=LD_LIBRARY_PATH
20484 shlibpath_overrides_runpath=yes
20485 if test "$with_gnu_ld" = yes; then
20486 need_lib_prefix=no
20487 fi
20488 need_version=yes
20489 ;;
20490
20491sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020492 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20494 soname_spec='${libname}${release}${shared_ext}$major'
20495 shlibpath_var=LD_LIBRARY_PATH
20496 case $host_vendor in
20497 sni)
20498 shlibpath_overrides_runpath=no
20499 need_lib_prefix=no
20500 runpath_var=LD_RUN_PATH
20501 ;;
20502 siemens)
20503 need_lib_prefix=no
20504 ;;
20505 motorola)
20506 need_lib_prefix=no
20507 need_version=no
20508 shlibpath_overrides_runpath=no
20509 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20510 ;;
20511 esac
20512 ;;
20513
20514sysv4*MP*)
20515 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020516 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020517 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20518 soname_spec='$libname${shared_ext}.$major'
20519 shlibpath_var=LD_LIBRARY_PATH
20520 fi
20521 ;;
20522
20523sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20524 version_type=freebsd-elf
20525 need_lib_prefix=no
20526 need_version=no
20527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20528 soname_spec='${libname}${release}${shared_ext}$major'
20529 shlibpath_var=LD_LIBRARY_PATH
20530 shlibpath_overrides_runpath=yes
20531 hardcode_into_libs=yes
20532 if test "$with_gnu_ld" = yes; then
20533 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20534 else
20535 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20536 case $host_os in
20537 sco3.2v5*)
20538 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20539 ;;
20540 esac
20541 fi
20542 sys_lib_dlsearch_path_spec='/usr/lib'
20543 ;;
20544
20545tpf*)
20546 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020547 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020548 need_lib_prefix=no
20549 need_version=no
20550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20551 shlibpath_var=LD_LIBRARY_PATH
20552 shlibpath_overrides_runpath=no
20553 hardcode_into_libs=yes
20554 ;;
20555
20556uts4*)
cristy99bd5232011-12-07 14:38:20 +000020557 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20559 soname_spec='${libname}${release}${shared_ext}$major'
20560 shlibpath_var=LD_LIBRARY_PATH
20561 ;;
20562
20563*)
20564 dynamic_linker=no
20565 ;;
20566esac
20567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20568$as_echo "$dynamic_linker" >&6; }
20569test "$dynamic_linker" = no && can_build_shared=no
20570
20571variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20572if test "$GCC" = yes; then
20573 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20574fi
20575
20576if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20577 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20578fi
20579if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20580 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20581fi
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
20612
20613
20614
20615
20616
20617
cristy0c60a692010-11-04 01:09:47 +000020618
20619
cristy73bd4a52010-10-05 11:24:23 +000020620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20621$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20622hardcode_action_CXX=
20623if test -n "$hardcode_libdir_flag_spec_CXX" ||
20624 test -n "$runpath_var_CXX" ||
20625 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20626
20627 # We can hardcode non-existent directories.
20628 if test "$hardcode_direct_CXX" != no &&
20629 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20630 # have to relink, otherwise we might link with an installed library
20631 # when we should be linking with a yet-to-be-installed one
20632 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20633 test "$hardcode_minus_L_CXX" != no; then
20634 # Linking always hardcodes the temporary library directory.
20635 hardcode_action_CXX=relink
20636 else
20637 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20638 hardcode_action_CXX=immediate
20639 fi
20640else
20641 # We cannot hardcode anything, or else we can only hardcode existing
20642 # directories.
20643 hardcode_action_CXX=unsupported
20644fi
20645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20646$as_echo "$hardcode_action_CXX" >&6; }
20647
20648if test "$hardcode_action_CXX" = relink ||
20649 test "$inherit_rpath_CXX" = yes; then
20650 # Fast installation is not supported
20651 enable_fast_install=no
20652elif test "$shlibpath_overrides_runpath" = yes ||
20653 test "$enable_shared" = no; then
20654 # Fast installation is not necessary
20655 enable_fast_install=needless
20656fi
20657
20658
20659
20660
20661
20662
20663
20664 fi # test -n "$compiler"
20665
20666 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020667 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020668 LDCXX=$LD
20669 LD=$lt_save_LD
20670 GCC=$lt_save_GCC
20671 with_gnu_ld=$lt_save_with_gnu_ld
20672 lt_cv_path_LDCXX=$lt_cv_path_LD
20673 lt_cv_path_LD=$lt_save_path_LD
20674 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20675 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20676fi # test "$_lt_caught_CXX_error" != yes
20677
20678ac_ext=c
20679ac_cpp='$CPP $CPPFLAGS'
20680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20682ac_compiler_gnu=$ac_cv_c_compiler_gnu
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
cristy99bd5232011-12-07 14:38:20 +000020696
20697
cristy73bd4a52010-10-05 11:24:23 +000020698 ac_config_commands="$ac_config_commands libtool"
20699
20700
20701
20702
20703# Only expand once:
20704
20705
20706
cristy3ed852e2009-09-05 21:47:34 +000020707
20708
cristy3ed852e2009-09-05 21:47:34 +000020709# Check to see if building shared libraries
20710libtool_build_shared_libs='no'
20711if test "$enable_shared" = 'yes'; then
20712 libtool_build_shared_libs='yes'
20713fi
20714
20715# Check to see if building static libraries
20716libtool_build_static_libs='no'
20717if test "$enable_static" = 'yes'; then
20718 libtool_build_static_libs='yes'
20719fi
20720
cristy73bd4a52010-10-05 11:24:23 +000020721 if test "${libtool_build_shared_libs}" = 'yes'; then
20722 WITH_SHARED_LIBS_TRUE=
20723 WITH_SHARED_LIBS_FALSE='#'
20724else
20725 WITH_SHARED_LIBS_TRUE='#'
20726 WITH_SHARED_LIBS_FALSE=
20727fi
20728
cristy3ed852e2009-09-05 21:47:34 +000020729#
20730# Enable support for building loadable modules
20731#
cristyaf4cbf32012-10-16 23:47:41 +000020732build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020733
20734# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020735if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020736 withval=$with_modules; with_modules=$withval
20737else
cristy5a1cefd2010-01-06 20:42:35 +000020738 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020739fi
20740
20741
20742# Only allow building loadable modules if we are building shared libraries
20743if test "$with_modules" != 'no' ; then
20744 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020745 { $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 +000020746$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020747 build_modules='no'
20748 else
20749 build_modules='yes'
20750 fi
cristy3ed852e2009-09-05 21:47:34 +000020751fi
cristyc6722092012-10-14 00:19:31 +000020752if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020753
cristy8b350f62009-11-15 23:12:43 +000020754$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020755
cristyfa161182012-12-19 15:45:28 +000020756 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000020757fi
cristyc6722092012-10-14 00:19:31 +000020758 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020759 WITH_MODULES_TRUE=
20760 WITH_MODULES_FALSE='#'
20761else
20762 WITH_MODULES_TRUE='#'
20763 WITH_MODULES_FALSE=
20764fi
20765
cristy3ed852e2009-09-05 21:47:34 +000020766
cristy3ed852e2009-09-05 21:47:34 +000020767# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020768# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020769# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020770if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020771 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20772else
20773 enable_delegate_build='no'
20774fi
20775
20776
20777# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020778if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020779 enableval=$enable_deprecated; enable_deprecated=$enableval
20780else
20781 enable_deprecated='no'
20782fi
20783
20784
20785if test "$enable_deprecated" = 'yes'; then
20786
cristy8b350f62009-11-15 23:12:43 +000020787$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020788
20789else
20790 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20791fi
20792
20793# Build a version of ImageMagick which operates uninstalled.
20794# Used to build distributions located via MAGICK_HOME / executable path
20795# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020796if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020797 enableval=$enable_installed; enable_installed=$enableval
20798else
20799 enable_installed='yes'
20800fi
20801
20802
20803if test "$enable_installed" = 'yes'; then
20804
cristy8b350f62009-11-15 23:12:43 +000020805$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020806
20807else
20808 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20809fi
20810
20811# Permit enciphering and deciphering image pixels.
20812# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020813if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020814 enableval=$enable_cipher; enable_cipher=$enableval
20815else
20816 enable_cipher='yes'
20817fi
20818
20819
20820if test "$enable_cipher" = 'yes'; then
20821
cristy8b350f62009-11-15 23:12:43 +000020822$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020823
20824fi
20825
cristy6e3607c2011-09-13 13:59:17 +000020826# Build a zero-configuration version of ImageMagick.
20827# Check whether --enable-zero-configuration was given.
20828if test "${enable_zero_configuration+set}" = set; then :
20829 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000020830else
cristy6e3607c2011-09-13 13:59:17 +000020831 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000020832fi
20833
20834
cristy6e3607c2011-09-13 13:59:17 +000020835if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000020836
cristy6e3607c2011-09-13 13:59:17 +000020837$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020838
cristy81af5702011-09-13 14:20:58 +000020839 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020840fi
20841
20842# Build a high dynamic range version of ImageMagick.
20843# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020844if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020845 enableval=$enable_hdri; enable_hdri=$enableval
20846else
cristy191c0b72012-08-12 16:29:52 +000020847 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000020848fi
20849
20850
20851MAGICK_HDRI=""
20852if test "$enable_hdri" = 'yes'; then
20853 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000020854 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000020855 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000020856else
20857 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000020858fi
20859
cristye52f12f2012-12-31 15:32:36 +000020860cat >>confdefs.h <<_ACEOF
20861#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
20862_ACEOF
20863
20864MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
20865CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000020866CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000020867
cristy3ed852e2009-09-05 21:47:34 +000020868# Build a version of ImageMagick with assert statements.
20869# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020870if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020871 enableval=$enable_assert; enable_assert=$enableval
20872else
20873 enable_assert='yes'
20874fi
20875
20876
20877if test "$enable_assert" = 'no'; then
20878
cristy8b350f62009-11-15 23:12:43 +000020879$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020880
20881fi
20882
cristya448bd22011-10-14 12:38:13 +000020883# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000020884
20885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20886$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20887 # Check whether --enable-maintainer-mode was given.
20888if test "${enable_maintainer_mode+set}" = set; then :
20889 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20890else
20891 USE_MAINTAINER_MODE=no
20892fi
20893
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20895$as_echo "$USE_MAINTAINER_MODE" >&6; }
20896 if test $USE_MAINTAINER_MODE = yes; then
20897 MAINTAINER_MODE_TRUE=
20898 MAINTAINER_MODE_FALSE='#'
20899else
20900 MAINTAINER_MODE_TRUE='#'
20901 MAINTAINER_MODE_FALSE=
20902fi
20903
20904 MAINT=$MAINTAINER_MODE_TRUE
20905
20906
cristy3ed852e2009-09-05 21:47:34 +000020907
cristy3ed852e2009-09-05 21:47:34 +000020908# Enable ccmalloc memory debugging support
20909# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020910if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020911 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20912else
20913 enable_ccmalloc='no'
20914fi
20915
20916
20917# Enable Electric Fence memory debugging support
20918# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020919if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020920 enableval=$enable_efence; enable_efence=$enableval
20921else
20922 enable_efence='no'
20923fi
20924
20925
20926# Enable prof-based profiling support
20927# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020928if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020929 enableval=$enable_prof; enable_prof=$enableval
20930else
20931 enable_prof='no'
20932fi
20933
20934
20935# Enable gprof-based profiling support
20936# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020937if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020938 enableval=$enable_gprof; enable_gprof=$enableval
20939else
20940 enable_gprof='no'
20941fi
20942
20943
20944# Enable gcov-based profiling support
20945# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020946if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020947 enableval=$enable_gcov; enable_gcov=$enableval
20948else
20949 enable_gcov='no'
20950fi
20951
20952
20953enable_profiling='no'
20954if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20955 enable_profiling='yes'
20956 if test "$libtool_build_shared_libs" = 'yes'; then
20957 echo "Warning: Can not profile code using shared libraries"
20958 fi
20959fi
20960
20961# Magick API method prefix
20962
20963# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020964if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000020965 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000020966else
cristyfc3d0222012-02-07 15:05:57 +000020967 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000020968fi
20969
20970
cristyfc3d0222012-02-07 15:05:57 +000020971if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000020972
20973cat >>confdefs.h <<_ACEOF
20974#define NAMESPACE_PREFIX $with_method_prefix
20975_ACEOF
20976
cristyfc3d0222012-02-07 15:05:57 +000020977 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000020978fi
20979
cristy71d8c202012-03-20 17:05:01 +000020980# Enable legacy support (default no)
20981# Check whether --enable-legacy-support was given.
20982if test "${enable_legacy_support+set}" = set; then :
20983 enableval=$enable_legacy_support; with_legacy_support=$enableval
20984else
20985 with_legacy_support='no'
20986fi
20987
20988 if test "$with_legacy_support" != 'no'; then
20989 LEGACY_SUPPORT_TRUE=
20990 LEGACY_SUPPORT_FALSE='#'
20991else
20992 LEGACY_SUPPORT_TRUE='#'
20993 LEGACY_SUPPORT_FALSE=
20994fi
20995
20996
cristy3ed852e2009-09-05 21:47:34 +000020997# Number of bits in a Quantum
20998
20999# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021000if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021001 withval=$with_quantum_depth; with_quantum_depth=$withval
21002else
21003 with_quantum_depth=16
21004fi
21005
21006
21007if test "$with_quantum_depth" != '8'; then
21008 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21009fi
21010
21011case "${with_quantum_depth}" in
21012 8 ) ;;
21013 16 ) ;;
21014 32 ) ;;
21015 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021016 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021017esac
21018QUANTUM_DEPTH="$with_quantum_depth"
21019
21020cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021021#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021022_ACEOF
21023
cristye52f12f2012-12-31 15:32:36 +000021024MAGICKCORE_PCFLAGS="$MAGICKCORE_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
21025CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021026CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021027
cristy01ff9f32012-12-01 18:15:29 +000021028# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021029MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021030if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021031 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021032fi
cristy01ff9f32012-12-01 18:15:29 +000021033
21034
cristy3ed852e2009-09-05 21:47:34 +000021035# Set pixel cache threshold
21036
21037# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021038if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021039 withval=$with_cache; with_cache=$withval
21040else
21041 with_cache=''
21042fi
21043
21044
21045if test "$with_cache" != ''; then
21046
21047cat >>confdefs.h <<_ACEOF
21048#define PixelCacheThreshold $with_cache
21049_ACEOF
21050
21051 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21052fi
21053
21054# Disable/Enable support for full delegate paths
21055
21056# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021057if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021058 withval=$with_frozenpaths; with_frozenpaths=$withval
21059else
21060 with_frozenpaths='no'
21061fi
21062
21063
21064# Enable build/install of Magick++
21065
21066# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021067if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021068 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21069else
21070 with_magick_plus_plus='yes'
21071fi
21072
21073
cristy3a75f062012-09-08 23:29:40 +000021074# Encode the this name into the shared library.
21075
21076# Check whether --with-package-release-name was given.
21077if test "${with_package_release_name+set}" = set; then :
21078 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21079fi
21080
21081
21082
cristy3ed852e2009-09-05 21:47:34 +000021083# Disable build/install of PerlMagick.
21084
21085# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021086if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021087 withval=$with_perl; with_perl=$withval
21088else
cristyb5f4e2f2010-04-25 00:49:11 +000021089 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021090fi
21091
21092
21093# Options to pass when configuring PerlMagick
21094
21095# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021096if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021097 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021098fi
21099
21100
cristy3ed852e2009-09-05 21:47:34 +000021101
21102# Enable umem, object-caching memory allocation library.
21103
21104# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021105if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021106 withval=$with_umem; with_umem=$withval
21107else
21108 with_umem='no'
21109fi
21110
21111if test "$with_umem" != 'yes' ; then
21112 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21113fi
21114
21115#
21116# Specify path to shared libstdc++ if not in normal location
21117#
21118
21119# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021120if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021121 withval=$with_libstdc; with_libstdc=$withval
21122else
21123 with_libstdc=''
21124fi
21125
21126
21127if test "$with_libstdc" != ''; then
21128 if test -d "$with_libstdc"; then
21129 LIBSTDCLDFLAGS="-L$with_libstdc"
21130 fi
21131fi
21132
21133
21134# Does gcc required -traditional?
21135if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021137$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021138if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021139 $as_echo_n "(cached) " >&6
21140else
21141 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021143/* end confdefs.h. */
21144#include <sgtty.h>
21145Autoconf TIOCGETP
21146_ACEOF
21147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021148 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021149 ac_cv_prog_gcc_traditional=yes
21150else
21151 ac_cv_prog_gcc_traditional=no
21152fi
21153rm -f conftest*
21154
21155
21156 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021158/* end confdefs.h. */
21159#include <termio.h>
21160Autoconf TCGETA
21161_ACEOF
21162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021163 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021164 ac_cv_prog_gcc_traditional=yes
21165fi
21166rm -f conftest*
21167
21168 fi
21169fi
cristy8b350f62009-11-15 23:12:43 +000021170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021171$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21172 if test $ac_cv_prog_gcc_traditional = yes; then
21173 CC="$CC -traditional"
21174 fi
21175fi
21176
21177
21178########
21179#
21180# Set defines required to build DLLs and modules using MinGW
21181#
21182########
21183# These options are set for multi-thread DLL module build
21184# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21185# module: _DLL
21186# executable/Magick++: _DLL _MAGICKMOD_
21187MODULE_EXTRA_CPPFLAGS=''
21188LIBRARY_EXTRA_CPPFLAGS=''
21189if test "${native_win32_build}" = 'yes'; then
21190 if test "${libtool_build_shared_libs}" = 'yes'; then
21191 CPPFLAGS="$CPPFLAGS -D_DLL"
21192 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21193 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21194 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021195 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021196 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21197 else
21198 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21199 fi
21200 else
21201 CPPFLAGS="$CPPFLAGS -D_LIB"
21202 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21203 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21204 fi
21205 if test "$with_threads" = 'yes'; then
21206 CPPFLAGS="$CPPFLAGS -D_MT"
21207 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21208 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21209 fi
21210fi
21211
21212
21213
21214# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021216$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021217if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021218 $as_echo_n "(cached) " >&6
21219else
cristy8b350f62009-11-15 23:12:43 +000021220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021221/* end confdefs.h. */
21222#include <stdlib.h>
21223#include <stdarg.h>
21224#include <string.h>
21225#include <float.h>
21226
21227int
21228main ()
21229{
21230
21231 ;
21232 return 0;
21233}
21234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021235if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021236 ac_cv_header_stdc=yes
21237else
cristy8b350f62009-11-15 23:12:43 +000021238 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021239fi
cristy3ed852e2009-09-05 21:47:34 +000021240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21241
21242if test $ac_cv_header_stdc = yes; then
21243 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021245/* end confdefs.h. */
21246#include <string.h>
21247
21248_ACEOF
21249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021250 $EGREP "memchr" >/dev/null 2>&1; then :
21251
cristy3ed852e2009-09-05 21:47:34 +000021252else
21253 ac_cv_header_stdc=no
21254fi
21255rm -f conftest*
21256
21257fi
21258
21259if test $ac_cv_header_stdc = yes; then
21260 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021262/* end confdefs.h. */
21263#include <stdlib.h>
21264
21265_ACEOF
21266if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021267 $EGREP "free" >/dev/null 2>&1; then :
21268
cristy3ed852e2009-09-05 21:47:34 +000021269else
21270 ac_cv_header_stdc=no
21271fi
21272rm -f conftest*
21273
21274fi
21275
21276if test $ac_cv_header_stdc = yes; then
21277 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021278 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021279 :
21280else
cristy8b350f62009-11-15 23:12:43 +000021281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021282/* end confdefs.h. */
21283#include <ctype.h>
21284#include <stdlib.h>
21285#if ((' ' & 0x0FF) == 0x020)
21286# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21287# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21288#else
21289# define ISLOWER(c) \
21290 (('a' <= (c) && (c) <= 'i') \
21291 || ('j' <= (c) && (c) <= 'r') \
21292 || ('s' <= (c) && (c) <= 'z'))
21293# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21294#endif
21295
21296#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21297int
21298main ()
21299{
21300 int i;
21301 for (i = 0; i < 256; i++)
21302 if (XOR (islower (i), ISLOWER (i))
21303 || toupper (i) != TOUPPER (i))
21304 return 2;
21305 return 0;
21306}
21307_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021308if ac_fn_c_try_run "$LINENO"; then :
21309
cristy3ed852e2009-09-05 21:47:34 +000021310else
cristy8b350f62009-11-15 23:12:43 +000021311 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021312fi
cristy8b350f62009-11-15 23:12:43 +000021313rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21314 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021315fi
21316
cristy3ed852e2009-09-05 21:47:34 +000021317fi
21318fi
cristy8b350f62009-11-15 23:12:43 +000021319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021320$as_echo "$ac_cv_header_stdc" >&6; }
21321if test $ac_cv_header_stdc = yes; then
21322
cristy8b350f62009-11-15 23:12:43 +000021323$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021324
21325fi
21326
21327if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021328 { $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 +000021329 header files. Compilation cannot proceed. Please install the ANSI C
21330 headers and rerun this script." >&5
21331$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21332 header files. Compilation cannot proceed. Please install the ANSI C
21333 headers and rerun this script." >&2;};
21334fi
cristya0b81c32010-01-22 02:54:33 +000021335
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21337$as_echo_n "checking whether to enable assertions... " >&6; }
21338 # Check whether --enable-assert was given.
21339if test "${enable_assert+set}" = set; then :
21340 enableval=$enable_assert; ac_enable_assert=$enableval
21341 if test "x$enableval" = xno; then :
21342
21343$as_echo "#define NDEBUG 1" >>confdefs.h
21344
21345elif test "x$enableval" != xyes; then :
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21347$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21348 ac_enable_assert=yes
21349fi
21350else
21351 ac_enable_assert=yes
21352fi
21353
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21355$as_echo "$ac_enable_assert" >&6; }
21356
cristy3ed852e2009-09-05 21:47:34 +000021357ac_header_dirent=no
21358for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21359 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021361$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021362if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021363 $as_echo_n "(cached) " >&6
21364else
cristy8b350f62009-11-15 23:12:43 +000021365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021366/* end confdefs.h. */
21367#include <sys/types.h>
21368#include <$ac_hdr>
21369
21370int
21371main ()
21372{
21373if ((DIR *) 0)
21374return 0;
21375 ;
21376 return 0;
21377}
21378_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021379if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021380 eval "$as_ac_Header=yes"
21381else
cristy8b350f62009-11-15 23:12:43 +000021382 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021383fi
cristy3ed852e2009-09-05 21:47:34 +000021384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21385fi
cristy8b350f62009-11-15 23:12:43 +000021386eval ac_res=\$$as_ac_Header
21387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021388$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021389if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021390 cat >>confdefs.h <<_ACEOF
21391#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21392_ACEOF
21393
21394ac_header_dirent=$ac_hdr; break
21395fi
21396
21397done
21398# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21399if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021401$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021402if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021403 $as_echo_n "(cached) " >&6
21404else
21405 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021407/* end confdefs.h. */
21408
21409/* Override any GCC internal prototype to avoid an error.
21410 Use char because int might match the return type of a GCC
21411 builtin and then its argument prototype would still apply. */
21412#ifdef __cplusplus
21413extern "C"
21414#endif
21415char opendir ();
21416int
21417main ()
21418{
21419return opendir ();
21420 ;
21421 return 0;
21422}
21423_ACEOF
21424for ac_lib in '' dir; do
21425 if test -z "$ac_lib"; then
21426 ac_res="none required"
21427 else
21428 ac_res=-l$ac_lib
21429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21430 fi
cristy8b350f62009-11-15 23:12:43 +000021431 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021432 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021433fi
cristy8b350f62009-11-15 23:12:43 +000021434rm -f core conftest.err conftest.$ac_objext \
21435 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021436 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021437 break
21438fi
21439done
cristyda16f162011-02-19 23:52:17 +000021440if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021441
cristy3ed852e2009-09-05 21:47:34 +000021442else
21443 ac_cv_search_opendir=no
21444fi
21445rm conftest.$ac_ext
21446LIBS=$ac_func_search_save_LIBS
21447fi
cristy8b350f62009-11-15 23:12:43 +000021448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021449$as_echo "$ac_cv_search_opendir" >&6; }
21450ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021451if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21453
21454fi
21455
21456else
cristy8b350f62009-11-15 23:12:43 +000021457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021458$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021459if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021460 $as_echo_n "(cached) " >&6
21461else
21462 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021464/* end confdefs.h. */
21465
21466/* Override any GCC internal prototype to avoid an error.
21467 Use char because int might match the return type of a GCC
21468 builtin and then its argument prototype would still apply. */
21469#ifdef __cplusplus
21470extern "C"
21471#endif
21472char opendir ();
21473int
21474main ()
21475{
21476return opendir ();
21477 ;
21478 return 0;
21479}
21480_ACEOF
21481for ac_lib in '' x; do
21482 if test -z "$ac_lib"; then
21483 ac_res="none required"
21484 else
21485 ac_res=-l$ac_lib
21486 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21487 fi
cristy8b350f62009-11-15 23:12:43 +000021488 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021489 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021490fi
cristy8b350f62009-11-15 23:12:43 +000021491rm -f core conftest.err conftest.$ac_objext \
21492 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021493 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021494 break
21495fi
21496done
cristyda16f162011-02-19 23:52:17 +000021497if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021498
cristy3ed852e2009-09-05 21:47:34 +000021499else
21500 ac_cv_search_opendir=no
21501fi
21502rm conftest.$ac_ext
21503LIBS=$ac_func_search_save_LIBS
21504fi
cristy8b350f62009-11-15 23:12:43 +000021505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021506$as_echo "$ac_cv_search_opendir" >&6; }
21507ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021508if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21510
21511fi
21512
21513fi
21514
21515
21516# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021517for ac_header in arm/limits.h arpa/inet.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 +000021518do :
21519 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21520ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021521if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021522 cat >>confdefs.h <<_ACEOF
21523#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21524_ACEOF
21525
21526fi
21527
21528done
21529
21530
21531########
21532#
21533# Checks for typedefs, structures, and compiler characteristics.
21534#
21535########
21536
cristy8b350f62009-11-15 23:12:43 +000021537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021538$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021539if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021540 $as_echo_n "(cached) " >&6
21541else
cristy8b350f62009-11-15 23:12:43 +000021542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021543/* end confdefs.h. */
21544
cristy14fefe52012-05-21 00:59:18 +000021545 #include <stdbool.h>
21546 #ifndef bool
21547 "error: bool is not defined"
21548 #endif
21549 #ifndef false
21550 "error: false is not defined"
21551 #endif
21552 #if false
21553 "error: false is not 0"
21554 #endif
21555 #ifndef true
21556 "error: true is not defined"
21557 #endif
21558 #if true != 1
21559 "error: true is not 1"
21560 #endif
21561 #ifndef __bool_true_false_are_defined
21562 "error: __bool_true_false_are_defined is not defined"
21563 #endif
cristy3ed852e2009-09-05 21:47:34 +000021564
cristy14fefe52012-05-21 00:59:18 +000021565 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021566
cristy14fefe52012-05-21 00:59:18 +000021567 char a[true == 1 ? 1 : -1];
21568 char b[false == 0 ? 1 : -1];
21569 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21570 char d[(bool) 0.5 == true ? 1 : -1];
21571 /* See body of main program for 'e'. */
21572 char f[(_Bool) 0.0 == false ? 1 : -1];
21573 char g[true];
21574 char h[sizeof (_Bool)];
21575 char i[sizeof s.t];
21576 enum { j = false, k = true, l = false * true, m = true * 256 };
21577 /* The following fails for
21578 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21579 _Bool n[m];
21580 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21581 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21582 /* Catch a bug in an HP-UX C compiler. See
21583 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21584 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21585 */
21586 _Bool q = true;
21587 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021588
21589int
21590main ()
21591{
21592
cristy14fefe52012-05-21 00:59:18 +000021593 bool e = &s;
21594 *pq |= q;
21595 *pq |= ! q;
21596 /* Refer to every declared value, to avoid compiler optimizations. */
21597 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21598 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021599
21600 ;
21601 return 0;
21602}
21603_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021604if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021605 ac_cv_header_stdbool_h=yes
21606else
cristy8b350f62009-11-15 23:12:43 +000021607 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021608fi
cristy3ed852e2009-09-05 21:47:34 +000021609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21610fi
cristy8b350f62009-11-15 23:12:43 +000021611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021612$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021613 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021614if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021615
21616cat >>confdefs.h <<_ACEOF
21617#define HAVE__BOOL 1
21618_ACEOF
21619
21620
21621fi
21622
cristy14fefe52012-05-21 00:59:18 +000021623
cristy3ed852e2009-09-05 21:47:34 +000021624if test $ac_cv_header_stdbool_h = yes; then
21625
cristy8b350f62009-11-15 23:12:43 +000021626$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021627
21628fi
21629
cristy8b350f62009-11-15 23:12:43 +000021630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021631$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021632if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021633 $as_echo_n "(cached) " >&6
21634else
cristy8b350f62009-11-15 23:12:43 +000021635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021636/* end confdefs.h. */
21637
21638int
21639main ()
21640{
21641
21642volatile int x;
21643int * volatile y = (int *) 0;
21644return !x && !y;
21645 ;
21646 return 0;
21647}
21648_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021649if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021650 ac_cv_c_volatile=yes
21651else
cristy8b350f62009-11-15 23:12:43 +000021652 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021653fi
cristy3ed852e2009-09-05 21:47:34 +000021654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655fi
cristy8b350f62009-11-15 23:12:43 +000021656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021657$as_echo "$ac_cv_c_volatile" >&6; }
21658if test $ac_cv_c_volatile = no; then
21659
cristy8b350f62009-11-15 23:12:43 +000021660$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021661
21662fi
21663
cristy8b350f62009-11-15 23:12:43 +000021664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021665$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021666if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021667 $as_echo_n "(cached) " >&6
21668else
cristy8b350f62009-11-15 23:12:43 +000021669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021670/* end confdefs.h. */
21671#define x(y) #y
21672
21673char *s = x(teststring);
21674_ACEOF
21675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021676 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021677 ac_cv_c_stringize=no
21678else
21679 ac_cv_c_stringize=yes
21680fi
21681rm -f conftest*
21682
21683fi
cristy8b350f62009-11-15 23:12:43 +000021684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021685$as_echo "$ac_cv_c_stringize" >&6; }
21686if test $ac_cv_c_stringize = yes; then
21687
cristy8b350f62009-11-15 23:12:43 +000021688$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021689
21690fi
21691
cristy8b350f62009-11-15 23:12:43 +000021692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021693$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021694if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021695 $as_echo_n "(cached) " >&6
21696else
cristy8b350f62009-11-15 23:12:43 +000021697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021698/* end confdefs.h. */
21699#include <sys/types.h>
21700#include <sys/stat.h>
21701
21702#if defined S_ISBLK && defined S_IFDIR
21703extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21704#endif
21705
21706#if defined S_ISBLK && defined S_IFCHR
21707extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21708#endif
21709
21710#if defined S_ISLNK && defined S_IFREG
21711extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21712#endif
21713
21714#if defined S_ISSOCK && defined S_IFREG
21715extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21716#endif
21717
21718_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021719if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021720 ac_cv_header_stat_broken=no
21721else
cristy8b350f62009-11-15 23:12:43 +000021722 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021723fi
cristy3ed852e2009-09-05 21:47:34 +000021724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21725fi
cristy8b350f62009-11-15 23:12:43 +000021726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021727$as_echo "$ac_cv_header_stat_broken" >&6; }
21728if test $ac_cv_header_stat_broken = yes; then
21729
cristy8b350f62009-11-15 23:12:43 +000021730$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021731
21732fi
21733
cristy8b350f62009-11-15 23:12:43 +000021734{ $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 +000021735$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021736if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021737 $as_echo_n "(cached) " >&6
21738else
cristy8b350f62009-11-15 23:12:43 +000021739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021740/* end confdefs.h. */
21741#include <sys/types.h>
21742#include <sys/time.h>
21743#include <time.h>
21744
21745int
21746main ()
21747{
21748if ((struct tm *) 0)
21749return 0;
21750 ;
21751 return 0;
21752}
21753_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021754if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021755 ac_cv_header_time=yes
21756else
cristy8b350f62009-11-15 23:12:43 +000021757 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021758fi
cristy3ed852e2009-09-05 21:47:34 +000021759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21760fi
cristy8b350f62009-11-15 23:12:43 +000021761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021762$as_echo "$ac_cv_header_time" >&6; }
21763if test $ac_cv_header_time = yes; then
21764
cristy8b350f62009-11-15 23:12:43 +000021765$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021766
21767fi
21768
cristy8b350f62009-11-15 23:12:43 +000021769{ $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 +000021770$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021771if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021772 $as_echo_n "(cached) " >&6
21773else
cristy8b350f62009-11-15 23:12:43 +000021774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021775/* end confdefs.h. */
21776#include <sys/types.h>
21777#include <time.h>
21778
21779int
21780main ()
21781{
21782struct tm tm;
21783 int *p = &tm.tm_sec;
21784 return !p;
21785 ;
21786 return 0;
21787}
21788_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021789if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021790 ac_cv_struct_tm=time.h
21791else
cristy8b350f62009-11-15 23:12:43 +000021792 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021793fi
cristy3ed852e2009-09-05 21:47:34 +000021794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21795fi
cristy8b350f62009-11-15 23:12:43 +000021796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021797$as_echo "$ac_cv_struct_tm" >&6; }
21798if test $ac_cv_struct_tm = sys/time.h; then
21799
cristy8b350f62009-11-15 23:12:43 +000021800$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021801
21802fi
21803
cristy92703d82010-04-26 00:18:18 +000021804ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21805#include <$ac_cv_struct_tm>
21806
21807"
cristyda16f162011-02-19 23:52:17 +000021808if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021809
21810cat >>confdefs.h <<_ACEOF
21811#define HAVE_STRUCT_TM_TM_ZONE 1
21812_ACEOF
21813
21814
21815fi
21816
21817if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21818
21819$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21820
21821else
21822 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21823"
cristyda16f162011-02-19 23:52:17 +000021824if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021825 ac_have_decl=1
21826else
21827 ac_have_decl=0
21828fi
21829
21830cat >>confdefs.h <<_ACEOF
21831#define HAVE_DECL_TZNAME $ac_have_decl
21832_ACEOF
21833
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21835$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021836if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021837 $as_echo_n "(cached) " >&6
21838else
21839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21840/* end confdefs.h. */
21841#include <time.h>
21842#if !HAVE_DECL_TZNAME
21843extern char *tzname[];
21844#endif
21845
21846int
21847main ()
21848{
21849return tzname[0][0];
21850 ;
21851 return 0;
21852}
21853_ACEOF
21854if ac_fn_c_try_link "$LINENO"; then :
21855 ac_cv_var_tzname=yes
21856else
21857 ac_cv_var_tzname=no
21858fi
21859rm -f core conftest.err conftest.$ac_objext \
21860 conftest$ac_exeext conftest.$ac_ext
21861fi
21862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21863$as_echo "$ac_cv_var_tzname" >&6; }
21864 if test $ac_cv_var_tzname = yes; then
21865
21866$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21867
21868 fi
21869fi
21870
cristy8b350f62009-11-15 23:12:43 +000021871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021872$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021873if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021874 $as_echo_n "(cached) " >&6
21875else
21876 echo '#! /bin/cat
21877exit 69
21878' >conftest
21879chmod u+x conftest
21880(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21881if test $? -ne 69; then
21882 ac_cv_sys_interpreter=yes
21883else
21884 ac_cv_sys_interpreter=no
21885fi
21886rm -f conftest
21887fi
cristy8b350f62009-11-15 23:12:43 +000021888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021889$as_echo "$ac_cv_sys_interpreter" >&6; }
21890interpval=$ac_cv_sys_interpreter
21891
21892
cristye80f9cb2013-01-09 01:09:31 +000021893#
21894# Checks for language qualifiers and semantics.
21895#
21896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21897$as_echo_n "checking whether char is unsigned... " >&6; }
21898if ${ac_cv_c_char_unsigned+:} false; then :
21899 $as_echo_n "(cached) " >&6
21900else
21901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21902/* end confdefs.h. */
21903$ac_includes_default
21904int
21905main ()
21906{
21907static int test_array [1 - 2 * !(((char) -1) < 0)];
21908test_array [0] = 0;
21909return test_array [0];
21910
21911 ;
21912 return 0;
21913}
21914_ACEOF
21915if ac_fn_c_try_compile "$LINENO"; then :
21916 ac_cv_c_char_unsigned=no
21917else
21918 ac_cv_c_char_unsigned=yes
21919fi
21920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21921fi
21922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21923$as_echo "$ac_cv_c_char_unsigned" >&6; }
21924if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21925 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21926
21927fi
21928
21929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21930$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21931if ${ac_cv_c_const+:} false; then :
21932 $as_echo_n "(cached) " >&6
21933else
21934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21935/* end confdefs.h. */
21936
21937int
21938main ()
21939{
21940
21941#ifndef __cplusplus
21942 /* Ultrix mips cc rejects this sort of thing. */
21943 typedef int charset[2];
21944 const charset cs = { 0, 0 };
21945 /* SunOS 4.1.1 cc rejects this. */
21946 char const *const *pcpcc;
21947 char **ppc;
21948 /* NEC SVR4.0.2 mips cc rejects this. */
21949 struct point {int x, y;};
21950 static struct point const zero = {0,0};
21951 /* AIX XL C 1.02.0.0 rejects this.
21952 It does not let you subtract one const X* pointer from another in
21953 an arm of an if-expression whose if-part is not a constant
21954 expression */
21955 const char *g = "string";
21956 pcpcc = &g + (g ? g-g : 0);
21957 /* HPUX 7.0 cc rejects these. */
21958 ++pcpcc;
21959 ppc = (char**) pcpcc;
21960 pcpcc = (char const *const *) ppc;
21961 { /* SCO 3.2v4 cc rejects this sort of thing. */
21962 char tx;
21963 char *t = &tx;
21964 char const *s = 0 ? (char *) 0 : (char const *) 0;
21965
21966 *t++ = 0;
21967 if (s) return 0;
21968 }
21969 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21970 int x[] = {25, 17};
21971 const int *foo = &x[0];
21972 ++foo;
21973 }
21974 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21975 typedef const int *iptr;
21976 iptr p = 0;
21977 ++p;
21978 }
21979 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
21980 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21981 struct s { int j; const int *ap[3]; } bx;
21982 struct s *b = &bx; b->j = 5;
21983 }
21984 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21985 const int foo = 10;
21986 if (!foo) return 0;
21987 }
21988 return !cs[0] && !zero.x;
21989#endif
21990
21991 ;
21992 return 0;
21993}
21994_ACEOF
21995if ac_fn_c_try_compile "$LINENO"; then :
21996 ac_cv_c_const=yes
21997else
21998 ac_cv_c_const=no
21999fi
22000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22001fi
22002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22003$as_echo "$ac_cv_c_const" >&6; }
22004if test $ac_cv_c_const = no; then
22005
22006$as_echo "#define const /**/" >>confdefs.h
22007
22008fi
22009
cristy8b350f62009-11-15 23:12:43 +000022010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022011$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022012if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022013 $as_echo_n "(cached) " >&6
22014else
22015 ac_cv_c_inline=no
22016for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022018/* end confdefs.h. */
22019#ifndef __cplusplus
22020typedef int foo_t;
22021static $ac_kw foo_t static_foo () {return 0; }
22022$ac_kw foo_t foo () {return 0; }
22023#endif
22024
22025_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022026if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022027 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022028fi
cristy3ed852e2009-09-05 21:47:34 +000022029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22030 test "$ac_cv_c_inline" != no && break
22031done
22032
22033fi
cristy8b350f62009-11-15 23:12:43 +000022034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022035$as_echo "$ac_cv_c_inline" >&6; }
22036
cristy3ed852e2009-09-05 21:47:34 +000022037case $ac_cv_c_inline in
22038 inline | yes) ;;
22039 *)
22040 case $ac_cv_c_inline in
22041 no) ac_val=;;
22042 *) ac_val=$ac_cv_c_inline;;
22043 esac
22044 cat >>confdefs.h <<_ACEOF
22045#ifndef __cplusplus
22046#define inline $ac_val
22047#endif
22048_ACEOF
22049 ;;
22050esac
22051
cristy8b350f62009-11-15 23:12:43 +000022052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022053$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022054if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022055 $as_echo_n "(cached) " >&6
22056else
22057 ac_cv_c_restrict=no
22058 # The order here caters to the fact that C++ does not require restrict.
22059 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022061/* end confdefs.h. */
22062typedef int * int_ptr;
22063 int foo (int_ptr $ac_kw ip) {
22064 return ip[0];
22065 }
22066int
22067main ()
22068{
22069int s[1];
22070 int * $ac_kw t = s;
22071 t[0] = 0;
22072 return foo(t)
22073 ;
22074 return 0;
22075}
22076_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022077if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022078 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022079fi
cristy3ed852e2009-09-05 21:47:34 +000022080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22081 test "$ac_cv_c_restrict" != no && break
22082 done
22083
22084fi
cristy8b350f62009-11-15 23:12:43 +000022085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022086$as_echo "$ac_cv_c_restrict" >&6; }
22087
cristy3ed852e2009-09-05 21:47:34 +000022088 case $ac_cv_c_restrict in
22089 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022090 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022091 ;;
22092 *) cat >>confdefs.h <<_ACEOF
22093#define restrict $ac_cv_c_restrict
22094_ACEOF
22095 ;;
22096 esac
22097
cristye80f9cb2013-01-09 01:09:31 +000022098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22099$as_echo_n "checking for working volatile... " >&6; }
22100if ${ac_cv_c_volatile+:} false; then :
22101 $as_echo_n "(cached) " >&6
22102else
22103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22104/* end confdefs.h. */
22105
22106int
22107main ()
22108{
22109
22110volatile int x;
22111int * volatile y = (int *) 0;
22112return !x && !y;
22113 ;
22114 return 0;
22115}
22116_ACEOF
22117if ac_fn_c_try_compile "$LINENO"; then :
22118 ac_cv_c_volatile=yes
22119else
22120 ac_cv_c_volatile=no
22121fi
22122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22123fi
22124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22125$as_echo "$ac_cv_c_volatile" >&6; }
22126if test $ac_cv_c_volatile = no; then
22127
22128$as_echo "#define volatile /**/" >>confdefs.h
22129
22130fi
22131
cristy3ed852e2009-09-05 21:47:34 +000022132
22133# If words are stored with the most significant byte first (like
22134# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022136$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022137if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022138 $as_echo_n "(cached) " >&6
22139else
22140 ac_cv_c_bigendian=unknown
22141 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022143/* end confdefs.h. */
22144#ifndef __APPLE_CC__
22145 not a universal capable compiler
22146 #endif
22147 typedef int dummy;
22148
22149_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022150if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022151
22152 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022153 # there are at least two -arch flags with different values.
22154 ac_arch=
22155 ac_prev=
22156 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22157 if test -n "$ac_prev"; then
22158 case $ac_word in
22159 i?86 | x86_64 | ppc | ppc64)
22160 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22161 ac_arch=$ac_word
22162 else
22163 ac_cv_c_bigendian=universal
22164 break
22165 fi
22166 ;;
22167 esac
22168 ac_prev=
22169 elif test "x$ac_word" = "x-arch"; then
22170 ac_prev=arch
22171 fi
22172 done
cristy3ed852e2009-09-05 21:47:34 +000022173fi
cristy3ed852e2009-09-05 21:47:34 +000022174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22175 if test $ac_cv_c_bigendian = unknown; then
22176 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022178/* end confdefs.h. */
22179#include <sys/types.h>
22180 #include <sys/param.h>
22181
22182int
22183main ()
22184{
22185#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22186 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22187 && LITTLE_ENDIAN)
22188 bogus endian macros
22189 #endif
22190
22191 ;
22192 return 0;
22193}
22194_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022195if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022196 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022198/* end confdefs.h. */
22199#include <sys/types.h>
22200 #include <sys/param.h>
22201
22202int
22203main ()
22204{
22205#if BYTE_ORDER != BIG_ENDIAN
22206 not big endian
22207 #endif
22208
22209 ;
22210 return 0;
22211}
22212_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022213if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022214 ac_cv_c_bigendian=yes
22215else
cristy8b350f62009-11-15 23:12:43 +000022216 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022217fi
cristy3ed852e2009-09-05 21:47:34 +000022218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022219fi
cristy3ed852e2009-09-05 21:47:34 +000022220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22221 fi
22222 if test $ac_cv_c_bigendian = unknown; then
22223 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022225/* end confdefs.h. */
22226#include <limits.h>
22227
22228int
22229main ()
22230{
22231#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22232 bogus endian macros
22233 #endif
22234
22235 ;
22236 return 0;
22237}
22238_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022239if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022240 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022242/* end confdefs.h. */
22243#include <limits.h>
22244
22245int
22246main ()
22247{
22248#ifndef _BIG_ENDIAN
22249 not big endian
22250 #endif
22251
22252 ;
22253 return 0;
22254}
22255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022256if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022257 ac_cv_c_bigendian=yes
22258else
cristy8b350f62009-11-15 23:12:43 +000022259 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022260fi
cristy3ed852e2009-09-05 21:47:34 +000022261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022262fi
cristy3ed852e2009-09-05 21:47:34 +000022263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22264 fi
22265 if test $ac_cv_c_bigendian = unknown; then
22266 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022267 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022268 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022270/* end confdefs.h. */
22271short int ascii_mm[] =
22272 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22273 short int ascii_ii[] =
22274 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22275 int use_ascii (int i) {
22276 return ascii_mm[i] + ascii_ii[i];
22277 }
22278 short int ebcdic_ii[] =
22279 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22280 short int ebcdic_mm[] =
22281 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22282 int use_ebcdic (int i) {
22283 return ebcdic_mm[i] + ebcdic_ii[i];
22284 }
22285 extern int foo;
22286
22287int
22288main ()
22289{
22290return use_ascii (foo) == use_ebcdic (foo);
22291 ;
22292 return 0;
22293}
22294_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022295if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022296 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22297 ac_cv_c_bigendian=yes
22298 fi
22299 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22300 if test "$ac_cv_c_bigendian" = unknown; then
22301 ac_cv_c_bigendian=no
22302 else
22303 # finding both strings is unlikely to happen, but who knows?
22304 ac_cv_c_bigendian=unknown
22305 fi
22306 fi
cristy3ed852e2009-09-05 21:47:34 +000022307fi
cristy3ed852e2009-09-05 21:47:34 +000022308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22309else
cristy8b350f62009-11-15 23:12:43 +000022310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022311/* end confdefs.h. */
22312$ac_includes_default
22313int
22314main ()
22315{
22316
22317 /* Are we little or big endian? From Harbison&Steele. */
22318 union
22319 {
22320 long int l;
22321 char c[sizeof (long int)];
22322 } u;
22323 u.l = 1;
22324 return u.c[sizeof (long int) - 1] == 1;
22325
22326 ;
22327 return 0;
22328}
22329_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022330if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022331 ac_cv_c_bigendian=no
22332else
cristy8b350f62009-11-15 23:12:43 +000022333 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022334fi
cristy8b350f62009-11-15 23:12:43 +000022335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22336 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022337fi
22338
cristy3ed852e2009-09-05 21:47:34 +000022339 fi
22340fi
cristy8b350f62009-11-15 23:12:43 +000022341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022342$as_echo "$ac_cv_c_bigendian" >&6; }
22343 case $ac_cv_c_bigendian in #(
22344 yes)
cristy8b350f62009-11-15 23:12:43 +000022345 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022346;; #(
22347 no)
22348 ;; #(
22349 universal)
22350
cristy8b350f62009-11-15 23:12:43 +000022351$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022352
22353 ;; #(
22354 *)
cristy98dddb52010-11-04 00:30:15 +000022355 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022356 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022357 esac
22358
22359
cristy501c8042011-05-26 17:46:28 +000022360# Define to a suitable type, if standard headers do not define it.
22361ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22362case $ac_cv_c_int8_t in #(
22363 no|yes) ;; #(
22364 *)
cristy3ed852e2009-09-05 21:47:34 +000022365
22366cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022367#define int8_t $ac_cv_c_int8_t
22368_ACEOF
22369;;
22370esac
22371
22372ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22373case $ac_cv_c_int16_t in #(
22374 no|yes) ;; #(
22375 *)
22376
22377cat >>confdefs.h <<_ACEOF
22378#define int16_t $ac_cv_c_int16_t
22379_ACEOF
22380;;
22381esac
22382
22383ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22384case $ac_cv_c_int32_t in #(
22385 no|yes) ;; #(
22386 *)
22387
22388cat >>confdefs.h <<_ACEOF
22389#define int32_t $ac_cv_c_int32_t
22390_ACEOF
22391;;
22392esac
22393
22394ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22395case $ac_cv_c_int64_t in #(
22396 no|yes) ;; #(
22397 *)
22398
22399cat >>confdefs.h <<_ACEOF
22400#define int64_t $ac_cv_c_int64_t
22401_ACEOF
22402;;
22403esac
22404
22405
cristycc22d1d2012-12-10 13:03:25 +000022406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22407$as_echo_n "checking for unsigned long long int... " >&6; }
22408if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022409 $as_echo_n "(cached) " >&6
22410else
cristycc22d1d2012-12-10 13:03:25 +000022411 ac_cv_type_unsigned_long_long_int=yes
22412 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022414/* end confdefs.h. */
22415
22416 /* For now, do not test the preprocessor; as of 2007 there are too many
cristycc22d1d2012-12-10 13:03:25 +000022417 implementations with broken preprocessors. Perhaps this can
22418 be revisited in 2012. In the meantime, code should not expect
22419 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022420 /* Test literals. */
22421 long long int ll = 9223372036854775807ll;
22422 long long int nll = -9223372036854775807LL;
22423 unsigned long long int ull = 18446744073709551615ULL;
22424 /* Test constant expressions. */
22425 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristycc22d1d2012-12-10 13:03:25 +000022426 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022427 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristycc22d1d2012-12-10 13:03:25 +000022428 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022429 int i = 63;
22430int
22431main ()
22432{
22433/* Test availability of runtime routines for shift and division. */
22434 long long int llmax = 9223372036854775807ll;
22435 unsigned long long int ullmax = 18446744073709551615ull;
22436 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristycc22d1d2012-12-10 13:03:25 +000022437 | (llmax / ll) | (llmax % ll)
22438 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22439 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022440 ;
22441 return 0;
22442}
22443
22444_ACEOF
22445if ac_fn_c_try_link "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022446
22447else
22448 ac_cv_type_unsigned_long_long_int=no
22449fi
22450rm -f core conftest.err conftest.$ac_objext \
22451 conftest$ac_exeext conftest.$ac_ext
22452 fi
22453fi
22454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22455$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22456 if test $ac_cv_type_unsigned_long_long_int = yes; then
22457
22458$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22459
22460 fi
22461
22462
22463
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22465$as_echo_n "checking for long long int... " >&6; }
22466if ${ac_cv_type_long_long_int+:} false; then :
22467 $as_echo_n "(cached) " >&6
22468else
cristy501c8042011-05-26 17:46:28 +000022469 ac_cv_type_long_long_int=yes
cristycc22d1d2012-12-10 13:03:25 +000022470 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22471 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22472 if test $ac_cv_type_long_long_int = yes; then
22473 if test "$cross_compiling" = yes; then :
22474 :
cristy501c8042011-05-26 17:46:28 +000022475else
22476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22477/* end confdefs.h. */
22478#include <limits.h>
cristycc22d1d2012-12-10 13:03:25 +000022479 #ifndef LLONG_MAX
22480 # define HALF \
22481 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22482 # define LLONG_MAX (HALF - 1 + HALF)
22483 #endif
cristy501c8042011-05-26 17:46:28 +000022484int
22485main ()
22486{
22487long long int n = 1;
cristycc22d1d2012-12-10 13:03:25 +000022488 int i;
22489 for (i = 0; ; i++)
22490 {
22491 long long int m = n << i;
22492 if (m >> i != n)
22493 return 1;
22494 if (LLONG_MAX / 2 < m)
22495 break;
22496 }
22497 return 0;
cristy501c8042011-05-26 17:46:28 +000022498 ;
22499 return 0;
22500}
22501_ACEOF
22502if ac_fn_c_try_run "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022503
cristy501c8042011-05-26 17:46:28 +000022504else
22505 ac_cv_type_long_long_int=no
22506fi
22507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22508 conftest.$ac_objext conftest.beam conftest.$ac_ext
22509fi
22510
cristycc22d1d2012-12-10 13:03:25 +000022511 fi
22512 fi
cristy501c8042011-05-26 17:46:28 +000022513fi
22514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22515$as_echo "$ac_cv_type_long_long_int" >&6; }
22516 if test $ac_cv_type_long_long_int = yes; then
22517
22518$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22519
22520 fi
22521
22522
22523
22524 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22525if test "x$ac_cv_type_intmax_t" = xyes; then :
22526
22527$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22528
22529else
22530 test $ac_cv_type_long_long_int = yes \
22531 && ac_type='long long int' \
22532 || ac_type='long int'
22533
22534cat >>confdefs.h <<_ACEOF
22535#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022536_ACEOF
22537
22538fi
22539
22540
cristy501c8042011-05-26 17:46:28 +000022541
22542 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22543if test "x$ac_cv_type_intptr_t" = xyes; then :
22544
22545$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022546
cristy3ed852e2009-09-05 21:47:34 +000022547else
cristy501c8042011-05-26 17:46:28 +000022548 for ac_type in 'int' 'long int' 'long long int'; do
22549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22550/* end confdefs.h. */
22551$ac_includes_default
22552int
22553main ()
22554{
22555static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022556test_array [0] = 0;
22557return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022558
22559 ;
22560 return 0;
22561}
22562_ACEOF
22563if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022564
22565cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022566#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022567_ACEOF
22568
cristy501c8042011-05-26 17:46:28 +000022569 ac_type=
22570fi
22571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22572 test -z "$ac_type" && break
22573 done
cristy3ed852e2009-09-05 21:47:34 +000022574fi
22575
22576
cristy3ed852e2009-09-05 21:47:34 +000022577
cristy501c8042011-05-26 17:46:28 +000022578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22579$as_echo_n "checking for long double... " >&6; }
22580if ${ac_cv_type_long_double+:} false; then :
22581 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022582else
cristy501c8042011-05-26 17:46:28 +000022583 if test "$GCC" = yes; then
22584 ac_cv_type_long_double=yes
22585 else
22586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22587/* end confdefs.h. */
22588/* The Stardent Vistra knows sizeof (long double), but does
22589 not support it. */
22590 long double foo = 0.0L;
22591int
22592main ()
22593{
22594static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22595 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022596test_array [0] = 0;
22597return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022598
cristy501c8042011-05-26 17:46:28 +000022599 ;
22600 return 0;
22601}
cristy3ed852e2009-09-05 21:47:34 +000022602_ACEOF
cristy501c8042011-05-26 17:46:28 +000022603if ac_fn_c_try_compile "$LINENO"; then :
22604 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022605else
cristy501c8042011-05-26 17:46:28 +000022606 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022607fi
cristy501c8042011-05-26 17:46:28 +000022608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22609 fi
cristy3ed852e2009-09-05 21:47:34 +000022610fi
cristy501c8042011-05-26 17:46:28 +000022611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22612$as_echo "$ac_cv_type_long_double" >&6; }
22613 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022614
cristy501c8042011-05-26 17:46:28 +000022615$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022616
cristy501c8042011-05-26 17:46:28 +000022617 fi
22618
cristy3ed852e2009-09-05 21:47:34 +000022619
cristy8b350f62009-11-15 23:12:43 +000022620 { $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 +000022621$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022622if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022623 $as_echo_n "(cached) " >&6
22624else
cristy8b350f62009-11-15 23:12:43 +000022625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022626/* end confdefs.h. */
22627#include <float.h>
22628 long double const a[] =
22629 {
22630 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22631 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22632 };
22633 long double
22634 f (long double x)
22635 {
22636 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22637 + (x ? f (x) : 'c'));
22638 }
22639
22640int
22641main ()
22642{
22643static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22644 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22645 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22646 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22647 && (int) LDBL_EPSILON == 0
22648 )];
cristy14fefe52012-05-21 00:59:18 +000022649test_array [0] = 0;
22650return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022651
22652 ;
22653 return 0;
22654}
22655_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022656if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022657 ac_cv_type_long_double_wider=yes
22658else
cristy8b350f62009-11-15 23:12:43 +000022659 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022660fi
cristy3ed852e2009-09-05 21:47:34 +000022661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22662fi
cristy8b350f62009-11-15 23:12:43 +000022663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022664$as_echo "$ac_cv_type_long_double_wider" >&6; }
22665 if test $ac_cv_type_long_double_wider = yes; then
22666
cristy8b350f62009-11-15 23:12:43 +000022667$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022668
22669 fi
22670
22671
cristycc22d1d2012-12-10 13:03:25 +000022672
cristy501c8042011-05-26 17:46:28 +000022673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22674$as_echo_n "checking for long long int... " >&6; }
22675if ${ac_cv_type_long_long_int+:} false; then :
22676 $as_echo_n "(cached) " >&6
22677else
cristy501c8042011-05-26 17:46:28 +000022678 ac_cv_type_long_long_int=yes
cristycc22d1d2012-12-10 13:03:25 +000022679 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22680 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22681 if test $ac_cv_type_long_long_int = yes; then
22682 if test "$cross_compiling" = yes; then :
22683 :
cristy501c8042011-05-26 17:46:28 +000022684else
22685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22686/* end confdefs.h. */
22687#include <limits.h>
cristycc22d1d2012-12-10 13:03:25 +000022688 #ifndef LLONG_MAX
22689 # define HALF \
22690 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22691 # define LLONG_MAX (HALF - 1 + HALF)
22692 #endif
cristy501c8042011-05-26 17:46:28 +000022693int
22694main ()
22695{
22696long long int n = 1;
cristycc22d1d2012-12-10 13:03:25 +000022697 int i;
22698 for (i = 0; ; i++)
22699 {
22700 long long int m = n << i;
22701 if (m >> i != n)
22702 return 1;
22703 if (LLONG_MAX / 2 < m)
22704 break;
22705 }
22706 return 0;
cristy501c8042011-05-26 17:46:28 +000022707 ;
22708 return 0;
22709}
22710_ACEOF
22711if ac_fn_c_try_run "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000022712
cristy501c8042011-05-26 17:46:28 +000022713else
22714 ac_cv_type_long_long_int=no
22715fi
22716rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22717 conftest.$ac_objext conftest.beam conftest.$ac_ext
22718fi
22719
cristycc22d1d2012-12-10 13:03:25 +000022720 fi
22721 fi
cristy501c8042011-05-26 17:46:28 +000022722fi
22723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22724$as_echo "$ac_cv_type_long_long_int" >&6; }
22725 if test $ac_cv_type_long_long_int = yes; then
22726
22727$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22728
22729 fi
22730
22731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22732$as_echo_n "checking for mbstate_t... " >&6; }
22733if ${ac_cv_type_mbstate_t+:} false; then :
22734 $as_echo_n "(cached) " >&6
22735else
22736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22737/* end confdefs.h. */
22738$ac_includes_default
22739# include <wchar.h>
22740int
22741main ()
22742{
22743mbstate_t x; return sizeof x;
22744 ;
22745 return 0;
22746}
22747_ACEOF
22748if ac_fn_c_try_compile "$LINENO"; then :
22749 ac_cv_type_mbstate_t=yes
22750else
22751 ac_cv_type_mbstate_t=no
22752fi
22753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22754fi
22755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22756$as_echo "$ac_cv_type_mbstate_t" >&6; }
22757 if test $ac_cv_type_mbstate_t = yes; then
22758
22759$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22760
22761 else
22762
22763$as_echo "#define mbstate_t int" >>confdefs.h
22764
22765 fi
22766ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22767if test "x$ac_cv_type_mode_t" = xyes; then :
22768
22769else
22770
22771cat >>confdefs.h <<_ACEOF
22772#define mode_t int
22773_ACEOF
22774
22775fi
22776
22777ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22778if test "x$ac_cv_type_off_t" = xyes; then :
22779
22780else
22781
22782cat >>confdefs.h <<_ACEOF
22783#define off_t long int
22784_ACEOF
22785
22786fi
22787
22788ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22789if test "x$ac_cv_type_pid_t" = xyes; then :
22790
22791else
22792
22793cat >>confdefs.h <<_ACEOF
22794#define pid_t int
22795_ACEOF
22796
22797fi
22798
22799ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22800if test "x$ac_cv_type_size_t" = xyes; then :
22801
22802else
22803
22804cat >>confdefs.h <<_ACEOF
22805#define size_t unsigned int
22806_ACEOF
22807
22808fi
22809
22810ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22811if test "x$ac_cv_type_ssize_t" = xyes; then :
22812
22813else
22814
22815cat >>confdefs.h <<_ACEOF
22816#define ssize_t int
22817_ACEOF
22818
22819fi
22820
22821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22822$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22823if ${ac_cv_type_uid_t+:} false; then :
22824 $as_echo_n "(cached) " >&6
22825else
22826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22827/* end confdefs.h. */
22828#include <sys/types.h>
22829
22830_ACEOF
22831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22832 $EGREP "uid_t" >/dev/null 2>&1; then :
22833 ac_cv_type_uid_t=yes
22834else
22835 ac_cv_type_uid_t=no
22836fi
22837rm -f conftest*
22838
22839fi
22840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22841$as_echo "$ac_cv_type_uid_t" >&6; }
22842if test $ac_cv_type_uid_t = no; then
22843
22844$as_echo "#define uid_t int" >>confdefs.h
22845
22846
22847$as_echo "#define gid_t int" >>confdefs.h
22848
22849fi
22850
22851ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22852case $ac_cv_c_uint8_t in #(
22853 no|yes) ;; #(
22854 *)
22855
22856$as_echo "#define _UINT8_T 1" >>confdefs.h
22857
22858
22859cat >>confdefs.h <<_ACEOF
22860#define uint8_t $ac_cv_c_uint8_t
22861_ACEOF
22862;;
22863 esac
22864
22865ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22866case $ac_cv_c_uint16_t in #(
22867 no|yes) ;; #(
22868 *)
22869
22870
22871cat >>confdefs.h <<_ACEOF
22872#define uint16_t $ac_cv_c_uint16_t
22873_ACEOF
22874;;
22875 esac
22876
22877ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22878case $ac_cv_c_uint32_t in #(
22879 no|yes) ;; #(
22880 *)
22881
22882$as_echo "#define _UINT32_T 1" >>confdefs.h
22883
22884
22885cat >>confdefs.h <<_ACEOF
22886#define uint32_t $ac_cv_c_uint32_t
22887_ACEOF
22888;;
22889 esac
22890
22891ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22892case $ac_cv_c_uint64_t in #(
22893 no|yes) ;; #(
22894 *)
22895
22896$as_echo "#define _UINT64_T 1" >>confdefs.h
22897
22898
22899cat >>confdefs.h <<_ACEOF
22900#define uint64_t $ac_cv_c_uint64_t
22901_ACEOF
22902;;
22903 esac
22904
22905
cristy501c8042011-05-26 17:46:28 +000022906
22907 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22908if test "x$ac_cv_type_uintmax_t" = xyes; then :
22909
22910$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22911
22912else
22913 test $ac_cv_type_unsigned_long_long_int = yes \
22914 && ac_type='unsigned long long int' \
22915 || ac_type='unsigned long int'
22916
22917cat >>confdefs.h <<_ACEOF
22918#define uintmax_t $ac_type
22919_ACEOF
22920
22921fi
22922
22923
22924
22925 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
22926if test "x$ac_cv_type_uintptr_t" = xyes; then :
22927
22928$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
22929
22930else
22931 for ac_type in 'unsigned int' 'unsigned long int' \
22932 'unsigned long long int'; do
22933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22934/* end confdefs.h. */
22935$ac_includes_default
22936int
22937main ()
22938{
22939static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022940test_array [0] = 0;
22941return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022942
22943 ;
22944 return 0;
22945}
22946_ACEOF
22947if ac_fn_c_try_compile "$LINENO"; then :
22948
22949cat >>confdefs.h <<_ACEOF
22950#define uintptr_t $ac_type
22951_ACEOF
22952
22953 ac_type=
22954fi
22955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22956 test -z "$ac_type" && break
22957 done
22958fi
22959
22960
22961
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22963$as_echo_n "checking for unsigned long long int... " >&6; }
22964if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22965 $as_echo_n "(cached) " >&6
22966else
cristycc22d1d2012-12-10 13:03:25 +000022967 ac_cv_type_unsigned_long_long_int=yes
22968 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022970/* end confdefs.h. */
22971
22972 /* For now, do not test the preprocessor; as of 2007 there are too many
cristycc22d1d2012-12-10 13:03:25 +000022973 implementations with broken preprocessors. Perhaps this can
22974 be revisited in 2012. In the meantime, code should not expect
22975 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022976 /* Test literals. */
22977 long long int ll = 9223372036854775807ll;
22978 long long int nll = -9223372036854775807LL;
22979 unsigned long long int ull = 18446744073709551615ULL;
22980 /* Test constant expressions. */
22981 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristycc22d1d2012-12-10 13:03:25 +000022982 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022983 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristycc22d1d2012-12-10 13:03:25 +000022984 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022985 int i = 63;
22986int
22987main ()
22988{
22989/* Test availability of runtime routines for shift and division. */
22990 long long int llmax = 9223372036854775807ll;
22991 unsigned long long int ullmax = 18446744073709551615ull;
22992 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristycc22d1d2012-12-10 13:03:25 +000022993 | (llmax / ll) | (llmax % ll)
22994 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22995 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022996 ;
22997 return 0;
22998}
22999
23000_ACEOF
23001if ac_fn_c_try_link "$LINENO"; then :
cristycc22d1d2012-12-10 13:03:25 +000023002
cristy501c8042011-05-26 17:46:28 +000023003else
23004 ac_cv_type_unsigned_long_long_int=no
23005fi
23006rm -f core conftest.err conftest.$ac_objext \
23007 conftest$ac_exeext conftest.$ac_ext
cristycc22d1d2012-12-10 13:03:25 +000023008 fi
cristy501c8042011-05-26 17:46:28 +000023009fi
23010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23011$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23012 if test $ac_cv_type_unsigned_long_long_int = yes; then
23013
23014$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23015
23016 fi
23017
23018
cristy9b86f202012-11-28 21:55:35 +000023019# Float_t and double_t are intended to be the the most efficient type.
cristyf0cf9a22012-10-24 12:05:01 +000023020ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23021"
23022if test "x$ac_cv_type_float_t" = xyes; then :
23023
23024cat >>confdefs.h <<_ACEOF
23025#define HAVE_FLOAT_T 1
23026_ACEOF
23027
23028
23029fi
23030
23031ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23032"
23033if test "x$ac_cv_type_double_t" = xyes; then :
23034
23035cat >>confdefs.h <<_ACEOF
23036#define HAVE_DOUBLE_T 1
23037_ACEOF
23038
23039
23040fi
23041
cristy9b86f202012-11-28 21:55:35 +000023042# The cast to long int works around a bug in the HP C Compiler
23043# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23044# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23045# This bug is HP SR number 8606223364.
23046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23047$as_echo_n "checking size of float_t... " >&6; }
23048if ${ac_cv_sizeof_float_t+:} false; then :
23049 $as_echo_n "(cached) " >&6
23050else
23051 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23052"; then :
23053
23054else
23055 if test "$ac_cv_type_float_t" = yes; then
23056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23058as_fn_error 77 "cannot compute sizeof (float_t)
23059See \`config.log' for more details" "$LINENO" 5; }
23060 else
23061 ac_cv_sizeof_float_t=0
23062 fi
23063fi
23064
23065fi
23066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23067$as_echo "$ac_cv_sizeof_float_t" >&6; }
23068
23069
23070
23071cat >>confdefs.h <<_ACEOF
23072#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23073_ACEOF
23074
23075
23076# The cast to long int works around a bug in the HP C Compiler
23077# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23078# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23079# This bug is HP SR number 8606223364.
23080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23081$as_echo_n "checking size of double_t... " >&6; }
23082if ${ac_cv_sizeof_double_t+:} false; then :
23083 $as_echo_n "(cached) " >&6
23084else
23085 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23086"; then :
23087
23088else
23089 if test "$ac_cv_type_double_t" = yes; then
23090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23092as_fn_error 77 "cannot compute sizeof (double_t)
23093See \`config.log' for more details" "$LINENO" 5; }
23094 else
23095 ac_cv_sizeof_double_t=0
23096 fi
23097fi
23098
23099fi
23100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23101$as_echo "$ac_cv_sizeof_double_t" >&6; }
23102
23103
23104
23105cat >>confdefs.h <<_ACEOF
23106#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23107_ACEOF
23108
23109
23110
23111# Get size of float, double and long double for comparaison.
23112# The cast to long int works around a bug in the HP C Compiler
23113# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23114# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23115# This bug is HP SR number 8606223364.
23116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23117$as_echo_n "checking size of float... " >&6; }
23118if ${ac_cv_sizeof_float+:} false; then :
23119 $as_echo_n "(cached) " >&6
23120else
23121 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23122
23123else
23124 if test "$ac_cv_type_float" = yes; then
23125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23127as_fn_error 77 "cannot compute sizeof (float)
23128See \`config.log' for more details" "$LINENO" 5; }
23129 else
23130 ac_cv_sizeof_float=0
23131 fi
23132fi
23133
23134fi
23135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23136$as_echo "$ac_cv_sizeof_float" >&6; }
23137
23138
23139
23140cat >>confdefs.h <<_ACEOF
23141#define SIZEOF_FLOAT $ac_cv_sizeof_float
23142_ACEOF
23143
23144
23145# The cast to long int works around a bug in the HP C Compiler
23146# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23147# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23148# This bug is HP SR number 8606223364.
23149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23150$as_echo_n "checking size of double... " >&6; }
23151if ${ac_cv_sizeof_double+:} false; then :
23152 $as_echo_n "(cached) " >&6
23153else
23154 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23155
23156else
23157 if test "$ac_cv_type_double" = yes; then
23158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23160as_fn_error 77 "cannot compute sizeof (double)
23161See \`config.log' for more details" "$LINENO" 5; }
23162 else
23163 ac_cv_sizeof_double=0
23164 fi
23165fi
23166
23167fi
23168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23169$as_echo "$ac_cv_sizeof_double" >&6; }
23170
23171
23172
23173cat >>confdefs.h <<_ACEOF
23174#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23175_ACEOF
23176
23177
23178# The cast to long int works around a bug in the HP C Compiler
23179# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23180# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23181# This bug is HP SR number 8606223364.
23182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23183$as_echo_n "checking size of long double... " >&6; }
23184if ${ac_cv_sizeof_long_double+:} false; then :
23185 $as_echo_n "(cached) " >&6
23186else
23187 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23188
23189else
23190 if test "$ac_cv_type_long_double" = yes; then
23191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23193as_fn_error 77 "cannot compute sizeof (long double)
23194See \`config.log' for more details" "$LINENO" 5; }
23195 else
23196 ac_cv_sizeof_long_double=0
23197 fi
23198fi
23199
23200fi
23201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23202$as_echo "$ac_cv_sizeof_long_double" >&6; }
23203
23204
23205
23206cat >>confdefs.h <<_ACEOF
23207#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23208_ACEOF
23209
23210
cristyf0cf9a22012-10-24 12:05:01 +000023211
cristy3ed852e2009-09-05 21:47:34 +000023212# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23213# The cast to long int works around a bug in the HP C Compiler
23214# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23215# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23216# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023218$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023219if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023220 $as_echo_n "(cached) " >&6
23221else
cristy8b350f62009-11-15 23:12:43 +000023222 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 +000023223
cristy3ed852e2009-09-05 21:47:34 +000023224else
cristy8b350f62009-11-15 23:12:43 +000023225 if test "$ac_cv_type_signed_short" = yes; then
23226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023228as_fn_error 77 "cannot compute sizeof (signed short)
23229See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023230 else
23231 ac_cv_sizeof_signed_short=0
23232 fi
23233fi
cristy8b350f62009-11-15 23:12:43 +000023234
cristy3ed852e2009-09-05 21:47:34 +000023235fi
cristy8b350f62009-11-15 23:12:43 +000023236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023237$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23238
23239
23240
23241cat >>confdefs.h <<_ACEOF
23242#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23243_ACEOF
23244
23245
23246
23247# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23248# The cast to long int works around a bug in the HP C Compiler
23249# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23250# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23251# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023253$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023254if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023255 $as_echo_n "(cached) " >&6
23256else
cristy8b350f62009-11-15 23:12:43 +000023257 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 +000023258
cristy3ed852e2009-09-05 21:47:34 +000023259else
cristy8b350f62009-11-15 23:12:43 +000023260 if test "$ac_cv_type_unsigned_short" = yes; then
23261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023263as_fn_error 77 "cannot compute sizeof (unsigned short)
23264See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023265 else
23266 ac_cv_sizeof_unsigned_short=0
23267 fi
23268fi
cristy8b350f62009-11-15 23:12:43 +000023269
cristy3ed852e2009-09-05 21:47:34 +000023270fi
cristy8b350f62009-11-15 23:12:43 +000023271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023272$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23273
23274
23275
23276cat >>confdefs.h <<_ACEOF
23277#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23278_ACEOF
23279
23280
23281
23282# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23283# The cast to long int works around a bug in the HP C Compiler
23284# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23285# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23286# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023288$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023289if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023290 $as_echo_n "(cached) " >&6
23291else
cristy8b350f62009-11-15 23:12:43 +000023292 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 +000023293
cristy3ed852e2009-09-05 21:47:34 +000023294else
cristy8b350f62009-11-15 23:12:43 +000023295 if test "$ac_cv_type_signed_int" = yes; then
23296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023298as_fn_error 77 "cannot compute sizeof (signed int)
23299See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023300 else
23301 ac_cv_sizeof_signed_int=0
23302 fi
23303fi
cristy8b350f62009-11-15 23:12:43 +000023304
cristy3ed852e2009-09-05 21:47:34 +000023305fi
cristy8b350f62009-11-15 23:12:43 +000023306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023307$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23308
23309
23310
23311cat >>confdefs.h <<_ACEOF
23312#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23313_ACEOF
23314
23315
23316
23317# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23318# The cast to long int works around a bug in the HP C Compiler
23319# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23320# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23321# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023323$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023324if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023325 $as_echo_n "(cached) " >&6
23326else
cristy8b350f62009-11-15 23:12:43 +000023327 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 +000023328
cristy3ed852e2009-09-05 21:47:34 +000023329else
cristy8b350f62009-11-15 23:12:43 +000023330 if test "$ac_cv_type_unsigned_int" = yes; then
23331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023333as_fn_error 77 "cannot compute sizeof (unsigned int)
23334See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023335 else
23336 ac_cv_sizeof_unsigned_int=0
23337 fi
23338fi
cristy8b350f62009-11-15 23:12:43 +000023339
cristy3ed852e2009-09-05 21:47:34 +000023340fi
cristy8b350f62009-11-15 23:12:43 +000023341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023342$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23343
23344
23345
23346cat >>confdefs.h <<_ACEOF
23347#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23348_ACEOF
23349
23350
23351
23352# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23353# The cast to long int works around a bug in the HP C Compiler
23354# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23355# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23356# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023358$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023359if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023360 $as_echo_n "(cached) " >&6
23361else
cristy8b350f62009-11-15 23:12:43 +000023362 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 +000023363
cristy3ed852e2009-09-05 21:47:34 +000023364else
cristy8b350f62009-11-15 23:12:43 +000023365 if test "$ac_cv_type_signed_long" = yes; then
23366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023368as_fn_error 77 "cannot compute sizeof (signed long)
23369See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023370 else
23371 ac_cv_sizeof_signed_long=0
23372 fi
23373fi
cristy8b350f62009-11-15 23:12:43 +000023374
cristy3ed852e2009-09-05 21:47:34 +000023375fi
cristy8b350f62009-11-15 23:12:43 +000023376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023377$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23378
23379
23380
23381cat >>confdefs.h <<_ACEOF
23382#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23383_ACEOF
23384
23385
23386
23387# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23388# The cast to long int works around a bug in the HP C Compiler
23389# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23390# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23391# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023393$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023394if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023395 $as_echo_n "(cached) " >&6
23396else
cristy8b350f62009-11-15 23:12:43 +000023397 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023398
cristy3ed852e2009-09-05 21:47:34 +000023399else
cristy8b350f62009-11-15 23:12:43 +000023400 if test "$ac_cv_type_unsigned_long" = yes; then
23401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023403as_fn_error 77 "cannot compute sizeof (unsigned long)
23404See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023405 else
23406 ac_cv_sizeof_unsigned_long=0
23407 fi
23408fi
cristy8b350f62009-11-15 23:12:43 +000023409
cristy3ed852e2009-09-05 21:47:34 +000023410fi
cristy8b350f62009-11-15 23:12:43 +000023411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023412$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23413
23414
23415
23416cat >>confdefs.h <<_ACEOF
23417#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23418_ACEOF
23419
23420
23421
23422# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23423# 'signed long long' is not supported then the value defined is zero.
23424# The cast to long int works around a bug in the HP C Compiler
23425# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23426# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23427# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023429$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023430if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023431 $as_echo_n "(cached) " >&6
23432else
cristy8b350f62009-11-15 23:12:43 +000023433 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 +000023434
cristy3ed852e2009-09-05 21:47:34 +000023435else
cristy8b350f62009-11-15 23:12:43 +000023436 if test "$ac_cv_type_signed_long_long" = yes; then
23437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023439as_fn_error 77 "cannot compute sizeof (signed long long)
23440See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023441 else
23442 ac_cv_sizeof_signed_long_long=0
23443 fi
23444fi
cristy8b350f62009-11-15 23:12:43 +000023445
cristy3ed852e2009-09-05 21:47:34 +000023446fi
cristy8b350f62009-11-15 23:12:43 +000023447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023448$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23449
23450
23451
23452cat >>confdefs.h <<_ACEOF
23453#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23454_ACEOF
23455
23456
23457
23458# Obtain size of a 'unsigned long long' and define as
23459# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23460# supported then the value defined is zero.
23461# The cast to long int works around a bug in the HP C Compiler
23462# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23463# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23464# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023466$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023467if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023468 $as_echo_n "(cached) " >&6
23469else
cristy8b350f62009-11-15 23:12:43 +000023470 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 +000023471
cristy3ed852e2009-09-05 21:47:34 +000023472else
cristy8b350f62009-11-15 23:12:43 +000023473 if test "$ac_cv_type_unsigned_long_long" = yes; then
23474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023476as_fn_error 77 "cannot compute sizeof (unsigned long long)
23477See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023478 else
23479 ac_cv_sizeof_unsigned_long_long=0
23480 fi
23481fi
cristy8b350f62009-11-15 23:12:43 +000023482
cristy3ed852e2009-09-05 21:47:34 +000023483fi
cristy8b350f62009-11-15 23:12:43 +000023484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023485$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23486
23487
23488
23489cat >>confdefs.h <<_ACEOF
23490#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23491_ACEOF
23492
23493
23494
23495# Obtain size of off_t and define as SIZEOF_OFF_T
23496# The cast to long int works around a bug in the HP C Compiler
23497# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23498# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23499# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023501$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023502if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023503 $as_echo_n "(cached) " >&6
23504else
cristy8b350f62009-11-15 23:12:43 +000023505 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 +000023506
cristy3ed852e2009-09-05 21:47:34 +000023507else
cristy8b350f62009-11-15 23:12:43 +000023508 if test "$ac_cv_type_off_t" = yes; then
23509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023511as_fn_error 77 "cannot compute sizeof (off_t)
23512See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023513 else
23514 ac_cv_sizeof_off_t=0
23515 fi
23516fi
cristy8b350f62009-11-15 23:12:43 +000023517
cristy3ed852e2009-09-05 21:47:34 +000023518fi
cristy8b350f62009-11-15 23:12:43 +000023519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023520$as_echo "$ac_cv_sizeof_off_t" >&6; }
23521
23522
23523
23524cat >>confdefs.h <<_ACEOF
23525#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23526_ACEOF
23527
23528
23529
23530# Obtain size of size_t and define as SIZEOF_SIZE_T
23531# The cast to long int works around a bug in the HP C Compiler
23532# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23533# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23534# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023536$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023537if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023538 $as_echo_n "(cached) " >&6
23539else
cristy8b350f62009-11-15 23:12:43 +000023540 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 +000023541
cristy3ed852e2009-09-05 21:47:34 +000023542else
cristy8b350f62009-11-15 23:12:43 +000023543 if test "$ac_cv_type_size_t" = yes; then
23544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023546as_fn_error 77 "cannot compute sizeof (size_t)
23547See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023548 else
23549 ac_cv_sizeof_size_t=0
23550 fi
23551fi
cristy8b350f62009-11-15 23:12:43 +000023552
cristy3ed852e2009-09-05 21:47:34 +000023553fi
cristy8b350f62009-11-15 23:12:43 +000023554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023555$as_echo "$ac_cv_sizeof_size_t" >&6; }
23556
23557
23558
23559cat >>confdefs.h <<_ACEOF
23560#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23561_ACEOF
23562
23563
23564
cristy330e9352010-06-01 18:42:49 +000023565# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23566# The cast to long int works around a bug in the HP C Compiler
23567# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23568# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23569# This bug is HP SR number 8606223364.
23570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23571$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023572if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023573 $as_echo_n "(cached) " >&6
23574else
23575 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23576
23577else
23578 if test "$ac_cv_type_ssize_t" = yes; then
23579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023581as_fn_error 77 "cannot compute sizeof (ssize_t)
23582See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023583 else
23584 ac_cv_sizeof_ssize_t=0
23585 fi
23586fi
23587
23588fi
23589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23590$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23591
23592
23593
23594cat >>confdefs.h <<_ACEOF
23595#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23596_ACEOF
23597
23598
23599
cristy3ed852e2009-09-05 21:47:34 +000023600# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23601# The cast to long int works around a bug in the HP C Compiler
23602# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23603# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23604# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023606$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023607if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023608 $as_echo_n "(cached) " >&6
23609else
cristy8b350f62009-11-15 23:12:43 +000023610 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 +000023611
cristy3ed852e2009-09-05 21:47:34 +000023612else
cristy8b350f62009-11-15 23:12:43 +000023613 if test "$ac_cv_type_unsigned_intp" = yes; then
23614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023616as_fn_error 77 "cannot compute sizeof (unsigned int*)
23617See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023618 else
23619 ac_cv_sizeof_unsigned_intp=0
23620 fi
23621fi
cristy8b350f62009-11-15 23:12:43 +000023622
cristy3ed852e2009-09-05 21:47:34 +000023623fi
cristy8b350f62009-11-15 23:12:43 +000023624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023625$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23626
23627
23628
23629cat >>confdefs.h <<_ACEOF
23630#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23631_ACEOF
23632
23633
23634
23635#
23636# Compute sized types for current CPU and compiler options.
23637#
23638
cristy8b350f62009-11-15 23:12:43 +000023639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023640$as_echo_n "checking for signed 8-bit type... " >&6; }
23641INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000023642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23643$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023644
23645
cristy8b350f62009-11-15 23:12:43 +000023646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023647$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23648UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000023649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23650$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023651
23652
cristy8b350f62009-11-15 23:12:43 +000023653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023654$as_echo_n "checking for signed 16-bit type... " >&6; }
23655INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000023656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23657$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023658
23659
cristy8b350f62009-11-15 23:12:43 +000023660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023661$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23662UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000023663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23664$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023665
23666
cristy8b350f62009-11-15 23:12:43 +000023667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023668$as_echo_n "checking for signed 32-bit type... " >&6; }
23669INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023670INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023671if test $ac_cv_sizeof_signed_int -eq 4; then
23672 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023673 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023674elif test $ac_cv_sizeof_signed_long -eq 4; then
23675 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023676 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023677fi
cristyad38abe2012-12-23 23:03:21 +000023678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23679$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023680
23681
cristy6d5e20f2011-04-25 13:48:54 +000023682
cristy8b350f62009-11-15 23:12:43 +000023683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023684$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23685UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023686UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023687if test $ac_cv_sizeof_unsigned_int -eq 4; then
23688 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023689 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023690elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23691 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023692 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023693fi
cristyad38abe2012-12-23 23:03:21 +000023694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23695$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023696
23697
cristy6d5e20f2011-04-25 13:48:54 +000023698
cristy8b350f62009-11-15 23:12:43 +000023699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023700$as_echo_n "checking for signed 64-bit type... " >&6; }
23701INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023702INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023703if test $ac_cv_sizeof_signed_long -eq 8; then
23704 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023705 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023706elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23707 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023708 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023709fi
cristy3a99dcf2011-12-17 01:29:40 +000023710case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023711 mingw* )
23712 INT64_F='"I64"'
23713 ;;
23714esac
cristyad38abe2012-12-23 23:03:21 +000023715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23716$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023717
23718
cristy6d5e20f2011-04-25 13:48:54 +000023719
cristy8b350f62009-11-15 23:12:43 +000023720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023721$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23722UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023723UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023724if test $ac_cv_sizeof_unsigned_long -eq 8; then
23725 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023726 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023727elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23728 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023729 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023730fi
cristy3a99dcf2011-12-17 01:29:40 +000023731case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023732 mingw* )
23733 UINT64_F='"I64"'
23734 ;;
23735esac
cristyad38abe2012-12-23 23:03:21 +000023736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23737$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023738
23739
cristy6d5e20f2011-04-25 13:48:54 +000023740
cristy8b350f62009-11-15 23:12:43 +000023741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023742$as_echo_n "checking for unsigned maximum type... " >&6; }
23743UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023744UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023745if test "$UINT64_T" != 'none'; then
23746 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023747 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023748elif test "$UINT32_T" != 'none'; then
23749 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023750 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023751fi
cristyad38abe2012-12-23 23:03:21 +000023752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23753$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023754
23755
cristy6d5e20f2011-04-25 13:48:54 +000023756
cristy8b350f62009-11-15 23:12:43 +000023757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023758$as_echo_n "checking for pointer difference type... " >&6; }
23759UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023760UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023761if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23762 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023763 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023764elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23765 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023766 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023767fi
cristyad38abe2012-12-23 23:03:21 +000023768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23769$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023770
23771
cristy6d5e20f2011-04-25 13:48:54 +000023772
cristy8b350f62009-11-15 23:12:43 +000023773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023774$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023776/* end confdefs.h. */
23777
23778int
23779main ()
23780{
23781{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23782 ;
23783 return 0;
23784}
23785_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023786if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23788$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023789else
cristyad38abe2012-12-23 23:03:21 +000023790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23791$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023793$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023795/* end confdefs.h. */
23796
23797int
23798main ()
23799{
23800{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23801 ;
23802 return 0;
23803}
23804_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023805if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000023806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23807$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023808
cristy8b350f62009-11-15 23:12:43 +000023809$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023810
23811else
cristyad38abe2012-12-23 23:03:21 +000023812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23813$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000023814
cristy8b350f62009-11-15 23:12:43 +000023815$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023816
23817fi
cristy3ed852e2009-09-05 21:47:34 +000023818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23819fi
cristy3ed852e2009-09-05 21:47:34 +000023820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23821
23822########
23823#
23824# Check for functions
23825#
23826########
cristy73bd4a52010-10-05 11:24:23 +000023827for ac_header in stdlib.h unistd.h
23828do :
23829 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23830ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023831if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023832 cat >>confdefs.h <<_ACEOF
23833#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23834_ACEOF
23835
23836fi
23837
23838done
23839
23840for ac_func in getpagesize
23841do :
23842 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023843if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023844 cat >>confdefs.h <<_ACEOF
23845#define HAVE_GETPAGESIZE 1
23846_ACEOF
23847
23848fi
23849done
23850
23851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23852$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023853if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023854 $as_echo_n "(cached) " >&6
23855else
23856 if test "$cross_compiling" = yes; then :
23857 magick_cv_func_mmap_fileio=no
23858else
23859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23860/* end confdefs.h. */
23861$ac_includes_default
23862/* malloc might have been renamed as rpl_malloc. */
23863#undef malloc
23864
23865/*
23866 This test is derived from GNU Autoconf's similar macro.
23867 The purpose of this test is to verify that files may be memory
23868 mapped, and that memory mapping and file I/O are coherent.
23869
23870 The test creates a test file, memory maps the file, updates
23871 the file using the memory map, and then reads the file using
23872 file I/O to verify that the file contains the updates.
23873*/
23874
23875#include <fcntl.h>
23876#include <sys/mman.h>
23877
23878#if !STDC_HEADERS && !HAVE_STDLIB_H
23879char *malloc ();
23880#endif
23881
23882/* This mess was copied from the GNU getpagesize.h. */
23883#if !HAVE_GETPAGESIZE
23884/* Assume that all systems that can run configure have sys/param.h. */
23885# if !HAVE_SYS_PARAM_H
23886# define HAVE_SYS_PARAM_H 1
23887# endif
23888
23889# ifdef _SC_PAGESIZE
23890# define getpagesize() sysconf(_SC_PAGESIZE)
23891# else /* no _SC_PAGESIZE */
23892# if HAVE_SYS_PARAM_H
23893# include <sys/param.h>
23894# ifdef EXEC_PAGESIZE
23895# define getpagesize() EXEC_PAGESIZE
23896# else /* no EXEC_PAGESIZE */
23897# ifdef NBPG
23898# define getpagesize() NBPG * CLSIZE
23899# ifndef CLSIZE
23900# define CLSIZE 1
23901# endif /* no CLSIZE */
23902# else /* no NBPG */
23903# ifdef NBPC
23904# define getpagesize() NBPC
23905# else /* no NBPC */
23906# ifdef PAGESIZE
23907# define getpagesize() PAGESIZE
23908# endif /* PAGESIZE */
23909# endif /* no NBPC */
23910# endif /* no NBPG */
23911# endif /* no EXEC_PAGESIZE */
23912# else /* no HAVE_SYS_PARAM_H */
23913# define getpagesize() 8192 /* punt totally */
23914# endif /* no HAVE_SYS_PARAM_H */
23915# endif /* no _SC_PAGESIZE */
23916
23917#endif /* no HAVE_GETPAGESIZE */
23918
23919int
23920main ()
23921{
23922 char *data, *data2, *data3;
23923 int i, pagesize;
23924 int fd;
23925
23926 pagesize = getpagesize ();
23927
23928 /* First, make a file with some known garbage in it. */
23929 data = (char *) malloc (pagesize);
23930 if (!data)
23931 exit (1);
23932 for (i = 0; i < pagesize; ++i)
23933 *(data + i) = rand ();
23934 umask (0);
23935 fd = creat ("conftest.mmap", 0600);
23936 if (fd < 0)
23937 exit (1);
23938 if (write (fd, data, pagesize) != pagesize)
23939 exit (1);
23940 close (fd);
23941
23942 /* Mmap the file as read/write/shared and verify that we see the
23943 same garbage. */
23944 fd = open ("conftest.mmap", O_RDWR);
23945 if (fd < 0)
23946 exit (1);
23947 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23948 if (data2 == 0)
23949 exit (1);
23950 for (i = 0; i < pagesize; ++i)
23951 if (*(data + i) != *(data2 + i))
23952 exit (1);
23953
23954 /* Finally, make sure that changes to the mapped area
23955 percolate back to the file as seen by read(). */
23956 for (i = 0; i < pagesize; ++i)
23957 *(data2 + i) = *(data2 + i) + 1;
23958 data3 = (char *) malloc (pagesize);
23959 if (!data3)
23960 exit (1);
23961 if (read (fd, data3, pagesize) != pagesize)
23962 exit (1);
23963 for (i = 0; i < pagesize; ++i)
23964 if (*(data2 + i) != *(data3 + i))
23965 exit (1);
23966 close (fd);
23967 exit (0);
23968}
23969_ACEOF
23970if ac_fn_c_try_run "$LINENO"; then :
23971 magick_cv_func_mmap_fileio=yes
23972else
23973 magick_cv_func_mmap_fileio=no
23974fi
23975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23976 conftest.$ac_objext conftest.beam conftest.$ac_ext
23977fi
23978
23979fi
23980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23981$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23982if test $magick_cv_func_mmap_fileio = yes; then
23983
23984$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23985
23986fi
23987rm -f conftest.mmap
23988
cristy8b350f62009-11-15 23:12:43 +000023989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023990$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023991if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023992 $as_echo_n "(cached) " >&6
23993else
cristy8b350f62009-11-15 23:12:43 +000023994 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023995 ac_cv_func_closedir_void=yes
23996else
cristy8b350f62009-11-15 23:12:43 +000023997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023998/* end confdefs.h. */
23999$ac_includes_default
24000#include <$ac_header_dirent>
24001#ifndef __cplusplus
24002int closedir ();
24003#endif
24004
24005int
24006main ()
24007{
24008return closedir (opendir (".")) != 0;
24009 ;
24010 return 0;
24011}
24012_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024013if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024014 ac_cv_func_closedir_void=no
24015else
cristy8b350f62009-11-15 23:12:43 +000024016 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024017fi
cristy8b350f62009-11-15 23:12:43 +000024018rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24019 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024020fi
24021
cristy3ed852e2009-09-05 21:47:34 +000024022fi
cristy8b350f62009-11-15 23:12:43 +000024023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024024$as_echo "$ac_cv_func_closedir_void" >&6; }
24025if test $ac_cv_func_closedir_void = yes; then
24026
cristy8b350f62009-11-15 23:12:43 +000024027$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024028
24029fi
24030
cristycd4c5312009-11-22 01:19:08 +000024031
24032
24033
24034 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024035do :
24036 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024037ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24038"
cristy98dddb52010-11-04 00:30:15 +000024039if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024040 cat >>confdefs.h <<_ACEOF
24041#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24042_ACEOF
24043
24044fi
24045
24046done
24047
cristycd4c5312009-11-22 01:19:08 +000024048
24049
24050
24051
24052
24053
24054
cristy3ed852e2009-09-05 21:47:34 +000024055for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024056do :
24057 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024058if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024059 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024060#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024061_ACEOF
24062
24063fi
24064done
24065
cristy8b350f62009-11-15 23:12:43 +000024066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024067$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024068if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024069 $as_echo_n "(cached) " >&6
24070else
cristy8b350f62009-11-15 23:12:43 +000024071 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024072 ac_cv_func_mmap_fixed_mapped=no
24073else
cristy8b350f62009-11-15 23:12:43 +000024074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024075/* end confdefs.h. */
24076$ac_includes_default
24077/* malloc might have been renamed as rpl_malloc. */
24078#undef malloc
24079
24080/* Thanks to Mike Haertel and Jim Avera for this test.
24081 Here is a matrix of mmap possibilities:
24082 mmap private not fixed
24083 mmap private fixed at somewhere currently unmapped
24084 mmap private fixed at somewhere already mapped
24085 mmap shared not fixed
24086 mmap shared fixed at somewhere currently unmapped
24087 mmap shared fixed at somewhere already mapped
24088 For private mappings, we should verify that changes cannot be read()
24089 back from the file, nor mmap's back from the file at a different
24090 address. (There have been systems where private was not correctly
24091 implemented like the infamous i386 svr4.0, and systems where the
24092 VM page cache was not coherent with the file system buffer cache
24093 like early versions of FreeBSD and possibly contemporary NetBSD.)
24094 For shared mappings, we should conversely verify that changes get
24095 propagated back to all the places they're supposed to be.
24096
24097 Grep wants private fixed already mapped.
24098 The main things grep needs to know about mmap are:
24099 * does it exist and is it safe to write into the mmap'd area
24100 * how to use it (BSD variants) */
24101
24102#include <fcntl.h>
24103#include <sys/mman.h>
24104
24105#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24106char *malloc ();
24107#endif
24108
24109/* This mess was copied from the GNU getpagesize.h. */
24110#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024111# ifdef _SC_PAGESIZE
24112# define getpagesize() sysconf(_SC_PAGESIZE)
24113# else /* no _SC_PAGESIZE */
24114# ifdef HAVE_SYS_PARAM_H
24115# include <sys/param.h>
24116# ifdef EXEC_PAGESIZE
24117# define getpagesize() EXEC_PAGESIZE
24118# else /* no EXEC_PAGESIZE */
24119# ifdef NBPG
24120# define getpagesize() NBPG * CLSIZE
24121# ifndef CLSIZE
24122# define CLSIZE 1
24123# endif /* no CLSIZE */
24124# else /* no NBPG */
24125# ifdef NBPC
24126# define getpagesize() NBPC
24127# else /* no NBPC */
24128# ifdef PAGESIZE
24129# define getpagesize() PAGESIZE
24130# endif /* PAGESIZE */
24131# endif /* no NBPC */
24132# endif /* no NBPG */
24133# endif /* no EXEC_PAGESIZE */
24134# else /* no HAVE_SYS_PARAM_H */
24135# define getpagesize() 8192 /* punt totally */
24136# endif /* no HAVE_SYS_PARAM_H */
24137# endif /* no _SC_PAGESIZE */
24138
24139#endif /* no HAVE_GETPAGESIZE */
24140
24141int
24142main ()
24143{
24144 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024145 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024146 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024147 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024148
24149 pagesize = getpagesize ();
24150
24151 /* First, make a file with some known garbage in it. */
24152 data = (char *) malloc (pagesize);
24153 if (!data)
24154 return 1;
24155 for (i = 0; i < pagesize; ++i)
24156 *(data + i) = rand ();
24157 umask (0);
24158 fd = creat ("conftest.mmap", 0600);
24159 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024160 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024161 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024162 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024163 close (fd);
24164
cristycd4c5312009-11-22 01:19:08 +000024165 /* Next, check that the tail of a page is zero-filled. File must have
24166 non-zero length, otherwise we risk SIGBUS for entire page. */
24167 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24168 if (fd2 < 0)
24169 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024170 cdata2 = "";
24171 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024172 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024173 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024174 if (data2 == MAP_FAILED)
24175 return 6;
24176 for (i = 0; i < pagesize; ++i)
24177 if (*(data2 + i))
24178 return 7;
24179 close (fd2);
24180 if (munmap (data2, pagesize))
24181 return 8;
24182
cristy3ed852e2009-09-05 21:47:34 +000024183 /* Next, try to mmap the file at a fixed address which already has
24184 something else allocated at it. If we can, also make sure that
24185 we see the same garbage. */
24186 fd = open ("conftest.mmap", O_RDWR);
24187 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024188 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024189 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24190 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024191 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024192 for (i = 0; i < pagesize; ++i)
24193 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024194 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024195
24196 /* Finally, make sure that changes to the mapped area do not
24197 percolate back to the file as seen by read(). (This is a bug on
24198 some variants of i386 svr4.0.) */
24199 for (i = 0; i < pagesize; ++i)
24200 *(data2 + i) = *(data2 + i) + 1;
24201 data3 = (char *) malloc (pagesize);
24202 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024203 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024204 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024205 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024206 for (i = 0; i < pagesize; ++i)
24207 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024208 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024209 close (fd);
24210 return 0;
24211}
24212_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024213if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024214 ac_cv_func_mmap_fixed_mapped=yes
24215else
cristy8b350f62009-11-15 23:12:43 +000024216 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024217fi
cristy8b350f62009-11-15 23:12:43 +000024218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24219 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024220fi
24221
cristy3ed852e2009-09-05 21:47:34 +000024222fi
cristy8b350f62009-11-15 23:12:43 +000024223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024224$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24225if test $ac_cv_func_mmap_fixed_mapped = yes; then
24226
cristy8b350f62009-11-15 23:12:43 +000024227$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024228
24229fi
cristycd4c5312009-11-22 01:19:08 +000024230rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024231
cristy3ed852e2009-09-05 21:47:34 +000024232for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024233do :
24234 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024235if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024236 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024237#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024238_ACEOF
24239
24240fi
24241
24242done
24243
cristy3ed852e2009-09-05 21:47:34 +000024244for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024245do :
24246 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24247ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024248if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024249 cat >>confdefs.h <<_ACEOF
24250#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24251_ACEOF
24252
24253fi
24254done
24255
24256if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024258$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024259if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024260 $as_echo_n "(cached) " >&6
24261else
cristy8b350f62009-11-15 23:12:43 +000024262 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024263 ac_cv_func_fork_works=cross
24264else
cristy8b350f62009-11-15 23:12:43 +000024265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024266/* end confdefs.h. */
24267$ac_includes_default
24268int
24269main ()
24270{
24271
24272 /* By Ruediger Kuhlmann. */
24273 return fork () < 0;
24274
24275 ;
24276 return 0;
24277}
24278_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024279if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024280 ac_cv_func_fork_works=yes
24281else
cristy8b350f62009-11-15 23:12:43 +000024282 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024283fi
cristy8b350f62009-11-15 23:12:43 +000024284rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24285 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024286fi
24287
cristy3ed852e2009-09-05 21:47:34 +000024288fi
cristy8b350f62009-11-15 23:12:43 +000024289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024290$as_echo "$ac_cv_func_fork_works" >&6; }
24291
24292else
24293 ac_cv_func_fork_works=$ac_cv_func_fork
24294fi
24295if test "x$ac_cv_func_fork_works" = xcross; then
24296 case $host in
24297 *-*-amigaos* | *-*-msdosdjgpp*)
24298 # Override, as these systems have only a dummy fork() stub
24299 ac_cv_func_fork_works=no
24300 ;;
24301 *)
24302 ac_cv_func_fork_works=yes
24303 ;;
24304 esac
cristy8b350f62009-11-15 23:12:43 +000024305 { $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 +000024306$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24307fi
24308ac_cv_func_vfork_works=$ac_cv_func_vfork
24309if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024311$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024312if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024313 $as_echo_n "(cached) " >&6
24314else
cristy8b350f62009-11-15 23:12:43 +000024315 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024316 ac_cv_func_vfork_works=cross
24317else
cristy8b350f62009-11-15 23:12:43 +000024318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024319/* end confdefs.h. */
24320/* Thanks to Paul Eggert for this test. */
24321$ac_includes_default
24322#include <sys/wait.h>
24323#ifdef HAVE_VFORK_H
24324# include <vfork.h>
24325#endif
24326/* On some sparc systems, changes by the child to local and incoming
24327 argument registers are propagated back to the parent. The compiler
24328 is told about this with #include <vfork.h>, but some compilers
24329 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24330 static variable whose address is put into a register that is
24331 clobbered by the vfork. */
24332static void
24333#ifdef __cplusplus
24334sparc_address_test (int arg)
24335# else
24336sparc_address_test (arg) int arg;
24337#endif
24338{
24339 static pid_t child;
24340 if (!child) {
24341 child = vfork ();
24342 if (child < 0) {
24343 perror ("vfork");
24344 _exit(2);
24345 }
24346 if (!child) {
24347 arg = getpid();
24348 write(-1, "", 0);
24349 _exit (arg);
24350 }
24351 }
24352}
24353
24354int
24355main ()
24356{
24357 pid_t parent = getpid ();
24358 pid_t child;
24359
24360 sparc_address_test (0);
24361
24362 child = vfork ();
24363
24364 if (child == 0) {
24365 /* Here is another test for sparc vfork register problems. This
24366 test uses lots of local variables, at least as many local
24367 variables as main has allocated so far including compiler
24368 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24369 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24370 reuse the register of parent for one of the local variables,
24371 since it will think that parent can't possibly be used any more
24372 in this routine. Assigning to the local variable will thus
24373 munge parent in the parent process. */
24374 pid_t
24375 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24376 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24377 /* Convince the compiler that p..p7 are live; otherwise, it might
24378 use the same hardware register for all 8 local variables. */
24379 if (p != p1 || p != p2 || p != p3 || p != p4
24380 || p != p5 || p != p6 || p != p7)
24381 _exit(1);
24382
24383 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24384 from child file descriptors. If the child closes a descriptor
24385 before it execs or exits, this munges the parent's descriptor
24386 as well. Test for this by closing stdout in the child. */
24387 _exit(close(fileno(stdout)) != 0);
24388 } else {
24389 int status;
24390 struct stat st;
24391
24392 while (wait(&status) != child)
24393 ;
24394 return (
24395 /* Was there some problem with vforking? */
24396 child < 0
24397
24398 /* Did the child fail? (This shouldn't happen.) */
24399 || status
24400
24401 /* Did the vfork/compiler bug occur? */
24402 || parent != getpid()
24403
24404 /* Did the file descriptor bug occur? */
24405 || fstat(fileno(stdout), &st) != 0
24406 );
24407 }
24408}
24409_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024410if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024411 ac_cv_func_vfork_works=yes
24412else
cristy8b350f62009-11-15 23:12:43 +000024413 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024414fi
cristy8b350f62009-11-15 23:12:43 +000024415rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24416 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024417fi
24418
cristy3ed852e2009-09-05 21:47:34 +000024419fi
cristy8b350f62009-11-15 23:12:43 +000024420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024421$as_echo "$ac_cv_func_vfork_works" >&6; }
24422
24423fi;
24424if test "x$ac_cv_func_fork_works" = xcross; then
24425 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024426 { $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 +000024427$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24428fi
24429
24430if test "x$ac_cv_func_vfork_works" = xyes; then
24431
cristy8b350f62009-11-15 23:12:43 +000024432$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024433
24434else
24435
cristy8b350f62009-11-15 23:12:43 +000024436$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024437
24438fi
24439if test "x$ac_cv_func_fork_works" = xyes; then
24440
cristy8b350f62009-11-15 23:12:43 +000024441$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024442
24443fi
24444
cristy8b350f62009-11-15 23:12:43 +000024445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024446$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024447if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024448 $as_echo_n "(cached) " >&6
24449else
cristy8b350f62009-11-15 23:12:43 +000024450 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024451 ac_cv_func_memcmp_working=no
24452else
cristy8b350f62009-11-15 23:12:43 +000024453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024454/* end confdefs.h. */
24455$ac_includes_default
24456int
24457main ()
24458{
24459
24460 /* Some versions of memcmp are not 8-bit clean. */
24461 char c0 = '\100', c1 = '\200', c2 = '\201';
24462 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24463 return 1;
24464
24465 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24466 or more and with at least one buffer not starting on a 4-byte boundary.
24467 William Lewis provided this test program. */
24468 {
24469 char foo[21];
24470 char bar[21];
24471 int i;
24472 for (i = 0; i < 4; i++)
24473 {
24474 char *a = foo + i;
24475 char *b = bar + i;
24476 strcpy (a, "--------01111111");
24477 strcpy (b, "--------10000000");
24478 if (memcmp (a, b, 16) >= 0)
24479 return 1;
24480 }
24481 return 0;
24482 }
24483
24484 ;
24485 return 0;
24486}
24487_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024488if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024489 ac_cv_func_memcmp_working=yes
24490else
cristy8b350f62009-11-15 23:12:43 +000024491 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024492fi
cristy8b350f62009-11-15 23:12:43 +000024493rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24494 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024495fi
24496
cristy3ed852e2009-09-05 21:47:34 +000024497fi
cristy8b350f62009-11-15 23:12:43 +000024498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024499$as_echo "$ac_cv_func_memcmp_working" >&6; }
24500test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24501 *" memcmp.$ac_objext "* ) ;;
24502 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24503 ;;
24504esac
24505
24506
cristy3ed852e2009-09-05 21:47:34 +000024507for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024508do :
24509 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24510ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024511if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024512 cat >>confdefs.h <<_ACEOF
24513#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24514_ACEOF
24515
24516fi
24517
24518done
24519
cristy8b350f62009-11-15 23:12:43 +000024520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024521$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024522if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024523 $as_echo_n "(cached) " >&6
24524else
24525 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24526 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24527 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024529/* end confdefs.h. */
24530$ac_includes_default
24531#ifdef HAVE_SYS_SELECT_H
24532# include <sys/select.h>
24533#endif
24534#ifdef HAVE_SYS_SOCKET_H
24535# include <sys/socket.h>
24536#endif
24537
24538int
24539main ()
24540{
24541extern int select ($ac_arg1,
24542 $ac_arg234, $ac_arg234, $ac_arg234,
24543 $ac_arg5);
24544 ;
24545 return 0;
24546}
24547_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024548if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024549 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024550fi
cristy3ed852e2009-09-05 21:47:34 +000024551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24552 done
24553 done
24554done
24555# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024556: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024557
24558fi
cristy8b350f62009-11-15 23:12:43 +000024559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024560$as_echo "$ac_cv_func_select_args" >&6; }
24561ac_save_IFS=$IFS; IFS=','
24562set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24563IFS=$ac_save_IFS
24564shift
24565
24566cat >>confdefs.h <<_ACEOF
24567#define SELECT_TYPE_ARG1 $1
24568_ACEOF
24569
24570
24571cat >>confdefs.h <<_ACEOF
24572#define SELECT_TYPE_ARG234 ($2)
24573_ACEOF
24574
24575
24576cat >>confdefs.h <<_ACEOF
24577#define SELECT_TYPE_ARG5 ($3)
24578_ACEOF
24579
24580rm -f conftest*
24581
cristyda16f162011-02-19 23:52:17 +000024582if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024583 $as_echo_n "(cached) " >&6
24584else
24585 ac_cv_func_setvbuf_reversed=no
24586fi
24587
24588
cristy8b350f62009-11-15 23:12:43 +000024589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024590$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024591if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024592 $as_echo_n "(cached) " >&6
24593else
cristy8b350f62009-11-15 23:12:43 +000024594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024595/* end confdefs.h. */
24596#include <sys/types.h>
24597#include <signal.h>
24598
24599int
24600main ()
24601{
24602return *(signal (0, 0)) (0) == 1;
24603 ;
24604 return 0;
24605}
24606_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024607if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024608 ac_cv_type_signal=int
24609else
cristy8b350f62009-11-15 23:12:43 +000024610 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024611fi
cristy3ed852e2009-09-05 21:47:34 +000024612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24613fi
cristy8b350f62009-11-15 23:12:43 +000024614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024615$as_echo "$ac_cv_type_signal" >&6; }
24616
24617cat >>confdefs.h <<_ACEOF
24618#define RETSIGTYPE $ac_cv_type_signal
24619_ACEOF
24620
24621
cristy8b350f62009-11-15 23:12:43 +000024622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024623$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024624if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024625 $as_echo_n "(cached) " >&6
24626else
cristy8b350f62009-11-15 23:12:43 +000024627 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024628 ac_cv_func_strtod=no
24629else
cristy8b350f62009-11-15 23:12:43 +000024630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024631/* end confdefs.h. */
24632
24633$ac_includes_default
24634#ifndef strtod
24635double strtod ();
24636#endif
24637int
24638main()
24639{
24640 {
24641 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24642 char *string = " +69";
24643 char *term;
24644 double value;
24645 value = strtod (string, &term);
24646 if (value != 69 || term != (string + 4))
24647 return 1;
24648 }
24649
24650 {
24651 /* Under Solaris 2.4, strtod returns the wrong value for the
24652 terminating character under some conditions. */
24653 char *string = "NaN";
24654 char *term;
24655 strtod (string, &term);
24656 if (term != string && *(term - 1) == 0)
24657 return 1;
24658 }
24659 return 0;
24660}
24661
24662_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024663if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024664 ac_cv_func_strtod=yes
24665else
cristy8b350f62009-11-15 23:12:43 +000024666 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024667fi
cristy8b350f62009-11-15 23:12:43 +000024668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24669 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024670fi
24671
cristy3ed852e2009-09-05 21:47:34 +000024672fi
cristy8b350f62009-11-15 23:12:43 +000024673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024674$as_echo "$ac_cv_func_strtod" >&6; }
24675if test $ac_cv_func_strtod = no; then
24676 case " $LIBOBJS " in
24677 *" strtod.$ac_objext "* ) ;;
24678 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24679 ;;
24680esac
24681
cristy8b350f62009-11-15 23:12:43 +000024682ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024683if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024684
cristy3ed852e2009-09-05 21:47:34 +000024685fi
24686
cristy3ed852e2009-09-05 21:47:34 +000024687if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024689$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024690if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024691 $as_echo_n "(cached) " >&6
24692else
24693 ac_check_lib_save_LIBS=$LIBS
24694LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024696/* end confdefs.h. */
24697
24698/* Override any GCC internal prototype to avoid an error.
24699 Use char because int might match the return type of a GCC
24700 builtin and then its argument prototype would still apply. */
24701#ifdef __cplusplus
24702extern "C"
24703#endif
24704char pow ();
24705int
24706main ()
24707{
24708return pow ();
24709 ;
24710 return 0;
24711}
24712_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024713if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024714 ac_cv_lib_m_pow=yes
24715else
cristy8b350f62009-11-15 23:12:43 +000024716 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024717fi
cristy8b350f62009-11-15 23:12:43 +000024718rm -f core conftest.err conftest.$ac_objext \
24719 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024720LIBS=$ac_check_lib_save_LIBS
24721fi
cristy8b350f62009-11-15 23:12:43 +000024722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024723$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024724if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024725 POW_LIB=-lm
24726else
cristy8b350f62009-11-15 23:12:43 +000024727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024728$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24729fi
24730
24731fi
24732
24733fi
24734
cristy7d4a1d62011-10-13 15:54:12 +000024735ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24736if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24737 ac_have_decl=1
24738else
24739 ac_have_decl=0
24740fi
24741
24742cat >>confdefs.h <<_ACEOF
24743#define HAVE_DECL_STRERROR_R $ac_have_decl
24744_ACEOF
24745
24746for ac_func in strerror_r
24747do :
24748 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24749if test "x$ac_cv_func_strerror_r" = xyes; then :
24750 cat >>confdefs.h <<_ACEOF
24751#define HAVE_STRERROR_R 1
24752_ACEOF
24753
24754fi
24755done
24756
24757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24758$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24759if ${ac_cv_func_strerror_r_char_p+:} false; then :
24760 $as_echo_n "(cached) " >&6
24761else
24762
24763 ac_cv_func_strerror_r_char_p=no
24764 if test $ac_cv_have_decl_strerror_r = yes; then
24765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24766/* end confdefs.h. */
24767$ac_includes_default
24768int
24769main ()
24770{
24771
24772 char buf[100];
24773 char x = *strerror_r (0, buf, sizeof buf);
24774 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024775 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024776
24777 ;
24778 return 0;
24779}
24780_ACEOF
24781if ac_fn_c_try_compile "$LINENO"; then :
24782 ac_cv_func_strerror_r_char_p=yes
24783fi
24784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24785 else
24786 # strerror_r is not declared. Choose between
24787 # systems that have relatively inaccessible declarations for the
24788 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24789 # former has a strerror_r that returns char*, while the latter
24790 # has a strerror_r that returns `int'.
24791 # This test should segfault on the DEC system.
24792 if test "$cross_compiling" = yes; then :
24793 :
24794else
24795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24796/* end confdefs.h. */
24797$ac_includes_default
24798 extern char *strerror_r ();
24799int
24800main ()
24801{
24802char buf[100];
24803 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024804 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024805 ;
24806 return 0;
24807}
24808_ACEOF
24809if ac_fn_c_try_run "$LINENO"; then :
24810 ac_cv_func_strerror_r_char_p=yes
24811fi
24812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24813 conftest.$ac_objext conftest.beam conftest.$ac_ext
24814fi
24815
24816 fi
24817
24818fi
24819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24820$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24821if test $ac_cv_func_strerror_r_char_p = yes; then
24822
24823$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24824
24825fi
24826
cristy3ed852e2009-09-05 21:47:34 +000024827for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024828do :
24829 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024830if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024831 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024832#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024833_ACEOF
24834
cristy8b350f62009-11-15 23:12:43 +000024835ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024836if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024837
cristy8b350f62009-11-15 23:12:43 +000024838$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024839
24840fi
24841
24842fi
24843done
24844
24845
24846
cristy161b9262010-03-20 19:34:32 +000024847#
24848# Find math library
24849#
24850MATH_LIBS=''
24851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24852$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024853if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024854 $as_echo_n "(cached) " >&6
24855else
24856 ac_check_lib_save_LIBS=$LIBS
24857LIBS="-lm $LIBS"
24858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24859/* end confdefs.h. */
24860
24861/* Override any GCC internal prototype to avoid an error.
24862 Use char because int might match the return type of a GCC
24863 builtin and then its argument prototype would still apply. */
24864#ifdef __cplusplus
24865extern "C"
24866#endif
24867char sqrt ();
24868int
24869main ()
24870{
24871return sqrt ();
24872 ;
24873 return 0;
24874}
24875_ACEOF
24876if ac_fn_c_try_link "$LINENO"; then :
24877 ac_cv_lib_m_sqrt=yes
24878else
24879 ac_cv_lib_m_sqrt=no
24880fi
24881rm -f core conftest.err conftest.$ac_objext \
24882 conftest$ac_exeext conftest.$ac_ext
24883LIBS=$ac_check_lib_save_LIBS
24884fi
24885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24886$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024887if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024888 MATH_LIBS="-lm"
24889fi
24890
24891LIBS="$MATH_LIBS $LIBS"
24892
24893
cristy85572162013-01-04 19:19:32 +000024894#
24895# Find socket library
24896#
cristy8a5d7f42013-01-06 15:24:33 +000024897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
24898$as_echo_n "checking for library containing gethostbyname... " >&6; }
24899if ${ac_cv_search_gethostbyname+:} false; then :
24900 $as_echo_n "(cached) " >&6
24901else
24902 ac_func_search_save_LIBS=$LIBS
24903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24904/* end confdefs.h. */
24905
24906/* Override any GCC internal prototype to avoid an error.
24907 Use char because int might match the return type of a GCC
24908 builtin and then its argument prototype would still apply. */
24909#ifdef __cplusplus
24910extern "C"
24911#endif
24912char gethostbyname ();
24913int
24914main ()
24915{
24916return gethostbyname ();
24917 ;
24918 return 0;
24919}
24920_ACEOF
24921for ac_lib in '' resolv nsl; do
24922 if test -z "$ac_lib"; then
24923 ac_res="none required"
24924 else
24925 ac_res=-l$ac_lib
24926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24927 fi
24928 if ac_fn_c_try_link "$LINENO"; then :
24929 ac_cv_search_gethostbyname=$ac_res
24930fi
24931rm -f core conftest.err conftest.$ac_objext \
24932 conftest$ac_exeext
24933 if ${ac_cv_search_gethostbyname+:} false; then :
24934 break
24935fi
24936done
24937if ${ac_cv_search_gethostbyname+:} false; then :
24938
24939else
24940 ac_cv_search_gethostbyname=no
24941fi
24942rm conftest.$ac_ext
24943LIBS=$ac_func_search_save_LIBS
24944fi
24945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
24946$as_echo "$ac_cv_search_gethostbyname" >&6; }
24947ac_res=$ac_cv_search_gethostbyname
24948if test "$ac_res" != no; then :
24949 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24950
24951fi
24952
cristy85572162013-01-04 19:19:32 +000024953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
24954$as_echo_n "checking for library containing socket... " >&6; }
24955if ${ac_cv_search_socket+:} false; then :
24956 $as_echo_n "(cached) " >&6
24957else
24958 ac_func_search_save_LIBS=$LIBS
24959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24960/* end confdefs.h. */
24961
24962/* Override any GCC internal prototype to avoid an error.
24963 Use char because int might match the return type of a GCC
24964 builtin and then its argument prototype would still apply. */
24965#ifdef __cplusplus
24966extern "C"
24967#endif
24968char socket ();
24969int
24970main ()
24971{
24972return socket ();
24973 ;
24974 return 0;
24975}
24976_ACEOF
24977for ac_lib in '' socket; do
24978 if test -z "$ac_lib"; then
24979 ac_res="none required"
24980 else
24981 ac_res=-l$ac_lib
24982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24983 fi
24984 if ac_fn_c_try_link "$LINENO"; then :
24985 ac_cv_search_socket=$ac_res
24986fi
24987rm -f core conftest.err conftest.$ac_objext \
24988 conftest$ac_exeext
24989 if ${ac_cv_search_socket+:} false; then :
24990 break
24991fi
24992done
24993if ${ac_cv_search_socket+:} false; then :
24994
24995else
24996 ac_cv_search_socket=no
24997fi
24998rm conftest.$ac_ext
24999LIBS=$ac_func_search_save_LIBS
25000fi
25001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25002$as_echo "$ac_cv_search_socket" >&6; }
25003ac_res=$ac_cv_search_socket
25004if test "$ac_res" != no; then :
25005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25006
cristy85572162013-01-04 19:19:32 +000025007
cristy8a5d7f42013-01-06 15:24:33 +000025008$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025009
cristy03f187e2013-01-24 00:22:19 +000025010 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025011
25012fi
25013
25014
25015for 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 +000025016do :
25017 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25018ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025019if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025020 cat >>confdefs.h <<_ACEOF
25021#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25022_ACEOF
25023
25024fi
25025done
25026
25027
cristye43a45e2009-09-28 14:49:00 +000025028#
25029# Check for clock_gettime().
25030#
cristy8b350f62009-11-15 23:12:43 +000025031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025032$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025033if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025034 $as_echo_n "(cached) " >&6
25035else
25036 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025038/* end confdefs.h. */
25039
25040/* Override any GCC internal prototype to avoid an error.
25041 Use char because int might match the return type of a GCC
25042 builtin and then its argument prototype would still apply. */
25043#ifdef __cplusplus
25044extern "C"
25045#endif
25046char clock_gettime ();
25047int
25048main ()
25049{
25050return clock_gettime ();
25051 ;
25052 return 0;
25053}
25054_ACEOF
25055for ac_lib in '' rt; do
25056 if test -z "$ac_lib"; then
25057 ac_res="none required"
25058 else
25059 ac_res=-l$ac_lib
25060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25061 fi
cristy8b350f62009-11-15 23:12:43 +000025062 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025063 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025064fi
cristy8b350f62009-11-15 23:12:43 +000025065rm -f core conftest.err conftest.$ac_objext \
25066 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025067 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025068 break
25069fi
25070done
cristyda16f162011-02-19 23:52:17 +000025071if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025072
cristye43a45e2009-09-28 14:49:00 +000025073else
25074 ac_cv_search_clock_gettime=no
25075fi
25076rm conftest.$ac_ext
25077LIBS=$ac_func_search_save_LIBS
25078fi
cristy8b350f62009-11-15 23:12:43 +000025079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025080$as_echo "$ac_cv_search_clock_gettime" >&6; }
25081ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025082if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025083 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25084
25085
cristy8b350f62009-11-15 23:12:43 +000025086$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025087
cristy8b350f62009-11-15 23:12:43 +000025088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025089$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025091/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025092
25093 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025094int
25095main ()
25096{
25097clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025098 ;
25099 return 0;
25100}
25101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025102if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025103
cristyad38abe2012-12-23 23:03:21 +000025104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25105$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025106
cristy8b350f62009-11-15 23:12:43 +000025107$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025108
25109
25110else
cristyad38abe2012-12-23 23:03:21 +000025111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25112$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025113
25114fi
cristye43a45e2009-09-28 14:49:00 +000025115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25116
25117else
25118
cristy8b350f62009-11-15 23:12:43 +000025119 for ac_func in gettimeofday ftime
25120do :
25121 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25122ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025123if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025124 cat >>confdefs.h <<_ACEOF
25125#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25126_ACEOF
25127 break
25128fi
25129done
25130
25131
25132
25133fi
25134
25135
cristy3ed852e2009-09-05 21:47:34 +000025136########
25137#
25138# Check for function prototypes
25139#
25140########
25141
cristy8b350f62009-11-15 23:12:43 +000025142ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025143#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025144"
cristyda16f162011-02-19 23:52:17 +000025145if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025146 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025147else
cristy8b350f62009-11-15 23:12:43 +000025148 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025149fi
25150
cristy3ed852e2009-09-05 21:47:34 +000025151cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025152#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025153_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025154ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025155#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025156"
cristyda16f162011-02-19 23:52:17 +000025157if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025158 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025159else
cristy8b350f62009-11-15 23:12:43 +000025160 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025161fi
25162
cristy3ed852e2009-09-05 21:47:34 +000025163cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025164#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025165_ACEOF
25166
25167
cristy8b350f62009-11-15 23:12:43 +000025168ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025169#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025170"
cristyda16f162011-02-19 23:52:17 +000025171if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025172 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025173else
cristy8b350f62009-11-15 23:12:43 +000025174 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025175fi
25176
cristy3ed852e2009-09-05 21:47:34 +000025177cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025178#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025179_ACEOF
25180
25181
cristy8b350f62009-11-15 23:12:43 +000025182ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025183#include <stdio.h>
25184#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025185"
cristyda16f162011-02-19 23:52:17 +000025186if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025187 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025188else
cristy8b350f62009-11-15 23:12:43 +000025189 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025190fi
25191
cristy3ed852e2009-09-05 21:47:34 +000025192cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025193#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025194_ACEOF
25195
25196
cristy3ed852e2009-09-05 21:47:34 +000025197########
25198#
25199# C++ Support Tests (For Magick++)
25200#
25201########
25202have_magick_plus_plus='no'
25203if test "$with_magick_plus_plus" = 'yes'; then
25204 OLIBS="$LIBS"
25205 LIBS=''
25206 ac_ext=cpp
25207ac_cpp='$CXXCPP $CPPFLAGS'
25208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25211
25212
25213 # Full set of headers used...
25214 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25215 # functional iomanip iosfwd iostream iterator list string strstream utility
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
25221
25222 ac_ext=cpp
25223ac_cpp='$CXXCPP $CPPFLAGS'
25224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25227if test -z "$CXX"; then
25228 if test -n "$CCC"; then
25229 CXX=$CCC
25230 else
25231 if test -n "$ac_tool_prefix"; then
25232 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25233 do
25234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25235set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025237$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025238if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025239 $as_echo_n "(cached) " >&6
25240else
25241 if test -n "$CXX"; then
25242 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25243else
25244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25245for as_dir in $PATH
25246do
25247 IFS=$as_save_IFS
25248 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025249 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025251 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025253 break 2
25254 fi
25255done
cristy8b350f62009-11-15 23:12:43 +000025256 done
cristy3ed852e2009-09-05 21:47:34 +000025257IFS=$as_save_IFS
25258
25259fi
25260fi
25261CXX=$ac_cv_prog_CXX
25262if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025264$as_echo "$CXX" >&6; }
25265else
cristy8b350f62009-11-15 23:12:43 +000025266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025267$as_echo "no" >&6; }
25268fi
25269
25270
25271 test -n "$CXX" && break
25272 done
25273fi
25274if test -z "$CXX"; then
25275 ac_ct_CXX=$CXX
25276 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25277do
25278 # Extract the first word of "$ac_prog", so it can be a program name with args.
25279set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025281$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025282if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025283 $as_echo_n "(cached) " >&6
25284else
25285 if test -n "$ac_ct_CXX"; then
25286 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25287else
25288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25289for as_dir in $PATH
25290do
25291 IFS=$as_save_IFS
25292 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025293 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025295 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025297 break 2
25298 fi
25299done
cristy8b350f62009-11-15 23:12:43 +000025300 done
cristy3ed852e2009-09-05 21:47:34 +000025301IFS=$as_save_IFS
25302
25303fi
25304fi
25305ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25306if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025308$as_echo "$ac_ct_CXX" >&6; }
25309else
cristy8b350f62009-11-15 23:12:43 +000025310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025311$as_echo "no" >&6; }
25312fi
25313
25314
25315 test -n "$ac_ct_CXX" && break
25316done
25317
25318 if test "x$ac_ct_CXX" = x; then
25319 CXX="g++"
25320 else
25321 case $cross_compiling:$ac_tool_warned in
25322yes:)
cristy8b350f62009-11-15 23:12:43 +000025323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25325ac_tool_warned=yes ;;
25326esac
25327 CXX=$ac_ct_CXX
25328 fi
25329fi
25330
25331 fi
25332fi
25333# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025334$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025335set X $ac_compile
25336ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025337for ac_option in --version -v -V -qversion; do
25338 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025339case "(($ac_try" in
25340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25341 *) ac_try_echo=$ac_try;;
25342esac
cristy8b350f62009-11-15 23:12:43 +000025343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25344$as_echo "$ac_try_echo"; } >&5
25345 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025346 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025347 if test -s conftest.err; then
25348 sed '10a\
25349... rest of stderr output deleted ...
25350 10q' conftest.err >conftest.er1
25351 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025352 fi
cristycd4c5312009-11-22 01:19:08 +000025353 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25355 test $ac_status = 0; }
25356done
cristy3ed852e2009-09-05 21:47:34 +000025357
cristy8b350f62009-11-15 23:12:43 +000025358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025359$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025360if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025361 $as_echo_n "(cached) " >&6
25362else
cristy8b350f62009-11-15 23:12:43 +000025363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025364/* end confdefs.h. */
25365
25366int
25367main ()
25368{
25369#ifndef __GNUC__
25370 choke me
25371#endif
25372
25373 ;
25374 return 0;
25375}
25376_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025377if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025378 ac_compiler_gnu=yes
25379else
cristy8b350f62009-11-15 23:12:43 +000025380 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025381fi
cristy3ed852e2009-09-05 21:47:34 +000025382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25383ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25384
25385fi
cristy8b350f62009-11-15 23:12:43 +000025386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025387$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25388if test $ac_compiler_gnu = yes; then
25389 GXX=yes
25390else
25391 GXX=
25392fi
25393ac_test_CXXFLAGS=${CXXFLAGS+set}
25394ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025396$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025397if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025398 $as_echo_n "(cached) " >&6
25399else
25400 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25401 ac_cxx_werror_flag=yes
25402 ac_cv_prog_cxx_g=no
25403 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025405/* end confdefs.h. */
25406
25407int
25408main ()
25409{
25410
25411 ;
25412 return 0;
25413}
25414_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025415if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025416 ac_cv_prog_cxx_g=yes
25417else
cristy8b350f62009-11-15 23:12:43 +000025418 CXXFLAGS=""
25419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025420/* end confdefs.h. */
25421
25422int
25423main ()
25424{
25425
25426 ;
25427 return 0;
25428}
25429_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025430if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025431
cristy8b350f62009-11-15 23:12:43 +000025432else
25433 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025434 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025436/* end confdefs.h. */
25437
25438int
25439main ()
25440{
25441
25442 ;
25443 return 0;
25444}
25445_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025446if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025447 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025448fi
cristy3ed852e2009-09-05 21:47:34 +000025449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25450fi
cristy3ed852e2009-09-05 21:47:34 +000025451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25452fi
cristy3ed852e2009-09-05 21:47:34 +000025453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25454 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25455fi
cristy8b350f62009-11-15 23:12:43 +000025456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025457$as_echo "$ac_cv_prog_cxx_g" >&6; }
25458if test "$ac_test_CXXFLAGS" = set; then
25459 CXXFLAGS=$ac_save_CXXFLAGS
25460elif test $ac_cv_prog_cxx_g = yes; then
25461 if test "$GXX" = yes; then
25462 CXXFLAGS="-g -O2"
25463 else
25464 CXXFLAGS="-g"
25465 fi
25466else
25467 if test "$GXX" = yes; then
25468 CXXFLAGS="-O2"
25469 else
25470 CXXFLAGS=
25471 fi
25472fi
25473ac_ext=cpp
25474ac_cpp='$CXXCPP $CPPFLAGS'
25475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25478
cristy73bd4a52010-10-05 11:24:23 +000025479depcc="$CXX" am_compiler_list=
25480
25481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25482$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025483if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025484 $as_echo_n "(cached) " >&6
25485else
25486 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25487 # We make a subdir and do the tests there. Otherwise we can end up
25488 # making bogus files that we don't know about and never remove. For
25489 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025490 # making a dummy file named 'D' -- because '-MD' means "put the output
25491 # in D".
cristy7247bba2012-02-05 16:37:27 +000025492 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025493 mkdir conftest.dir
25494 # Copy depcomp to subdir because otherwise we won't find it if we're
25495 # using a relative directory.
25496 cp "$am_depcomp" conftest.dir
25497 cd conftest.dir
25498 # We will build objects and dependencies in a subdirectory because
25499 # it helps to detect inapplicable dependency modes. For instance
25500 # both Tru64's cc and ICC support -MD to output dependencies as a
25501 # side effect of compilation, but ICC will put the dependencies in
25502 # the current directory while Tru64 will put them in the object
25503 # directory.
25504 mkdir sub
25505
25506 am_cv_CXX_dependencies_compiler_type=none
25507 if test "$am_compiler_list" = ""; then
25508 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25509 fi
25510 am__universal=false
25511 case " $depcc " in #(
25512 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25513 esac
25514
25515 for depmode in $am_compiler_list; do
25516 # Setup a source with many dependencies, because some compilers
25517 # like to wrap large dependency lists on column 80 (with \), and
25518 # we should not choose a depcomp mode which is confused by this.
25519 #
25520 # We need to recreate these files for each test, as the compiler may
25521 # overwrite some of them when testing with obscure command lines.
25522 # This happens at least with the AIX C compiler.
25523 : > sub/conftest.c
25524 for i in 1 2 3 4 5 6; do
25525 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025526 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25527 # Solaris 10 /bin/sh.
25528 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025529 done
25530 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25531
cristyc0890a62012-07-19 00:18:20 +000025532 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025533 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025534 # handle '-M -o', and we need to detect this. Also, some Intel
25535 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025536 am__obj=sub/conftest.${OBJEXT-o}
25537 am__minus_obj="-o $am__obj"
25538 case $depmode in
25539 gcc)
25540 # This depmode causes a compiler race in universal mode.
25541 test "$am__universal" = false || continue
25542 ;;
25543 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025544 # After this tag, mechanisms are not by side-effect, so they'll
25545 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025546 if test "x$enable_dependency_tracking" = xyes; then
25547 continue
25548 else
25549 break
25550 fi
25551 ;;
cristy7247bba2012-02-05 16:37:27 +000025552 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025553 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025554 # not run yet. These depmodes are late enough in the game, and
25555 # so weak that their functioning should not be impacted.
25556 am__obj=conftest.${OBJEXT-o}
25557 am__minus_obj=
25558 ;;
25559 none) break ;;
25560 esac
25561 if depmode=$depmode \
25562 source=sub/conftest.c object=$am__obj \
25563 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25564 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25565 >/dev/null 2>conftest.err &&
25566 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25567 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25568 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25569 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25570 # icc doesn't choke on unknown options, it will just issue warnings
25571 # or remarks (even with -Werror). So we grep stderr for any message
25572 # that says an option was ignored or not supported.
25573 # When given -MP, icc 7.0 and 7.1 complain thusly:
25574 # icc: Command line warning: ignoring option '-M'; no argument required
25575 # The diagnosis changed in icc 8.0:
25576 # icc: Command line remark: option '-MP' not supported
25577 if (grep 'ignoring option' conftest.err ||
25578 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25579 am_cv_CXX_dependencies_compiler_type=$depmode
25580 break
25581 fi
25582 fi
25583 done
25584
25585 cd ..
25586 rm -rf conftest.dir
25587else
25588 am_cv_CXX_dependencies_compiler_type=none
25589fi
25590
25591fi
25592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25593$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25594CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25595
25596 if
25597 test "x$enable_dependency_tracking" != xno \
25598 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25599 am__fastdepCXX_TRUE=
25600 am__fastdepCXX_FALSE='#'
25601else
25602 am__fastdepCXX_TRUE='#'
25603 am__fastdepCXX_FALSE=
25604fi
25605
25606
25607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25608$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025609if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025610 $as_echo_n "(cached) " >&6
25611else
25612
25613 ac_ext=cpp
25614ac_cpp='$CXXCPP $CPPFLAGS'
25615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25618
25619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25620/* end confdefs.h. */
25621
25622int f(int x){return 1;}
25623int f(char x){return 1;}
25624int f(bool x){return 1;}
25625
25626int
25627main ()
25628{
25629bool b = true; return f(b);
25630 ;
25631 return 0;
25632}
25633_ACEOF
25634if ac_fn_cxx_try_compile "$LINENO"; then :
25635 ax_cv_cxx_bool=yes
25636else
25637 ax_cv_cxx_bool=no
25638fi
25639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25640 ac_ext=cpp
25641ac_cpp='$CXXCPP $CPPFLAGS'
25642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25645
25646
25647fi
25648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25649$as_echo "$ax_cv_cxx_bool" >&6; }
25650if test "$ax_cv_cxx_bool" = yes; then
25651
25652$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25653
25654fi
25655
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25657$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025658if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025659 $as_echo_n "(cached) " >&6
25660else
25661
25662 ac_ext=cpp
25663ac_cpp='$CXXCPP $CPPFLAGS'
25664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25667
25668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25669/* end confdefs.h. */
25670namespace Outer { namespace Inner { int i = 0; }}
25671int
25672main ()
25673{
25674using namespace Outer::Inner; return i;
25675 ;
25676 return 0;
25677}
25678_ACEOF
25679if ac_fn_cxx_try_compile "$LINENO"; then :
25680 ax_cv_cxx_namespaces=yes
25681else
25682 ax_cv_cxx_namespaces=no
25683fi
25684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25685 ac_ext=cpp
25686ac_cpp='$CXXCPP $CPPFLAGS'
25687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25690
25691
25692fi
25693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25694$as_echo "$ax_cv_cxx_namespaces" >&6; }
25695if test "$ax_cv_cxx_namespaces" = yes; then
25696
25697$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25698
25699fi
25700
25701
25702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25703$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025704if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025705 $as_echo_n "(cached) " >&6
25706else
25707
25708 ac_ext=cpp
25709ac_cpp='$CXXCPP $CPPFLAGS'
25710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25713
25714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25715/* end confdefs.h. */
25716#include <iostream>
25717 std::istream& is = std::cin;
25718int
25719main ()
25720{
25721
25722 ;
25723 return 0;
25724}
25725_ACEOF
25726if ac_fn_cxx_try_compile "$LINENO"; then :
25727 ax_cv_cxx_have_std_namespace=yes
25728else
25729 ax_cv_cxx_have_std_namespace=no
25730fi
25731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25732 ac_ext=cpp
25733ac_cpp='$CXXCPP $CPPFLAGS'
25734ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25735ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25736ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25737
25738
25739fi
25740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25741$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25742 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25743
25744$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25745
25746 fi
25747
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25749$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025750if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025751 $as_echo_n "(cached) " >&6
25752else
25753
25754
25755 ac_ext=cpp
25756ac_cpp='$CXXCPP $CPPFLAGS'
25757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25760
25761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25762/* end confdefs.h. */
25763#include <iostream>
25764#include <map>
25765#include <iomanip>
25766#include <cmath>
25767#ifdef HAVE_NAMESPACES
25768using namespace std;
25769#endif
25770int
25771main ()
25772{
25773return 0;
25774 ;
25775 return 0;
25776}
25777_ACEOF
25778if ac_fn_cxx_try_compile "$LINENO"; then :
25779 ac_cv_cxx_have_std_libs=yes
25780else
25781 ac_cv_cxx_have_std_libs=no
25782fi
25783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25784 ac_ext=cpp
25785ac_cpp='$CXXCPP $CPPFLAGS'
25786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25789
25790
25791fi
25792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25793$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25794if test "$ac_cv_cxx_have_std_libs" = yes; then
25795
25796$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25797
25798fi
25799
cristy3ed852e2009-09-05 21:47:34 +000025800
25801 OPENMP_CXXFLAGS=
25802 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025803if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025804 enableval=$enable_openmp;
25805fi
25806
25807 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25809$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025810if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025811 $as_echo_n "(cached) " >&6
25812else
cristy8b350f62009-11-15 23:12:43 +000025813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25814/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025815
25816#ifndef _OPENMP
25817 choke me
25818#endif
25819#include <omp.h>
25820int main () { return omp_get_num_threads (); }
25821
25822_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025823if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025824 ac_cv_prog_cxx_openmp='none needed'
25825else
cristy8b350f62009-11-15 23:12:43 +000025826 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025827 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25828 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025829 ac_save_CXXFLAGS=$CXXFLAGS
25830 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25832/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025833
25834#ifndef _OPENMP
25835 choke me
25836#endif
25837#include <omp.h>
25838int main () { return omp_get_num_threads (); }
25839
25840_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025841if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025842 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025843fi
cristy8b350f62009-11-15 23:12:43 +000025844rm -f core conftest.err conftest.$ac_objext \
25845 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025846 CXXFLAGS=$ac_save_CXXFLAGS
25847 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25848 break
25849 fi
25850 done
25851fi
cristy8b350f62009-11-15 23:12:43 +000025852rm -f core conftest.err conftest.$ac_objext \
25853 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025854fi
cristy8b350f62009-11-15 23:12:43 +000025855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025856$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25857 case $ac_cv_prog_cxx_openmp in #(
25858 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025859 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025860 *)
cristy8b350f62009-11-15 23:12:43 +000025861 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025862 esac
25863 fi
25864
25865
25866 ac_ext=c
25867ac_cpp='$CPP $CPPFLAGS'
25868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25870ac_compiler_gnu=$ac_cv_c_compiler_gnu
25871
25872
cristy8b350f62009-11-15 23:12:43 +000025873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025874$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25875 if \
cristy964cb7f2010-04-25 23:18:00 +000025876 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025877 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025878 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025879 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025880 have_magick_plus_plus='yes'
25881 else
25882 have_magick_plus_plus='no (failed tests)'
25883 fi
cristyad38abe2012-12-23 23:03:21 +000025884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
25885$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025886 LIBS="$OLIBS"
25887fi
cristy73bd4a52010-10-05 11:24:23 +000025888 if test "$have_magick_plus_plus" = 'yes'; then
25889 WITH_MAGICK_PLUS_PLUS_TRUE=
25890 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25891else
25892 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25893 WITH_MAGICK_PLUS_PLUS_FALSE=
25894fi
25895
cristy3ed852e2009-09-05 21:47:34 +000025896
25897# Only check for delegate libraries in subdirectories if requested.
25898if test "$enable_delegate_build" != 'no'; then
25899 # Check for delegate sub-directories and add -I & -L options as required.
25900 # This presumes that delegates are installed as detailed in the ImageMagick
25901 # README. If delegates are installed in a standard location where the
25902 # compiler will automatically find them then these options should not be
25903 # required.
25904
25905 #
25906 # Most delegates have includes in the same directory as the library, but not all...
25907 #
25908 # Includes
cristy2542fc62011-12-06 17:50:25 +000025909 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 +000025910 if test -d "$builddir/$dir"; then
25911 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25912 else
25913 if test -d "$srcdirfull/$dir"; then
25914 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25915 fi
25916 fi
25917 done
25918
25919 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025920 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 +000025921 if test -d "$builddir/$dir/.libs"; then
25922 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25923 else
25924 if test -d "$srcdirfull/$dir/.libs"; then
25925 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25926 fi
25927 fi
25928 if test -d "$builddir/$dir"; then
25929 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25930 else
25931 if test -d "$srcdirfull/$dir"; then
25932 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25933 fi
25934 fi
25935 done
25936fi
25937
25938# Assume that delegate headers reside under same directory as ImageMagick
25939# installation prefix.
25940MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25941
25942#
25943# Find the X11 RGB database
25944#
cristy8b350f62009-11-15 23:12:43 +000025945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025946$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025947if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025948 $as_echo_n "(cached) " >&6
25949else
25950 # Look for the header file in a standard set of common directories.
25951# Check X11 before X11Rn because it is often a symlink to the current release.
25952 for ac_dir in \
25953 /lib/usr/lib/X11 \
25954 /usr/X11/lib \
25955 /usr/X11R4/lib \
25956 /usr/X11R5/lib \
25957 /usr/X11R6/lib \
25958 /usr/X11R7/lib \
25959 /usr/X386/lib \
25960 /usr/XFree86/lib/X11 \
25961 /usr/athena/lib \
25962 /usr/lib \
25963 /usr/lib/X11 \
25964 /usr/lib/X11R4 \
25965 /usr/lib/X11R5 \
25966 /usr/lib/X11R6 \
25967 /usr/lib/X11R7 \
25968 /usr/local/X11/lib \
25969 /usr/local/X11R4/lib \
25970 /usr/local/X11R5/lib \
25971 /usr/local/X11R6/lib \
25972 /usr/local/lib \
25973 /usr/local/lib/X11 \
25974 /usr/local/lib/X11R4 \
25975 /usr/local/lib/X11R5 \
25976 /usr/local/lib/X11R6 \
25977 /usr/local/lib/X11R7 \
25978 /usr/local/x11r5/lib \
25979 /usr/lpp/Xamples/lib \
25980 /usr/openwin/lib \
25981 /usr/openwin/share/lib \
25982 /usr/unsupported/lib \
25983 /usr/x386/lib \
25984 ; do
25985 if test -f "$ac_dir/X11/rgb.txt"; then
25986 im_cv_x_configure="$ac_dir/X11/"
25987 break
25988 elif test -f "$ac_dir/rgb.txt"; then
25989 im_cv_x_configure="$ac_dir/"
25990 break
25991 fi
25992
25993 done
25994fi
cristy8b350f62009-11-15 23:12:43 +000025995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025996$as_echo "$im_cv_x_configure" >&6; }
25997X11_CONFIGURE_PATH="$im_cv_x_configure"
25998case "${build_os}" in
25999 mingw* )
26000 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26001 ;;
26002esac
26003
26004cat >>confdefs.h <<_ACEOF
26005#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26006_ACEOF
26007
26008
26009#
26010# Find OpenMP library
26011#
26012GOMP_LIBS=''
26013if test "$enable_openmp" != 'no'; then
26014 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026015 # Open64 (passes for GCC but uses different OpenMP implementation)
26016 if test "x$GOMP_LIBS" = x ; then
26017 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26019$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26020if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26021 $as_echo_n "(cached) " >&6
26022else
26023 ac_check_lib_save_LIBS=$LIBS
26024LIBS="-lopenmp $LIBS"
26025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26026/* end confdefs.h. */
26027
26028/* Override any GCC internal prototype to avoid an error.
26029 Use char because int might match the return type of a GCC
26030 builtin and then its argument prototype would still apply. */
26031#ifdef __cplusplus
26032extern "C"
26033#endif
26034char omp_get_num_procs ();
26035int
26036main ()
26037{
26038return omp_get_num_procs ();
26039 ;
26040 return 0;
26041}
26042_ACEOF
26043if ac_fn_c_try_link "$LINENO"; then :
26044 ac_cv_lib_openmp_omp_get_num_procs=yes
26045else
26046 ac_cv_lib_openmp_omp_get_num_procs=no
26047fi
26048rm -f core conftest.err conftest.$ac_objext \
26049 conftest$ac_exeext conftest.$ac_ext
26050LIBS=$ac_check_lib_save_LIBS
26051fi
26052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26053$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26054if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26055 GOMP_LIBS="-lopenmp"
26056fi
26057
26058 fi
26059 fi
26060 # GCC
26061 if test "x$GOMP_LIBS" = x ; then
26062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026063$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026064if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026065 $as_echo_n "(cached) " >&6
26066else
26067 ac_check_lib_save_LIBS=$LIBS
26068LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026070/* end confdefs.h. */
26071
26072/* Override any GCC internal prototype to avoid an error.
26073 Use char because int might match the return type of a GCC
26074 builtin and then its argument prototype would still apply. */
26075#ifdef __cplusplus
26076extern "C"
26077#endif
26078char GOMP_parallel_start ();
26079int
26080main ()
26081{
26082return GOMP_parallel_start ();
26083 ;
26084 return 0;
26085}
26086_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026087if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026088 ac_cv_lib_gomp_GOMP_parallel_start=yes
26089else
cristy8b350f62009-11-15 23:12:43 +000026090 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026091fi
cristy8b350f62009-11-15 23:12:43 +000026092rm -f core conftest.err conftest.$ac_objext \
26093 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026094LIBS=$ac_check_lib_save_LIBS
26095fi
cristy8b350f62009-11-15 23:12:43 +000026096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026097$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026098if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026099 GOMP_LIBS="-lgomp"
26100fi
cristy18307f12011-12-30 01:20:16 +000026101
26102 fi
cristy3ed852e2009-09-05 21:47:34 +000026103 else
cristy18307f12011-12-30 01:20:16 +000026104 # Sun CC
26105 if test "x$GOMP_LIBS" = x ; then
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026107$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026108if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026109 $as_echo_n "(cached) " >&6
26110else
26111 ac_check_lib_save_LIBS=$LIBS
26112LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026114/* end confdefs.h. */
26115
26116/* Override any GCC internal prototype to avoid an error.
26117 Use char because int might match the return type of a GCC
26118 builtin and then its argument prototype would still apply. */
26119#ifdef __cplusplus
26120extern "C"
26121#endif
26122char sunw_mp_register_warn ();
26123int
26124main ()
26125{
26126return sunw_mp_register_warn ();
26127 ;
26128 return 0;
26129}
26130_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026131if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026132 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26133else
cristy8b350f62009-11-15 23:12:43 +000026134 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026135fi
cristy8b350f62009-11-15 23:12:43 +000026136rm -f core conftest.err conftest.$ac_objext \
26137 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026138LIBS=$ac_check_lib_save_LIBS
26139fi
cristy8b350f62009-11-15 23:12:43 +000026140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026141$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026142if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026143 GOMP_LIBS="-lmtsk"
26144fi
cristy18307f12011-12-30 01:20:16 +000026145
26146 fi
26147 # AIX xlc
26148 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026150$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026151if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026152 $as_echo_n "(cached) " >&6
26153else
26154 ac_check_lib_save_LIBS=$LIBS
26155LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026157/* end confdefs.h. */
26158
26159/* Override any GCC internal prototype to avoid an error.
26160 Use char because int might match the return type of a GCC
26161 builtin and then its argument prototype would still apply. */
26162#ifdef __cplusplus
26163extern "C"
26164#endif
26165char _xlsmpFlush ();
26166int
26167main ()
26168{
26169return _xlsmpFlush ();
26170 ;
26171 return 0;
26172}
26173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026174if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026175 ac_cv_lib_xlsmp__xlsmpFlush=yes
26176else
cristy8b350f62009-11-15 23:12:43 +000026177 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026178fi
cristy8b350f62009-11-15 23:12:43 +000026179rm -f core conftest.err conftest.$ac_objext \
26180 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026181LIBS=$ac_check_lib_save_LIBS
26182fi
cristy8b350f62009-11-15 23:12:43 +000026183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026184$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026185if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026186 GOMP_LIBS="-lxlsmp"
26187fi
cristy18307f12011-12-30 01:20:16 +000026188
26189 fi
26190 # SGI IRIX 6.5 MIPSpro C/C++
26191 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026193$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026194if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026195 $as_echo_n "(cached) " >&6
26196else
26197 ac_check_lib_save_LIBS=$LIBS
26198LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026200/* end confdefs.h. */
26201
26202/* Override any GCC internal prototype to avoid an error.
26203 Use char because int might match the return type of a GCC
26204 builtin and then its argument prototype would still apply. */
26205#ifdef __cplusplus
26206extern "C"
26207#endif
26208char mp_destroy ();
26209int
26210main ()
26211{
26212return mp_destroy ();
26213 ;
26214 return 0;
26215}
26216_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026217if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026218 ac_cv_lib_mp_mp_destroy=yes
26219else
cristy8b350f62009-11-15 23:12:43 +000026220 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026221fi
cristy8b350f62009-11-15 23:12:43 +000026222rm -f core conftest.err conftest.$ac_objext \
26223 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026224LIBS=$ac_check_lib_save_LIBS
26225fi
cristy8b350f62009-11-15 23:12:43 +000026226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026227$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026228if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026229 GOMP_LIBS="-lmp"
26230fi
cristy18307f12011-12-30 01:20:16 +000026231
26232 fi
cristy3ed852e2009-09-05 21:47:34 +000026233 fi
26234 LIBS="$GOMP_LIBS $LIBS"
26235fi
26236
26237
26238#
26239# Find Posix threads library
26240#
26241THREAD_LIBS=''
26242if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26243
26244 if test "x$PTHREAD_LIBS" = "x"; then
26245 case "${host_cpu}-${host_os}" in
26246 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026247
26248
26249
26250ac_ext=c
26251ac_cpp='$CPP $CPPFLAGS'
26252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26254ac_compiler_gnu=$ac_cv_c_compiler_gnu
26255
26256magick_pthread_lib_ok=no
26257
26258LIB=-lc_r
26259save_LIBS="$LIBS"
26260LIBS="$LIBS $LIB"
26261
26262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26263$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26265/* end confdefs.h. */
26266#include <pthread.h>
26267int
26268main ()
26269{
26270 pthread_t th;
26271 pthread_join(th, 0);
26272 pthread_attr_init(0);
26273 pthread_cleanup_push(0, 0);
26274 pthread_create(0,0,0,0);
26275 pthread_cleanup_pop(0);
26276 ;
26277 return 0;
26278}
26279_ACEOF
26280if ac_fn_c_try_link "$LINENO"; then :
26281 magick_pthread_lib_ok=yes
26282fi
26283rm -f core conftest.err conftest.$ac_objext \
26284 conftest$ac_exeext conftest.$ac_ext
26285
26286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26287$as_echo "${magick_pthread_lib_ok}" >&6; }
26288if test "$magick_pthread_lib_ok" = yes
26289then
26290 PTHREAD_LIBS=-lc_r
26291 :
26292else
26293
26294 :
26295fi
26296
26297LIBS="$save_LIBS"
26298
26299ac_ext=c
26300ac_cpp='$CPP $CPPFLAGS'
26301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26303ac_compiler_gnu=$ac_cv_c_compiler_gnu
26304
26305 ;;
cristy3ed852e2009-09-05 21:47:34 +000026306 esac
26307 fi
26308
26309 for lib in pthread pthreads; do
26310 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026311
26312
26313
26314ac_ext=c
26315ac_cpp='$CPP $CPPFLAGS'
26316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26318ac_compiler_gnu=$ac_cv_c_compiler_gnu
26319
26320magick_pthread_lib_ok=no
26321
26322LIB=-l$lib
26323save_LIBS="$LIBS"
26324LIBS="$LIBS $LIB"
26325
26326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26327$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26329/* end confdefs.h. */
26330#include <pthread.h>
26331int
26332main ()
26333{
26334 pthread_t th;
26335 pthread_join(th, 0);
26336 pthread_attr_init(0);
26337 pthread_cleanup_push(0, 0);
26338 pthread_create(0,0,0,0);
26339 pthread_cleanup_pop(0);
26340 ;
26341 return 0;
26342}
26343_ACEOF
26344if ac_fn_c_try_link "$LINENO"; then :
26345 magick_pthread_lib_ok=yes
26346fi
26347rm -f core conftest.err conftest.$ac_objext \
26348 conftest$ac_exeext conftest.$ac_ext
26349
26350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26351$as_echo "${magick_pthread_lib_ok}" >&6; }
26352if test "$magick_pthread_lib_ok" = yes
26353then
26354 PTHREAD_LIBS=-l$lib
26355 :
26356else
26357
26358 :
26359fi
26360
26361LIBS="$save_LIBS"
26362
26363ac_ext=c
26364ac_cpp='$CPP $CPPFLAGS'
26365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26367ac_compiler_gnu=$ac_cv_c_compiler_gnu
26368
26369
cristy3ed852e2009-09-05 21:47:34 +000026370 fi
26371 done
26372
26373 THREAD_LIBS="$PTHREAD_LIBS"
26374 LIBS="$LIBS $THREAD_LIBS"
26375fi
26376
26377
26378#
26379# Check for umem.
26380#
26381have_umem='no'
26382UMEM_LIBS=''
26383if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026385$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26387$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026388 failed=0
26389 passed=0
cristy8b350f62009-11-15 23:12:43 +000026390 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026391if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026392 passed=`expr $passed + 1`
26393else
26394 failed=`expr $failed + 1`
26395fi
26396
26397
cristy8b350f62009-11-15 23:12:43 +000026398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026399$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026400if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026401 $as_echo_n "(cached) " >&6
26402else
26403 ac_check_lib_save_LIBS=$LIBS
26404LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026406/* end confdefs.h. */
26407
26408/* Override any GCC internal prototype to avoid an error.
26409 Use char because int might match the return type of a GCC
26410 builtin and then its argument prototype would still apply. */
26411#ifdef __cplusplus
26412extern "C"
26413#endif
26414char umem_alloc ();
26415int
26416main ()
26417{
26418return umem_alloc ();
26419 ;
26420 return 0;
26421}
26422_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026423if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026424 ac_cv_lib_umem_umem_alloc=yes
26425else
cristy8b350f62009-11-15 23:12:43 +000026426 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026427fi
cristy8b350f62009-11-15 23:12:43 +000026428rm -f core conftest.err conftest.$ac_objext \
26429 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026430LIBS=$ac_check_lib_save_LIBS
26431fi
cristy8b350f62009-11-15 23:12:43 +000026432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026433$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026434if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026435 passed=`expr $passed + 1`
26436else
26437 failed=`expr $failed + 1`
26438fi
26439
cristy8b350f62009-11-15 23:12:43 +000026440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026441$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026442if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026443 $as_echo_n "(cached) " >&6
26444else
26445 ac_check_lib_save_LIBS=$LIBS
26446LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026448/* end confdefs.h. */
26449
26450/* Override any GCC internal prototype to avoid an error.
26451 Use char because int might match the return type of a GCC
26452 builtin and then its argument prototype would still apply. */
26453#ifdef __cplusplus
26454extern "C"
26455#endif
26456char umem_free ();
26457int
26458main ()
26459{
26460return umem_free ();
26461 ;
26462 return 0;
26463}
26464_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026465if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026466 ac_cv_lib_umem_umem_free=yes
26467else
cristy8b350f62009-11-15 23:12:43 +000026468 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026469fi
cristy8b350f62009-11-15 23:12:43 +000026470rm -f core conftest.err conftest.$ac_objext \
26471 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026472LIBS=$ac_check_lib_save_LIBS
26473fi
cristy8b350f62009-11-15 23:12:43 +000026474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026475$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026476if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026477 passed=`expr $passed + 1`
26478else
26479 failed=`expr $failed + 1`
26480fi
26481
cristy8b350f62009-11-15 23:12:43 +000026482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026483$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26484 if test $passed -gt 0; then
26485 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26487$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026488 have_umem='no (failed tests)'
26489 else
26490 UMEM_LIBS='-lumem'
26491 LIBS="$UMEM_LIBS $LIBS"
26492
cristy8b350f62009-11-15 23:12:43 +000026493$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026494
cristyad38abe2012-12-23 23:03:21 +000026495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26496$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026497 have_umem='yes'
26498 fi
26499 else
cristyad38abe2012-12-23 23:03:21 +000026500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26501$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026502 fi
26503fi
cristy73bd4a52010-10-05 11:24:23 +000026504 if test "$have_umem" = 'yes'; then
26505 HasUMEM_TRUE=
26506 HasUMEM_FALSE='#'
26507else
26508 HasUMEM_TRUE='#'
26509 HasUMEM_FALSE=
26510fi
26511
cristy3ed852e2009-09-05 21:47:34 +000026512
26513
26514#
26515# Add support for ccmalloc memory debugging library if requested
26516#
26517have_ccmalloc='no'
26518CCMALLOC_LIBS=''
26519if test "$enable_ccmalloc" = 'yes'; then
26520 # Extract the first word of "ccmalloc", so it can be a program name with args.
26521set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026523$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026524if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026525 $as_echo_n "(cached) " >&6
26526else
26527 case $CCMALLOCDelegate in
26528 [\\/]* | ?:[\\/]*)
26529 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26530 ;;
26531 *)
26532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26533for as_dir in $PATH
26534do
26535 IFS=$as_save_IFS
26536 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026537 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026539 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026541 break 2
26542 fi
26543done
cristy8b350f62009-11-15 23:12:43 +000026544 done
cristy3ed852e2009-09-05 21:47:34 +000026545IFS=$as_save_IFS
26546
26547 ;;
26548esac
26549fi
26550CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26551if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026553$as_echo "$CCMALLOCDelegate" >&6; }
26554else
cristy8b350f62009-11-15 23:12:43 +000026555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026556$as_echo "no" >&6; }
26557fi
26558
26559
26560 if test -n "$CCMALLOCDelegate"; then
26561 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26562 OLIBS="$LIBS"
26563 # Assume that gcc is used with ccmalloc.
26564 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026566$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026567if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026568 $as_echo_n "(cached) " >&6
26569else
26570 ac_check_lib_save_LIBS=$LIBS
26571LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026573/* end confdefs.h. */
26574
26575/* Override any GCC internal prototype to avoid an error.
26576 Use char because int might match the return type of a GCC
26577 builtin and then its argument prototype would still apply. */
26578#ifdef __cplusplus
26579extern "C"
26580#endif
26581char ccmalloc_malloc ();
26582int
26583main ()
26584{
26585return ccmalloc_malloc ();
26586 ;
26587 return 0;
26588}
26589_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026590if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026591 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26592else
cristy8b350f62009-11-15 23:12:43 +000026593 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026594fi
cristy8b350f62009-11-15 23:12:43 +000026595rm -f core conftest.err conftest.$ac_objext \
26596 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026597LIBS=$ac_check_lib_save_LIBS
26598fi
cristy8b350f62009-11-15 23:12:43 +000026599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026600$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026601if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026602 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26603fi
26604
26605 if test -n "$CCMALLOC_LIBS"; then
26606 LIBS="$OLIBS"
26607 LIBS="$LIBS $CCMALLOC_LIBS"
26608 have_ccmalloc='yes'
26609 else
26610 LIBS="$OLIBS"
26611 fi
26612 fi
26613fi
26614
26615#
26616# Add support for efence memory debugging library if requested
26617#
26618if test "$enable_efence" = 'yes'; then
26619 EFENCE_LIBS='-lefence'
26620 LIBS="$EFENCE_LIBS $LIBS"
26621fi
26622
cristy3ed852e2009-09-05 21:47:34 +000026623
26624#
26625# Check for BZLIB
26626#
26627
26628
26629# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026630if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026631 withval=$with_bzlib; with_bzlib=$withval
26632else
26633 with_bzlib='yes'
26634fi
26635
26636
26637if test "$with_bzlib" != 'yes'; then
26638 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26639fi
26640
26641have_bzlib='no'
26642if test "$with_bzlib" != 'no'; then
26643 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26645$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026647$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26649$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026650 failed=0
26651 passed=0
26652 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026653 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026654if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026655 passed=`expr $passed + 1`
26656else
26657 failed=`expr $failed + 1`
26658fi
26659
26660
cristy8b350f62009-11-15 23:12:43 +000026661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026662$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026663if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026664 $as_echo_n "(cached) " >&6
26665else
26666 ac_check_lib_save_LIBS=$LIBS
26667LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026669/* end confdefs.h. */
26670
26671/* Override any GCC internal prototype to avoid an error.
26672 Use char because int might match the return type of a GCC
26673 builtin and then its argument prototype would still apply. */
26674#ifdef __cplusplus
26675extern "C"
26676#endif
26677char BZ2_bzDecompress ();
26678int
26679main ()
26680{
26681return BZ2_bzDecompress ();
26682 ;
26683 return 0;
26684}
26685_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026686if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026687 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26688else
cristy8b350f62009-11-15 23:12:43 +000026689 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026690fi
cristy8b350f62009-11-15 23:12:43 +000026691rm -f core conftest.err conftest.$ac_objext \
26692 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026693LIBS=$ac_check_lib_save_LIBS
26694fi
cristy8b350f62009-11-15 23:12:43 +000026695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026696$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026697if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026698 found_libbz=`expr $found_libbz + 1`
26699fi
26700
26701 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026703$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026704if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026705 $as_echo_n "(cached) " >&6
26706else
26707 ac_check_lib_save_LIBS=$LIBS
26708LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026710/* end confdefs.h. */
26711
26712/* Override any GCC internal prototype to avoid an error.
26713 Use char because int might match the return type of a GCC
26714 builtin and then its argument prototype would still apply. */
26715#ifdef __cplusplus
26716extern "C"
26717#endif
26718char _imp__BZ2_decompress ();
26719int
26720main ()
26721{
26722return _imp__BZ2_decompress ();
26723 ;
26724 return 0;
26725}
26726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026727if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026728 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26729else
cristy8b350f62009-11-15 23:12:43 +000026730 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026731fi
cristy8b350f62009-11-15 23:12:43 +000026732rm -f core conftest.err conftest.$ac_objext \
26733 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026734LIBS=$ac_check_lib_save_LIBS
26735fi
cristy8b350f62009-11-15 23:12:43 +000026736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026737$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026738if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026739 found_libbz=`expr $found_libbz + 1`
26740fi
26741
26742 fi
26743 if test $found_libbz -gt 0; then
26744 passed=`expr $passed + 1`
26745 else
26746 failed=`expr $failed + 1`
26747 fi
cristy8b350f62009-11-15 23:12:43 +000026748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026749$as_echo_n "checking if BZLIB package is complete... " >&6; }
26750 if test $passed -gt 0; then
26751 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26753$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026754 have_bzlib='no (failed tests)'
26755 else
26756 BZLIB_LIBS='-lbz2'
26757 LIBS="$BZLIB_LIBS $LIBS"
26758
cristy8b350f62009-11-15 23:12:43 +000026759$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026760
cristyad38abe2012-12-23 23:03:21 +000026761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26762$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026763 have_bzlib='yes'
26764 fi
26765 else
cristyad38abe2012-12-23 23:03:21 +000026766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26767$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026768 fi
26769fi
cristy73bd4a52010-10-05 11:24:23 +000026770 if test "$have_bzlib" = 'yes'; then
26771 BZLIB_DELEGATE_TRUE=
26772 BZLIB_DELEGATE_FALSE='#'
26773else
26774 BZLIB_DELEGATE_TRUE='#'
26775 BZLIB_DELEGATE_FALSE=
26776fi
26777
cristy3ed852e2009-09-05 21:47:34 +000026778
26779
26780#
26781# Find the X11 include and library directories.
26782#
26783IPC_LIBS=''
26784X11_LIBS=''
26785XEXT_LIBS=''
26786XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026788$as_echo_n "checking for X... " >&6; }
26789
26790
26791# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026792if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026793 withval=$with_x;
26794fi
26795
26796# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26797if test "x$with_x" = xno; then
26798 # The user explicitly disabled X.
26799 have_x=disabled
26800else
26801 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026802 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026803 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026804 $as_echo_n "(cached) " >&6
26805else
26806 # One or both of the vars are not set, and there is no cached value.
26807ac_x_includes=no ac_x_libraries=no
26808rm -f -r conftest.dir
26809if mkdir conftest.dir; then
26810 cd conftest.dir
26811 cat >Imakefile <<'_ACEOF'
26812incroot:
26813 @echo incroot='${INCROOT}'
26814usrlibdir:
26815 @echo usrlibdir='${USRLIBDIR}'
26816libdir:
26817 @echo libdir='${LIBDIR}'
26818_ACEOF
26819 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026820 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026821 for ac_var in incroot usrlibdir libdir; do
26822 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26823 done
26824 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26825 for ac_extension in a so sl dylib la dll; do
26826 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26827 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26828 ac_im_usrlibdir=$ac_im_libdir; break
26829 fi
26830 done
26831 # Screen out bogus values from the imake configuration. They are
26832 # bogus both because they are the default anyway, and because
26833 # using them would break gcc on systems where it needs fixed includes.
26834 case $ac_im_incroot in
26835 /usr/include) ac_x_includes= ;;
26836 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26837 esac
26838 case $ac_im_usrlibdir in
26839 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26840 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26841 esac
26842 fi
26843 cd ..
26844 rm -f -r conftest.dir
26845fi
26846
26847# Standard set of common directories for X headers.
26848# Check X11 before X11Rn because it is often a symlink to the current release.
26849ac_x_header_dirs='
26850/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026851/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026852/usr/X11R6/include
26853/usr/X11R5/include
26854/usr/X11R4/include
26855
26856/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026857/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026858/usr/include/X11R6
26859/usr/include/X11R5
26860/usr/include/X11R4
26861
26862/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026863/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026864/usr/local/X11R6/include
26865/usr/local/X11R5/include
26866/usr/local/X11R4/include
26867
26868/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026869/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026870/usr/local/include/X11R6
26871/usr/local/include/X11R5
26872/usr/local/include/X11R4
26873
26874/usr/X386/include
26875/usr/x386/include
26876/usr/XFree86/include/X11
26877
26878/usr/include
26879/usr/local/include
26880/usr/unsupported/include
26881/usr/athena/include
26882/usr/local/x11r5/include
26883/usr/lpp/Xamples/include
26884
26885/usr/openwin/include
26886/usr/openwin/share/include'
26887
26888if test "$ac_x_includes" = no; then
26889 # Guess where to find include files, by looking for Xlib.h.
26890 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026892/* end confdefs.h. */
26893#include <X11/Xlib.h>
26894_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026895if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026896 # We can compile using X headers with no special include directory.
26897ac_x_includes=
26898else
cristyc7083c12009-10-14 03:16:55 +000026899 for ac_dir in $ac_x_header_dirs; do
26900 if test -r "$ac_dir/X11/Xlib.h"; then
26901 ac_x_includes=$ac_dir
26902 break
26903 fi
26904done
26905fi
cristyda16f162011-02-19 23:52:17 +000026906rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026907fi # $ac_x_includes = no
26908
26909if test "$ac_x_libraries" = no; then
26910 # Check for the libraries.
26911 # See if we find them without any special options.
26912 # Don't add to $LIBS permanently.
26913 ac_save_LIBS=$LIBS
26914 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026916/* end confdefs.h. */
26917#include <X11/Xlib.h>
26918int
26919main ()
26920{
26921XrmInitialize ()
26922 ;
26923 return 0;
26924}
26925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026926if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026927 LIBS=$ac_save_LIBS
26928# We can link X programs with no special library path.
26929ac_x_libraries=
26930else
cristy8b350f62009-11-15 23:12:43 +000026931 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026932for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26933do
26934 # Don't even attempt the hair of trying to link an X program!
26935 for ac_extension in a so sl dylib la dll; do
26936 if test -r "$ac_dir/libX11.$ac_extension"; then
26937 ac_x_libraries=$ac_dir
26938 break 2
26939 fi
26940 done
26941done
26942fi
cristy8b350f62009-11-15 23:12:43 +000026943rm -f core conftest.err conftest.$ac_objext \
26944 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026945fi # $ac_x_libraries = no
26946
26947case $ac_x_includes,$ac_x_libraries in #(
26948 no,* | *,no | *\'*)
26949 # Didn't find X, or a directory has "'" in its name.
26950 ac_cv_have_x="have_x=no";; #(
26951 *)
26952 # Record where we found X for the cache.
26953 ac_cv_have_x="have_x=yes\
26954 ac_x_includes='$ac_x_includes'\
26955 ac_x_libraries='$ac_x_libraries'"
26956esac
26957fi
26958;; #(
26959 *) have_x=yes;;
26960 esac
26961 eval "$ac_cv_have_x"
26962fi # $with_x != no
26963
26964if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026966$as_echo "$have_x" >&6; }
26967 no_x=yes
26968else
26969 # If each of the values was on the command line, it overrides each guess.
26970 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26971 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26972 # Update the cache value to reflect the command line values.
26973 ac_cv_have_x="have_x=yes\
26974 ac_x_includes='$x_includes'\
26975 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026977$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26978fi
26979
cristy3ed852e2009-09-05 21:47:34 +000026980if test "$no_x" = yes; then
26981 # Not all programs may use this symbol, but it does not hurt to define it.
26982
cristy8b350f62009-11-15 23:12:43 +000026983$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026984
26985 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26986else
26987 if test -n "$x_includes"; then
26988 X_CFLAGS="$X_CFLAGS -I$x_includes"
26989 fi
26990
26991 # It would also be nice to do this for all -L options, not just this one.
26992 if test -n "$x_libraries"; then
26993 X_LIBS="$X_LIBS -L$x_libraries"
26994 # For Solaris; some versions of Sun CC require a space after -R and
26995 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026997$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26998 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26999 ac_xsave_c_werror_flag=$ac_c_werror_flag
27000 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027002/* end confdefs.h. */
27003
27004int
27005main ()
27006{
27007
27008 ;
27009 return 0;
27010}
27011_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027012if ac_fn_c_try_link "$LINENO"; then :
27013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027014$as_echo "no" >&6; }
27015 X_LIBS="$X_LIBS -R$x_libraries"
27016else
cristy8b350f62009-11-15 23:12:43 +000027017 LIBS="$ac_xsave_LIBS -R $x_libraries"
27018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027019/* end confdefs.h. */
27020
27021int
27022main ()
27023{
27024
27025 ;
27026 return 0;
27027}
27028_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027029if ac_fn_c_try_link "$LINENO"; then :
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027031$as_echo "yes" >&6; }
27032 X_LIBS="$X_LIBS -R $x_libraries"
27033else
cristy8b350f62009-11-15 23:12:43 +000027034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027035$as_echo "neither works" >&6; }
27036fi
cristy8b350f62009-11-15 23:12:43 +000027037rm -f core conftest.err conftest.$ac_objext \
27038 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027039fi
cristy8b350f62009-11-15 23:12:43 +000027040rm -f core conftest.err conftest.$ac_objext \
27041 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027042 ac_c_werror_flag=$ac_xsave_c_werror_flag
27043 LIBS=$ac_xsave_LIBS
27044 fi
27045
27046 # Check for system-dependent libraries X programs must link with.
27047 # Do this before checking for the system-independent R6 libraries
27048 # (-lICE), since we may need -lsocket or whatever for X linking.
27049
27050 if test "$ISC" = yes; then
27051 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27052 else
27053 # Martyn Johnson says this is needed for Ultrix, if the X
27054 # libraries were built with DECnet support. And Karl Berry says
27055 # the Alpha needs dnet_stub (dnet does not exist).
27056 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027058/* end confdefs.h. */
27059
27060/* Override any GCC internal prototype to avoid an error.
27061 Use char because int might match the return type of a GCC
27062 builtin and then its argument prototype would still apply. */
27063#ifdef __cplusplus
27064extern "C"
27065#endif
27066char XOpenDisplay ();
27067int
27068main ()
27069{
27070return XOpenDisplay ();
27071 ;
27072 return 0;
27073}
27074_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027075if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027076
cristy8b350f62009-11-15 23:12:43 +000027077else
27078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027079$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027080if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027081 $as_echo_n "(cached) " >&6
27082else
27083 ac_check_lib_save_LIBS=$LIBS
27084LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027086/* end confdefs.h. */
27087
27088/* Override any GCC internal prototype to avoid an error.
27089 Use char because int might match the return type of a GCC
27090 builtin and then its argument prototype would still apply. */
27091#ifdef __cplusplus
27092extern "C"
27093#endif
27094char dnet_ntoa ();
27095int
27096main ()
27097{
27098return dnet_ntoa ();
27099 ;
27100 return 0;
27101}
27102_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027103if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027104 ac_cv_lib_dnet_dnet_ntoa=yes
27105else
cristy8b350f62009-11-15 23:12:43 +000027106 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027107fi
cristy8b350f62009-11-15 23:12:43 +000027108rm -f core conftest.err conftest.$ac_objext \
27109 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027110LIBS=$ac_check_lib_save_LIBS
27111fi
cristy8b350f62009-11-15 23:12:43 +000027112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027113$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027114if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027115 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27116fi
27117
27118 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027120$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027121if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027122 $as_echo_n "(cached) " >&6
27123else
27124 ac_check_lib_save_LIBS=$LIBS
27125LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027127/* end confdefs.h. */
27128
27129/* Override any GCC internal prototype to avoid an error.
27130 Use char because int might match the return type of a GCC
27131 builtin and then its argument prototype would still apply. */
27132#ifdef __cplusplus
27133extern "C"
27134#endif
27135char dnet_ntoa ();
27136int
27137main ()
27138{
27139return dnet_ntoa ();
27140 ;
27141 return 0;
27142}
27143_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027144if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027145 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27146else
cristy8b350f62009-11-15 23:12:43 +000027147 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027148fi
cristy8b350f62009-11-15 23:12:43 +000027149rm -f core conftest.err conftest.$ac_objext \
27150 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027151LIBS=$ac_check_lib_save_LIBS
27152fi
cristy8b350f62009-11-15 23:12:43 +000027153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027154$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027155if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027156 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27157fi
27158
27159 fi
27160fi
cristy8b350f62009-11-15 23:12:43 +000027161rm -f core conftest.err conftest.$ac_objext \
27162 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027163 LIBS="$ac_xsave_LIBS"
27164
27165 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27166 # to get the SysV transport functions.
27167 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27168 # needs -lnsl.
27169 # The nsl library prevents programs from opening the X display
27170 # on Irix 5.2, according to T.E. Dickey.
27171 # The functions gethostbyname, getservbyname, and inet_addr are
27172 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027173 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027174if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027175
cristy3ed852e2009-09-05 21:47:34 +000027176fi
27177
cristy3ed852e2009-09-05 21:47:34 +000027178 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027180$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027181if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027182 $as_echo_n "(cached) " >&6
27183else
27184 ac_check_lib_save_LIBS=$LIBS
27185LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027187/* end confdefs.h. */
27188
27189/* Override any GCC internal prototype to avoid an error.
27190 Use char because int might match the return type of a GCC
27191 builtin and then its argument prototype would still apply. */
27192#ifdef __cplusplus
27193extern "C"
27194#endif
27195char gethostbyname ();
27196int
27197main ()
27198{
27199return gethostbyname ();
27200 ;
27201 return 0;
27202}
27203_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027204if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027205 ac_cv_lib_nsl_gethostbyname=yes
27206else
cristy8b350f62009-11-15 23:12:43 +000027207 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027208fi
cristy8b350f62009-11-15 23:12:43 +000027209rm -f core conftest.err conftest.$ac_objext \
27210 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027211LIBS=$ac_check_lib_save_LIBS
27212fi
cristy8b350f62009-11-15 23:12:43 +000027213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027214$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027215if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027216 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27217fi
27218
27219 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027221$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027222if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027223 $as_echo_n "(cached) " >&6
27224else
27225 ac_check_lib_save_LIBS=$LIBS
27226LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027228/* end confdefs.h. */
27229
27230/* Override any GCC internal prototype to avoid an error.
27231 Use char because int might match the return type of a GCC
27232 builtin and then its argument prototype would still apply. */
27233#ifdef __cplusplus
27234extern "C"
27235#endif
27236char gethostbyname ();
27237int
27238main ()
27239{
27240return gethostbyname ();
27241 ;
27242 return 0;
27243}
27244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027245if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027246 ac_cv_lib_bsd_gethostbyname=yes
27247else
cristy8b350f62009-11-15 23:12:43 +000027248 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027249fi
cristy8b350f62009-11-15 23:12:43 +000027250rm -f core conftest.err conftest.$ac_objext \
27251 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027252LIBS=$ac_check_lib_save_LIBS
27253fi
cristy8b350f62009-11-15 23:12:43 +000027254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027255$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027256if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027257 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27258fi
27259
27260 fi
27261 fi
27262
27263 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27264 # socket/setsockopt and other routines are undefined under SCO ODT
27265 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27266 # on later versions), says Simon Leinen: it contains gethostby*
27267 # variants that don't use the name server (or something). -lsocket
27268 # must be given before -lnsl if both are needed. We assume that
27269 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027270 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027271if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027272
cristy3ed852e2009-09-05 21:47:34 +000027273fi
27274
cristy3ed852e2009-09-05 21:47:34 +000027275 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027277$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027278if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027279 $as_echo_n "(cached) " >&6
27280else
27281 ac_check_lib_save_LIBS=$LIBS
27282LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027284/* end confdefs.h. */
27285
27286/* Override any GCC internal prototype to avoid an error.
27287 Use char because int might match the return type of a GCC
27288 builtin and then its argument prototype would still apply. */
27289#ifdef __cplusplus
27290extern "C"
27291#endif
27292char connect ();
27293int
27294main ()
27295{
27296return connect ();
27297 ;
27298 return 0;
27299}
27300_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027301if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027302 ac_cv_lib_socket_connect=yes
27303else
cristy8b350f62009-11-15 23:12:43 +000027304 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027305fi
cristy8b350f62009-11-15 23:12:43 +000027306rm -f core conftest.err conftest.$ac_objext \
27307 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027308LIBS=$ac_check_lib_save_LIBS
27309fi
cristy8b350f62009-11-15 23:12:43 +000027310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027311$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027312if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027313 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27314fi
27315
27316 fi
27317
27318 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027319 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027320if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027321
cristy3ed852e2009-09-05 21:47:34 +000027322fi
27323
cristy3ed852e2009-09-05 21:47:34 +000027324 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027326$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027327if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027328 $as_echo_n "(cached) " >&6
27329else
27330 ac_check_lib_save_LIBS=$LIBS
27331LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027333/* end confdefs.h. */
27334
27335/* Override any GCC internal prototype to avoid an error.
27336 Use char because int might match the return type of a GCC
27337 builtin and then its argument prototype would still apply. */
27338#ifdef __cplusplus
27339extern "C"
27340#endif
27341char remove ();
27342int
27343main ()
27344{
27345return remove ();
27346 ;
27347 return 0;
27348}
27349_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027350if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027351 ac_cv_lib_posix_remove=yes
27352else
cristy8b350f62009-11-15 23:12:43 +000027353 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027354fi
cristy8b350f62009-11-15 23:12:43 +000027355rm -f core conftest.err conftest.$ac_objext \
27356 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027357LIBS=$ac_check_lib_save_LIBS
27358fi
cristy8b350f62009-11-15 23:12:43 +000027359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027360$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027361if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027362 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27363fi
27364
27365 fi
27366
27367 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027368 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027369if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027370
cristy3ed852e2009-09-05 21:47:34 +000027371fi
27372
cristy3ed852e2009-09-05 21:47:34 +000027373 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027375$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027376if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027377 $as_echo_n "(cached) " >&6
27378else
27379 ac_check_lib_save_LIBS=$LIBS
27380LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027382/* end confdefs.h. */
27383
27384/* Override any GCC internal prototype to avoid an error.
27385 Use char because int might match the return type of a GCC
27386 builtin and then its argument prototype would still apply. */
27387#ifdef __cplusplus
27388extern "C"
27389#endif
27390char shmat ();
27391int
27392main ()
27393{
27394return shmat ();
27395 ;
27396 return 0;
27397}
27398_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027399if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027400 ac_cv_lib_ipc_shmat=yes
27401else
cristy8b350f62009-11-15 23:12:43 +000027402 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027403fi
cristy8b350f62009-11-15 23:12:43 +000027404rm -f core conftest.err conftest.$ac_objext \
27405 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027406LIBS=$ac_check_lib_save_LIBS
27407fi
cristy8b350f62009-11-15 23:12:43 +000027408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027409$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027410if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027411 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27412fi
27413
27414 fi
27415 fi
27416
27417 # Check for libraries that X11R6 Xt/Xaw programs need.
27418 ac_save_LDFLAGS=$LDFLAGS
27419 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27420 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27421 # check for ICE first), but we must link in the order -lSM -lICE or
27422 # we get undefined symbols. So assume we have SM if we have ICE.
27423 # These have to be linked with before -lX11, unlike the other
27424 # libraries we check for below, so use a different variable.
27425 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027427$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027428if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027429 $as_echo_n "(cached) " >&6
27430else
27431 ac_check_lib_save_LIBS=$LIBS
27432LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027434/* end confdefs.h. */
27435
27436/* Override any GCC internal prototype to avoid an error.
27437 Use char because int might match the return type of a GCC
27438 builtin and then its argument prototype would still apply. */
27439#ifdef __cplusplus
27440extern "C"
27441#endif
27442char IceConnectionNumber ();
27443int
27444main ()
27445{
27446return IceConnectionNumber ();
27447 ;
27448 return 0;
27449}
27450_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027451if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027452 ac_cv_lib_ICE_IceConnectionNumber=yes
27453else
cristy8b350f62009-11-15 23:12:43 +000027454 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027455fi
cristy8b350f62009-11-15 23:12:43 +000027456rm -f core conftest.err conftest.$ac_objext \
27457 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027458LIBS=$ac_check_lib_save_LIBS
27459fi
cristy8b350f62009-11-15 23:12:43 +000027460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027461$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027462if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027463 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27464fi
27465
27466 LDFLAGS=$ac_save_LDFLAGS
27467
27468fi
27469
27470if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27472$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027474$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27476$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027477 LDFLAGS="$LDFLAGS $X_LIBS"
27478 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27479 LIBS="$X11_LIBS $LIBS"
27480 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27481
27482
cristy8b350f62009-11-15 23:12:43 +000027483$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027484
27485 #
27486 # Check for X11 shared memory extension
27487 #
27488 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027489 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027490if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027491 have_shmctl='yes'
27492fi
27493
27494 if test "$have_shmctl" != 'yes'; then
27495 PERSIST_LIBS=$LIBS
27496 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027498/* end confdefs.h. */
27499
27500/* Override any GCC internal prototype to avoid an error.
27501 Use char because int might match the return type of a GCC
27502 builtin and then its argument prototype would still apply. */
27503#ifdef __cplusplus
27504extern "C"
27505#endif
27506char shmctl ();
27507int
27508main ()
27509{
27510return shmctl ();
27511 ;
27512 return 0;
27513}
27514_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027515if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027516 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027517fi
cristy8b350f62009-11-15 23:12:43 +000027518rm -f core conftest.err conftest.$ac_objext \
27519 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027520 LIBS=$PERSIST_LIBS
27521 fi
27522
27523 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027525$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027526if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027527 $as_echo_n "(cached) " >&6
27528else
27529 ac_check_lib_save_LIBS=$LIBS
27530LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027532/* end confdefs.h. */
27533
27534/* Override any GCC internal prototype to avoid an error.
27535 Use char because int might match the return type of a GCC
27536 builtin and then its argument prototype would still apply. */
27537#ifdef __cplusplus
27538extern "C"
27539#endif
27540char XShmAttach ();
27541int
27542main ()
27543{
27544return XShmAttach ();
27545 ;
27546 return 0;
27547}
27548_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027549if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027550 ac_cv_lib_Xext_XShmAttach=yes
27551else
cristy8b350f62009-11-15 23:12:43 +000027552 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027553fi
cristy8b350f62009-11-15 23:12:43 +000027554rm -f core conftest.err conftest.$ac_objext \
27555 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027556LIBS=$ac_check_lib_save_LIBS
27557fi
cristy8b350f62009-11-15 23:12:43 +000027558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027559$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027560if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027561 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027562$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027563
27564fi
27565
27566 fi
27567
27568 #
27569 # Check for X11 shape extension
27570 #
cristy8b350f62009-11-15 23:12:43 +000027571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027572$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027573if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027574 $as_echo_n "(cached) " >&6
27575else
27576 ac_check_lib_save_LIBS=$LIBS
27577LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027579/* end confdefs.h. */
27580
27581/* Override any GCC internal prototype to avoid an error.
27582 Use char because int might match the return type of a GCC
27583 builtin and then its argument prototype would still apply. */
27584#ifdef __cplusplus
27585extern "C"
27586#endif
27587char XShapeCombineMask ();
27588int
27589main ()
27590{
27591return XShapeCombineMask ();
27592 ;
27593 return 0;
27594}
27595_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027596if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027597 ac_cv_lib_Xext_XShapeCombineMask=yes
27598else
cristy8b350f62009-11-15 23:12:43 +000027599 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027600fi
cristy8b350f62009-11-15 23:12:43 +000027601rm -f core conftest.err conftest.$ac_objext \
27602 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027603LIBS=$ac_check_lib_save_LIBS
27604fi
cristy8b350f62009-11-15 23:12:43 +000027605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027606$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027607if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027608 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027609$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027610
27611fi
27612
cristy8b350f62009-11-15 23:12:43 +000027613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027614$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027615if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027616 $as_echo_n "(cached) " >&6
27617else
27618 ac_check_lib_save_LIBS=$LIBS
27619LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027621/* end confdefs.h. */
27622
27623/* Override any GCC internal prototype to avoid an error.
27624 Use char because int might match the return type of a GCC
27625 builtin and then its argument prototype would still apply. */
27626#ifdef __cplusplus
27627extern "C"
27628#endif
27629char XtSetEventDispatcher ();
27630int
27631main ()
27632{
27633return XtSetEventDispatcher ();
27634 ;
27635 return 0;
27636}
27637_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027638if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027639 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27640else
cristy8b350f62009-11-15 23:12:43 +000027641 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027642fi
cristy8b350f62009-11-15 23:12:43 +000027643rm -f core conftest.err conftest.$ac_objext \
27644 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027645LIBS=$ac_check_lib_save_LIBS
27646fi
cristy8b350f62009-11-15 23:12:43 +000027647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027648$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027649if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027650 XT_LIBS='-lXt'
27651fi
27652
27653 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27654fi
27655if test "$no_x" != 'yes'; then
27656 have_x='yes'
27657else
27658 have_x='no'
27659fi
cristy73bd4a52010-10-05 11:24:23 +000027660 if test "$have_x" = 'yes'; then
27661 X11_DELEGATE_TRUE=
27662 X11_DELEGATE_FALSE='#'
27663else
27664 X11_DELEGATE_TRUE='#'
27665 X11_DELEGATE_FALSE=
27666fi
27667
cristy3ed852e2009-09-05 21:47:34 +000027668
27669
27670
27671
27672#
27673# Check for ZLIB
27674#
27675
27676# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027677if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027678 withval=$with_zlib; with_zlib=$withval
27679else
27680 with_zlib='yes'
27681fi
27682
27683
27684if test "$with_zlib" != 'yes'; then
27685 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27686fi
27687
27688have_zlib='no'
27689ZLIB_LIBS=''
27690if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27692$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027694$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27696$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027697 ZLIB_LIBS=''
27698 failed=0
27699 passed=0
cristy8b350f62009-11-15 23:12:43 +000027700 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027701if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027702 passed=`expr $passed + 1`
27703else
27704 failed=`expr $failed + 1`
27705fi
27706
27707
cristy8b350f62009-11-15 23:12:43 +000027708 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027709if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027710 passed=`expr $passed + 1`
27711else
27712 failed=`expr $failed + 1`
27713fi
27714
27715
cristy8b350f62009-11-15 23:12:43 +000027716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027717$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027718if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027719 $as_echo_n "(cached) " >&6
27720else
27721 ac_check_lib_save_LIBS=$LIBS
27722LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027724/* end confdefs.h. */
27725
27726/* Override any GCC internal prototype to avoid an error.
27727 Use char because int might match the return type of a GCC
27728 builtin and then its argument prototype would still apply. */
27729#ifdef __cplusplus
27730extern "C"
27731#endif
27732char compress ();
27733int
27734main ()
27735{
27736return compress ();
27737 ;
27738 return 0;
27739}
27740_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027741if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027742 ac_cv_lib_z_compress=yes
27743else
cristy8b350f62009-11-15 23:12:43 +000027744 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027745fi
cristy8b350f62009-11-15 23:12:43 +000027746rm -f core conftest.err conftest.$ac_objext \
27747 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027748LIBS=$ac_check_lib_save_LIBS
27749fi
cristy8b350f62009-11-15 23:12:43 +000027750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027751$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027752if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027753 passed=`expr $passed + 1`
27754else
27755 failed=`expr $failed + 1`
27756fi
27757
cristy8b350f62009-11-15 23:12:43 +000027758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027759$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027760if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027761 $as_echo_n "(cached) " >&6
27762else
27763 ac_check_lib_save_LIBS=$LIBS
27764LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027766/* end confdefs.h. */
27767
27768/* Override any GCC internal prototype to avoid an error.
27769 Use char because int might match the return type of a GCC
27770 builtin and then its argument prototype would still apply. */
27771#ifdef __cplusplus
27772extern "C"
27773#endif
27774char uncompress ();
27775int
27776main ()
27777{
27778return uncompress ();
27779 ;
27780 return 0;
27781}
27782_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027783if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027784 ac_cv_lib_z_uncompress=yes
27785else
cristy8b350f62009-11-15 23:12:43 +000027786 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027787fi
cristy8b350f62009-11-15 23:12:43 +000027788rm -f core conftest.err conftest.$ac_objext \
27789 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027790LIBS=$ac_check_lib_save_LIBS
27791fi
cristy8b350f62009-11-15 23:12:43 +000027792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027793$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027794if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027795 passed=`expr $passed + 1`
27796else
27797 failed=`expr $failed + 1`
27798fi
27799
cristy8b350f62009-11-15 23:12:43 +000027800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027801$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027802if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027803 $as_echo_n "(cached) " >&6
27804else
27805 ac_check_lib_save_LIBS=$LIBS
27806LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027808/* end confdefs.h. */
27809
27810/* Override any GCC internal prototype to avoid an error.
27811 Use char because int might match the return type of a GCC
27812 builtin and then its argument prototype would still apply. */
27813#ifdef __cplusplus
27814extern "C"
27815#endif
27816char deflate ();
27817int
27818main ()
27819{
27820return deflate ();
27821 ;
27822 return 0;
27823}
27824_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027825if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027826 ac_cv_lib_z_deflate=yes
27827else
cristy8b350f62009-11-15 23:12:43 +000027828 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027829fi
cristy8b350f62009-11-15 23:12:43 +000027830rm -f core conftest.err conftest.$ac_objext \
27831 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027832LIBS=$ac_check_lib_save_LIBS
27833fi
cristy8b350f62009-11-15 23:12:43 +000027834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027835$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027836if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027837 passed=`expr $passed + 1`
27838else
27839 failed=`expr $failed + 1`
27840fi
27841
cristy8b350f62009-11-15 23:12:43 +000027842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027843$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027844if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027845 $as_echo_n "(cached) " >&6
27846else
27847 ac_check_lib_save_LIBS=$LIBS
27848LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027850/* end confdefs.h. */
27851
27852/* Override any GCC internal prototype to avoid an error.
27853 Use char because int might match the return type of a GCC
27854 builtin and then its argument prototype would still apply. */
27855#ifdef __cplusplus
27856extern "C"
27857#endif
27858char inflate ();
27859int
27860main ()
27861{
27862return inflate ();
27863 ;
27864 return 0;
27865}
27866_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027867if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027868 ac_cv_lib_z_inflate=yes
27869else
cristy8b350f62009-11-15 23:12:43 +000027870 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027871fi
cristy8b350f62009-11-15 23:12:43 +000027872rm -f core conftest.err conftest.$ac_objext \
27873 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027874LIBS=$ac_check_lib_save_LIBS
27875fi
cristy8b350f62009-11-15 23:12:43 +000027876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027877$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027878if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027879 passed=`expr $passed + 1`
27880else
27881 failed=`expr $failed + 1`
27882fi
27883
cristy8b350f62009-11-15 23:12:43 +000027884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027885$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027886if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027887 $as_echo_n "(cached) " >&6
27888else
27889 ac_check_lib_save_LIBS=$LIBS
27890LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027892/* end confdefs.h. */
27893
27894/* Override any GCC internal prototype to avoid an error.
27895 Use char because int might match the return type of a GCC
27896 builtin and then its argument prototype would still apply. */
27897#ifdef __cplusplus
27898extern "C"
27899#endif
27900char gzseek ();
27901int
27902main ()
27903{
27904return gzseek ();
27905 ;
27906 return 0;
27907}
27908_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027909if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027910 ac_cv_lib_z_gzseek=yes
27911else
cristy8b350f62009-11-15 23:12:43 +000027912 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027913fi
cristy8b350f62009-11-15 23:12:43 +000027914rm -f core conftest.err conftest.$ac_objext \
27915 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027916LIBS=$ac_check_lib_save_LIBS
27917fi
cristy8b350f62009-11-15 23:12:43 +000027918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027919$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027920if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027921 passed=`expr $passed + 1`
27922else
27923 failed=`expr $failed + 1`
27924fi
27925
cristy8b350f62009-11-15 23:12:43 +000027926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027927$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027928if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027929 $as_echo_n "(cached) " >&6
27930else
27931 ac_check_lib_save_LIBS=$LIBS
27932LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027934/* end confdefs.h. */
27935
27936/* Override any GCC internal prototype to avoid an error.
27937 Use char because int might match the return type of a GCC
27938 builtin and then its argument prototype would still apply. */
27939#ifdef __cplusplus
27940extern "C"
27941#endif
27942char gztell ();
27943int
27944main ()
27945{
27946return gztell ();
27947 ;
27948 return 0;
27949}
27950_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027951if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027952 ac_cv_lib_z_gztell=yes
27953else
cristy8b350f62009-11-15 23:12:43 +000027954 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027955fi
cristy8b350f62009-11-15 23:12:43 +000027956rm -f core conftest.err conftest.$ac_objext \
27957 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027958LIBS=$ac_check_lib_save_LIBS
27959fi
cristy8b350f62009-11-15 23:12:43 +000027960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027961$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027962if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027963 passed=`expr $passed + 1`
27964else
27965 failed=`expr $failed + 1`
27966fi
27967
cristy8b350f62009-11-15 23:12:43 +000027968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027969$as_echo_n "checking if ZLIB package is complete... " >&6; }
27970 if test $passed -gt 0; then
27971 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27973$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027974 have_zlib='no (failed tests)'
27975 else
27976 ZLIB_LIBS='-lz'
27977 LIBS="$ZLIB_LIBS $LIBS"
27978
cristy8b350f62009-11-15 23:12:43 +000027979$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027980
cristyad38abe2012-12-23 23:03:21 +000027981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27982$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027983 have_zlib='yes'
27984 fi
27985 else
cristyad38abe2012-12-23 23:03:21 +000027986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27987$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027988 fi
27989fi
cristy73bd4a52010-10-05 11:24:23 +000027990 if test "$have_zlib" = 'yes'; then
27991 ZLIB_DELEGATE_TRUE=
27992 ZLIB_DELEGATE_FALSE='#'
27993else
27994 ZLIB_DELEGATE_TRUE='#'
27995 ZLIB_DELEGATE_FALSE=
27996fi
27997
cristy3ed852e2009-09-05 21:47:34 +000027998
27999
cristy5eef09f2012-10-16 12:08:28 +000028000# whether modules are built or not.
28001with_ltdl='yes'
28002have_ltdl='no'
28003LTDL_LIBS=''
28004if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28006$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28008$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28010$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028011 failed=0
28012 passed=0
28013 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28014if test "x$ac_cv_header_ltdl_h" = xyes; then :
28015 passed=`expr $passed + 1`
28016else
28017 failed=`expr $failed + 1`
28018fi
28019
28020
28021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28022$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28023if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28024 $as_echo_n "(cached) " >&6
28025else
28026 ac_check_lib_save_LIBS=$LIBS
28027LIBS="-lltdl $LIBS"
28028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28029/* end confdefs.h. */
28030
28031/* Override any GCC internal prototype to avoid an error.
28032 Use char because int might match the return type of a GCC
28033 builtin and then its argument prototype would still apply. */
28034#ifdef __cplusplus
28035extern "C"
28036#endif
28037char lt_dlinit ();
28038int
28039main ()
28040{
28041return lt_dlinit ();
28042 ;
28043 return 0;
28044}
28045_ACEOF
28046if ac_fn_c_try_link "$LINENO"; then :
28047 ac_cv_lib_ltdl_lt_dlinit=yes
28048else
28049 ac_cv_lib_ltdl_lt_dlinit=no
28050fi
28051rm -f core conftest.err conftest.$ac_objext \
28052 conftest$ac_exeext conftest.$ac_ext
28053LIBS=$ac_check_lib_save_LIBS
28054fi
28055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28056$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28057if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28058 passed=`expr $passed + 1`
28059else
28060 failed=`expr $failed + 1`
28061fi
28062
28063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28064$as_echo_n "checking if libltdl package is complete... " >&6; }
28065 if test $passed -gt 0 ; then
28066 if test $failed -gt 0 ; then
28067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28068$as_echo "no -- some components failed test" >&6; }
28069 have_ltdl='no (failed tests)'
28070 else
28071 LTDL_LIBS='-lltdl'
28072 LIBS="$LTDL_LIBS $LIBS"
28073
28074$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28075
28076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28077$as_echo "yes" >&6; }
28078 have_ltdl='yes'
28079 fi
28080 else
28081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28082$as_echo "no" >&6; }
28083 fi
cristyaf4cbf32012-10-16 23:47:41 +000028084 if test "$have_ltdl" != 'yes' ; then
28085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28087as_fn_error 1 "libltdl is required for modules build
28088See \`config.log' for more details" "$LINENO" 5; }
28089 fi
cristy5eef09f2012-10-16 12:08:28 +000028090fi
28091 if test "$have_ltdl" != 'no'; then
28092 WITH_LTDL_TRUE=
28093 WITH_LTDL_FALSE='#'
28094else
28095 WITH_LTDL_TRUE='#'
28096 WITH_LTDL_FALSE=
28097fi
28098
28099
cristy3ed852e2009-09-05 21:47:34 +000028100#
28101# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28102#
28103LIB_DL=''
28104if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028106$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028107if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028108 $as_echo_n "(cached) " >&6
28109else
28110 ac_check_lib_save_LIBS=$LIBS
28111LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028113/* end confdefs.h. */
28114
28115/* Override any GCC internal prototype to avoid an error.
28116 Use char because int might match the return type of a GCC
28117 builtin and then its argument prototype would still apply. */
28118#ifdef __cplusplus
28119extern "C"
28120#endif
28121char dlopen ();
28122int
28123main ()
28124{
28125return dlopen ();
28126 ;
28127 return 0;
28128}
28129_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028130if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028131 ac_cv_lib_dl_dlopen=yes
28132else
cristy8b350f62009-11-15 23:12:43 +000028133 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028134fi
cristy8b350f62009-11-15 23:12:43 +000028135rm -f core conftest.err conftest.$ac_objext \
28136 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028137LIBS=$ac_check_lib_save_LIBS
28138fi
cristy8b350f62009-11-15 23:12:43 +000028139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028140$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028141if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028142 LIB_DL='-ldl'
28143fi
28144
28145 LIBS="$LIB_DL $LIBS"
28146fi
28147
28148
28149
28150#
28151# Check for Autotrace delegate library.
28152#
28153
28154# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028155if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028156 withval=$with_autotrace; with_autotrace=$withval
28157else
28158 with_autotrace='no'
28159fi
28160
28161
28162if test "$with_autotrace" != 'yes'; then
28163 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28164fi
28165
28166have_autotrace='no'
28167AUTOTRACE_CFLAGS=""
28168AUTOTRACE_LIBS=""
28169AUTOTRACE_PKG=""
28170if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28172$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028173
28174pkg_failed=no
28175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28176$as_echo_n "checking for AUTOTRACE... " >&6; }
28177
28178if test -n "$AUTOTRACE_CFLAGS"; then
28179 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28180 elif test -n "$PKG_CONFIG"; then
28181 if test -n "$PKG_CONFIG" && \
28182 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28183 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28184 ac_status=$?
28185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28186 test $ac_status = 0; }; then
28187 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28188else
28189 pkg_failed=yes
28190fi
28191 else
28192 pkg_failed=untried
28193fi
28194if test -n "$AUTOTRACE_LIBS"; then
28195 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28196 elif test -n "$PKG_CONFIG"; then
28197 if test -n "$PKG_CONFIG" && \
28198 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28199 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28200 ac_status=$?
28201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28202 test $ac_status = 0; }; then
28203 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28204else
28205 pkg_failed=yes
28206fi
28207 else
28208 pkg_failed=untried
28209fi
28210
28211
28212
28213if test $pkg_failed = yes; then
28214
28215if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28216 _pkg_short_errors_supported=yes
28217else
28218 _pkg_short_errors_supported=no
28219fi
28220 if test $_pkg_short_errors_supported = yes; then
28221 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28222 else
28223 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28224 fi
28225 # Put the nasty error message in config.log where it belongs
28226 echo "$AUTOTRACE_PKG_ERRORS" >&5
28227
28228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28229$as_echo "no" >&6; }
28230 have_autotrace=no
28231elif test $pkg_failed = untried; then
28232 have_autotrace=no
28233else
28234 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28235 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28237$as_echo "yes" >&6; }
28238 have_autotrace=yes
28239fi
cristyad38abe2012-12-23 23:03:21 +000028240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28241$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028242fi
28243
28244if test "$have_autotrace" = 'yes'; then
28245 failed=0
28246
cristy8b350f62009-11-15 23:12:43 +000028247$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028248
cristyc6722092012-10-14 00:19:31 +000028249 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028250 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028251 fi
28252fi
28253
cristy73bd4a52010-10-05 11:24:23 +000028254 if test "$have_autotrace" = 'yes'; then
28255 AUTOTRACE_DELEGATE_TRUE=
28256 AUTOTRACE_DELEGATE_FALSE='#'
28257else
28258 AUTOTRACE_DELEGATE_TRUE='#'
28259 AUTOTRACE_DELEGATE_FALSE=
28260fi
28261
cristy3ed852e2009-09-05 21:47:34 +000028262
28263
28264
28265
28266#
28267# Check for Display Postscript delegate library.
28268#
28269
28270# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028271if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028272 withval=$with_dps; with_dps=$withval
28273else
28274 with_dps='yes'
28275fi
28276
28277
28278if test "$with_dps" != 'yes'; then
28279 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28280fi
28281
28282have_dps='no'
28283DPS_LIBS=''
28284if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28286$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028288$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28290$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028291 failed=0
28292 passed=0
28293 PERSIST_CPPFLAGS="$CPPFLAGS"
28294 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028295 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 +000028296if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028297 passed=`expr $passed + 1`
28298else
28299 failed=`expr $failed + 1`
28300fi
28301
28302
28303 # DPS issues:
28304 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28305 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28306 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28307 # ImageMagick itself doesn't use -lXt.
28308 have_libdps='no'
28309 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028311$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028312if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028313 $as_echo_n "(cached) " >&6
28314else
28315 ac_check_lib_save_LIBS=$LIBS
28316LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028318/* end confdefs.h. */
28319
28320/* Override any GCC internal prototype to avoid an error.
28321 Use char because int might match the return type of a GCC
28322 builtin and then its argument prototype would still apply. */
28323#ifdef __cplusplus
28324extern "C"
28325#endif
28326char DPSInitialize ();
28327int
28328main ()
28329{
28330return DPSInitialize ();
28331 ;
28332 return 0;
28333}
28334_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028335if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028336 ac_cv_lib_dps_DPSInitialize=yes
28337else
cristy8b350f62009-11-15 23:12:43 +000028338 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028339fi
cristy8b350f62009-11-15 23:12:43 +000028340rm -f core conftest.err conftest.$ac_objext \
28341 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028342LIBS=$ac_check_lib_save_LIBS
28343fi
cristy8b350f62009-11-15 23:12:43 +000028344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028345$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028346if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028347 have_libdps='yes'
28348else
28349 have_libdps='no'
28350fi
28351
28352 if test "$have_libdps" != 'yes'; then
28353 # Unset cache variable so we can try again.
28354 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028356$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028357if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028358 $as_echo_n "(cached) " >&6
28359else
28360 ac_check_lib_save_LIBS=$LIBS
28361LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028363/* end confdefs.h. */
28364
28365/* Override any GCC internal prototype to avoid an error.
28366 Use char because int might match the return type of a GCC
28367 builtin and then its argument prototype would still apply. */
28368#ifdef __cplusplus
28369extern "C"
28370#endif
28371char DPSInitialize ();
28372int
28373main ()
28374{
28375return DPSInitialize ();
28376 ;
28377 return 0;
28378}
28379_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028380if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028381 ac_cv_lib_dps_DPSInitialize=yes
28382else
cristy8b350f62009-11-15 23:12:43 +000028383 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028384fi
cristy8b350f62009-11-15 23:12:43 +000028385rm -f core conftest.err conftest.$ac_objext \
28386 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028387LIBS=$ac_check_lib_save_LIBS
28388fi
cristy8b350f62009-11-15 23:12:43 +000028389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028390$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028391if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028392 have_libdps='yes'
28393else
28394 have_libdps='no'
28395fi
28396
28397 if test "$have_libdps" = 'yes'; then
28398 LIBDPS_XT='-lXt'
28399 fi
28400 fi
28401 if test "$have_libdps" = 'yes'; then
28402 passed=`expr $passed + 1`
28403 else
28404 failed=`expr $failed + 1`
28405 fi
cristy8b350f62009-11-15 23:12:43 +000028406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028407$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028408if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028409 $as_echo_n "(cached) " >&6
28410else
28411 ac_check_lib_save_LIBS=$LIBS
28412LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028414/* end confdefs.h. */
28415
28416/* Override any GCC internal prototype to avoid an error.
28417 Use char because int might match the return type of a GCC
28418 builtin and then its argument prototype would still apply. */
28419#ifdef __cplusplus
28420extern "C"
28421#endif
28422char XDPSPixelsPerPoint ();
28423int
28424main ()
28425{
28426return XDPSPixelsPerPoint ();
28427 ;
28428 return 0;
28429}
28430_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028431if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028432 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28433else
cristy8b350f62009-11-15 23:12:43 +000028434 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028435fi
cristy8b350f62009-11-15 23:12:43 +000028436rm -f core conftest.err conftest.$ac_objext \
28437 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028438LIBS=$ac_check_lib_save_LIBS
28439fi
cristy8b350f62009-11-15 23:12:43 +000028440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028441$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028442if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028443 passed=`expr $passed + 1`
28444else
28445 failed=`expr $failed + 1`
28446fi
28447
cristy8b350f62009-11-15 23:12:43 +000028448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028449$as_echo_n "checking if DPS package is complete... " >&6; }
28450 if test $passed -gt 0; then
28451 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28453$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028454 have_dps='no (failed tests)'
28455 CPPFLAGS="$PERSIST_CPPFLAGS"
28456 else
28457 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28458 LIBS="$DPS_LIBS $LIBS"
28459
cristy8b350f62009-11-15 23:12:43 +000028460$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028461
cristyad38abe2012-12-23 23:03:21 +000028462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28463$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028464 have_dps='yes'
28465 fi
28466 else
cristyad38abe2012-12-23 23:03:21 +000028467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28468$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028469 CPPFLAGS=$PERSIST_CPPFLAGS
28470 fi
28471fi
cristy73bd4a52010-10-05 11:24:23 +000028472 if test "$have_dps" = 'yes'; then
28473 DPS_DELEGATE_TRUE=
28474 DPS_DELEGATE_FALSE='#'
28475else
28476 DPS_DELEGATE_TRUE='#'
28477 DPS_DELEGATE_FALSE=
28478fi
28479
cristy3ed852e2009-09-05 21:47:34 +000028480
28481
28482
28483#
28484# Check for DJVU delegate library.
28485#
28486
28487# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028488if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028489 withval=$with_djvu; with_djvu=$withval
28490else
28491 with_djvu='yes'
28492fi
28493
28494
28495if test "$with_djvu" != 'yes'; then
28496 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28497fi
28498
28499have_djvu='no'
28500DJVU_LIBS=''
28501if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28503$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028505$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28507$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028508 failed=0
28509 passed=0
cristy8b350f62009-11-15 23:12:43 +000028510 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 +000028511if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028512 passed=`expr $passed + 1`
28513else
28514 failed=`expr $failed + 1`
28515fi
28516
28517
cristy8b350f62009-11-15 23:12:43 +000028518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028519$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028520if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028521 $as_echo_n "(cached) " >&6
28522else
28523 ac_check_lib_save_LIBS=$LIBS
28524LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028526/* end confdefs.h. */
28527
28528/* Override any GCC internal prototype to avoid an error.
28529 Use char because int might match the return type of a GCC
28530 builtin and then its argument prototype would still apply. */
28531#ifdef __cplusplus
28532extern "C"
28533#endif
28534char ddjvu_context_create ();
28535int
28536main ()
28537{
28538return ddjvu_context_create ();
28539 ;
28540 return 0;
28541}
28542_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028543if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028544 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28545else
cristy8b350f62009-11-15 23:12:43 +000028546 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028547fi
cristy8b350f62009-11-15 23:12:43 +000028548rm -f core conftest.err conftest.$ac_objext \
28549 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028550LIBS=$ac_check_lib_save_LIBS
28551fi
cristy8b350f62009-11-15 23:12:43 +000028552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028553$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028554if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028555 passed=`expr $passed + 1`
28556else
28557 failed=`expr $failed + 1`
28558fi
28559
cristy8b350f62009-11-15 23:12:43 +000028560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028561$as_echo_n "checking if DJVU package is complete... " >&6; }
28562 if test $passed -gt 0; then
28563 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28565$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028566 have_djvu='no (failed tests)'
28567 else
28568 DJVU_LIBS='-ldjvulibre'
28569 LIBS="$DJVU_LIBS $LIBS"
28570
cristy8b350f62009-11-15 23:12:43 +000028571$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028572
cristyad38abe2012-12-23 23:03:21 +000028573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28574$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028575 have_djvu='yes'
28576 fi
28577 else
cristyad38abe2012-12-23 23:03:21 +000028578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28579$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028580 fi
28581fi
cristy73bd4a52010-10-05 11:24:23 +000028582 if test "$have_djvu" = 'yes'; then
28583 DJVU_DELEGATE_TRUE=
28584 DJVU_DELEGATE_FALSE='#'
28585else
28586 DJVU_DELEGATE_TRUE='#'
28587 DJVU_DELEGATE_FALSE=
28588fi
28589
cristy3ed852e2009-09-05 21:47:34 +000028590
28591
28592
28593#
cristy430a7312010-01-21 20:44:04 +000028594# Set DejaVu font directory.
28595#
28596
28597# Check whether --with-dejavu-font-dir was given.
28598if test "${with_dejavu_font_dir+set}" = set; then :
28599 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28600else
28601 with_dejavu_font_dir='default'
28602fi
28603
28604
28605if test "$with_dejavu_font_dir" != 'default'; then
28606 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28607fi
28608
28609
28610#
cristy3ed852e2009-09-05 21:47:34 +000028611# Check for FFTW delegate library.
28612#
28613
28614# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028615if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028616 withval=$with_fftw; with_fftw=$withval
28617else
28618 with_fftw='yes'
28619fi
28620
28621
28622if test "$with_fftw" != 'yes'; then
28623 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28624fi
28625
cristy81beccd2011-10-03 18:17:24 +000028626have_fftw='no'
28627FFTW_LIBS=''
28628if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28630$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28632$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28634$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028635 failed=0
28636 passed=0
28637 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28638if test "x$ac_cv_header_fftw3_h" = xyes; then :
28639 passed=`expr $passed + 1`
28640else
28641 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028642fi
28643
cristy81beccd2011-10-03 18:17:24 +000028644
28645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28646$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28647if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28648 $as_echo_n "(cached) " >&6
28649else
28650 ac_check_lib_save_LIBS=$LIBS
28651LIBS="-lfftw3 $LIBS"
28652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28653/* end confdefs.h. */
28654
28655/* Override any GCC internal prototype to avoid an error.
28656 Use char because int might match the return type of a GCC
28657 builtin and then its argument prototype would still apply. */
28658#ifdef __cplusplus
28659extern "C"
28660#endif
28661char fftw_execute ();
28662int
28663main ()
28664{
28665return fftw_execute ();
28666 ;
28667 return 0;
28668}
28669_ACEOF
28670if ac_fn_c_try_link "$LINENO"; then :
28671 ac_cv_lib_fftw3_fftw_execute=yes
28672else
28673 ac_cv_lib_fftw3_fftw_execute=no
28674fi
28675rm -f core conftest.err conftest.$ac_objext \
28676 conftest$ac_exeext conftest.$ac_ext
28677LIBS=$ac_check_lib_save_LIBS
28678fi
28679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28680$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28681if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28682 passed=`expr $passed + 1`
28683else
28684 failed=`expr $failed + 1`
28685fi
28686
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28688$as_echo_n "checking if FFTW package is complete... " >&6; }
28689 if test $passed -gt 0; then
28690 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28692$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028693 have_fftw='no (failed tests)'
28694 else
28695 FFTW_LIBS='-lfftw3'
28696 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028697
cristy8b350f62009-11-15 23:12:43 +000028698$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028699
cristyad38abe2012-12-23 23:03:21 +000028700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28701$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028702 have_fftw='yes'
28703 fi
28704 else
cristyad38abe2012-12-23 23:03:21 +000028705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28706$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028707 fi
28708fi
cristy73bd4a52010-10-05 11:24:23 +000028709 if test "$have_fftw" = 'yes'; then
28710 FFTW_DELEGATE_TRUE=
28711 FFTW_DELEGATE_FALSE='#'
28712else
28713 FFTW_DELEGATE_TRUE='#'
28714 FFTW_DELEGATE_FALSE=
28715fi
28716
cristy3ed852e2009-09-05 21:47:34 +000028717
28718
28719
28720#
28721# Check for FlashPIX delegate library.
28722#
28723
28724# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028725if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028726 withval=$with_fpx; with_fpx=$withval
28727else
28728 with_fpx='yes'
28729fi
28730
28731
28732if test "$with_fpx" != 'yes'; then
28733 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28734fi
28735
28736have_fpx='no'
28737FPX_LIBS=''
28738if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28740$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028742$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28744$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028745 failed=0
28746 passed=0
28747 ac_ext=cpp
28748ac_cpp='$CXXCPP $CPPFLAGS'
28749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28752
28753
cristy8b350f62009-11-15 23:12:43 +000028754ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028755if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028756 passed=`expr $passed + 1`
28757else
28758 failed=`expr $failed + 1`
28759fi
28760
28761
cristy8b350f62009-11-15 23:12:43 +000028762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028763$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028764if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028765 $as_echo_n "(cached) " >&6
28766else
28767 ac_check_lib_save_LIBS=$LIBS
28768LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028770/* end confdefs.h. */
28771
28772/* Override any GCC internal prototype to avoid an error.
28773 Use char because int might match the return type of a GCC
28774 builtin and then its argument prototype would still apply. */
28775#ifdef __cplusplus
28776extern "C"
28777#endif
28778char FPX_OpenImageByFilename ();
28779int
28780main ()
28781{
28782return FPX_OpenImageByFilename ();
28783 ;
28784 return 0;
28785}
28786_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028787if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028788 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28789else
cristy8b350f62009-11-15 23:12:43 +000028790 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028791fi
cristy8b350f62009-11-15 23:12:43 +000028792rm -f core conftest.err conftest.$ac_objext \
28793 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028794LIBS=$ac_check_lib_save_LIBS
28795fi
cristy8b350f62009-11-15 23:12:43 +000028796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028797$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028798if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028799 passed=`expr $passed + 1`
28800else
28801 failed=`expr $failed + 1`
28802fi
28803
28804 ac_ext=c
28805ac_cpp='$CPP $CPPFLAGS'
28806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28808ac_compiler_gnu=$ac_cv_c_compiler_gnu
28809
cristy8b350f62009-11-15 23:12:43 +000028810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028811$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28812 if test $passed -gt 0; then
28813 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28815$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028816 have_fpx='no (failed tests)'
28817 else
28818 FPX_LIBS='-lfpx'
28819
cristy8b350f62009-11-15 23:12:43 +000028820$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028821
cristyad38abe2012-12-23 23:03:21 +000028822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28823$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028824 have_fpx='yes'
28825 PERLMAINCC="$CXX"
28826 fi
28827 else
cristyad38abe2012-12-23 23:03:21 +000028828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28829$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028830 fi
28831fi
cristy73bd4a52010-10-05 11:24:23 +000028832 if test "$have_fpx" = 'yes'; then
28833 FPX_DELEGATE_TRUE=
28834 FPX_DELEGATE_FALSE='#'
28835else
28836 FPX_DELEGATE_TRUE='#'
28837 FPX_DELEGATE_FALSE=
28838fi
28839
cristy3ed852e2009-09-05 21:47:34 +000028840
28841
28842
28843#
28844# Check for fontconfig delegate library.
28845#
28846
28847# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028848if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028849 withval=$with_fontconfig; with_fontconfig=$withval
28850else
cristyfc3d0222012-02-07 15:05:57 +000028851 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028852fi
28853
28854
28855if test "$with_fontconfig" != 'yes'; then
28856 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28857fi
28858
28859have_fontconfig='no'
28860FONTCONFIG_CFLAGS=""
28861FONTCONFIG_LIBS=""
28862FONTCONFIG_PKG=""
28863if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28865$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028866
28867pkg_failed=no
28868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28869$as_echo_n "checking for FONTCONFIG... " >&6; }
28870
28871if test -n "$FONTCONFIG_CFLAGS"; then
28872 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28873 elif test -n "$PKG_CONFIG"; then
28874 if test -n "$PKG_CONFIG" && \
28875 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28876 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28877 ac_status=$?
28878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28879 test $ac_status = 0; }; then
28880 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28881else
28882 pkg_failed=yes
28883fi
28884 else
28885 pkg_failed=untried
28886fi
28887if test -n "$FONTCONFIG_LIBS"; then
28888 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28889 elif test -n "$PKG_CONFIG"; then
28890 if test -n "$PKG_CONFIG" && \
28891 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28892 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28893 ac_status=$?
28894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28895 test $ac_status = 0; }; then
28896 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28897else
28898 pkg_failed=yes
28899fi
28900 else
28901 pkg_failed=untried
28902fi
28903
28904
28905
28906if test $pkg_failed = yes; then
28907
28908if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28909 _pkg_short_errors_supported=yes
28910else
28911 _pkg_short_errors_supported=no
28912fi
28913 if test $_pkg_short_errors_supported = yes; then
28914 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28915 else
28916 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28917 fi
28918 # Put the nasty error message in config.log where it belongs
28919 echo "$FONTCONFIG_PKG_ERRORS" >&5
28920
28921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28922$as_echo "no" >&6; }
28923 have_fontconfig=no
28924elif test $pkg_failed = untried; then
28925 have_fontconfig=no
28926else
28927 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28928 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28930$as_echo "yes" >&6; }
28931 have_fontconfig=yes
28932fi
cristyad38abe2012-12-23 23:03:21 +000028933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28934$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028935fi
28936
28937if test "$have_fontconfig" = 'yes'; then
28938
cristy8b350f62009-11-15 23:12:43 +000028939$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028940
cristyc6722092012-10-14 00:19:31 +000028941 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028942 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028943 fi
cristy3ed852e2009-09-05 21:47:34 +000028944fi
28945
cristy73bd4a52010-10-05 11:24:23 +000028946 if test "$have_fontconfig" = 'yes'; then
28947 FONTCONFIG_DELEGATE_TRUE=
28948 FONTCONFIG_DELEGATE_FALSE='#'
28949else
28950 FONTCONFIG_DELEGATE_TRUE='#'
28951 FONTCONFIG_DELEGATE_FALSE=
28952fi
28953
cristy3ed852e2009-09-05 21:47:34 +000028954
28955
28956
28957
28958#
cristy03f187e2013-01-24 00:22:19 +000028959# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028960#
28961
28962# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028963if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028964 withval=$with_freetype; with_freetype=$withval
28965else
28966 with_freetype='yes'
28967fi
28968
28969
cristy3ed852e2009-09-05 21:47:34 +000028970if test "$with_freetype" != 'yes'; then
28971 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28972fi
28973
cristy81beccd2011-10-03 18:17:24 +000028974have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000028975FREETYPE_CFLAGS=""
28976FREETYPE_LIBS=""
28977FREETYPE_PKG=""
28978if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28980$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000028981
28982pkg_failed=no
28983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
28984$as_echo_n "checking for FREETYPE... " >&6; }
28985
28986if test -n "$FREETYPE_CFLAGS"; then
28987 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
28988 elif test -n "$PKG_CONFIG"; then
28989 if test -n "$PKG_CONFIG" && \
28990 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
28991 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
28992 ac_status=$?
28993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28994 test $ac_status = 0; }; then
28995 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
28996else
28997 pkg_failed=yes
28998fi
28999 else
29000 pkg_failed=untried
29001fi
29002if test -n "$FREETYPE_LIBS"; then
29003 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29004 elif test -n "$PKG_CONFIG"; then
29005 if test -n "$PKG_CONFIG" && \
29006 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29007 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29008 ac_status=$?
29009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29010 test $ac_status = 0; }; then
29011 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29012else
29013 pkg_failed=yes
29014fi
29015 else
29016 pkg_failed=untried
29017fi
29018
29019
29020
29021if test $pkg_failed = yes; then
29022
29023if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29024 _pkg_short_errors_supported=yes
29025else
29026 _pkg_short_errors_supported=no
29027fi
29028 if test $_pkg_short_errors_supported = yes; then
29029 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29030 else
29031 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29032 fi
29033 # Put the nasty error message in config.log where it belongs
29034 echo "$FREETYPE_PKG_ERRORS" >&5
29035
29036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29037$as_echo "no" >&6; }
29038 have_freetype=no
29039elif test $pkg_failed = untried; then
29040 have_freetype=no
29041else
29042 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29043 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29045$as_echo "yes" >&6; }
29046 have_freetype=yes
29047fi
cristyad38abe2012-12-23 23:03:21 +000029048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29049$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029050fi
29051
cristy03f187e2013-01-24 00:22:19 +000029052if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029053
cristy8b350f62009-11-15 23:12:43 +000029054$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029055
cristy03f187e2013-01-24 00:22:19 +000029056 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029057fi
cristy03f187e2013-01-24 00:22:19 +000029058
cristy73bd4a52010-10-05 11:24:23 +000029059 if test "$have_freetype" = 'yes'; then
29060 FREETYPE_DELEGATE_TRUE=
29061 FREETYPE_DELEGATE_FALSE='#'
29062else
29063 FREETYPE_DELEGATE_TRUE='#'
29064 FREETYPE_DELEGATE_FALSE=
29065fi
29066
cristy3ed852e2009-09-05 21:47:34 +000029067
29068
29069
cristy03f187e2013-01-24 00:22:19 +000029070
cristy3ed852e2009-09-05 21:47:34 +000029071#
29072# Check for Ghostscript library or framework.
29073#
29074# Test for iapi.h & test for gsapi_new_instance in -lgs
29075# or -framework Ghostscript
29076
29077
29078# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029079if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029080 withval=$with_gslib; with_gslib=$withval
29081else
29082 with_gslib='no'
29083fi
29084
29085
cristyb7931f12009-09-25 10:22:21 +000029086gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029087if test "$with_gslib" != 'yes'; then
29088 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29089fi
29090
29091have_gslib='no'
29092GS_LIBS=''
29093if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29095$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029097$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29099$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029100 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029101 failed=0
29102 passed=0
cristy8b350f62009-11-15 23:12:43 +000029103 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 +000029104if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029105 passed=`expr $passed + 1`
29106else
29107 failed=`expr $failed + 1`
29108fi
29109
29110
cristy8b350f62009-11-15 23:12:43 +000029111 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 +000029112if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029113 passed=`expr $passed + 1`
29114else
29115 failed=`expr $failed + 1`
29116fi
29117
29118
cristy73bd4a52010-10-05 11:24:23 +000029119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29120$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029121if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029122 $as_echo_n "(cached) " >&6
29123else
29124 ac_check_framework_save_LIBS=$LIBS
29125LIBS="-framework Ghostscript $LIBS"
29126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29127/* end confdefs.h. */
29128
29129/* Override any GCC internal prototype to avoid an error.
29130 Use char because int might match the return type of a GCC
29131 builtin and then its argument prototype would still apply. */
29132#ifdef __cplusplus
29133extern "C"
29134#endif
29135char gsapi_new_instance ();
29136int
29137main ()
29138{
29139return gsapi_new_instance ();
29140 ;
29141 return 0;
29142}
29143_ACEOF
29144if ac_fn_c_try_link "$LINENO"; then :
29145 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29146else
29147 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29148fi
29149rm -f core conftest.err conftest.$ac_objext \
29150 conftest$ac_exeext conftest.$ac_ext
29151LIBS=$ac_check_framework_save_LIBS
29152fi
29153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29154$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29155if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29156 framework=`expr $framework + 1`
29157else
29158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029159$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029160if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029161 $as_echo_n "(cached) " >&6
29162else
29163 ac_check_lib_save_LIBS=$LIBS
29164LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029166/* end confdefs.h. */
29167
29168/* Override any GCC internal prototype to avoid an error.
29169 Use char because int might match the return type of a GCC
29170 builtin and then its argument prototype would still apply. */
29171#ifdef __cplusplus
29172extern "C"
29173#endif
29174char gsapi_new_instance ();
29175int
29176main ()
29177{
29178return gsapi_new_instance ();
29179 ;
29180 return 0;
29181}
29182_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029183if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029184 ac_cv_lib_gs_gsapi_new_instance=yes
29185else
cristy8b350f62009-11-15 23:12:43 +000029186 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029187fi
cristy8b350f62009-11-15 23:12:43 +000029188rm -f core conftest.err conftest.$ac_objext \
29189 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029190LIBS=$ac_check_lib_save_LIBS
29191fi
cristy8b350f62009-11-15 23:12:43 +000029192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029193$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029194if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029195 passed=`expr $passed + 1`
29196else
29197 failed=`expr $failed + 1`
29198fi
cristy73bd4a52010-10-05 11:24:23 +000029199
29200fi
cristy8b350f62009-11-15 23:12:43 +000029201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029202$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29203 if test $passed -gt 0; then
29204 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29206$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029207 have_gslib='no (failed tests)'
29208 else
29209 if test $framework -gt 0; then
29210 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029211 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29213$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029214 else
cristyad38abe2012-12-23 23:03:21 +000029215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29216$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029217 GS_LIBS='-lgs'
29218 fi
29219 LIBS="$GS_LIBS $LIBS"
29220
cristy8b350f62009-11-15 23:12:43 +000029221$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029222
29223 have_gslib='yes'
29224 fi
29225 else
cristyad38abe2012-12-23 23:03:21 +000029226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29227$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029228 fi
29229fi
cristy73bd4a52010-10-05 11:24:23 +000029230 if test "$have_gslib" = 'yes'; then
29231 GS_DELEGATE_TRUE=
29232 GS_DELEGATE_FALSE='#'
29233else
29234 GS_DELEGATE_TRUE='#'
29235 GS_DELEGATE_FALSE=
29236fi
29237
cristy3ed852e2009-09-05 21:47:34 +000029238
29239
29240# Set default font search path
29241
29242# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029243if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029244 withval=$with_fontpath; with_fontpath=$withval
29245else
29246 with_fontpath=''
29247fi
29248
29249
29250if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29251 with_fontpath=''
29252else
29253
29254cat >>confdefs.h <<_ACEOF
29255#define MAGICK_FONT_PATH "$with_fontpath"
29256_ACEOF
29257
29258fi
29259if test "$with_fontpath=" != ''; then
29260 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29261fi
29262
29263# Set Ghostscript font directory
29264
29265# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029266if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029267 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29268else
29269 with_gs_font_dir='default'
29270fi
29271
29272
29273if test "$with_gs_font_dir" != 'default'; then
29274 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29275fi
29276
29277
29278#
29279# Check for GVC delegate library.
29280#
29281
29282# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029283if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029284 withval=$with_gvc; with_gvc=$withval
29285else
cristy1b70dc82012-07-01 23:15:05 +000029286 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029287fi
29288
29289
29290if test "$with_gvc" != 'yes'; then
29291 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29292fi
29293
29294GVC_PKG=""
29295if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29297$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029298
29299pkg_failed=no
29300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29301$as_echo_n "checking for GVC... " >&6; }
29302
29303if test -n "$GVC_CFLAGS"; then
29304 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29305 elif test -n "$PKG_CONFIG"; then
29306 if test -n "$PKG_CONFIG" && \
29307 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29308 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29309 ac_status=$?
29310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29311 test $ac_status = 0; }; then
29312 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29313else
29314 pkg_failed=yes
29315fi
29316 else
29317 pkg_failed=untried
29318fi
29319if test -n "$GVC_LIBS"; then
29320 pkg_cv_GVC_LIBS="$GVC_LIBS"
29321 elif test -n "$PKG_CONFIG"; then
29322 if test -n "$PKG_CONFIG" && \
29323 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29324 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29325 ac_status=$?
29326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29327 test $ac_status = 0; }; then
29328 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29329else
29330 pkg_failed=yes
29331fi
29332 else
29333 pkg_failed=untried
29334fi
29335
29336
29337
29338if test $pkg_failed = yes; then
29339
29340if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29341 _pkg_short_errors_supported=yes
29342else
29343 _pkg_short_errors_supported=no
29344fi
29345 if test $_pkg_short_errors_supported = yes; then
29346 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29347 else
29348 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29349 fi
29350 # Put the nasty error message in config.log where it belongs
29351 echo "$GVC_PKG_ERRORS" >&5
29352
29353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29354$as_echo "no" >&6; }
29355 have_gvc=no
29356elif test $pkg_failed = untried; then
29357 have_gvc=no
29358else
29359 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29360 GVC_LIBS=$pkg_cv_GVC_LIBS
29361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29362$as_echo "yes" >&6; }
29363 have_gvc=yes
29364fi
cristyad38abe2012-12-23 23:03:21 +000029365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29366$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029367fi
29368
29369if test "$have_gvc" = 'yes'; then
29370
cristy8b350f62009-11-15 23:12:43 +000029371$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029372
cristyc6722092012-10-14 00:19:31 +000029373 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029374 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29375 fi
29376fi
29377
cristy73bd4a52010-10-05 11:24:23 +000029378 if test "$have_gvc" = 'yes'; then
29379 GVC_DELEGATE_TRUE=
29380 GVC_DELEGATE_FALSE='#'
29381else
29382 GVC_DELEGATE_TRUE='#'
29383 GVC_DELEGATE_FALSE=
29384fi
29385
cristy3ed852e2009-09-05 21:47:34 +000029386
29387
29388
29389
29390#
29391# Check for JBIG delegate library.
29392#
29393
29394
29395# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029396if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029397 withval=$with_jbig; with_jbig=$withval
29398else
29399 with_jbig='yes'
29400fi
29401
29402
29403have_jbig='no'
29404JBIG_LIBS=''
29405if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29407$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029409$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29411$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029412 failed=0
29413 passed=0
cristy8b350f62009-11-15 23:12:43 +000029414 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029415if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029416 passed=`expr $passed + 1`
29417else
29418 failed=`expr $failed + 1`
29419fi
29420
29421
cristy8b350f62009-11-15 23:12:43 +000029422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029423$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029424if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029425 $as_echo_n "(cached) " >&6
29426else
29427 ac_check_lib_save_LIBS=$LIBS
29428LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029430/* end confdefs.h. */
29431
29432/* Override any GCC internal prototype to avoid an error.
29433 Use char because int might match the return type of a GCC
29434 builtin and then its argument prototype would still apply. */
29435#ifdef __cplusplus
29436extern "C"
29437#endif
29438char jbg_dec_init ();
29439int
29440main ()
29441{
29442return jbg_dec_init ();
29443 ;
29444 return 0;
29445}
29446_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029447if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029448 ac_cv_lib_jbig_jbg_dec_init=yes
29449else
cristy8b350f62009-11-15 23:12:43 +000029450 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029451fi
cristy8b350f62009-11-15 23:12:43 +000029452rm -f core conftest.err conftest.$ac_objext \
29453 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029454LIBS=$ac_check_lib_save_LIBS
29455fi
cristy8b350f62009-11-15 23:12:43 +000029456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029457$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029458if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029459 passed=`expr $passed + 1`
29460else
29461 failed=`expr $failed + 1`
29462fi
29463
cristy8b350f62009-11-15 23:12:43 +000029464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029465$as_echo_n "checking if JBIG package is complete... " >&6; }
29466 if test $passed -gt 0; then
29467 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29469$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029470 have_jbig='no (failed tests)'
29471 else
29472 JBIG_LIBS='-ljbig'
29473 LIBS="$JBIG_LIBS $LIBS"
29474
cristy8b350f62009-11-15 23:12:43 +000029475$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029476
cristyad38abe2012-12-23 23:03:21 +000029477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29478$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029479 have_jbig='yes'
29480 fi
29481 else
cristyad38abe2012-12-23 23:03:21 +000029482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29483$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029484 fi
29485fi
cristy73bd4a52010-10-05 11:24:23 +000029486 if test "$have_jbig" = 'yes'; then
29487 JBIG_DELEGATE_TRUE=
29488 JBIG_DELEGATE_FALSE='#'
29489else
29490 JBIG_DELEGATE_TRUE='#'
29491 JBIG_DELEGATE_FALSE=
29492fi
29493
cristy3ed852e2009-09-05 21:47:34 +000029494
29495
29496
29497#
29498# Check for JPEG delegate library.
29499#
29500
29501# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029502if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029503 withval=$with_jpeg; with_jpeg=$withval
29504else
29505 with_jpeg='yes'
29506fi
29507
29508
29509if test "$with_jpeg" != 'yes'; then
29510 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29511fi
29512
29513have_jpeg='no'
29514JPEG_LIBS=''
29515if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29517$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029519$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29521$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029522 failed=0
29523 passed=0
cristy8b350f62009-11-15 23:12:43 +000029524 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029525if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029526 passed=`expr $passed + 1`
29527else
29528 failed=`expr $failed + 1`
29529fi
29530
29531
cristy8b350f62009-11-15 23:12:43 +000029532 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029533if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029534 passed=`expr $passed + 1`
29535else
29536 failed=`expr $failed + 1`
29537fi
29538
29539
cristy8b350f62009-11-15 23:12:43 +000029540 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029541if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029542 passed=`expr $passed + 1`
29543else
29544 failed=`expr $failed + 1`
29545fi
29546
29547
cristy8b350f62009-11-15 23:12:43 +000029548 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029549if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029550 passed=`expr $passed + 1`
29551else
29552 failed=`expr $failed + 1`
29553fi
29554
29555
cristy8b350f62009-11-15 23:12:43 +000029556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029557$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029558if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029559 $as_echo_n "(cached) " >&6
29560else
29561 ac_check_lib_save_LIBS=$LIBS
29562LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029564/* end confdefs.h. */
29565
29566/* Override any GCC internal prototype to avoid an error.
29567 Use char because int might match the return type of a GCC
29568 builtin and then its argument prototype would still apply. */
29569#ifdef __cplusplus
29570extern "C"
29571#endif
29572char jpeg_read_header ();
29573int
29574main ()
29575{
29576return jpeg_read_header ();
29577 ;
29578 return 0;
29579}
29580_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029581if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029582 ac_cv_lib_jpeg_jpeg_read_header=yes
29583else
cristy8b350f62009-11-15 23:12:43 +000029584 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029585fi
cristy8b350f62009-11-15 23:12:43 +000029586rm -f core conftest.err conftest.$ac_objext \
29587 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029588LIBS=$ac_check_lib_save_LIBS
29589fi
cristy8b350f62009-11-15 23:12:43 +000029590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029591$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029592if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029593 passed=`expr $passed + 1`
29594else
29595 failed=`expr $failed + 1`
29596fi
29597
29598
29599# Test for compatible JPEG library
29600if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029602$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029603if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029604 $as_echo_n "(cached) " >&6
29605else
cristy8b350f62009-11-15 23:12:43 +000029606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029607/* end confdefs.h. */
29608#include <stdio.h>
29609#include <stdlib.h>
29610#include <jpeglib.h>
29611
29612int
29613main ()
29614{
29615
29616#if JPEG_LIB_VERSION < 62
29617#error IJG JPEG library must be version 6b or newer!
29618#endif
29619return 0;
29620
29621 ;
29622 return 0;
29623}
29624_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029625if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029626 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29627else
cristy8b350f62009-11-15 23:12:43 +000029628 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029629fi
cristy3ed852e2009-09-05 21:47:34 +000029630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29631fi
cristy8b350f62009-11-15 23:12:43 +000029632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029633$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29634fi
cristy8b350f62009-11-15 23:12:43 +000029635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029636$as_echo_n "checking if JPEG package is complete... " >&6; }
29637 if test $passed -gt 0; then
29638 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29640$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029641 have_jpeg='no (failed tests)'
29642 else
29643 JPEG_LIBS='-ljpeg'
29644 LIBS="$JPEG_LIBS $LIBS"
29645
cristy8b350f62009-11-15 23:12:43 +000029646$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029647
cristyad38abe2012-12-23 23:03:21 +000029648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29649$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029650 have_jpeg='yes'
29651 fi
29652 else
cristyad38abe2012-12-23 23:03:21 +000029653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29654$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029655 fi
29656fi
cristy73bd4a52010-10-05 11:24:23 +000029657 if test "$have_jpeg" = 'yes'; then
29658 JPEG_DELEGATE_TRUE=
29659 JPEG_DELEGATE_FALSE='#'
29660else
29661 JPEG_DELEGATE_TRUE='#'
29662 JPEG_DELEGATE_FALSE=
29663fi
29664
cristy3ed852e2009-09-05 21:47:34 +000029665
29666
29667
29668#
29669# Check for JPEG Version 2 delegate library.
29670#
29671
29672# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029673if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029674 withval=$with_jp2; with_jp2=$withval
29675else
29676 with_jp2='yes'
29677fi
29678
29679
29680if test "$with_jp2" != 'yes'; then
29681 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29682fi
29683
29684have_jp2='no'
29685JP2_LIBS=''
29686if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29688$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029690$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29692$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029693 failed=0
29694 passed=0
cristy8b350f62009-11-15 23:12:43 +000029695 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 +000029696if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029697 passed=`expr $passed + 1`
29698else
29699 failed=`expr $failed + 1`
29700fi
29701
29702
cristy8b350f62009-11-15 23:12:43 +000029703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029704$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029705if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029706 $as_echo_n "(cached) " >&6
29707else
29708 ac_check_lib_save_LIBS=$LIBS
29709LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029711/* end confdefs.h. */
29712
29713/* Override any GCC internal prototype to avoid an error.
29714 Use char because int might match the return type of a GCC
29715 builtin and then its argument prototype would still apply. */
29716#ifdef __cplusplus
29717extern "C"
29718#endif
29719char jas_stream_fopen ();
29720int
29721main ()
29722{
29723return jas_stream_fopen ();
29724 ;
29725 return 0;
29726}
29727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029728if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029729 ac_cv_lib_jasper_jas_stream_fopen=yes
29730else
cristy8b350f62009-11-15 23:12:43 +000029731 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029732fi
cristy8b350f62009-11-15 23:12:43 +000029733rm -f core conftest.err conftest.$ac_objext \
29734 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029735LIBS=$ac_check_lib_save_LIBS
29736fi
cristy8b350f62009-11-15 23:12:43 +000029737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029738$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029739if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029740 passed=`expr $passed + 1`
29741else
29742 failed=`expr $failed + 1`
29743fi
29744
cristy8b350f62009-11-15 23:12:43 +000029745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029746$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29747 if test $passed -gt 0; then
29748 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29750$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029751 have_jp2='no (failed tests)'
29752 else
29753 JP2_LIBS='-ljasper'
29754 LIBS="$JP2_LIBS $LIBS"
29755
cristy8b350f62009-11-15 23:12:43 +000029756$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029757
cristyad38abe2012-12-23 23:03:21 +000029758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29759$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029760 have_jp2='yes'
29761 fi
29762 else
cristyad38abe2012-12-23 23:03:21 +000029763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29764$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029765 fi
29766fi
cristy73bd4a52010-10-05 11:24:23 +000029767 if test "$have_jp2" = 'yes'; then
29768 JP2_DELEGATE_TRUE=
29769 JP2_DELEGATE_FALSE='#'
29770else
29771 JP2_DELEGATE_TRUE='#'
29772 JP2_DELEGATE_FALSE=
29773fi
29774
cristy3ed852e2009-09-05 21:47:34 +000029775
29776
29777
29778#
29779# Check for LCMS delegate library.
29780#
cristy71203402010-06-18 13:12:03 +000029781# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029782
29783# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029784if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029785 withval=$with_lcms; with_lcms=$withval
29786else
29787 with_lcms='yes'
29788fi
29789
cristy71203402010-06-18 13:12:03 +000029790if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029791 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29792fi
29793
cristy71203402010-06-18 13:12:03 +000029794# Disable LCMS2.
29795
29796# Check whether --with-lcms2 was given.
29797if test "${with_lcms2+set}" = set; then :
29798 withval=$with_lcms2; with_lcms2=$withval
29799else
29800 with_lcms2='yes'
29801fi
29802
29803if test "$with_lcms2" != 'yes' ; then
29804 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29805fi
29806
29807have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029808LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029809if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29811$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29813$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29815$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029816 failed=0
29817 passed=0
29818 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029819
29820 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029821 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029822if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029823 have_lcms_header='yes'
29824fi
29825
29826
29827 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029828
29829$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29830
cristy71203402010-06-18 13:12:03 +000029831 passed=`expr $passed + 1`
29832 fi
29833
29834 # Check for <lcms2/lcms2.h)
29835 if test "$have_lcms_header" != 'yes'; then
29836 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 +000029837if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029838 have_lcms_header='yes'
29839fi
29840
29841
cristy71203402010-06-18 13:12:03 +000029842 if test "$have_lcms_header" = 'yes'; then
29843 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029844
cristy71203402010-06-18 13:12:03 +000029845$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029846
cristy71203402010-06-18 13:12:03 +000029847 fi
cristyd09bcf92010-03-25 03:04:45 +000029848 fi
cristy71203402010-06-18 13:12:03 +000029849
29850 # Failed to find lcms header?
29851 if test "$have_lcms_header" != 'yes'; then
29852 failed=`expr $failed + 1`
29853 fi
29854
29855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29856$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029857if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029858 $as_echo_n "(cached) " >&6
29859else
29860 ac_check_lib_save_LIBS=$LIBS
29861LIBS="-llcms2 $LIBS"
29862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29863/* end confdefs.h. */
29864
29865/* Override any GCC internal prototype to avoid an error.
29866 Use char because int might match the return type of a GCC
29867 builtin and then its argument prototype would still apply. */
29868#ifdef __cplusplus
29869extern "C"
29870#endif
cristy71203402010-06-18 13:12:03 +000029871char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029872int
29873main ()
29874{
cristy71203402010-06-18 13:12:03 +000029875return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029876 ;
29877 return 0;
29878}
29879_ACEOF
29880if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029881 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029882else
cristy71203402010-06-18 13:12:03 +000029883 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029884fi
29885rm -f core conftest.err conftest.$ac_objext \
29886 conftest$ac_exeext conftest.$ac_ext
29887LIBS=$ac_check_lib_save_LIBS
29888fi
cristy71203402010-06-18 13:12:03 +000029889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29890$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029891if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029892 passed=`expr $passed + 1`
29893else
29894 failed=`expr $failed + 1`
29895fi
29896
cristy71203402010-06-18 13:12:03 +000029897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29898$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029899 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029900 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29902$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029903 have_lcms2='no (failed tests)'
29904 else
29905 LCMS_LIBS='-llcms2'
29906 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000029907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29908$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029909 have_lcms2='yes'
29910 fi
cristyd09bcf92010-03-25 03:04:45 +000029911 else
cristyad38abe2012-12-23 23:03:21 +000029912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29913$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029914 fi
29915fi
29916
cristy71203402010-06-18 13:12:03 +000029917#
29918# Check for LCMS v1 (1.11 or later)
29919#
29920if test $have_lcms2 = 'yes'; then
29921 with_lcms='no'
29922fi
29923
29924have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029925if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29927$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29929$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29931$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029932 failed=0
29933 passed=0
29934 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029935
29936 # Check for <lcms.h>
29937 if test "$have_lcms_header" != 'yes'; then
29938 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029939if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029940 have_lcms_header='yes'
29941fi
29942
29943
cristy71203402010-06-18 13:12:03 +000029944 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029945 passed=`expr $passed + 1`
29946
cristy8b350f62009-11-15 23:12:43 +000029947$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029948
cristy71203402010-06-18 13:12:03 +000029949 fi
29950 fi
29951
29952 # Check for <lcms/lcms.h>
29953 if test "$have_lcms_header" != 'yes'; then
29954 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 +000029955if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029956 have_lcms_header='yes'
29957fi
29958
29959
cristy71203402010-06-18 13:12:03 +000029960 if test "$have_lcms_header" = 'yes'; then
29961 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029962
cristy8b350f62009-11-15 23:12:43 +000029963$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029964
cristy71203402010-06-18 13:12:03 +000029965 fi
cristy3ed852e2009-09-05 21:47:34 +000029966 fi
cristy71203402010-06-18 13:12:03 +000029967
29968 # Failed to find lcms header?
29969 if test "$have_lcms_header" != 'yes'; then
29970 failed=`expr $failed + 1`
29971 fi
29972
29973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29974$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029975if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029976 $as_echo_n "(cached) " >&6
29977else
29978 ac_check_lib_save_LIBS=$LIBS
29979LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029981/* end confdefs.h. */
29982
29983/* Override any GCC internal prototype to avoid an error.
29984 Use char because int might match the return type of a GCC
29985 builtin and then its argument prototype would still apply. */
29986#ifdef __cplusplus
29987extern "C"
29988#endif
cristy71203402010-06-18 13:12:03 +000029989char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029990int
29991main ()
29992{
cristy71203402010-06-18 13:12:03 +000029993return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029994 ;
29995 return 0;
29996}
29997_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029998if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029999 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030000else
cristy71203402010-06-18 13:12:03 +000030001 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030002fi
cristy8b350f62009-11-15 23:12:43 +000030003rm -f core conftest.err conftest.$ac_objext \
30004 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030005LIBS=$ac_check_lib_save_LIBS
30006fi
cristy71203402010-06-18 13:12:03 +000030007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30008$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030009if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030010 passed=`expr $passed + 1`
30011else
30012 failed=`expr $failed + 1`
30013fi
30014
cristy8b350f62009-11-15 23:12:43 +000030015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030016$as_echo_n "checking if LCMS package is complete... " >&6; }
30017 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030018 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30020$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030021 have_lcms='no (failed tests)'
30022 else
30023 LCMS_LIBS='-llcms'
30024 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30026$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030027 have_lcms='yes'
30028 fi
cristy3ed852e2009-09-05 21:47:34 +000030029 else
cristyad38abe2012-12-23 23:03:21 +000030030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30031$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030032 fi
30033fi
cristy71203402010-06-18 13:12:03 +000030034
cristy73bd4a52010-10-05 11:24:23 +000030035 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30036 LCMS_DELEGATE_TRUE=
30037 LCMS_DELEGATE_FALSE='#'
30038else
30039 LCMS_DELEGATE_TRUE='#'
30040 LCMS_DELEGATE_FALSE=
30041fi
30042
cristy71203402010-06-18 13:12:03 +000030043if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30044
30045$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30046
30047fi
30048
cristy3ed852e2009-09-05 21:47:34 +000030049
30050
30051
30052#
30053# Check for the LQR (Liquid Rescale) delegate library.
30054#
30055
30056# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030057if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030058 withval=$with_lqr; with_lqr=$withval
30059else
30060 with_lqr='yes'
30061fi
30062
30063
30064if test "$with_lqr" != 'yes'; then
30065 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30066fi
30067
30068have_lqr='no'
30069LQR_CFLAGS=""
30070LQR_LIBS=""
30071LQR_PKG=""
30072if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30074$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030075
30076pkg_failed=no
30077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30078$as_echo_n "checking for LQR... " >&6; }
30079
30080if test -n "$LQR_CFLAGS"; then
30081 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30082 elif test -n "$PKG_CONFIG"; then
30083 if test -n "$PKG_CONFIG" && \
30084 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30085 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30086 ac_status=$?
30087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30088 test $ac_status = 0; }; then
30089 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30090else
30091 pkg_failed=yes
30092fi
30093 else
30094 pkg_failed=untried
30095fi
30096if test -n "$LQR_LIBS"; then
30097 pkg_cv_LQR_LIBS="$LQR_LIBS"
30098 elif test -n "$PKG_CONFIG"; then
30099 if test -n "$PKG_CONFIG" && \
30100 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30101 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30102 ac_status=$?
30103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30104 test $ac_status = 0; }; then
30105 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30106else
30107 pkg_failed=yes
30108fi
30109 else
30110 pkg_failed=untried
30111fi
30112
30113
30114
30115if test $pkg_failed = yes; then
30116
30117if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30118 _pkg_short_errors_supported=yes
30119else
30120 _pkg_short_errors_supported=no
30121fi
30122 if test $_pkg_short_errors_supported = yes; then
30123 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30124 else
30125 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30126 fi
30127 # Put the nasty error message in config.log where it belongs
30128 echo "$LQR_PKG_ERRORS" >&5
30129
30130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30131$as_echo "no" >&6; }
30132 have_lqr=no
30133elif test $pkg_failed = untried; then
30134 have_lqr=no
30135else
30136 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30137 LQR_LIBS=$pkg_cv_LQR_LIBS
30138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30139$as_echo "yes" >&6; }
30140 have_lqr=yes
30141fi
cristyad38abe2012-12-23 23:03:21 +000030142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30143$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030144fi
30145
30146if test "$have_lqr" = 'yes'; then
30147
cristy8b350f62009-11-15 23:12:43 +000030148$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030149
30150 CFLAGS="$LQR_CFLAGS $CFLAGS"
30151fi
30152
cristy73bd4a52010-10-05 11:24:23 +000030153 if test "$have_lqr" = 'yes'; then
30154 LQR_DELEGATE_TRUE=
30155 LQR_DELEGATE_FALSE='#'
30156else
30157 LQR_DELEGATE_TRUE='#'
30158 LQR_DELEGATE_FALSE=
30159fi
30160
cristy3ed852e2009-09-05 21:47:34 +000030161
30162
30163
30164
cristy81beccd2011-10-03 18:17:24 +000030165# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030166
30167# Check whether --with-lzma was given.
30168if test "${with_lzma+set}" = set; then :
30169 withval=$with_lzma; with_lzma=$withval
30170else
30171 with_lzma='yes'
30172fi
30173
cristy81beccd2011-10-03 18:17:24 +000030174if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030175 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30176fi
30177
cristyb94e5002011-11-14 13:20:10 +000030178LZMA_PKG=""
30179if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30181$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030182
30183pkg_failed=no
30184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030185$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030186
30187if test -n "$LZMA_CFLAGS"; then
30188 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30189 elif test -n "$PKG_CONFIG"; then
30190 if test -n "$PKG_CONFIG" && \
30191 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30192 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30193 ac_status=$?
30194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30195 test $ac_status = 0; }; then
30196 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30197else
30198 pkg_failed=yes
30199fi
30200 else
30201 pkg_failed=untried
30202fi
30203if test -n "$LZMA_LIBS"; then
30204 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30205 elif test -n "$PKG_CONFIG"; then
30206 if test -n "$PKG_CONFIG" && \
30207 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30208 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30209 ac_status=$?
30210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30211 test $ac_status = 0; }; then
30212 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30213else
30214 pkg_failed=yes
30215fi
30216 else
30217 pkg_failed=untried
30218fi
30219
30220
30221
30222if test $pkg_failed = yes; then
30223
30224if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30225 _pkg_short_errors_supported=yes
30226else
30227 _pkg_short_errors_supported=no
30228fi
30229 if test $_pkg_short_errors_supported = yes; then
30230 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30231 else
30232 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30233 fi
30234 # Put the nasty error message in config.log where it belongs
30235 echo "$LZMA_PKG_ERRORS" >&5
30236
30237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30238$as_echo "no" >&6; }
30239 have_lzma=no
30240elif test $pkg_failed = untried; then
30241 have_lzma=no
30242else
30243 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30244 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30246$as_echo "yes" >&6; }
30247 have_lzma=yes
30248fi
cristyad38abe2012-12-23 23:03:21 +000030249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30250$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030251fi
30252
cristyb94e5002011-11-14 13:20:10 +000030253if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030254
30255$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30256
cristyc6722092012-10-14 00:19:31 +000030257 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030258 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030259 fi
cristyfbb0ef02010-12-19 02:32:11 +000030260fi
cristyb94e5002011-11-14 13:20:10 +000030261
cristyfbb0ef02010-12-19 02:32:11 +000030262 if test "$have_lzma" = 'yes'; then
30263 LZMA_DELEGATE_TRUE=
30264 LZMA_DELEGATE_FALSE='#'
30265else
30266 LZMA_DELEGATE_TRUE='#'
30267 LZMA_DELEGATE_FALSE=
30268fi
30269
30270
30271
30272
cristyb94e5002011-11-14 13:20:10 +000030273
cristy3ed852e2009-09-05 21:47:34 +000030274#
30275# Check for the OpenEXR delegate library.
30276#
30277
30278# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030279if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030280 withval=$with_openexr; with_openexr=$withval
30281else
30282 with_openexr='yes'
30283fi
30284
30285
30286if test "$with_openexr" != 'yes'; then
30287 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30288fi
30289
30290have_openexr='no'
30291OPENEXR_CFLAGS=""
30292OPENEXR_LIBS=""
30293OPENEXR_PKG=""
30294if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30296$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030297
30298pkg_failed=no
30299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30300$as_echo_n "checking for OPENEXR... " >&6; }
30301
30302if test -n "$OPENEXR_CFLAGS"; then
30303 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30304 elif test -n "$PKG_CONFIG"; then
30305 if test -n "$PKG_CONFIG" && \
30306 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30307 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30308 ac_status=$?
30309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30310 test $ac_status = 0; }; then
30311 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30312else
30313 pkg_failed=yes
30314fi
30315 else
30316 pkg_failed=untried
30317fi
30318if test -n "$OPENEXR_LIBS"; then
30319 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30320 elif test -n "$PKG_CONFIG"; then
30321 if test -n "$PKG_CONFIG" && \
30322 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30323 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30324 ac_status=$?
30325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30326 test $ac_status = 0; }; then
30327 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30328else
30329 pkg_failed=yes
30330fi
30331 else
30332 pkg_failed=untried
30333fi
30334
30335
30336
30337if test $pkg_failed = yes; then
30338
30339if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30340 _pkg_short_errors_supported=yes
30341else
30342 _pkg_short_errors_supported=no
30343fi
30344 if test $_pkg_short_errors_supported = yes; then
30345 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30346 else
30347 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30348 fi
30349 # Put the nasty error message in config.log where it belongs
30350 echo "$OPENEXR_PKG_ERRORS" >&5
30351
30352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30353$as_echo "no" >&6; }
30354 have_openexr=no
30355elif test $pkg_failed = untried; then
30356 have_openexr=no
30357else
30358 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30359 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30361$as_echo "yes" >&6; }
30362 have_openexr=yes
30363fi
cristyad38abe2012-12-23 23:03:21 +000030364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30365$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030366fi
30367
30368if test "$have_openexr" = 'yes'; then
30369
cristy8b350f62009-11-15 23:12:43 +000030370$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030371
cristyc6722092012-10-14 00:19:31 +000030372 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030373 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30374 fi
30375fi
30376
cristy73bd4a52010-10-05 11:24:23 +000030377 if test "$have_openexr" = 'yes'; then
30378 OPENEXR_DELEGATE_TRUE=
30379 OPENEXR_DELEGATE_FALSE='#'
30380else
30381 OPENEXR_DELEGATE_TRUE='#'
30382 OPENEXR_DELEGATE_FALSE=
30383fi
30384
cristy3ed852e2009-09-05 21:47:34 +000030385
30386
30387
30388
30389#
cristy41cbe8a2011-10-27 01:35:18 +000030390# Check for PANGO delegate library.
30391#
30392
30393# Check whether --with-pango was given.
30394if test "${with_pango+set}" = set; then :
30395 withval=$with_pango; with_pango=$withval
30396else
cristyfc3d0222012-02-07 15:05:57 +000030397 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030398fi
30399
30400
30401if test "$with_pango" != 'yes'; then
30402 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30403fi
30404
30405have_pango='no'
cristya054b762012-03-26 23:16:00 +000030406have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030407PANGO_CFLAGS=""
30408PANGO_LIBS=""
30409PANGO_PKG=""
30410if test "x$with_pango" = "xyes"; then
30411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30412$as_echo "-------------------------------------------------------------" >&6; }
30413
30414pkg_failed=no
30415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30416$as_echo_n "checking for PANGO... " >&6; }
30417
30418if test -n "$PANGO_CFLAGS"; then
30419 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30420 elif test -n "$PKG_CONFIG"; then
30421 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030422 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30423 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030424 ac_status=$?
30425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30426 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030427 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030428else
30429 pkg_failed=yes
30430fi
30431 else
30432 pkg_failed=untried
30433fi
30434if test -n "$PANGO_LIBS"; then
30435 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30436 elif test -n "$PKG_CONFIG"; then
30437 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030438 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30439 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030440 ac_status=$?
30441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30442 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030443 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030444else
30445 pkg_failed=yes
30446fi
30447 else
30448 pkg_failed=untried
30449fi
30450
30451
30452
30453if test $pkg_failed = yes; then
30454
30455if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30456 _pkg_short_errors_supported=yes
30457else
30458 _pkg_short_errors_supported=no
30459fi
30460 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030461 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030462 else
cristya054b762012-03-26 23:16:00 +000030463 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030464 fi
30465 # Put the nasty error message in config.log where it belongs
30466 echo "$PANGO_PKG_ERRORS" >&5
30467
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30469$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030470 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030471elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030472 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030473else
30474 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30475 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30477$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030478 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030479fi
30480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30481$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030482
30483pkg_failed=no
30484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30485$as_echo_n "checking for PANGO... " >&6; }
30486
30487if test -n "$PANGO_CFLAGS"; then
30488 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30489 elif test -n "$PKG_CONFIG"; then
30490 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030491 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30492 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030493 ac_status=$?
30494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30495 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030496 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030497else
30498 pkg_failed=yes
30499fi
30500 else
30501 pkg_failed=untried
30502fi
30503if test -n "$PANGO_LIBS"; then
30504 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30505 elif test -n "$PKG_CONFIG"; then
30506 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030507 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30508 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030509 ac_status=$?
30510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30511 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030512 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030513else
30514 pkg_failed=yes
30515fi
30516 else
30517 pkg_failed=untried
30518fi
30519
30520
30521
30522if test $pkg_failed = yes; then
30523
30524if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30525 _pkg_short_errors_supported=yes
30526else
30527 _pkg_short_errors_supported=no
30528fi
30529 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030530 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030531 else
cristy2542fc62011-12-06 17:50:25 +000030532 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030533 fi
30534 # Put the nasty error message in config.log where it belongs
30535 echo "$PANGO_PKG_ERRORS" >&5
30536
30537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30538$as_echo "no" >&6; }
30539 have_pango=no
30540elif test $pkg_failed = untried; then
30541 have_pango=no
30542else
30543 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30544 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30546$as_echo "yes" >&6; }
30547 have_pango=yes
30548fi
30549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30550$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030551fi
30552
30553if test "$have_pango" = 'yes'; then
30554
30555$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30556
cristyc6722092012-10-14 00:19:31 +000030557 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030558 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30559 fi
30560fi
30561
cristya054b762012-03-26 23:16:00 +000030562if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030563
cristya054b762012-03-26 23:16:00 +000030564$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030565
cristyc6722092012-10-14 00:19:31 +000030566 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030567 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030568 fi
30569fi
30570
30571 if test "$have_pango" = 'yes'; then
30572 PANGO_DELEGATE_TRUE=
30573 PANGO_DELEGATE_FALSE='#'
30574else
30575 PANGO_DELEGATE_TRUE='#'
30576 PANGO_DELEGATE_FALSE=
30577fi
30578
cristya054b762012-03-26 23:16:00 +000030579 if test "$have_pangocairo" = 'yes'; then
30580 PANGOCAIRO_DELEGATE_TRUE=
30581 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030582else
cristya054b762012-03-26 23:16:00 +000030583 PANGOCAIRO_DELEGATE_TRUE='#'
30584 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030585fi
30586
30587
30588
30589
30590
30591#
cristy3ed852e2009-09-05 21:47:34 +000030592# Check for PNG delegate library.
30593#
30594
30595# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030596if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030597 withval=$with_png; with_png=$withval
30598else
30599 with_png='yes'
30600fi
30601
30602
30603if test "$with_png" != 'yes'; then
30604 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30605fi
30606
cristy81beccd2011-10-03 18:17:24 +000030607have_png='no'
30608PNG_LIBS=''
30609
30610if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30612$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30614$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30616$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030617 failed=0
30618 passed=0
30619 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30620if test "x$ac_cv_header_png_h" = xyes; then :
30621 passed=`expr $passed + 1`
30622else
30623 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030624fi
30625
cristy81beccd2011-10-03 18:17:24 +000030626
30627
30628 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000030629 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030630 if test "$have_png" = 'no' ; then
30631 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030632 pnglib='png'
30633 else
30634 pnglib="png1${var}"
30635 fi
30636
30637# Test for compatible LIBPNG library
30638 failed=0
30639 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030640 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030641 if test "${pnglib}" != 'png' ; then
30642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30643$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30645/* end confdefs.h. */
30646#include <stdio.h>
30647#include <stdlib.h>
30648#include <png.h>
30649
30650int
30651main ()
30652{
30653
30654#if PNG_LIBPNG_VER_MINOR != ${var}
30655#error LIBPNG library must be version 1${var}!
30656Kaboom, Kaboom
30657#endif
30658return 0;
30659
30660 ;
30661 return 0;
30662}
30663_ACEOF
30664if ac_fn_c_try_compile "$LINENO"; then :
30665 ac_cv_libpng_ok='yes'
30666else
30667 ac_cv_libpng_ok='no'
30668fi
30669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30670 if test "$ac_cv_libpng_ok" = 'yes' ; then
30671 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30673$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030674 else
30675 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000030676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30677$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030678 fi
30679 else
30680 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000030681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30682$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030683 fi
30684 fi
30685
30686 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000030687 if test "1${var}" = '17' ; then
30688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
30689$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
30690if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
30691 $as_echo_n "(cached) " >&6
30692else
30693 ac_check_lib_save_LIBS=$LIBS
30694LIBS="-lpng17 $LIBS"
30695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30696/* end confdefs.h. */
30697
30698/* Override any GCC internal prototype to avoid an error.
30699 Use char because int might match the return type of a GCC
30700 builtin and then its argument prototype would still apply. */
30701#ifdef __cplusplus
30702extern "C"
30703#endif
30704char png_get_io_ptr ();
30705int
30706main ()
30707{
30708return png_get_io_ptr ();
30709 ;
30710 return 0;
30711}
30712_ACEOF
30713if ac_fn_c_try_link "$LINENO"; then :
30714 ac_cv_lib_png17_png_get_io_ptr=yes
30715else
30716 ac_cv_lib_png17_png_get_io_ptr=no
30717fi
30718rm -f core conftest.err conftest.$ac_objext \
30719 conftest$ac_exeext conftest.$ac_ext
30720LIBS=$ac_check_lib_save_LIBS
30721fi
30722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
30723$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
30724if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
30725 passed=`expr $passed + 1`
30726else
30727 failed=`expr $failed + 1`
30728fi
30729
30730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
30731$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
30732if ${ac_cv_lib_png17_png_longjmp+:} false; then :
30733 $as_echo_n "(cached) " >&6
30734else
30735 ac_check_lib_save_LIBS=$LIBS
30736LIBS="-lpng17 $LIBS"
30737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30738/* end confdefs.h. */
30739
30740/* Override any GCC internal prototype to avoid an error.
30741 Use char because int might match the return type of a GCC
30742 builtin and then its argument prototype would still apply. */
30743#ifdef __cplusplus
30744extern "C"
30745#endif
30746char png_longjmp ();
30747int
30748main ()
30749{
30750return png_longjmp ();
30751 ;
30752 return 0;
30753}
30754_ACEOF
30755if ac_fn_c_try_link "$LINENO"; then :
30756 ac_cv_lib_png17_png_longjmp=yes
30757else
30758 ac_cv_lib_png17_png_longjmp=no
30759fi
30760rm -f core conftest.err conftest.$ac_objext \
30761 conftest$ac_exeext conftest.$ac_ext
30762LIBS=$ac_check_lib_save_LIBS
30763fi
30764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
30765$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
30766if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
30767 passed=`expr $passed + 1`
30768else
30769 failed=`expr $failed + 1`
30770fi
30771
30772 fi
30773 if test "1${var}" = '16' ; then
30774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
30775$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
30776if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
30777 $as_echo_n "(cached) " >&6
30778else
30779 ac_check_lib_save_LIBS=$LIBS
30780LIBS="-lpng16 $LIBS"
30781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30782/* end confdefs.h. */
30783
30784/* Override any GCC internal prototype to avoid an error.
30785 Use char because int might match the return type of a GCC
30786 builtin and then its argument prototype would still apply. */
30787#ifdef __cplusplus
30788extern "C"
30789#endif
30790char png_get_io_ptr ();
30791int
30792main ()
30793{
30794return png_get_io_ptr ();
30795 ;
30796 return 0;
30797}
30798_ACEOF
30799if ac_fn_c_try_link "$LINENO"; then :
30800 ac_cv_lib_png16_png_get_io_ptr=yes
30801else
30802 ac_cv_lib_png16_png_get_io_ptr=no
30803fi
30804rm -f core conftest.err conftest.$ac_objext \
30805 conftest$ac_exeext conftest.$ac_ext
30806LIBS=$ac_check_lib_save_LIBS
30807fi
30808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
30809$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
30810if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
30811 passed=`expr $passed + 1`
30812else
30813 failed=`expr $failed + 1`
30814fi
30815
30816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
30817$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
30818if ${ac_cv_lib_png16_png_longjmp+:} false; then :
30819 $as_echo_n "(cached) " >&6
30820else
30821 ac_check_lib_save_LIBS=$LIBS
30822LIBS="-lpng16 $LIBS"
30823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30824/* end confdefs.h. */
30825
30826/* Override any GCC internal prototype to avoid an error.
30827 Use char because int might match the return type of a GCC
30828 builtin and then its argument prototype would still apply. */
30829#ifdef __cplusplus
30830extern "C"
30831#endif
30832char png_longjmp ();
30833int
30834main ()
30835{
30836return png_longjmp ();
30837 ;
30838 return 0;
30839}
30840_ACEOF
30841if ac_fn_c_try_link "$LINENO"; then :
30842 ac_cv_lib_png16_png_longjmp=yes
30843else
30844 ac_cv_lib_png16_png_longjmp=no
30845fi
30846rm -f core conftest.err conftest.$ac_objext \
30847 conftest$ac_exeext conftest.$ac_ext
30848LIBS=$ac_check_lib_save_LIBS
30849fi
30850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
30851$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
30852if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
30853 passed=`expr $passed + 1`
30854else
30855 failed=`expr $failed + 1`
30856fi
30857
30858 fi
cristy81beccd2011-10-03 18:17:24 +000030859 if test "1${var}" = '15' ; then
30860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30861$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30862if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30863 $as_echo_n "(cached) " >&6
30864else
30865 ac_check_lib_save_LIBS=$LIBS
30866LIBS="-lpng15 $LIBS"
30867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30868/* end confdefs.h. */
30869
30870/* Override any GCC internal prototype to avoid an error.
30871 Use char because int might match the return type of a GCC
30872 builtin and then its argument prototype would still apply. */
30873#ifdef __cplusplus
30874extern "C"
30875#endif
30876char png_get_io_ptr ();
30877int
30878main ()
30879{
30880return png_get_io_ptr ();
30881 ;
30882 return 0;
30883}
30884_ACEOF
30885if ac_fn_c_try_link "$LINENO"; then :
30886 ac_cv_lib_png15_png_get_io_ptr=yes
30887else
30888 ac_cv_lib_png15_png_get_io_ptr=no
30889fi
30890rm -f core conftest.err conftest.$ac_objext \
30891 conftest$ac_exeext conftest.$ac_ext
30892LIBS=$ac_check_lib_save_LIBS
30893fi
30894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30895$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30896if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30897 passed=`expr $passed + 1`
30898else
30899 failed=`expr $failed + 1`
30900fi
30901
30902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30903$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30904if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30905 $as_echo_n "(cached) " >&6
30906else
30907 ac_check_lib_save_LIBS=$LIBS
30908LIBS="-lpng15 $LIBS"
30909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30910/* end confdefs.h. */
30911
30912/* Override any GCC internal prototype to avoid an error.
30913 Use char because int might match the return type of a GCC
30914 builtin and then its argument prototype would still apply. */
30915#ifdef __cplusplus
30916extern "C"
30917#endif
30918char png_longjmp ();
30919int
30920main ()
30921{
30922return png_longjmp ();
30923 ;
30924 return 0;
30925}
30926_ACEOF
30927if ac_fn_c_try_link "$LINENO"; then :
30928 ac_cv_lib_png15_png_longjmp=yes
30929else
30930 ac_cv_lib_png15_png_longjmp=no
30931fi
30932rm -f core conftest.err conftest.$ac_objext \
30933 conftest$ac_exeext conftest.$ac_ext
30934LIBS=$ac_check_lib_save_LIBS
30935fi
30936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30937$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30938if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30939 passed=`expr $passed + 1`
30940else
30941 failed=`expr $failed + 1`
30942fi
30943
30944 fi
30945 if test "1${var}" = '14' ; then
30946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30947$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30948if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30949 $as_echo_n "(cached) " >&6
30950else
30951 ac_check_lib_save_LIBS=$LIBS
30952LIBS="-lpng14 $LIBS"
30953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30954/* end confdefs.h. */
30955
30956/* Override any GCC internal prototype to avoid an error.
30957 Use char because int might match the return type of a GCC
30958 builtin and then its argument prototype would still apply. */
30959#ifdef __cplusplus
30960extern "C"
30961#endif
30962char png_get_io_ptr ();
30963int
30964main ()
30965{
30966return png_get_io_ptr ();
30967 ;
30968 return 0;
30969}
30970_ACEOF
30971if ac_fn_c_try_link "$LINENO"; then :
30972 ac_cv_lib_png14_png_get_io_ptr=yes
30973else
30974 ac_cv_lib_png14_png_get_io_ptr=no
30975fi
30976rm -f core conftest.err conftest.$ac_objext \
30977 conftest$ac_exeext conftest.$ac_ext
30978LIBS=$ac_check_lib_save_LIBS
30979fi
30980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30981$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30982if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30983 passed=`expr $passed + 1`
30984else
30985 failed=`expr $failed + 1`
30986fi
30987
30988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30989$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30990if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30991 $as_echo_n "(cached) " >&6
30992else
30993 ac_check_lib_save_LIBS=$LIBS
30994LIBS="-lpng14 $LIBS"
30995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30996/* end confdefs.h. */
30997
30998/* Override any GCC internal prototype to avoid an error.
30999 Use char because int might match the return type of a GCC
31000 builtin and then its argument prototype would still apply. */
31001#ifdef __cplusplus
31002extern "C"
31003#endif
31004char png_get_io_state ();
31005int
31006main ()
31007{
31008return png_get_io_state ();
31009 ;
31010 return 0;
31011}
31012_ACEOF
31013if ac_fn_c_try_link "$LINENO"; then :
31014 ac_cv_lib_png14_png_get_io_state=yes
31015else
31016 ac_cv_lib_png14_png_get_io_state=no
31017fi
31018rm -f core conftest.err conftest.$ac_objext \
31019 conftest$ac_exeext conftest.$ac_ext
31020LIBS=$ac_check_lib_save_LIBS
31021fi
31022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31023$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31024if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31025 passed=`expr $passed + 1`
31026else
31027 failed=`expr $failed + 1`
31028fi
31029
31030 fi
31031 if test "1${var}" = '12' ; then
31032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31033$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31034if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31035 $as_echo_n "(cached) " >&6
31036else
31037 ac_check_lib_save_LIBS=$LIBS
31038LIBS="-lpng12 $LIBS"
31039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31040/* end confdefs.h. */
31041
31042/* Override any GCC internal prototype to avoid an error.
31043 Use char because int might match the return type of a GCC
31044 builtin and then its argument prototype would still apply. */
31045#ifdef __cplusplus
31046extern "C"
31047#endif
31048char png_get_io_ptr ();
31049int
31050main ()
31051{
31052return png_get_io_ptr ();
31053 ;
31054 return 0;
31055}
31056_ACEOF
31057if ac_fn_c_try_link "$LINENO"; then :
31058 ac_cv_lib_png12_png_get_io_ptr=yes
31059else
31060 ac_cv_lib_png12_png_get_io_ptr=no
31061fi
31062rm -f core conftest.err conftest.$ac_objext \
31063 conftest$ac_exeext conftest.$ac_ext
31064LIBS=$ac_check_lib_save_LIBS
31065fi
31066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31067$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31068if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31069 passed=`expr $passed + 1`
31070else
31071 failed=`expr $failed + 1`
31072fi
31073
31074 fi
31075 if test "1${var}" = '1' ; then
31076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31077$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31078if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31079 $as_echo_n "(cached) " >&6
31080else
31081 ac_check_lib_save_LIBS=$LIBS
31082LIBS="-lpng $LIBS"
31083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31084/* end confdefs.h. */
31085
31086/* Override any GCC internal prototype to avoid an error.
31087 Use char because int might match the return type of a GCC
31088 builtin and then its argument prototype would still apply. */
31089#ifdef __cplusplus
31090extern "C"
31091#endif
31092char png_get_io_ptr ();
31093int
31094main ()
31095{
31096return png_get_io_ptr ();
31097 ;
31098 return 0;
31099}
31100_ACEOF
31101if ac_fn_c_try_link "$LINENO"; then :
31102 ac_cv_lib_png_png_get_io_ptr=yes
31103else
31104 ac_cv_lib_png_png_get_io_ptr=no
31105fi
31106rm -f core conftest.err conftest.$ac_objext \
31107 conftest$ac_exeext conftest.$ac_ext
31108LIBS=$ac_check_lib_save_LIBS
31109fi
31110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31111$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31112if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31113 passed=`expr $passed + 1`
31114else
31115 failed=`expr $failed + 1`
31116fi
31117
31118 fi
31119 if test $passed -gt 0 -a $failed -le 0 ; then
31120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31121$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31122 if test $passed -gt 0 ; then
31123 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31125$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031126 have_png='no (failed tests)'
31127 else
31128 PNG_LIBS="-l${pnglib}"
31129 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031130
cristy8b350f62009-11-15 23:12:43 +000031131$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031132
cristyad38abe2012-12-23 23:03:21 +000031133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31134$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031135 have_png='yes'
31136 fi
31137 fi
31138 fi
31139 fi
31140 fi
31141 done
31142 fi
cristy3ed852e2009-09-05 21:47:34 +000031143fi
cristy64877302011-08-23 19:10:31 +000031144
cristy73bd4a52010-10-05 11:24:23 +000031145 if test "$have_png" = 'yes'; then
31146 PNG_DELEGATE_TRUE=
31147 PNG_DELEGATE_FALSE='#'
31148else
31149 PNG_DELEGATE_TRUE='#'
31150 PNG_DELEGATE_FALSE=
31151fi
31152
cristy3ed852e2009-09-05 21:47:34 +000031153
cristy50d3f5c2011-09-10 20:09:06 +000031154
cristy3ed852e2009-09-05 21:47:34 +000031155
31156
31157#
31158# Check for RSVG delegate library.
31159#
31160
31161# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031162if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031163 withval=$with_rsvg; with_rsvg=$withval
31164else
cristy1164d5f2012-08-15 00:58:25 +000031165 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031166fi
31167
31168
31169if test "$with_rsvg" != 'yes'; then
31170 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31171fi
31172
31173have_rsvg='no'
31174have_cairo='no'
31175RSVG_CFLAGS=""
31176RSVG_LIBS=""
31177RSVG_PKG=""
31178if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31180$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031181
31182pkg_failed=no
31183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31184$as_echo_n "checking for RSVG... " >&6; }
31185
31186if test -n "$RSVG_CFLAGS"; then
31187 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31188 elif test -n "$PKG_CONFIG"; then
31189 if test -n "$PKG_CONFIG" && \
31190 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31191 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31192 ac_status=$?
31193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31194 test $ac_status = 0; }; then
31195 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31196else
31197 pkg_failed=yes
31198fi
31199 else
31200 pkg_failed=untried
31201fi
31202if test -n "$RSVG_LIBS"; then
31203 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31204 elif test -n "$PKG_CONFIG"; then
31205 if test -n "$PKG_CONFIG" && \
31206 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31207 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31208 ac_status=$?
31209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31210 test $ac_status = 0; }; then
31211 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31212else
31213 pkg_failed=yes
31214fi
31215 else
31216 pkg_failed=untried
31217fi
31218
31219
31220
31221if test $pkg_failed = yes; then
31222
31223if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31224 _pkg_short_errors_supported=yes
31225else
31226 _pkg_short_errors_supported=no
31227fi
31228 if test $_pkg_short_errors_supported = yes; then
31229 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31230 else
31231 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31232 fi
31233 # Put the nasty error message in config.log where it belongs
31234 echo "$RSVG_PKG_ERRORS" >&5
31235
31236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31237$as_echo "no" >&6; }
31238 have_rsvg=no
31239elif test $pkg_failed = untried; then
31240 have_rsvg=no
31241else
31242 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31243 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31245$as_echo "yes" >&6; }
31246 have_rsvg=yes
31247fi
cristyad38abe2012-12-23 23:03:21 +000031248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31249$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031250
31251pkg_failed=no
31252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31253$as_echo_n "checking for CAIRO_SVG... " >&6; }
31254
31255if test -n "$CAIRO_SVG_CFLAGS"; then
31256 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31257 elif test -n "$PKG_CONFIG"; then
31258 if test -n "$PKG_CONFIG" && \
31259 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31260 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31261 ac_status=$?
31262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31263 test $ac_status = 0; }; then
31264 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31265else
31266 pkg_failed=yes
31267fi
31268 else
31269 pkg_failed=untried
31270fi
31271if test -n "$CAIRO_SVG_LIBS"; then
31272 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31273 elif test -n "$PKG_CONFIG"; then
31274 if test -n "$PKG_CONFIG" && \
31275 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31276 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31277 ac_status=$?
31278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31279 test $ac_status = 0; }; then
31280 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31281else
31282 pkg_failed=yes
31283fi
31284 else
31285 pkg_failed=untried
31286fi
31287
31288
31289
31290if test $pkg_failed = yes; then
31291
31292if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31293 _pkg_short_errors_supported=yes
31294else
31295 _pkg_short_errors_supported=no
31296fi
31297 if test $_pkg_short_errors_supported = yes; then
31298 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31299 else
31300 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31301 fi
31302 # Put the nasty error message in config.log where it belongs
31303 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31304
31305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31306$as_echo "no" >&6; }
31307 have_cairo=no
31308elif test $pkg_failed = untried; then
31309 have_cairo=no
31310else
31311 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31312 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31314$as_echo "yes" >&6; }
31315 have_cairo=yes
31316fi
cristyad38abe2012-12-23 23:03:21 +000031317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31318$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031319fi
31320
31321if test "$have_rsvg" = 'yes'; then
31322
cristy8b350f62009-11-15 23:12:43 +000031323$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031324
cristyc6722092012-10-14 00:19:31 +000031325 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031326 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31327 fi
31328fi
31329
31330if test "$have_cairo" = 'yes'; then
31331
cristy8b350f62009-11-15 23:12:43 +000031332$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031333
cristyc6722092012-10-14 00:19:31 +000031334 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031335 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31336 fi
31337fi
31338
cristy73bd4a52010-10-05 11:24:23 +000031339 if test "$have_rsvg" = 'yes'; then
31340 RSVG_DELEGATE_TRUE=
31341 RSVG_DELEGATE_FALSE='#'
31342else
31343 RSVG_DELEGATE_TRUE='#'
31344 RSVG_DELEGATE_FALSE=
31345fi
31346
31347 if test "$have_cairo" = 'yes'; then
31348 CAIRO_DELEGATE_TRUE=
31349 CAIRO_DELEGATE_FALSE='#'
31350else
31351 CAIRO_DELEGATE_TRUE='#'
31352 CAIRO_DELEGATE_FALSE=
31353fi
31354
cristy3ed852e2009-09-05 21:47:34 +000031355
31356
31357
31358
31359#
31360# Check for TIFF delegate library.
31361#
31362
31363# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031364if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031365 withval=$with_tiff; with_tiff=$withval
31366else
31367 with_tiff='yes'
31368fi
31369
31370
31371if test "$with_tiff" != 'yes'; then
31372 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31373fi
31374
31375have_tiff='no'
31376TIFF_LIBS=''
31377if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31379$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031381$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31383$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031384 failed=0
31385 passed=0
cristy8b350f62009-11-15 23:12:43 +000031386 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031387if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031388 passed=`expr $passed + 1`
31389else
31390 failed=`expr $failed + 1`
31391fi
31392
31393
cristy8b350f62009-11-15 23:12:43 +000031394 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031395if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031396 passed=`expr $passed + 1`
31397else
31398 failed=`expr $failed + 1`
31399fi
31400
31401
cristy8b350f62009-11-15 23:12:43 +000031402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031403$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031404if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031405 $as_echo_n "(cached) " >&6
31406else
31407 ac_check_lib_save_LIBS=$LIBS
31408LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031410/* end confdefs.h. */
31411
31412/* Override any GCC internal prototype to avoid an error.
31413 Use char because int might match the return type of a GCC
31414 builtin and then its argument prototype would still apply. */
31415#ifdef __cplusplus
31416extern "C"
31417#endif
31418char TIFFOpen ();
31419int
31420main ()
31421{
31422return TIFFOpen ();
31423 ;
31424 return 0;
31425}
31426_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031427if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031428 ac_cv_lib_tiff_TIFFOpen=yes
31429else
cristy8b350f62009-11-15 23:12:43 +000031430 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031431fi
cristy8b350f62009-11-15 23:12:43 +000031432rm -f core conftest.err conftest.$ac_objext \
31433 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031434LIBS=$ac_check_lib_save_LIBS
31435fi
cristy8b350f62009-11-15 23:12:43 +000031436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031437$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031438if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031439 passed=`expr $passed + 1`
31440else
31441 failed=`expr $failed + 1`
31442fi
31443
cristy8b350f62009-11-15 23:12:43 +000031444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031445$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031446if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031447 $as_echo_n "(cached) " >&6
31448else
31449 ac_check_lib_save_LIBS=$LIBS
31450LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031452/* end confdefs.h. */
31453
31454/* Override any GCC internal prototype to avoid an error.
31455 Use char because int might match the return type of a GCC
31456 builtin and then its argument prototype would still apply. */
31457#ifdef __cplusplus
31458extern "C"
31459#endif
31460char TIFFClientOpen ();
31461int
31462main ()
31463{
31464return TIFFClientOpen ();
31465 ;
31466 return 0;
31467}
31468_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031469if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031470 ac_cv_lib_tiff_TIFFClientOpen=yes
31471else
cristy8b350f62009-11-15 23:12:43 +000031472 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031473fi
cristy8b350f62009-11-15 23:12:43 +000031474rm -f core conftest.err conftest.$ac_objext \
31475 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031476LIBS=$ac_check_lib_save_LIBS
31477fi
cristy8b350f62009-11-15 23:12:43 +000031478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031479$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031480if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031481 passed=`expr $passed + 1`
31482else
31483 failed=`expr $failed + 1`
31484fi
31485
cristy8b350f62009-11-15 23:12:43 +000031486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031487$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031488if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031489 $as_echo_n "(cached) " >&6
31490else
31491 ac_check_lib_save_LIBS=$LIBS
31492LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031494/* end confdefs.h. */
31495
31496/* Override any GCC internal prototype to avoid an error.
31497 Use char because int might match the return type of a GCC
31498 builtin and then its argument prototype would still apply. */
31499#ifdef __cplusplus
31500extern "C"
31501#endif
31502char TIFFIsByteSwapped ();
31503int
31504main ()
31505{
31506return TIFFIsByteSwapped ();
31507 ;
31508 return 0;
31509}
31510_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031511if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031512 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31513else
cristy8b350f62009-11-15 23:12:43 +000031514 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031515fi
cristy8b350f62009-11-15 23:12:43 +000031516rm -f core conftest.err conftest.$ac_objext \
31517 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031518LIBS=$ac_check_lib_save_LIBS
31519fi
cristy8b350f62009-11-15 23:12:43 +000031520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031521$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031522if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031523 passed=`expr $passed + 1`
31524else
31525 failed=`expr $failed + 1`
31526fi
31527
cristy8b350f62009-11-15 23:12:43 +000031528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031529$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031530if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031531 $as_echo_n "(cached) " >&6
31532else
31533 ac_check_lib_save_LIBS=$LIBS
31534LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031536/* end confdefs.h. */
31537
31538/* Override any GCC internal prototype to avoid an error.
31539 Use char because int might match the return type of a GCC
31540 builtin and then its argument prototype would still apply. */
31541#ifdef __cplusplus
31542extern "C"
31543#endif
31544char TIFFReadRGBATile ();
31545int
31546main ()
31547{
31548return TIFFReadRGBATile ();
31549 ;
31550 return 0;
31551}
31552_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031553if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031554 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31555else
cristy8b350f62009-11-15 23:12:43 +000031556 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031557fi
cristy8b350f62009-11-15 23:12:43 +000031558rm -f core conftest.err conftest.$ac_objext \
31559 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031560LIBS=$ac_check_lib_save_LIBS
31561fi
cristy8b350f62009-11-15 23:12:43 +000031562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031563$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031564if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031565 passed=`expr $passed + 1`
31566else
31567 failed=`expr $failed + 1`
31568fi
31569
cristy8b350f62009-11-15 23:12:43 +000031570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031571$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031572if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031573 $as_echo_n "(cached) " >&6
31574else
31575 ac_check_lib_save_LIBS=$LIBS
31576LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031578/* end confdefs.h. */
31579
31580/* Override any GCC internal prototype to avoid an error.
31581 Use char because int might match the return type of a GCC
31582 builtin and then its argument prototype would still apply. */
31583#ifdef __cplusplus
31584extern "C"
31585#endif
31586char TIFFReadRGBAStrip ();
31587int
31588main ()
31589{
31590return TIFFReadRGBAStrip ();
31591 ;
31592 return 0;
31593}
31594_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031595if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031596 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31597else
cristy8b350f62009-11-15 23:12:43 +000031598 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031599fi
cristy8b350f62009-11-15 23:12:43 +000031600rm -f core conftest.err conftest.$ac_objext \
31601 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031602LIBS=$ac_check_lib_save_LIBS
31603fi
cristy8b350f62009-11-15 23:12:43 +000031604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031605$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031606if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031607 passed=`expr $passed + 1`
31608else
31609 failed=`expr $failed + 1`
31610fi
31611
cristy8b350f62009-11-15 23:12:43 +000031612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031613$as_echo_n "checking if TIFF package is complete... " >&6; }
31614 if test $passed -gt 0; then
31615 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31617$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031618 have_tiff='no (failed tests)'
31619 else
31620 TIFF_LIBS='-ltiff'
31621 LIBS="$TIFF_LIBS $LIBS"
31622
cristy8b350f62009-11-15 23:12:43 +000031623$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031624
cristyad38abe2012-12-23 23:03:21 +000031625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31626$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031627 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031628 for ac_header in tiffconf.h
31629do :
31630 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031631if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031632 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031633#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031634_ACEOF
31635
31636fi
31637
31638done
31639
cristy8b350f62009-11-15 23:12:43 +000031640 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031641 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31642 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31643 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031644do :
31645 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31646ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031647if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031648 cat >>confdefs.h <<_ACEOF
31649#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31650_ACEOF
31651
31652fi
31653done
31654
31655 fi
31656 else
cristyad38abe2012-12-23 23:03:21 +000031657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31658$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031659 fi
31660fi
cristy73bd4a52010-10-05 11:24:23 +000031661 if test "$have_tiff" = 'yes'; then
31662 TIFF_DELEGATE_TRUE=
31663 TIFF_DELEGATE_FALSE='#'
31664else
31665 TIFF_DELEGATE_TRUE='#'
31666 TIFF_DELEGATE_FALSE=
31667fi
31668
cristy3ed852e2009-09-05 21:47:34 +000031669
31670
31671
31672#
cristyb1860752011-03-14 00:27:46 +000031673# Check for WEBP delegate library.
31674#
31675
31676# Check whether --with-webp was given.
31677if test "${with_webp+set}" = set; then :
31678 withval=$with_webp; with_webp=$withval
31679else
31680 with_webp='yes'
31681fi
31682
31683
31684if test "$with_webp" != 'yes'; then
31685 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31686fi
31687
31688have_webp='no'
31689WEBP_LIBS=''
31690if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31692$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000031693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31694$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31696$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000031697 failed=0
31698 passed=0
31699 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31700if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31701 passed=`expr $passed + 1`
31702else
31703 failed=`expr $failed + 1`
31704fi
31705
31706
31707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31708$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31709if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31710 $as_echo_n "(cached) " >&6
31711else
31712 ac_check_lib_save_LIBS=$LIBS
31713LIBS="-lwebp $LIBS"
31714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31715/* end confdefs.h. */
31716
31717/* Override any GCC internal prototype to avoid an error.
31718 Use char because int might match the return type of a GCC
31719 builtin and then its argument prototype would still apply. */
31720#ifdef __cplusplus
31721extern "C"
31722#endif
31723char WebPDecodeRGB ();
31724int
31725main ()
31726{
31727return WebPDecodeRGB ();
31728 ;
31729 return 0;
31730}
31731_ACEOF
31732if ac_fn_c_try_link "$LINENO"; then :
31733 ac_cv_lib_webp_WebPDecodeRGB=yes
31734else
31735 ac_cv_lib_webp_WebPDecodeRGB=no
31736fi
31737rm -f core conftest.err conftest.$ac_objext \
31738 conftest$ac_exeext conftest.$ac_ext
31739LIBS=$ac_check_lib_save_LIBS
31740fi
31741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31742$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31743if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31744 passed=`expr $passed + 1`
31745else
31746 failed=`expr $failed + 1`
31747fi
31748
31749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31750$as_echo_n "checking if WEBP package is complete... " >&6; }
31751 if test $passed -gt 0; then
31752 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31754$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000031755 have_webp='no (failed tests)'
31756 else
31757 WEBP_LIBS='-lwebp'
31758 LIBS="$WEBP_LIBS $LIBS"
31759
31760$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31761
cristyad38abe2012-12-23 23:03:21 +000031762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31763$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000031764 have_webp='yes'
31765 fi
31766 else
cristyad38abe2012-12-23 23:03:21 +000031767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31768$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000031769 fi
31770fi
31771 if test "$have_webp" = 'yes'; then
31772 WEBP_DELEGATE_TRUE=
31773 WEBP_DELEGATE_FALSE='#'
31774else
31775 WEBP_DELEGATE_TRUE='#'
31776 WEBP_DELEGATE_FALSE=
31777fi
31778
31779
31780
31781
31782#
cristy3ed852e2009-09-05 21:47:34 +000031783# Set Windows font directory.
31784#
31785
31786# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031787if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031788 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31789else
31790 with_windows_font_dir=''
31791fi
31792
31793if test "$with_windows_font_dir" != '' ; then
31794 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31795fi
31796
31797
31798#
31799# Check for WMF delegate library.
31800#
31801
31802# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031803if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031804 withval=$with_wmf; with_wmf=$withval
31805else
cristyfc3d0222012-02-07 15:05:57 +000031806 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031807fi
31808
31809
31810if test "$with_wmf" != 'yes'; then
31811 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31812fi
31813
31814have_wmf='no'
31815WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031816WMF_LIBS_DEPS=''
31817OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031818if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31820$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031822$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31824$as_echo "" >&6; }
31825 have_libwmf='no'
31826 have_libwmflite='no'
31827 have_libwmf_ipa_h='no'
31828
31829 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31830"
31831if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31832 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031833fi
31834
31835
cristy03f7cf92011-12-15 01:40:41 +000031836 if test "$have_libwmf_ipa_h" = 'yes'; then
31837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31838$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31839if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031840 $as_echo_n "(cached) " >&6
31841else
31842 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031843LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031845/* end confdefs.h. */
31846
31847/* Override any GCC internal prototype to avoid an error.
31848 Use char because int might match the return type of a GCC
31849 builtin and then its argument prototype would still apply. */
31850#ifdef __cplusplus
31851extern "C"
31852#endif
cristy03f7cf92011-12-15 01:40:41 +000031853char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031854int
31855main ()
31856{
cristy03f7cf92011-12-15 01:40:41 +000031857return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031858 ;
31859 return 0;
31860}
31861_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031862if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031863 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031864else
cristy03f7cf92011-12-15 01:40:41 +000031865 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031866fi
cristy8b350f62009-11-15 23:12:43 +000031867rm -f core conftest.err conftest.$ac_objext \
31868 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031869LIBS=$ac_check_lib_save_LIBS
31870fi
cristy03f7cf92011-12-15 01:40:41 +000031871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31872$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31873if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31874 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031875fi
31876
cristy03f7cf92011-12-15 01:40:41 +000031877 if test "$have_libwmflite" = 'yes'; then
31878
31879$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31880
31881 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031882 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031883 have_wmf='yes'
31884 else
31885 WMF_LIBS_DEPS=''
31886 WMF_CONFIG_LIBS=`libwmf-config --libs`
31887 for lib in xml2 expat freetype jpeg png z; do
31888 testlib="-l${lib}"
31889 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31890 done
31891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31892$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31893if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31894 $as_echo_n "(cached) " >&6
31895else
31896 ac_check_lib_save_LIBS=$LIBS
31897LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31899/* end confdefs.h. */
31900
31901/* Override any GCC internal prototype to avoid an error.
31902 Use char because int might match the return type of a GCC
31903 builtin and then its argument prototype would still apply. */
31904#ifdef __cplusplus
31905extern "C"
31906#endif
31907char wmf_api_create ();
31908int
31909main ()
31910{
31911return wmf_api_create ();
31912 ;
31913 return 0;
31914}
31915_ACEOF
31916if ac_fn_c_try_link "$LINENO"; then :
31917 ac_cv_lib_wmf_wmf_api_create=yes
31918else
31919 ac_cv_lib_wmf_wmf_api_create=no
31920fi
31921rm -f core conftest.err conftest.$ac_objext \
31922 conftest$ac_exeext conftest.$ac_ext
31923LIBS=$ac_check_lib_save_LIBS
31924fi
31925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31926$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31927if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31928 have_libwmf='yes'
31929fi
31930
31931 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031932
cristy8b350f62009-11-15 23:12:43 +000031933$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031934
cristy03f7cf92011-12-15 01:40:41 +000031935 WMF_LIBS='-lwmf'
31936 LIBS="$WMF_LIBS $LIBS"
31937 have_wmf='yes'
31938 else
31939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31940$as_echo "no -- some components failed test" >&6; }
31941 have_wmf='no (failed tests)'
31942 have_wmflite='no (failed tests)'
31943 LIBS="$OLIBS"
31944 WMF_LIBS=''
31945 fi
glennrp33e524b2011-08-24 17:41:57 +000031946 fi
cristy03f7cf92011-12-15 01:40:41 +000031947 fi
31948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31949$as_echo_n "checking if WMF package is complete... " >&6; }
31950 if test "$have_wmf" = 'yes'; then
31951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31952$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031953 else
cristy03f7cf92011-12-15 01:40:41 +000031954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31955$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031956 fi
cristy3ed852e2009-09-05 21:47:34 +000031957fi
cristy73bd4a52010-10-05 11:24:23 +000031958 if test "$have_wmf" = 'yes'; then
31959 WMF_DELEGATE_TRUE=
31960 WMF_DELEGATE_FALSE='#'
31961else
31962 WMF_DELEGATE_TRUE='#'
31963 WMF_DELEGATE_FALSE=
31964fi
31965
cristy3ed852e2009-09-05 21:47:34 +000031966
31967
31968
cristy81beccd2011-10-03 18:17:24 +000031969
31970
cristy3ed852e2009-09-05 21:47:34 +000031971#
31972# Check for XML delegate library.
31973#
31974
31975# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031976if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031977 withval=$with_xml; with_xml=$withval
31978else
cristyfc3d0222012-02-07 15:05:57 +000031979 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000031980fi
31981
31982
cristy81beccd2011-10-03 18:17:24 +000031983if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031984 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31985fi
31986
cristy81beccd2011-10-03 18:17:24 +000031987have_xml='no'
31988XML_LIBS=''
31989if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31991$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31993$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31995$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031996 PERSIST_LDFLAGS=$LDFLAGS
31997 PERSIST_CPPFLAGS=$CPPFLAGS
31998 xml2_config=''
31999 # Extract the first word of "xml2-config", so it can be a program name with args.
32000set dummy xml2-config; ac_word=$2
32001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32002$as_echo_n "checking for $ac_word... " >&6; }
32003if ${ac_cv_path_xml2_config+:} false; then :
32004 $as_echo_n "(cached) " >&6
32005else
32006 case $xml2_config in
32007 [\\/]* | ?:[\\/]*)
32008 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32009 ;;
32010 *)
32011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32012for as_dir in $PATH
32013do
32014 IFS=$as_save_IFS
32015 test -z "$as_dir" && as_dir=.
32016 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032018 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32020 break 2
32021 fi
32022done
32023 done
32024IFS=$as_save_IFS
32025
32026 ;;
32027esac
32028fi
32029xml2_config=$ac_cv_path_xml2_config
32030if test -n "$xml2_config"; then
32031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32032$as_echo "$xml2_config" >&6; }
32033else
32034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32035$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032036fi
32037
cristy81beccd2011-10-03 18:17:24 +000032038 if test -n "$xml2_config"; then
32039 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32040 # the shared library installed under /usr/lib, whereas the package
32041 # installs itself under $prefix/libxml and $prefix/lib.
32042 xml2_prefix=`xml2-config --prefix`
32043 if test -d "${xml2_prefix}/include/libxml2"; then
32044 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32045 fi
32046 if test "${xml2_prefix}" != '/usr'; then
32047 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32048 fi
32049 fi
32050 failed=0
32051 passed=0
32052 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32053if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32054 passed=`expr $passed + 1`
32055else
32056 failed=`expr $failed + 1`
32057fi
32058
32059
32060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32061$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32062if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32063 $as_echo_n "(cached) " >&6
32064else
32065 ac_check_lib_save_LIBS=$LIBS
32066LIBS="-lxml2 $LIBS"
32067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32068/* end confdefs.h. */
32069
32070/* Override any GCC internal prototype to avoid an error.
32071 Use char because int might match the return type of a GCC
32072 builtin and then its argument prototype would still apply. */
32073#ifdef __cplusplus
32074extern "C"
32075#endif
32076char xmlSAXVersion ();
32077int
32078main ()
32079{
32080return xmlSAXVersion ();
32081 ;
32082 return 0;
32083}
32084_ACEOF
32085if ac_fn_c_try_link "$LINENO"; then :
32086 ac_cv_lib_xml2_xmlSAXVersion=yes
32087else
32088 ac_cv_lib_xml2_xmlSAXVersion=no
32089fi
32090rm -f core conftest.err conftest.$ac_objext \
32091 conftest$ac_exeext conftest.$ac_ext
32092LIBS=$ac_check_lib_save_LIBS
32093fi
32094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32095$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32096if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32097 passed=`expr $passed + 1`
32098else
32099 failed=`expr $failed + 1`
32100fi
32101
32102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32103$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32104if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32105 $as_echo_n "(cached) " >&6
32106else
32107 ac_check_lib_save_LIBS=$LIBS
32108LIBS="-lxml2 $LIBS"
32109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32110/* end confdefs.h. */
32111
32112/* Override any GCC internal prototype to avoid an error.
32113 Use char because int might match the return type of a GCC
32114 builtin and then its argument prototype would still apply. */
32115#ifdef __cplusplus
32116extern "C"
32117#endif
32118char xmlParseChunk ();
32119int
32120main ()
32121{
32122return xmlParseChunk ();
32123 ;
32124 return 0;
32125}
32126_ACEOF
32127if ac_fn_c_try_link "$LINENO"; then :
32128 ac_cv_lib_xml2_xmlParseChunk=yes
32129else
32130 ac_cv_lib_xml2_xmlParseChunk=no
32131fi
32132rm -f core conftest.err conftest.$ac_objext \
32133 conftest$ac_exeext conftest.$ac_ext
32134LIBS=$ac_check_lib_save_LIBS
32135fi
32136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32137$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32138if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32139 passed=`expr $passed + 1`
32140else
32141 failed=`expr $failed + 1`
32142fi
32143
32144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32145$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32146if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32147 $as_echo_n "(cached) " >&6
32148else
32149 ac_check_lib_save_LIBS=$LIBS
32150LIBS="-lxml2 $LIBS"
32151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32152/* end confdefs.h. */
32153
32154/* Override any GCC internal prototype to avoid an error.
32155 Use char because int might match the return type of a GCC
32156 builtin and then its argument prototype would still apply. */
32157#ifdef __cplusplus
32158extern "C"
32159#endif
32160char xmlCreatePushParserCtxt ();
32161int
32162main ()
32163{
32164return xmlCreatePushParserCtxt ();
32165 ;
32166 return 0;
32167}
32168_ACEOF
32169if ac_fn_c_try_link "$LINENO"; then :
32170 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32171else
32172 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32173fi
32174rm -f core conftest.err conftest.$ac_objext \
32175 conftest$ac_exeext conftest.$ac_ext
32176LIBS=$ac_check_lib_save_LIBS
32177fi
32178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32179$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32180if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32181 passed=`expr $passed + 1`
32182else
32183 failed=`expr $failed + 1`
32184fi
32185
32186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32187$as_echo_n "checking if XML package is complete... " >&6; }
32188 if test $passed -gt 0; then
32189 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32191$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032192 have_xml='no (failed tests)'
32193 LDFLAGS="$PERSIST_LDFLAGS"
32194 CPPFLAGS="$PERSIST_CPPFLAGS"
32195 else
32196 XML_LIBS='-lxml2'
32197 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032198
cristy8b350f62009-11-15 23:12:43 +000032199$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032200
cristyad38abe2012-12-23 23:03:21 +000032201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32202$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032203 have_xml='yes'
32204 fi
32205 else
cristyad38abe2012-12-23 23:03:21 +000032206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32207$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032208 fi
32209fi
cristy73bd4a52010-10-05 11:24:23 +000032210 if test "$have_xml" = 'yes'; then
32211 XML_DELEGATE_TRUE=
32212 XML_DELEGATE_FALSE='#'
32213else
32214 XML_DELEGATE_TRUE='#'
32215 XML_DELEGATE_FALSE=
32216fi
32217
cristy3ed852e2009-09-05 21:47:34 +000032218
32219
32220
32221# Substitute compiler name to build/link PerlMagick
32222#
32223
32224
32225#
32226# Configure install Paths
32227#
cristy7def36a2011-10-28 19:04:41 +000032228
cristy2a11bef2011-10-28 18:33:11 +000032229# Path to ImageMagick header files
32230INCLUDE_RELATIVE_PATH="ImageMagick"
cristye52f12f2012-12-31 15:32:36 +000032231INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32232DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032233case "${build_os}" in
32234 mingw* )
32235 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32236 ;;
32237esac
32238
32239cat >>confdefs.h <<_ACEOF
32240#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32241_ACEOF
32242
32243
cristy3ed852e2009-09-05 21:47:34 +000032244
cristye52f12f2012-12-31 15:32:36 +000032245# Path to ImageMagick header files (arch part)
32246INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32247DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32248case "${build_os}" in
32249 mingw* )
32250 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32251 ;;
32252esac
32253
32254cat >>confdefs.h <<_ACEOF
32255#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32256_ACEOF
32257
32258
32259
cristy3ed852e2009-09-05 21:47:34 +000032260# Subdirectory under lib to place ImageMagick lib files
32261LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32262
32263cat >>confdefs.h <<_ACEOF
32264#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32265_ACEOF
32266
32267
32268# Path to ImageMagick bin directory
32269EXECUTABLE_PATH="${BIN_DIR}"
32270DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32271case "${build_os}" in
32272 mingw* )
32273 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32274 ;;
32275esac
32276
32277cat >>confdefs.h <<_ACEOF
32278#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32279_ACEOF
32280
32281
32282
32283# Path to ImageMagick lib
32284LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32285DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32286case "${build_os}" in
32287 mingw* )
32288 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32289 ;;
32290esac
32291
32292cat >>confdefs.h <<_ACEOF
32293#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32294_ACEOF
32295
32296
32297
cristy3ed852e2009-09-05 21:47:34 +000032298#
cristy01ff9f32012-12-01 18:15:29 +000032299# path to modules lib
32300if test "x$MODULES_BASEDIRNAME" = "x"; then
32301 MODULES_BASEDIRNAME="modules"
32302fi
cristy3ed852e2009-09-05 21:47:34 +000032303
32304cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032305#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032306_ACEOF
32307
cristy01ff9f32012-12-01 18:15:29 +000032308
32309
32310if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032311 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32312else
cristy3ed852e2009-09-05 21:47:34 +000032313
32314cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032315#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032316_ACEOF
32317
cristycf4a3c22012-12-02 21:47:25 +000032318fi
cristy01ff9f32012-12-01 18:15:29 +000032319
32320
cristy371d4812012-12-01 19:48:10 +000032321MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032322
32323MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32324
32325
32326#
32327# path to coders lib
32328if test "x$CODER_DIRNAME" = "x"; then
32329 CODER_DIRNAME="coders"
32330fi
32331
32332cat >>confdefs.h <<_ACEOF
32333#define CODER_DIRNAME "$CODER_DIRNAME"
32334_ACEOF
32335
32336
32337
cristy371d4812012-12-01 19:48:10 +000032338CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032339CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032340
32341
32342#
32343# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032344#
32345# path to coders lib
32346if test "x$FILTER_DIRNAME" = "x"; then
32347 FILTER_DIRNAME="filters"
32348fi
cristy3ed852e2009-09-05 21:47:34 +000032349
32350cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032351#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032352_ACEOF
32353
cristy3ed852e2009-09-05 21:47:34 +000032354
cristy3ed852e2009-09-05 21:47:34 +000032355
cristy371d4812012-12-01 19:48:10 +000032356FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032357FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032358
32359
32360#
32361# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032362DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032363DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32364DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032365case "${build_os}" in
32366 mingw* )
32367 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32368 ;;
32369esac
32370
32371cat >>confdefs.h <<_ACEOF
32372#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32373_ACEOF
32374
32375
32376
cristy2a11bef2011-10-28 18:33:11 +000032377# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032378CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032379
32380cat >>confdefs.h <<_ACEOF
32381#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32382_ACEOF
32383
cristy7def36a2011-10-28 19:04:41 +000032384CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032385DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32386case "${build_os}" in
32387 mingw* )
32388 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32389 ;;
32390esac
32391
32392cat >>confdefs.h <<_ACEOF
32393#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32394_ACEOF
32395
32396
32397
cristy2a11bef2011-10-28 18:33:11 +000032398# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032399SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032400
32401cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032402#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032403_ACEOF
32404
cristy670aa3c2011-11-03 00:54:00 +000032405SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032406DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032407case "${build_os}" in
32408 mingw* )
cristy4f820712011-04-01 12:35:43 +000032409 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032410 ;;
32411esac
32412
32413cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032414#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032415_ACEOF
32416
32417
32418
cristy54378032012-12-04 15:52:20 +000032419#
32420# Subdirectory to place architecture-dependent configuration files.
32421if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32422 SHAREARCH_BASEDIRNAME="config"
32423fi
cristy670aa3c2011-11-03 00:54:00 +000032424
32425cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032426#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032427_ACEOF
32428
cristy54378032012-12-04 15:52:20 +000032429
32430
32431if test "x$SHAREARCH_DIRNAME" = "x"; then
32432 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32433else
cristy670aa3c2011-11-03 00:54:00 +000032434
32435cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032436#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032437_ACEOF
32438
cristy54378032012-12-04 15:52:20 +000032439fi
32440
32441
32442SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32443
32444SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032445
32446
cristy3ed852e2009-09-05 21:47:34 +000032447#
32448# program_transform_name is formed for use in a Makefile, so create a
32449# modified version for use in a shell script.
32450configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32451
32452# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32454$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032456$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32458$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032459AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032460BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032461BZIPDelegateDefault='bzip2'
32462BrowseDelegateDefault='xdg-open'
32463CGMDecodeDelegateDefault='ralcgm'
32464CatDelegateDefault='cat'
32465DNGDecodeDelegateDefault='ufraw-batch'
32466GVCDecodeDelegateDefault='dot'
32467DVIDecodeDelegateDefault='dvips'
32468EchoDelegateDefault='echo'
32469EditorDelegateDefault='xterm'
32470FIGDecodeDelegateDefault='fig2dev'
32471ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32472DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32473MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32474GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032475HPGLDecodeDelegateDefault='hp2xx'
32476HTMLDecodeDelegateDefault='html2ps'
32477ILBMDecodeDelegateDefault='ilbmtoppm'
32478ILBMEncodeDelegateDefault='ppmtoilbm'
32479LPDelegateDefault='lp'
32480LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032481LaunchDelegateDefault='gimp'
32482MANDelegateDefault='groff'
32483MPEGDecodeDelegateDefault='ffmpeg'
32484MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032485MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032486MVDelegateDefault='mv'
32487PCLDelegateDefault='pcl6'
32488PGPDecodeDelegateDefault='pgpv'
32489POVDelegateDefault='povray'
32490if test "$native_win32_build" = 'yes'; then
32491 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032492elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032493 PSDelegateDefault='gsc'
32494else
32495 PSDelegateDefault='gs'
32496fi
32497RLEEncodeDelegateDefault='rawtorle'
32498RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032499RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032500SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032501SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032502TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032503UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032504WMFDecodeDelegateDefault='wmf2eps'
32505WWWDecodeDelegateDefault='curl'
32506XPSDelegateDefault='gxps'
32507ZipDelegateDefault='gzip'
32508
32509# Search for delegates
32510# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32511set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032513$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032514if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032515 $as_echo_n "(cached) " >&6
32516else
32517 case $AutotraceDecodeDelegate in
32518 [\\/]* | ?:[\\/]*)
32519 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32520 ;;
32521 *)
32522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32523for as_dir in $PATH
32524do
32525 IFS=$as_save_IFS
32526 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032527 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032529 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032531 break 2
32532 fi
32533done
cristy8b350f62009-11-15 23:12:43 +000032534 done
cristy3ed852e2009-09-05 21:47:34 +000032535IFS=$as_save_IFS
32536
32537 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32538 ;;
32539esac
32540fi
32541AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32542if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032544$as_echo "$AutotraceDecodeDelegate" >&6; }
32545else
cristy8b350f62009-11-15 23:12:43 +000032546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032547$as_echo "no" >&6; }
32548fi
32549
32550
cristy3ed852e2009-09-05 21:47:34 +000032551# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32552set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032554$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032555if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032556 $as_echo_n "(cached) " >&6
32557else
32558 case $BlenderDecodeDelegate in
32559 [\\/]* | ?:[\\/]*)
32560 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32561 ;;
32562 *)
32563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32564for as_dir in $PATH
32565do
32566 IFS=$as_save_IFS
32567 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032570 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032572 break 2
32573 fi
32574done
cristy8b350f62009-11-15 23:12:43 +000032575 done
cristy3ed852e2009-09-05 21:47:34 +000032576IFS=$as_save_IFS
32577
32578 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32579 ;;
32580esac
32581fi
32582BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32583if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032585$as_echo "$BlenderDecodeDelegate" >&6; }
32586else
cristy8b350f62009-11-15 23:12:43 +000032587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032588$as_echo "no" >&6; }
32589fi
32590
32591
32592# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32593set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032595$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032596if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032597 $as_echo_n "(cached) " >&6
32598else
32599 case $BZIPDelegate in
32600 [\\/]* | ?:[\\/]*)
32601 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32602 ;;
32603 *)
32604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32605for as_dir in $PATH
32606do
32607 IFS=$as_save_IFS
32608 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032609 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032611 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032613 break 2
32614 fi
32615done
cristy8b350f62009-11-15 23:12:43 +000032616 done
cristy3ed852e2009-09-05 21:47:34 +000032617IFS=$as_save_IFS
32618
32619 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32620 ;;
32621esac
32622fi
32623BZIPDelegate=$ac_cv_path_BZIPDelegate
32624if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032626$as_echo "$BZIPDelegate" >&6; }
32627else
cristy8b350f62009-11-15 23:12:43 +000032628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032629$as_echo "no" >&6; }
32630fi
32631
32632
cristyc59f0e72012-08-27 12:59:33 +000032633for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32634do
32635 # Extract the first word of "$ac_prog", so it can be a program name with args.
32636set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032638$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032639if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032640 $as_echo_n "(cached) " >&6
32641else
32642 case $BrowseDelegate in
32643 [\\/]* | ?:[\\/]*)
32644 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32645 ;;
32646 *)
32647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32648for as_dir in $PATH
32649do
32650 IFS=$as_save_IFS
32651 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032652 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032654 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032656 break 2
32657 fi
32658done
cristy8b350f62009-11-15 23:12:43 +000032659 done
cristy3ed852e2009-09-05 21:47:34 +000032660IFS=$as_save_IFS
32661
cristy3ed852e2009-09-05 21:47:34 +000032662 ;;
32663esac
32664fi
32665BrowseDelegate=$ac_cv_path_BrowseDelegate
32666if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032668$as_echo "$BrowseDelegate" >&6; }
32669else
cristy8b350f62009-11-15 23:12:43 +000032670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032671$as_echo "no" >&6; }
32672fi
32673
32674
cristyc59f0e72012-08-27 12:59:33 +000032675 test -n "$BrowseDelegate" && break
32676done
32677test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32678
cristy3ed852e2009-09-05 21:47:34 +000032679# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32680set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032682$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032683if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032684 $as_echo_n "(cached) " >&6
32685else
32686 case $CGMDecodeDelegate in
32687 [\\/]* | ?:[\\/]*)
32688 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32689 ;;
32690 *)
32691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32692for as_dir in $PATH
32693do
32694 IFS=$as_save_IFS
32695 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032696 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032698 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032700 break 2
32701 fi
32702done
cristy8b350f62009-11-15 23:12:43 +000032703 done
cristy3ed852e2009-09-05 21:47:34 +000032704IFS=$as_save_IFS
32705
32706 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32707 ;;
32708esac
32709fi
32710CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32711if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032713$as_echo "$CGMDecodeDelegate" >&6; }
32714else
cristy8b350f62009-11-15 23:12:43 +000032715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032716$as_echo "no" >&6; }
32717fi
32718
32719
32720# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32721set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032723$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032724if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032725 $as_echo_n "(cached) " >&6
32726else
32727 case $CatDelegate in
32728 [\\/]* | ?:[\\/]*)
32729 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32730 ;;
32731 *)
32732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32733for as_dir in $PATH
32734do
32735 IFS=$as_save_IFS
32736 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032737 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032739 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032741 break 2
32742 fi
32743done
cristy8b350f62009-11-15 23:12:43 +000032744 done
cristy3ed852e2009-09-05 21:47:34 +000032745IFS=$as_save_IFS
32746
32747 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32748 ;;
32749esac
32750fi
32751CatDelegate=$ac_cv_path_CatDelegate
32752if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032754$as_echo "$CatDelegate" >&6; }
32755else
cristy8b350f62009-11-15 23:12:43 +000032756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032757$as_echo "no" >&6; }
32758fi
32759
32760
32761# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32762set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032764$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032765if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032766 $as_echo_n "(cached) " >&6
32767else
32768 case $DNGDecodeDelegate in
32769 [\\/]* | ?:[\\/]*)
32770 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32771 ;;
32772 *)
32773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32774for as_dir in $PATH
32775do
32776 IFS=$as_save_IFS
32777 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032778 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032780 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032782 break 2
32783 fi
32784done
cristy8b350f62009-11-15 23:12:43 +000032785 done
cristy3ed852e2009-09-05 21:47:34 +000032786IFS=$as_save_IFS
32787
32788 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32789 ;;
32790esac
32791fi
32792DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32793if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032795$as_echo "$DNGDecodeDelegate" >&6; }
32796else
cristy8b350f62009-11-15 23:12:43 +000032797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032798$as_echo "no" >&6; }
32799fi
32800
32801
32802# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32803set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032805$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032806if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032807 $as_echo_n "(cached) " >&6
32808else
32809 case $GVCDecodeDelegate in
32810 [\\/]* | ?:[\\/]*)
32811 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32812 ;;
32813 *)
32814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32815for as_dir in $PATH
32816do
32817 IFS=$as_save_IFS
32818 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032819 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032821 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032823 break 2
32824 fi
32825done
cristy8b350f62009-11-15 23:12:43 +000032826 done
cristy3ed852e2009-09-05 21:47:34 +000032827IFS=$as_save_IFS
32828
32829 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32830 ;;
32831esac
32832fi
32833GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32834if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032836$as_echo "$GVCDecodeDelegate" >&6; }
32837else
cristy8b350f62009-11-15 23:12:43 +000032838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032839$as_echo "no" >&6; }
32840fi
32841
32842
32843# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32844set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032846$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032847if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032848 $as_echo_n "(cached) " >&6
32849else
32850 case $DVIDecodeDelegate in
32851 [\\/]* | ?:[\\/]*)
32852 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32853 ;;
32854 *)
32855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32856for as_dir in $PATH
32857do
32858 IFS=$as_save_IFS
32859 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032860 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032862 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032864 break 2
32865 fi
32866done
cristy8b350f62009-11-15 23:12:43 +000032867 done
cristy3ed852e2009-09-05 21:47:34 +000032868IFS=$as_save_IFS
32869
32870 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32871 ;;
32872esac
32873fi
32874DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32875if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032877$as_echo "$DVIDecodeDelegate" >&6; }
32878else
cristy8b350f62009-11-15 23:12:43 +000032879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032880$as_echo "no" >&6; }
32881fi
32882
32883
32884# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32885set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032887$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032888if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032889 $as_echo_n "(cached) " >&6
32890else
32891 case $EchoDelegate in
32892 [\\/]* | ?:[\\/]*)
32893 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32894 ;;
32895 *)
32896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32897for as_dir in $PATH
32898do
32899 IFS=$as_save_IFS
32900 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032901 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032903 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032905 break 2
32906 fi
32907done
cristy8b350f62009-11-15 23:12:43 +000032908 done
cristy3ed852e2009-09-05 21:47:34 +000032909IFS=$as_save_IFS
32910
32911 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32912 ;;
32913esac
32914fi
32915EchoDelegate=$ac_cv_path_EchoDelegate
32916if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032918$as_echo "$EchoDelegate" >&6; }
32919else
cristy8b350f62009-11-15 23:12:43 +000032920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032921$as_echo "no" >&6; }
32922fi
32923
32924
32925# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32926set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032928$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032929if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032930 $as_echo_n "(cached) " >&6
32931else
32932 case $EditorDelegate in
32933 [\\/]* | ?:[\\/]*)
32934 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32935 ;;
32936 *)
32937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32938for as_dir in $PATH
32939do
32940 IFS=$as_save_IFS
32941 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032942 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032944 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032946 break 2
32947 fi
32948done
cristy8b350f62009-11-15 23:12:43 +000032949 done
cristy3ed852e2009-09-05 21:47:34 +000032950IFS=$as_save_IFS
32951
32952 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32953 ;;
32954esac
32955fi
32956EditorDelegate=$ac_cv_path_EditorDelegate
32957if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032959$as_echo "$EditorDelegate" >&6; }
32960else
cristy8b350f62009-11-15 23:12:43 +000032961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032962$as_echo "no" >&6; }
32963fi
32964
32965
32966# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32967set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032969$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032970if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032971 $as_echo_n "(cached) " >&6
32972else
32973 case $FIGDecodeDelegate in
32974 [\\/]* | ?:[\\/]*)
32975 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32976 ;;
32977 *)
32978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32979for as_dir in $PATH
32980do
32981 IFS=$as_save_IFS
32982 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032983 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032985 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032987 break 2
32988 fi
32989done
cristy8b350f62009-11-15 23:12:43 +000032990 done
cristy3ed852e2009-09-05 21:47:34 +000032991IFS=$as_save_IFS
32992
32993 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32994 ;;
32995esac
32996fi
32997FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32998if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033000$as_echo "$FIGDecodeDelegate" >&6; }
33001else
cristy8b350f62009-11-15 23:12:43 +000033002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033003$as_echo "no" >&6; }
33004fi
33005
33006
33007# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33008set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033010$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033011if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033012 $as_echo_n "(cached) " >&6
33013else
33014 case $ConvertDelegate in
33015 [\\/]* | ?:[\\/]*)
33016 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33017 ;;
33018 *)
33019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33020for as_dir in $PATH
33021do
33022 IFS=$as_save_IFS
33023 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033024 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033026 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033028 break 2
33029 fi
33030done
cristy8b350f62009-11-15 23:12:43 +000033031 done
cristy3ed852e2009-09-05 21:47:34 +000033032IFS=$as_save_IFS
33033
33034 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33035 ;;
33036esac
33037fi
33038ConvertDelegate=$ac_cv_path_ConvertDelegate
33039if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033041$as_echo "$ConvertDelegate" >&6; }
33042else
cristy8b350f62009-11-15 23:12:43 +000033043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033044$as_echo "no" >&6; }
33045fi
33046
33047
33048# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33049set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033051$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033052if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033053 $as_echo_n "(cached) " >&6
33054else
33055 case $DisplayDelegate in
33056 [\\/]* | ?:[\\/]*)
33057 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33058 ;;
33059 *)
33060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33061for as_dir in $PATH
33062do
33063 IFS=$as_save_IFS
33064 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033065 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033067 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033069 break 2
33070 fi
33071done
cristy8b350f62009-11-15 23:12:43 +000033072 done
cristy3ed852e2009-09-05 21:47:34 +000033073IFS=$as_save_IFS
33074
33075 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33076 ;;
33077esac
33078fi
33079DisplayDelegate=$ac_cv_path_DisplayDelegate
33080if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033082$as_echo "$DisplayDelegate" >&6; }
33083else
cristy8b350f62009-11-15 23:12:43 +000033084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033085$as_echo "no" >&6; }
33086fi
33087
33088
33089# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33090set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033092$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033093if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033094 $as_echo_n "(cached) " >&6
33095else
33096 case $MogrifyDelegate in
33097 [\\/]* | ?:[\\/]*)
33098 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33099 ;;
33100 *)
33101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33102for as_dir in $PATH
33103do
33104 IFS=$as_save_IFS
33105 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033106 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033108 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033110 break 2
33111 fi
33112done
cristy8b350f62009-11-15 23:12:43 +000033113 done
cristy3ed852e2009-09-05 21:47:34 +000033114IFS=$as_save_IFS
33115
33116 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33117 ;;
33118esac
33119fi
33120MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33121if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033123$as_echo "$MogrifyDelegate" >&6; }
33124else
cristy8b350f62009-11-15 23:12:43 +000033125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033126$as_echo "no" >&6; }
33127fi
33128
33129
33130# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33131set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033133$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033134if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033135 $as_echo_n "(cached) " >&6
33136else
33137 case $GnuplotDecodeDelegate in
33138 [\\/]* | ?:[\\/]*)
33139 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33140 ;;
33141 *)
33142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33143for as_dir in $PATH
33144do
33145 IFS=$as_save_IFS
33146 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033147 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033149 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033151 break 2
33152 fi
33153done
cristy8b350f62009-11-15 23:12:43 +000033154 done
cristy3ed852e2009-09-05 21:47:34 +000033155IFS=$as_save_IFS
33156
33157 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33158 ;;
33159esac
33160fi
33161GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33162if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033164$as_echo "$GnuplotDecodeDelegate" >&6; }
33165else
cristy8b350f62009-11-15 23:12:43 +000033166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033167$as_echo "no" >&6; }
33168fi
33169
33170
cristy3ed852e2009-09-05 21:47:34 +000033171# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33172set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033174$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033175if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033176 $as_echo_n "(cached) " >&6
33177else
33178 case $HPGLDecodeDelegate in
33179 [\\/]* | ?:[\\/]*)
33180 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33181 ;;
33182 *)
33183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33184for as_dir in $PATH
33185do
33186 IFS=$as_save_IFS
33187 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033188 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033190 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033192 break 2
33193 fi
33194done
cristy8b350f62009-11-15 23:12:43 +000033195 done
cristy3ed852e2009-09-05 21:47:34 +000033196IFS=$as_save_IFS
33197
33198 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33199 ;;
33200esac
33201fi
33202HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33203if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033205$as_echo "$HPGLDecodeDelegate" >&6; }
33206else
cristy8b350f62009-11-15 23:12:43 +000033207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033208$as_echo "no" >&6; }
33209fi
33210
33211
33212# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33213set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033215$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033216if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033217 $as_echo_n "(cached) " >&6
33218else
33219 case $HTMLDecodeDelegate in
33220 [\\/]* | ?:[\\/]*)
33221 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33222 ;;
33223 *)
33224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33225for as_dir in $PATH
33226do
33227 IFS=$as_save_IFS
33228 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033229 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033231 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033233 break 2
33234 fi
33235done
cristy8b350f62009-11-15 23:12:43 +000033236 done
cristy3ed852e2009-09-05 21:47:34 +000033237IFS=$as_save_IFS
33238
33239 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33240 ;;
33241esac
33242fi
33243HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33244if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033246$as_echo "$HTMLDecodeDelegate" >&6; }
33247else
cristy8b350f62009-11-15 23:12:43 +000033248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033249$as_echo "no" >&6; }
33250fi
33251
33252
33253# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33254set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033256$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033257if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033258 $as_echo_n "(cached) " >&6
33259else
33260 case $ILBMDecodeDelegate in
33261 [\\/]* | ?:[\\/]*)
33262 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33263 ;;
33264 *)
33265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33266for as_dir in $PATH
33267do
33268 IFS=$as_save_IFS
33269 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033270 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033272 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033274 break 2
33275 fi
33276done
cristy8b350f62009-11-15 23:12:43 +000033277 done
cristy3ed852e2009-09-05 21:47:34 +000033278IFS=$as_save_IFS
33279
33280 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33281 ;;
33282esac
33283fi
33284ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33285if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033287$as_echo "$ILBMDecodeDelegate" >&6; }
33288else
cristy8b350f62009-11-15 23:12:43 +000033289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033290$as_echo "no" >&6; }
33291fi
33292
33293
33294# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33295set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033297$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033298if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033299 $as_echo_n "(cached) " >&6
33300else
33301 case $ILBMEncodeDelegate in
33302 [\\/]* | ?:[\\/]*)
33303 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33304 ;;
33305 *)
33306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33307for as_dir in $PATH
33308do
33309 IFS=$as_save_IFS
33310 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033311 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033313 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033315 break 2
33316 fi
33317done
cristy8b350f62009-11-15 23:12:43 +000033318 done
cristy3ed852e2009-09-05 21:47:34 +000033319IFS=$as_save_IFS
33320
33321 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33322 ;;
33323esac
33324fi
33325ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33326if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033328$as_echo "$ILBMEncodeDelegate" >&6; }
33329else
cristy8b350f62009-11-15 23:12:43 +000033330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033331$as_echo "no" >&6; }
33332fi
33333
33334
33335# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33336set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033338$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033339if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033340 $as_echo_n "(cached) " >&6
33341else
33342 case $LPDelegate in
33343 [\\/]* | ?:[\\/]*)
33344 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33345 ;;
33346 *)
33347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33348for as_dir in $PATH
33349do
33350 IFS=$as_save_IFS
33351 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033352 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033354 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033356 break 2
33357 fi
33358done
cristy8b350f62009-11-15 23:12:43 +000033359 done
cristy3ed852e2009-09-05 21:47:34 +000033360IFS=$as_save_IFS
33361
33362 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33363 ;;
33364esac
33365fi
33366LPDelegate=$ac_cv_path_LPDelegate
33367if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033369$as_echo "$LPDelegate" >&6; }
33370else
cristy8b350f62009-11-15 23:12:43 +000033371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033372$as_echo "no" >&6; }
33373fi
33374
33375
33376# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33377set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033379$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033380if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033381 $as_echo_n "(cached) " >&6
33382else
33383 case $LPRDelegate in
33384 [\\/]* | ?:[\\/]*)
33385 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33386 ;;
33387 *)
33388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33389for as_dir in $PATH
33390do
33391 IFS=$as_save_IFS
33392 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033393 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033395 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033397 break 2
33398 fi
33399done
cristy8b350f62009-11-15 23:12:43 +000033400 done
cristy3ed852e2009-09-05 21:47:34 +000033401IFS=$as_save_IFS
33402
33403 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33404 ;;
33405esac
33406fi
33407LPRDelegate=$ac_cv_path_LPRDelegate
33408if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033410$as_echo "$LPRDelegate" >&6; }
33411else
cristy8b350f62009-11-15 23:12:43 +000033412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033413$as_echo "no" >&6; }
33414fi
33415
33416
cristy3ed852e2009-09-05 21:47:34 +000033417# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33418set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033420$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033421if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033422 $as_echo_n "(cached) " >&6
33423else
33424 case $LaunchDelegate in
33425 [\\/]* | ?:[\\/]*)
33426 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33427 ;;
33428 *)
33429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33430for as_dir in $PATH
33431do
33432 IFS=$as_save_IFS
33433 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033434 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033436 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033438 break 2
33439 fi
33440done
cristy8b350f62009-11-15 23:12:43 +000033441 done
cristy3ed852e2009-09-05 21:47:34 +000033442IFS=$as_save_IFS
33443
33444 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33445 ;;
33446esac
33447fi
33448LaunchDelegate=$ac_cv_path_LaunchDelegate
33449if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033451$as_echo "$LaunchDelegate" >&6; }
33452else
cristy8b350f62009-11-15 23:12:43 +000033453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033454$as_echo "no" >&6; }
33455fi
33456
33457
33458# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33459set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033461$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033462if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033463 $as_echo_n "(cached) " >&6
33464else
33465 case $MANDelegate in
33466 [\\/]* | ?:[\\/]*)
33467 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33468 ;;
33469 *)
33470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33471for as_dir in $PATH
33472do
33473 IFS=$as_save_IFS
33474 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033477 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033479 break 2
33480 fi
33481done
cristy8b350f62009-11-15 23:12:43 +000033482 done
cristy3ed852e2009-09-05 21:47:34 +000033483IFS=$as_save_IFS
33484
33485 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33486 ;;
33487esac
33488fi
33489MANDelegate=$ac_cv_path_MANDelegate
33490if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033492$as_echo "$MANDelegate" >&6; }
33493else
cristy8b350f62009-11-15 23:12:43 +000033494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033495$as_echo "no" >&6; }
33496fi
33497
33498
33499# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33500set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033502$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033503if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033504 $as_echo_n "(cached) " >&6
33505else
33506 case $MPEGDecodeDelegate in
33507 [\\/]* | ?:[\\/]*)
33508 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33509 ;;
33510 *)
33511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33512for as_dir in $PATH
33513do
33514 IFS=$as_save_IFS
33515 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033516 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033518 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033520 break 2
33521 fi
33522done
cristy8b350f62009-11-15 23:12:43 +000033523 done
cristy3ed852e2009-09-05 21:47:34 +000033524IFS=$as_save_IFS
33525
33526 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33527 ;;
33528esac
33529fi
33530MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33531if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033533$as_echo "$MPEGDecodeDelegate" >&6; }
33534else
cristy8b350f62009-11-15 23:12:43 +000033535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033536$as_echo "no" >&6; }
33537fi
33538
33539
33540# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33541set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033543$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033544if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033545 $as_echo_n "(cached) " >&6
33546else
33547 case $MPEGEncodeDelegate in
33548 [\\/]* | ?:[\\/]*)
33549 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33550 ;;
33551 *)
33552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33553for as_dir in $PATH
33554do
33555 IFS=$as_save_IFS
33556 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033557 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033559 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033561 break 2
33562 fi
33563done
cristy8b350f62009-11-15 23:12:43 +000033564 done
cristy3ed852e2009-09-05 21:47:34 +000033565IFS=$as_save_IFS
33566
33567 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33568 ;;
33569esac
33570fi
33571MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33572if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033574$as_echo "$MPEGEncodeDelegate" >&6; }
33575else
cristy8b350f62009-11-15 23:12:43 +000033576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033577$as_echo "no" >&6; }
33578fi
33579
33580
cristy935c86e2010-06-05 23:50:07 +000033581# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33582set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33584$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033585if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033586 $as_echo_n "(cached) " >&6
33587else
33588 case $MrSIDDecodeDelegate in
33589 [\\/]* | ?:[\\/]*)
33590 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33591 ;;
33592 *)
33593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33594for as_dir in $PATH
33595do
33596 IFS=$as_save_IFS
33597 test -z "$as_dir" && as_dir=.
33598 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033600 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33602 break 2
33603 fi
33604done
33605 done
33606IFS=$as_save_IFS
33607
33608 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33609 ;;
33610esac
33611fi
33612MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33613if test -n "$MrSIDDecodeDelegate"; then
33614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33615$as_echo "$MrSIDDecodeDelegate" >&6; }
33616else
33617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33618$as_echo "no" >&6; }
33619fi
33620
33621
cristy3ed852e2009-09-05 21:47:34 +000033622# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33623set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033625$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033626if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033627 $as_echo_n "(cached) " >&6
33628else
33629 case $MVDelegate in
33630 [\\/]* | ?:[\\/]*)
33631 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33632 ;;
33633 *)
33634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33635for as_dir in $PATH
33636do
33637 IFS=$as_save_IFS
33638 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033641 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033643 break 2
33644 fi
33645done
cristy8b350f62009-11-15 23:12:43 +000033646 done
cristy3ed852e2009-09-05 21:47:34 +000033647IFS=$as_save_IFS
33648
33649 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33650 ;;
33651esac
33652fi
33653MVDelegate=$ac_cv_path_MVDelegate
33654if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033656$as_echo "$MVDelegate" >&6; }
33657else
cristy8b350f62009-11-15 23:12:43 +000033658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033659$as_echo "no" >&6; }
33660fi
33661
33662
33663# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33664set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033666$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033667if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033668 $as_echo_n "(cached) " >&6
33669else
33670 case $PCLDelegate in
33671 [\\/]* | ?:[\\/]*)
33672 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33673 ;;
33674 *)
33675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33676for as_dir in $PATH
33677do
33678 IFS=$as_save_IFS
33679 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033680 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033682 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033684 break 2
33685 fi
33686done
cristy8b350f62009-11-15 23:12:43 +000033687 done
cristy3ed852e2009-09-05 21:47:34 +000033688IFS=$as_save_IFS
33689
33690 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33691 ;;
33692esac
33693fi
33694PCLDelegate=$ac_cv_path_PCLDelegate
33695if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033697$as_echo "$PCLDelegate" >&6; }
33698else
cristy8b350f62009-11-15 23:12:43 +000033699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033700$as_echo "no" >&6; }
33701fi
33702
33703
33704# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33705set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033707$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033708if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033709 $as_echo_n "(cached) " >&6
33710else
33711 case $PGPDecodeDelegate in
33712 [\\/]* | ?:[\\/]*)
33713 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33714 ;;
33715 *)
33716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33717for as_dir in $PATH
33718do
33719 IFS=$as_save_IFS
33720 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033721 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033723 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033725 break 2
33726 fi
33727done
cristy8b350f62009-11-15 23:12:43 +000033728 done
cristy3ed852e2009-09-05 21:47:34 +000033729IFS=$as_save_IFS
33730
33731 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33732 ;;
33733esac
33734fi
33735PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33736if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033738$as_echo "$PGPDecodeDelegate" >&6; }
33739else
cristy8b350f62009-11-15 23:12:43 +000033740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033741$as_echo "no" >&6; }
33742fi
33743
33744
33745# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33746set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033748$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033749if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033750 $as_echo_n "(cached) " >&6
33751else
33752 case $POVDelegate in
33753 [\\/]* | ?:[\\/]*)
33754 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33755 ;;
33756 *)
33757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33758for as_dir in $PATH
33759do
33760 IFS=$as_save_IFS
33761 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033762 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033764 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033766 break 2
33767 fi
33768done
cristy8b350f62009-11-15 23:12:43 +000033769 done
cristy3ed852e2009-09-05 21:47:34 +000033770IFS=$as_save_IFS
33771
33772 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33773 ;;
33774esac
33775fi
33776POVDelegate=$ac_cv_path_POVDelegate
33777if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033779$as_echo "$POVDelegate" >&6; }
33780else
cristy8b350f62009-11-15 23:12:43 +000033781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033782$as_echo "no" >&6; }
33783fi
33784
33785
33786for ac_prog in gsx gsc "$PSDelegateDefault"
33787do
33788 # Extract the first word of "$ac_prog", so it can be a program name with args.
33789set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033791$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033792if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033793 $as_echo_n "(cached) " >&6
33794else
33795 case $PSDelegate in
33796 [\\/]* | ?:[\\/]*)
33797 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33798 ;;
33799 *)
33800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33801for as_dir in $PATH
33802do
33803 IFS=$as_save_IFS
33804 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033805 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033807 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033809 break 2
33810 fi
33811done
cristy8b350f62009-11-15 23:12:43 +000033812 done
cristy3ed852e2009-09-05 21:47:34 +000033813IFS=$as_save_IFS
33814
33815 ;;
33816esac
33817fi
33818PSDelegate=$ac_cv_path_PSDelegate
33819if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033821$as_echo "$PSDelegate" >&6; }
33822else
cristy8b350f62009-11-15 23:12:43 +000033823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033824$as_echo "no" >&6; }
33825fi
33826
33827
33828 test -n "$PSDelegate" && break
33829done
33830test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33831
33832# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33833set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033835$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033836if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033837 $as_echo_n "(cached) " >&6
33838else
33839 case $RLEEncodeDelegate in
33840 [\\/]* | ?:[\\/]*)
33841 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33842 ;;
33843 *)
33844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33845for as_dir in $PATH
33846do
33847 IFS=$as_save_IFS
33848 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033849 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033851 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033853 break 2
33854 fi
33855done
cristy8b350f62009-11-15 23:12:43 +000033856 done
cristy3ed852e2009-09-05 21:47:34 +000033857IFS=$as_save_IFS
33858
33859 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33860 ;;
33861esac
33862fi
33863RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33864if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033866$as_echo "$RLEEncodeDelegate" >&6; }
33867else
cristy8b350f62009-11-15 23:12:43 +000033868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033869$as_echo "no" >&6; }
33870fi
33871
33872
33873# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33874set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033876$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033877if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033878 $as_echo_n "(cached) " >&6
33879else
33880 case $RMDelegate in
33881 [\\/]* | ?:[\\/]*)
33882 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33883 ;;
33884 *)
33885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33886for as_dir in $PATH
33887do
33888 IFS=$as_save_IFS
33889 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033890 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033892 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033894 break 2
33895 fi
33896done
cristy8b350f62009-11-15 23:12:43 +000033897 done
cristy3ed852e2009-09-05 21:47:34 +000033898IFS=$as_save_IFS
33899
33900 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33901 ;;
33902esac
33903fi
33904RMDelegate=$ac_cv_path_RMDelegate
33905if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033907$as_echo "$RMDelegate" >&6; }
33908else
cristy8b350f62009-11-15 23:12:43 +000033909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033910$as_echo "no" >&6; }
33911fi
33912
33913
cristy4689cf02010-02-17 21:15:45 +000033914# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33915set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33917$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033918if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033919 $as_echo_n "(cached) " >&6
33920else
33921 case $RSVGDecodeDelegate in
33922 [\\/]* | ?:[\\/]*)
33923 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33924 ;;
33925 *)
33926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33927for as_dir in $PATH
33928do
33929 IFS=$as_save_IFS
33930 test -z "$as_dir" && as_dir=.
33931 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000033933 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33935 break 2
33936 fi
33937done
33938 done
33939IFS=$as_save_IFS
33940
33941 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33942 ;;
33943esac
33944fi
33945RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33946if test -n "$RSVGDecodeDelegate"; then
33947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33948$as_echo "$RSVGDecodeDelegate" >&6; }
33949else
33950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33951$as_echo "no" >&6; }
33952fi
33953
33954
cristy3ed852e2009-09-05 21:47:34 +000033955# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33956set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033958$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033959if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033960 $as_echo_n "(cached) " >&6
33961else
33962 case $SCANDecodeDelegate in
33963 [\\/]* | ?:[\\/]*)
33964 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33965 ;;
33966 *)
33967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33968for as_dir in $PATH
33969do
33970 IFS=$as_save_IFS
33971 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033972 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033974 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033976 break 2
33977 fi
33978done
cristy8b350f62009-11-15 23:12:43 +000033979 done
cristy3ed852e2009-09-05 21:47:34 +000033980IFS=$as_save_IFS
33981
33982 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33983 ;;
33984esac
33985fi
33986SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33987if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033989$as_echo "$SCANDecodeDelegate" >&6; }
33990else
cristy8b350f62009-11-15 23:12:43 +000033991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033992$as_echo "no" >&6; }
33993fi
33994
33995
cristyec6934f2012-08-14 18:38:40 +000033996# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
33997set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
33998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33999$as_echo_n "checking for $ac_word... " >&6; }
34000if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34001 $as_echo_n "(cached) " >&6
34002else
34003 case $SVGDecodeDelegate in
34004 [\\/]* | ?:[\\/]*)
34005 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34006 ;;
34007 *)
34008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34009for as_dir in $PATH
34010do
34011 IFS=$as_save_IFS
34012 test -z "$as_dir" && as_dir=.
34013 for ac_exec_ext in '' $ac_executable_extensions; do
34014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34015 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34017 break 2
34018 fi
34019done
34020 done
34021IFS=$as_save_IFS
34022
34023 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34024 ;;
34025esac
34026fi
34027SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34028if test -n "$SVGDecodeDelegate"; then
34029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34030$as_echo "$SVGDecodeDelegate" >&6; }
34031else
34032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34033$as_echo "no" >&6; }
34034fi
34035
34036
cristy3ed852e2009-09-05 21:47:34 +000034037# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34038set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034040$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034041if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034042 $as_echo_n "(cached) " >&6
34043else
34044 case $TXTDelegate in
34045 [\\/]* | ?:[\\/]*)
34046 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34047 ;;
34048 *)
34049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34050for as_dir in $PATH
34051do
34052 IFS=$as_save_IFS
34053 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034056 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034058 break 2
34059 fi
34060done
cristy8b350f62009-11-15 23:12:43 +000034061 done
cristy3ed852e2009-09-05 21:47:34 +000034062IFS=$as_save_IFS
34063
34064 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34065 ;;
34066esac
34067fi
34068TXTDelegate=$ac_cv_path_TXTDelegate
34069if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034071$as_echo "$TXTDelegate" >&6; }
34072else
cristy8b350f62009-11-15 23:12:43 +000034073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034074$as_echo "no" >&6; }
34075fi
34076
34077
cristy5ac9ac82010-07-29 13:24:24 +000034078# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34079set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34081$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034082if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034083 $as_echo_n "(cached) " >&6
34084else
34085 case $UniconvertorDelegate in
34086 [\\/]* | ?:[\\/]*)
34087 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34088 ;;
34089 *)
34090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34091for as_dir in $PATH
34092do
34093 IFS=$as_save_IFS
34094 test -z "$as_dir" && as_dir=.
34095 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034097 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34099 break 2
34100 fi
34101done
34102 done
34103IFS=$as_save_IFS
34104
34105 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34106 ;;
34107esac
34108fi
34109UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34110if test -n "$UniconvertorDelegate"; then
34111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34112$as_echo "$UniconvertorDelegate" >&6; }
34113else
34114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34115$as_echo "no" >&6; }
34116fi
34117
34118
cristy3ed852e2009-09-05 21:47:34 +000034119# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34120set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034122$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034123if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034124 $as_echo_n "(cached) " >&6
34125else
34126 case $WMFDecodeDelegate in
34127 [\\/]* | ?:[\\/]*)
34128 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34129 ;;
34130 *)
34131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34132for as_dir in $PATH
34133do
34134 IFS=$as_save_IFS
34135 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034136 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034138 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034140 break 2
34141 fi
34142done
cristy8b350f62009-11-15 23:12:43 +000034143 done
cristy3ed852e2009-09-05 21:47:34 +000034144IFS=$as_save_IFS
34145
34146 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34147 ;;
34148esac
34149fi
34150WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34151if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034153$as_echo "$WMFDecodeDelegate" >&6; }
34154else
cristy8b350f62009-11-15 23:12:43 +000034155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034156$as_echo "no" >&6; }
34157fi
34158
34159
34160# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34161set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034163$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034164if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034165 $as_echo_n "(cached) " >&6
34166else
34167 case $WWWDecodeDelegate in
34168 [\\/]* | ?:[\\/]*)
34169 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34170 ;;
34171 *)
34172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34173for as_dir in $PATH
34174do
34175 IFS=$as_save_IFS
34176 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034177 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034179 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034181 break 2
34182 fi
34183done
cristy8b350f62009-11-15 23:12:43 +000034184 done
cristy3ed852e2009-09-05 21:47:34 +000034185IFS=$as_save_IFS
34186
34187 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34188 ;;
34189esac
34190fi
34191WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34192if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034194$as_echo "$WWWDecodeDelegate" >&6; }
34195else
cristy8b350f62009-11-15 23:12:43 +000034196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034197$as_echo "no" >&6; }
34198fi
34199
34200
34201# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34202set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034204$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034205if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034206 $as_echo_n "(cached) " >&6
34207else
34208 case $XPSDelegate in
34209 [\\/]* | ?:[\\/]*)
34210 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34211 ;;
34212 *)
34213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34214for as_dir in $PATH
34215do
34216 IFS=$as_save_IFS
34217 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034218 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034220 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034222 break 2
34223 fi
34224done
cristy8b350f62009-11-15 23:12:43 +000034225 done
cristy3ed852e2009-09-05 21:47:34 +000034226IFS=$as_save_IFS
34227
34228 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34229 ;;
34230esac
34231fi
34232XPSDelegate=$ac_cv_path_XPSDelegate
34233if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034235$as_echo "$XPSDelegate" >&6; }
34236else
cristy8b350f62009-11-15 23:12:43 +000034237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034238$as_echo "no" >&6; }
34239fi
34240
34241
34242# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34243set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034245$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034246if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034247 $as_echo_n "(cached) " >&6
34248else
34249 case $ZipDelegate in
34250 [\\/]* | ?:[\\/]*)
34251 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34252 ;;
34253 *)
34254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34255for as_dir in $PATH
34256do
34257 IFS=$as_save_IFS
34258 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034259 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034261 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034263 break 2
34264 fi
34265done
cristy8b350f62009-11-15 23:12:43 +000034266 done
cristy3ed852e2009-09-05 21:47:34 +000034267IFS=$as_save_IFS
34268
34269 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34270 ;;
34271esac
34272fi
34273ZipDelegate=$ac_cv_path_ZipDelegate
34274if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034276$as_echo "$ZipDelegate" >&6; }
34277else
cristy8b350f62009-11-15 23:12:43 +000034278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034279$as_echo "no" >&6; }
34280fi
34281
34282
34283
34284# Prefer lpr to lp; lp needs options tacked on.
34285if test "$LPRDelegate" != no; then
34286 PrintDelegate="$LPRDelegate"
34287else
34288 PrintDelegate="$LPDelegate -c -s"
34289fi
34290
34291
34292# Installed ImageMagick utiltity paths
34293ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34294DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34295MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34296
34297# Set delegate booleans
34298have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34299have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34300have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34301have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34302have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034303have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034304have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34305have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034306have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34307have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34308
34309#
34310# Test for font directories
34311#
34312type_include_files=''
34313
cristy430a7312010-01-21 20:44:04 +000034314# Dejavu fonts.
34315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34316$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34317dejavu_font_dir=''
34318if test "${with_dejavu_font_dir}" != 'default'; then
34319 dejavu_font_dir="${with_dejavu_font_dir}/"
34320else
34321 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34322 if test -f "${font_dir}DejaVuSerif.ttf"; then
34323 dejavu_font_dir="${font_dir}"
34324 break 1
34325 fi
34326 done
34327fi
34328if test "${dejavu_font_dir}x" != 'x'; then
34329 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34331$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034332else
cristyad38abe2012-12-23 23:03:21 +000034333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34334$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034335fi
34336
34337
cristy3ed852e2009-09-05 21:47:34 +000034338# Windows
34339windows_font_dir=''
34340if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34341 windows_font_dir="${with_windows_font_dir}/"
34342fi
cristy430a7312010-01-21 20:44:04 +000034343if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034344 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34345 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34346 fi
34347 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34348 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34349 fi
34350 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34351 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34352 fi
34353fi
cristy430a7312010-01-21 20:44:04 +000034354if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034355 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34356fi
34357
34358
34359# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034361$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34362ghostscript_font_dir=''
34363if test "${with_gs_font_dir}" != 'default'; then
34364 ghostscript_font_dir="${with_gs_font_dir}/"
34365else
34366 if test "${native_win32_build}" = 'yes'; then
34367 # Native Windows Build
34368 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34369 if test -f "${font_dir}a010013l.pfb"; then
34370 ghostscript_font_dir="$font_dir"
34371 break 1
34372 fi
34373 done
34374 if test "${PSDelegate}" != 'gswin32c'; then
34375 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34376 fi
34377 else
34378 # Linux / Mac OS X / Unix Build
34379 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
34380 if test -f "${font_dir}a010013l.pfb"; then
34381 ghostscript_font_dir="${font_dir}"
34382 break 1
34383 fi
34384 done
34385 if test "${ghostscript_font_dir}x" = 'x'; then
34386 if test "$PSDelegate" != 'gs'; then
34387 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34388 fi
34389 fi
34390 fi
34391fi
34392if test "${ghostscript_font_dir}x" != 'x'; then
34393 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34395$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034396else
cristyad38abe2012-12-23 23:03:21 +000034397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34398$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034399fi
34400
34401case "${build_os}" in
34402 mingw* )
34403 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34404 ;;
34405esac
34406
34407
34408
34409#
34410# Handle case where user doesn't want frozen paths
34411#
34412if test "$with_frozenpaths" != 'yes'; then
34413 # Re-set delegate definitions to default (no paths)
34414 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034415 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34416 BZIPDelegate="$BZIPDelegateDefault"
34417 BrowseDelegate="$BrowseDelegateDefault"
34418 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34419 CatDelegate="$CatDelegateDefault"
34420 ConvertDelegate="$ConvertDelegateDefault"
34421 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34422 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34423 EchoDelegate="$EchoDelegateDefault"
34424 EditorDelegate="$EditorDelegateDefault"
34425 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34426 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34427 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34428 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34429 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34430 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34431 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034432 LaunchDelegate="$LaunchDelegateDefault"
34433 MANDelegate="$MANDelegateDefault"
34434 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34435 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034436 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034437 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34438 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034439 PCLDelegate="$PCLDelegateDefault"
34440 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34441 POVDelegate="$POVDelegateDefault"
34442 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034443 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34444 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034445 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034446 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034447 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034448 ShowImageDelegate="$ShowImageDelegateDefault"
34449 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034450 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034451 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34452 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34453 XPSDelegate="$XPSDelegateDefault"
34454 ZipDelegate="$ZipDelegateDefault"
34455fi
34456
34457# Delegate substitutions
34458
34459
34460
34461
34462
34463
34464
34465
34466
34467
34468
34469
34470
34471
34472
34473
34474
34475
34476
34477
34478
34479
34480
34481
34482
34483
34484
34485
34486
34487
34488
34489
34490
34491
34492
34493
34494
34495
34496
34497
cristy3ed852e2009-09-05 21:47:34 +000034498#
34499# RPM support.
34500#
34501RPM=''
34502for ac_prog in gnutar gtar tar
34503do
34504 # Extract the first word of "$ac_prog", so it can be a program name with args.
34505set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034507$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034508if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034509 $as_echo_n "(cached) " >&6
34510else
34511 if test -n "$TAR"; then
34512 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34513else
34514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34515for as_dir in $PATH
34516do
34517 IFS=$as_save_IFS
34518 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034519 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034521 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034523 break 2
34524 fi
34525done
cristy8b350f62009-11-15 23:12:43 +000034526 done
cristy3ed852e2009-09-05 21:47:34 +000034527IFS=$as_save_IFS
34528
34529fi
34530fi
34531TAR=$ac_cv_prog_TAR
34532if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034534$as_echo "$TAR" >&6; }
34535else
cristy8b350f62009-11-15 23:12:43 +000034536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034537$as_echo "no" >&6; }
34538fi
34539
34540
34541 test -n "$TAR" && break
34542done
34543
34544for ac_prog in perl
34545do
34546 # Extract the first word of "$ac_prog", so it can be a program name with args.
34547set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034549$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034550if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034551 $as_echo_n "(cached) " >&6
34552else
34553 if test -n "$PERL"; then
34554 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34555else
34556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34557for as_dir in $PATH
34558do
34559 IFS=$as_save_IFS
34560 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034563 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034565 break 2
34566 fi
34567done
cristy8b350f62009-11-15 23:12:43 +000034568 done
cristy3ed852e2009-09-05 21:47:34 +000034569IFS=$as_save_IFS
34570
34571fi
34572fi
34573PERL=$ac_cv_prog_PERL
34574if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034576$as_echo "$PERL" >&6; }
34577else
cristy8b350f62009-11-15 23:12:43 +000034578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034579$as_echo "no" >&6; }
34580fi
34581
34582
34583 test -n "$PERL" && break
34584done
34585
34586for ac_prog in rpmbuild rpm
34587do
34588 # Extract the first word of "$ac_prog", so it can be a program name with args.
34589set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034591$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034592if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034593 $as_echo_n "(cached) " >&6
34594else
34595 if test -n "$RPM"; then
34596 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34597else
34598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34599for as_dir in $PATH
34600do
34601 IFS=$as_save_IFS
34602 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034603 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034605 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034607 break 2
34608 fi
34609done
cristy8b350f62009-11-15 23:12:43 +000034610 done
cristy3ed852e2009-09-05 21:47:34 +000034611IFS=$as_save_IFS
34612
34613fi
34614fi
34615RPM=$ac_cv_prog_RPM
34616if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034618$as_echo "$RPM" >&6; }
34619else
cristy8b350f62009-11-15 23:12:43 +000034620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034621$as_echo "no" >&6; }
34622fi
34623
34624
34625 test -n "$RPM" && break
34626done
34627
34628
cristy73bd4a52010-10-05 11:24:23 +000034629ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34630
34631
34632AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34633
34634
34635AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34636
34637
34638AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34639
34640
34641 if test "x$RPM" != "x" ; then
34642 RPM_DELEGATE_TRUE=
34643 RPM_DELEGATE_FALSE='#'
34644else
34645 RPM_DELEGATE_TRUE='#'
34646 RPM_DELEGATE_FALSE=
34647fi
34648
cristy3ed852e2009-09-05 21:47:34 +000034649
34650#
34651# 7ZIP support (http://p7zip.sourceforge.net/)
34652#
34653P7ZIP=''
34654for ac_prog in 7za
34655do
34656 # Extract the first word of "$ac_prog", so it can be a program name with args.
34657set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034659$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034660if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034661 $as_echo_n "(cached) " >&6
34662else
34663 if test -n "$P7ZIP"; then
34664 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34665else
34666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34667for as_dir in $PATH
34668do
34669 IFS=$as_save_IFS
34670 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034671 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034673 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034675 break 2
34676 fi
34677done
cristy8b350f62009-11-15 23:12:43 +000034678 done
cristy3ed852e2009-09-05 21:47:34 +000034679IFS=$as_save_IFS
34680
34681fi
34682fi
34683P7ZIP=$ac_cv_prog_P7ZIP
34684if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034686$as_echo "$P7ZIP" >&6; }
34687else
cristy8b350f62009-11-15 23:12:43 +000034688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034689$as_echo "no" >&6; }
34690fi
34691
34692
34693 test -n "$P7ZIP" && break
34694done
34695
34696
cristy73bd4a52010-10-05 11:24:23 +000034697 if test "x$P7ZIP" != "x" ; then
34698 P7ZIP_DELEGATE_TRUE=
34699 P7ZIP_DELEGATE_FALSE='#'
34700else
34701 P7ZIP_DELEGATE_TRUE='#'
34702 P7ZIP_DELEGATE_FALSE=
34703fi
34704
cristy3ed852e2009-09-05 21:47:34 +000034705
34706#
34707# ZIP support (http://www.info-zip.org/Zip.html)
34708#
34709ZIP=''
34710for ac_prog in zip
34711do
34712 # Extract the first word of "$ac_prog", so it can be a program name with args.
34713set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034715$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034716if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034717 $as_echo_n "(cached) " >&6
34718else
34719 if test -n "$ZIP"; then
34720 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34721else
34722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34723for as_dir in $PATH
34724do
34725 IFS=$as_save_IFS
34726 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034727 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034729 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034731 break 2
34732 fi
34733done
cristy8b350f62009-11-15 23:12:43 +000034734 done
cristy3ed852e2009-09-05 21:47:34 +000034735IFS=$as_save_IFS
34736
34737fi
34738fi
34739ZIP=$ac_cv_prog_ZIP
34740if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034742$as_echo "$ZIP" >&6; }
34743else
cristy8b350f62009-11-15 23:12:43 +000034744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034745$as_echo "no" >&6; }
34746fi
34747
34748
34749 test -n "$ZIP" && break
34750done
34751
34752
cristy73bd4a52010-10-05 11:24:23 +000034753 if test "x$ZIP" != "x" ; then
34754 ZIP_DELEGATE_TRUE=
34755 ZIP_DELEGATE_FALSE='#'
34756else
34757 ZIP_DELEGATE_TRUE='#'
34758 ZIP_DELEGATE_FALSE=
34759fi
34760
cristy3ed852e2009-09-05 21:47:34 +000034761
34762#
34763# GhostPCL related configuration.
34764#
34765PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034766PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034767PCLMonoDevice=pbmraw
34768if test -z "$PCLVersion"; then
34769 PCLVersion='unknown'
34770fi
34771if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34773$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034775$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34777$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034778 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034780$as_echo_n "checking for pcl color device... " >&6; }
34781 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34782 :
34783 else
34784 PCLColorDevice=ppmraw
34785 fi
cristyad38abe2012-12-23 23:03:21 +000034786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
34787$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034788
34789 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034791$as_echo_n "checking for pcl CMYK device... " >&6; }
34792 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34793 :
34794 else
34795 PCLCMYKDevice=$PCLColorDevice
34796 fi
cristyad38abe2012-12-23 23:03:21 +000034797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
34798$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034799
34800 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034802$as_echo_n "checking for pcl mono device... " >&6; }
34803 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34804 :
34805 else
34806 PCLMonoDevice=$PCLColorDevice
34807 fi
cristyad38abe2012-12-23 23:03:21 +000034808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
34809$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034810fi
34811
34812
34813
34814
34815
34816
34817#
34818# GhostXPS related configuration.
34819#
34820XPSColorDevice=ppmraw
34821XPSCMYKDevice=bmpsep8
34822XPSMonoDevice=pbmraw
34823if test -z "$XPSVersion"; then
34824 XPSVersion='unknown'
34825fi
34826if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34828$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034830$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34832$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034833 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034835$as_echo_n "checking for xps color device... " >&6; }
34836 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34837 :
34838 else
34839 XPSColorDevice=ppmraw
34840 fi
cristyad38abe2012-12-23 23:03:21 +000034841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
34842$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034843
34844 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034846$as_echo_n "checking for xps CMYK device... " >&6; }
34847 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34848 :
34849 else
34850 XPSCMYKDevice=$XPSColorDevice
34851 fi
cristyad38abe2012-12-23 23:03:21 +000034852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
34853$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034854
34855 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034857$as_echo_n "checking for xps mono device... " >&6; }
34858 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34859 :
34860 else
34861 XPSMonoDevice=$XPSColorDevice
34862 fi
cristyad38abe2012-12-23 23:03:21 +000034863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
34864$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034865fi
34866
34867
34868
34869
34870
34871
34872#
34873# Ghostscript related configuration.
34874#
cristya97426c2011-02-04 01:41:27 +000034875GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034876GSColorDevice=pnmraw
34877GSCMYKDevice=pam
34878GSMonoDevice=pbmraw
34879GSPDFDevice=pdfwrite
34880GSPSDevice=pswrite
34881GSEPSDevice=epswrite
34882GSVersion='unknown'
34883if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000034884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34885$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034887$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34889$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034891$as_echo_n "checking for Ghostscript version... " >&6; }
34892 if GSVersion=`$PSDelegate --version`; then
34893 :
34894 else
34895 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34896 fi
cristyad38abe2012-12-23 23:03:21 +000034897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
34898$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034899
34900 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034902$as_echo_n "checking for gs alpha device... " >&6; }
34903 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34904 :
34905 else
34906 GSAlphaDevice=pnmraw
34907 fi
cristyad38abe2012-12-23 23:03:21 +000034908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
34909$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034910
34911 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034913$as_echo_n "checking for gs color device... " >&6; }
34914 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34915 :
34916 else
34917 GSColorDevice=pnmraw
34918 fi
cristyad38abe2012-12-23 23:03:21 +000034919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
34920$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034921
34922 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034924$as_echo_n "checking for gs CMYK device... " >&6; }
34925 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34926 :
34927 else
34928 GSCMYKDevice=bmpsep8
34929 fi
cristyad38abe2012-12-23 23:03:21 +000034930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
34931$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034932
34933 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034935$as_echo_n "checking for gs mono device... " >&6; }
34936 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34937 :
34938 else
34939 GSMonoDevice=$GSColorDevice
34940 fi
cristyad38abe2012-12-23 23:03:21 +000034941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
34942$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034943
34944 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034946$as_echo_n "checking for gs PDF writing device... " >&6; }
34947 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34948 :
34949 else
34950 GSPDFDevice=nodevice
34951 fi
cristyad38abe2012-12-23 23:03:21 +000034952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
34953$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034954
34955 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034957$as_echo_n "checking for gs PS writing device... " >&6; }
34958 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34959 :
34960 else
34961 GSPSDevice=nodevice
34962 fi
cristyad38abe2012-12-23 23:03:21 +000034963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
34964$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034965
34966 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034968$as_echo_n "checking for gs EPS writing device... " >&6; }
34969 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34970 :
34971 else
34972 GSEPSDevice=nodevice
34973 fi
cristyad38abe2012-12-23 23:03:21 +000034974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
34975$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034976fi
34977
34978
34979
34980
34981
34982
34983
34984
34985
34986
34987#
34988# PerlMagick-related configuration
34989#
34990
34991# Look for PERL if PerlMagick requested
34992# If name/path of desired PERL interpreter is specified, look for that one first
34993have_perl='no'
34994if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000034995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34996$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034998$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35000$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035001 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035003$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035004if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035005 $as_echo_n "(cached) " >&6
35006else
35007 ac_cv_path_PERL="$with_perl"
35008fi
cristy8b350f62009-11-15 23:12:43 +000035009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035010$as_echo "$ac_cv_path_PERL" >&6; };
35011 PERL=$ac_cv_path_PERL
35012 have_perl="$ac_cv_path_PERL"
35013 else
35014 for ac_prog in perl perl5
35015do
35016 # Extract the first word of "$ac_prog", so it can be a program name with args.
35017set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035019$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035020if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035021 $as_echo_n "(cached) " >&6
35022else
35023 case $PERL in
35024 [\\/]* | ?:[\\/]*)
35025 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35026 ;;
35027 *)
35028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35029for as_dir in $PATH
35030do
35031 IFS=$as_save_IFS
35032 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035033 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035035 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035037 break 2
35038 fi
35039done
cristy8b350f62009-11-15 23:12:43 +000035040 done
cristy3ed852e2009-09-05 21:47:34 +000035041IFS=$as_save_IFS
35042
35043 ;;
35044esac
35045fi
35046PERL=$ac_cv_path_PERL
35047if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035049$as_echo "$PERL" >&6; }
35050else
cristy8b350f62009-11-15 23:12:43 +000035051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035052$as_echo "no" >&6; }
35053fi
35054
35055
35056 test -n "$PERL" && break
35057done
35058 if test "$ac_cv_path_PERL"; then
35059 have_perl="$ac_cv_path_PERL"
35060 fi
35061 fi
35062fi
35063
cristy949301e2010-01-06 01:38:40 +000035064if test "$with_perl" != 'yes' ; then
35065 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35066fi
35067
35068PERL_SUPPORTS_DESTDIR='no'
35069
cristy3ed852e2009-09-05 21:47:34 +000035070with_perl_static='no'
35071with_perl_dynamic='no'
35072if test "$have_perl" != 'no'; then
35073 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35074 with_perl_static='yes'
35075 fi
35076 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35077 with_perl_dynamic='yes'
35078 fi
35079 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035080
35081
35082
35083
35084 if test -n "$PERL"; then :
35085
35086 ax_perl_version="5.8.1"
35087
35088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35089$as_echo_n "checking for perl version... " >&6; }
35090
35091 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35092
35093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35094$as_echo "$perl_version" >&6; }
35095
35096 PERL_VERSION=$perl_version
35097
35098
35099
35100
35101
35102 # Used to indicate true or false condition
35103 ax_compare_version=false
35104
35105 # Convert the two version strings to be compared into a format that
35106 # allows a simple string comparison. The end result is that a version
35107 # string of the form 1.12.5-r617 will be converted to the form
35108 # 0001001200050617. In other words, each number is zero padded to four
35109 # digits, and non digits are removed.
35110
35111 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35112 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35113 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35114 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35115 -e 's/[^0-9]//g'`
35116
35117
35118 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35119 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35120 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35121 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35122 -e 's/[^0-9]//g'`
35123
35124
35125 ax_compare_version=`echo "x$ax_compare_version_A
35126x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35127
35128
35129
35130 if test "$ax_compare_version" = "true" ; then
35131
35132 :
35133 PERL_SUPPORTS_DESTDIR='yes'
35134
35135 else
35136 :
35137 PERL_SUPPORTS_DESTDIR='no'
35138
35139 fi
35140
35141
35142else
35143
35144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35145$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35146 PERL_SUPPORTS_DESTDIR='no'
35147
cristy3ed852e2009-09-05 21:47:34 +000035148fi
cristy73bd4a52010-10-05 11:24:23 +000035149
35150fi
35151 if test "$have_perl" != 'no'; then
35152 WITH_PERL_TRUE=
35153 WITH_PERL_FALSE='#'
35154else
35155 WITH_PERL_TRUE='#'
35156 WITH_PERL_FALSE=
35157fi
35158
35159 if test $with_perl_static = 'yes'; then
35160 WITH_PERL_STATIC_TRUE=
35161 WITH_PERL_STATIC_FALSE='#'
35162else
35163 WITH_PERL_STATIC_TRUE='#'
35164 WITH_PERL_STATIC_FALSE=
35165fi
35166
35167 if test $with_perl_dynamic = 'yes'; then
35168 WITH_PERL_DYNAMIC_TRUE=
35169 WITH_PERL_DYNAMIC_FALSE='#'
35170else
35171 WITH_PERL_DYNAMIC_TRUE='#'
35172 WITH_PERL_DYNAMIC_FALSE=
35173fi
35174
cristy3ed852e2009-09-05 21:47:34 +000035175
35176
35177# Determine path to pick up MagickCore library from for use with building PerlMagick
35178MAGICKCORE_PATH="${LIB_DIR}"
35179if test $with_perl_static = 'yes'; then
35180 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35181 libtool_objdir=$objdir
35182
35183 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035184 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035185fi
35186
35187
cristy2a3eb392012-12-17 13:39:20 +000035188# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035189MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035190if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035191 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035192fi
cristy2a3eb392012-12-17 13:39:20 +000035193if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035194 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035195fi
35196if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035197 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035198fi
35199if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035200 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035201fi
35202if test "$have_ffmpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035203 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035204fi
35205if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035206 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035207fi
35208if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035209 MAGICK_DELEGATES="$MAGICK_DELEGATES xfig"
cristy2a3eb392012-12-17 13:39:20 +000035210fi
35211if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035212 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035213fi
35214if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035215 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035216fi
35217if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035218 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035219fi
35220if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035221 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035222fi
35223if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035224 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035225fi
35226if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035227 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035228fi
35229if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035230 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035231fi
35232if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035233 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035234fi
35235if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035236 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035237fi
35238if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035239 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035240fi
35241if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035242 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035243fi
35244if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035245 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035246fi
35247if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035248 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035249fi
35250if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035251 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035252fi
35253have_ps='no'
35254if test "$have_dps" = 'yes' || \
35255 test "$have_gs" = 'yes' || \
35256 test "${native_win32_build}" = 'yes' ; then
35257 have_ps='yes'
35258fi
35259if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035260 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035261fi
35262if test "$have_ralcgm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035263 MAGICK_DELEGATES="$MAGICK_DELEGATES cgm"
cristy2a3eb392012-12-17 13:39:20 +000035264fi
35265if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035266 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035267fi
35268if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035269 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035270fi
35271if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035272 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035273fi
35274if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035275 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035276fi
35277if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035278 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035279fi
35280if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035281 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035282fi
35283if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035284 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035285fi
35286if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035287 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035288fi
cristy2a3eb392012-12-17 13:39:20 +000035289# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035290MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035291MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035292
35293
cristyfa161182012-12-19 15:45:28 +000035294
cristy3ed852e2009-09-05 21:47:34 +000035295#
35296# Handle special compiler flags
35297#
35298
35299# Add '-p' if prof source profiling support enabled
35300if test "$enable_prof" = 'yes'; then
35301 CFLAGS="-p $CFLAGS"
35302 CXXFLAGS="-p $CXXFLAGS"
35303 LDFLAGS="-p $LDFLAGS"
35304fi
35305
35306# Add '-pg' if gprof source profiling support enabled
35307if test "$enable_gprof" = 'yes'; then
35308 CFLAGS="-pg $CFLAGS"
35309 CXXFLAGS="-pg $CXXFLAGS"
35310 LDFLAGS="-pg $LDFLAGS"
35311fi
35312
35313# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35314# This is a gcc-specific feature
35315if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035317$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035318if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035319 $as_echo_n "(cached) " >&6
35320else
35321 ac_check_lib_save_LIBS=$LIBS
35322LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035324/* end confdefs.h. */
35325
35326/* Override any GCC internal prototype to avoid an error.
35327 Use char because int might match the return type of a GCC
35328 builtin and then its argument prototype would still apply. */
35329#ifdef __cplusplus
35330extern "C"
35331#endif
35332char _gcov_init ();
35333int
35334main ()
35335{
35336return _gcov_init ();
35337 ;
35338 return 0;
35339}
35340_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035341if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035342 ac_cv_lib_gcov__gcov_init=yes
35343else
cristy8b350f62009-11-15 23:12:43 +000035344 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035345fi
cristy8b350f62009-11-15 23:12:43 +000035346rm -f core conftest.err conftest.$ac_objext \
35347 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035348LIBS=$ac_check_lib_save_LIBS
35349fi
cristy8b350f62009-11-15 23:12:43 +000035350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035351$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035352if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035353 cat >>confdefs.h <<_ACEOF
35354#define HAVE_LIBGCOV 1
35355_ACEOF
35356
35357 LIBS="-lgcov $LIBS"
35358
35359fi
35360
cristy8b350f62009-11-15 23:12:43 +000035361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035362$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035363if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035364 $as_echo_n "(cached) " >&6
35365else
35366 ac_check_lib_save_LIBS=$LIBS
35367LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035369/* end confdefs.h. */
35370
35371/* Override any GCC internal prototype to avoid an error.
35372 Use char because int might match the return type of a GCC
35373 builtin and then its argument prototype would still apply. */
35374#ifdef __cplusplus
35375extern "C"
35376#endif
35377char __gcov_init ();
35378int
35379main ()
35380{
35381return __gcov_init ();
35382 ;
35383 return 0;
35384}
35385_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035386if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035387 ac_cv_lib_gcov___gcov_init=yes
35388else
cristy8b350f62009-11-15 23:12:43 +000035389 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035390fi
cristy8b350f62009-11-15 23:12:43 +000035391rm -f core conftest.err conftest.$ac_objext \
35392 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035393LIBS=$ac_check_lib_save_LIBS
35394fi
cristy8b350f62009-11-15 23:12:43 +000035395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035396$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035397if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035398 cat >>confdefs.h <<_ACEOF
35399#define HAVE_LIBGCOV 1
35400_ACEOF
35401
35402 LIBS="-lgcov $LIBS"
35403
35404fi
35405
35406 case "$target_os" in
35407 darwin*)
35408 OSX_GCOV_LDFLAG="-Wl,-single_module"
35409 ;;
35410 *)
35411 OSX_GCOV_LDFLAG=""
35412 ;;
35413 esac
35414
35415 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35416 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35417 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35418fi
35419
35420#
35421# Build library dependency list for libMagickCore
35422#
35423
cristyc6722092012-10-14 00:19:31 +000035424if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035425 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 +000035426else
cristy3a75f062012-09-08 23:29:40 +000035427 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 +000035428fi
35429
35430
35431#
35432# Remove extraneous spaces from output variables (asthetic)
35433#
35434X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35435X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35436X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35437X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35438
35439CC=`echo $CC | sed -e 's/ */ /g'`
35440CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35441CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35442CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035443DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35444LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35445TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35446MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35447#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35448
35449# Pass only user-provided LIBS as "global" libraries
35450LIBS=$USER_LIBS
35451
35452#AC_SUBST(CPPFLAGS)
35453
35454#AC_SUBST(LDFLAGS)
35455#AC_SUBST(X_PRE_LIBS)
35456#AC_SUBST(X_LIBS)
35457#AC_SUBST(X_EXTRA_LIBS)
35458
35459MAGICK_CFLAGS=$CFLAGS
35460MAGICK_CXXFLAGS="$CXXFLAGS"
35461MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35462MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35463MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035464MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035465
35466
35467
35468
35469
35470
35471
35472
35473# Set configured scripts to executable.
35474ac_config_commands="$ac_config_commands default"
35475
cristy2bd4b6e2012-07-22 15:29:11 +000035476ac_config_commands="$ac_config_commands magick.sh.in"
35477
cristy3ed852e2009-09-05 21:47:34 +000035478ac_config_commands="$ac_config_commands MagickCore-config.in"
35479
cristy3ed852e2009-09-05 21:47:34 +000035480ac_config_commands="$ac_config_commands MagickWand-config.in"
35481
cristy3ed852e2009-09-05 21:47:34 +000035482ac_config_commands="$ac_config_commands Magick++-config.in"
35483
35484ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35485
35486
cristyad38abe2012-12-23 23:03:21 +000035487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35488$as_echo "-------------------------------------------------------------" >&6; }
35489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
35490$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035491cat >confcache <<\_ACEOF
35492# This file is a shell script that caches the results of configure
35493# tests run on this system so they can be shared between configure
35494# scripts and configure runs, see configure's option --config-cache.
35495# It is not useful on other systems. If it contains results you don't
35496# want to keep, you may remove or edit it.
35497#
35498# config.status only pays attention to the cache file if you give it
35499# the --recheck option to rerun configure.
35500#
35501# `ac_cv_env_foo' variables (set or unset) will be overridden when
35502# loading this file, other *unset* `ac_cv_foo' will be assigned the
35503# following values.
35504
35505_ACEOF
35506
35507# The following way of writing the cache mishandles newlines in values,
35508# but we know of no workaround that is simple, portable, and efficient.
35509# So, we kill variables containing newlines.
35510# Ultrix sh set writes to stderr and can't be redirected directly,
35511# and sets the high bit in the cache file unless we assign to the vars.
35512(
35513 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35514 eval ac_val=\$$ac_var
35515 case $ac_val in #(
35516 *${as_nl}*)
35517 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035518 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035519$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35520 esac
35521 case $ac_var in #(
35522 _ | IFS | as_nl) ;; #(
35523 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035524 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035525 esac ;;
35526 esac
35527 done
35528
35529 (set) 2>&1 |
35530 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35531 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035532 # `set' does not quote correctly, so add quotes: double-quote
35533 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035534 sed -n \
35535 "s/'/'\\\\''/g;
35536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35537 ;; #(
35538 *)
35539 # `set' quotes correctly as required by POSIX, so do not add quotes.
35540 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35541 ;;
35542 esac |
35543 sort
35544) |
35545 sed '
35546 /^ac_cv_env_/b end
35547 t clear
35548 :clear
35549 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35550 t end
35551 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35552 :end' >>confcache
35553if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35554 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035555 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035556 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035557$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035558 if test ! -f "$cache_file" || test -h "$cache_file"; then
35559 cat confcache >"$cache_file"
35560 else
35561 case $cache_file in #(
35562 */* | ?:*)
35563 mv -f confcache "$cache_file"$$ &&
35564 mv -f "$cache_file"$$ "$cache_file" ;; #(
35565 *)
35566 mv -f confcache "$cache_file" ;;
35567 esac
35568 fi
35569 fi
cristy3ed852e2009-09-05 21:47:34 +000035570 else
cristy8b350f62009-11-15 23:12:43 +000035571 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035572$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35573 fi
35574fi
35575rm -f confcache
35576
35577test "x$prefix" = xNONE && prefix=$ac_default_prefix
35578# Let make expand exec_prefix.
35579test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35580
35581DEFS=-DHAVE_CONFIG_H
35582
35583ac_libobjs=
35584ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035585U=
cristy3ed852e2009-09-05 21:47:34 +000035586for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35587 # 1. Remove the extension, and $U if already installed.
35588 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35589 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35590 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35591 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035592 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35593 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035594done
35595LIBOBJS=$ac_libobjs
35596
35597LTLIBOBJS=$ac_ltlibobjs
35598
35599
cristyc0890a62012-07-19 00:18:20 +000035600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35601$as_echo_n "checking that generated files are newer than configure... " >&6; }
35602 if test -n "$am_sleep_pid"; then
35603 # Hide warnings about reused PIDs.
35604 wait $am_sleep_pid 2>/dev/null
35605 fi
35606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35607$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035608 if test -n "$EXEEXT"; then
35609 am__EXEEXT_TRUE=
35610 am__EXEEXT_FALSE='#'
35611else
35612 am__EXEEXT_TRUE='#'
35613 am__EXEEXT_FALSE=
35614fi
cristy3ed852e2009-09-05 21:47:34 +000035615
cristy73bd4a52010-10-05 11:24:23 +000035616if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035617 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035618Usually this means the macro was only invoked conditionally." "$LINENO" 5
35619fi
35620if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035621 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035622Usually this means the macro was only invoked conditionally." "$LINENO" 5
35623fi
35624if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035625 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035626Usually this means the macro was only invoked conditionally." "$LINENO" 5
35627fi
35628if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035629 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035630Usually this means the macro was only invoked conditionally." "$LINENO" 5
35631fi
cristy9b86f202012-11-28 21:55:35 +000035632if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35633 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35634Usually this means the macro was only invoked conditionally." "$LINENO" 5
35635fi
cristy73bd4a52010-10-05 11:24:23 +000035636if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035637 as_fn_error $? "conditional \"WINGDI32_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 "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035641 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035642Usually this means the macro was only invoked conditionally." "$LINENO" 5
35643fi
35644if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035645 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035646Usually this means the macro was only invoked conditionally." "$LINENO" 5
35647fi
35648if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035649 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035650Usually this means the macro was only invoked conditionally." "$LINENO" 5
35651fi
cristy73bd4a52010-10-05 11:24:23 +000035652if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035653 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035654Usually this means the macro was only invoked conditionally." "$LINENO" 5
35655fi
35656if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035657 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035658Usually this means the macro was only invoked conditionally." "$LINENO" 5
35659fi
cristy73bd4a52010-10-05 11:24:23 +000035660if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035661 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035662Usually this means the macro was only invoked conditionally." "$LINENO" 5
35663fi
cristy71d8c202012-03-20 17:05:01 +000035664if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35665 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35666Usually this means the macro was only invoked conditionally." "$LINENO" 5
35667fi
cristy73bd4a52010-10-05 11:24:23 +000035668
35669if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035670 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035671Usually this means the macro was only invoked conditionally." "$LINENO" 5
35672fi
35673if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035674 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035675Usually this means the macro was only invoked conditionally." "$LINENO" 5
35676fi
35677if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035678 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035679Usually this means the macro was only invoked conditionally." "$LINENO" 5
35680fi
35681if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035682 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035683Usually this means the macro was only invoked conditionally." "$LINENO" 5
35684fi
35685if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035686 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035687Usually this means the macro was only invoked conditionally." "$LINENO" 5
35688fi
35689if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035690 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035691Usually this means the macro was only invoked conditionally." "$LINENO" 5
35692fi
cristy5eef09f2012-10-16 12:08:28 +000035693if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35694 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35695Usually this means the macro was only invoked conditionally." "$LINENO" 5
35696fi
cristy73bd4a52010-10-05 11:24:23 +000035697if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035698 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035699Usually this means the macro was only invoked conditionally." "$LINENO" 5
35700fi
35701if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035702 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035703Usually this means the macro was only invoked conditionally." "$LINENO" 5
35704fi
35705if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035706 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035707Usually this means the macro was only invoked conditionally." "$LINENO" 5
35708fi
35709if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035710 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035711Usually this means the macro was only invoked conditionally." "$LINENO" 5
35712fi
35713if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035714 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035715Usually this means the macro was only invoked conditionally." "$LINENO" 5
35716fi
35717if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035718 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035719Usually this means the macro was only invoked conditionally." "$LINENO" 5
35720fi
35721if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035722 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035723Usually this means the macro was only invoked conditionally." "$LINENO" 5
35724fi
35725if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035726 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035727Usually this means the macro was only invoked conditionally." "$LINENO" 5
35728fi
35729if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035730 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035731Usually this means the macro was only invoked conditionally." "$LINENO" 5
35732fi
35733if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035734 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035735Usually this means the macro was only invoked conditionally." "$LINENO" 5
35736fi
35737if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035738 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035739Usually this means the macro was only invoked conditionally." "$LINENO" 5
35740fi
35741if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035742 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035743Usually this means the macro was only invoked conditionally." "$LINENO" 5
35744fi
35745if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035746 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035747Usually this means the macro was only invoked conditionally." "$LINENO" 5
35748fi
35749if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035750 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035751Usually this means the macro was only invoked conditionally." "$LINENO" 5
35752fi
cristyfbb0ef02010-12-19 02:32:11 +000035753if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35754 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35755Usually this means the macro was only invoked conditionally." "$LINENO" 5
35756fi
cristy73bd4a52010-10-05 11:24:23 +000035757if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035758 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035759Usually this means the macro was only invoked conditionally." "$LINENO" 5
35760fi
cristy41cbe8a2011-10-27 01:35:18 +000035761if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35762 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35763Usually this means the macro was only invoked conditionally." "$LINENO" 5
35764fi
cristya054b762012-03-26 23:16:00 +000035765if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35766 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035767Usually this means the macro was only invoked conditionally." "$LINENO" 5
35768fi
cristy73bd4a52010-10-05 11:24:23 +000035769if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035770 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035771Usually this means the macro was only invoked conditionally." "$LINENO" 5
35772fi
35773if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035774 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035775Usually this means the macro was only invoked conditionally." "$LINENO" 5
35776fi
35777if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035778 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035779Usually this means the macro was only invoked conditionally." "$LINENO" 5
35780fi
35781if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035782 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035783Usually this means the macro was only invoked conditionally." "$LINENO" 5
35784fi
cristyb1860752011-03-14 00:27:46 +000035785if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35786 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35787Usually this means the macro was only invoked conditionally." "$LINENO" 5
35788fi
cristy73bd4a52010-10-05 11:24:23 +000035789if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035790 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035791Usually this means the macro was only invoked conditionally." "$LINENO" 5
35792fi
35793if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035794 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035795Usually this means the macro was only invoked conditionally." "$LINENO" 5
35796fi
35797if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035798 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035799Usually this means the macro was only invoked conditionally." "$LINENO" 5
35800fi
35801if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035802 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035803Usually this means the macro was only invoked conditionally." "$LINENO" 5
35804fi
35805if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035806 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035807Usually this means the macro was only invoked conditionally." "$LINENO" 5
35808fi
35809if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035810 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035811Usually this means the macro was only invoked conditionally." "$LINENO" 5
35812fi
35813if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035814 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035815Usually this means the macro was only invoked conditionally." "$LINENO" 5
35816fi
35817if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035818 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035819Usually this means the macro was only invoked conditionally." "$LINENO" 5
35820fi
cristy3ed852e2009-09-05 21:47:34 +000035821
cristyda16f162011-02-19 23:52:17 +000035822: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035823ac_write_fail=0
35824ac_clean_files_save=$ac_clean_files
35825ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035826{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035827$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035828as_write_fail=0
35829cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035830#! $SHELL
35831# Generated by $as_me.
35832# Run this file to recreate the current configuration.
35833# Compiler output produced by configure, useful for debugging
35834# configure, is in config.log if it exists.
35835
35836debug=false
35837ac_cs_recheck=false
35838ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035839
cristy8b350f62009-11-15 23:12:43 +000035840SHELL=\${CONFIG_SHELL-$SHELL}
35841export SHELL
35842_ASEOF
35843cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35844## -------------------- ##
35845## M4sh Initialization. ##
35846## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035847
35848# Be more Bourne compatible
35849DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035850if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035851 emulate sh
35852 NULLCMD=:
35853 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35854 # is contrary to our usage. Disable this feature.
35855 alias -g '${1+"$@"}'='"$@"'
35856 setopt NO_GLOB_SUBST
35857else
cristy8b350f62009-11-15 23:12:43 +000035858 case `(set -o) 2>/dev/null` in #(
35859 *posix*) :
35860 set -o posix ;; #(
35861 *) :
35862 ;;
cristy3ed852e2009-09-05 21:47:34 +000035863esac
cristy3ed852e2009-09-05 21:47:34 +000035864fi
35865
35866
cristy3ed852e2009-09-05 21:47:34 +000035867as_nl='
35868'
35869export as_nl
35870# Printing a long string crashes Solaris 7 /usr/bin/printf.
35871as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35872as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35873as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035874# Prefer a ksh shell builtin over an external printf program on Solaris,
35875# but without wasting forks for bash or zsh.
35876if test -z "$BASH_VERSION$ZSH_VERSION" \
35877 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35878 as_echo='print -r --'
35879 as_echo_n='print -rn --'
35880elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035881 as_echo='printf %s\n'
35882 as_echo_n='printf %s'
35883else
35884 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35885 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35886 as_echo_n='/usr/ucb/echo -n'
35887 else
35888 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35889 as_echo_n_body='eval
35890 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035891 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035892 *"$as_nl"*)
35893 expr "X$arg" : "X\\(.*\\)$as_nl";
35894 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35895 esac;
35896 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35897 '
35898 export as_echo_n_body
35899 as_echo_n='sh -c $as_echo_n_body as_echo'
35900 fi
35901 export as_echo_body
35902 as_echo='sh -c $as_echo_body as_echo'
35903fi
35904
35905# The user is always right.
35906if test "${PATH_SEPARATOR+set}" != set; then
35907 PATH_SEPARATOR=:
35908 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35909 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35910 PATH_SEPARATOR=';'
35911 }
35912fi
35913
cristy3ed852e2009-09-05 21:47:34 +000035914
35915# IFS
35916# We need space, tab and new line, in precisely that order. Quoting is
35917# there to prevent editors from complaining about space-tab.
35918# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35919# splitting by setting IFS to empty value.)
35920IFS=" "" $as_nl"
35921
35922# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035923as_myself=
cristy8b350f62009-11-15 23:12:43 +000035924case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035925 *[\\/]* ) as_myself=$0 ;;
35926 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35927for as_dir in $PATH
35928do
35929 IFS=$as_save_IFS
35930 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035931 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35932 done
cristy3ed852e2009-09-05 21:47:34 +000035933IFS=$as_save_IFS
35934
35935 ;;
35936esac
35937# We did not find ourselves, most probably we were run as `sh COMMAND'
35938# in which case we are not to be found in the path.
35939if test "x$as_myself" = x; then
35940 as_myself=$0
35941fi
35942if test ! -f "$as_myself"; then
35943 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035944 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035945fi
35946
cristy8b350f62009-11-15 23:12:43 +000035947# Unset variables that we do not need and which cause bugs (e.g. in
35948# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35949# suppresses any "Segmentation fault" message there. '((' could
35950# trigger a bug in pdksh 5.2.14.
35951for as_var in BASH_ENV ENV MAIL MAILPATH
35952do eval test x\${$as_var+set} = xset \
35953 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035954done
35955PS1='$ '
35956PS2='> '
35957PS4='+ '
35958
35959# NLS nuisances.
35960LC_ALL=C
35961export LC_ALL
35962LANGUAGE=C
35963export LANGUAGE
35964
cristy8b350f62009-11-15 23:12:43 +000035965# CDPATH.
35966(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35967
35968
cristy98dddb52010-11-04 00:30:15 +000035969# as_fn_error STATUS ERROR [LINENO LOG_FD]
35970# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035971# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35972# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035973# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035974as_fn_error ()
35975{
cristy98dddb52010-11-04 00:30:15 +000035976 as_status=$1; test $as_status -eq 0 && as_status=1
35977 if test "$4"; then
35978 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35979 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035980 fi
cristy98dddb52010-11-04 00:30:15 +000035981 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035982 as_fn_exit $as_status
35983} # as_fn_error
35984
35985
35986# as_fn_set_status STATUS
35987# -----------------------
35988# Set $? to STATUS, without forking.
35989as_fn_set_status ()
35990{
35991 return $1
35992} # as_fn_set_status
35993
35994# as_fn_exit STATUS
35995# -----------------
35996# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35997as_fn_exit ()
35998{
35999 set +e
36000 as_fn_set_status $1
36001 exit $1
36002} # as_fn_exit
36003
36004# as_fn_unset VAR
36005# ---------------
36006# Portably unset VAR.
36007as_fn_unset ()
36008{
36009 { eval $1=; unset $1;}
36010}
36011as_unset=as_fn_unset
36012# as_fn_append VAR VALUE
36013# ----------------------
36014# Append the text in VALUE to the end of the definition contained in VAR. Take
36015# advantage of any shell optimizations that allow amortized linear growth over
36016# repeated appends, instead of the typical quadratic growth present in naive
36017# implementations.
36018if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36019 eval 'as_fn_append ()
36020 {
36021 eval $1+=\$2
36022 }'
36023else
36024 as_fn_append ()
36025 {
36026 eval $1=\$$1\$2
36027 }
36028fi # as_fn_append
36029
36030# as_fn_arith ARG...
36031# ------------------
36032# Perform arithmetic evaluation on the ARGs, and store the result in the
36033# global $as_val. Take advantage of shells that can avoid forks. The arguments
36034# must be portable across $(()) and expr.
36035if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36036 eval 'as_fn_arith ()
36037 {
36038 as_val=$(( $* ))
36039 }'
36040else
36041 as_fn_arith ()
36042 {
36043 as_val=`expr "$@" || test $? -eq 1`
36044 }
36045fi # as_fn_arith
36046
36047
cristy3ed852e2009-09-05 21:47:34 +000036048if expr a : '\(a\)' >/dev/null 2>&1 &&
36049 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36050 as_expr=expr
36051else
36052 as_expr=false
36053fi
36054
36055if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36056 as_basename=basename
36057else
36058 as_basename=false
36059fi
36060
cristy8b350f62009-11-15 23:12:43 +000036061if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36062 as_dirname=dirname
36063else
36064 as_dirname=false
36065fi
cristy3ed852e2009-09-05 21:47:34 +000036066
cristy3ed852e2009-09-05 21:47:34 +000036067as_me=`$as_basename -- "$0" ||
36068$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36069 X"$0" : 'X\(//\)$' \| \
36070 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36071$as_echo X/"$0" |
36072 sed '/^.*\/\([^/][^/]*\)\/*$/{
36073 s//\1/
36074 q
36075 }
36076 /^X\/\(\/\/\)$/{
36077 s//\1/
36078 q
36079 }
36080 /^X\/\(\/\).*/{
36081 s//\1/
36082 q
36083 }
36084 s/.*/./; q'`
36085
cristy8b350f62009-11-15 23:12:43 +000036086# Avoid depending upon Character Ranges.
36087as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36088as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36089as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36090as_cr_digits='0123456789'
36091as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036092
36093ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036094case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036095-n*)
cristy8b350f62009-11-15 23:12:43 +000036096 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036097 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036098 xy) ECHO_C='\c';;
36099 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36100 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036101 esac;;
36102*)
36103 ECHO_N='-n';;
36104esac
cristy3ed852e2009-09-05 21:47:34 +000036105
36106rm -f conf$$ conf$$.exe conf$$.file
36107if test -d conf$$.dir; then
36108 rm -f conf$$.dir/conf$$.file
36109else
36110 rm -f conf$$.dir
36111 mkdir conf$$.dir 2>/dev/null
36112fi
36113if (echo >conf$$.file) 2>/dev/null; then
36114 if ln -s conf$$.file conf$$ 2>/dev/null; then
36115 as_ln_s='ln -s'
36116 # ... but there are two gotchas:
36117 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36118 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036119 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036120 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036121 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036122 elif ln conf$$.file conf$$ 2>/dev/null; then
36123 as_ln_s=ln
36124 else
cristy14fefe52012-05-21 00:59:18 +000036125 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036126 fi
36127else
cristy14fefe52012-05-21 00:59:18 +000036128 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036129fi
36130rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36131rmdir conf$$.dir 2>/dev/null
36132
cristy8b350f62009-11-15 23:12:43 +000036133
36134# as_fn_mkdir_p
36135# -------------
36136# Create "$as_dir" as a directory, including parents if necessary.
36137as_fn_mkdir_p ()
36138{
36139
36140 case $as_dir in #(
36141 -*) as_dir=./$as_dir;;
36142 esac
36143 test -d "$as_dir" || eval $as_mkdir_p || {
36144 as_dirs=
36145 while :; do
36146 case $as_dir in #(
36147 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36148 *) as_qdir=$as_dir;;
36149 esac
36150 as_dirs="'$as_qdir' $as_dirs"
36151 as_dir=`$as_dirname -- "$as_dir" ||
36152$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36153 X"$as_dir" : 'X\(//\)[^/]' \| \
36154 X"$as_dir" : 'X\(//\)$' \| \
36155 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36156$as_echo X"$as_dir" |
36157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36158 s//\1/
36159 q
36160 }
36161 /^X\(\/\/\)[^/].*/{
36162 s//\1/
36163 q
36164 }
36165 /^X\(\/\/\)$/{
36166 s//\1/
36167 q
36168 }
36169 /^X\(\/\).*/{
36170 s//\1/
36171 q
36172 }
36173 s/.*/./; q'`
36174 test -d "$as_dir" && break
36175 done
36176 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036177 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036178
36179
36180} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036181if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036182 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036183else
36184 test -d ./-p && rmdir ./-p
36185 as_mkdir_p=false
36186fi
36187
cristy14fefe52012-05-21 00:59:18 +000036188
36189# as_fn_executable_p FILE
36190# -----------------------
36191# Test if FILE is an executable regular file.
36192as_fn_executable_p ()
36193{
36194 test -f "$1" && test -x "$1"
36195} # as_fn_executable_p
36196as_test_x='test -x'
36197as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036198
36199# Sed expression to map a string onto a valid CPP name.
36200as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36201
36202# Sed expression to map a string onto a valid variable name.
36203as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36204
36205
36206exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036207## ----------------------------------- ##
36208## Main body of $CONFIG_STATUS script. ##
36209## ----------------------------------- ##
36210_ASEOF
36211test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036212
cristy8b350f62009-11-15 23:12:43 +000036213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36214# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036215# report actual input values of CONFIG_FILES etc. instead of their
36216# values after options handling.
36217ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036218This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036219generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036220
36221 CONFIG_FILES = $CONFIG_FILES
36222 CONFIG_HEADERS = $CONFIG_HEADERS
36223 CONFIG_LINKS = $CONFIG_LINKS
36224 CONFIG_COMMANDS = $CONFIG_COMMANDS
36225 $ $0 $@
36226
36227on `(hostname || uname -n) 2>/dev/null | sed 1q`
36228"
36229
36230_ACEOF
36231
36232case $ac_config_files in *"
36233"*) set x $ac_config_files; shift; ac_config_files=$*;;
36234esac
36235
36236case $ac_config_headers in *"
36237"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36238esac
36239
36240
36241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36242# Files that config.status was made for.
36243config_files="$ac_config_files"
36244config_headers="$ac_config_headers"
36245config_commands="$ac_config_commands"
36246
36247_ACEOF
36248
36249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36250ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036251\`$as_me' instantiates files and other configuration actions
36252from templates according to the current configuration. Unless the files
36253and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036254
cristy8b350f62009-11-15 23:12:43 +000036255Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036256
36257 -h, --help print this help, then exit
36258 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036259 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036260 -q, --quiet, --silent
36261 do not print progress messages
36262 -d, --debug don't remove temporary files
36263 --recheck update $as_me by reconfiguring in the same conditions
36264 --file=FILE[:TEMPLATE]
36265 instantiate the configuration file FILE
36266 --header=FILE[:TEMPLATE]
36267 instantiate the configuration header FILE
36268
36269Configuration files:
36270$config_files
36271
36272Configuration headers:
36273$config_headers
36274
36275Configuration commands:
36276$config_commands
36277
cristy8b350f62009-11-15 23:12:43 +000036278Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036279
36280_ACEOF
36281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036282ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036283ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036284ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036285configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036286 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036287
cristy14fefe52012-05-21 00:59:18 +000036288Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036289This config.status script is free software; the Free Software Foundation
36290gives unlimited permission to copy, distribute and modify it."
36291
36292ac_pwd='$ac_pwd'
36293srcdir='$srcdir'
36294INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036295MKDIR_P='$MKDIR_P'
36296AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036297test -n "\$AWK" || AWK=awk
36298_ACEOF
36299
36300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36301# The default lists apply if the user does not specify any file.
36302ac_need_defaults=:
36303while test $# != 0
36304do
36305 case $1 in
cristyda16f162011-02-19 23:52:17 +000036306 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036307 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36308 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36309 ac_shift=:
36310 ;;
cristyda16f162011-02-19 23:52:17 +000036311 --*=)
36312 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36313 ac_optarg=
36314 ac_shift=:
36315 ;;
cristy3ed852e2009-09-05 21:47:34 +000036316 *)
36317 ac_option=$1
36318 ac_optarg=$2
36319 ac_shift=shift
36320 ;;
36321 esac
36322
36323 case $ac_option in
36324 # Handling of the options.
36325 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36326 ac_cs_recheck=: ;;
36327 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36328 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036329 --config | --confi | --conf | --con | --co | --c )
36330 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036331 --debug | --debu | --deb | --de | --d | -d )
36332 debug=: ;;
36333 --file | --fil | --fi | --f )
36334 $ac_shift
36335 case $ac_optarg in
36336 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036337 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036338 esac
cristy8b350f62009-11-15 23:12:43 +000036339 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036340 ac_need_defaults=false;;
36341 --header | --heade | --head | --hea )
36342 $ac_shift
36343 case $ac_optarg in
36344 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36345 esac
cristy8b350f62009-11-15 23:12:43 +000036346 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036347 ac_need_defaults=false;;
36348 --he | --h)
36349 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036350 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036351Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036352 --help | --hel | -h )
36353 $as_echo "$ac_cs_usage"; exit ;;
36354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36355 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36356 ac_cs_silent=: ;;
36357
36358 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036359 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036360Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036361
cristy8b350f62009-11-15 23:12:43 +000036362 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036363 ac_need_defaults=false ;;
36364
36365 esac
36366 shift
36367done
36368
36369ac_configure_extra_args=
36370
36371if $ac_cs_silent; then
36372 exec 6>/dev/null
36373 ac_configure_extra_args="$ac_configure_extra_args --silent"
36374fi
36375
36376_ACEOF
36377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36378if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036379 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036380 shift
36381 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36382 CONFIG_SHELL='$SHELL'
36383 export CONFIG_SHELL
36384 exec "\$@"
36385fi
36386
36387_ACEOF
36388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36389exec 5>>config.log
36390{
36391 echo
36392 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36393## Running $as_me. ##
36394_ASBOX
36395 $as_echo "$ac_log"
36396} >&5
36397
36398_ACEOF
36399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036400#
36401# INIT-COMMANDS
36402#
36403PACKAGE="$PACKAGE"
36404AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36405
36406
36407# The HP-UX ksh and POSIX shell print the target directory to stdout
36408# if CDPATH is set.
36409(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36410
36411sed_quote_subst='$sed_quote_subst'
36412double_quote_subst='$double_quote_subst'
36413delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036414SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36415Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36416GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36417EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36418FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36419SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36420ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36421LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36422macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36423macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36424AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36425DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36426OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36427enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36428enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36429pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36430enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036431PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036432host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36433host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36434host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36435build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36436build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36437build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36438NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36439LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36440max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36441ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36442exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36443lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36444lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36445lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036446lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36447lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036448reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36449reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36450deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36451file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036452file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36453want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36454sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036455AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36456AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036457archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036458STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36459RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36460old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36461old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36462old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36463lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36464CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36465CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36466compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36467GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36468lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36469lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36470lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36471lt_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 +000036472nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36473lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036474objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36475MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36476lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036477lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036478lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036479lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36480lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36481need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036482MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036483DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36484NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36485LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36486OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36487OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36488libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36489shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36490extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36491archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36492enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36493export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36494whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36495compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36496old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36497old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36498archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36499archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36500module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36501module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36502with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36503allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36504no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36505hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036506hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36507hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36508hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36509hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36510hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36511hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36512inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36513link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036514always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36515export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36516exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36517include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36518prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036519postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036520file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36521variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36522need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36523need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36524version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36525runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36526shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36527shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36528libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36529library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36530soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36531install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36532postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36533postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36534finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36535finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36536hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36537sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36538sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36539hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36540enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36541enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36542enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36543old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36544striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36545compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36546predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36547postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36548predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36549postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36550compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36551LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36552reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36553reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36554old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36555compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36556GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36557lt_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 +000036558lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036559lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036560lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36561lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36562archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36563enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36564export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36565whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36566compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36567old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36568old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36569archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36570archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36571module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36572module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36573with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36574allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36575no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36576hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036577hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36578hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36579hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36580hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36581hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36582hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36583inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36584link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036585always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36586export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36587exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36588include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36589prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036590postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036591file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36592hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36593compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36594predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36595postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36596predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36597postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36598compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036599
36600LTCC='$LTCC'
36601LTCFLAGS='$LTCFLAGS'
36602compiler='$compiler_DEFAULT'
36603
cristy0c60a692010-11-04 01:09:47 +000036604# A function that is used when there is no print builtin or printf.
36605func_fallback_echo ()
36606{
36607 eval 'cat <<_LTECHO_EOF
36608\$1
36609_LTECHO_EOF'
36610}
36611
cristy73bd4a52010-10-05 11:24:23 +000036612# Quote evaled strings.
36613for var in SED \
36614GREP \
36615EGREP \
36616FGREP \
cristy0c60a692010-11-04 01:09:47 +000036617SHELL \
36618ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036619LD \
cristy0c60a692010-11-04 01:09:47 +000036620AS \
36621DLLTOOL \
36622OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036623PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036624NM \
36625LN_S \
36626lt_SP2NL \
36627lt_NL2SP \
36628reload_flag \
36629deplibs_check_method \
36630file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036631file_magic_glob \
36632want_nocaseglob \
36633sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036634AR \
36635AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036636archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036637STRIP \
36638RANLIB \
36639CC \
36640CFLAGS \
36641compiler \
36642lt_cv_sys_global_symbol_pipe \
36643lt_cv_sys_global_symbol_to_cdecl \
36644lt_cv_sys_global_symbol_to_c_name_address \
36645lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036646nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036647lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036648lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036649lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036650lt_prog_compiler_static \
36651lt_cv_prog_compiler_c_o \
36652need_locks \
cristyda16f162011-02-19 23:52:17 +000036653MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036654DSYMUTIL \
36655NMEDIT \
36656LIPO \
36657OTOOL \
36658OTOOL64 \
36659shrext_cmds \
36660export_dynamic_flag_spec \
36661whole_archive_flag_spec \
36662compiler_needs_object \
36663with_gnu_ld \
36664allow_undefined_flag \
36665no_undefined_flag \
36666hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036667hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036668exclude_expsyms \
36669include_expsyms \
36670file_list_spec \
36671variables_saved_for_relink \
36672libname_spec \
36673library_names_spec \
36674soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036675install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036676finish_eval \
36677old_striplib \
36678striplib \
36679compiler_lib_search_dirs \
36680predep_objects \
36681postdep_objects \
36682predeps \
36683postdeps \
36684compiler_lib_search_path \
36685LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036686reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036687compiler_CXX \
36688lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036689lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036690lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036691lt_prog_compiler_static_CXX \
36692lt_cv_prog_compiler_c_o_CXX \
36693export_dynamic_flag_spec_CXX \
36694whole_archive_flag_spec_CXX \
36695compiler_needs_object_CXX \
36696with_gnu_ld_CXX \
36697allow_undefined_flag_CXX \
36698no_undefined_flag_CXX \
36699hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036700hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036701exclude_expsyms_CXX \
36702include_expsyms_CXX \
36703file_list_spec_CXX \
36704compiler_lib_search_dirs_CXX \
36705predep_objects_CXX \
36706postdep_objects_CXX \
36707predeps_CXX \
36708postdeps_CXX \
36709compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036710 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036711 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036712 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036713 ;;
36714 *)
36715 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36716 ;;
36717 esac
36718done
36719
36720# Double-quote double-evaled strings.
36721for var in reload_cmds \
36722old_postinstall_cmds \
36723old_postuninstall_cmds \
36724old_archive_cmds \
36725extract_expsyms_cmds \
36726old_archive_from_new_cmds \
36727old_archive_from_expsyms_cmds \
36728archive_cmds \
36729archive_expsym_cmds \
36730module_cmds \
36731module_expsym_cmds \
36732export_symbols_cmds \
36733prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036734postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036735postinstall_cmds \
36736postuninstall_cmds \
36737finish_cmds \
36738sys_lib_search_path_spec \
36739sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036740reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036741old_archive_cmds_CXX \
36742old_archive_from_new_cmds_CXX \
36743old_archive_from_expsyms_cmds_CXX \
36744archive_cmds_CXX \
36745archive_expsym_cmds_CXX \
36746module_cmds_CXX \
36747module_expsym_cmds_CXX \
36748export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036749prelink_cmds_CXX \
36750postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036751 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036752 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036753 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036754 ;;
36755 *)
36756 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36757 ;;
36758 esac
36759done
36760
cristy73bd4a52010-10-05 11:24:23 +000036761ac_aux_dir='$ac_aux_dir'
36762xsi_shell='$xsi_shell'
36763lt_shell_append='$lt_shell_append'
36764
36765# See if we are running on zsh, and set the options which allow our
36766# commands through without removal of \ escapes INIT.
36767if test -n "\${ZSH_VERSION+set}" ; then
36768 setopt NO_GLOB_SUBST
36769fi
36770
36771
36772 PACKAGE='$PACKAGE'
36773 VERSION='$VERSION'
36774 TIMESTAMP='$TIMESTAMP'
36775 RM='$RM'
36776 ofile='$ofile'
36777
36778
36779
36780
36781
36782
cristy3ed852e2009-09-05 21:47:34 +000036783_ACEOF
36784
36785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36786
36787# Handling of arguments.
36788for ac_config_target in $ac_config_targets
36789do
36790 case $ac_config_target in
36791 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000036792 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000036793 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036794 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36795 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36796 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36797 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36798 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036799 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036800 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036801 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36802 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36803 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36804 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36805 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036806 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036807 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36808 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036809 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36810 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36811 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036812 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36813 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36814 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36815 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36816 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36817 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36818 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36819 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36820 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36821 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36822 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36823 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36824 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36825 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36826 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36827 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36828 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036829 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36830 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036831 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36832 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036833 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000036834 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036835 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036836 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036837 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36838 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36839
cristy98dddb52010-11-04 00:30:15 +000036840 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036841 esac
36842done
36843
36844
36845# If the user did not use the arguments to specify the items to instantiate,
36846# then the envvar interface is used. Set only those that are not.
36847# We use the long form for the default assignment because of an extremely
36848# bizarre bug on SunOS 4.1.3.
36849if $ac_need_defaults; then
36850 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36851 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36852 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36853fi
36854
36855# Have a temporary directory for convenience. Make it in the build tree
36856# simply because there is no reason against having it here, and in addition,
36857# creating and moving files from /tmp can sometimes cause problems.
36858# Hook for its removal unless debugging.
36859# Note that there is a small window in which the directory will not be cleaned:
36860# after its creation but before its name has been assigned to `$tmp'.
36861$debug ||
36862{
cristyda16f162011-02-19 23:52:17 +000036863 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036864 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036865 : "${ac_tmp:=$tmp}"
36866 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036867' 0
cristy8b350f62009-11-15 23:12:43 +000036868 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036869}
36870# Create a (secure) tmp directory for tmp files.
36871
36872{
36873 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036874 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036875} ||
36876{
36877 tmp=./conf$$-$RANDOM
36878 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036879} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036880ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036881
36882# Set up the scripts for CONFIG_FILES section.
36883# No need to generate them if there are no CONFIG_FILES.
36884# This happens for instance with `./config.status config.h'.
36885if test -n "$CONFIG_FILES"; then
36886
36887
cristy8b350f62009-11-15 23:12:43 +000036888ac_cr=`echo X | tr X '\015'`
36889# On cygwin, bash can eat \r inside `` if the user requested igncr.
36890# But we know of no other shell where ac_cr would be empty at this
36891# point, so we can use a bashism as a fallback.
36892if test "x$ac_cr" = x; then
36893 eval ac_cr=\$\'\\r\'
36894fi
cristy3ed852e2009-09-05 21:47:34 +000036895ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36896if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036897 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036898else
36899 ac_cs_awk_cr=$ac_cr
36900fi
36901
cristyda16f162011-02-19 23:52:17 +000036902echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036903_ACEOF
36904
36905
36906{
36907 echo "cat >conf$$subs.awk <<_ACEOF" &&
36908 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36909 echo "_ACEOF"
36910} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036911 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36912ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036913ac_delim='%!_!# '
36914for ac_last_try in false false false false false :; do
36915 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036916 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036917
36918 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36919 if test $ac_delim_n = $ac_delim_num; then
36920 break
36921 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036922 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036923 else
36924 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36925 fi
36926done
36927rm -f conf$$subs.sh
36928
36929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036930cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036931_ACEOF
36932sed -n '
36933h
36934s/^/S["/; s/!.*/"]=/
36935p
36936g
36937s/^[^!]*!//
36938:repl
36939t repl
36940s/'"$ac_delim"'$//
36941t delim
36942:nl
36943h
cristycd4c5312009-11-22 01:19:08 +000036944s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036945t more1
36946s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36947p
36948n
36949b repl
36950:more1
36951s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36952p
36953g
36954s/.\{148\}//
36955t nl
36956:delim
36957h
cristycd4c5312009-11-22 01:19:08 +000036958s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036959t more2
36960s/["\\]/\\&/g; s/^/"/; s/$/"/
36961p
36962b
36963:more2
36964s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36965p
36966g
36967s/.\{148\}//
36968t delim
36969' <conf$$subs.awk | sed '
36970/^[^""]/{
36971 N
36972 s/\n//
36973}
36974' >>$CONFIG_STATUS || ac_write_fail=1
36975rm -f conf$$subs.awk
36976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36977_ACAWK
cristyda16f162011-02-19 23:52:17 +000036978cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036979 for (key in S) S_is_set[key] = 1
36980 FS = ""
36981
36982}
36983{
36984 line = $ 0
36985 nfields = split(line, field, "@")
36986 substed = 0
36987 len = length(field[1])
36988 for (i = 2; i < nfields; i++) {
36989 key = field[i]
36990 keylen = length(key)
36991 if (S_is_set[key]) {
36992 value = S[key]
36993 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36994 len += length(value) + length(field[++i])
36995 substed = 1
36996 } else
36997 len += 1 + keylen
36998 }
36999
37000 print line
37001}
37002
37003_ACAWK
37004_ACEOF
37005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37006if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37007 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37008else
37009 cat
cristyda16f162011-02-19 23:52:17 +000037010fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037011 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037012_ACEOF
37013
cristy98dddb52010-11-04 00:30:15 +000037014# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37015# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037016# trailing colons and then remove the whole line if VPATH becomes empty
37017# (actually we leave an empty line to preserve line numbers).
37018if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037019 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37020h
37021s///
37022s/^/:/
37023s/[ ]*$/:/
37024s/:\$(srcdir):/:/g
37025s/:\${srcdir}:/:/g
37026s/:@srcdir@:/:/g
37027s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037028s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037029x
37030s/\(=[ ]*\).*/\1/
37031G
37032s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037033s/^[^=]*=[ ]*$//
37034}'
37035fi
37036
37037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37038fi # test -n "$CONFIG_FILES"
37039
37040# Set up the scripts for CONFIG_HEADERS section.
37041# No need to generate them if there are no CONFIG_HEADERS.
37042# This happens for instance with `./config.status Makefile'.
37043if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037044cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037045BEGIN {
37046_ACEOF
37047
37048# Transform confdefs.h into an awk script `defines.awk', embedded as
37049# here-document in config.status, that substitutes the proper values into
37050# config.h.in to produce config.h.
37051
37052# Create a delimiter string that does not exist in confdefs.h, to ease
37053# handling of long lines.
37054ac_delim='%!_!# '
37055for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037056 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37057 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037058 break
37059 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037060 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037061 else
37062 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37063 fi
37064done
37065
37066# For the awk script, D is an array of macro values keyed by name,
37067# likewise P contains macro parameters if any. Preserve backslash
37068# newline sequences.
37069
37070ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37071sed -n '
37072s/.\{148\}/&'"$ac_delim"'/g
37073t rset
37074:rset
37075s/^[ ]*#[ ]*define[ ][ ]*/ /
37076t def
37077d
37078:def
37079s/\\$//
37080t bsnl
37081s/["\\]/\\&/g
37082s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37083D["\1"]=" \3"/p
37084s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37085d
37086:bsnl
37087s/["\\]/\\&/g
37088s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37089D["\1"]=" \3\\\\\\n"\\/p
37090t cont
37091s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37092t cont
37093d
37094:cont
37095n
37096s/.\{148\}/&'"$ac_delim"'/g
37097t clear
37098:clear
37099s/\\$//
37100t bsnlc
37101s/["\\]/\\&/g; s/^/"/; s/$/"/p
37102d
37103:bsnlc
37104s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37105b cont
37106' <confdefs.h | sed '
37107s/'"$ac_delim"'/"\\\
37108"/g' >>$CONFIG_STATUS || ac_write_fail=1
37109
37110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37111 for (key in D) D_is_set[key] = 1
37112 FS = ""
37113}
37114/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37115 line = \$ 0
37116 split(line, arg, " ")
37117 if (arg[1] == "#") {
37118 defundef = arg[2]
37119 mac1 = arg[3]
37120 } else {
37121 defundef = substr(arg[1], 2)
37122 mac1 = arg[2]
37123 }
37124 split(mac1, mac2, "(") #)
37125 macro = mac2[1]
37126 prefix = substr(line, 1, index(line, defundef) - 1)
37127 if (D_is_set[macro]) {
37128 # Preserve the white space surrounding the "#".
37129 print prefix "define", macro P[macro] D[macro]
37130 next
37131 } else {
37132 # Replace #undef with comments. This is necessary, for example,
37133 # in the case of _POSIX_SOURCE, which is predefined and required
37134 # on some systems where configure will not decide to define it.
37135 if (defundef == "undef") {
37136 print "/*", prefix defundef, macro, "*/"
37137 next
37138 }
37139 }
37140}
37141{ print }
37142_ACAWK
37143_ACEOF
37144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037145 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037146fi # test -n "$CONFIG_HEADERS"
37147
37148
37149eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37150shift
37151for ac_tag
37152do
37153 case $ac_tag in
37154 :[FHLC]) ac_mode=$ac_tag; continue;;
37155 esac
37156 case $ac_mode$ac_tag in
37157 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037158 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037159 :[FH]-) ac_tag=-:-;;
37160 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37161 esac
37162 ac_save_IFS=$IFS
37163 IFS=:
37164 set x $ac_tag
37165 IFS=$ac_save_IFS
37166 shift
37167 ac_file=$1
37168 shift
37169
37170 case $ac_mode in
37171 :L) ac_source=$1;;
37172 :[FH])
37173 ac_file_inputs=
37174 for ac_f
37175 do
37176 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037177 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037178 *) # Look for the file first in the build tree, then in the source tree
37179 # (if the path is not absolute). The absolute path cannot be DOS-style,
37180 # because $ac_f cannot contain `:'.
37181 test -f "$ac_f" ||
37182 case $ac_f in
37183 [\\/$]*) false;;
37184 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37185 esac ||
cristy98dddb52010-11-04 00:30:15 +000037186 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037187 esac
37188 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037189 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037190 done
37191
37192 # Let's still pretend it is `configure' which instantiates (i.e., don't
37193 # use $as_me), people would be surprised to read:
37194 # /* config.h. Generated by config.status. */
37195 configure_input='Generated from '`
37196 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37197 `' by configure.'
37198 if test x"$ac_file" != x-; then
37199 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037200 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037201$as_echo "$as_me: creating $ac_file" >&6;}
37202 fi
37203 # Neutralize special characters interpreted by sed in replacement strings.
37204 case $configure_input in #(
37205 *\&* | *\|* | *\\* )
37206 ac_sed_conf_input=`$as_echo "$configure_input" |
37207 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37208 *) ac_sed_conf_input=$configure_input;;
37209 esac
37210
37211 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037212 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037213 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037214 esac
37215 ;;
37216 esac
37217
37218 ac_dir=`$as_dirname -- "$ac_file" ||
37219$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37220 X"$ac_file" : 'X\(//\)[^/]' \| \
37221 X"$ac_file" : 'X\(//\)$' \| \
37222 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37223$as_echo X"$ac_file" |
37224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37225 s//\1/
37226 q
37227 }
37228 /^X\(\/\/\)[^/].*/{
37229 s//\1/
37230 q
37231 }
37232 /^X\(\/\/\)$/{
37233 s//\1/
37234 q
37235 }
37236 /^X\(\/\).*/{
37237 s//\1/
37238 q
37239 }
37240 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037241 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037242 ac_builddir=.
37243
37244case "$ac_dir" in
37245.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37246*)
37247 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37248 # A ".." for each directory in $ac_dir_suffix.
37249 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37250 case $ac_top_builddir_sub in
37251 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37252 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37253 esac ;;
37254esac
37255ac_abs_top_builddir=$ac_pwd
37256ac_abs_builddir=$ac_pwd$ac_dir_suffix
37257# for backward compatibility:
37258ac_top_builddir=$ac_top_build_prefix
37259
37260case $srcdir in
37261 .) # We are building in place.
37262 ac_srcdir=.
37263 ac_top_srcdir=$ac_top_builddir_sub
37264 ac_abs_top_srcdir=$ac_pwd ;;
37265 [\\/]* | ?:[\\/]* ) # Absolute name.
37266 ac_srcdir=$srcdir$ac_dir_suffix;
37267 ac_top_srcdir=$srcdir
37268 ac_abs_top_srcdir=$srcdir ;;
37269 *) # Relative name.
37270 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37271 ac_top_srcdir=$ac_top_build_prefix$srcdir
37272 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37273esac
37274ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37275
37276
37277 case $ac_mode in
37278 :F)
37279 #
37280 # CONFIG_FILE
37281 #
37282
37283 case $INSTALL in
37284 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37285 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37286 esac
cristy73bd4a52010-10-05 11:24:23 +000037287 ac_MKDIR_P=$MKDIR_P
37288 case $MKDIR_P in
37289 [\\/$]* | ?:[\\/]* ) ;;
37290 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37291 esac
cristy3ed852e2009-09-05 21:47:34 +000037292_ACEOF
37293
37294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37295# If the template does not know about datarootdir, expand it.
37296# FIXME: This hack should be removed a few years after 2.60.
37297ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037298ac_sed_dataroot='
37299/datarootdir/ {
37300 p
37301 q
37302}
37303/@datadir@/p
37304/@docdir@/p
37305/@infodir@/p
37306/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037307/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037308case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37309*datarootdir*) ac_datarootdir_seen=yes;;
37310*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037312$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37313_ACEOF
37314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37315 ac_datarootdir_hack='
37316 s&@datadir@&$datadir&g
37317 s&@docdir@&$docdir&g
37318 s&@infodir@&$infodir&g
37319 s&@localedir@&$localedir&g
37320 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037321 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037322esac
37323_ACEOF
37324
37325# Neutralize VPATH when `$srcdir' = `.'.
37326# Shell code in configure.ac might set extrasub.
37327# FIXME: do we really want to maintain this feature?
37328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37329ac_sed_extra="$ac_vpsub
37330$extrasub
37331_ACEOF
37332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37333:t
37334/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37335s|@configure_input@|$ac_sed_conf_input|;t t
37336s&@top_builddir@&$ac_top_builddir_sub&;t t
37337s&@top_build_prefix@&$ac_top_build_prefix&;t t
37338s&@srcdir@&$ac_srcdir&;t t
37339s&@abs_srcdir@&$ac_abs_srcdir&;t t
37340s&@top_srcdir@&$ac_top_srcdir&;t t
37341s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37342s&@builddir@&$ac_builddir&;t t
37343s&@abs_builddir@&$ac_abs_builddir&;t t
37344s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37345s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037346s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037347$ac_datarootdir_hack
37348"
cristyda16f162011-02-19 23:52:17 +000037349eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37350 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037351
37352test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037353 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37354 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37355 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037357which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037358$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037359which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037360
cristyda16f162011-02-19 23:52:17 +000037361 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037362 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037363 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37364 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037365 esac \
cristy98dddb52010-11-04 00:30:15 +000037366 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037367 ;;
37368 :H)
37369 #
37370 # CONFIG_HEADER
37371 #
37372 if test x"$ac_file" != x-; then
37373 {
37374 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037375 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37376 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037378 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037379 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037380$as_echo "$as_me: $ac_file is unchanged" >&6;}
37381 else
37382 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037383 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037384 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037385 fi
37386 else
37387 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037388 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037389 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037390 fi
cristy73bd4a52010-10-05 11:24:23 +000037391# Compute "$ac_file"'s index in $config_headers.
37392_am_arg="$ac_file"
37393_am_stamp_count=1
37394for _am_header in $config_headers :; do
37395 case $_am_header in
37396 $_am_arg | $_am_arg:* )
37397 break ;;
37398 * )
37399 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37400 esac
37401done
37402echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37403$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37404 X"$_am_arg" : 'X\(//\)[^/]' \| \
37405 X"$_am_arg" : 'X\(//\)$' \| \
37406 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37407$as_echo X"$_am_arg" |
37408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37409 s//\1/
37410 q
37411 }
37412 /^X\(\/\/\)[^/].*/{
37413 s//\1/
37414 q
37415 }
37416 /^X\(\/\/\)$/{
37417 s//\1/
37418 q
37419 }
37420 /^X\(\/\).*/{
37421 s//\1/
37422 q
37423 }
37424 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037425 ;;
37426
cristy8b350f62009-11-15 23:12:43 +000037427 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037428$as_echo "$as_me: executing $ac_file commands" >&6;}
37429 ;;
37430 esac
37431
37432
37433 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000037434 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000037435ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37436ac_prefix_conf_PKG=`echo MagickCore`
37437ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37438ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37439ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37440if test ".$ac_prefix_conf_INP" = "."; then
37441 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37442 case "$ac_file" in
37443 *.h) ac_prefix_conf_INP=$ac_file ;;
37444 *)
37445 esac
37446 test ".$ac_prefix_conf_INP" != "." && break
37447 done
37448fi
37449if test ".$ac_prefix_conf_INP" = "."; then
37450 case "$ac_prefix_conf_OUT" in
37451 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37452 ;;
37453 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37454 ;;
37455 *) ac_prefix_conf_INP=config.h
37456 ;;
37457 esac
37458fi
37459if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037460 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037461else
37462 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37463 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37464 fi fi
37465 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37466$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37467 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037468 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37469 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37470 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37471 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37472 $as_echo "#endif/" >> conftest.prefix
37473 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37474 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37475 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037476 # now executing _script on _DEF input to create _OUT output file
37477 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37478 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37479 echo ' ' >>$tmp/pconfig.h
37480 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37481
37482 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37483 echo ' ' >>$tmp/pconfig.h
37484 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37485 echo "#endif" >>$tmp/pconfig.h
37486 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37487 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37488$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37489 else
37490 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37491$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37492 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37493 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37494 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37495$as_echo X"$ac_prefix_conf_OUT" |
37496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37497 s//\1/
37498 q
37499 }
37500 /^X\(\/\/\)[^/].*/{
37501 s//\1/
37502 q
37503 }
37504 /^X\(\/\/\)$/{
37505 s//\1/
37506 q
37507 }
37508 /^X\(\/\).*/{
37509 s//\1/
37510 q
37511 }
37512 s/.*/./; q'`
37513 as_dir="$ac_dir"; as_fn_mkdir_p
37514 rm -f "$ac_prefix_conf_OUT"
37515 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37516 fi
37517 cp conftest.prefix _configs.sed
37518 else
cristy98dddb52010-11-04 00:30:15 +000037519 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 +000037520 fi
37521 rm -f conftest.*
37522fi
37523 ;;
37524 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37525 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37526 # are listed without --file. Let's play safe and only enable the eval
37527 # if we detect the quoting.
37528 case $CONFIG_FILES in
37529 *\'*) eval set x "$CONFIG_FILES" ;;
37530 *) set x $CONFIG_FILES ;;
37531 esac
37532 shift
37533 for mf
37534 do
37535 # Strip MF so we end up with the name of the file.
37536 mf=`echo "$mf" | sed -e 's/:.*$//'`
37537 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037538 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037539 # some people rename them; so instead we look at the file content.
37540 # Grep'ing the first line is not enough: some people post-process
37541 # each Makefile.in and add a new line on top of each file to say so.
37542 # Grep'ing the whole file is not good either: AIX grep has a line
37543 # limit of 2048, but all sed's we know have understand at least 4000.
37544 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37545 dirpart=`$as_dirname -- "$mf" ||
37546$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37547 X"$mf" : 'X\(//\)[^/]' \| \
37548 X"$mf" : 'X\(//\)$' \| \
37549 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37550$as_echo X"$mf" |
37551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37552 s//\1/
37553 q
37554 }
37555 /^X\(\/\/\)[^/].*/{
37556 s//\1/
37557 q
37558 }
37559 /^X\(\/\/\)$/{
37560 s//\1/
37561 q
37562 }
37563 /^X\(\/\).*/{
37564 s//\1/
37565 q
37566 }
37567 s/.*/./; q'`
37568 else
37569 continue
37570 fi
37571 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037572 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037573 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37574 test -z "$DEPDIR" && continue
37575 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37576 test -z "am__include" && continue
37577 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037578 # Find all dependency output files, they are included files with
37579 # $(DEPDIR) in their names. We invoke sed twice because it is the
37580 # simplest approach to changing $(DEPDIR) to its actual value in the
37581 # expansion.
37582 for file in `sed -n "
37583 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037584 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037585 # Make sure the directory exists.
37586 test -f "$dirpart/$file" && continue
37587 fdir=`$as_dirname -- "$file" ||
37588$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37589 X"$file" : 'X\(//\)[^/]' \| \
37590 X"$file" : 'X\(//\)$' \| \
37591 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37592$as_echo X"$file" |
37593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37594 s//\1/
37595 q
37596 }
37597 /^X\(\/\/\)[^/].*/{
37598 s//\1/
37599 q
37600 }
37601 /^X\(\/\/\)$/{
37602 s//\1/
37603 q
37604 }
37605 /^X\(\/\).*/{
37606 s//\1/
37607 q
37608 }
37609 s/.*/./; q'`
37610 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37611 # echo "creating $dirpart/$file"
37612 echo '# dummy' > "$dirpart/$file"
37613 done
37614 done
37615}
37616 ;;
37617 "libtool":C)
37618
37619 # See if we are running on zsh, and set the options which allow our
37620 # commands through without removal of \ escapes.
37621 if test -n "${ZSH_VERSION+set}" ; then
37622 setopt NO_GLOB_SUBST
37623 fi
37624
37625 cfgfile="${ofile}T"
37626 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37627 $RM "$cfgfile"
37628
37629 cat <<_LT_EOF >> "$cfgfile"
37630#! $SHELL
37631
37632# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37633# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37634# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37635# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37636#
37637# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037638# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37639# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037640# Written by Gordon Matzigkeit, 1996
37641#
37642# This file is part of GNU Libtool.
37643#
37644# GNU Libtool is free software; you can redistribute it and/or
37645# modify it under the terms of the GNU General Public License as
37646# published by the Free Software Foundation; either version 2 of
37647# the License, or (at your option) any later version.
37648#
37649# As a special exception to the GNU General Public License,
37650# if you distribute this file as part of a program or library that
37651# is built using GNU Libtool, you may include this file under the
37652# same distribution terms that you use for the rest of that program.
37653#
37654# GNU Libtool is distributed in the hope that it will be useful,
37655# but WITHOUT ANY WARRANTY; without even the implied warranty of
37656# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37657# GNU General Public License for more details.
37658#
37659# You should have received a copy of the GNU General Public License
37660# along with GNU Libtool; see the file COPYING. If not, a copy
37661# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37662# obtained by writing to the Free Software Foundation, Inc.,
37663# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37664
37665
37666# The names of the tagged configurations supported by this script.
37667available_tags="CXX "
37668
37669# ### BEGIN LIBTOOL CONFIG
37670
37671# A sed program that does not truncate output.
37672SED=$lt_SED
37673
37674# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37675Xsed="\$SED -e 1s/^X//"
37676
37677# A grep program that handles long lines.
37678GREP=$lt_GREP
37679
37680# An ERE matcher.
37681EGREP=$lt_EGREP
37682
37683# A literal string matcher.
37684FGREP=$lt_FGREP
37685
cristy0c60a692010-11-04 01:09:47 +000037686# Shell to use when invoking shell scripts.
37687SHELL=$lt_SHELL
37688
37689# An echo program that protects backslashes.
37690ECHO=$lt_ECHO
37691
cristy73bd4a52010-10-05 11:24:23 +000037692# Which release of libtool.m4 was used?
37693macro_version=$macro_version
37694macro_revision=$macro_revision
37695
37696# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037697AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037698
37699# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037700DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037701
37702# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037703OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037704
37705# Whether or not to build shared libraries.
37706build_libtool_libs=$enable_shared
37707
37708# Whether or not to build static libraries.
37709build_old_libs=$enable_static
37710
37711# What type of objects to build.
37712pic_mode=$pic_mode
37713
37714# Whether or not to optimize for fast installation.
37715fast_install=$enable_fast_install
37716
cristy99bd5232011-12-07 14:38:20 +000037717# The PATH separator for the build system.
37718PATH_SEPARATOR=$lt_PATH_SEPARATOR
37719
cristy73bd4a52010-10-05 11:24:23 +000037720# The host system.
37721host_alias=$host_alias
37722host=$host
37723host_os=$host_os
37724
37725# The build system.
37726build_alias=$build_alias
37727build=$build
37728build_os=$build_os
37729
37730# A BSD- or MS-compatible name lister.
37731NM=$lt_NM
37732
37733# Whether we need soft or hard links.
37734LN_S=$lt_LN_S
37735
37736# What is the maximum length of a command?
37737max_cmd_len=$max_cmd_len
37738
37739# Object file suffix (normally "o").
37740objext=$ac_objext
37741
37742# Executable file suffix (normally "").
37743exeext=$exeext
37744
37745# whether the shell understands "unset".
37746lt_unset=$lt_unset
37747
37748# turn spaces into newlines.
37749SP2NL=$lt_lt_SP2NL
37750
37751# turn newlines into spaces.
37752NL2SP=$lt_lt_NL2SP
37753
cristyda16f162011-02-19 23:52:17 +000037754# convert \$build file names to \$host format.
37755to_host_file_cmd=$lt_cv_to_host_file_cmd
37756
37757# convert \$build files to toolchain format.
37758to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37759
cristy73bd4a52010-10-05 11:24:23 +000037760# Method to check whether dependent libraries are shared objects.
37761deplibs_check_method=$lt_deplibs_check_method
37762
cristyda16f162011-02-19 23:52:17 +000037763# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037764file_magic_cmd=$lt_file_magic_cmd
37765
cristyda16f162011-02-19 23:52:17 +000037766# How to find potential files when deplibs_check_method = "file_magic".
37767file_magic_glob=$lt_file_magic_glob
37768
37769# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37770want_nocaseglob=$lt_want_nocaseglob
37771
37772# Command to associate shared and link libraries.
37773sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37774
cristy73bd4a52010-10-05 11:24:23 +000037775# The archiver.
37776AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037777
37778# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037779AR_FLAGS=$lt_AR_FLAGS
37780
cristyda16f162011-02-19 23:52:17 +000037781# How to feed a file listing to the archiver.
37782archiver_list_spec=$lt_archiver_list_spec
37783
cristy73bd4a52010-10-05 11:24:23 +000037784# A symbol stripping program.
37785STRIP=$lt_STRIP
37786
37787# Commands used to install an old-style archive.
37788RANLIB=$lt_RANLIB
37789old_postinstall_cmds=$lt_old_postinstall_cmds
37790old_postuninstall_cmds=$lt_old_postuninstall_cmds
37791
cristy0c60a692010-11-04 01:09:47 +000037792# Whether to use a lock for old archive extraction.
37793lock_old_archive_extraction=$lock_old_archive_extraction
37794
cristy73bd4a52010-10-05 11:24:23 +000037795# A C compiler.
37796LTCC=$lt_CC
37797
37798# LTCC compiler flags.
37799LTCFLAGS=$lt_CFLAGS
37800
37801# Take the output of nm and produce a listing of raw symbols and C names.
37802global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37803
37804# Transform the output of nm in a proper C declaration.
37805global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37806
37807# Transform the output of nm in a C name address pair.
37808global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37809
37810# Transform the output of nm in a C name address pair when lib prefix is needed.
37811global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37812
cristyda16f162011-02-19 23:52:17 +000037813# Specify filename containing input files for \$NM.
37814nm_file_list_spec=$lt_nm_file_list_spec
37815
37816# The root where to search for dependent libraries,and in which our libraries should be installed.
37817lt_sysroot=$lt_sysroot
37818
cristy73bd4a52010-10-05 11:24:23 +000037819# The name of the directory that contains temporary libtool files.
37820objdir=$objdir
37821
cristy73bd4a52010-10-05 11:24:23 +000037822# Used to examine libraries when file_magic_cmd begins with "file".
37823MAGIC_CMD=$MAGIC_CMD
37824
37825# Must we lock files when doing compilation?
37826need_locks=$lt_need_locks
37827
cristyda16f162011-02-19 23:52:17 +000037828# Manifest tool.
37829MANIFEST_TOOL=$lt_MANIFEST_TOOL
37830
cristy73bd4a52010-10-05 11:24:23 +000037831# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37832DSYMUTIL=$lt_DSYMUTIL
37833
37834# Tool to change global to local symbols on Mac OS X.
37835NMEDIT=$lt_NMEDIT
37836
37837# Tool to manipulate fat objects and archives on Mac OS X.
37838LIPO=$lt_LIPO
37839
37840# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37841OTOOL=$lt_OTOOL
37842
37843# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37844OTOOL64=$lt_OTOOL64
37845
37846# Old archive suffix (normally "a").
37847libext=$libext
37848
37849# Shared library suffix (normally ".so").
37850shrext_cmds=$lt_shrext_cmds
37851
37852# The commands to extract the exported symbol list from a shared archive.
37853extract_expsyms_cmds=$lt_extract_expsyms_cmds
37854
37855# Variables whose values should be saved in libtool wrapper scripts and
37856# restored at link time.
37857variables_saved_for_relink=$lt_variables_saved_for_relink
37858
37859# Do we need the "lib" prefix for modules?
37860need_lib_prefix=$need_lib_prefix
37861
37862# Do we need a version for libraries?
37863need_version=$need_version
37864
37865# Library versioning type.
37866version_type=$version_type
37867
37868# Shared library runtime path variable.
37869runpath_var=$runpath_var
37870
37871# Shared library path variable.
37872shlibpath_var=$shlibpath_var
37873
37874# Is shlibpath searched before the hard-coded library search path?
37875shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37876
37877# Format of library name prefix.
37878libname_spec=$lt_libname_spec
37879
37880# List of archive names. First name is the real one, the rest are links.
37881# The last name is the one that the linker finds with -lNAME
37882library_names_spec=$lt_library_names_spec
37883
37884# The coded name of the library, if different from the real name.
37885soname_spec=$lt_soname_spec
37886
cristy0c60a692010-11-04 01:09:47 +000037887# Permission mode override for installation of shared libraries.
37888install_override_mode=$lt_install_override_mode
37889
cristy73bd4a52010-10-05 11:24:23 +000037890# Command to use after installation of a shared archive.
37891postinstall_cmds=$lt_postinstall_cmds
37892
37893# Command to use after uninstallation of a shared archive.
37894postuninstall_cmds=$lt_postuninstall_cmds
37895
37896# Commands used to finish a libtool library installation in a directory.
37897finish_cmds=$lt_finish_cmds
37898
37899# As "finish_cmds", except a single script fragment to be evaled but
37900# not shown.
37901finish_eval=$lt_finish_eval
37902
37903# Whether we should hardcode library paths into libraries.
37904hardcode_into_libs=$hardcode_into_libs
37905
37906# Compile-time system search path for libraries.
37907sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37908
37909# Run-time system search path for libraries.
37910sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37911
37912# Whether dlopen is supported.
37913dlopen_support=$enable_dlopen
37914
37915# Whether dlopen of programs is supported.
37916dlopen_self=$enable_dlopen_self
37917
37918# Whether dlopen of statically linked programs is supported.
37919dlopen_self_static=$enable_dlopen_self_static
37920
37921# Commands to strip libraries.
37922old_striplib=$lt_old_striplib
37923striplib=$lt_striplib
37924
37925
37926# The linker used to build libraries.
37927LD=$lt_LD
37928
cristy0c60a692010-11-04 01:09:47 +000037929# How to create reloadable object files.
37930reload_flag=$lt_reload_flag
37931reload_cmds=$lt_reload_cmds
37932
cristy73bd4a52010-10-05 11:24:23 +000037933# Commands used to build an old-style archive.
37934old_archive_cmds=$lt_old_archive_cmds
37935
37936# A language specific compiler.
37937CC=$lt_compiler
37938
37939# Is the compiler the GNU compiler?
37940with_gcc=$GCC
37941
37942# Compiler flag to turn off builtin functions.
37943no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37944
cristy73bd4a52010-10-05 11:24:23 +000037945# Additional compiler flags for building library objects.
37946pic_flag=$lt_lt_prog_compiler_pic
37947
cristyda16f162011-02-19 23:52:17 +000037948# How to pass a linker flag through the compiler.
37949wl=$lt_lt_prog_compiler_wl
37950
cristy73bd4a52010-10-05 11:24:23 +000037951# Compiler flag to prevent dynamic linking.
37952link_static_flag=$lt_lt_prog_compiler_static
37953
37954# Does compiler simultaneously support -c and -o options?
37955compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37956
37957# Whether or not to add -lc for building shared libraries.
37958build_libtool_need_lc=$archive_cmds_need_lc
37959
37960# Whether or not to disallow shared libs when runtime libs are static.
37961allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37962
37963# Compiler flag to allow reflexive dlopens.
37964export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37965
37966# Compiler flag to generate shared objects directly from archives.
37967whole_archive_flag_spec=$lt_whole_archive_flag_spec
37968
37969# Whether the compiler copes with passing no objects directly.
37970compiler_needs_object=$lt_compiler_needs_object
37971
37972# Create an old-style archive from a shared archive.
37973old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37974
37975# Create a temporary old-style archive to link instead of a shared archive.
37976old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37977
37978# Commands used to build a shared archive.
37979archive_cmds=$lt_archive_cmds
37980archive_expsym_cmds=$lt_archive_expsym_cmds
37981
37982# Commands used to build a loadable module if different from building
37983# a shared archive.
37984module_cmds=$lt_module_cmds
37985module_expsym_cmds=$lt_module_expsym_cmds
37986
37987# Whether we are building with GNU ld or not.
37988with_gnu_ld=$lt_with_gnu_ld
37989
37990# Flag that allows shared libraries with undefined symbols to be built.
37991allow_undefined_flag=$lt_allow_undefined_flag
37992
37993# Flag that enforces no undefined symbols.
37994no_undefined_flag=$lt_no_undefined_flag
37995
37996# Flag to hardcode \$libdir into a binary during linking.
37997# This must work even if \$libdir does not exist
37998hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37999
cristy73bd4a52010-10-05 11:24:23 +000038000# Whether we need a single "-rpath" flag with a separated argument.
38001hardcode_libdir_separator=$lt_hardcode_libdir_separator
38002
38003# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38004# DIR into the resulting binary.
38005hardcode_direct=$hardcode_direct
38006
38007# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38008# DIR into the resulting binary and the resulting library dependency is
38009# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38010# library is relocated.
38011hardcode_direct_absolute=$hardcode_direct_absolute
38012
38013# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38014# into the resulting binary.
38015hardcode_minus_L=$hardcode_minus_L
38016
38017# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38018# into the resulting binary.
38019hardcode_shlibpath_var=$hardcode_shlibpath_var
38020
38021# Set to "yes" if building a shared library automatically hardcodes DIR
38022# into the library and all subsequent libraries and executables linked
38023# against it.
38024hardcode_automatic=$hardcode_automatic
38025
38026# Set to yes if linker adds runtime paths of dependent libraries
38027# to runtime path list.
38028inherit_rpath=$inherit_rpath
38029
38030# Whether libtool must link a program against all its dependency libraries.
38031link_all_deplibs=$link_all_deplibs
38032
cristy73bd4a52010-10-05 11:24:23 +000038033# Set to "yes" if exported symbols are required.
38034always_export_symbols=$always_export_symbols
38035
38036# The commands to list exported symbols.
38037export_symbols_cmds=$lt_export_symbols_cmds
38038
38039# Symbols that should not be listed in the preloaded symbols.
38040exclude_expsyms=$lt_exclude_expsyms
38041
38042# Symbols that must always be exported.
38043include_expsyms=$lt_include_expsyms
38044
38045# Commands necessary for linking programs (against libraries) with templates.
38046prelink_cmds=$lt_prelink_cmds
38047
cristyda16f162011-02-19 23:52:17 +000038048# Commands necessary for finishing linking programs.
38049postlink_cmds=$lt_postlink_cmds
38050
cristy73bd4a52010-10-05 11:24:23 +000038051# Specify filename containing input files.
38052file_list_spec=$lt_file_list_spec
38053
38054# How to hardcode a shared library path into an executable.
38055hardcode_action=$hardcode_action
38056
38057# The directories searched by this compiler when creating a shared library.
38058compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38059
38060# Dependencies to place before and after the objects being linked to
38061# create a shared library.
38062predep_objects=$lt_predep_objects
38063postdep_objects=$lt_postdep_objects
38064predeps=$lt_predeps
38065postdeps=$lt_postdeps
38066
38067# The library search path used internally by the compiler when linking
38068# a shared library.
38069compiler_lib_search_path=$lt_compiler_lib_search_path
38070
38071# ### END LIBTOOL CONFIG
38072
38073_LT_EOF
38074
38075 case $host_os in
38076 aix3*)
38077 cat <<\_LT_EOF >> "$cfgfile"
38078# AIX sometimes has problems with the GCC collect2 program. For some
38079# reason, if we set the COLLECT_NAMES environment variable, the problems
38080# vanish in a puff of smoke.
38081if test "X${COLLECT_NAMES+set}" != Xset; then
38082 COLLECT_NAMES=
38083 export COLLECT_NAMES
38084fi
38085_LT_EOF
38086 ;;
38087 esac
38088
38089
38090ltmain="$ac_aux_dir/ltmain.sh"
38091
38092
38093 # We use sed instead of cat because bash on DJGPP gets confused if
38094 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38095 # text mode, it properly converts lines to CR/LF. This bash problem
38096 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038097 sed '$q' "$ltmain" >> "$cfgfile" \
38098 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038099
cristyda16f162011-02-19 23:52:17 +000038100 if test x"$xsi_shell" = xyes; then
38101 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38102func_dirname ()\
38103{\
38104\ case ${1} in\
38105\ */*) func_dirname_result="${1%/*}${2}" ;;\
38106\ * ) func_dirname_result="${3}" ;;\
38107\ esac\
38108} # Extended-shell func_dirname 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=:
cristy73bd4a52010-10-05 11:24:23 +000038112
38113
cristyda16f162011-02-19 23:52:17 +000038114 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38115func_basename ()\
38116{\
38117\ func_basename_result="${1##*/}"\
38118} # Extended-shell func_basename 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=:
cristy73bd4a52010-10-05 11:24:23 +000038122
38123
cristyda16f162011-02-19 23:52:17 +000038124 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38125func_dirname_and_basename ()\
38126{\
38127\ case ${1} in\
38128\ */*) func_dirname_result="${1%/*}${2}" ;;\
38129\ * ) func_dirname_result="${3}" ;;\
38130\ esac\
38131\ func_basename_result="${1##*/}"\
38132} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38133 && mv -f "$cfgfile.tmp" "$cfgfile" \
38134 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38135test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038136
cristyda16f162011-02-19 23:52:17 +000038137
38138 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38139func_stripname ()\
38140{\
38141\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38142\ # positional parameters, so assign one to ordinary parameter first.\
38143\ func_stripname_result=${3}\
38144\ func_stripname_result=${func_stripname_result#"${1}"}\
38145\ func_stripname_result=${func_stripname_result%"${2}"}\
38146} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38147 && mv -f "$cfgfile.tmp" "$cfgfile" \
38148 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38149test 0 -eq $? || _lt_function_replace_fail=:
38150
38151
38152 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38153func_split_long_opt ()\
38154{\
38155\ func_split_long_opt_name=${1%%=*}\
38156\ func_split_long_opt_arg=${1#*=}\
38157} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38158 && mv -f "$cfgfile.tmp" "$cfgfile" \
38159 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38160test 0 -eq $? || _lt_function_replace_fail=:
38161
38162
38163 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38164func_split_short_opt ()\
38165{\
38166\ func_split_short_opt_arg=${1#??}\
38167\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38168} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38169 && mv -f "$cfgfile.tmp" "$cfgfile" \
38170 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38171test 0 -eq $? || _lt_function_replace_fail=:
38172
38173
38174 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38175func_lo2o ()\
38176{\
38177\ case ${1} in\
38178\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38179\ *) func_lo2o_result=${1} ;;\
38180\ esac\
38181} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38182 && mv -f "$cfgfile.tmp" "$cfgfile" \
38183 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38184test 0 -eq $? || _lt_function_replace_fail=:
38185
38186
38187 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38188func_xform ()\
38189{\
38190 func_xform_result=${1%.*}.lo\
38191} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38192 && mv -f "$cfgfile.tmp" "$cfgfile" \
38193 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38194test 0 -eq $? || _lt_function_replace_fail=:
38195
38196
38197 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38198func_arith ()\
38199{\
38200 func_arith_result=$(( $* ))\
38201} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38202 && mv -f "$cfgfile.tmp" "$cfgfile" \
38203 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38204test 0 -eq $? || _lt_function_replace_fail=:
38205
38206
38207 sed -e '/^func_len ()$/,/^} # func_len /c\
38208func_len ()\
38209{\
38210 func_len_result=${#1}\
38211} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38212 && mv -f "$cfgfile.tmp" "$cfgfile" \
38213 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38214test 0 -eq $? || _lt_function_replace_fail=:
38215
38216fi
38217
38218if test x"$lt_shell_append" = xyes; then
38219 sed -e '/^func_append ()$/,/^} # func_append /c\
38220func_append ()\
38221{\
38222 eval "${1}+=\\${2}"\
38223} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38224 && mv -f "$cfgfile.tmp" "$cfgfile" \
38225 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38226test 0 -eq $? || _lt_function_replace_fail=:
38227
38228
38229 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38230func_append_quoted ()\
38231{\
38232\ func_quote_for_eval "${2}"\
38233\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38234} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38235 && mv -f "$cfgfile.tmp" "$cfgfile" \
38236 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38237test 0 -eq $? || _lt_function_replace_fail=:
38238
38239
38240 # Save a `func_append' function call where possible by direct use of '+='
38241 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38242 && mv -f "$cfgfile.tmp" "$cfgfile" \
38243 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38244 test 0 -eq $? || _lt_function_replace_fail=:
38245else
38246 # Save a `func_append' function call even when '+=' is not available
38247 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38248 && mv -f "$cfgfile.tmp" "$cfgfile" \
38249 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38250 test 0 -eq $? || _lt_function_replace_fail=:
38251fi
38252
38253if test x"$_lt_function_replace_fail" = x":"; then
38254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38255$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38256fi
38257
38258
38259 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038260 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38261 chmod +x "$ofile"
38262
38263
38264 cat <<_LT_EOF >> "$ofile"
38265
38266# ### BEGIN LIBTOOL TAG CONFIG: CXX
38267
38268# The linker used to build libraries.
38269LD=$lt_LD_CXX
38270
cristy0c60a692010-11-04 01:09:47 +000038271# How to create reloadable object files.
38272reload_flag=$lt_reload_flag_CXX
38273reload_cmds=$lt_reload_cmds_CXX
38274
cristy73bd4a52010-10-05 11:24:23 +000038275# Commands used to build an old-style archive.
38276old_archive_cmds=$lt_old_archive_cmds_CXX
38277
38278# A language specific compiler.
38279CC=$lt_compiler_CXX
38280
38281# Is the compiler the GNU compiler?
38282with_gcc=$GCC_CXX
38283
38284# Compiler flag to turn off builtin functions.
38285no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38286
cristy73bd4a52010-10-05 11:24:23 +000038287# Additional compiler flags for building library objects.
38288pic_flag=$lt_lt_prog_compiler_pic_CXX
38289
cristyda16f162011-02-19 23:52:17 +000038290# How to pass a linker flag through the compiler.
38291wl=$lt_lt_prog_compiler_wl_CXX
38292
cristy73bd4a52010-10-05 11:24:23 +000038293# Compiler flag to prevent dynamic linking.
38294link_static_flag=$lt_lt_prog_compiler_static_CXX
38295
38296# Does compiler simultaneously support -c and -o options?
38297compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38298
38299# Whether or not to add -lc for building shared libraries.
38300build_libtool_need_lc=$archive_cmds_need_lc_CXX
38301
38302# Whether or not to disallow shared libs when runtime libs are static.
38303allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38304
38305# Compiler flag to allow reflexive dlopens.
38306export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38307
38308# Compiler flag to generate shared objects directly from archives.
38309whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38310
38311# Whether the compiler copes with passing no objects directly.
38312compiler_needs_object=$lt_compiler_needs_object_CXX
38313
38314# Create an old-style archive from a shared archive.
38315old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38316
38317# Create a temporary old-style archive to link instead of a shared archive.
38318old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38319
38320# Commands used to build a shared archive.
38321archive_cmds=$lt_archive_cmds_CXX
38322archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38323
38324# Commands used to build a loadable module if different from building
38325# a shared archive.
38326module_cmds=$lt_module_cmds_CXX
38327module_expsym_cmds=$lt_module_expsym_cmds_CXX
38328
38329# Whether we are building with GNU ld or not.
38330with_gnu_ld=$lt_with_gnu_ld_CXX
38331
38332# Flag that allows shared libraries with undefined symbols to be built.
38333allow_undefined_flag=$lt_allow_undefined_flag_CXX
38334
38335# Flag that enforces no undefined symbols.
38336no_undefined_flag=$lt_no_undefined_flag_CXX
38337
38338# Flag to hardcode \$libdir into a binary during linking.
38339# This must work even if \$libdir does not exist
38340hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38341
cristy73bd4a52010-10-05 11:24:23 +000038342# Whether we need a single "-rpath" flag with a separated argument.
38343hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38344
38345# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38346# DIR into the resulting binary.
38347hardcode_direct=$hardcode_direct_CXX
38348
38349# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38350# DIR into the resulting binary and the resulting library dependency is
38351# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38352# library is relocated.
38353hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38354
38355# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38356# into the resulting binary.
38357hardcode_minus_L=$hardcode_minus_L_CXX
38358
38359# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38360# into the resulting binary.
38361hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38362
38363# Set to "yes" if building a shared library automatically hardcodes DIR
38364# into the library and all subsequent libraries and executables linked
38365# against it.
38366hardcode_automatic=$hardcode_automatic_CXX
38367
38368# Set to yes if linker adds runtime paths of dependent libraries
38369# to runtime path list.
38370inherit_rpath=$inherit_rpath_CXX
38371
38372# Whether libtool must link a program against all its dependency libraries.
38373link_all_deplibs=$link_all_deplibs_CXX
38374
cristy73bd4a52010-10-05 11:24:23 +000038375# Set to "yes" if exported symbols are required.
38376always_export_symbols=$always_export_symbols_CXX
38377
38378# The commands to list exported symbols.
38379export_symbols_cmds=$lt_export_symbols_cmds_CXX
38380
38381# Symbols that should not be listed in the preloaded symbols.
38382exclude_expsyms=$lt_exclude_expsyms_CXX
38383
38384# Symbols that must always be exported.
38385include_expsyms=$lt_include_expsyms_CXX
38386
38387# Commands necessary for linking programs (against libraries) with templates.
38388prelink_cmds=$lt_prelink_cmds_CXX
38389
cristyda16f162011-02-19 23:52:17 +000038390# Commands necessary for finishing linking programs.
38391postlink_cmds=$lt_postlink_cmds_CXX
38392
cristy73bd4a52010-10-05 11:24:23 +000038393# Specify filename containing input files.
38394file_list_spec=$lt_file_list_spec_CXX
38395
38396# How to hardcode a shared library path into an executable.
38397hardcode_action=$hardcode_action_CXX
38398
38399# The directories searched by this compiler when creating a shared library.
38400compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38401
38402# Dependencies to place before and after the objects being linked to
38403# create a shared library.
38404predep_objects=$lt_predep_objects_CXX
38405postdep_objects=$lt_postdep_objects_CXX
38406predeps=$lt_predeps_CXX
38407postdeps=$lt_postdeps_CXX
38408
38409# The library search path used internally by the compiler when linking
38410# a shared library.
38411compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38412
38413# ### END LIBTOOL TAG CONFIG: CXX
38414_LT_EOF
38415
38416 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038417 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038418 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038419 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038420 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38421 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38422
38423 esac
38424done # for ac_tag
38425
38426
cristy8b350f62009-11-15 23:12:43 +000038427as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038428_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038429ac_clean_files=$ac_clean_files_save
38430
38431test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038432 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038433
38434
38435# configure is writing to config.log, and then calls config.status.
38436# config.status does its own redirection, appending to config.log.
38437# Unfortunately, on DOS this fails, as config.log is still kept open
38438# by configure, so config.status won't be able to write to it; its
38439# output is simply discarded. So we exec the FD to /dev/null,
38440# effectively closing config.log, so it can be properly (re)opened and
38441# appended to by config.status. When coming back to configure, we
38442# need to make the FD available again.
38443if test "$no_create" != yes; then
38444 ac_cs_success=:
38445 ac_config_status_args=
38446 test "$silent" = yes &&
38447 ac_config_status_args="$ac_config_status_args --quiet"
38448 exec 5>/dev/null
38449 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38450 exec 5>>config.log
38451 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38452 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038453 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038454fi
38455if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038457$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38458fi
38459
38460
38461rm -f magick-version
38462
cristy430a7312010-01-21 20:44:04 +000038463result_dejavu_font_dir='none'
38464if test "${dejavu_font_dir}x" != 'x'; then
38465 result_dejavu_font_dir=$dejavu_font_dir
38466fi
38467
cristy3ed852e2009-09-05 21:47:34 +000038468result_ghostscript_font_dir='none'
38469if test "${ghostscript_font_dir}x" != 'x'; then
38470 result_ghostscript_font_dir=$ghostscript_font_dir
38471fi
38472
38473result_windows_font_dir='none'
38474if test "${windows_font_dir}x" != 'x'; then
38475 result_windows_font_dir=${windows_font_dir}
38476fi
38477
cristyad38abe2012-12-23 23:03:21 +000038478{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000038479ImageMagick is configured as follows. Please verify that this configuration
38480matches your expectations.
38481
38482Host system type: $host
38483Build system type: $build
38484
38485 Option Value
38486-------------------------------------------------------------------------------
38487Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38488Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038489Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038490GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38491Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38492High Dynamic Range Imagery
38493 --enable-hdri=$enable_hdri $enable_hdri
38494
38495Delegate Configuration:
38496BZLIB --with-bzlib=$with_bzlib $have_bzlib
38497Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038498Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038499DJVU --with-djvu=$with_djvu $have_djvu
38500DPS --with-dps=$with_dps $have_dps
38501FFTW --with-fftw=$with_fftw $have_fftw
38502FlashPIX --with-fpx=$with_fpx $have_fpx
38503FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38504FreeType --with-freetype=$with_freetype $have_freetype
38505GhostPCL None $PCLDelegate ($PCLVersion)
38506GhostXPS None $XPSDelegate ($XPSVersion)
38507Ghostscript None $PSDelegate ($GSVersion)
38508Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38509Ghostscript lib --with-gslib=$with_gslib $have_gslib
38510Graphviz --with-gvc=$with_gvc $have_gvc
38511JBIG --with-jbig=$with_jbig $have_jbig
38512JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38513JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038514LCMS v1 --with-lcms=$with_lcms $have_lcms
38515LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038516LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038517LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038518LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038519Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38520OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038521PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038522PERL --with-perl=$with_perl $have_perl
38523PNG --with-png=$with_png $have_png
38524RSVG --with-rsvg=$with_rsvg $have_rsvg
38525TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038526WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038527Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038528WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038529X11 --with-x=$with_x $have_x
38530XML --with-xml=$with_xml $have_xml
38531ZLIB --with-zlib=$with_zlib $have_zlib
38532
38533X11 Configuration:
38534 X_CFLAGS = $X_CFLAGS
38535 X_PRE_LIBS = $X_PRE_LIBS
38536 X_LIBS = $X_LIBS
38537 X_EXTRA_LIBS = $X_EXTRA_LIBS
38538
38539Options used to compile and link:
38540 PREFIX = $PREFIX_DIR
38541 EXEC-PREFIX = $EXEC_PREFIX_DIR
38542 VERSION = $PACKAGE_VERSION
38543 CC = $CC
38544 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038545 CPPFLAGS = $MAGICK_CPPFLAGS
38546 PCFLAGS = $MAGICK_PCFLAGS
38547 DEFS = $DEFS
38548 LDFLAGS = $LDFLAGS
38549 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38550 LIBS = $MAGICK_LIBS
38551 CXX = $CXX
38552 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038553 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038554 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000038555" >&5
cristyad38abe2012-12-23 23:03:21 +000038556$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000038557ImageMagick is configured as follows. Please verify that this configuration
38558matches your expectations.
38559
38560Host system type: $host
38561Build system type: $build
38562
38563 Option Value
38564-------------------------------------------------------------------------------
38565Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38566Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038567Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038568GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38569Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38570High Dynamic Range Imagery
38571 --enable-hdri=$enable_hdri $enable_hdri
38572
38573Delegate Configuration:
38574BZLIB --with-bzlib=$with_bzlib $have_bzlib
38575Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038576Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038577DJVU --with-djvu=$with_djvu $have_djvu
38578DPS --with-dps=$with_dps $have_dps
38579FFTW --with-fftw=$with_fftw $have_fftw
38580FlashPIX --with-fpx=$with_fpx $have_fpx
38581FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38582FreeType --with-freetype=$with_freetype $have_freetype
38583GhostPCL None $PCLDelegate ($PCLVersion)
38584GhostXPS None $XPSDelegate ($XPSVersion)
38585Ghostscript None $PSDelegate ($GSVersion)
38586Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38587Ghostscript lib --with-gslib=$with_gslib $have_gslib
38588Graphviz --with-gvc=$with_gvc $have_gvc
38589JBIG --with-jbig=$with_jbig $have_jbig
38590JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38591JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038592LCMS v1 --with-lcms=$with_lcms $have_lcms
38593LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038594LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038595LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038596LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038597Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38598OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038599PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038600PERL --with-perl=$with_perl $have_perl
38601PNG --with-png=$with_png $have_png
38602RSVG --with-rsvg=$with_rsvg $have_rsvg
38603TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038604WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038605Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000038606WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038607X11 --with-x=$with_x $have_x
38608XML --with-xml=$with_xml $have_xml
38609ZLIB --with-zlib=$with_zlib $have_zlib
38610
38611X11 Configuration:
38612 X_CFLAGS = $X_CFLAGS
38613 X_PRE_LIBS = $X_PRE_LIBS
38614 X_LIBS = $X_LIBS
38615 X_EXTRA_LIBS = $X_EXTRA_LIBS
38616
38617Options used to compile and link:
38618 PREFIX = $PREFIX_DIR
38619 EXEC-PREFIX = $EXEC_PREFIX_DIR
38620 VERSION = $PACKAGE_VERSION
38621 CC = $CC
38622 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038623 CPPFLAGS = $MAGICK_CPPFLAGS
38624 PCFLAGS = $MAGICK_PCFLAGS
38625 DEFS = $DEFS
38626 LDFLAGS = $LDFLAGS
38627 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38628 LIBS = $MAGICK_LIBS
38629 CXX = $CXX
38630 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038631 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000038632 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000038633" >&6; }