blob: 2de3c8cace0fd3b2369bece040757ada41d3d93d [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
cristy86e86092013-08-04 17:43:57 +0000695WebPEncodeDelegate
696WebPDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000697UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000699SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000701RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000702RMDelegate
703RLEEncodeDelegate
704PSDelegate
705POVDelegate
706PGPDecodeDelegate
707PCLDelegate
708MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000709MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000710MPEGEncodeDelegate
711MPEGDecodeDelegate
712MANDelegate
713LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000714LPRDelegate
715LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000716JXREncodeDelegate
717JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000718ILBMEncodeDelegate
719ILBMDecodeDelegate
720HTMLDecodeDelegate
721HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000722GnuplotDecodeDelegate
723MogrifyDelegate
724DisplayDelegate
725ConvertDelegate
cristy3ed852e2009-09-05 21:47:34 +0000726EditorDelegate
727EchoDelegate
728DVIDecodeDelegate
729GVCDecodeDelegate
730DNGDecodeDelegate
731CatDelegate
cristy3ed852e2009-09-05 21:47:34 +0000732BrowseDelegate
733BZIPDelegate
734BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000735AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000736SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000737SHAREARCH_RELATIVE_PATH
738SHAREARCH_DIRNAME
739SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000740SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000741CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000742DOCUMENTATION_PATH
743FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000744FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000745CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000746CODER_DIRNAME
747MODULES_PATH
748MODULES_RELATIVE_PATH
749MODULES_DIRNAME
750MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000751LIB_BIN_DIR_PATH
752LIB_BIN_DIR_RELATIVE_PATH
753LIB_BIN_DIR
754LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000755LIBRARY_PATH
756EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000757INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000758INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000759PERLMAINCC
760XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000761XML_DELEGATE_FALSE
762XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000763xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000764WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000765WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000766WMF_DELEGATE_FALSE
767WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000768WEBP_LIBS
769WEBP_DELEGATE_FALSE
770WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000771TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772TIFF_DELEGATE_FALSE
773TIFF_DELEGATE_TRUE
774CAIRO_DELEGATE_FALSE
775CAIRO_DELEGATE_TRUE
776RSVG_DELEGATE_FALSE
777RSVG_DELEGATE_TRUE
778CAIRO_SVG_LIBS
779CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000780RSVG_LIBS
781RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000782PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000783PNG_DELEGATE_FALSE
784PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000785PANGOCAIRO_DELEGATE_FALSE
786PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000787PANGO_DELEGATE_FALSE
788PANGO_DELEGATE_TRUE
789PANGO_LIBS
790PANGO_CFLAGS
cristy3fe09452014-01-01 12:29:14 +0000791OPENJPEG_LIBS
792OPENJPEG_DELEGATE_FALSE
793OPENJPEG_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000794OPENEXR_DELEGATE_FALSE
795OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000796OPENEXR_LIBS
797OPENEXR_CFLAGS
cristy854c9cf2013-08-10 21:03:06 +0000798MUPDF_LIBS
799MUPDF_DELEGATE_FALSE
800MUPDF_DELEGATE_TRUE
cristyfbb0ef02010-12-19 02:32:11 +0000801LZMA_DELEGATE_FALSE
802LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000803LZMA_LIBS
804LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000805LQR_DELEGATE_FALSE
806LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807LQR_LIBS
808LQR_CFLAGS
809LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000810LCMS_DELEGATE_FALSE
811LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000812JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813JP2_DELEGATE_FALSE
814JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816JPEG_DELEGATE_FALSE
817JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000819JBIG_DELEGATE_FALSE
820JBIG_DELEGATE_TRUE
821GVC_DELEGATE_FALSE
822GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000823GVC_LIBS
824GVC_CFLAGS
825GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000826GS_DELEGATE_FALSE
827GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000828FREETYPE_DELEGATE_FALSE
829FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000830FREETYPE_LIBS
831FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000832FONTCONFIG_DELEGATE_FALSE
833FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000834FONTCONFIG_LIBS
835FONTCONFIG_CFLAGS
836FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000837FPX_DELEGATE_FALSE
838FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000840FFTW_DELEGATE_FALSE
841FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000842DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000843DJVU_DELEGATE_FALSE
844DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000845DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000846DPS_DELEGATE_FALSE
847DPS_DELEGATE_TRUE
848AUTOTRACE_DELEGATE_FALSE
849AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000850AUTOTRACE_LIBS
851AUTOTRACE_CFLAGS
852LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000853WITH_LTDL_FALSE
854WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000855ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000856ZLIB_DELEGATE_FALSE
857ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000858XEXT_LIBS
859X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000860X11_DELEGATE_FALSE
861X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000862X_EXTRA_LIBS
863X_LIBS
864X_PRE_LIBS
865X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000866XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000867BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000868BZLIB_DELEGATE_FALSE
869BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000870CCMALLOCDelegate
871UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000872HasUMEM_FALSE
873HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000874GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000875WITH_MAGICK_PLUS_PLUS_FALSE
876WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000877OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000878MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000879POW_LIB
880LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000881UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000882UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000883UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000884UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000885UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000886UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000887INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000888INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000889UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000890UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000891INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000892INT32_T
893UINT16_T
894INT16_T
895UINT8_T
896INT8_T
897LIBRARY_EXTRA_CPPFLAGS
898MODULE_EXTRA_CPPFLAGS
899LIBSTDCLDFLAGS
900PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000901MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000902MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000903QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000904LEGACY_SUPPORT_FALSE
905LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000906MAINT
907MAINTAINER_MODE_FALSE
908MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000909MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000910WITH_MODULES_FALSE
911WITH_MODULES_TRUE
912WITH_SHARED_LIBS_FALSE
913WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000914LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000915CXXCPP
916OTOOL64
917OTOOL
918LIPO
919NMEDIT
920DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000921MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000922RANLIB
cristyda16f162011-02-19 23:52:17 +0000923ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000924AR
925NM
926ac_ct_DUMPBIN
927DUMPBIN
928LIBTOOL
929OBJDUMP
930DLLTOOL
931AS
cristy3ed852e2009-09-05 21:47:34 +0000932LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000933CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000934CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000935OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000936THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000937PTHREAD_CFLAGS
938PTHREAD_LIBS
939PTHREAD_CC
940ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000941pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000942SHAREARCH_DIR
943INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000944WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000945USING_CL_FALSE
946USING_CL_TRUE
947CYGWIN_BUILD_FALSE
948CYGWIN_BUILD_TRUE
949WIN32_NATIVE_BUILD_FALSE
950WIN32_NATIVE_BUILD_TRUE
951WINGDI32_DELEGATE_FALSE
952WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000953GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000954HAVE_LD_VERSION_SCRIPT_FALSE
955HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000956PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000957PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000958LN_S
cristy3ed852e2009-09-05 21:47:34 +0000959LD
cristy73bd4a52010-10-05 11:24:23 +0000960FGREP
961SED
962am__fastdepCXX_FALSE
963am__fastdepCXX_TRUE
964CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000965ac_ct_CXX
966CXXFLAGS
967CXX
cristya0b81c32010-01-22 02:54:33 +0000968EGREP
969GREP
970CPP
cristy73bd4a52010-10-05 11:24:23 +0000971am__fastdepCC_FALSE
972am__fastdepCC_TRUE
973CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000974am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000975AMDEPBACKSLASH
976AMDEP_FALSE
977AMDEP_TRUE
978am__quote
979am__include
980DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000981OBJEXT
982EXEEXT
983ac_ct_CC
984CPPFLAGS
985LDFLAGS
986CFLAGS
987CC
988DIRSEP
989MAGICK_FILTER_MODULE_PATH
990MAGICK_CONFIGURE_BUILD_PATH
991MAGICK_CONFIGURE_SRC_PATH
992MAGICK_CODER_MODULE_PATH
993MAN_DIR
994INFO_DIR
995PERSISTINCLUDE_DIR
996INCLUDE_DIR
997LIB_DIR
998LOCALSTATE_DIR
999SHAREDSTATE_DIR
1000SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001001DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001002DATA_DIR
1003LIBEXEC_DIR
1004SBIN_DIR
1005BIN_DIR
1006EXEC_PREFIX_DIR
1007PREFIX_DIR
1008CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001009MAGICKPP_LIB_VERSION_TEXT
1010MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001011MAGICK_LIB_VERSION_NUMBER
1012MAGICK_LIB_VERSION_TEXT
1013MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001014AM_BACKSLASH
1015AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001016AM_DEFAULT_V
1017AM_V
cristy73bd4a52010-10-05 11:24:23 +00001018am__untar
1019am__tar
1020AMTAR
1021am__leading_dot
1022SET_MAKE
1023AWK
1024mkdir_p
1025MKDIR_P
1026INSTALL_STRIP_PROGRAM
1027STRIP
1028install_sh
1029MAKEINFO
1030AUTOHEADER
1031AUTOMAKE
1032AUTOCONF
1033ACLOCAL
1034VERSION
1035PACKAGE
1036CYGPATH_W
1037am__isrc
1038INSTALL_DATA
1039INSTALL_SCRIPT
1040INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001041PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001042PACKAGE_RELEASE_DATE
1043PACKAGE_LIB_VERSION_NUMBER
1044PACKAGE_LIB_VERSION
1045PACKAGE_CHANGE_DATE
1046PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001047PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001048MAGICKPP_LIBRARY_VERSION_INFO
1049MAGICKPP_LIBRARY_CURRENT_MIN
1050MAGICKPP_LIBRARY_AGE
1051MAGICKPP_LIBRARY_REVISION
1052MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001053MAGICK_LIBRARY_VERSION_INFO
1054MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001055MAGICK_LIBRARY_AGE
1056MAGICK_LIBRARY_REVISION
1057MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001058MAGICK_SVN_REVISION
1059MAGICK_VERSION
1060MAGICK_PATCHLEVEL_VERSION
1061MAGICK_MICRO_VERSION
1062MAGICK_MINOR_VERSION
1063MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001064MAGICK_TARGET_OS
1065MAGICK_TARGET_VENDOR
1066MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001067target_os
1068target_vendor
1069target_cpu
1070target
1071host_os
1072host_vendor
1073host_cpu
1074host
1075build_os
1076build_vendor
1077build_cpu
1078build
1079CONFIGURE_ARGS
1080DISTCHECK_CONFIG_FLAGS
1081target_alias
1082host_alias
1083build_alias
1084LIBS
1085ECHO_T
1086ECHO_N
1087ECHO_C
1088DEFS
1089mandir
1090localedir
1091libdir
1092psdir
1093pdfdir
1094dvidir
1095htmldir
1096infodir
1097docdir
1098oldincludedir
1099includedir
1100localstatedir
1101sharedstatedir
1102sysconfdir
1103datadir
1104datarootdir
1105libexecdir
1106sbindir
1107bindir
1108program_transform_name
1109prefix
1110exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001111PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001112PACKAGE_BUGREPORT
1113PACKAGE_STRING
1114PACKAGE_VERSION
1115PACKAGE_TARNAME
1116PACKAGE_NAME
1117PATH_SEPARATOR
1118SHELL'
1119ac_subst_files=''
1120ac_user_opts='
1121enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001122enable_silent_rules
1123enable_dependency_tracking
1124with_gnu_ld
1125with_dmalloc
cristya0459972013-11-03 18:09:35 +00001126with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001127enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001128enable_bounds_checking
1129enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001130with_includearch_dir
1131with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001132with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001133with_threads
1134enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001135enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001136enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001137enable_shared
1138enable_static
1139with_pic
1140enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001141with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001142enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001143with_modules
1144enable_delegate_build
1145enable_deprecated
1146enable_installed
1147enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001148enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001149enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001150enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001151enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001152enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001153enable_ccmalloc
1154enable_efence
1155enable_prof
1156enable_gprof
1157enable_gcov
1158with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001159enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001160with_quantum_depth
1161with_cache
1162with_frozenpaths
1163with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001164with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001165with_perl
1166with_perl_options
1167with_umem
1168with_libstdc
1169with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001170with_x
cristy3ed852e2009-09-05 21:47:34 +00001171with_zlib
1172with_autotrace
1173with_dps
1174with_djvu
cristy430a7312010-01-21 20:44:04 +00001175with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001176with_fftw
1177with_fpx
1178with_fontconfig
1179with_freetype
1180with_gslib
1181with_fontpath
1182with_gs_font_dir
1183with_gvc
1184with_jbig
1185with_jpeg
1186with_jp2
1187with_lcms
cristy71203402010-06-18 13:12:03 +00001188with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001189with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001190with_lzma
cristy854c9cf2013-08-10 21:03:06 +00001191with_mupdf
cristy3ed852e2009-09-05 21:47:34 +00001192with_openexr
cristy3fe09452014-01-01 12:29:14 +00001193with_openjpeg
cristy41cbe8a2011-10-27 01:35:18 +00001194with_pango
cristy3ed852e2009-09-05 21:47:34 +00001195with_png
1196with_rsvg
1197with_tiff
cristyb1860752011-03-14 00:27:46 +00001198with_webp
cristy3ed852e2009-09-05 21:47:34 +00001199with_windows_font_dir
1200with_wmf
1201with_xml
1202'
1203 ac_precious_vars='build_alias
1204host_alias
1205target_alias
1206CC
1207CFLAGS
1208LDFLAGS
1209LIBS
1210CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001211CPP
cristy3ed852e2009-09-05 21:47:34 +00001212CXX
1213CXXFLAGS
1214CCC
cristy73bd4a52010-10-05 11:24:23 +00001215PKG_CONFIG
1216CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001217XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001218AUTOTRACE_CFLAGS
1219AUTOTRACE_LIBS
1220FONTCONFIG_CFLAGS
1221FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001222FREETYPE_CFLAGS
1223FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001224GVC_CFLAGS
1225GVC_LIBS
1226LQR_CFLAGS
1227LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001228LZMA_CFLAGS
1229LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001230OPENEXR_CFLAGS
1231OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001232PANGO_CFLAGS
1233PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001234RSVG_CFLAGS
1235RSVG_LIBS
1236CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001237CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001238
1239
1240# Initialize some variables set by options.
1241ac_init_help=
1242ac_init_version=false
1243ac_unrecognized_opts=
1244ac_unrecognized_sep=
1245# The variables have the same names as the options, with
1246# dashes changed to underlines.
1247cache_file=/dev/null
1248exec_prefix=NONE
1249no_create=
1250no_recursion=
1251prefix=NONE
1252program_prefix=NONE
1253program_suffix=NONE
1254program_transform_name=s,x,x,
1255silent=
1256site=
1257srcdir=
1258verbose=
1259x_includes=NONE
1260x_libraries=NONE
1261
1262# Installation directory options.
1263# These are left unexpanded so users can "make install exec_prefix=/foo"
1264# and all the variables that are supposed to be based on exec_prefix
1265# by default will actually change.
1266# Use braces instead of parens because sh, perl, etc. also accept them.
1267# (The list follows the same order as the GNU Coding Standards.)
1268bindir='${exec_prefix}/bin'
1269sbindir='${exec_prefix}/sbin'
1270libexecdir='${exec_prefix}/libexec'
1271datarootdir='${prefix}/share'
1272datadir='${datarootdir}'
1273sysconfdir='${prefix}/etc'
1274sharedstatedir='${prefix}/com'
1275localstatedir='${prefix}/var'
1276includedir='${prefix}/include'
1277oldincludedir='/usr/include'
1278docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1279infodir='${datarootdir}/info'
1280htmldir='${docdir}'
1281dvidir='${docdir}'
1282pdfdir='${docdir}'
1283psdir='${docdir}'
1284libdir='${exec_prefix}/lib'
1285localedir='${datarootdir}/locale'
1286mandir='${datarootdir}/man'
1287
1288ac_prev=
1289ac_dashdash=
1290for ac_option
1291do
1292 # If the previous option needs an argument, assign it.
1293 if test -n "$ac_prev"; then
1294 eval $ac_prev=\$ac_option
1295 ac_prev=
1296 continue
1297 fi
1298
1299 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001300 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1301 *=) ac_optarg= ;;
1302 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001303 esac
1304
1305 # Accept the important Cygnus configure options, so we can diagnose typos.
1306
1307 case $ac_dashdash$ac_option in
1308 --)
1309 ac_dashdash=yes ;;
1310
1311 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1312 ac_prev=bindir ;;
1313 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1314 bindir=$ac_optarg ;;
1315
1316 -build | --build | --buil | --bui | --bu)
1317 ac_prev=build_alias ;;
1318 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1319 build_alias=$ac_optarg ;;
1320
1321 -cache-file | --cache-file | --cache-fil | --cache-fi \
1322 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1323 ac_prev=cache_file ;;
1324 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1325 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1326 cache_file=$ac_optarg ;;
1327
1328 --config-cache | -C)
1329 cache_file=config.cache ;;
1330
1331 -datadir | --datadir | --datadi | --datad)
1332 ac_prev=datadir ;;
1333 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1334 datadir=$ac_optarg ;;
1335
1336 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1337 | --dataroo | --dataro | --datar)
1338 ac_prev=datarootdir ;;
1339 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1340 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1341 datarootdir=$ac_optarg ;;
1342
1343 -disable-* | --disable-*)
1344 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1345 # Reject names that are not valid shell variable names.
1346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001347 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001348 ac_useropt_orig=$ac_useropt
1349 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350 case $ac_user_opts in
1351 *"
1352"enable_$ac_useropt"
1353"*) ;;
1354 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1355 ac_unrecognized_sep=', ';;
1356 esac
1357 eval enable_$ac_useropt=no ;;
1358
1359 -docdir | --docdir | --docdi | --doc | --do)
1360 ac_prev=docdir ;;
1361 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1362 docdir=$ac_optarg ;;
1363
1364 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1365 ac_prev=dvidir ;;
1366 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1367 dvidir=$ac_optarg ;;
1368
1369 -enable-* | --enable-*)
1370 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1371 # Reject names that are not valid shell variable names.
1372 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001373 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001374 ac_useropt_orig=$ac_useropt
1375 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1376 case $ac_user_opts in
1377 *"
1378"enable_$ac_useropt"
1379"*) ;;
1380 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1381 ac_unrecognized_sep=', ';;
1382 esac
1383 eval enable_$ac_useropt=\$ac_optarg ;;
1384
1385 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1386 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1387 | --exec | --exe | --ex)
1388 ac_prev=exec_prefix ;;
1389 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1390 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1391 | --exec=* | --exe=* | --ex=*)
1392 exec_prefix=$ac_optarg ;;
1393
1394 -gas | --gas | --ga | --g)
1395 # Obsolete; use --with-gas.
1396 with_gas=yes ;;
1397
1398 -help | --help | --hel | --he | -h)
1399 ac_init_help=long ;;
1400 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1401 ac_init_help=recursive ;;
1402 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1403 ac_init_help=short ;;
1404
1405 -host | --host | --hos | --ho)
1406 ac_prev=host_alias ;;
1407 -host=* | --host=* | --hos=* | --ho=*)
1408 host_alias=$ac_optarg ;;
1409
1410 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1411 ac_prev=htmldir ;;
1412 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1413 | --ht=*)
1414 htmldir=$ac_optarg ;;
1415
1416 -includedir | --includedir | --includedi | --included | --include \
1417 | --includ | --inclu | --incl | --inc)
1418 ac_prev=includedir ;;
1419 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1420 | --includ=* | --inclu=* | --incl=* | --inc=*)
1421 includedir=$ac_optarg ;;
1422
1423 -infodir | --infodir | --infodi | --infod | --info | --inf)
1424 ac_prev=infodir ;;
1425 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1426 infodir=$ac_optarg ;;
1427
1428 -libdir | --libdir | --libdi | --libd)
1429 ac_prev=libdir ;;
1430 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1431 libdir=$ac_optarg ;;
1432
1433 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1434 | --libexe | --libex | --libe)
1435 ac_prev=libexecdir ;;
1436 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1437 | --libexe=* | --libex=* | --libe=*)
1438 libexecdir=$ac_optarg ;;
1439
1440 -localedir | --localedir | --localedi | --localed | --locale)
1441 ac_prev=localedir ;;
1442 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1443 localedir=$ac_optarg ;;
1444
1445 -localstatedir | --localstatedir | --localstatedi | --localstated \
1446 | --localstate | --localstat | --localsta | --localst | --locals)
1447 ac_prev=localstatedir ;;
1448 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1449 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1450 localstatedir=$ac_optarg ;;
1451
1452 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1453 ac_prev=mandir ;;
1454 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1455 mandir=$ac_optarg ;;
1456
1457 -nfp | --nfp | --nf)
1458 # Obsolete; use --without-fp.
1459 with_fp=no ;;
1460
1461 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1462 | --no-cr | --no-c | -n)
1463 no_create=yes ;;
1464
1465 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1466 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1467 no_recursion=yes ;;
1468
1469 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1470 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1471 | --oldin | --oldi | --old | --ol | --o)
1472 ac_prev=oldincludedir ;;
1473 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1474 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1475 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1476 oldincludedir=$ac_optarg ;;
1477
1478 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1479 ac_prev=prefix ;;
1480 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1481 prefix=$ac_optarg ;;
1482
1483 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1484 | --program-pre | --program-pr | --program-p)
1485 ac_prev=program_prefix ;;
1486 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1487 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1488 program_prefix=$ac_optarg ;;
1489
1490 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1491 | --program-suf | --program-su | --program-s)
1492 ac_prev=program_suffix ;;
1493 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1494 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1495 program_suffix=$ac_optarg ;;
1496
1497 -program-transform-name | --program-transform-name \
1498 | --program-transform-nam | --program-transform-na \
1499 | --program-transform-n | --program-transform- \
1500 | --program-transform | --program-transfor \
1501 | --program-transfo | --program-transf \
1502 | --program-trans | --program-tran \
1503 | --progr-tra | --program-tr | --program-t)
1504 ac_prev=program_transform_name ;;
1505 -program-transform-name=* | --program-transform-name=* \
1506 | --program-transform-nam=* | --program-transform-na=* \
1507 | --program-transform-n=* | --program-transform-=* \
1508 | --program-transform=* | --program-transfor=* \
1509 | --program-transfo=* | --program-transf=* \
1510 | --program-trans=* | --program-tran=* \
1511 | --progr-tra=* | --program-tr=* | --program-t=*)
1512 program_transform_name=$ac_optarg ;;
1513
1514 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1515 ac_prev=pdfdir ;;
1516 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1517 pdfdir=$ac_optarg ;;
1518
1519 -psdir | --psdir | --psdi | --psd | --ps)
1520 ac_prev=psdir ;;
1521 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1522 psdir=$ac_optarg ;;
1523
1524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1525 | -silent | --silent | --silen | --sile | --sil)
1526 silent=yes ;;
1527
1528 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1529 ac_prev=sbindir ;;
1530 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1531 | --sbi=* | --sb=*)
1532 sbindir=$ac_optarg ;;
1533
1534 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1535 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1536 | --sharedst | --shareds | --shared | --share | --shar \
1537 | --sha | --sh)
1538 ac_prev=sharedstatedir ;;
1539 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1540 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1541 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1542 | --sha=* | --sh=*)
1543 sharedstatedir=$ac_optarg ;;
1544
1545 -site | --site | --sit)
1546 ac_prev=site ;;
1547 -site=* | --site=* | --sit=*)
1548 site=$ac_optarg ;;
1549
1550 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1551 ac_prev=srcdir ;;
1552 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1553 srcdir=$ac_optarg ;;
1554
1555 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1556 | --syscon | --sysco | --sysc | --sys | --sy)
1557 ac_prev=sysconfdir ;;
1558 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1559 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1560 sysconfdir=$ac_optarg ;;
1561
1562 -target | --target | --targe | --targ | --tar | --ta | --t)
1563 ac_prev=target_alias ;;
1564 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1565 target_alias=$ac_optarg ;;
1566
1567 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1568 verbose=yes ;;
1569
1570 -version | --version | --versio | --versi | --vers | -V)
1571 ac_init_version=: ;;
1572
1573 -with-* | --with-*)
1574 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1575 # Reject names that are not valid shell variable names.
1576 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001577 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001578 ac_useropt_orig=$ac_useropt
1579 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1580 case $ac_user_opts in
1581 *"
1582"with_$ac_useropt"
1583"*) ;;
1584 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1585 ac_unrecognized_sep=', ';;
1586 esac
1587 eval with_$ac_useropt=\$ac_optarg ;;
1588
1589 -without-* | --without-*)
1590 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1591 # Reject names that are not valid shell variable names.
1592 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001593 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001594 ac_useropt_orig=$ac_useropt
1595 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1596 case $ac_user_opts in
1597 *"
1598"with_$ac_useropt"
1599"*) ;;
1600 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1601 ac_unrecognized_sep=', ';;
1602 esac
1603 eval with_$ac_useropt=no ;;
1604
1605 --x)
1606 # Obsolete; use --with-x.
1607 with_x=yes ;;
1608
1609 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1610 | --x-incl | --x-inc | --x-in | --x-i)
1611 ac_prev=x_includes ;;
1612 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1613 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1614 x_includes=$ac_optarg ;;
1615
1616 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1617 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1618 ac_prev=x_libraries ;;
1619 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1620 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1621 x_libraries=$ac_optarg ;;
1622
cristy98dddb52010-11-04 00:30:15 +00001623 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1624Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001625 ;;
1626
1627 *=*)
1628 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1629 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001630 case $ac_envvar in #(
1631 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001632 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001633 esac
cristy3ed852e2009-09-05 21:47:34 +00001634 eval $ac_envvar=\$ac_optarg
1635 export $ac_envvar ;;
1636
1637 *)
1638 # FIXME: should be removed in autoconf 3.0.
1639 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1640 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1641 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001642 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001643 ;;
1644
1645 esac
1646done
1647
1648if test -n "$ac_prev"; then
1649 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001650 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001651fi
1652
1653if test -n "$ac_unrecognized_opts"; then
1654 case $enable_option_checking in
1655 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001656 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001657 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1658 esac
1659fi
1660
1661# Check all directory arguments for consistency.
1662for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1663 datadir sysconfdir sharedstatedir localstatedir includedir \
1664 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1665 libdir localedir mandir
1666do
1667 eval ac_val=\$$ac_var
1668 # Remove trailing slashes.
1669 case $ac_val in
1670 */ )
1671 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1672 eval $ac_var=\$ac_val;;
1673 esac
1674 # Be sure to have absolute directory names.
1675 case $ac_val in
1676 [\\/$]* | ?:[\\/]* ) continue;;
1677 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1678 esac
cristy98dddb52010-11-04 00:30:15 +00001679 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001680done
1681
1682# There might be people who depend on the old broken behavior: `$host'
1683# used to hold the argument of --host etc.
1684# FIXME: To remove some day.
1685build=$build_alias
1686host=$host_alias
1687target=$target_alias
1688
1689# FIXME: To remove some day.
1690if test "x$host_alias" != x; then
1691 if test "x$build_alias" = x; then
1692 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001693 elif test "x$build_alias" != "x$host_alias"; then
1694 cross_compiling=yes
1695 fi
1696fi
1697
1698ac_tool_prefix=
1699test -n "$host_alias" && ac_tool_prefix=$host_alias-
1700
1701test "$silent" = yes && exec 6>/dev/null
1702
1703
1704ac_pwd=`pwd` && test -n "$ac_pwd" &&
1705ac_ls_di=`ls -di .` &&
1706ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001707 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001708test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001709 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001710
1711
1712# Find the source files, if location was not specified.
1713if test -z "$srcdir"; then
1714 ac_srcdir_defaulted=yes
1715 # Try the directory containing this script, then the parent directory.
1716 ac_confdir=`$as_dirname -- "$as_myself" ||
1717$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1718 X"$as_myself" : 'X\(//\)[^/]' \| \
1719 X"$as_myself" : 'X\(//\)$' \| \
1720 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1721$as_echo X"$as_myself" |
1722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1723 s//\1/
1724 q
1725 }
1726 /^X\(\/\/\)[^/].*/{
1727 s//\1/
1728 q
1729 }
1730 /^X\(\/\/\)$/{
1731 s//\1/
1732 q
1733 }
1734 /^X\(\/\).*/{
1735 s//\1/
1736 q
1737 }
1738 s/.*/./; q'`
1739 srcdir=$ac_confdir
1740 if test ! -r "$srcdir/$ac_unique_file"; then
1741 srcdir=..
1742 fi
1743else
1744 ac_srcdir_defaulted=no
1745fi
1746if test ! -r "$srcdir/$ac_unique_file"; then
1747 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001748 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001749fi
1750ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1751ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001752 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001753 pwd)`
1754# When building in place, set srcdir=.
1755if test "$ac_abs_confdir" = "$ac_pwd"; then
1756 srcdir=.
1757fi
1758# Remove unnecessary trailing slashes from srcdir.
1759# Double slashes in file names in object file debugging info
1760# mess up M-x gdb in Emacs.
1761case $srcdir in
1762*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1763esac
1764for ac_var in $ac_precious_vars; do
1765 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1766 eval ac_env_${ac_var}_value=\$${ac_var}
1767 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1768 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1769done
1770
1771#
1772# Report the --help message.
1773#
1774if test "$ac_init_help" = "long"; then
1775 # Omit some internal or obsolete options to make the list less imposing.
1776 # This message is too long to be a string in the A/UX 3.1 sh.
1777 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001778\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001779
1780Usage: $0 [OPTION]... [VAR=VALUE]...
1781
1782To assign environment variables (e.g., CC, CFLAGS...), specify them as
1783VAR=VALUE. See below for descriptions of some of the useful variables.
1784
1785Defaults for the options are specified in brackets.
1786
1787Configuration:
1788 -h, --help display this help and exit
1789 --help=short display options specific to this package
1790 --help=recursive display the short help of all the included packages
1791 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001792 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001793 --cache-file=FILE cache test results in FILE [disabled]
1794 -C, --config-cache alias for \`--cache-file=config.cache'
1795 -n, --no-create do not create output files
1796 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1797
1798Installation directories:
1799 --prefix=PREFIX install architecture-independent files in PREFIX
1800 [$ac_default_prefix]
1801 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1802 [PREFIX]
1803
1804By default, \`make install' will install all the files in
1805\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1806an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1807for instance \`--prefix=\$HOME'.
1808
1809For better control, use the options below.
1810
1811Fine tuning of the installation directories:
1812 --bindir=DIR user executables [EPREFIX/bin]
1813 --sbindir=DIR system admin executables [EPREFIX/sbin]
1814 --libexecdir=DIR program executables [EPREFIX/libexec]
1815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1818 --libdir=DIR object code libraries [EPREFIX/lib]
1819 --includedir=DIR C header files [PREFIX/include]
1820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1821 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1822 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1823 --infodir=DIR info documentation [DATAROOTDIR/info]
1824 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1825 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001826 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001827 --htmldir=DIR html documentation [DOCDIR]
1828 --dvidir=DIR dvi documentation [DOCDIR]
1829 --pdfdir=DIR pdf documentation [DOCDIR]
1830 --psdir=DIR ps documentation [DOCDIR]
1831_ACEOF
1832
1833 cat <<\_ACEOF
1834
cristy73bd4a52010-10-05 11:24:23 +00001835Program names:
1836 --program-prefix=PREFIX prepend PREFIX to installed program names
1837 --program-suffix=SUFFIX append SUFFIX to installed program names
1838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1839
cristy3ed852e2009-09-05 21:47:34 +00001840X features:
1841 --x-includes=DIR X include files are in DIR
1842 --x-libraries=DIR X library files are in DIR
1843
1844System types:
1845 --build=BUILD configure for building on BUILD [guessed]
1846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1847 --target=TARGET configure for building compilers for TARGET [HOST]
1848_ACEOF
1849fi
1850
1851if test -n "$ac_init_help"; then
1852 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001853 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001854 esac
1855 cat <<\_ACEOF
1856
1857Optional Features:
1858 --disable-option-checking ignore unrecognized --enable/--with options
1859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001861 --enable-silent-rules less verbose build output (undo: "make V=1")
1862 --disable-silent-rules verbose build output (undo: "make V=0")
1863 --enable-dependency-tracking
1864 do not reject slow dependency extractors
1865 --disable-dependency-tracking
1866 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001867 --enable-ld-version-script
1868 enable linker version script (default is enabled
1869 when possible)
cristya3824692012-03-30 17:22:07 +00001870 --enable-bounds-checking
1871 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001872 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001873 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001874 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001875 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001876 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001877 --enable-shared[=PKGS] build shared libraries [default=yes]
1878 --enable-static[=PKGS] build static libraries [default=yes]
1879 --enable-fast-install[=PKGS]
1880 optimize for fast installation [default=yes]
1881 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001882 --enable-delegate-build look for delegate libraries in build directory
1883 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001884 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001885 --disable-installed Formally install ImageMagick under PREFIX
1886 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001887 --enable-zero-configuration
1888 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001889 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001890 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001891 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001892 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001893 --enable-maintainer-mode
1894 enable make rules and dependencies not useful (and
1895 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001896 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001897 --enable-ccmalloc enable 'ccmalloc' memory debug support
1898 --enable-efence enable 'efence' memory debug support
1899 --enable-prof enable 'prof' profiling support
1900 --enable-gprof enable 'gprof' profiling support
1901 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001902 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001903 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001904
1905Optional Packages:
1906 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1907 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001908 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001909 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001910 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1911 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001912 --includearch-dir=DIR ARCH specific include directory
1913 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001914 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001915 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001916 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001917 both]
cristyda16f162011-02-19 23:52:17 +00001918 --with-sysroot=DIR Search for dependent libraries within DIR
1919 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001920 --with-modules enable building dynamically loadable modules
1921 --with-method-prefix=PREFIX
1922 prefix MagickCore API methods
1923 --with-quantum-depth=DEPTH
1924 number of bits in a pixel quantum (default 16)
1925 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1926 memory)
1927 --with-frozenpaths freeze delegate paths
1928 --without-magick-plus-plus
1929 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001930 --with-package-release-name=NAME
1931 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001932 --with-perl enable build/install of PerlMagick
1933 --with-perl-options=OPTIONS
1934 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001935 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001936 --with-umem enable umem memory allocation library support
1937 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1938 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001939 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001940 --without-zlib disable ZLIB support
1941 --with-autotrace enable autotrace support
1942 --without-dps disable Display Postscript support
1943 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001944 --with-dejavu-font-dir=DIR
1945 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001946 --without-fftw disable FFTW support
1947 --without-fpx disable FlashPIX support
1948 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001949 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001950 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001951 --with-fontpath=DIR prepend to default font search path
1952 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001953 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001954 --without-jbig disable JBIG support
1955 --without-jpeg disable JPEG support
1956 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001957 --without-lcms disable lcms (v1.1X) support
1958 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001959 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001960 --without-lzma disable LZMA support
cristy854c9cf2013-08-10 21:03:06 +00001961 --with-mupdf enable MUPDF support
cristy3ed852e2009-09-05 21:47:34 +00001962 --without-openexr disable OpenEXR support
cristy3fe09452014-01-01 12:29:14 +00001963 --without-openjpeg disable OPENJPEG support
cristy41cbe8a2011-10-27 01:35:18 +00001964 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001965 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001966 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001967 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001968 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001969 --with-windows-font-dir=DIR
1970 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001971 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001972 --without-xml disable XML support
1973
1974Some influential environment variables:
1975 CC C compiler command
1976 CFLAGS C compiler flags
1977 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1978 nonstandard directory <lib dir>
1979 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001980 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001981 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001982 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001983 CXX C++ compiler command
1984 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001985 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001986 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001987 XMKMF Path to xmkmf, Makefile generator for X Window System
1988 AUTOTRACE_CFLAGS
1989 C compiler flags for AUTOTRACE, overriding pkg-config
1990 AUTOTRACE_LIBS
1991 linker flags for AUTOTRACE, overriding pkg-config
1992 FONTCONFIG_CFLAGS
1993 C compiler flags for FONTCONFIG, overriding pkg-config
1994 FONTCONFIG_LIBS
1995 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001996 FREETYPE_CFLAGS
1997 C compiler flags for FREETYPE, overriding pkg-config
1998 FREETYPE_LIBS
1999 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002000 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2001 GVC_LIBS linker flags for GVC, overriding pkg-config
2002 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2003 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002004 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2005 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002006 OPENEXR_CFLAGS
2007 C compiler flags for OPENEXR, overriding pkg-config
2008 OPENEXR_LIBS
2009 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002010 PANGO_CFLAGS
2011 C compiler flags for PANGO, overriding pkg-config
2012 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002013 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2014 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2015 CAIRO_SVG_CFLAGS
2016 C compiler flags for CAIRO_SVG, overriding pkg-config
2017 CAIRO_SVG_LIBS
2018 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002019
2020Use these variables to override the choices made by `configure' or to help
2021it to find libraries and programs with nonstandard names/locations.
2022
2023Report bugs to <http://www.imagemagick.org>.
2024_ACEOF
2025ac_status=$?
2026fi
2027
2028if test "$ac_init_help" = "recursive"; then
2029 # If there are subdirs, report their specific --help.
2030 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2031 test -d "$ac_dir" ||
2032 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2033 continue
2034 ac_builddir=.
2035
2036case "$ac_dir" in
2037.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2038*)
2039 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2040 # A ".." for each directory in $ac_dir_suffix.
2041 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2042 case $ac_top_builddir_sub in
2043 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2044 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2045 esac ;;
2046esac
2047ac_abs_top_builddir=$ac_pwd
2048ac_abs_builddir=$ac_pwd$ac_dir_suffix
2049# for backward compatibility:
2050ac_top_builddir=$ac_top_build_prefix
2051
2052case $srcdir in
2053 .) # We are building in place.
2054 ac_srcdir=.
2055 ac_top_srcdir=$ac_top_builddir_sub
2056 ac_abs_top_srcdir=$ac_pwd ;;
2057 [\\/]* | ?:[\\/]* ) # Absolute name.
2058 ac_srcdir=$srcdir$ac_dir_suffix;
2059 ac_top_srcdir=$srcdir
2060 ac_abs_top_srcdir=$srcdir ;;
2061 *) # Relative name.
2062 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2063 ac_top_srcdir=$ac_top_build_prefix$srcdir
2064 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2065esac
2066ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2067
2068 cd "$ac_dir" || { ac_status=$?; continue; }
2069 # Check for guested configure.
2070 if test -f "$ac_srcdir/configure.gnu"; then
2071 echo &&
2072 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2073 elif test -f "$ac_srcdir/configure"; then
2074 echo &&
2075 $SHELL "$ac_srcdir/configure" --help=recursive
2076 else
2077 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2078 fi || ac_status=$?
2079 cd "$ac_pwd" || { ac_status=$?; break; }
2080 done
2081fi
2082
2083test -n "$ac_init_help" && exit $ac_status
2084if $ac_init_version; then
2085 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002086ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002087generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002088
cristy14fefe52012-05-21 00:59:18 +00002089Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002090This configure script is free software; the Free Software Foundation
2091gives unlimited permission to copy, distribute and modify it.
2092_ACEOF
2093 exit
2094fi
cristy8b350f62009-11-15 23:12:43 +00002095
2096## ------------------------ ##
2097## Autoconf initialization. ##
2098## ------------------------ ##
2099
2100# ac_fn_c_try_compile LINENO
2101# --------------------------
2102# Try to compile conftest.$ac_ext, and return whether this succeeded.
2103ac_fn_c_try_compile ()
2104{
2105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106 rm -f conftest.$ac_objext
2107 if { { ac_try="$ac_compile"
2108case "(($ac_try" in
2109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2110 *) ac_try_echo=$ac_try;;
2111esac
2112eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2113$as_echo "$ac_try_echo"; } >&5
2114 (eval "$ac_compile") 2>conftest.err
2115 ac_status=$?
2116 if test -s conftest.err; then
2117 grep -v '^ *+' conftest.err >conftest.er1
2118 cat conftest.er1 >&5
2119 mv -f conftest.er1 conftest.err
2120 fi
2121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2122 test $ac_status = 0; } && {
2123 test -z "$ac_c_werror_flag" ||
2124 test ! -s conftest.err
2125 } && test -s conftest.$ac_objext; then :
2126 ac_retval=0
2127else
2128 $as_echo "$as_me: failed program was:" >&5
2129sed 's/^/| /' conftest.$ac_ext >&5
2130
2131 ac_retval=1
2132fi
cristyda16f162011-02-19 23:52:17 +00002133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002134 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002135
2136} # ac_fn_c_try_compile
2137
cristy95646052009-11-28 23:05:30 +00002138# ac_fn_c_try_cpp LINENO
2139# ----------------------
2140# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2141ac_fn_c_try_cpp ()
2142{
2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2144 if { { ac_try="$ac_cpp conftest.$ac_ext"
2145case "(($ac_try" in
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2148esac
2149eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2150$as_echo "$ac_try_echo"; } >&5
2151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2152 ac_status=$?
2153 if test -s conftest.err; then
2154 grep -v '^ *+' conftest.err >conftest.er1
2155 cat conftest.er1 >&5
2156 mv -f conftest.er1 conftest.err
2157 fi
2158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002159 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2161 test ! -s conftest.err
2162 }; then :
2163 ac_retval=0
2164else
2165 $as_echo "$as_me: failed program was:" >&5
2166sed 's/^/| /' conftest.$ac_ext >&5
2167
2168 ac_retval=1
2169fi
cristyda16f162011-02-19 23:52:17 +00002170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002171 as_fn_set_status $ac_retval
2172
2173} # ac_fn_c_try_cpp
2174
cristy8b350f62009-11-15 23:12:43 +00002175# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2176# -------------------------------------------------------
2177# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2178# the include files in INCLUDES and setting the cache variable VAR
2179# accordingly.
2180ac_fn_c_check_header_mongrel ()
2181{
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002183 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2185$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002186if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002187 $as_echo_n "(cached) " >&6
2188fi
2189eval ac_res=\$$3
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2191$as_echo "$ac_res" >&6; }
2192else
2193 # Is the header compilable?
2194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2195$as_echo_n "checking $2 usability... " >&6; }
2196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197/* end confdefs.h. */
2198$4
2199#include <$2>
2200_ACEOF
2201if ac_fn_c_try_compile "$LINENO"; then :
2202 ac_header_compiler=yes
2203else
2204 ac_header_compiler=no
2205fi
2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2208$as_echo "$ac_header_compiler" >&6; }
2209
2210# Is the header present?
2211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2212$as_echo_n "checking $2 presence... " >&6; }
2213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214/* end confdefs.h. */
2215#include <$2>
2216_ACEOF
2217if ac_fn_c_try_cpp "$LINENO"; then :
2218 ac_header_preproc=yes
2219else
2220 ac_header_preproc=no
2221fi
cristyda16f162011-02-19 23:52:17 +00002222rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2224$as_echo "$ac_header_preproc" >&6; }
2225
2226# So? What about this header?
2227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2228 yes:no: )
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2230$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2232$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2233 ;;
2234 no:yes:* )
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2236$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2238$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2240$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2242$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2244$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002245( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002246## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002247## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002248 ) | sed "s/^/$as_me: WARNING: /" >&2
2249 ;;
2250esac
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2252$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002253if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002254 $as_echo_n "(cached) " >&6
2255else
2256 eval "$3=\$ac_header_compiler"
2257fi
2258eval ac_res=\$$3
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2260$as_echo "$ac_res" >&6; }
2261fi
cristyda16f162011-02-19 23:52:17 +00002262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002263
2264} # ac_fn_c_check_header_mongrel
2265
2266# ac_fn_c_try_run LINENO
2267# ----------------------
2268# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2269# that executables *can* be run.
2270ac_fn_c_try_run ()
2271{
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273 if { { ac_try="$ac_link"
2274case "(($ac_try" in
2275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2276 *) ac_try_echo=$ac_try;;
2277esac
2278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2279$as_echo "$ac_try_echo"; } >&5
2280 (eval "$ac_link") 2>&5
2281 ac_status=$?
2282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2283 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2284 { { case "(($ac_try" in
2285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2286 *) ac_try_echo=$ac_try;;
2287esac
2288eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2289$as_echo "$ac_try_echo"; } >&5
2290 (eval "$ac_try") 2>&5
2291 ac_status=$?
2292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2293 test $ac_status = 0; }; }; then :
2294 ac_retval=0
2295else
2296 $as_echo "$as_me: program exited with status $ac_status" >&5
2297 $as_echo "$as_me: failed program was:" >&5
2298sed 's/^/| /' conftest.$ac_ext >&5
2299
2300 ac_retval=$ac_status
2301fi
2302 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002303 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002304 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002305
2306} # ac_fn_c_try_run
2307
2308# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2309# -------------------------------------------------------
2310# Tests whether HEADER exists and can be compiled using the include files in
2311# INCLUDES, setting the cache variable VAR accordingly.
2312ac_fn_c_check_header_compile ()
2313{
2314 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2316$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002317if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002318 $as_echo_n "(cached) " >&6
2319else
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321/* end confdefs.h. */
2322$4
2323#include <$2>
2324_ACEOF
2325if ac_fn_c_try_compile "$LINENO"; then :
2326 eval "$3=yes"
2327else
2328 eval "$3=no"
2329fi
2330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331fi
2332eval ac_res=\$$3
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2334$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002336
2337} # ac_fn_c_check_header_compile
2338
cristya0b81c32010-01-22 02:54:33 +00002339# ac_fn_cxx_try_compile LINENO
2340# ----------------------------
2341# Try to compile conftest.$ac_ext, and return whether this succeeded.
2342ac_fn_cxx_try_compile ()
2343{
2344 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2345 rm -f conftest.$ac_objext
2346 if { { ac_try="$ac_compile"
2347case "(($ac_try" in
2348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2349 *) ac_try_echo=$ac_try;;
2350esac
2351eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2352$as_echo "$ac_try_echo"; } >&5
2353 (eval "$ac_compile") 2>conftest.err
2354 ac_status=$?
2355 if test -s conftest.err; then
2356 grep -v '^ *+' conftest.err >conftest.er1
2357 cat conftest.er1 >&5
2358 mv -f conftest.er1 conftest.err
2359 fi
2360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2361 test $ac_status = 0; } && {
2362 test -z "$ac_cxx_werror_flag" ||
2363 test ! -s conftest.err
2364 } && test -s conftest.$ac_objext; then :
2365 ac_retval=0
2366else
2367 $as_echo "$as_me: failed program was:" >&5
2368sed 's/^/| /' conftest.$ac_ext >&5
2369
2370 ac_retval=1
2371fi
cristyda16f162011-02-19 23:52:17 +00002372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002373 as_fn_set_status $ac_retval
2374
2375} # ac_fn_cxx_try_compile
2376
cristyd95b7a52013-10-23 13:12:53 +00002377# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2378# --------------------------------------------
2379# Tries to find the compile-time value of EXPR in a program that includes
2380# INCLUDES, setting VAR accordingly. Returns whether the value could be
2381# computed
2382ac_fn_c_compute_int ()
2383{
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 if test "$cross_compiling" = yes; then
2386 # Depending upon the size, compute the lo and hi bounds.
2387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388/* end confdefs.h. */
2389$4
2390int
2391main ()
2392{
2393static int test_array [1 - 2 * !(($2) >= 0)];
2394test_array [0] = 0;
2395return test_array [0];
2396
2397 ;
2398 return 0;
2399}
2400_ACEOF
2401if ac_fn_c_try_compile "$LINENO"; then :
2402 ac_lo=0 ac_mid=0
2403 while :; do
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405/* end confdefs.h. */
2406$4
2407int
2408main ()
2409{
2410static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2411test_array [0] = 0;
2412return test_array [0];
2413
2414 ;
2415 return 0;
2416}
2417_ACEOF
2418if ac_fn_c_try_compile "$LINENO"; then :
2419 ac_hi=$ac_mid; break
2420else
2421 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2422 if test $ac_lo -le $ac_mid; then
2423 ac_lo= ac_hi=
2424 break
2425 fi
2426 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2427fi
2428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429 done
2430else
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432/* end confdefs.h. */
2433$4
2434int
2435main ()
2436{
2437static int test_array [1 - 2 * !(($2) < 0)];
2438test_array [0] = 0;
2439return test_array [0];
2440
2441 ;
2442 return 0;
2443}
2444_ACEOF
2445if ac_fn_c_try_compile "$LINENO"; then :
2446 ac_hi=-1 ac_mid=-1
2447 while :; do
2448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449/* end confdefs.h. */
2450$4
2451int
2452main ()
2453{
2454static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2455test_array [0] = 0;
2456return test_array [0];
2457
2458 ;
2459 return 0;
2460}
2461_ACEOF
2462if ac_fn_c_try_compile "$LINENO"; then :
2463 ac_lo=$ac_mid; break
2464else
2465 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2466 if test $ac_mid -le $ac_hi; then
2467 ac_lo= ac_hi=
2468 break
2469 fi
2470 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2471fi
2472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473 done
2474else
2475 ac_lo= ac_hi=
2476fi
2477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2478fi
2479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480# Binary search between lo and hi bounds.
2481while test "x$ac_lo" != "x$ac_hi"; do
2482 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484/* end confdefs.h. */
2485$4
2486int
2487main ()
2488{
2489static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2490test_array [0] = 0;
2491return test_array [0];
2492
2493 ;
2494 return 0;
2495}
2496_ACEOF
2497if ac_fn_c_try_compile "$LINENO"; then :
2498 ac_hi=$ac_mid
2499else
2500 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2501fi
2502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503done
2504case $ac_lo in #((
2505?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2506'') ac_retval=1 ;;
2507esac
2508 else
2509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510/* end confdefs.h. */
2511$4
2512static long int longval () { return $2; }
2513static unsigned long int ulongval () { return $2; }
2514#include <stdio.h>
2515#include <stdlib.h>
2516int
2517main ()
2518{
2519
2520 FILE *f = fopen ("conftest.val", "w");
2521 if (! f)
2522 return 1;
2523 if (($2) < 0)
2524 {
2525 long int i = longval ();
2526 if (i != ($2))
2527 return 1;
2528 fprintf (f, "%ld", i);
2529 }
2530 else
2531 {
2532 unsigned long int i = ulongval ();
2533 if (i != ($2))
2534 return 1;
2535 fprintf (f, "%lu", i);
2536 }
2537 /* Do not output a trailing newline, as this causes \r\n confusion
2538 on some platforms. */
2539 return ferror (f) || fclose (f) != 0;
2540
2541 ;
2542 return 0;
2543}
2544_ACEOF
2545if ac_fn_c_try_run "$LINENO"; then :
2546 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2547else
2548 ac_retval=1
2549fi
2550rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2551 conftest.$ac_objext conftest.beam conftest.$ac_ext
2552rm -f conftest.val
2553
2554 fi
2555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2556 as_fn_set_status $ac_retval
2557
2558} # ac_fn_c_compute_int
2559
cristy8b350f62009-11-15 23:12:43 +00002560# ac_fn_c_try_link LINENO
2561# -----------------------
2562# Try to link conftest.$ac_ext, and return whether this succeeded.
2563ac_fn_c_try_link ()
2564{
2565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566 rm -f conftest.$ac_objext conftest$ac_exeext
2567 if { { ac_try="$ac_link"
2568case "(($ac_try" in
2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 *) ac_try_echo=$ac_try;;
2571esac
2572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2573$as_echo "$ac_try_echo"; } >&5
2574 (eval "$ac_link") 2>conftest.err
2575 ac_status=$?
2576 if test -s conftest.err; then
2577 grep -v '^ *+' conftest.err >conftest.er1
2578 cat conftest.er1 >&5
2579 mv -f conftest.er1 conftest.err
2580 fi
2581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2582 test $ac_status = 0; } && {
2583 test -z "$ac_c_werror_flag" ||
2584 test ! -s conftest.err
2585 } && test -s conftest$ac_exeext && {
2586 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002587 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002588 }; then :
2589 ac_retval=0
2590else
2591 $as_echo "$as_me: failed program was:" >&5
2592sed 's/^/| /' conftest.$ac_ext >&5
2593
2594 ac_retval=1
2595fi
2596 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2597 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2598 # interfere with the next link command; also delete a directory that is
2599 # left behind by Apple's compiler. We do this before executing the actions.
2600 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002602 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002603
2604} # ac_fn_c_try_link
2605
cristy73bd4a52010-10-05 11:24:23 +00002606# ac_fn_c_check_func LINENO FUNC VAR
2607# ----------------------------------
2608# Tests whether FUNC exists, setting the cache variable VAR accordingly
2609ac_fn_c_check_func ()
2610{
2611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2613$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002614if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002615 $as_echo_n "(cached) " >&6
2616else
2617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618/* end confdefs.h. */
2619/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2621#define $2 innocuous_$2
2622
2623/* System header to define __stub macros and hopefully few prototypes,
2624 which can conflict with char $2 (); below.
2625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2626 <limits.h> exists even on freestanding compilers. */
2627
2628#ifdef __STDC__
2629# include <limits.h>
2630#else
2631# include <assert.h>
2632#endif
2633
2634#undef $2
2635
2636/* Override any GCC internal prototype to avoid an error.
2637 Use char because int might match the return type of a GCC
2638 builtin and then its argument prototype would still apply. */
2639#ifdef __cplusplus
2640extern "C"
2641#endif
2642char $2 ();
2643/* The GNU C library defines this for functions which it implements
2644 to always fail with ENOSYS. Some functions are actually named
2645 something starting with __ and the normal name is an alias. */
2646#if defined __stub_$2 || defined __stub___$2
2647choke me
2648#endif
2649
2650int
2651main ()
2652{
2653return $2 ();
2654 ;
2655 return 0;
2656}
2657_ACEOF
2658if ac_fn_c_try_link "$LINENO"; then :
2659 eval "$3=yes"
2660else
2661 eval "$3=no"
2662fi
2663rm -f core conftest.err conftest.$ac_objext \
2664 conftest$ac_exeext conftest.$ac_ext
2665fi
2666eval ac_res=\$$3
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2668$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002670
2671} # ac_fn_c_check_func
2672
2673# ac_fn_cxx_try_cpp LINENO
2674# ------------------------
2675# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2676ac_fn_cxx_try_cpp ()
2677{
2678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2679 if { { ac_try="$ac_cpp conftest.$ac_ext"
2680case "(($ac_try" in
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2683esac
2684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2685$as_echo "$ac_try_echo"; } >&5
2686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2687 ac_status=$?
2688 if test -s conftest.err; then
2689 grep -v '^ *+' conftest.err >conftest.er1
2690 cat conftest.er1 >&5
2691 mv -f conftest.er1 conftest.err
2692 fi
2693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002694 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002695 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2696 test ! -s conftest.err
2697 }; then :
2698 ac_retval=0
2699else
2700 $as_echo "$as_me: failed program was:" >&5
2701sed 's/^/| /' conftest.$ac_ext >&5
2702
2703 ac_retval=1
2704fi
cristyda16f162011-02-19 23:52:17 +00002705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002706 as_fn_set_status $ac_retval
2707
2708} # ac_fn_cxx_try_cpp
2709
2710# ac_fn_cxx_try_link LINENO
2711# -------------------------
2712# Try to link conftest.$ac_ext, and return whether this succeeded.
2713ac_fn_cxx_try_link ()
2714{
2715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2716 rm -f conftest.$ac_objext conftest$ac_exeext
2717 if { { ac_try="$ac_link"
2718case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721esac
2722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2723$as_echo "$ac_try_echo"; } >&5
2724 (eval "$ac_link") 2>conftest.err
2725 ac_status=$?
2726 if test -s conftest.err; then
2727 grep -v '^ *+' conftest.err >conftest.er1
2728 cat conftest.er1 >&5
2729 mv -f conftest.er1 conftest.err
2730 fi
2731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2732 test $ac_status = 0; } && {
2733 test -z "$ac_cxx_werror_flag" ||
2734 test ! -s conftest.err
2735 } && test -s conftest$ac_exeext && {
2736 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002737 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002738 }; then :
2739 ac_retval=0
2740else
2741 $as_echo "$as_me: failed program was:" >&5
2742sed 's/^/| /' conftest.$ac_ext >&5
2743
2744 ac_retval=1
2745fi
2746 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2747 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2748 # interfere with the next link command; also delete a directory that is
2749 # left behind by Apple's compiler. We do this before executing the actions.
2750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002752 as_fn_set_status $ac_retval
2753
2754} # ac_fn_cxx_try_link
2755
cristy8b350f62009-11-15 23:12:43 +00002756# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2757# -------------------------------------------
2758# Tests whether TYPE exists after having included INCLUDES, setting cache
2759# variable VAR accordingly.
2760ac_fn_c_check_type ()
2761{
2762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2764$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002765if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002766 $as_echo_n "(cached) " >&6
2767else
2768 eval "$3=no"
2769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2770/* end confdefs.h. */
2771$4
2772int
2773main ()
2774{
2775if (sizeof ($2))
2776 return 0;
2777 ;
2778 return 0;
2779}
2780_ACEOF
2781if ac_fn_c_try_compile "$LINENO"; then :
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783/* end confdefs.h. */
2784$4
2785int
2786main ()
2787{
2788if (sizeof (($2)))
2789 return 0;
2790 ;
2791 return 0;
2792}
2793_ACEOF
2794if ac_fn_c_try_compile "$LINENO"; then :
2795
2796else
2797 eval "$3=yes"
2798fi
2799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800fi
2801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802fi
2803eval ac_res=\$$3
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2805$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002807
2808} # ac_fn_c_check_type
2809
cristy92703d82010-04-26 00:18:18 +00002810# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2811# ----------------------------------------------------
2812# Tries to find if the field MEMBER exists in type AGGR, after including
2813# INCLUDES, setting cache variable VAR accordingly.
2814ac_fn_c_check_member ()
2815{
2816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2818$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002819if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002820 $as_echo_n "(cached) " >&6
2821else
2822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2823/* end confdefs.h. */
2824$5
2825int
2826main ()
2827{
2828static $2 ac_aggr;
2829if (ac_aggr.$3)
2830return 0;
2831 ;
2832 return 0;
2833}
2834_ACEOF
2835if ac_fn_c_try_compile "$LINENO"; then :
2836 eval "$4=yes"
2837else
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839/* end confdefs.h. */
2840$5
2841int
2842main ()
2843{
2844static $2 ac_aggr;
2845if (sizeof ac_aggr.$3)
2846return 0;
2847 ;
2848 return 0;
2849}
2850_ACEOF
2851if ac_fn_c_try_compile "$LINENO"; then :
2852 eval "$4=yes"
2853else
2854 eval "$4=no"
2855fi
2856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2857fi
2858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2859fi
2860eval ac_res=\$$4
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2862$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002864
2865} # ac_fn_c_check_member
2866
cristy5eef09f2012-10-16 12:08:28 +00002867# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2868# ---------------------------------------------
2869# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2870# accordingly.
2871ac_fn_c_check_decl ()
2872{
2873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2874 as_decl_name=`echo $2|sed 's/ *(.*//'`
2875 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2877$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2878if eval \${$3+:} false; then :
2879 $as_echo_n "(cached) " >&6
2880else
2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882/* end confdefs.h. */
2883$4
2884int
2885main ()
2886{
2887#ifndef $as_decl_name
2888#ifdef __cplusplus
2889 (void) $as_decl_use;
2890#else
2891 (void) $as_decl_name;
2892#endif
2893#endif
2894
2895 ;
2896 return 0;
2897}
2898_ACEOF
2899if ac_fn_c_try_compile "$LINENO"; then :
2900 eval "$3=yes"
2901else
2902 eval "$3=no"
2903fi
2904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905fi
2906eval ac_res=\$$3
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2908$as_echo "$ac_res" >&6; }
2909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2910
2911} # ac_fn_c_check_decl
2912
cristy501c8042011-05-26 17:46:28 +00002913# ac_fn_c_find_intX_t LINENO BITS VAR
2914# -----------------------------------
2915# Finds a signed integer type with width BITS, setting cache variable VAR
2916# accordingly.
2917ac_fn_c_find_intX_t ()
2918{
2919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2921$as_echo_n "checking for int$2_t... " >&6; }
2922if eval \${$3+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924else
2925 eval "$3=no"
2926 # Order is important - never check a type that is potentially smaller
2927 # than half of the expected target width.
2928 for ac_type in int$2_t 'int' 'long int' \
2929 'long long int' 'short int' 'signed char'; do
2930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2931/* end confdefs.h. */
2932$ac_includes_default
2933 enum { N = $2 / 2 - 1 };
2934int
2935main ()
2936{
2937static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002938test_array [0] = 0;
2939return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002940
2941 ;
2942 return 0;
2943}
2944_ACEOF
2945if ac_fn_c_try_compile "$LINENO"; then :
2946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947/* end confdefs.h. */
2948$ac_includes_default
2949 enum { N = $2 / 2 - 1 };
2950int
2951main ()
2952{
2953static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2954 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002955test_array [0] = 0;
2956return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002957
2958 ;
2959 return 0;
2960}
2961_ACEOF
2962if ac_fn_c_try_compile "$LINENO"; then :
2963
2964else
2965 case $ac_type in #(
2966 int$2_t) :
2967 eval "$3=yes" ;; #(
2968 *) :
2969 eval "$3=\$ac_type" ;;
2970esac
2971fi
2972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973fi
2974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2975 if eval test \"x\$"$3"\" = x"no"; then :
2976
2977else
2978 break
2979fi
2980 done
2981fi
2982eval ac_res=\$$3
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2984$as_echo "$ac_res" >&6; }
2985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2986
2987} # ac_fn_c_find_intX_t
2988
2989# ac_fn_c_find_uintX_t LINENO BITS VAR
2990# ------------------------------------
2991# Finds an unsigned integer type with width BITS, setting cache variable VAR
2992# accordingly.
2993ac_fn_c_find_uintX_t ()
2994{
2995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2997$as_echo_n "checking for uint$2_t... " >&6; }
2998if eval \${$3+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000else
3001 eval "$3=no"
3002 # Order is important - never check a type that is potentially smaller
3003 # than half of the expected target width.
3004 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3005 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007/* end confdefs.h. */
3008$ac_includes_default
3009int
3010main ()
3011{
3012static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003013test_array [0] = 0;
3014return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003015
3016 ;
3017 return 0;
3018}
3019_ACEOF
3020if ac_fn_c_try_compile "$LINENO"; then :
3021 case $ac_type in #(
3022 uint$2_t) :
3023 eval "$3=yes" ;; #(
3024 *) :
3025 eval "$3=\$ac_type" ;;
3026esac
3027fi
3028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3029 if eval test \"x\$"$3"\" = x"no"; then :
3030
3031else
3032 break
3033fi
3034 done
3035fi
3036eval ac_res=\$$3
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3038$as_echo "$ac_res" >&6; }
3039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3040
3041} # ac_fn_c_find_uintX_t
3042
cristy8b350f62009-11-15 23:12:43 +00003043# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3044# ---------------------------------------------------------
3045# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3046# the include files in INCLUDES and setting the cache variable VAR
3047# accordingly.
3048ac_fn_cxx_check_header_mongrel ()
3049{
3050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003051 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3053$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003054if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003055 $as_echo_n "(cached) " >&6
3056fi
3057eval ac_res=\$$3
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3059$as_echo "$ac_res" >&6; }
3060else
3061 # Is the header compilable?
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3063$as_echo_n "checking $2 usability... " >&6; }
3064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065/* end confdefs.h. */
3066$4
3067#include <$2>
3068_ACEOF
3069if ac_fn_cxx_try_compile "$LINENO"; then :
3070 ac_header_compiler=yes
3071else
3072 ac_header_compiler=no
3073fi
3074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3076$as_echo "$ac_header_compiler" >&6; }
3077
3078# Is the header present?
3079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3080$as_echo_n "checking $2 presence... " >&6; }
3081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082/* end confdefs.h. */
3083#include <$2>
3084_ACEOF
3085if ac_fn_cxx_try_cpp "$LINENO"; then :
3086 ac_header_preproc=yes
3087else
3088 ac_header_preproc=no
3089fi
cristyda16f162011-02-19 23:52:17 +00003090rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3092$as_echo "$ac_header_preproc" >&6; }
3093
3094# So? What about this header?
3095case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3096 yes:no: )
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3098$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3100$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3101 ;;
3102 no:yes:* )
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3104$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3106$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3108$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3110$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3112$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003113( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003114## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003115## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003116 ) | sed "s/^/$as_me: WARNING: /" >&2
3117 ;;
3118esac
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3120$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003121if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003122 $as_echo_n "(cached) " >&6
3123else
3124 eval "$3=\$ac_header_compiler"
3125fi
3126eval ac_res=\$$3
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3128$as_echo "$ac_res" >&6; }
3129fi
cristyda16f162011-02-19 23:52:17 +00003130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003131
3132} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003133cat >config.log <<_ACEOF
3134This file contains any messages produced by compilers while
3135running configure, to aid debugging if configure makes a mistake.
3136
cristy29eb34e2011-10-16 00:46:08 +00003137It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003138generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003139
3140 $ $0 $@
3141
3142_ACEOF
3143exec 5>>config.log
3144{
3145cat <<_ASUNAME
3146## --------- ##
3147## Platform. ##
3148## --------- ##
3149
3150hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3151uname -m = `(uname -m) 2>/dev/null || echo unknown`
3152uname -r = `(uname -r) 2>/dev/null || echo unknown`
3153uname -s = `(uname -s) 2>/dev/null || echo unknown`
3154uname -v = `(uname -v) 2>/dev/null || echo unknown`
3155
3156/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3157/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3158
3159/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3160/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3161/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3162/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3163/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3164/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3165/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3166
3167_ASUNAME
3168
3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003174 $as_echo "PATH: $as_dir"
3175 done
cristy3ed852e2009-09-05 21:47:34 +00003176IFS=$as_save_IFS
3177
3178} >&5
3179
3180cat >&5 <<_ACEOF
3181
3182
3183## ----------- ##
3184## Core tests. ##
3185## ----------- ##
3186
3187_ACEOF
3188
3189
3190# Keep a trace of the command line.
3191# Strip out --no-create and --no-recursion so they do not pile up.
3192# Strip out --silent because we don't want to record it for future runs.
3193# Also quote any args containing shell meta-characters.
3194# Make two passes to allow for proper duplicate-argument suppression.
3195ac_configure_args=
3196ac_configure_args0=
3197ac_configure_args1=
3198ac_must_keep_next=false
3199for ac_pass in 1 2
3200do
3201 for ac_arg
3202 do
3203 case $ac_arg in
3204 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3206 | -silent | --silent | --silen | --sile | --sil)
3207 continue ;;
3208 *\'*)
3209 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3210 esac
3211 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003212 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003213 2)
cristy8b350f62009-11-15 23:12:43 +00003214 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003215 if test $ac_must_keep_next = true; then
3216 ac_must_keep_next=false # Got value, back to normal.
3217 else
3218 case $ac_arg in
3219 *=* | --config-cache | -C | -disable-* | --disable-* \
3220 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3221 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3222 | -with-* | --with-* | -without-* | --without-* | --x)
3223 case "$ac_configure_args0 " in
3224 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3225 esac
3226 ;;
3227 -* ) ac_must_keep_next=true ;;
3228 esac
3229 fi
cristy8b350f62009-11-15 23:12:43 +00003230 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003231 ;;
3232 esac
3233 done
3234done
cristy8b350f62009-11-15 23:12:43 +00003235{ ac_configure_args0=; unset ac_configure_args0;}
3236{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003237
3238# When interrupted or exit'd, cleanup temporary files, and complete
3239# config.log. We remove comments because anyway the quotes in there
3240# would cause problems or look ugly.
3241# WARNING: Use '\'' to represent an apostrophe within the trap.
3242# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3243trap 'exit_status=$?
3244 # Save into config.log some information that might help in debugging.
3245 {
3246 echo
3247
cristy98dddb52010-11-04 00:30:15 +00003248 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003249## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003250## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003251 echo
3252 # The following way of writing the cache mishandles newlines in values,
3253(
3254 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3255 eval ac_val=\$$ac_var
3256 case $ac_val in #(
3257 *${as_nl}*)
3258 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003259 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003260$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3261 esac
3262 case $ac_var in #(
3263 _ | IFS | as_nl) ;; #(
3264 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003265 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003266 esac ;;
3267 esac
3268 done
3269 (set) 2>&1 |
3270 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3271 *${as_nl}ac_space=\ *)
3272 sed -n \
3273 "s/'\''/'\''\\\\'\'''\''/g;
3274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3275 ;; #(
3276 *)
3277 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3278 ;;
3279 esac |
3280 sort
3281)
3282 echo
3283
cristy98dddb52010-11-04 00:30:15 +00003284 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003285## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003286## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003287 echo
3288 for ac_var in $ac_subst_vars
3289 do
3290 eval ac_val=\$$ac_var
3291 case $ac_val in
3292 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3293 esac
3294 $as_echo "$ac_var='\''$ac_val'\''"
3295 done | sort
3296 echo
3297
3298 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003299 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003300## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003301## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003302 echo
3303 for ac_var in $ac_subst_files
3304 do
3305 eval ac_val=\$$ac_var
3306 case $ac_val in
3307 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3308 esac
3309 $as_echo "$ac_var='\''$ac_val'\''"
3310 done | sort
3311 echo
3312 fi
3313
3314 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003315 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003316## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003317## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003318 echo
3319 cat confdefs.h
3320 echo
3321 fi
3322 test "$ac_signal" != 0 &&
3323 $as_echo "$as_me: caught signal $ac_signal"
3324 $as_echo "$as_me: exit $exit_status"
3325 } >&5
3326 rm -f core *.core core.conftest.* &&
3327 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3328 exit $exit_status
3329' 0
3330for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003331 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003332done
3333ac_signal=0
3334
3335# confdefs.h avoids OS command line length limits that DEFS can exceed.
3336rm -f -r conftest* confdefs.h
3337
cristy8b350f62009-11-15 23:12:43 +00003338$as_echo "/* confdefs.h */" > confdefs.h
3339
cristy3ed852e2009-09-05 21:47:34 +00003340# Predefined preprocessor variables.
3341
3342cat >>confdefs.h <<_ACEOF
3343#define PACKAGE_NAME "$PACKAGE_NAME"
3344_ACEOF
3345
cristy3ed852e2009-09-05 21:47:34 +00003346cat >>confdefs.h <<_ACEOF
3347#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3348_ACEOF
3349
cristy3ed852e2009-09-05 21:47:34 +00003350cat >>confdefs.h <<_ACEOF
3351#define PACKAGE_VERSION "$PACKAGE_VERSION"
3352_ACEOF
3353
cristy3ed852e2009-09-05 21:47:34 +00003354cat >>confdefs.h <<_ACEOF
3355#define PACKAGE_STRING "$PACKAGE_STRING"
3356_ACEOF
3357
cristy3ed852e2009-09-05 21:47:34 +00003358cat >>confdefs.h <<_ACEOF
3359#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3360_ACEOF
3361
cristy8b350f62009-11-15 23:12:43 +00003362cat >>confdefs.h <<_ACEOF
3363#define PACKAGE_URL "$PACKAGE_URL"
3364_ACEOF
3365
cristy3ed852e2009-09-05 21:47:34 +00003366
3367# Let the site file select an alternate cache file if it wants to.
3368# Prefer an explicitly selected file to automatically selected ones.
3369ac_site_file1=NONE
3370ac_site_file2=NONE
3371if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003372 # We do not want a PATH search for config.site.
3373 case $CONFIG_SITE in #((
3374 -*) ac_site_file1=./$CONFIG_SITE;;
3375 */*) ac_site_file1=$CONFIG_SITE;;
3376 *) ac_site_file1=./$CONFIG_SITE;;
3377 esac
cristy3ed852e2009-09-05 21:47:34 +00003378elif test "x$prefix" != xNONE; then
3379 ac_site_file1=$prefix/share/config.site
3380 ac_site_file2=$prefix/etc/config.site
3381else
3382 ac_site_file1=$ac_default_prefix/share/config.site
3383 ac_site_file2=$ac_default_prefix/etc/config.site
3384fi
3385for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3386do
3387 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003388 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003389 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003390$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3391 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003392 . "$ac_site_file" \
3393 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395as_fn_error $? "failed to load site script $ac_site_file
3396See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003397 fi
3398done
3399
3400if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003401 # Some versions of bash will fail to source /dev/null (special files
3402 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3403 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003404 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003405$as_echo "$as_me: loading cache $cache_file" >&6;}
3406 case $cache_file in
3407 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3408 *) . "./$cache_file";;
3409 esac
3410 fi
3411else
cristy8b350f62009-11-15 23:12:43 +00003412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003413$as_echo "$as_me: creating cache $cache_file" >&6;}
3414 >$cache_file
3415fi
3416
cristycd4c5312009-11-22 01:19:08 +00003417as_fn_append ac_header_list " stdlib.h"
3418as_fn_append ac_header_list " unistd.h"
3419as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003420# Check that the precious variables saved in the cache have kept the same
3421# value.
3422ac_cache_corrupted=false
3423for ac_var in $ac_precious_vars; do
3424 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3425 eval ac_new_set=\$ac_env_${ac_var}_set
3426 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3427 eval ac_new_val=\$ac_env_${ac_var}_value
3428 case $ac_old_set,$ac_new_set in
3429 set,)
cristy8b350f62009-11-15 23:12:43 +00003430 { $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 +00003431$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3432 ac_cache_corrupted=: ;;
3433 ,set)
cristy8b350f62009-11-15 23:12:43 +00003434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003435$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3436 ac_cache_corrupted=: ;;
3437 ,);;
3438 *)
3439 if test "x$ac_old_val" != "x$ac_new_val"; then
3440 # differences in whitespace do not lead to failure.
3441 ac_old_val_w=`echo x $ac_old_val`
3442 ac_new_val_w=`echo x $ac_new_val`
3443 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003445$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3446 ac_cache_corrupted=:
3447 else
cristy8b350f62009-11-15 23:12:43 +00003448 { $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 +00003449$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3450 eval $ac_var=\$ac_old_val
3451 fi
cristy8b350f62009-11-15 23:12:43 +00003452 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003453$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003454 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003455$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3456 fi;;
3457 esac
3458 # Pass precious variables to config.status.
3459 if test "$ac_new_set" = set; then
3460 case $ac_new_val in
3461 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3462 *) ac_arg=$ac_var=$ac_new_val ;;
3463 esac
3464 case " $ac_configure_args " in
3465 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003466 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003467 esac
3468 fi
3469done
3470if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003474$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003475 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003476fi
cristy8b350f62009-11-15 23:12:43 +00003477## -------------------- ##
3478## Main body of script. ##
3479## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003480
3481ac_ext=c
3482ac_cpp='$CPP $CPPFLAGS'
3483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
3487
3488
3489ac_aux_dir=
3490for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003491 if test -f "$ac_dir/install-sh"; then
3492 ac_aux_dir=$ac_dir
3493 ac_install_sh="$ac_aux_dir/install-sh -c"
3494 break
3495 elif test -f "$ac_dir/install.sh"; then
3496 ac_aux_dir=$ac_dir
3497 ac_install_sh="$ac_aux_dir/install.sh -c"
3498 break
3499 elif test -f "$ac_dir/shtool"; then
3500 ac_aux_dir=$ac_dir
3501 ac_install_sh="$ac_aux_dir/shtool install -c"
3502 break
3503 fi
cristy3ed852e2009-09-05 21:47:34 +00003504done
3505if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003506 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003507fi
3508
3509# These three variables are undocumented and unsupported,
3510# and are intended to be withdrawn in a future Autoconf release.
3511# They can cause serious problems if a builder's source tree is in a directory
3512# whose full name contains unusual characters.
3513ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3514ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3515ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3516
3517
3518
3519
3520ac_config_headers="$ac_config_headers config/config.h"
3521
cristy24fc1fe2010-10-23 21:13:01 +00003522
cristy01ff9f32012-12-01 18:15:29 +00003523ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003524
cristy8d0ff762013-03-10 20:33:28 +00003525ac_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/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap 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 +00003526
3527
3528#
3529# Save initial user-tunable values
3530#
3531USER_LIBS=$LIBS
3532for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3533 eval isset=\${$var+set}
3534 if test "$isset" = 'set'; then
3535 eval val=$`echo $var`
3536 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3537 fi
3538done
3539
3540
3541CONFIGURE_ARGS="$0 ${ac_configure_args}"
3542
3543
3544# Source file containing package/library versioning information.
3545. ${srcdir}/version.sh
3546
cristy15a88782010-01-31 23:24:49 +00003547echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003548# Make sure we can run config.sub.
3549$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003550 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003551
cristy8b350f62009-11-15 23:12:43 +00003552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003553$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003554if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003555 $as_echo_n "(cached) " >&6
3556else
3557 ac_build_alias=$build_alias
3558test "x$ac_build_alias" = x &&
3559 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3560test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003561 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003562ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003563 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003564
3565fi
cristy8b350f62009-11-15 23:12:43 +00003566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003567$as_echo "$ac_cv_build" >&6; }
3568case $ac_cv_build in
3569*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003570*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003571esac
3572build=$ac_cv_build
3573ac_save_IFS=$IFS; IFS='-'
3574set x $ac_cv_build
3575shift
3576build_cpu=$1
3577build_vendor=$2
3578shift; shift
3579# Remember, the first character of IFS is used to create $*,
3580# except with old shells:
3581build_os=$*
3582IFS=$ac_save_IFS
3583case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3584
3585
cristy8b350f62009-11-15 23:12:43 +00003586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003587$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003588if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003589 $as_echo_n "(cached) " >&6
3590else
3591 if test "x$host_alias" = x; then
3592 ac_cv_host=$ac_cv_build
3593else
3594 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003595 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_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_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003600$as_echo "$ac_cv_host" >&6; }
3601case $ac_cv_host in
3602*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003603*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003604esac
3605host=$ac_cv_host
3606ac_save_IFS=$IFS; IFS='-'
3607set x $ac_cv_host
3608shift
3609host_cpu=$1
3610host_vendor=$2
3611shift; shift
3612# Remember, the first character of IFS is used to create $*,
3613# except with old shells:
3614host_os=$*
3615IFS=$ac_save_IFS
3616case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3617
3618
cristy8b350f62009-11-15 23:12:43 +00003619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003620$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003621if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003622 $as_echo_n "(cached) " >&6
3623else
3624 if test "x$target_alias" = x; then
3625 ac_cv_target=$ac_cv_host
3626else
3627 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003628 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003629fi
3630
3631fi
cristy8b350f62009-11-15 23:12:43 +00003632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003633$as_echo "$ac_cv_target" >&6; }
3634case $ac_cv_target in
3635*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003636*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003637esac
3638target=$ac_cv_target
3639ac_save_IFS=$IFS; IFS='-'
3640set x $ac_cv_target
3641shift
3642target_cpu=$1
3643target_vendor=$2
3644shift; shift
3645# Remember, the first character of IFS is used to create $*,
3646# except with old shells:
3647target_os=$*
3648IFS=$ac_save_IFS
3649case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3650
3651
3652# The aliases save the names the user supplied, while $host etc.
3653# will get canonicalized.
3654test -n "$target_alias" &&
3655 test "$program_prefix$program_suffix$program_transform_name" = \
3656 NONENONEs,x,x, &&
3657 program_prefix=${target_alias}-
3658
cristy837d6dc2010-02-27 01:16:57 +00003659
3660
3661
cristy8be34142012-06-17 14:07:18 +00003662
cristy19615b82011-04-13 20:02:01 +00003663MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003664
3665
cristy27d53d62012-07-29 23:30:07 +00003666cat >>confdefs.h <<_ACEOF
3667#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3668_ACEOF
3669
3670
cristy19615b82011-04-13 20:02:01 +00003671MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003672
3673
cristy27d53d62012-07-29 23:30:07 +00003674cat >>confdefs.h <<_ACEOF
3675#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3676_ACEOF
3677
3678
cristy19615b82011-04-13 20:02:01 +00003679MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003680
3681
cristy27d53d62012-07-29 23:30:07 +00003682cat >>confdefs.h <<_ACEOF
3683#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3684_ACEOF
3685
3686
cristy37442762013-02-10 21:07:23 +00003687
3688# Substitute versioning
3689MAGICK_MAJOR_VERSION=7
3690
3691MAGICK_MINOR_VERSION=0
3692
3693MAGICK_MICRO_VERSION=0
3694
3695MAGICK_PATCHLEVEL_VERSION=0
3696
3697MAGICK_VERSION=7.0.0-0
3698
cristy3fe09452014-01-01 12:29:14 +00003699MAGICK_SVN_REVISION=14085:14090M
cristy37442762013-02-10 21:07:23 +00003700
3701
cristy3ed852e2009-09-05 21:47:34 +00003702# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003703MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3704
3705MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3706
cristy37442762013-02-10 21:07:23 +00003707
cristy5ed9c6e2013-07-14 21:20:31 +00003708MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3709
3710MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3711
3712
cristyd694ca32011-03-27 21:42:54 +00003713
cristy3ed852e2009-09-05 21:47:34 +00003714# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3716$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003717# Reject unsafe characters in $srcdir or the absolute working directory
3718# name. Accept space and tab only in the latter.
3719am_lf='
3720'
3721case `pwd` in
3722 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003723 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003724esac
3725case $srcdir in
3726 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003727 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003728esac
cristy3ed852e2009-09-05 21:47:34 +00003729
cristyc0890a62012-07-19 00:18:20 +00003730# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003731# arguments. Must try -L first in case configure is actually a
3732# symlink; some systems play weird games with the mod time of symlinks
3733# (eg FreeBSD returns the mod time of the symlink's containing
3734# directory).
3735if (
cristyc0890a62012-07-19 00:18:20 +00003736 am_has_slept=no
3737 for am_try in 1 2; do
3738 echo "timestamp, slept: $am_has_slept" > conftest.file
3739 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3740 if test "$*" = "X"; then
3741 # -L didn't work.
3742 set X `ls -t "$srcdir/configure" conftest.file`
3743 fi
3744 if test "$*" != "X $srcdir/configure conftest.file" \
3745 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003746
cristyc0890a62012-07-19 00:18:20 +00003747 # If neither matched, then we have a broken ls. This can happen
3748 # if, for instance, CONFIG_SHELL is bash and it inherits a
3749 # broken ls alias from the environment. This has actually
3750 # happened. Such a system could not be considered "sane".
3751 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3752 alias in your environment" "$LINENO" 5
3753 fi
3754 if test "$2" = conftest.file || test $am_try -eq 2; then
3755 break
3756 fi
3757 # Just in case.
3758 sleep 1
3759 am_has_slept=yes
3760 done
cristy73bd4a52010-10-05 11:24:23 +00003761 test "$2" = conftest.file
3762 )
3763then
3764 # Ok.
3765 :
3766else
cristy98dddb52010-11-04 00:30:15 +00003767 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003768Check your system clock" "$LINENO" 5
3769fi
3770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3771$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003772# If we didn't sleep, we still need to ensure time stamps of config.status and
3773# generated files are strictly newer.
3774am_sleep_pid=
3775if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3776 ( sleep 1 ) &
3777 am_sleep_pid=$!
3778fi
cristy73bd4a52010-10-05 11:24:23 +00003779
cristyc0890a62012-07-19 00:18:20 +00003780rm -f conftest.file
3781
3782
cristya5bda012013-11-03 18:05:38 +00003783am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003784
3785# Find a good install program. We prefer a C program (faster),
3786# so one script is as good as another. But avoid the broken or
3787# incompatible versions:
3788# SysV /etc/install, /usr/sbin/install
3789# SunOS /usr/etc/install
3790# IRIX /sbin/install
3791# AIX /bin/install
3792# AmigaOS /C/install, which installs bootblocks on floppy discs
3793# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3794# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3795# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3796# OS/2's system install, which has a completely different semantic
3797# ./install, which can be erroneously created by make from ./install.sh.
3798# Reject install programs that cannot install multiple files.
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3800$as_echo_n "checking for a BSD-compatible install... " >&6; }
3801if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003802if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003803 $as_echo_n "(cached) " >&6
3804else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH
3807do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 # Account for people who put trailing slashes in PATH elements.
3811case $as_dir/ in #((
3812 ./ | .// | /[cC]/* | \
3813 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3814 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3815 /usr/ucb/* ) ;;
3816 *)
3817 # OSF1 and SCO ODT 3.0 have their own names for install.
3818 # Don't use installbsd from OSF since it installs stuff as root
3819 # by default.
3820 for ac_prog in ginstall scoinst install; do
3821 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003822 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003823 if test $ac_prog = install &&
3824 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3825 # AIX install. It has an incompatible calling convention.
3826 :
3827 elif test $ac_prog = install &&
3828 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3829 # program-specific install script used by HP pwplus--don't use.
3830 :
3831 else
3832 rm -rf conftest.one conftest.two conftest.dir
3833 echo one > conftest.one
3834 echo two > conftest.two
3835 mkdir conftest.dir
3836 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3837 test -s conftest.one && test -s conftest.two &&
3838 test -s conftest.dir/conftest.one &&
3839 test -s conftest.dir/conftest.two
3840 then
3841 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3842 break 3
3843 fi
3844 fi
3845 fi
3846 done
3847 done
3848 ;;
3849esac
3850
3851 done
3852IFS=$as_save_IFS
3853
3854rm -rf conftest.one conftest.two conftest.dir
3855
3856fi
3857 if test "${ac_cv_path_install+set}" = set; then
3858 INSTALL=$ac_cv_path_install
3859 else
3860 # As a last resort, use the slow shell script. Don't cache a
3861 # value for INSTALL within a source directory, because that will
3862 # break other packages using the cache if that directory is
3863 # removed, or if the value is a relative name.
3864 INSTALL=$ac_install_sh
3865 fi
3866fi
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3868$as_echo "$INSTALL" >&6; }
3869
3870# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3871# It thinks the first close brace ends the variable substitution.
3872test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3873
3874test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3875
3876test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3877
3878test "$program_prefix" != NONE &&
3879 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3880# Use a double $ so make ignores it.
3881test "$program_suffix" != NONE &&
3882 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3883# Double any \ or $.
3884# By default was `s,x,x', remove it if useless.
3885ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3886program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3887
3888# expand $ac_aux_dir to an absolute path
3889am_aux_dir=`cd $ac_aux_dir && pwd`
3890
3891if test x"${MISSING+set}" != xset; then
3892 case $am_aux_dir in
3893 *\ * | *\ *)
3894 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3895 *)
3896 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3897 esac
3898fi
3899# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003900if eval "$MISSING --is-lightweight"; then
3901 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003902else
3903 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3905$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003906fi
3907
3908if test x"${install_sh}" != xset; then
3909 case $am_aux_dir in
3910 *\ * | *\ *)
3911 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3912 *)
3913 install_sh="\${SHELL} $am_aux_dir/install-sh"
3914 esac
3915fi
3916
cristyc0890a62012-07-19 00:18:20 +00003917# Installed binaries are usually stripped using 'strip' when the user
3918# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003919# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003920# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003921if test "$cross_compiling" != no; then
3922 if test -n "$ac_tool_prefix"; then
3923 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3924set dummy ${ac_tool_prefix}strip; ac_word=$2
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003927if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003928 $as_echo_n "(cached) " >&6
3929else
3930 if test -n "$STRIP"; then
3931 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3932else
3933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934for as_dir in $PATH
3935do
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003940 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 break 2
3943 fi
3944done
3945 done
3946IFS=$as_save_IFS
3947
3948fi
3949fi
3950STRIP=$ac_cv_prog_STRIP
3951if test -n "$STRIP"; then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3953$as_echo "$STRIP" >&6; }
3954else
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956$as_echo "no" >&6; }
3957fi
3958
3959
3960fi
3961if test -z "$ac_cv_prog_STRIP"; then
3962 ac_ct_STRIP=$STRIP
3963 # Extract the first word of "strip", so it can be a program name with args.
3964set dummy strip; ac_word=$2
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003967if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003968 $as_echo_n "(cached) " >&6
3969else
3970 if test -n "$ac_ct_STRIP"; then
3971 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3972else
3973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974for as_dir in $PATH
3975do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003980 ac_cv_prog_ac_ct_STRIP="strip"
3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3983 fi
3984done
3985 done
3986IFS=$as_save_IFS
3987
3988fi
3989fi
3990ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3991if test -n "$ac_ct_STRIP"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3993$as_echo "$ac_ct_STRIP" >&6; }
3994else
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996$as_echo "no" >&6; }
3997fi
3998
3999 if test "x$ac_ct_STRIP" = x; then
4000 STRIP=":"
4001 else
4002 case $cross_compiling:$ac_tool_warned in
4003yes:)
4004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4006ac_tool_warned=yes ;;
4007esac
4008 STRIP=$ac_ct_STRIP
4009 fi
4010else
4011 STRIP="$ac_cv_prog_STRIP"
4012fi
4013
4014fi
4015INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4016
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4018$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4019if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004020 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004021 $as_echo_n "(cached) " >&6
4022else
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4025do
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
4028 for ac_prog in mkdir gmkdir; do
4029 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004030 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004031 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4032 'mkdir (GNU coreutils) '* | \
4033 'mkdir (coreutils) '* | \
4034 'mkdir (fileutils) '4.1*)
4035 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4036 break 3;;
4037 esac
4038 done
4039 done
4040 done
4041IFS=$as_save_IFS
4042
4043fi
4044
4045 test -d ./--version && rmdir ./--version
4046 if test "${ac_cv_path_mkdir+set}" = set; then
4047 MKDIR_P="$ac_cv_path_mkdir -p"
4048 else
4049 # As a last resort, use the slow shell script. Don't cache a
4050 # value for MKDIR_P within a source directory, because that will
4051 # break other packages using the cache if that directory is
4052 # removed, or if the value is a relative name.
4053 MKDIR_P="$ac_install_sh -d"
4054 fi
4055fi
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4057$as_echo "$MKDIR_P" >&6; }
4058
cristy73bd4a52010-10-05 11:24:23 +00004059for ac_prog in gawk mawk nawk awk
4060do
4061 # Extract the first word of "$ac_prog", so it can be a program name with args.
4062set dummy $ac_prog; ac_word=$2
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4064$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004065if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004066 $as_echo_n "(cached) " >&6
4067else
4068 if test -n "$AWK"; then
4069 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4070else
4071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072for as_dir in $PATH
4073do
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
4076 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004078 ac_cv_prog_AWK="$ac_prog"
4079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 break 2
4081 fi
4082done
4083 done
4084IFS=$as_save_IFS
4085
4086fi
4087fi
4088AWK=$ac_cv_prog_AWK
4089if test -n "$AWK"; then
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4091$as_echo "$AWK" >&6; }
4092else
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094$as_echo "no" >&6; }
4095fi
4096
4097
4098 test -n "$AWK" && break
4099done
4100
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4102$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4103set x ${MAKE-make}
4104ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004105if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004106 $as_echo_n "(cached) " >&6
4107else
4108 cat >conftest.make <<\_ACEOF
4109SHELL = /bin/sh
4110all:
4111 @echo '@@@%%%=$(MAKE)=@@@%%%'
4112_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004113# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004114case `${MAKE-make} -f conftest.make 2>/dev/null` in
4115 *@@@%%%=?*=@@@%%%*)
4116 eval ac_cv_prog_make_${ac_make}_set=yes;;
4117 *)
4118 eval ac_cv_prog_make_${ac_make}_set=no;;
4119esac
4120rm -f conftest.make
4121fi
4122if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4124$as_echo "yes" >&6; }
4125 SET_MAKE=
4126else
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128$as_echo "no" >&6; }
4129 SET_MAKE="MAKE=${MAKE-make}"
4130fi
4131
4132rm -rf .tst 2>/dev/null
4133mkdir .tst 2>/dev/null
4134if test -d .tst; then
4135 am__leading_dot=.
4136else
4137 am__leading_dot=_
4138fi
4139rmdir .tst 2>/dev/null
4140
cristya448bd22011-10-14 12:38:13 +00004141# Check whether --enable-silent-rules was given.
4142if test "${enable_silent_rules+set}" = set; then :
4143 enableval=$enable_silent_rules;
4144fi
4145
cristyc0890a62012-07-19 00:18:20 +00004146case $enable_silent_rules in # (((
4147 yes) AM_DEFAULT_VERBOSITY=0;;
4148 no) AM_DEFAULT_VERBOSITY=1;;
4149 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004150esac
cristyc3fb77b2012-02-06 01:49:41 +00004151am_make=${MAKE-make}
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4153$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4154if ${am_cv_make_support_nested_variables+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156else
4157 if $as_echo 'TRUE=$(BAR$(V))
4158BAR0=false
4159BAR1=true
4160V=1
4161am__doit:
4162 @$(TRUE)
4163.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4164 am_cv_make_support_nested_variables=yes
4165else
4166 am_cv_make_support_nested_variables=no
4167fi
4168fi
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4170$as_echo "$am_cv_make_support_nested_variables" >&6; }
4171if test $am_cv_make_support_nested_variables = yes; then
4172 AM_V='$(V)'
4173 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4174else
4175 AM_V=$AM_DEFAULT_VERBOSITY
4176 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4177fi
cristya448bd22011-10-14 12:38:13 +00004178AM_BACKSLASH='\'
4179
cristy73bd4a52010-10-05 11:24:23 +00004180if test "`cd $srcdir && pwd`" != "`pwd`"; then
4181 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4182 # is not polluted with repeated "-I."
4183 am__isrc=' -I$(srcdir)'
4184 # test to see if srcdir already configured
4185 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004186 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004187 fi
4188fi
4189
4190# test whether we have cygpath
4191if test -z "$CYGPATH_W"; then
4192 if (cygpath --version) >/dev/null 2>/dev/null; then
4193 CYGPATH_W='cygpath -w'
4194 else
4195 CYGPATH_W=echo
4196 fi
4197fi
4198
4199
4200# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004201 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004202 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004203
4204
cristya448bd22011-10-14 12:38:13 +00004205cat >>confdefs.h <<_ACEOF
4206#define PACKAGE "$PACKAGE"
4207_ACEOF
4208
4209
4210cat >>confdefs.h <<_ACEOF
4211#define VERSION "$VERSION"
4212_ACEOF
4213
cristy73bd4a52010-10-05 11:24:23 +00004214# Some tools Automake needs.
4215
4216ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4217
4218
4219AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4220
4221
4222AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4223
4224
4225AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4226
4227
4228MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4229
cristyc0890a62012-07-19 00:18:20 +00004230# For better backward compatibility. To be removed once Automake 1.9.x
4231# dies out for good. For more background, see:
4232# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4233# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4234mkdir_p='$(MKDIR_P)'
4235
cristy73bd4a52010-10-05 11:24:23 +00004236# We need awk for the "check" target. The system "awk" is bad on
4237# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004238# Always define AMTAR for backward compatibility. Yes, it's still used
4239# in the wild :-( We should find a proper way to deprecate it ...
4240AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004241
cristye69bdbe2013-05-03 21:40:44 +00004242
4243# We'll loop over all known methods to create a tar archive until one works.
4244_am_tools='gnutar pax cpio none'
4245
cristyc3fb77b2012-02-06 01:49:41 +00004246am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004247
4248
4249
4250
4251
cristy3ed852e2009-09-05 21:47:34 +00004252
cristya5bda012013-11-03 18:05:38 +00004253# POSIX will say in a future version that running "rm -f" with no argument
4254# is OK; and we want to be able to make that assumption in our Makefile
4255# recipes. So use an aggressive probe to check that the usage we want is
4256# actually supported "in the wild" to an acceptable degree.
4257# See automake bug#10828.
4258# To make any issue more visible, cause the running configure to be aborted
4259# by default if the 'rm' program in use doesn't match our expectations; the
4260# user can still override this though.
4261if rm -f && rm -fr && rm -rf; then : OK; else
4262 cat >&2 <<'END'
4263Oops!
4264
4265Your 'rm' program seems unable to run without file operands specified
4266on the command line, even when the '-f' option is present. This is contrary
4267to the behaviour of most rm programs out there, and not conforming with
4268the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4269
4270Please tell bug-automake@gnu.org about your system, including the value
4271of your $PATH and any error possibly output before this message. This
4272can help us improve future automake versions.
4273
4274END
4275 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4276 echo 'Configuration will proceed anyway, since you have set the' >&2
4277 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4278 echo >&2
4279 else
4280 cat >&2 <<'END'
4281Aborting the configuration process, to ensure you take notice of the issue.
4282
4283You can download and install GNU coreutils to get an 'rm' implementation
4284that behaves properly: <http://www.gnu.org/software/coreutils/>.
4285
4286If you want to complete the configuration process using your problematic
4287'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4288to "yes", and re-run configure.
4289
4290END
4291 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4292 fi
4293fi
cristye69bdbe2013-05-03 21:40:44 +00004294
cristy3ed852e2009-09-05 21:47:34 +00004295# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004296# Check whether --enable-silent-rules was given.
4297if test "${enable_silent_rules+set}" = set; then :
4298 enableval=$enable_silent_rules;
4299fi
4300
cristyc0890a62012-07-19 00:18:20 +00004301case $enable_silent_rules in # (((
4302 yes) AM_DEFAULT_VERBOSITY=0;;
4303 no) AM_DEFAULT_VERBOSITY=1;;
4304 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004305esac
cristyc3fb77b2012-02-06 01:49:41 +00004306am_make=${MAKE-make}
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4308$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4309if ${am_cv_make_support_nested_variables+:} false; then :
4310 $as_echo_n "(cached) " >&6
4311else
4312 if $as_echo 'TRUE=$(BAR$(V))
4313BAR0=false
4314BAR1=true
4315V=1
4316am__doit:
4317 @$(TRUE)
4318.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4319 am_cv_make_support_nested_variables=yes
4320else
4321 am_cv_make_support_nested_variables=no
4322fi
4323fi
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4325$as_echo "$am_cv_make_support_nested_variables" >&6; }
4326if test $am_cv_make_support_nested_variables = yes; then
4327 AM_V='$(V)'
4328 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4329else
4330 AM_V=$AM_DEFAULT_VERBOSITY
4331 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4332fi
cristy73bd4a52010-10-05 11:24:23 +00004333AM_BACKSLASH='\'
4334
cristy3ed852e2009-09-05 21:47:34 +00004335
cristy5ed9c6e2013-07-14 21:20:31 +00004336# versionning of library
cristy3ed852e2009-09-05 21:47:34 +00004337MAGICK_LIB_VERSION="0x"
4338if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4339 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4340fi
4341MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4342if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4343 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4344fi
4345MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4346if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4347 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4348fi
4349MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4350
4351
4352# Definition used to define MagickLibVersionText in version.h
4353MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4354
4355
4356# Definition used to define MagickLibVersionNumber in version.h
4357MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4358
4359
cristy5ed9c6e2013-07-14 21:20:31 +00004360MAGICKPP_LIB_VERSION="0x"
4361if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4362 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4363fi
4364MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4365if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4366 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4367fi
4368MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4369if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4370 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4371fi
4372MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4373
4374
4375# Definition used to define MagickLibVersionText in version.h
4376MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4377
4378
4379# Definition used to define MagickLibVersionNumber in version.h
4380MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4381
4382
4383
4384
cristy3ed852e2009-09-05 21:47:34 +00004385# Regenerate config.status if ChangeLog or version.sh is updated.
4386CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4387
4388
4389PERLMAINCC=$CC
4390
4391MAGICK_CFLAGS=''
4392MAGICK_CPPFLAGS=$CPPFLAGS_USER
4393MAGICK_PCFLAGS=$CPPFLAGS_USER
4394MAGICK_LDFLAGS=''
4395MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004396MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004397
4398#
4399# Evaluate shell variable equivalents to Makefile directory variables
4400#
4401if test "x$prefix" = xNONE; then
4402 prefix=$ac_default_prefix
4403fi
4404# Let make expand exec_prefix.
4405if test "x$exec_prefix" = xNONE; then
4406 exec_prefix='${prefix}'
4407fi
4408
4409#
4410eval "eval PREFIX_DIR=${prefix}"
4411
4412eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4413
4414eval "eval BIN_DIR=$bindir"
4415
4416eval "eval SBIN_DIR=$sbindir"
4417
4418eval "eval LIBEXEC_DIR=$libexecdir"
4419
4420eval "eval DATA_DIR=$datadir"
4421
cristy4e65ec22012-04-08 01:33:27 +00004422eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004423
cristy3ed852e2009-09-05 21:47:34 +00004424eval "eval SYSCONF_DIR=$sysconfdir"
4425
4426eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4427
4428eval "eval LOCALSTATE_DIR=$localstatedir"
4429
4430eval "eval LIB_DIR=$libdir"
4431
4432eval "eval INCLUDE_DIR=$includedir"
4433
4434eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4435
4436eval "eval INFO_DIR=$infodir"
4437
4438eval "eval MAN_DIR=$mandir"
4439
4440
4441# Get full paths to source and build directories
4442srcdirfull="`cd $srcdir && pwd`"
4443builddir="`pwd`"
4444
4445#
4446# Compute variables useful for running uninstalled software.
4447#
4448MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4449MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4450MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4451MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4452DIRSEP=':'
4453case "${build_os}" in
4454 mingw* )
4455 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4456 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4457 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4458 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4459 DIRSEP=';'
4460 ;;
4461esac
4462case "${host_os}" in
4463 mingw* )
4464 DIRSEP=';'
4465 ;;
4466esac
4467
4468
4469
4470
4471
4472
cristya0b81c32010-01-22 02:54:33 +00004473
4474#
4475# Enable OS features.
4476#
cristy73bd4a52010-10-05 11:24:23 +00004477DEPDIR="${am__leading_dot}deps"
4478
4479ac_config_commands="$ac_config_commands depfiles"
4480
4481
4482am_make=${MAKE-make}
4483cat > confinc << 'END'
4484am__doit:
4485 @echo this is the am__doit target
4486.PHONY: am__doit
4487END
4488# If we don't find an include directive, just comment out the code.
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4490$as_echo_n "checking for style of include used by $am_make... " >&6; }
4491am__include="#"
4492am__quote=
4493_am_result=none
4494# First try GNU make style include.
4495echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004496# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004497case `$am_make -s -f confmf 2> /dev/null` in #(
4498*the\ am__doit\ target*)
4499 am__include=include
4500 am__quote=
4501 _am_result=GNU
4502 ;;
4503esac
4504# Now try BSD make style include.
4505if test "$am__include" = "#"; then
4506 echo '.include "confinc"' > confmf
4507 case `$am_make -s -f confmf 2> /dev/null` in #(
4508 *the\ am__doit\ target*)
4509 am__include=.include
4510 am__quote="\""
4511 _am_result=BSD
4512 ;;
4513 esac
4514fi
4515
4516
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4518$as_echo "$_am_result" >&6; }
4519rm -f confinc confmf
4520
4521# Check whether --enable-dependency-tracking was given.
4522if test "${enable_dependency_tracking+set}" = set; then :
4523 enableval=$enable_dependency_tracking;
4524fi
4525
4526if test "x$enable_dependency_tracking" != xno; then
4527 am_depcomp="$ac_aux_dir/depcomp"
4528 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004529 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004530fi
4531 if test "x$enable_dependency_tracking" != xno; then
4532 AMDEP_TRUE=
4533 AMDEP_FALSE='#'
4534else
4535 AMDEP_TRUE='#'
4536 AMDEP_FALSE=
4537fi
4538
4539
cristy3ed852e2009-09-05 21:47:34 +00004540ac_ext=c
4541ac_cpp='$CPP $CPPFLAGS'
4542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545if test -n "$ac_tool_prefix"; then
4546 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4547set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004549$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004550if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004551 $as_echo_n "(cached) " >&6
4552else
4553 if test -n "$CC"; then
4554 ac_cv_prog_CC="$CC" # Let the user override the test.
4555else
4556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557for as_dir in $PATH
4558do
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004563 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004565 break 2
4566 fi
4567done
cristy8b350f62009-11-15 23:12:43 +00004568 done
cristy3ed852e2009-09-05 21:47:34 +00004569IFS=$as_save_IFS
4570
4571fi
4572fi
4573CC=$ac_cv_prog_CC
4574if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004576$as_echo "$CC" >&6; }
4577else
cristy8b350f62009-11-15 23:12:43 +00004578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004579$as_echo "no" >&6; }
4580fi
4581
4582
4583fi
4584if test -z "$ac_cv_prog_CC"; then
4585 ac_ct_CC=$CC
4586 # Extract the first word of "gcc", so it can be a program name with args.
4587set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004589$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004590if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004591 $as_echo_n "(cached) " >&6
4592else
4593 if test -n "$ac_ct_CC"; then
4594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4595else
4596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597for as_dir in $PATH
4598do
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004601 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004603 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004605 break 2
4606 fi
4607done
cristy8b350f62009-11-15 23:12:43 +00004608 done
cristy3ed852e2009-09-05 21:47:34 +00004609IFS=$as_save_IFS
4610
4611fi
4612fi
4613ac_ct_CC=$ac_cv_prog_ac_ct_CC
4614if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004616$as_echo "$ac_ct_CC" >&6; }
4617else
cristy8b350f62009-11-15 23:12:43 +00004618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004619$as_echo "no" >&6; }
4620fi
4621
4622 if test "x$ac_ct_CC" = x; then
4623 CC=""
4624 else
4625 case $cross_compiling:$ac_tool_warned in
4626yes:)
cristy8b350f62009-11-15 23:12:43 +00004627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4629ac_tool_warned=yes ;;
4630esac
4631 CC=$ac_ct_CC
4632 fi
4633else
4634 CC="$ac_cv_prog_CC"
4635fi
4636
4637if test -z "$CC"; then
4638 if test -n "$ac_tool_prefix"; then
4639 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4640set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004642$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004643if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004644 $as_echo_n "(cached) " >&6
4645else
4646 if test -n "$CC"; then
4647 ac_cv_prog_CC="$CC" # Let the user override the test.
4648else
4649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650for as_dir in $PATH
4651do
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004654 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004656 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004658 break 2
4659 fi
4660done
cristy8b350f62009-11-15 23:12:43 +00004661 done
cristy3ed852e2009-09-05 21:47:34 +00004662IFS=$as_save_IFS
4663
4664fi
4665fi
4666CC=$ac_cv_prog_CC
4667if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004669$as_echo "$CC" >&6; }
4670else
cristy8b350f62009-11-15 23:12:43 +00004671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004672$as_echo "no" >&6; }
4673fi
4674
4675
4676 fi
4677fi
4678if test -z "$CC"; then
4679 # Extract the first word of "cc", so it can be a program name with args.
4680set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004682$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004683if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004684 $as_echo_n "(cached) " >&6
4685else
4686 if test -n "$CC"; then
4687 ac_cv_prog_CC="$CC" # Let the user override the test.
4688else
4689 ac_prog_rejected=no
4690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691for as_dir in $PATH
4692do
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004695 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4698 ac_prog_rejected=yes
4699 continue
4700 fi
4701 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004703 break 2
4704 fi
4705done
cristy8b350f62009-11-15 23:12:43 +00004706 done
cristy3ed852e2009-09-05 21:47:34 +00004707IFS=$as_save_IFS
4708
4709if test $ac_prog_rejected = yes; then
4710 # We found a bogon in the path, so make sure we never use it.
4711 set dummy $ac_cv_prog_CC
4712 shift
4713 if test $# != 0; then
4714 # We chose a different compiler from the bogus one.
4715 # However, it has the same basename, so the bogon will be chosen
4716 # first if we set CC to just the basename; use the full file name.
4717 shift
4718 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4719 fi
4720fi
4721fi
4722fi
4723CC=$ac_cv_prog_CC
4724if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004726$as_echo "$CC" >&6; }
4727else
cristy8b350f62009-11-15 23:12:43 +00004728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004729$as_echo "no" >&6; }
4730fi
4731
4732
4733fi
4734if test -z "$CC"; then
4735 if test -n "$ac_tool_prefix"; then
4736 for ac_prog in cl.exe
4737 do
4738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4739set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004741$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004742if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004743 $as_echo_n "(cached) " >&6
4744else
4745 if test -n "$CC"; then
4746 ac_cv_prog_CC="$CC" # Let the user override the test.
4747else
4748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH
4750do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004753 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004755 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004757 break 2
4758 fi
4759done
cristy8b350f62009-11-15 23:12:43 +00004760 done
cristy3ed852e2009-09-05 21:47:34 +00004761IFS=$as_save_IFS
4762
4763fi
4764fi
4765CC=$ac_cv_prog_CC
4766if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004768$as_echo "$CC" >&6; }
4769else
cristy8b350f62009-11-15 23:12:43 +00004770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004771$as_echo "no" >&6; }
4772fi
4773
4774
4775 test -n "$CC" && break
4776 done
4777fi
4778if test -z "$CC"; then
4779 ac_ct_CC=$CC
4780 for ac_prog in cl.exe
4781do
4782 # Extract the first word of "$ac_prog", so it can be a program name with args.
4783set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004785$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004786if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004787 $as_echo_n "(cached) " >&6
4788else
4789 if test -n "$ac_ct_CC"; then
4790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4791else
4792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004797 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004799 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004801 break 2
4802 fi
4803done
cristy8b350f62009-11-15 23:12:43 +00004804 done
cristy3ed852e2009-09-05 21:47:34 +00004805IFS=$as_save_IFS
4806
4807fi
4808fi
4809ac_ct_CC=$ac_cv_prog_ac_ct_CC
4810if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004812$as_echo "$ac_ct_CC" >&6; }
4813else
cristy8b350f62009-11-15 23:12:43 +00004814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004815$as_echo "no" >&6; }
4816fi
4817
4818
4819 test -n "$ac_ct_CC" && break
4820done
4821
4822 if test "x$ac_ct_CC" = x; then
4823 CC=""
4824 else
4825 case $cross_compiling:$ac_tool_warned in
4826yes:)
cristy8b350f62009-11-15 23:12:43 +00004827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4829ac_tool_warned=yes ;;
4830esac
4831 CC=$ac_ct_CC
4832 fi
4833fi
4834
4835fi
4836
4837
cristy8b350f62009-11-15 23:12:43 +00004838test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004840as_fn_error $? "no acceptable C compiler found in \$PATH
4841See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004842
4843# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004844$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004845set X $ac_compile
4846ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004847for ac_option in --version -v -V -qversion; do
4848 { { ac_try="$ac_compiler $ac_option >&5"
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
4855 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004856 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004857 if test -s conftest.err; then
4858 sed '10a\
4859... rest of stderr output deleted ...
4860 10q' conftest.err >conftest.er1
4861 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004862 fi
cristycd4c5312009-11-22 01:19:08 +00004863 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4865 test $ac_status = 0; }
4866done
cristy3ed852e2009-09-05 21:47:34 +00004867
cristy8b350f62009-11-15 23:12:43 +00004868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004869/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004870
cristy3ed852e2009-09-05 21:47:34 +00004871int
4872main ()
4873{
4874
4875 ;
4876 return 0;
4877}
4878_ACEOF
4879ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004880ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004881# Try to create an executable without -o first, disregard a.out.
4882# It will help us diagnose broken compilers, and finding out an intuition
4883# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4885$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004886ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4887
4888# The possible output files:
4889ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4890
4891ac_rmfiles=
4892for ac_file in $ac_files
4893do
4894 case $ac_file in
4895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4896 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4897 esac
4898done
4899rm -f $ac_rmfiles
4900
cristy8b350f62009-11-15 23:12:43 +00004901if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004902case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905esac
cristy8b350f62009-11-15 23:12:43 +00004906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4907$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004908 (eval "$ac_link_default") 2>&5
4909 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4911 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004912 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4913# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4914# in a Makefile. We should not override ac_cv_exeext if it was cached,
4915# so that the user can short-circuit this test for compilers unknown to
4916# Autoconf.
4917for ac_file in $ac_files ''
4918do
4919 test -f "$ac_file" || continue
4920 case $ac_file in
4921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4922 ;;
4923 [ab].out )
4924 # We found the default executable, but exeext='' is most
4925 # certainly right.
4926 break;;
4927 *.* )
cristy8b350f62009-11-15 23:12:43 +00004928 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004929 then :; else
4930 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4931 fi
4932 # We set ac_cv_exeext here because the later test for it is not
4933 # safe: cross compilers may not add the suffix if given an `-o'
4934 # argument, so we may need to know it at that point already.
4935 # Even if this section looks crufty: it has the advantage of
4936 # actually working.
4937 break;;
4938 * )
4939 break;;
4940 esac
4941done
4942test "$ac_cv_exeext" = no && ac_cv_exeext=
4943
4944else
4945 ac_file=''
4946fi
cristy8b350f62009-11-15 23:12:43 +00004947if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949$as_echo "no" >&6; }
4950$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004951sed 's/^/| /' conftest.$ac_ext >&5
4952
cristy8b350f62009-11-15 23:12:43 +00004953{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004954$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004955as_fn_error 77 "C compiler cannot create executables
4956See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004957else
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4959$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004960fi
cristycd4c5312009-11-22 01:19:08 +00004961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4962$as_echo_n "checking for C compiler default output file name... " >&6; }
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4964$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004965ac_exeext=$ac_cv_exeext
4966
cristycd4c5312009-11-22 01:19:08 +00004967rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004968ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004970$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004971if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004972case "(($ac_try" in
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4975esac
cristy8b350f62009-11-15 23:12:43 +00004976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4977$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004978 (eval "$ac_link") 2>&5
4979 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4981 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004982 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4983# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4984# work properly (i.e., refer to `conftest.exe'), while it won't with
4985# `rm'.
4986for ac_file in conftest.exe conftest conftest.*; do
4987 test -f "$ac_file" || continue
4988 case $ac_file in
4989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4990 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4991 break;;
4992 * ) break;;
4993 esac
4994done
4995else
cristy8b350f62009-11-15 23:12:43 +00004996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004998as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4999See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005000fi
cristycd4c5312009-11-22 01:19:08 +00005001rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005003$as_echo "$ac_cv_exeext" >&6; }
5004
5005rm -f conftest.$ac_ext
5006EXEEXT=$ac_cv_exeext
5007ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009/* end confdefs.h. */
5010#include <stdio.h>
5011int
5012main ()
5013{
5014FILE *f = fopen ("conftest.out", "w");
5015 return ferror (f) || fclose (f) != 0;
5016
5017 ;
5018 return 0;
5019}
5020_ACEOF
5021ac_clean_files="$ac_clean_files conftest.out"
5022# Check that the compiler produces executables we can run. If not, either
5023# the compiler is broken, or we cross compile.
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5025$as_echo_n "checking whether we are cross compiling... " >&6; }
5026if test "$cross_compiling" != yes; then
5027 { { ac_try="$ac_link"
5028case "(($ac_try" in
5029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030 *) ac_try_echo=$ac_try;;
5031esac
5032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5033$as_echo "$ac_try_echo"; } >&5
5034 (eval "$ac_link") 2>&5
5035 ac_status=$?
5036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5037 test $ac_status = 0; }
5038 if { ac_try='./conftest$ac_cv_exeext'
5039 { { case "(($ac_try" in
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5042esac
5043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5044$as_echo "$ac_try_echo"; } >&5
5045 (eval "$ac_try") 2>&5
5046 ac_status=$?
5047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5048 test $ac_status = 0; }; }; then
5049 cross_compiling=no
5050 else
5051 if test "$cross_compiling" = maybe; then
5052 cross_compiling=yes
5053 else
5054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005056as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005057If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005058See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005059 fi
5060 fi
5061fi
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5063$as_echo "$cross_compiling" >&6; }
5064
5065rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5066ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005068$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005069if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005070 $as_echo_n "(cached) " >&6
5071else
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
5083rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005084if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005085case "(($ac_try" in
5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087 *) ac_try_echo=$ac_try;;
5088esac
cristy8b350f62009-11-15 23:12:43 +00005089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5090$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005091 (eval "$ac_compile") 2>&5
5092 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5094 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005095 for ac_file in conftest.o conftest.obj conftest.*; do
5096 test -f "$ac_file" || continue;
5097 case $ac_file in
5098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5099 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5100 break;;
5101 esac
5102done
5103else
5104 $as_echo "$as_me: failed program was:" >&5
5105sed 's/^/| /' conftest.$ac_ext >&5
5106
cristy8b350f62009-11-15 23:12:43 +00005107{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005109as_fn_error $? "cannot compute suffix of object files: cannot compile
5110See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005111fi
cristy3ed852e2009-09-05 21:47:34 +00005112rm -f conftest.$ac_cv_objext conftest.$ac_ext
5113fi
cristy8b350f62009-11-15 23:12:43 +00005114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005115$as_echo "$ac_cv_objext" >&6; }
5116OBJEXT=$ac_cv_objext
5117ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005119$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005120if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005121 $as_echo_n "(cached) " >&6
5122else
cristy8b350f62009-11-15 23:12:43 +00005123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005124/* end confdefs.h. */
5125
5126int
5127main ()
5128{
5129#ifndef __GNUC__
5130 choke me
5131#endif
5132
5133 ;
5134 return 0;
5135}
5136_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005137if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005138 ac_compiler_gnu=yes
5139else
cristy8b350f62009-11-15 23:12:43 +00005140 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005141fi
cristy3ed852e2009-09-05 21:47:34 +00005142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5143ac_cv_c_compiler_gnu=$ac_compiler_gnu
5144
5145fi
cristy8b350f62009-11-15 23:12:43 +00005146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005147$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5148if test $ac_compiler_gnu = yes; then
5149 GCC=yes
5150else
5151 GCC=
5152fi
5153ac_test_CFLAGS=${CFLAGS+set}
5154ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005156$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005157if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005158 $as_echo_n "(cached) " >&6
5159else
5160 ac_save_c_werror_flag=$ac_c_werror_flag
5161 ac_c_werror_flag=yes
5162 ac_cv_prog_cc_g=no
5163 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005165/* end confdefs.h. */
5166
5167int
5168main ()
5169{
5170
5171 ;
5172 return 0;
5173}
5174_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005175if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005176 ac_cv_prog_cc_g=yes
5177else
cristy8b350f62009-11-15 23:12:43 +00005178 CFLAGS=""
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005180/* end confdefs.h. */
5181
5182int
5183main ()
5184{
5185
5186 ;
5187 return 0;
5188}
5189_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005190if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005191
cristy8b350f62009-11-15 23:12:43 +00005192else
5193 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005194 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005196/* end confdefs.h. */
5197
5198int
5199main ()
5200{
5201
5202 ;
5203 return 0;
5204}
5205_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005206if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005207 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005208fi
cristy3ed852e2009-09-05 21:47:34 +00005209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210fi
cristy3ed852e2009-09-05 21:47:34 +00005211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212fi
cristy3ed852e2009-09-05 21:47:34 +00005213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214 ac_c_werror_flag=$ac_save_c_werror_flag
5215fi
cristy8b350f62009-11-15 23:12:43 +00005216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005217$as_echo "$ac_cv_prog_cc_g" >&6; }
5218if test "$ac_test_CFLAGS" = set; then
5219 CFLAGS=$ac_save_CFLAGS
5220elif test $ac_cv_prog_cc_g = yes; then
5221 if test "$GCC" = yes; then
5222 CFLAGS="-g -O2"
5223 else
5224 CFLAGS="-g"
5225 fi
5226else
5227 if test "$GCC" = yes; then
5228 CFLAGS="-O2"
5229 else
5230 CFLAGS=
5231 fi
5232fi
cristy8b350f62009-11-15 23:12:43 +00005233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005234$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005235if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005236 $as_echo_n "(cached) " >&6
5237else
5238 ac_cv_prog_cc_c89=no
5239ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005241/* end confdefs.h. */
5242#include <stdarg.h>
5243#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005244struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005245/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5246struct buf { int x; };
5247FILE * (*rcsopen) (struct buf *, struct stat *, int);
5248static char *e (p, i)
5249 char **p;
5250 int i;
5251{
5252 return p[i];
5253}
5254static char *f (char * (*g) (char **, int), char **p, ...)
5255{
5256 char *s;
5257 va_list v;
5258 va_start (v,p);
5259 s = g (p, va_arg (v,int));
5260 va_end (v);
5261 return s;
5262}
5263
5264/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5265 function prototypes and stuff, but not '\xHH' hex character constants.
5266 These don't provoke an error unfortunately, instead are silently treated
5267 as 'x'. The following induces an error, until -std is added to get
5268 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5269 array size at least. It's necessary to write '\x00'==0 to get something
5270 that's true only with -std. */
5271int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5272
5273/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5274 inside strings and character constants. */
5275#define FOO(x) 'x'
5276int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5277
5278int test (int i, double x);
5279struct s1 {int (*f) (int a);};
5280struct s2 {int (*f) (double a);};
5281int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5282int argc;
5283char **argv;
5284int
5285main ()
5286{
5287return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5288 ;
5289 return 0;
5290}
5291_ACEOF
5292for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5293 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5294do
5295 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005296 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005297 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005298fi
cristy3ed852e2009-09-05 21:47:34 +00005299rm -f core conftest.err conftest.$ac_objext
5300 test "x$ac_cv_prog_cc_c89" != "xno" && break
5301done
5302rm -f conftest.$ac_ext
5303CC=$ac_save_CC
5304
5305fi
5306# AC_CACHE_VAL
5307case "x$ac_cv_prog_cc_c89" in
5308 x)
cristy8b350f62009-11-15 23:12:43 +00005309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005310$as_echo "none needed" >&6; } ;;
5311 xno)
cristy8b350f62009-11-15 23:12:43 +00005312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005313$as_echo "unsupported" >&6; } ;;
5314 *)
5315 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005317$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5318esac
cristy8b350f62009-11-15 23:12:43 +00005319if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005320
cristy8b350f62009-11-15 23:12:43 +00005321fi
cristy3ed852e2009-09-05 21:47:34 +00005322
5323ac_ext=c
5324ac_cpp='$CPP $CPPFLAGS'
5325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5327ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005328
cristya5bda012013-11-03 18:05:38 +00005329ac_ext=c
5330ac_cpp='$CPP $CPPFLAGS'
5331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5333ac_compiler_gnu=$ac_cv_c_compiler_gnu
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5335$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5336if ${am_cv_prog_cc_c_o+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338else
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340/* end confdefs.h. */
5341
5342int
5343main ()
5344{
5345
5346 ;
5347 return 0;
5348}
5349_ACEOF
5350 # Make sure it works both with $CC and with simple cc.
5351 # Following AC_PROG_CC_C_O, we do the test twice because some
5352 # compilers refuse to overwrite an existing .o file with -o,
5353 # though they will create one.
5354 am_cv_prog_cc_c_o=yes
5355 for am_i in 1 2; do
5356 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5357 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5358 ac_status=$?
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } \
5361 && test -f conftest2.$ac_objext; then
5362 : OK
5363 else
5364 am_cv_prog_cc_c_o=no
5365 break
5366 fi
5367 done
5368 rm -f core conftest*
5369 unset am_i
5370fi
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5372$as_echo "$am_cv_prog_cc_c_o" >&6; }
5373if test "$am_cv_prog_cc_c_o" != yes; then
5374 # Losing compiler, so override with the script.
5375 # FIXME: It is wrong to rewrite CC.
5376 # But if we don't then we get into trouble of one sort or another.
5377 # A longer-term fix would be to have automake use am__CC in this case,
5378 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5379 CC="$am_aux_dir/compile $CC"
5380fi
5381ac_ext=c
5382ac_cpp='$CPP $CPPFLAGS'
5383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385ac_compiler_gnu=$ac_cv_c_compiler_gnu
5386
5387
cristy73bd4a52010-10-05 11:24:23 +00005388depcc="$CC" am_compiler_list=
5389
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5391$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005392if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005393 $as_echo_n "(cached) " >&6
5394else
5395 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5396 # We make a subdir and do the tests there. Otherwise we can end up
5397 # making bogus files that we don't know about and never remove. For
5398 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005399 # making a dummy file named 'D' -- because '-MD' means "put the output
5400 # in D".
cristy7247bba2012-02-05 16:37:27 +00005401 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005402 mkdir conftest.dir
5403 # Copy depcomp to subdir because otherwise we won't find it if we're
5404 # using a relative directory.
5405 cp "$am_depcomp" conftest.dir
5406 cd conftest.dir
5407 # We will build objects and dependencies in a subdirectory because
5408 # it helps to detect inapplicable dependency modes. For instance
5409 # both Tru64's cc and ICC support -MD to output dependencies as a
5410 # side effect of compilation, but ICC will put the dependencies in
5411 # the current directory while Tru64 will put them in the object
5412 # directory.
5413 mkdir sub
5414
5415 am_cv_CC_dependencies_compiler_type=none
5416 if test "$am_compiler_list" = ""; then
5417 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5418 fi
5419 am__universal=false
5420 case " $depcc " in #(
5421 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5422 esac
5423
5424 for depmode in $am_compiler_list; do
5425 # Setup a source with many dependencies, because some compilers
5426 # like to wrap large dependency lists on column 80 (with \), and
5427 # we should not choose a depcomp mode which is confused by this.
5428 #
5429 # We need to recreate these files for each test, as the compiler may
5430 # overwrite some of them when testing with obscure command lines.
5431 # This happens at least with the AIX C compiler.
5432 : > sub/conftest.c
5433 for i in 1 2 3 4 5 6; do
5434 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005435 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5436 # Solaris 10 /bin/sh.
5437 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005438 done
5439 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5440
cristyc0890a62012-07-19 00:18:20 +00005441 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005442 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005443 # handle '-M -o', and we need to detect this. Also, some Intel
5444 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005445 am__obj=sub/conftest.${OBJEXT-o}
5446 am__minus_obj="-o $am__obj"
5447 case $depmode in
5448 gcc)
5449 # This depmode causes a compiler race in universal mode.
5450 test "$am__universal" = false || continue
5451 ;;
5452 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005453 # After this tag, mechanisms are not by side-effect, so they'll
5454 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005455 if test "x$enable_dependency_tracking" = xyes; then
5456 continue
5457 else
5458 break
5459 fi
5460 ;;
cristy7247bba2012-02-05 16:37:27 +00005461 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005462 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005463 # not run yet. These depmodes are late enough in the game, and
5464 # so weak that their functioning should not be impacted.
5465 am__obj=conftest.${OBJEXT-o}
5466 am__minus_obj=
5467 ;;
5468 none) break ;;
5469 esac
5470 if depmode=$depmode \
5471 source=sub/conftest.c object=$am__obj \
5472 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5473 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5474 >/dev/null 2>conftest.err &&
5475 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5476 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5477 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5478 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5479 # icc doesn't choke on unknown options, it will just issue warnings
5480 # or remarks (even with -Werror). So we grep stderr for any message
5481 # that says an option was ignored or not supported.
5482 # When given -MP, icc 7.0 and 7.1 complain thusly:
5483 # icc: Command line warning: ignoring option '-M'; no argument required
5484 # The diagnosis changed in icc 8.0:
5485 # icc: Command line remark: option '-MP' not supported
5486 if (grep 'ignoring option' conftest.err ||
5487 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5488 am_cv_CC_dependencies_compiler_type=$depmode
5489 break
5490 fi
5491 fi
5492 done
5493
5494 cd ..
5495 rm -rf conftest.dir
5496else
5497 am_cv_CC_dependencies_compiler_type=none
5498fi
5499
5500fi
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5502$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5503CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5504
5505 if
5506 test "x$enable_dependency_tracking" != xno \
5507 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5508 am__fastdepCC_TRUE=
5509 am__fastdepCC_FALSE='#'
5510else
5511 am__fastdepCC_TRUE='#'
5512 am__fastdepCC_FALSE=
5513fi
5514
5515
cristy3ed852e2009-09-05 21:47:34 +00005516
cristya0b81c32010-01-22 02:54:33 +00005517ac_ext=c
5518ac_cpp='$CPP $CPPFLAGS'
5519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5521ac_compiler_gnu=$ac_cv_c_compiler_gnu
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5523$as_echo_n "checking how to run the C preprocessor... " >&6; }
5524# On Suns, sometimes $CPP names a directory.
5525if test -n "$CPP" && test -d "$CPP"; then
5526 CPP=
5527fi
5528if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005529 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005530 $as_echo_n "(cached) " >&6
5531else
5532 # Double quotes because CPP needs to be expanded
5533 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5534 do
5535 ac_preproc_ok=false
5536for ac_c_preproc_warn_flag in '' yes
5537do
5538 # Use a header file that comes with gcc, so configuring glibc
5539 # with a fresh cross-compiler works.
5540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5541 # <limits.h> exists even on freestanding compilers.
5542 # On the NeXT, cc -E runs the code through the compiler's parser,
5543 # not just through cpp. "Syntax error" is here to catch this case.
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545/* end confdefs.h. */
5546#ifdef __STDC__
5547# include <limits.h>
5548#else
5549# include <assert.h>
5550#endif
5551 Syntax error
5552_ACEOF
5553if ac_fn_c_try_cpp "$LINENO"; then :
5554
5555else
5556 # Broken: fails on valid input.
5557continue
5558fi
cristyda16f162011-02-19 23:52:17 +00005559rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005560
5561 # OK, works on sane cases. Now check whether nonexistent headers
5562 # can be detected and how.
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564/* end confdefs.h. */
5565#include <ac_nonexistent.h>
5566_ACEOF
5567if ac_fn_c_try_cpp "$LINENO"; then :
5568 # Broken: success on invalid input.
5569continue
5570else
5571 # Passes both tests.
5572ac_preproc_ok=:
5573break
5574fi
cristyda16f162011-02-19 23:52:17 +00005575rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005576
5577done
5578# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005579rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005580if $ac_preproc_ok; then :
5581 break
5582fi
5583
5584 done
5585 ac_cv_prog_CPP=$CPP
5586
5587fi
5588 CPP=$ac_cv_prog_CPP
5589else
5590 ac_cv_prog_CPP=$CPP
5591fi
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5593$as_echo "$CPP" >&6; }
5594ac_preproc_ok=false
5595for ac_c_preproc_warn_flag in '' yes
5596do
5597 # Use a header file that comes with gcc, so configuring glibc
5598 # with a fresh cross-compiler works.
5599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5600 # <limits.h> exists even on freestanding compilers.
5601 # On the NeXT, cc -E runs the code through the compiler's parser,
5602 # not just through cpp. "Syntax error" is here to catch this case.
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604/* end confdefs.h. */
5605#ifdef __STDC__
5606# include <limits.h>
5607#else
5608# include <assert.h>
5609#endif
5610 Syntax error
5611_ACEOF
5612if ac_fn_c_try_cpp "$LINENO"; then :
5613
5614else
5615 # Broken: fails on valid input.
5616continue
5617fi
cristyda16f162011-02-19 23:52:17 +00005618rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005619
5620 # OK, works on sane cases. Now check whether nonexistent headers
5621 # can be detected and how.
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623/* end confdefs.h. */
5624#include <ac_nonexistent.h>
5625_ACEOF
5626if ac_fn_c_try_cpp "$LINENO"; then :
5627 # Broken: success on invalid input.
5628continue
5629else
5630 # Passes both tests.
5631ac_preproc_ok=:
5632break
5633fi
cristyda16f162011-02-19 23:52:17 +00005634rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005635
5636done
5637# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005638rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005639if $ac_preproc_ok; then :
5640
5641else
5642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005644as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5645See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005646fi
5647
5648ac_ext=c
5649ac_cpp='$CPP $CPPFLAGS'
5650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5652ac_compiler_gnu=$ac_cv_c_compiler_gnu
5653
5654
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5656$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005657if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005658 $as_echo_n "(cached) " >&6
5659else
5660 if test -z "$GREP"; then
5661 ac_path_GREP_found=false
5662 # Loop through the user's path and test for each of PROGNAME-LIST
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5665do
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_prog in grep ggrep; do
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005671 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005672# Check for GNU ac_path_GREP and select it if it is found.
5673 # Check for GNU $ac_path_GREP
5674case `"$ac_path_GREP" --version 2>&1` in
5675*GNU*)
5676 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5677*)
5678 ac_count=0
5679 $as_echo_n 0123456789 >"conftest.in"
5680 while :
5681 do
5682 cat "conftest.in" "conftest.in" >"conftest.tmp"
5683 mv "conftest.tmp" "conftest.in"
5684 cp "conftest.in" "conftest.nl"
5685 $as_echo 'GREP' >> "conftest.nl"
5686 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5688 as_fn_arith $ac_count + 1 && ac_count=$as_val
5689 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5690 # Best one so far, save it but keep looking for a better one
5691 ac_cv_path_GREP="$ac_path_GREP"
5692 ac_path_GREP_max=$ac_count
5693 fi
5694 # 10*(2^10) chars as input seems more than enough
5695 test $ac_count -gt 10 && break
5696 done
5697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5698esac
5699
5700 $ac_path_GREP_found && break 3
5701 done
5702 done
5703 done
5704IFS=$as_save_IFS
5705 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005706 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005707 fi
5708else
5709 ac_cv_path_GREP=$GREP
5710fi
5711
5712fi
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5714$as_echo "$ac_cv_path_GREP" >&6; }
5715 GREP="$ac_cv_path_GREP"
5716
5717
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5719$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005720if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005721 $as_echo_n "(cached) " >&6
5722else
5723 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5724 then ac_cv_path_EGREP="$GREP -E"
5725 else
5726 if test -z "$EGREP"; then
5727 ac_path_EGREP_found=false
5728 # Loop through the user's path and test for each of PROGNAME-LIST
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5731do
5732 IFS=$as_save_IFS
5733 test -z "$as_dir" && as_dir=.
5734 for ac_prog in egrep; do
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005737 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005738# Check for GNU ac_path_EGREP and select it if it is found.
5739 # Check for GNU $ac_path_EGREP
5740case `"$ac_path_EGREP" --version 2>&1` in
5741*GNU*)
5742 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5743*)
5744 ac_count=0
5745 $as_echo_n 0123456789 >"conftest.in"
5746 while :
5747 do
5748 cat "conftest.in" "conftest.in" >"conftest.tmp"
5749 mv "conftest.tmp" "conftest.in"
5750 cp "conftest.in" "conftest.nl"
5751 $as_echo 'EGREP' >> "conftest.nl"
5752 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5753 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5754 as_fn_arith $ac_count + 1 && ac_count=$as_val
5755 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5756 # Best one so far, save it but keep looking for a better one
5757 ac_cv_path_EGREP="$ac_path_EGREP"
5758 ac_path_EGREP_max=$ac_count
5759 fi
5760 # 10*(2^10) chars as input seems more than enough
5761 test $ac_count -gt 10 && break
5762 done
5763 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5764esac
5765
5766 $ac_path_EGREP_found && break 3
5767 done
5768 done
5769 done
5770IFS=$as_save_IFS
5771 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005772 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005773 fi
5774else
5775 ac_cv_path_EGREP=$EGREP
5776fi
5777
5778 fi
5779fi
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5781$as_echo "$ac_cv_path_EGREP" >&6; }
5782 EGREP="$ac_cv_path_EGREP"
5783
5784
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5786$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005787if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005788 $as_echo_n "(cached) " >&6
5789else
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791/* end confdefs.h. */
5792#include <stdlib.h>
5793#include <stdarg.h>
5794#include <string.h>
5795#include <float.h>
5796
5797int
5798main ()
5799{
5800
5801 ;
5802 return 0;
5803}
5804_ACEOF
5805if ac_fn_c_try_compile "$LINENO"; then :
5806 ac_cv_header_stdc=yes
5807else
5808 ac_cv_header_stdc=no
5809fi
5810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5811
5812if test $ac_cv_header_stdc = yes; then
5813 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815/* end confdefs.h. */
5816#include <string.h>
5817
5818_ACEOF
5819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5820 $EGREP "memchr" >/dev/null 2>&1; then :
5821
5822else
5823 ac_cv_header_stdc=no
5824fi
5825rm -f conftest*
5826
5827fi
5828
5829if test $ac_cv_header_stdc = yes; then
5830 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832/* end confdefs.h. */
5833#include <stdlib.h>
5834
5835_ACEOF
5836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5837 $EGREP "free" >/dev/null 2>&1; then :
5838
5839else
5840 ac_cv_header_stdc=no
5841fi
5842rm -f conftest*
5843
5844fi
5845
5846if test $ac_cv_header_stdc = yes; then
5847 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5848 if test "$cross_compiling" = yes; then :
5849 :
5850else
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852/* end confdefs.h. */
5853#include <ctype.h>
5854#include <stdlib.h>
5855#if ((' ' & 0x0FF) == 0x020)
5856# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5857# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5858#else
5859# define ISLOWER(c) \
5860 (('a' <= (c) && (c) <= 'i') \
5861 || ('j' <= (c) && (c) <= 'r') \
5862 || ('s' <= (c) && (c) <= 'z'))
5863# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5864#endif
5865
5866#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5867int
5868main ()
5869{
5870 int i;
5871 for (i = 0; i < 256; i++)
5872 if (XOR (islower (i), ISLOWER (i))
5873 || toupper (i) != TOUPPER (i))
5874 return 2;
5875 return 0;
5876}
5877_ACEOF
5878if ac_fn_c_try_run "$LINENO"; then :
5879
5880else
5881 ac_cv_header_stdc=no
5882fi
5883rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5884 conftest.$ac_objext conftest.beam conftest.$ac_ext
5885fi
5886
5887fi
5888fi
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5890$as_echo "$ac_cv_header_stdc" >&6; }
5891if test $ac_cv_header_stdc = yes; then
5892
5893$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5894
5895fi
5896
5897# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5898for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5899 inttypes.h stdint.h unistd.h
5900do :
5901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5902ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5903"
cristy98dddb52010-11-04 00:30:15 +00005904if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005905 cat >>confdefs.h <<_ACEOF
5906#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5907_ACEOF
5908
5909fi
5910
5911done
5912
5913
5914
5915 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 +00005916if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005917 MINIX=yes
5918else
5919 MINIX=
5920fi
5921
5922
5923 if test "$MINIX" = yes; then
5924
5925$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5926
5927
5928$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5929
5930
5931$as_echo "#define _MINIX 1" >>confdefs.h
5932
5933 fi
5934
5935
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5937$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005938if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005939 $as_echo_n "(cached) " >&6
5940else
5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942/* end confdefs.h. */
5943
cristy14fefe52012-05-21 00:59:18 +00005944# define __EXTENSIONS__ 1
5945 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005946int
5947main ()
5948{
5949
5950 ;
5951 return 0;
5952}
5953_ACEOF
5954if ac_fn_c_try_compile "$LINENO"; then :
5955 ac_cv_safe_to_define___extensions__=yes
5956else
5957 ac_cv_safe_to_define___extensions__=no
5958fi
5959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960fi
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5962$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5963 test $ac_cv_safe_to_define___extensions__ = yes &&
5964 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5965
5966 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5967
5968 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5969
5970 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5971
5972 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5973
5974
5975
5976# Check for programs
5977ac_ext=c
5978ac_cpp='$CPP $CPPFLAGS'
5979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5981ac_compiler_gnu=$ac_cv_c_compiler_gnu
5982if test -n "$ac_tool_prefix"; then
5983 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5984set dummy ${ac_tool_prefix}gcc; ac_word=$2
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005987if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005988 $as_echo_n "(cached) " >&6
5989else
5990 if test -n "$CC"; then
5991 ac_cv_prog_CC="$CC" # Let the user override the test.
5992else
5993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994for as_dir in $PATH
5995do
5996 IFS=$as_save_IFS
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006000 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 break 2
6003 fi
6004done
6005 done
6006IFS=$as_save_IFS
6007
6008fi
6009fi
6010CC=$ac_cv_prog_CC
6011if test -n "$CC"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6013$as_echo "$CC" >&6; }
6014else
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016$as_echo "no" >&6; }
6017fi
6018
6019
6020fi
6021if test -z "$ac_cv_prog_CC"; then
6022 ac_ct_CC=$CC
6023 # Extract the first word of "gcc", so it can be a program name with args.
6024set dummy gcc; ac_word=$2
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006027if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006028 $as_echo_n "(cached) " >&6
6029else
6030 if test -n "$ac_ct_CC"; then
6031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6032else
6033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034for as_dir in $PATH
6035do
6036 IFS=$as_save_IFS
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006040 ac_cv_prog_ac_ct_CC="gcc"
6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042 break 2
6043 fi
6044done
6045 done
6046IFS=$as_save_IFS
6047
6048fi
6049fi
6050ac_ct_CC=$ac_cv_prog_ac_ct_CC
6051if test -n "$ac_ct_CC"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6053$as_echo "$ac_ct_CC" >&6; }
6054else
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056$as_echo "no" >&6; }
6057fi
6058
6059 if test "x$ac_ct_CC" = x; then
6060 CC=""
6061 else
6062 case $cross_compiling:$ac_tool_warned in
6063yes:)
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6066ac_tool_warned=yes ;;
6067esac
6068 CC=$ac_ct_CC
6069 fi
6070else
6071 CC="$ac_cv_prog_CC"
6072fi
6073
6074if test -z "$CC"; then
6075 if test -n "$ac_tool_prefix"; then
6076 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6077set dummy ${ac_tool_prefix}cc; ac_word=$2
6078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006080if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006081 $as_echo_n "(cached) " >&6
6082else
6083 if test -n "$CC"; then
6084 ac_cv_prog_CC="$CC" # Let the user override the test.
6085else
6086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087for as_dir in $PATH
6088do
6089 IFS=$as_save_IFS
6090 test -z "$as_dir" && as_dir=.
6091 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006093 ac_cv_prog_CC="${ac_tool_prefix}cc"
6094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 break 2
6096 fi
6097done
6098 done
6099IFS=$as_save_IFS
6100
6101fi
6102fi
6103CC=$ac_cv_prog_CC
6104if test -n "$CC"; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6106$as_echo "$CC" >&6; }
6107else
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109$as_echo "no" >&6; }
6110fi
6111
6112
6113 fi
6114fi
6115if test -z "$CC"; then
6116 # Extract the first word of "cc", so it can be a program name with args.
6117set dummy cc; ac_word=$2
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006120if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006121 $as_echo_n "(cached) " >&6
6122else
6123 if test -n "$CC"; then
6124 ac_cv_prog_CC="$CC" # Let the user override the test.
6125else
6126 ac_prog_rejected=no
6127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128for as_dir in $PATH
6129do
6130 IFS=$as_save_IFS
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006134 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6135 ac_prog_rejected=yes
6136 continue
6137 fi
6138 ac_cv_prog_CC="cc"
6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 break 2
6141 fi
6142done
6143 done
6144IFS=$as_save_IFS
6145
6146if test $ac_prog_rejected = yes; then
6147 # We found a bogon in the path, so make sure we never use it.
6148 set dummy $ac_cv_prog_CC
6149 shift
6150 if test $# != 0; then
6151 # We chose a different compiler from the bogus one.
6152 # However, it has the same basename, so the bogon will be chosen
6153 # first if we set CC to just the basename; use the full file name.
6154 shift
6155 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6156 fi
6157fi
6158fi
6159fi
6160CC=$ac_cv_prog_CC
6161if test -n "$CC"; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6163$as_echo "$CC" >&6; }
6164else
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166$as_echo "no" >&6; }
6167fi
6168
6169
6170fi
6171if test -z "$CC"; then
6172 if test -n "$ac_tool_prefix"; then
6173 for ac_prog in cl.exe
6174 do
6175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6176set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6178$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006179if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006180 $as_echo_n "(cached) " >&6
6181else
6182 if test -n "$CC"; then
6183 ac_cv_prog_CC="$CC" # Let the user override the test.
6184else
6185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186for as_dir in $PATH
6187do
6188 IFS=$as_save_IFS
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006192 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 break 2
6195 fi
6196done
6197 done
6198IFS=$as_save_IFS
6199
6200fi
6201fi
6202CC=$ac_cv_prog_CC
6203if test -n "$CC"; then
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6205$as_echo "$CC" >&6; }
6206else
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208$as_echo "no" >&6; }
6209fi
6210
6211
6212 test -n "$CC" && break
6213 done
6214fi
6215if test -z "$CC"; then
6216 ac_ct_CC=$CC
6217 for ac_prog in cl.exe
6218do
6219 # Extract the first word of "$ac_prog", so it can be a program name with args.
6220set dummy $ac_prog; ac_word=$2
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006223if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006224 $as_echo_n "(cached) " >&6
6225else
6226 if test -n "$ac_ct_CC"; then
6227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6228else
6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230for as_dir in $PATH
6231do
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006236 ac_cv_prog_ac_ct_CC="$ac_prog"
6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 break 2
6239 fi
6240done
6241 done
6242IFS=$as_save_IFS
6243
6244fi
6245fi
6246ac_ct_CC=$ac_cv_prog_ac_ct_CC
6247if test -n "$ac_ct_CC"; then
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6249$as_echo "$ac_ct_CC" >&6; }
6250else
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252$as_echo "no" >&6; }
6253fi
6254
6255
6256 test -n "$ac_ct_CC" && break
6257done
6258
6259 if test "x$ac_ct_CC" = x; then
6260 CC=""
6261 else
6262 case $cross_compiling:$ac_tool_warned in
6263yes:)
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6266ac_tool_warned=yes ;;
6267esac
6268 CC=$ac_ct_CC
6269 fi
6270fi
6271
6272fi
6273
6274
6275test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006277as_fn_error $? "no acceptable C compiler found in \$PATH
6278See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006279
6280# Provide some information about the compiler.
6281$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6282set X $ac_compile
6283ac_compiler=$2
6284for ac_option in --version -v -V -qversion; do
6285 { { ac_try="$ac_compiler $ac_option >&5"
6286case "(($ac_try" in
6287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6288 *) ac_try_echo=$ac_try;;
6289esac
6290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6291$as_echo "$ac_try_echo"; } >&5
6292 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6293 ac_status=$?
6294 if test -s conftest.err; then
6295 sed '10a\
6296... rest of stderr output deleted ...
6297 10q' conftest.err >conftest.er1
6298 cat conftest.er1 >&5
6299 fi
6300 rm -f conftest.er1 conftest.err
6301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6302 test $ac_status = 0; }
6303done
6304
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6306$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006307if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006308 $as_echo_n "(cached) " >&6
6309else
6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311/* end confdefs.h. */
6312
6313int
6314main ()
6315{
6316#ifndef __GNUC__
6317 choke me
6318#endif
6319
6320 ;
6321 return 0;
6322}
6323_ACEOF
6324if ac_fn_c_try_compile "$LINENO"; then :
6325 ac_compiler_gnu=yes
6326else
6327 ac_compiler_gnu=no
6328fi
6329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330ac_cv_c_compiler_gnu=$ac_compiler_gnu
6331
6332fi
6333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6334$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6335if test $ac_compiler_gnu = yes; then
6336 GCC=yes
6337else
6338 GCC=
6339fi
6340ac_test_CFLAGS=${CFLAGS+set}
6341ac_save_CFLAGS=$CFLAGS
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6343$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006344if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006345 $as_echo_n "(cached) " >&6
6346else
6347 ac_save_c_werror_flag=$ac_c_werror_flag
6348 ac_c_werror_flag=yes
6349 ac_cv_prog_cc_g=no
6350 CFLAGS="-g"
6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352/* end confdefs.h. */
6353
6354int
6355main ()
6356{
6357
6358 ;
6359 return 0;
6360}
6361_ACEOF
6362if ac_fn_c_try_compile "$LINENO"; then :
6363 ac_cv_prog_cc_g=yes
6364else
6365 CFLAGS=""
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367/* end confdefs.h. */
6368
6369int
6370main ()
6371{
6372
6373 ;
6374 return 0;
6375}
6376_ACEOF
6377if ac_fn_c_try_compile "$LINENO"; then :
6378
6379else
6380 ac_c_werror_flag=$ac_save_c_werror_flag
6381 CFLAGS="-g"
6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383/* end confdefs.h. */
6384
6385int
6386main ()
6387{
6388
6389 ;
6390 return 0;
6391}
6392_ACEOF
6393if ac_fn_c_try_compile "$LINENO"; then :
6394 ac_cv_prog_cc_g=yes
6395fi
6396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397fi
6398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399fi
6400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401 ac_c_werror_flag=$ac_save_c_werror_flag
6402fi
6403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6404$as_echo "$ac_cv_prog_cc_g" >&6; }
6405if test "$ac_test_CFLAGS" = set; then
6406 CFLAGS=$ac_save_CFLAGS
6407elif test $ac_cv_prog_cc_g = yes; then
6408 if test "$GCC" = yes; then
6409 CFLAGS="-g -O2"
6410 else
6411 CFLAGS="-g"
6412 fi
6413else
6414 if test "$GCC" = yes; then
6415 CFLAGS="-O2"
6416 else
6417 CFLAGS=
6418 fi
6419fi
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6421$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006422if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006423 $as_echo_n "(cached) " >&6
6424else
6425 ac_cv_prog_cc_c89=no
6426ac_save_CC=$CC
6427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428/* end confdefs.h. */
6429#include <stdarg.h>
6430#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006431struct stat;
cristya0b81c32010-01-22 02:54:33 +00006432/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6433struct buf { int x; };
6434FILE * (*rcsopen) (struct buf *, struct stat *, int);
6435static char *e (p, i)
6436 char **p;
6437 int i;
6438{
6439 return p[i];
6440}
6441static char *f (char * (*g) (char **, int), char **p, ...)
6442{
6443 char *s;
6444 va_list v;
6445 va_start (v,p);
6446 s = g (p, va_arg (v,int));
6447 va_end (v);
6448 return s;
6449}
6450
6451/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6452 function prototypes and stuff, but not '\xHH' hex character constants.
6453 These don't provoke an error unfortunately, instead are silently treated
6454 as 'x'. The following induces an error, until -std is added to get
6455 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6456 array size at least. It's necessary to write '\x00'==0 to get something
6457 that's true only with -std. */
6458int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6459
6460/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6461 inside strings and character constants. */
6462#define FOO(x) 'x'
6463int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6464
6465int test (int i, double x);
6466struct s1 {int (*f) (int a);};
6467struct s2 {int (*f) (double a);};
6468int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6469int argc;
6470char **argv;
6471int
6472main ()
6473{
6474return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6475 ;
6476 return 0;
6477}
6478_ACEOF
6479for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6480 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6481do
6482 CC="$ac_save_CC $ac_arg"
6483 if ac_fn_c_try_compile "$LINENO"; then :
6484 ac_cv_prog_cc_c89=$ac_arg
6485fi
6486rm -f core conftest.err conftest.$ac_objext
6487 test "x$ac_cv_prog_cc_c89" != "xno" && break
6488done
6489rm -f conftest.$ac_ext
6490CC=$ac_save_CC
6491
6492fi
6493# AC_CACHE_VAL
6494case "x$ac_cv_prog_cc_c89" in
6495 x)
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6497$as_echo "none needed" >&6; } ;;
6498 xno)
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6500$as_echo "unsupported" >&6; } ;;
6501 *)
6502 CC="$CC $ac_cv_prog_cc_c89"
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6504$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6505esac
6506if test "x$ac_cv_prog_cc_c89" != xno; then :
6507
6508fi
6509
6510ac_ext=c
6511ac_cpp='$CPP $CPPFLAGS'
6512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6514ac_compiler_gnu=$ac_cv_c_compiler_gnu
6515
cristya5bda012013-11-03 18:05:38 +00006516ac_ext=c
6517ac_cpp='$CPP $CPPFLAGS'
6518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6520ac_compiler_gnu=$ac_cv_c_compiler_gnu
6521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6522$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6523if ${am_cv_prog_cc_c_o+:} false; then :
6524 $as_echo_n "(cached) " >&6
6525else
6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527/* end confdefs.h. */
6528
6529int
6530main ()
6531{
6532
6533 ;
6534 return 0;
6535}
6536_ACEOF
6537 # Make sure it works both with $CC and with simple cc.
6538 # Following AC_PROG_CC_C_O, we do the test twice because some
6539 # compilers refuse to overwrite an existing .o file with -o,
6540 # though they will create one.
6541 am_cv_prog_cc_c_o=yes
6542 for am_i in 1 2; do
6543 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6544 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6545 ac_status=$?
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } \
6548 && test -f conftest2.$ac_objext; then
6549 : OK
6550 else
6551 am_cv_prog_cc_c_o=no
6552 break
6553 fi
6554 done
6555 rm -f core conftest*
6556 unset am_i
6557fi
6558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6559$as_echo "$am_cv_prog_cc_c_o" >&6; }
6560if test "$am_cv_prog_cc_c_o" != yes; then
6561 # Losing compiler, so override with the script.
6562 # FIXME: It is wrong to rewrite CC.
6563 # But if we don't then we get into trouble of one sort or another.
6564 # A longer-term fix would be to have automake use am__CC in this case,
6565 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6566 CC="$am_aux_dir/compile $CC"
6567fi
6568ac_ext=c
6569ac_cpp='$CPP $CPPFLAGS'
6570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6572ac_compiler_gnu=$ac_cv_c_compiler_gnu
6573
6574
cristy73bd4a52010-10-05 11:24:23 +00006575depcc="$CC" am_compiler_list=
6576
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6578$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006579if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006580 $as_echo_n "(cached) " >&6
6581else
6582 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6583 # We make a subdir and do the tests there. Otherwise we can end up
6584 # making bogus files that we don't know about and never remove. For
6585 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006586 # making a dummy file named 'D' -- because '-MD' means "put the output
6587 # in D".
cristy7247bba2012-02-05 16:37:27 +00006588 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006589 mkdir conftest.dir
6590 # Copy depcomp to subdir because otherwise we won't find it if we're
6591 # using a relative directory.
6592 cp "$am_depcomp" conftest.dir
6593 cd conftest.dir
6594 # We will build objects and dependencies in a subdirectory because
6595 # it helps to detect inapplicable dependency modes. For instance
6596 # both Tru64's cc and ICC support -MD to output dependencies as a
6597 # side effect of compilation, but ICC will put the dependencies in
6598 # the current directory while Tru64 will put them in the object
6599 # directory.
6600 mkdir sub
6601
6602 am_cv_CC_dependencies_compiler_type=none
6603 if test "$am_compiler_list" = ""; then
6604 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6605 fi
6606 am__universal=false
6607 case " $depcc " in #(
6608 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6609 esac
6610
6611 for depmode in $am_compiler_list; do
6612 # Setup a source with many dependencies, because some compilers
6613 # like to wrap large dependency lists on column 80 (with \), and
6614 # we should not choose a depcomp mode which is confused by this.
6615 #
6616 # We need to recreate these files for each test, as the compiler may
6617 # overwrite some of them when testing with obscure command lines.
6618 # This happens at least with the AIX C compiler.
6619 : > sub/conftest.c
6620 for i in 1 2 3 4 5 6; do
6621 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006622 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6623 # Solaris 10 /bin/sh.
6624 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006625 done
6626 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6627
cristyc0890a62012-07-19 00:18:20 +00006628 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006629 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006630 # handle '-M -o', and we need to detect this. Also, some Intel
6631 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006632 am__obj=sub/conftest.${OBJEXT-o}
6633 am__minus_obj="-o $am__obj"
6634 case $depmode in
6635 gcc)
6636 # This depmode causes a compiler race in universal mode.
6637 test "$am__universal" = false || continue
6638 ;;
6639 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006640 # After this tag, mechanisms are not by side-effect, so they'll
6641 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006642 if test "x$enable_dependency_tracking" = xyes; then
6643 continue
6644 else
6645 break
6646 fi
6647 ;;
cristy7247bba2012-02-05 16:37:27 +00006648 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006649 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006650 # not run yet. These depmodes are late enough in the game, and
6651 # so weak that their functioning should not be impacted.
6652 am__obj=conftest.${OBJEXT-o}
6653 am__minus_obj=
6654 ;;
6655 none) break ;;
6656 esac
6657 if depmode=$depmode \
6658 source=sub/conftest.c object=$am__obj \
6659 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6660 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6661 >/dev/null 2>conftest.err &&
6662 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6663 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6664 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6665 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6666 # icc doesn't choke on unknown options, it will just issue warnings
6667 # or remarks (even with -Werror). So we grep stderr for any message
6668 # that says an option was ignored or not supported.
6669 # When given -MP, icc 7.0 and 7.1 complain thusly:
6670 # icc: Command line warning: ignoring option '-M'; no argument required
6671 # The diagnosis changed in icc 8.0:
6672 # icc: Command line remark: option '-MP' not supported
6673 if (grep 'ignoring option' conftest.err ||
6674 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6675 am_cv_CC_dependencies_compiler_type=$depmode
6676 break
6677 fi
6678 fi
6679 done
6680
6681 cd ..
6682 rm -rf conftest.dir
6683else
6684 am_cv_CC_dependencies_compiler_type=none
6685fi
6686
6687fi
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6689$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6690CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6691
6692 if
6693 test "x$enable_dependency_tracking" != xno \
6694 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6695 am__fastdepCC_TRUE=
6696 am__fastdepCC_FALSE='#'
6697else
6698 am__fastdepCC_TRUE='#'
6699 am__fastdepCC_FALSE=
6700fi
6701
6702
cristy95646052009-11-28 23:05:30 +00006703ac_ext=cpp
6704ac_cpp='$CXXCPP $CPPFLAGS'
6705ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6706ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6707ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6708if test -z "$CXX"; then
6709 if test -n "$CCC"; then
6710 CXX=$CCC
6711 else
6712 if test -n "$ac_tool_prefix"; then
6713 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6714 do
6715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6716set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006719if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006720 $as_echo_n "(cached) " >&6
6721else
6722 if test -n "$CXX"; then
6723 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6724else
6725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726for as_dir in $PATH
6727do
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006732 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 break 2
6735 fi
6736done
6737 done
6738IFS=$as_save_IFS
6739
6740fi
6741fi
6742CXX=$ac_cv_prog_CXX
6743if test -n "$CXX"; then
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6745$as_echo "$CXX" >&6; }
6746else
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748$as_echo "no" >&6; }
6749fi
6750
6751
6752 test -n "$CXX" && break
6753 done
6754fi
6755if test -z "$CXX"; then
6756 ac_ct_CXX=$CXX
6757 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6758do
6759 # Extract the first word of "$ac_prog", so it can be a program name with args.
6760set dummy $ac_prog; ac_word=$2
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006763if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006764 $as_echo_n "(cached) " >&6
6765else
6766 if test -n "$ac_ct_CXX"; then
6767 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6768else
6769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006776 ac_cv_prog_ac_ct_CXX="$ac_prog"
6777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780done
6781 done
6782IFS=$as_save_IFS
6783
6784fi
6785fi
6786ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6787if test -n "$ac_ct_CXX"; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6789$as_echo "$ac_ct_CXX" >&6; }
6790else
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792$as_echo "no" >&6; }
6793fi
6794
6795
6796 test -n "$ac_ct_CXX" && break
6797done
6798
6799 if test "x$ac_ct_CXX" = x; then
6800 CXX="g++"
6801 else
6802 case $cross_compiling:$ac_tool_warned in
6803yes:)
6804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6806ac_tool_warned=yes ;;
6807esac
6808 CXX=$ac_ct_CXX
6809 fi
6810fi
6811
6812 fi
6813fi
6814# Provide some information about the compiler.
6815$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6816set X $ac_compile
6817ac_compiler=$2
6818for ac_option in --version -v -V -qversion; do
6819 { { ac_try="$ac_compiler $ac_option >&5"
6820case "(($ac_try" in
6821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822 *) ac_try_echo=$ac_try;;
6823esac
6824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6825$as_echo "$ac_try_echo"; } >&5
6826 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6827 ac_status=$?
6828 if test -s conftest.err; then
6829 sed '10a\
6830... rest of stderr output deleted ...
6831 10q' conftest.err >conftest.er1
6832 cat conftest.er1 >&5
6833 fi
6834 rm -f conftest.er1 conftest.err
6835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6836 test $ac_status = 0; }
6837done
6838
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6840$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006841if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006842 $as_echo_n "(cached) " >&6
6843else
6844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845/* end confdefs.h. */
6846
6847int
6848main ()
6849{
6850#ifndef __GNUC__
6851 choke me
6852#endif
6853
6854 ;
6855 return 0;
6856}
6857_ACEOF
6858if ac_fn_cxx_try_compile "$LINENO"; then :
6859 ac_compiler_gnu=yes
6860else
6861 ac_compiler_gnu=no
6862fi
6863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6864ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6865
6866fi
6867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6868$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6869if test $ac_compiler_gnu = yes; then
6870 GXX=yes
6871else
6872 GXX=
6873fi
6874ac_test_CXXFLAGS=${CXXFLAGS+set}
6875ac_save_CXXFLAGS=$CXXFLAGS
6876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6877$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006878if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006879 $as_echo_n "(cached) " >&6
6880else
6881 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6882 ac_cxx_werror_flag=yes
6883 ac_cv_prog_cxx_g=no
6884 CXXFLAGS="-g"
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886/* end confdefs.h. */
6887
6888int
6889main ()
6890{
6891
6892 ;
6893 return 0;
6894}
6895_ACEOF
6896if ac_fn_cxx_try_compile "$LINENO"; then :
6897 ac_cv_prog_cxx_g=yes
6898else
6899 CXXFLAGS=""
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901/* end confdefs.h. */
6902
6903int
6904main ()
6905{
6906
6907 ;
6908 return 0;
6909}
6910_ACEOF
6911if ac_fn_cxx_try_compile "$LINENO"; then :
6912
6913else
6914 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6915 CXXFLAGS="-g"
6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917/* end confdefs.h. */
6918
6919int
6920main ()
6921{
6922
6923 ;
6924 return 0;
6925}
6926_ACEOF
6927if ac_fn_cxx_try_compile "$LINENO"; then :
6928 ac_cv_prog_cxx_g=yes
6929fi
6930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6931fi
6932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933fi
6934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6935 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6936fi
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6938$as_echo "$ac_cv_prog_cxx_g" >&6; }
6939if test "$ac_test_CXXFLAGS" = set; then
6940 CXXFLAGS=$ac_save_CXXFLAGS
6941elif test $ac_cv_prog_cxx_g = yes; then
6942 if test "$GXX" = yes; then
6943 CXXFLAGS="-g -O2"
6944 else
6945 CXXFLAGS="-g"
6946 fi
6947else
6948 if test "$GXX" = yes; then
6949 CXXFLAGS="-O2"
6950 else
6951 CXXFLAGS=
6952 fi
6953fi
6954ac_ext=c
6955ac_cpp='$CPP $CPPFLAGS'
6956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6958ac_compiler_gnu=$ac_cv_c_compiler_gnu
6959
cristy73bd4a52010-10-05 11:24:23 +00006960depcc="$CXX" am_compiler_list=
6961
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6963$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006964if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006965 $as_echo_n "(cached) " >&6
6966else
6967 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6968 # We make a subdir and do the tests there. Otherwise we can end up
6969 # making bogus files that we don't know about and never remove. For
6970 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006971 # making a dummy file named 'D' -- because '-MD' means "put the output
6972 # in D".
cristy7247bba2012-02-05 16:37:27 +00006973 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006974 mkdir conftest.dir
6975 # Copy depcomp to subdir because otherwise we won't find it if we're
6976 # using a relative directory.
6977 cp "$am_depcomp" conftest.dir
6978 cd conftest.dir
6979 # We will build objects and dependencies in a subdirectory because
6980 # it helps to detect inapplicable dependency modes. For instance
6981 # both Tru64's cc and ICC support -MD to output dependencies as a
6982 # side effect of compilation, but ICC will put the dependencies in
6983 # the current directory while Tru64 will put them in the object
6984 # directory.
6985 mkdir sub
6986
6987 am_cv_CXX_dependencies_compiler_type=none
6988 if test "$am_compiler_list" = ""; then
6989 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6990 fi
6991 am__universal=false
6992 case " $depcc " in #(
6993 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6994 esac
6995
6996 for depmode in $am_compiler_list; do
6997 # Setup a source with many dependencies, because some compilers
6998 # like to wrap large dependency lists on column 80 (with \), and
6999 # we should not choose a depcomp mode which is confused by this.
7000 #
7001 # We need to recreate these files for each test, as the compiler may
7002 # overwrite some of them when testing with obscure command lines.
7003 # This happens at least with the AIX C compiler.
7004 : > sub/conftest.c
7005 for i in 1 2 3 4 5 6; do
7006 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007007 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7008 # Solaris 10 /bin/sh.
7009 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007010 done
7011 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7012
cristyc0890a62012-07-19 00:18:20 +00007013 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007014 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007015 # handle '-M -o', and we need to detect this. Also, some Intel
7016 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007017 am__obj=sub/conftest.${OBJEXT-o}
7018 am__minus_obj="-o $am__obj"
7019 case $depmode in
7020 gcc)
7021 # This depmode causes a compiler race in universal mode.
7022 test "$am__universal" = false || continue
7023 ;;
7024 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007025 # After this tag, mechanisms are not by side-effect, so they'll
7026 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007027 if test "x$enable_dependency_tracking" = xyes; then
7028 continue
7029 else
7030 break
7031 fi
7032 ;;
cristy7247bba2012-02-05 16:37:27 +00007033 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007034 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007035 # not run yet. These depmodes are late enough in the game, and
7036 # so weak that their functioning should not be impacted.
7037 am__obj=conftest.${OBJEXT-o}
7038 am__minus_obj=
7039 ;;
7040 none) break ;;
7041 esac
7042 if depmode=$depmode \
7043 source=sub/conftest.c object=$am__obj \
7044 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7045 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7046 >/dev/null 2>conftest.err &&
7047 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7048 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7049 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7050 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7051 # icc doesn't choke on unknown options, it will just issue warnings
7052 # or remarks (even with -Werror). So we grep stderr for any message
7053 # that says an option was ignored or not supported.
7054 # When given -MP, icc 7.0 and 7.1 complain thusly:
7055 # icc: Command line warning: ignoring option '-M'; no argument required
7056 # The diagnosis changed in icc 8.0:
7057 # icc: Command line remark: option '-MP' not supported
7058 if (grep 'ignoring option' conftest.err ||
7059 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7060 am_cv_CXX_dependencies_compiler_type=$depmode
7061 break
7062 fi
7063 fi
7064 done
7065
7066 cd ..
7067 rm -rf conftest.dir
7068else
7069 am_cv_CXX_dependencies_compiler_type=none
7070fi
7071
7072fi
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7074$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7075CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7076
7077 if
7078 test "x$enable_dependency_tracking" != xno \
7079 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7080 am__fastdepCXX_TRUE=
7081 am__fastdepCXX_FALSE='#'
7082else
7083 am__fastdepCXX_TRUE='#'
7084 am__fastdepCXX_FALSE=
7085fi
7086
7087
cristy8b350f62009-11-15 23:12:43 +00007088 case $ac_cv_prog_cc_stdc in #(
7089 no) :
7090 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7091 *) :
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007093$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007094if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007095 $as_echo_n "(cached) " >&6
7096else
7097 ac_cv_prog_cc_c99=no
7098ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007100/* end confdefs.h. */
7101#include <stdarg.h>
7102#include <stdbool.h>
7103#include <stdlib.h>
7104#include <wchar.h>
7105#include <stdio.h>
7106
7107// Check varargs macros. These examples are taken from C99 6.10.3.5.
7108#define debug(...) fprintf (stderr, __VA_ARGS__)
7109#define showlist(...) puts (#__VA_ARGS__)
7110#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7111static void
7112test_varargs_macros (void)
7113{
7114 int x = 1234;
7115 int y = 5678;
7116 debug ("Flag");
7117 debug ("X = %d\n", x);
7118 showlist (The first, second, and third items.);
7119 report (x>y, "x is %d but y is %d", x, y);
7120}
7121
7122// Check long long types.
7123#define BIG64 18446744073709551615ull
7124#define BIG32 4294967295ul
7125#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7126#if !BIG_OK
7127 your preprocessor is broken;
7128#endif
7129#if BIG_OK
7130#else
7131 your preprocessor is broken;
7132#endif
7133static long long int bignum = -9223372036854775807LL;
7134static unsigned long long int ubignum = BIG64;
7135
7136struct incomplete_array
7137{
7138 int datasize;
7139 double data[];
7140};
7141
7142struct named_init {
7143 int number;
7144 const wchar_t *name;
7145 double average;
7146};
7147
7148typedef const char *ccp;
7149
7150static inline int
7151test_restrict (ccp restrict text)
7152{
7153 // See if C++-style comments work.
7154 // Iterate through items via the restricted pointer.
7155 // Also check for declarations in for loops.
7156 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7157 continue;
7158 return 0;
7159}
7160
7161// Check varargs and va_copy.
7162static void
7163test_varargs (const char *format, ...)
7164{
7165 va_list args;
7166 va_start (args, format);
7167 va_list args_copy;
7168 va_copy (args_copy, args);
7169
7170 const char *str;
7171 int number;
7172 float fnumber;
7173
7174 while (*format)
7175 {
7176 switch (*format++)
7177 {
7178 case 's': // string
7179 str = va_arg (args_copy, const char *);
7180 break;
7181 case 'd': // int
7182 number = va_arg (args_copy, int);
7183 break;
7184 case 'f': // float
7185 fnumber = va_arg (args_copy, double);
7186 break;
7187 default:
7188 break;
7189 }
7190 }
7191 va_end (args_copy);
7192 va_end (args);
7193}
7194
7195int
7196main ()
7197{
7198
7199 // Check bool.
7200 _Bool success = false;
7201
7202 // Check restrict.
7203 if (test_restrict ("String literal") == 0)
7204 success = true;
7205 char *restrict newvar = "Another string";
7206
7207 // Check varargs.
7208 test_varargs ("s, d' f .", "string", 65, 34.234);
7209 test_varargs_macros ();
7210
7211 // Check flexible array members.
7212 struct incomplete_array *ia =
7213 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7214 ia->datasize = 10;
7215 for (int i = 0; i < ia->datasize; ++i)
7216 ia->data[i] = i * 1.234;
7217
7218 // Check named initializers.
7219 struct named_init ni = {
7220 .number = 34,
7221 .name = L"Test wide string",
7222 .average = 543.34343,
7223 };
7224
7225 ni.number = 58;
7226
7227 int dynamic_array[ni.number];
7228 dynamic_array[ni.number - 1] = 543;
7229
7230 // work around unused variable warnings
7231 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7232 || dynamic_array[ni.number - 1] != 543);
7233
7234 ;
7235 return 0;
7236}
7237_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007238for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007239do
7240 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007241 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007242 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007243fi
cristy3ed852e2009-09-05 21:47:34 +00007244rm -f core conftest.err conftest.$ac_objext
7245 test "x$ac_cv_prog_cc_c99" != "xno" && break
7246done
7247rm -f conftest.$ac_ext
7248CC=$ac_save_CC
7249
7250fi
7251# AC_CACHE_VAL
7252case "x$ac_cv_prog_cc_c99" in
7253 x)
cristy8b350f62009-11-15 23:12:43 +00007254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007255$as_echo "none needed" >&6; } ;;
7256 xno)
cristy8b350f62009-11-15 23:12:43 +00007257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007258$as_echo "unsupported" >&6; } ;;
7259 *)
7260 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007262$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7263esac
cristy8b350f62009-11-15 23:12:43 +00007264if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007265 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7266else
cristy8b350f62009-11-15 23:12:43 +00007267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007268$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007269if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007270 $as_echo_n "(cached) " >&6
7271else
7272 ac_cv_prog_cc_c89=no
7273ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007275/* end confdefs.h. */
7276#include <stdarg.h>
7277#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007278struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007279/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7280struct buf { int x; };
7281FILE * (*rcsopen) (struct buf *, struct stat *, int);
7282static char *e (p, i)
7283 char **p;
7284 int i;
7285{
7286 return p[i];
7287}
7288static char *f (char * (*g) (char **, int), char **p, ...)
7289{
7290 char *s;
7291 va_list v;
7292 va_start (v,p);
7293 s = g (p, va_arg (v,int));
7294 va_end (v);
7295 return s;
7296}
7297
7298/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7299 function prototypes and stuff, but not '\xHH' hex character constants.
7300 These don't provoke an error unfortunately, instead are silently treated
7301 as 'x'. The following induces an error, until -std is added to get
7302 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7303 array size at least. It's necessary to write '\x00'==0 to get something
7304 that's true only with -std. */
7305int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7306
7307/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7308 inside strings and character constants. */
7309#define FOO(x) 'x'
7310int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7311
7312int test (int i, double x);
7313struct s1 {int (*f) (int a);};
7314struct s2 {int (*f) (double a);};
7315int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7316int argc;
7317char **argv;
7318int
7319main ()
7320{
7321return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7322 ;
7323 return 0;
7324}
7325_ACEOF
7326for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7327 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7328do
7329 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007330 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007331 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007332fi
cristy3ed852e2009-09-05 21:47:34 +00007333rm -f core conftest.err conftest.$ac_objext
7334 test "x$ac_cv_prog_cc_c89" != "xno" && break
7335done
7336rm -f conftest.$ac_ext
7337CC=$ac_save_CC
7338
7339fi
7340# AC_CACHE_VAL
7341case "x$ac_cv_prog_cc_c89" in
7342 x)
cristy8b350f62009-11-15 23:12:43 +00007343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007344$as_echo "none needed" >&6; } ;;
7345 xno)
cristy8b350f62009-11-15 23:12:43 +00007346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007347$as_echo "unsupported" >&6; } ;;
7348 *)
7349 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007351$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7352esac
cristy8b350f62009-11-15 23:12:43 +00007353if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007354 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7355else
7356 ac_cv_prog_cc_stdc=no
7357fi
7358
cristy3ed852e2009-09-05 21:47:34 +00007359fi
cristy3ed852e2009-09-05 21:47:34 +00007360 ;;
7361esac
cristy8b350f62009-11-15 23:12:43 +00007362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007363$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007364 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007365 $as_echo_n "(cached) " >&6
7366fi
7367
cristy8b350f62009-11-15 23:12:43 +00007368 case $ac_cv_prog_cc_stdc in #(
7369 no) :
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7371$as_echo "unsupported" >&6; } ;; #(
7372 '') :
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7374$as_echo "none needed" >&6; } ;; #(
7375 *) :
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007377$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7378esac
7379
cristy3ed852e2009-09-05 21:47:34 +00007380ac_ext=c
7381ac_cpp='$CPP $CPPFLAGS'
7382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7384ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007386$as_echo_n "checking how to run the C preprocessor... " >&6; }
7387# On Suns, sometimes $CPP names a directory.
7388if test -n "$CPP" && test -d "$CPP"; then
7389 CPP=
7390fi
7391if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007392 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007393 $as_echo_n "(cached) " >&6
7394else
7395 # Double quotes because CPP needs to be expanded
7396 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7397 do
7398 ac_preproc_ok=false
7399for ac_c_preproc_warn_flag in '' yes
7400do
7401 # Use a header file that comes with gcc, so configuring glibc
7402 # with a fresh cross-compiler works.
7403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7404 # <limits.h> exists even on freestanding compilers.
7405 # On the NeXT, cc -E runs the code through the compiler's parser,
7406 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007408/* end confdefs.h. */
7409#ifdef __STDC__
7410# include <limits.h>
7411#else
7412# include <assert.h>
7413#endif
7414 Syntax error
7415_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007416if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007417
cristy8b350f62009-11-15 23:12:43 +00007418else
cristy3ed852e2009-09-05 21:47:34 +00007419 # Broken: fails on valid input.
7420continue
7421fi
cristyda16f162011-02-19 23:52:17 +00007422rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007423
7424 # OK, works on sane cases. Now check whether nonexistent headers
7425 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007427/* end confdefs.h. */
7428#include <ac_nonexistent.h>
7429_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007430if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007431 # Broken: success on invalid input.
7432continue
7433else
cristy3ed852e2009-09-05 21:47:34 +00007434 # Passes both tests.
7435ac_preproc_ok=:
7436break
7437fi
cristyda16f162011-02-19 23:52:17 +00007438rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007439
7440done
7441# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007442rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007443if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007444 break
7445fi
7446
7447 done
7448 ac_cv_prog_CPP=$CPP
7449
7450fi
7451 CPP=$ac_cv_prog_CPP
7452else
7453 ac_cv_prog_CPP=$CPP
7454fi
cristy8b350f62009-11-15 23:12:43 +00007455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007456$as_echo "$CPP" >&6; }
7457ac_preproc_ok=false
7458for ac_c_preproc_warn_flag in '' yes
7459do
7460 # Use a header file that comes with gcc, so configuring glibc
7461 # with a fresh cross-compiler works.
7462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7463 # <limits.h> exists even on freestanding compilers.
7464 # On the NeXT, cc -E runs the code through the compiler's parser,
7465 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007467/* end confdefs.h. */
7468#ifdef __STDC__
7469# include <limits.h>
7470#else
7471# include <assert.h>
7472#endif
7473 Syntax error
7474_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007475if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007476
cristy8b350f62009-11-15 23:12:43 +00007477else
cristy3ed852e2009-09-05 21:47:34 +00007478 # Broken: fails on valid input.
7479continue
7480fi
cristyda16f162011-02-19 23:52:17 +00007481rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007482
7483 # OK, works on sane cases. Now check whether nonexistent headers
7484 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007486/* end confdefs.h. */
7487#include <ac_nonexistent.h>
7488_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007489if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007490 # Broken: success on invalid input.
7491continue
7492else
cristy3ed852e2009-09-05 21:47:34 +00007493 # Passes both tests.
7494ac_preproc_ok=:
7495break
7496fi
cristyda16f162011-02-19 23:52:17 +00007497rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007498
7499done
7500# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007501rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007502if $ac_preproc_ok; then :
7503
cristy3ed852e2009-09-05 21:47:34 +00007504else
cristy8b350f62009-11-15 23:12:43 +00007505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007507as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7508See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007509fi
7510
7511ac_ext=c
7512ac_cpp='$CPP $CPPFLAGS'
7513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7515ac_compiler_gnu=$ac_cv_c_compiler_gnu
7516
cristy73bd4a52010-10-05 11:24:23 +00007517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7518$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007519if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007520 $as_echo_n "(cached) " >&6
7521else
7522 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7523 for ac_i in 1 2 3 4 5 6 7; do
7524 ac_script="$ac_script$as_nl$ac_script"
7525 done
7526 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7527 { ac_script=; unset ac_script;}
7528 if test -z "$SED"; then
7529 ac_path_SED_found=false
7530 # Loop through the user's path and test for each of PROGNAME-LIST
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532for as_dir in $PATH
7533do
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
7536 for ac_prog in sed gsed; do
7537 for ac_exec_ext in '' $ac_executable_extensions; do
7538 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007539 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007540# Check for GNU ac_path_SED and select it if it is found.
7541 # Check for GNU $ac_path_SED
7542case `"$ac_path_SED" --version 2>&1` in
7543*GNU*)
7544 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7545*)
7546 ac_count=0
7547 $as_echo_n 0123456789 >"conftest.in"
7548 while :
7549 do
7550 cat "conftest.in" "conftest.in" >"conftest.tmp"
7551 mv "conftest.tmp" "conftest.in"
7552 cp "conftest.in" "conftest.nl"
7553 $as_echo '' >> "conftest.nl"
7554 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7556 as_fn_arith $ac_count + 1 && ac_count=$as_val
7557 if test $ac_count -gt ${ac_path_SED_max-0}; then
7558 # Best one so far, save it but keep looking for a better one
7559 ac_cv_path_SED="$ac_path_SED"
7560 ac_path_SED_max=$ac_count
7561 fi
7562 # 10*(2^10) chars as input seems more than enough
7563 test $ac_count -gt 10 && break
7564 done
7565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7566esac
7567
7568 $ac_path_SED_found && break 3
7569 done
7570 done
7571 done
7572IFS=$as_save_IFS
7573 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007574 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007575 fi
7576else
7577 ac_cv_path_SED=$SED
7578fi
7579
7580fi
7581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7582$as_echo "$ac_cv_path_SED" >&6; }
7583 SED="$ac_cv_path_SED"
7584 rm -f conftest.sed
7585
7586test -z "$SED" && SED=sed
7587Xsed="$SED -e 1s/^X//"
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7600$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007601if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007602 $as_echo_n "(cached) " >&6
7603else
7604 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7605 then ac_cv_path_FGREP="$GREP -F"
7606 else
7607 if test -z "$FGREP"; then
7608 ac_path_FGREP_found=false
7609 # Loop through the user's path and test for each of PROGNAME-LIST
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7612do
7613 IFS=$as_save_IFS
7614 test -z "$as_dir" && as_dir=.
7615 for ac_prog in fgrep; do
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007618 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007619# Check for GNU ac_path_FGREP and select it if it is found.
7620 # Check for GNU $ac_path_FGREP
7621case `"$ac_path_FGREP" --version 2>&1` in
7622*GNU*)
7623 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7624*)
7625 ac_count=0
7626 $as_echo_n 0123456789 >"conftest.in"
7627 while :
7628 do
7629 cat "conftest.in" "conftest.in" >"conftest.tmp"
7630 mv "conftest.tmp" "conftest.in"
7631 cp "conftest.in" "conftest.nl"
7632 $as_echo 'FGREP' >> "conftest.nl"
7633 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7635 as_fn_arith $ac_count + 1 && ac_count=$as_val
7636 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7637 # Best one so far, save it but keep looking for a better one
7638 ac_cv_path_FGREP="$ac_path_FGREP"
7639 ac_path_FGREP_max=$ac_count
7640 fi
7641 # 10*(2^10) chars as input seems more than enough
7642 test $ac_count -gt 10 && break
7643 done
7644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7645esac
7646
7647 $ac_path_FGREP_found && break 3
7648 done
7649 done
7650 done
7651IFS=$as_save_IFS
7652 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007653 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007654 fi
7655else
7656 ac_cv_path_FGREP=$FGREP
7657fi
7658
7659 fi
7660fi
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7662$as_echo "$ac_cv_path_FGREP" >&6; }
7663 FGREP="$ac_cv_path_FGREP"
7664
7665
7666test -z "$GREP" && GREP=grep
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
cristy0c60a692010-11-04 01:09:47 +00007684ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7685ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7686ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7687
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7689$as_echo_n "checking how to print strings... " >&6; }
7690# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007691if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007692 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7693 ECHO='print -r --'
7694elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7695 ECHO='printf %s\n'
7696else
7697 # Use this function as a fallback that always works.
7698 func_fallback_echo ()
7699 {
7700 eval 'cat <<_LTECHO_EOF
7701$1
7702_LTECHO_EOF'
7703 }
7704 ECHO='func_fallback_echo'
7705fi
7706
7707# func_echo_all arg...
7708# Invoke $ECHO with all args, space-separated.
7709func_echo_all ()
7710{
7711 $ECHO ""
7712}
7713
7714case "$ECHO" in
7715 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7716$as_echo "printf" >&6; } ;;
7717 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7718$as_echo "print -r" >&6; } ;;
7719 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7720$as_echo "cat" >&6; } ;;
7721esac
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
cristy73bd4a52010-10-05 11:24:23 +00007736
7737
7738# Check whether --with-gnu-ld was given.
7739if test "${with_gnu_ld+set}" = set; then :
7740 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7741else
7742 with_gnu_ld=no
7743fi
7744
7745ac_prog=ld
7746if test "$GCC" = yes; then
7747 # Check if gcc -print-prog-name=ld gives a path.
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7749$as_echo_n "checking for ld used by $CC... " >&6; }
7750 case $host in
7751 *-*-mingw*)
7752 # gcc leaves a trailing carriage return which upsets mingw
7753 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7754 *)
7755 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7756 esac
7757 case $ac_prog in
7758 # Accept absolute paths.
7759 [\\/]* | ?:[\\/]*)
7760 re_direlt='/[^/][^/]*/\.\./'
7761 # Canonicalize the pathname of ld
7762 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7763 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7764 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7765 done
7766 test -z "$LD" && LD="$ac_prog"
7767 ;;
7768 "")
7769 # If it fails, then pretend we aren't using GCC.
7770 ac_prog=ld
7771 ;;
7772 *)
7773 # If it is relative, then search for the first ld in PATH.
7774 with_gnu_ld=unknown
7775 ;;
7776 esac
7777elif test "$with_gnu_ld" = yes; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7779$as_echo_n "checking for GNU ld... " >&6; }
7780else
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7782$as_echo_n "checking for non-GNU ld... " >&6; }
7783fi
cristyda16f162011-02-19 23:52:17 +00007784if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007785 $as_echo_n "(cached) " >&6
7786else
7787 if test -z "$LD"; then
7788 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7789 for ac_dir in $PATH; do
7790 IFS="$lt_save_ifs"
7791 test -z "$ac_dir" && ac_dir=.
7792 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7793 lt_cv_path_LD="$ac_dir/$ac_prog"
7794 # Check to see if the program is GNU ld. I'd rather use --version,
7795 # but apparently some variants of GNU ld only accept -v.
7796 # Break only if it was the GNU/non-GNU ld that we prefer.
7797 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7798 *GNU* | *'with BFD'*)
7799 test "$with_gnu_ld" != no && break
7800 ;;
7801 *)
7802 test "$with_gnu_ld" != yes && break
7803 ;;
7804 esac
7805 fi
7806 done
7807 IFS="$lt_save_ifs"
7808else
7809 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7810fi
7811fi
7812
7813LD="$lt_cv_path_LD"
7814if test -n "$LD"; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7816$as_echo "$LD" >&6; }
7817else
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819$as_echo "no" >&6; }
7820fi
cristy98dddb52010-11-04 00:30:15 +00007821test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7823$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007824if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007825 $as_echo_n "(cached) " >&6
7826else
7827 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7828case `$LD -v 2>&1 </dev/null` in
7829*GNU* | *'with BFD'*)
7830 lt_cv_prog_gnu_ld=yes
7831 ;;
7832*)
7833 lt_cv_prog_gnu_ld=no
7834 ;;
7835esac
7836fi
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7838$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7839with_gnu_ld=$lt_cv_prog_gnu_ld
7840
7841
7842
7843
7844
7845
7846
7847
7848
cristy3ed852e2009-09-05 21:47:34 +00007849
cristy837d6dc2010-02-27 01:16:57 +00007850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7851$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007852if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007853 $as_echo_n "(cached) " >&6
7854else
7855 ac_cv_prog_cc_c99=no
7856ac_save_CC=$CC
7857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858/* end confdefs.h. */
7859#include <stdarg.h>
7860#include <stdbool.h>
7861#include <stdlib.h>
7862#include <wchar.h>
7863#include <stdio.h>
7864
7865// Check varargs macros. These examples are taken from C99 6.10.3.5.
7866#define debug(...) fprintf (stderr, __VA_ARGS__)
7867#define showlist(...) puts (#__VA_ARGS__)
7868#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7869static void
7870test_varargs_macros (void)
7871{
7872 int x = 1234;
7873 int y = 5678;
7874 debug ("Flag");
7875 debug ("X = %d\n", x);
7876 showlist (The first, second, and third items.);
7877 report (x>y, "x is %d but y is %d", x, y);
7878}
7879
7880// Check long long types.
7881#define BIG64 18446744073709551615ull
7882#define BIG32 4294967295ul
7883#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7884#if !BIG_OK
7885 your preprocessor is broken;
7886#endif
7887#if BIG_OK
7888#else
7889 your preprocessor is broken;
7890#endif
7891static long long int bignum = -9223372036854775807LL;
7892static unsigned long long int ubignum = BIG64;
7893
7894struct incomplete_array
7895{
7896 int datasize;
7897 double data[];
7898};
7899
7900struct named_init {
7901 int number;
7902 const wchar_t *name;
7903 double average;
7904};
7905
7906typedef const char *ccp;
7907
7908static inline int
7909test_restrict (ccp restrict text)
7910{
7911 // See if C++-style comments work.
7912 // Iterate through items via the restricted pointer.
7913 // Also check for declarations in for loops.
7914 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7915 continue;
7916 return 0;
7917}
7918
7919// Check varargs and va_copy.
7920static void
7921test_varargs (const char *format, ...)
7922{
7923 va_list args;
7924 va_start (args, format);
7925 va_list args_copy;
7926 va_copy (args_copy, args);
7927
7928 const char *str;
7929 int number;
7930 float fnumber;
7931
7932 while (*format)
7933 {
7934 switch (*format++)
7935 {
7936 case 's': // string
7937 str = va_arg (args_copy, const char *);
7938 break;
7939 case 'd': // int
7940 number = va_arg (args_copy, int);
7941 break;
7942 case 'f': // float
7943 fnumber = va_arg (args_copy, double);
7944 break;
7945 default:
7946 break;
7947 }
7948 }
7949 va_end (args_copy);
7950 va_end (args);
7951}
7952
7953int
7954main ()
7955{
7956
7957 // Check bool.
7958 _Bool success = false;
7959
7960 // Check restrict.
7961 if (test_restrict ("String literal") == 0)
7962 success = true;
7963 char *restrict newvar = "Another string";
7964
7965 // Check varargs.
7966 test_varargs ("s, d' f .", "string", 65, 34.234);
7967 test_varargs_macros ();
7968
7969 // Check flexible array members.
7970 struct incomplete_array *ia =
7971 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7972 ia->datasize = 10;
7973 for (int i = 0; i < ia->datasize; ++i)
7974 ia->data[i] = i * 1.234;
7975
7976 // Check named initializers.
7977 struct named_init ni = {
7978 .number = 34,
7979 .name = L"Test wide string",
7980 .average = 543.34343,
7981 };
7982
7983 ni.number = 58;
7984
7985 int dynamic_array[ni.number];
7986 dynamic_array[ni.number - 1] = 543;
7987
7988 // work around unused variable warnings
7989 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7990 || dynamic_array[ni.number - 1] != 543);
7991
7992 ;
7993 return 0;
7994}
7995_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007996for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007997do
7998 CC="$ac_save_CC $ac_arg"
7999 if ac_fn_c_try_compile "$LINENO"; then :
8000 ac_cv_prog_cc_c99=$ac_arg
8001fi
8002rm -f core conftest.err conftest.$ac_objext
8003 test "x$ac_cv_prog_cc_c99" != "xno" && break
8004done
8005rm -f conftest.$ac_ext
8006CC=$ac_save_CC
8007
8008fi
8009# AC_CACHE_VAL
8010case "x$ac_cv_prog_cc_c99" in
8011 x)
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8013$as_echo "none needed" >&6; } ;;
8014 xno)
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8016$as_echo "unsupported" >&6; } ;;
8017 *)
8018 CC="$CC $ac_cv_prog_cc_c99"
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8020$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8021esac
8022if test "x$ac_cv_prog_cc_c99" != xno; then :
8023
8024fi
8025
8026
cristy73bd4a52010-10-05 11:24:23 +00008027
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8029$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008030if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008031 $as_echo_n "(cached) " >&6
8032else
8033 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00008034 ac_ext=c
8035ac_cpp='$CPP $CPPFLAGS'
8036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8038ac_compiler_gnu=$ac_cv_c_compiler_gnu
8039
8040 ac_save_CFLAGS="$CFLAGS"
8041for 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" #
8042do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044/* end confdefs.h. */
8045
8046int
8047main ()
8048{
cristy24fc1fe2010-10-23 21:13:01 +00008049
cristy73bd4a52010-10-05 11:24:23 +00008050 ;
8051 return 0;
8052}
8053_ACEOF
8054if ac_fn_c_try_compile "$LINENO"; then :
8055 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8056fi
8057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058done
8059 CFLAGS="$ac_save_CFLAGS"
8060 ac_ext=c
8061ac_cpp='$CPP $CPPFLAGS'
8062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8064ac_compiler_gnu=$ac_cv_c_compiler_gnu
8065
8066
8067fi
8068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8069$as_echo "$ac_cv_cflags_warn_all" >&6; }
8070case ".$ac_cv_cflags_warn_all" in
8071 .ok|.ok,*) ;;
8072 .|.no|.no,*)
8073 ;;
8074 *)
8075 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8076 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8077 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8078 ac_status=$?
8079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8080 test $ac_status = 0; }
8081 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8082 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8083 ac_status=$?
8084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8085 test $ac_status = 0; }
8086 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8087 fi
8088 ;;
nicolas6237c462010-10-05 06:11:49 +00008089esac
cristy3ed852e2009-09-05 21:47:34 +00008090
cristya0b81c32010-01-22 02:54:33 +00008091
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8093$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8094set x ${MAKE-make}
8095ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008096if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008097 $as_echo_n "(cached) " >&6
8098else
8099 cat >conftest.make <<\_ACEOF
8100SHELL = /bin/sh
8101all:
8102 @echo '@@@%%%=$(MAKE)=@@@%%%'
8103_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008104# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008105case `${MAKE-make} -f conftest.make 2>/dev/null` in
8106 *@@@%%%=?*=@@@%%%*)
8107 eval ac_cv_prog_make_${ac_make}_set=yes;;
8108 *)
8109 eval ac_cv_prog_make_${ac_make}_set=no;;
8110esac
8111rm -f conftest.make
8112fi
8113if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8115$as_echo "yes" >&6; }
8116 SET_MAKE=
8117else
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119$as_echo "no" >&6; }
8120 SET_MAKE="MAKE=${MAKE-make}"
8121fi
8122
cristy8b350f62009-11-15 23:12:43 +00008123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008124$as_echo_n "checking whether ln -s works... " >&6; }
8125LN_S=$as_ln_s
8126if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008128$as_echo "yes" >&6; }
8129else
cristy8b350f62009-11-15 23:12:43 +00008130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008131$as_echo "no, using $LN_S" >&6; }
8132fi
8133
cristy8d0ff762013-03-10 20:33:28 +00008134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8135$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8136if ${ac_cv_path_SED+:} false; then :
8137 $as_echo_n "(cached) " >&6
8138else
8139 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8140 for ac_i in 1 2 3 4 5 6 7; do
8141 ac_script="$ac_script$as_nl$ac_script"
8142 done
8143 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8144 { ac_script=; unset ac_script;}
8145 if test -z "$SED"; then
8146 ac_path_SED_found=false
8147 # Loop through the user's path and test for each of PROGNAME-LIST
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149for as_dir in $PATH
8150do
8151 IFS=$as_save_IFS
8152 test -z "$as_dir" && as_dir=.
8153 for ac_prog in sed gsed; do
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8156 as_fn_executable_p "$ac_path_SED" || continue
8157# Check for GNU ac_path_SED and select it if it is found.
8158 # Check for GNU $ac_path_SED
8159case `"$ac_path_SED" --version 2>&1` in
8160*GNU*)
8161 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8162*)
8163 ac_count=0
8164 $as_echo_n 0123456789 >"conftest.in"
8165 while :
8166 do
8167 cat "conftest.in" "conftest.in" >"conftest.tmp"
8168 mv "conftest.tmp" "conftest.in"
8169 cp "conftest.in" "conftest.nl"
8170 $as_echo '' >> "conftest.nl"
8171 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8173 as_fn_arith $ac_count + 1 && ac_count=$as_val
8174 if test $ac_count -gt ${ac_path_SED_max-0}; then
8175 # Best one so far, save it but keep looking for a better one
8176 ac_cv_path_SED="$ac_path_SED"
8177 ac_path_SED_max=$ac_count
8178 fi
8179 # 10*(2^10) chars as input seems more than enough
8180 test $ac_count -gt 10 && break
8181 done
8182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8183esac
8184
8185 $ac_path_SED_found && break 3
8186 done
8187 done
8188 done
8189IFS=$as_save_IFS
8190 if test -z "$ac_cv_path_SED"; then
8191 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8192 fi
8193else
8194 ac_cv_path_SED=$SED
8195fi
8196
8197fi
8198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8199$as_echo "$ac_cv_path_SED" >&6; }
8200 SED="$ac_cv_path_SED"
8201 rm -f conftest.sed
8202
cristybc556452012-08-17 19:44:03 +00008203for ac_prog in gawk mawk nawk awk
8204do
8205 # Extract the first word of "$ac_prog", so it can be a program name with args.
8206set dummy $ac_prog; ac_word=$2
8207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8208$as_echo_n "checking for $ac_word... " >&6; }
8209if ${ac_cv_prog_AWK+:} false; then :
8210 $as_echo_n "(cached) " >&6
8211else
8212 if test -n "$AWK"; then
8213 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8214else
8215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216for as_dir in $PATH
8217do
8218 IFS=$as_save_IFS
8219 test -z "$as_dir" && as_dir=.
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8222 ac_cv_prog_AWK="$ac_prog"
8223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8224 break 2
8225 fi
8226done
8227 done
8228IFS=$as_save_IFS
8229
8230fi
8231fi
8232AWK=$ac_cv_prog_AWK
8233if test -n "$AWK"; then
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8235$as_echo "$AWK" >&6; }
8236else
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238$as_echo "no" >&6; }
8239fi
8240
8241
8242 test -n "$AWK" && break
8243done
8244
cristy73bd4a52010-10-05 11:24:23 +00008245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8246$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8247
8248# Check whether --with-dmalloc was given.
8249if test "${with_dmalloc+set}" = set; then :
8250 withval=$with_dmalloc; if test "$withval" = yes; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8252$as_echo "yes" >&6; }
8253
8254$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8255
8256 LIBS="$LIBS -ldmalloc"
8257 LDFLAGS="$LDFLAGS -g"
8258else
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260$as_echo "no" >&6; }
8261fi
8262else
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264$as_echo "no" >&6; }
8265fi
8266
8267
8268
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8270$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008271if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008272 $as_echo_n "(cached) " >&6
8273else
8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275/* end confdefs.h. */
8276#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008277 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008278 static void
8279 foo(void) {
8280 exit(1);
8281 }
8282
8283int
8284main ()
8285{
8286
8287 ;
8288 return 0;
8289}
8290_ACEOF
8291if ac_fn_c_try_compile "$LINENO"; then :
8292 ax_cv___attribute__=yes
8293else
8294 ax_cv___attribute__=no
8295
8296fi
8297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298
8299fi
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8301$as_echo "$ax_cv___attribute__" >&6; }
8302 if test "$ax_cv___attribute__" = "yes"; then
8303
8304$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8305
8306 fi
8307
8308
8309
cristya0459972013-11-03 18:09:35 +00008310
8311
8312# Check whether --with-gcc-arch was given.
8313if test "${with_gcc_arch+set}" = set; then :
8314 withval=$with_gcc_arch; ax_gcc_arch=$withval
8315else
8316 ax_gcc_arch=no
8317fi
8318
8319
8320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8321$as_echo_n "checking for gcc architecture flag... " >&6; }
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8323$as_echo "" >&6; }
8324if ${ax_cv_gcc_archflag+:} false; then :
8325 $as_echo_n "(cached) " >&6
8326else
8327
8328ax_cv_gcc_archflag="unknown"
8329
8330if test "$GCC" = yes; then
8331
8332if test "x$ax_gcc_arch" = xyes; then
8333ax_gcc_arch=""
8334if test "$cross_compiling" = no; then
8335case $host_cpu in
8336 i[3456]86*|x86_64*) # use cpuid codes
8337
8338ac_ext=c
8339ac_cpp='$CPP $CPPFLAGS'
8340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8342ac_compiler_gnu=$ac_cv_c_compiler_gnu
8343
8344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8345$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8346if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348else
8349 if test "$cross_compiling" = yes; then :
8350 ax_cv_gcc_x86_cpuid_0=unknown
8351else
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353/* end confdefs.h. */
8354#include <stdio.h>
8355int
8356main ()
8357{
8358
8359 int op = 0, eax, ebx, ecx, edx;
8360 FILE *f;
8361 __asm__("cpuid"
8362 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8363 : "a" (op));
8364 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8365 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8366 fclose(f);
8367 return 0;
8368
8369 ;
8370 return 0;
8371}
8372_ACEOF
8373if ac_fn_c_try_run "$LINENO"; then :
8374 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8375else
8376 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8377fi
8378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8379 conftest.$ac_objext conftest.beam conftest.$ac_ext
8380fi
8381
8382fi
8383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8384$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8385ac_ext=c
8386ac_cpp='$CPP $CPPFLAGS'
8387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8389ac_compiler_gnu=$ac_cv_c_compiler_gnu
8390
8391
8392
8393ac_ext=c
8394ac_cpp='$CPP $CPPFLAGS'
8395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8397ac_compiler_gnu=$ac_cv_c_compiler_gnu
8398
8399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8400$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8401if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8402 $as_echo_n "(cached) " >&6
8403else
8404 if test "$cross_compiling" = yes; then :
8405 ax_cv_gcc_x86_cpuid_1=unknown
8406else
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408/* end confdefs.h. */
8409#include <stdio.h>
8410int
8411main ()
8412{
8413
8414 int op = 1, eax, ebx, ecx, edx;
8415 FILE *f;
8416 __asm__("cpuid"
8417 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8418 : "a" (op));
8419 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8420 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8421 fclose(f);
8422 return 0;
8423
8424 ;
8425 return 0;
8426}
8427_ACEOF
8428if ac_fn_c_try_run "$LINENO"; then :
8429 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8430else
8431 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8432fi
8433rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8434 conftest.$ac_objext conftest.beam conftest.$ac_ext
8435fi
8436
8437fi
8438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8439$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8440ac_ext=c
8441ac_cpp='$CPP $CPPFLAGS'
8442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8444ac_compiler_gnu=$ac_cv_c_compiler_gnu
8445
8446
8447 case $ax_cv_gcc_x86_cpuid_0 in
8448 *:756e6547:*:*) # Intel
8449 case $ax_cv_gcc_x86_cpuid_1 in
8450 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8451 *5??:*:*:*) ax_gcc_arch=pentium ;;
8452 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8453 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8454 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8455 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8456 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8457 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8458 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8459 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8460 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8461 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8462 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8463 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8464 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8465 case $host_cpu in
8466 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8467 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8468 esac ;;
8469 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8470 esac ;;
8471 *:68747541:*:*) # AMD
8472 case $ax_cv_gcc_x86_cpuid_1 in
8473 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8474 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8475 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8476 *60?:*:*:*) ax_gcc_arch=k7 ;;
8477 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8478 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8479 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8480 *6[68a]?:*:*:*)
8481
8482ac_ext=c
8483ac_cpp='$CPP $CPPFLAGS'
8484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8486ac_compiler_gnu=$ac_cv_c_compiler_gnu
8487
8488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8489$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8490if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8491 $as_echo_n "(cached) " >&6
8492else
8493 if test "$cross_compiling" = yes; then :
8494 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8495else
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497/* end confdefs.h. */
8498#include <stdio.h>
8499int
8500main ()
8501{
8502
8503 int op = 0x80000006, eax, ebx, ecx, edx;
8504 FILE *f;
8505 __asm__("cpuid"
8506 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8507 : "a" (op));
8508 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8509 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8510 fclose(f);
8511 return 0;
8512
8513 ;
8514 return 0;
8515}
8516_ACEOF
8517if ac_fn_c_try_run "$LINENO"; then :
8518 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8519else
8520 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8521fi
8522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8523 conftest.$ac_objext conftest.beam conftest.$ac_ext
8524fi
8525
8526fi
8527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8528$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8529ac_ext=c
8530ac_cpp='$CPP $CPPFLAGS'
8531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8533ac_compiler_gnu=$ac_cv_c_compiler_gnu
8534
8535 # L2 cache size
8536 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8537 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8538 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8539 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8540 esac ;;
8541 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8542 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8543 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8544 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8545 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8546 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8547 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8548 esac ;;
8549 *:746e6543:*:*) # IDT
8550 case $ax_cv_gcc_x86_cpuid_1 in
8551 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8552 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8553 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8554 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8555 esac ;;
8556 esac
8557 if test x"$ax_gcc_arch" = x; then # fallback
8558 case $host_cpu in
8559 i586*) ax_gcc_arch=pentium ;;
8560 i686*) ax_gcc_arch=pentiumpro ;;
8561 esac
8562 fi
8563 ;;
8564
8565 sparc*)
8566 # Extract the first word of "prtdiag", so it can be a program name with args.
8567set dummy prtdiag; ac_word=$2
8568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569$as_echo_n "checking for $ac_word... " >&6; }
8570if ${ac_cv_path_PRTDIAG+:} false; then :
8571 $as_echo_n "(cached) " >&6
8572else
8573 case $PRTDIAG in
8574 [\\/]* | ?:[\\/]*)
8575 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8576 ;;
8577 *)
8578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8580for as_dir in $as_dummy
8581do
8582 IFS=$as_save_IFS
8583 test -z "$as_dir" && as_dir=.
8584 for ac_exec_ext in '' $ac_executable_extensions; do
8585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8586 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8588 break 2
8589 fi
8590done
8591 done
8592IFS=$as_save_IFS
8593
8594 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8595 ;;
8596esac
8597fi
8598PRTDIAG=$ac_cv_path_PRTDIAG
8599if test -n "$PRTDIAG"; then
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8601$as_echo "$PRTDIAG" >&6; }
8602else
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604$as_echo "no" >&6; }
8605fi
8606
8607
8608 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`
8609 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8610 case $cputype in
8611 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8612 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8613 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8614 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8615 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8616 *cypress*) ax_gcc_arch=cypress ;;
8617 esac ;;
8618
8619 alphaev5) ax_gcc_arch=ev5 ;;
8620 alphaev56) ax_gcc_arch=ev56 ;;
8621 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8622 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8623 alphaev6) ax_gcc_arch=ev6 ;;
8624 alphaev67) ax_gcc_arch=ev67 ;;
8625 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8626 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8627 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8628 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8629
8630 powerpc*)
8631 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`
8632 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8633 case $cputype in
8634 *750*) ax_gcc_arch="750 G3" ;;
8635 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8636 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8637 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8638 *970*) ax_gcc_arch="970 G5 power4";;
8639 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8640 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8641 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8642 *) ax_gcc_arch=$cputype ;;
8643 esac
8644 ax_gcc_arch="$ax_gcc_arch powerpc"
8645 ;;
8646esac
8647fi # not cross-compiling
8648fi # guess arch
8649
8650if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8651for arch in $ax_gcc_arch; do
8652 if test "xno" = xyes; then # if we require portable code
8653 flags="-mtune=$arch"
8654 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8655 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8656 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8657 else
8658 flags="-march=$arch -mcpu=$arch -m$arch"
8659 fi
8660 for flag in $flags; do
8661 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8663$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8664if eval \${$as_CACHEVAR+:} false; then :
8665 $as_echo_n "(cached) " >&6
8666else
8667
8668 ax_check_save_flags=$CFLAGS
8669 CFLAGS="$CFLAGS $flag"
8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671/* end confdefs.h. */
8672
8673int
8674main ()
8675{
8676
8677 ;
8678 return 0;
8679}
8680_ACEOF
8681if ac_fn_c_try_compile "$LINENO"; then :
8682 eval "$as_CACHEVAR=yes"
8683else
8684 eval "$as_CACHEVAR=no"
8685fi
8686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687 CFLAGS=$ax_check_save_flags
8688fi
8689eval ac_res=\$$as_CACHEVAR
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8691$as_echo "$ac_res" >&6; }
8692if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8693 ax_cv_gcc_archflag=$flag; break
8694else
8695 :
8696fi
8697
8698 done
8699 test "x$ax_cv_gcc_archflag" = xunknown || break
8700done
8701fi
8702
8703fi # $GCC=yes
8704
8705fi
8706
8707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8708$as_echo_n "checking for gcc architecture flag... " >&6; }
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8710$as_echo "$ax_cv_gcc_archflag" >&6; }
8711if test "x$ax_cv_gcc_archflag" = xunknown; then
8712 :
8713else
8714 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8715fi
8716
8717
8718
cristy73bd4a52010-10-05 11:24:23 +00008719if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8720 if test -n "$ac_tool_prefix"; then
8721 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8722set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8724$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008725if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008726 $as_echo_n "(cached) " >&6
8727else
8728 case $PKG_CONFIG in
8729 [\\/]* | ?:[\\/]*)
8730 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8731 ;;
8732 *)
8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734for as_dir in $PATH
8735do
8736 IFS=$as_save_IFS
8737 test -z "$as_dir" && as_dir=.
8738 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008740 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8742 break 2
8743 fi
8744done
8745 done
8746IFS=$as_save_IFS
8747
8748 ;;
8749esac
8750fi
8751PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8752if test -n "$PKG_CONFIG"; then
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8754$as_echo "$PKG_CONFIG" >&6; }
8755else
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757$as_echo "no" >&6; }
8758fi
8759
8760
8761fi
8762if test -z "$ac_cv_path_PKG_CONFIG"; then
8763 ac_pt_PKG_CONFIG=$PKG_CONFIG
8764 # Extract the first word of "pkg-config", so it can be a program name with args.
8765set dummy pkg-config; ac_word=$2
8766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8767$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008768if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008769 $as_echo_n "(cached) " >&6
8770else
8771 case $ac_pt_PKG_CONFIG in
8772 [\\/]* | ?:[\\/]*)
8773 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8774 ;;
8775 *)
8776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777for as_dir in $PATH
8778do
8779 IFS=$as_save_IFS
8780 test -z "$as_dir" && as_dir=.
8781 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008783 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8785 break 2
8786 fi
8787done
8788 done
8789IFS=$as_save_IFS
8790
8791 ;;
8792esac
8793fi
8794ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8795if test -n "$ac_pt_PKG_CONFIG"; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8797$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8798else
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800$as_echo "no" >&6; }
8801fi
8802
8803 if test "x$ac_pt_PKG_CONFIG" = x; then
8804 PKG_CONFIG=""
8805 else
8806 case $cross_compiling:$ac_tool_warned in
8807yes:)
8808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8810ac_tool_warned=yes ;;
8811esac
8812 PKG_CONFIG=$ac_pt_PKG_CONFIG
8813 fi
8814else
8815 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8816fi
8817
8818fi
8819if test -n "$PKG_CONFIG"; then
8820 _pkg_min_version=0.9.0
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8822$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8823 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8825$as_echo "yes" >&6; }
8826 else
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828$as_echo "no" >&6; }
8829 PKG_CONFIG=""
8830 fi
8831
8832fi
cristy3ed852e2009-09-05 21:47:34 +00008833
cristyd95b7a52013-10-23 13:12:53 +00008834# Test for 64-bit build.
8835# The cast to long int works around a bug in the HP C Compiler
8836# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8837# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8838# This bug is HP SR number 8606223364.
8839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8840$as_echo_n "checking size of size_t... " >&6; }
8841if ${ac_cv_sizeof_size_t+:} false; then :
8842 $as_echo_n "(cached) " >&6
8843else
8844 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
8845
8846else
8847 if test "$ac_cv_type_size_t" = yes; then
8848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8850as_fn_error 77 "cannot compute sizeof (size_t)
8851See \`config.log' for more details" "$LINENO" 5; }
8852 else
8853 ac_cv_sizeof_size_t=0
8854 fi
8855fi
8856
8857fi
8858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8859$as_echo "$ac_cv_sizeof_size_t" >&6; }
8860
8861
8862
8863cat >>confdefs.h <<_ACEOF
8864#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8865_ACEOF
8866
8867
8868
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8870$as_echo_n "checking for C compiler vendor... " >&6; }
8871if ${ax_cv_c_compiler_vendor+:} false; then :
8872 $as_echo_n "(cached) " >&6
8873else
8874 # note: don't check for gcc first since some other compilers define __GNUC__
8875 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8876 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8877 pathscale: __PATHCC__,__PATHSCALE__
8878 clang: __clang__
8879 gnu: __GNUC__
8880 sun: __SUNPRO_C,__SUNPRO_CC
8881 hp: __HP_cc,__HP_aCC
8882 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8883 borland: __BORLANDC__,__TURBOC__
8884 comeau: __COMO__
8885 cray: _CRAYC
8886 kai: __KCC
8887 lcc: __LCC__
8888 sgi: __sgi,sgi
8889 microsoft: _MSC_VER
8890 metrowerks: __MWERKS__
8891 watcom: __WATCOMC__
8892 portland: __PGI
8893 unknown: UNKNOWN"
8894 for ventest in $vendors; do
8895 case $ventest in
8896 *:) vendor=$ventest; continue ;;
8897 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8898 esac
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900/* end confdefs.h. */
8901
8902int
8903main ()
8904{
8905
8906 #if !($vencpp)
8907 thisisanerror;
8908 #endif
8909
8910 ;
8911 return 0;
8912}
8913_ACEOF
8914if ac_fn_c_try_compile "$LINENO"; then :
8915 break
8916fi
8917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8918 done
8919 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8920
8921fi
8922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8923$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8924
cristyd95b7a52013-10-23 13:12:53 +00008925# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
8926# compiler.
8927if test "$ax_cv_c_compiler_vendor" != "sun"; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8929$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8930if ${ac_cv_cflags_warn_all+:} false; then :
8931 $as_echo_n "(cached) " >&6
8932else
8933 ac_cv_cflags_warn_all="no, unknown"
8934 ac_ext=c
8935ac_cpp='$CPP $CPPFLAGS'
8936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8938ac_compiler_gnu=$ac_cv_c_compiler_gnu
8939
8940 ac_save_CFLAGS="$CFLAGS"
8941for 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" #
8942do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944/* end confdefs.h. */
8945
8946int
8947main ()
8948{
8949
8950 ;
8951 return 0;
8952}
8953_ACEOF
8954if ac_fn_c_try_compile "$LINENO"; then :
8955 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8956fi
8957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958done
8959 CFLAGS="$ac_save_CFLAGS"
8960 ac_ext=c
8961ac_cpp='$CPP $CPPFLAGS'
8962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8964ac_compiler_gnu=$ac_cv_c_compiler_gnu
8965
8966
8967fi
8968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8969$as_echo "$ac_cv_cflags_warn_all" >&6; }
8970case ".$ac_cv_cflags_warn_all" in
8971 .ok|.ok,*) ;;
8972 .|.no|.no,*)
8973 ;;
8974 *)
8975 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8976 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8977 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8978 ac_status=$?
8979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8980 test $ac_status = 0; }
8981 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8982 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8983 ac_status=$?
8984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8985 test $ac_status = 0; }
8986 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8987 fi
8988 ;;
8989esac
8990
8991fi
8992
8993if test "x$GCC" = "xyes"; then
8994 CFLAGS="$CFLAGS -fexceptions"
8995 touch local.exp
8996else
8997 cat > local.exp <<EOF
8998set CC_FOR_TARGET "$CC"
8999EOF
9000fi
9001
cristy9b86f202012-11-28 21:55:35 +00009002# Check for linker script support
9003
9004 # Check whether --enable-ld-version-script was given.
9005if test "${enable_ld_version_script+set}" = set; then :
9006 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9007fi
9008
9009 if test -z "$have_ld_version_script"; then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9011$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9012 save_LDFLAGS="$LDFLAGS"
9013 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9014 cat > conftest.map <<EOF
9015foo
9016EOF
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018/* end confdefs.h. */
9019
9020int
9021main ()
9022{
9023
9024 ;
9025 return 0;
9026}
9027_ACEOF
9028if ac_fn_c_try_link "$LINENO"; then :
9029 accepts_syntax_errors=yes
9030else
9031 accepts_syntax_errors=no
9032fi
9033rm -f core conftest.err conftest.$ac_objext \
9034 conftest$ac_exeext conftest.$ac_ext
9035 if test "$accepts_syntax_errors" = no; then
9036 cat > conftest.map <<EOF
9037VERS_1 {
9038 global: sym;
9039};
9040
9041VERS_2 {
9042 global: sym;
9043} VERS_1;
9044EOF
9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046/* end confdefs.h. */
9047
9048int
9049main ()
9050{
9051
9052 ;
9053 return 0;
9054}
9055_ACEOF
9056if ac_fn_c_try_link "$LINENO"; then :
9057 have_ld_version_script=yes
9058else
9059 have_ld_version_script=no
9060fi
9061rm -f core conftest.err conftest.$ac_objext \
9062 conftest$ac_exeext conftest.$ac_ext
9063 else
9064 have_ld_version_script=no
9065 fi
9066 rm -f conftest.map
9067 LDFLAGS="$save_LDFLAGS"
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9069$as_echo "$have_ld_version_script" >&6; }
9070 fi
9071 if test "$have_ld_version_script" = "yes"; then
9072 HAVE_LD_VERSION_SCRIPT_TRUE=
9073 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9074else
9075 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9076 HAVE_LD_VERSION_SCRIPT_FALSE=
9077fi
9078
9079
9080
cristy3ed852e2009-09-05 21:47:34 +00009081#
cristy3ed852e2009-09-05 21:47:34 +00009082# Enable run-time checking.
9083#
9084# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009085if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009086 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9087else
9088 enable_bounds_checking='no'
9089fi
9090
9091
9092if test "$enable_bounds_checking" = yes; then
9093
cristy8b350f62009-11-15 23:12:43 +00009094$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009095
9096fi
9097
9098#
9099# Tests for Windows
9100#
9101
9102
9103
9104GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009105native_win32_build='no'
9106cygwin_build='no'
9107case "${host_os}" in
9108 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009109 cygwin_build='yes'
9110 GDI32_LIBS='-lgdi32'
9111 ;;
9112 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009113 native_win32_build='yes'
9114 GDI32_LIBS='-lgdi32'
9115 ;;
9116esac
9117if test "${GDI32_LIBS}x" != 'x'; then
9118
cristy8b350f62009-11-15 23:12:43 +00009119$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009120
9121fi
9122
cristy73bd4a52010-10-05 11:24:23 +00009123 if test "${GDI32_LIBS}x" != 'x' ; then
9124 WINGDI32_DELEGATE_TRUE=
9125 WINGDI32_DELEGATE_FALSE='#'
9126else
9127 WINGDI32_DELEGATE_TRUE='#'
9128 WINGDI32_DELEGATE_FALSE=
9129fi
9130
9131 if test "${native_win32_build}" = 'yes' ; then
9132 WIN32_NATIVE_BUILD_TRUE=
9133 WIN32_NATIVE_BUILD_FALSE='#'
9134else
9135 WIN32_NATIVE_BUILD_TRUE='#'
9136 WIN32_NATIVE_BUILD_FALSE=
9137fi
9138
9139 if test "${cygwin_build}" = 'yes' ; then
9140 CYGWIN_BUILD_TRUE=
9141 CYGWIN_BUILD_FALSE='#'
9142else
9143 CYGWIN_BUILD_TRUE='#'
9144 CYGWIN_BUILD_FALSE=
9145fi
9146
9147 if test "x${CC}" = 'xcl.exe' ; then
9148 USING_CL_TRUE=
9149 USING_CL_FALSE='#'
9150else
9151 USING_CL_TRUE='#'
9152 USING_CL_FALSE=
9153fi
9154
cristy3ed852e2009-09-05 21:47:34 +00009155
9156WinPathScript="${srcdirfull}/winpath.sh"
9157
9158
9159#
9160# Compiler flags tweaks
9161#
9162if test "${GCC}" != "yes"; then
9163 case "${host}" in
9164 *-*-hpux* )
9165 # aCC: HP ANSI C++ B3910B A.03.34
9166 CFLAGS="${CFLAGS} -Wp,-H30000"
9167 if test -n "${CXXFLAGS}"; then
9168 CXXFLAGS='-AA'
9169 else
9170 CXXFLAGS="${CXXFLAGS} -AA"
9171 fi
9172 ;;
9173 *-dec-osf5.* )
9174 # Compaq alphaev68-dec-osf5.1 compiler
9175 if test -n "${CXXFLAGS}"; then
9176 CXXFLAGS='-std strict_ansi -noimplicit_include'
9177 else
9178 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9179 fi
9180 esac
9181fi
9182
9183# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009185$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009186if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009187 $as_echo_n "(cached) " >&6
9188else
9189
9190im_cv_ld_lazyload='none'
9191case "${host}" in
9192 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9193 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9194 im_cv_ld_lazyload='-Wl,-zlazyload'
9195 fi
9196 ;;
9197esac
9198
9199fi
cristy8b350f62009-11-15 23:12:43 +00009200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009201$as_echo "$im_cv_ld_lazyload" >&6; }
9202if test "${im_cv_ld_lazyload}" != 'none' ; then
9203 if test -z "${LDFLAGS}" ; then
9204 LDFLAGS="${im_cv_ld_lazyload}"
9205 else
9206 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9207 fi
9208fi
9209
9210case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009211 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009212 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009213 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009214if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009215 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9216else
9217 build_osxuniversal=no
9218fi
9219
9220
cristyc37574e2013-02-16 01:04:55 +00009221 if test "${build_osxuniversal}" != no ; then
9222 if test "$enable_dependency_tracking" != no ; then
9223 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009224Please re-run configure with these options:
9225 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009226 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009227 fi
9228 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9229 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9230 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009231 fi
9232 ;;
9233esac
9234
cristy0151ae12011-10-28 16:32:29 +00009235#
9236# ARCH specific include directory
9237#
9238
cristy670aa3c2011-11-03 00:54:00 +00009239# Check whether --with-includearch-dir was given.
9240if test "${with_includearch_dir+set}" = set; then :
9241 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009242else
cristy670aa3c2011-11-03 00:54:00 +00009243 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009244fi
9245
9246
cristyd286fd72013-02-24 19:25:33 +00009247eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009248
cristy0151ae12011-10-28 16:32:29 +00009249
9250#
9251# ARCH specific configuration directory
9252#
9253
cristy670aa3c2011-11-03 00:54:00 +00009254# Check whether --with-sharearch-dir was given.
9255if test "${with_sharearch_dir+set}" = set; then :
9256 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009257else
cristy408ebcd2011-11-14 01:36:57 +00009258 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009259fi
9260
9261
cristy670aa3c2011-11-03 00:54:00 +00009262eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009263
cristy0151ae12011-10-28 16:32:29 +00009264
cristy2ec87cc2013-02-18 17:46:50 +00009265# Path to the pkgconfig folder
9266
9267# Check whether --with-pkgconfigdir was given.
9268if test "${with_pkgconfigdir+set}" = set; then :
9269 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9270else
9271 pkgconfigdir='${libdir}/pkgconfig'
9272fi
9273
9274
9275
cristy0151ae12011-10-28 16:32:29 +00009276#
cristy3ed852e2009-09-05 21:47:34 +00009277# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009278#
9279# Find Posix threads library
9280#
cristy3ed852e2009-09-05 21:47:34 +00009281
9282# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009283if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009284 withval=$with_threads; with_threads=$withval
9285else
9286 with_threads='yes'
9287fi
9288
9289
cristy1ae5c992013-07-30 14:55:07 +00009290THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009291have_threads=no
9292if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009293
9294
cristy73bd4a52010-10-05 11:24:23 +00009295ac_ext=c
9296ac_cpp='$CPP $CPPFLAGS'
9297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9299ac_compiler_gnu=$ac_cv_c_compiler_gnu
9300
9301ax_pthread_ok=no
9302
9303# We used to check for pthread.h first, but this fails if pthread.h
9304# requires special compiler flags (e.g. on True64 or Sequent).
9305# It gets checked for in the link test anyway.
9306
9307# First of all, check if the user has set any of the PTHREAD_LIBS,
9308# etcetera environment variables, and if threads linking works using
9309# them:
9310if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9311 save_CFLAGS="$CFLAGS"
9312 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9313 save_LIBS="$LIBS"
9314 LIBS="$PTHREAD_LIBS $LIBS"
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9316$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318/* end confdefs.h. */
9319
9320/* Override any GCC internal prototype to avoid an error.
9321 Use char because int might match the return type of a GCC
9322 builtin and then its argument prototype would still apply. */
9323#ifdef __cplusplus
9324extern "C"
9325#endif
9326char pthread_join ();
9327int
9328main ()
9329{
9330return pthread_join ();
9331 ;
9332 return 0;
9333}
9334_ACEOF
9335if ac_fn_c_try_link "$LINENO"; then :
9336 ax_pthread_ok=yes
9337fi
9338rm -f core conftest.err conftest.$ac_objext \
9339 conftest$ac_exeext conftest.$ac_ext
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9341$as_echo "$ax_pthread_ok" >&6; }
9342 if test x"$ax_pthread_ok" = xno; then
9343 PTHREAD_LIBS=""
9344 PTHREAD_CFLAGS=""
9345 fi
9346 LIBS="$save_LIBS"
9347 CFLAGS="$save_CFLAGS"
9348fi
9349
9350# We must check for the threads library under a number of different
9351# names; the ordering is very important because some systems
9352# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9353# libraries is broken (non-POSIX).
9354
9355# Create a list of thread flags to try. Items starting with a "-" are
9356# C compiler flags, and other items are library names, except for "none"
9357# which indicates that we try without any flags at all, and "pthread-config"
9358# which is a program returning the flags for the Pth emulation library.
9359
cristy2ec87cc2013-02-18 17:46:50 +00009360ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009361
9362# The ordering *is* (sometimes) important. Some notes on the
9363# individual items follow:
9364
9365# pthreads: AIX (must check this before -lpthread)
9366# none: in case threads are in libc; should be tried before -Kthread and
9367# other compiler flags to prevent continual compiler warnings
9368# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9369# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9370# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9371# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9372# -pthreads: Solaris/gcc
9373# -mthreads: Mingw32/gcc, Lynx/gcc
9374# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9375# doesn't hurt to check since this sometimes defines pthreads too;
9376# also defines -D_REENTRANT)
9377# ... -mt is also the pthreads flag for HP/aCC
9378# pthread: Linux, etcetera
9379# --thread-safe: KAI C++
9380# pthread-config: use pthread-config program (for GNU Pth library)
9381
cristy2ec87cc2013-02-18 17:46:50 +00009382case ${host_os} in
9383 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009384
9385 # On Solaris (at least, for some versions), libc contains stubbed
9386 # (non-functional) versions of the pthreads routines, so link-based
9387 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9388 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9389 # a function called by this macro, so we could check for that, but
9390 # who knows whether they'll stub that too in a future libc.) So,
9391 # we'll just look for -pthreads and -lpthread first:
9392
9393 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9394 ;;
9395
cristy2ec87cc2013-02-18 17:46:50 +00009396 darwin*)
cristya316db12011-10-24 00:49:45 +00009397 ax_pthread_flags="-pthread $ax_pthread_flags"
9398 ;;
cristy73bd4a52010-10-05 11:24:23 +00009399esac
9400
9401if test x"$ax_pthread_ok" = xno; then
9402for flag in $ax_pthread_flags; do
9403
9404 case $flag in
9405 none)
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9407$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9408 ;;
9409
9410 -*)
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9412$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9413 PTHREAD_CFLAGS="$flag"
9414 ;;
9415
cristya316db12011-10-24 00:49:45 +00009416 pthread-config)
9417 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009418set dummy pthread-config; ac_word=$2
9419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9420$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009421if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009422 $as_echo_n "(cached) " >&6
9423else
9424 if test -n "$ax_pthread_config"; then
9425 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9426else
9427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9428for as_dir in $PATH
9429do
9430 IFS=$as_save_IFS
9431 test -z "$as_dir" && as_dir=.
9432 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009434 ac_cv_prog_ax_pthread_config="yes"
9435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9436 break 2
9437 fi
9438done
9439 done
9440IFS=$as_save_IFS
9441
9442 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9443fi
9444fi
9445ax_pthread_config=$ac_cv_prog_ax_pthread_config
9446if test -n "$ax_pthread_config"; then
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9448$as_echo "$ax_pthread_config" >&6; }
9449else
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9451$as_echo "no" >&6; }
9452fi
9453
9454
cristya316db12011-10-24 00:49:45 +00009455 if test x"$ax_pthread_config" = xno; then continue; fi
9456 PTHREAD_CFLAGS="`pthread-config --cflags`"
9457 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9458 ;;
cristy73bd4a52010-10-05 11:24:23 +00009459
9460 *)
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9462$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9463 PTHREAD_LIBS="-l$flag"
9464 ;;
9465 esac
9466
9467 save_LIBS="$LIBS"
9468 save_CFLAGS="$CFLAGS"
9469 LIBS="$PTHREAD_LIBS $LIBS"
9470 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9471
9472 # Check for various functions. We must include pthread.h,
9473 # since some functions may be macros. (On the Sequent, we
9474 # need a special flag -Kthread to make this header compile.)
9475 # We check for pthread_join because it is in -lpthread on IRIX
9476 # while pthread_create is in libc. We check for pthread_attr_init
9477 # due to DEC craziness with -lpthreads. We check for
9478 # pthread_cleanup_push because it is one of the few pthread
9479 # functions on Solaris that doesn't have a non-functional libc stub.
9480 # We try pthread_create on general principles.
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482/* end confdefs.h. */
9483#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009484 static void routine(void *a) { a = 0; }
9485 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009486int
9487main ()
9488{
9489pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009490 pthread_create(&th, 0, start_routine, 0);
9491 pthread_join(th, 0);
9492 pthread_attr_init(&attr);
9493 pthread_cleanup_push(routine, 0);
9494 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009495 ;
9496 return 0;
9497}
9498_ACEOF
9499if ac_fn_c_try_link "$LINENO"; then :
9500 ax_pthread_ok=yes
9501fi
9502rm -f core conftest.err conftest.$ac_objext \
9503 conftest$ac_exeext conftest.$ac_ext
9504
9505 LIBS="$save_LIBS"
9506 CFLAGS="$save_CFLAGS"
9507
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9509$as_echo "$ax_pthread_ok" >&6; }
9510 if test "x$ax_pthread_ok" = xyes; then
9511 break;
9512 fi
9513
9514 PTHREAD_LIBS=""
9515 PTHREAD_CFLAGS=""
9516done
9517fi
9518
9519# Various other checks:
9520if test "x$ax_pthread_ok" = xyes; then
9521 save_LIBS="$LIBS"
9522 LIBS="$PTHREAD_LIBS $LIBS"
9523 save_CFLAGS="$CFLAGS"
9524 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9525
9526 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009528$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009529 attr_name=unknown
9530 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009532/* end confdefs.h. */
9533#include <pthread.h>
9534int
9535main ()
9536{
cristya316db12011-10-24 00:49:45 +00009537int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009538 ;
9539 return 0;
9540}
9541_ACEOF
9542if ac_fn_c_try_link "$LINENO"; then :
9543 attr_name=$attr; break
9544fi
9545rm -f core conftest.err conftest.$ac_objext \
9546 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009547 done
cristy73bd4a52010-10-05 11:24:23 +00009548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9549$as_echo "$attr_name" >&6; }
9550 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9551
9552cat >>confdefs.h <<_ACEOF
9553#define PTHREAD_CREATE_JOINABLE $attr_name
9554_ACEOF
9555
9556 fi
9557
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9559$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9560 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009561 case ${host_os} in
9562 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9563 osf* | hpux*) flag="-D_REENTRANT";;
9564 solaris*)
9565 if test "$GCC" = "yes"; then
9566 flag="-D_REENTRANT"
9567 else
9568 flag="-mt -D_REENTRANT"
9569 fi
9570 ;;
cristy73bd4a52010-10-05 11:24:23 +00009571 esac
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9573$as_echo "${flag}" >&6; }
9574 if test "x$flag" != xno; then
9575 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9576 fi
9577
cristya316db12011-10-24 00:49:45 +00009578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9579$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9580if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9581 $as_echo_n "(cached) " >&6
9582else
9583
9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585/* end confdefs.h. */
9586
9587 #include <pthread.h>
9588int
9589main ()
9590{
9591int i = PTHREAD_PRIO_INHERIT;
9592 ;
9593 return 0;
9594}
9595_ACEOF
9596if ac_fn_c_try_link "$LINENO"; then :
9597 ax_cv_PTHREAD_PRIO_INHERIT=yes
9598else
9599 ax_cv_PTHREAD_PRIO_INHERIT=no
9600fi
9601rm -f core conftest.err conftest.$ac_objext \
9602 conftest$ac_exeext conftest.$ac_ext
9603
9604fi
9605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9606$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9607 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9608
9609$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9610
9611fi
9612
cristy73bd4a52010-10-05 11:24:23 +00009613 LIBS="$save_LIBS"
9614 CFLAGS="$save_CFLAGS"
9615
cristy23493c42013-04-11 16:04:59 +00009616 # More AIX lossage: compile with *_r variant
9617 if test "x$GCC" != xyes; then
9618 case $host_os in
9619 aix*)
9620 case "x/$CC" in #(
9621 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9622 #handle absolute path differently from PATH based program lookup
9623 case "x$CC" in #(
9624 x/*) :
9625 if as_fn_executable_p ${CC}_r; then :
9626 PTHREAD_CC="${CC}_r"
9627fi ;; #(
9628 *) :
9629 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009630do
9631 # Extract the first word of "$ac_prog", so it can be a program name with args.
9632set dummy $ac_prog; ac_word=$2
9633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9634$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009635if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009636 $as_echo_n "(cached) " >&6
9637else
9638 if test -n "$PTHREAD_CC"; then
9639 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9640else
9641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9642for as_dir in $PATH
9643do
9644 IFS=$as_save_IFS
9645 test -z "$as_dir" && as_dir=.
9646 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009648 ac_cv_prog_PTHREAD_CC="$ac_prog"
9649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9650 break 2
9651 fi
9652done
9653 done
9654IFS=$as_save_IFS
9655
9656fi
9657fi
9658PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9659if test -n "$PTHREAD_CC"; then
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9661$as_echo "$PTHREAD_CC" >&6; }
9662else
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664$as_echo "no" >&6; }
9665fi
9666
9667
9668 test -n "$PTHREAD_CC" && break
9669done
cristy23493c42013-04-11 16:04:59 +00009670test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9671 ;;
9672esac ;; #(
9673 *) :
9674 ;;
9675esac
9676 ;;
9677 esac
cristya316db12011-10-24 00:49:45 +00009678 fi
cristy73bd4a52010-10-05 11:24:23 +00009679fi
9680
cristy23493c42013-04-11 16:04:59 +00009681test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9682
cristy73bd4a52010-10-05 11:24:23 +00009683
9684
9685
9686
9687# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9688if test x"$ax_pthread_ok" = xyes; then
9689
9690$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9691
9692 :
9693else
9694 ax_pthread_ok=no
9695
9696fi
9697ac_ext=c
9698ac_cpp='$CPP $CPPFLAGS'
9699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9701ac_compiler_gnu=$ac_cv_c_compiler_gnu
9702
9703
cristy7acf8fb2010-09-23 19:58:53 +00009704 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009705 have_threads=yes
9706 DEF_THREAD="$PTHREAD_CFLAGS"
9707 CFLAGS="$CFLAGS $DEF_THREAD"
9708 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +00009709 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +00009710 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009711 { $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 +00009712$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9713 CC="$PTHREAD_CC"
9714 fi
cristy55bf91c2010-09-24 00:29:41 +00009715
9716$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9717
cristy3ed852e2009-09-05 21:47:34 +00009718 fi
9719fi
cristy1ae5c992013-07-30 14:55:07 +00009720LIBS="$LIBS $THREAD_LIBS"
9721
cristy3ed852e2009-09-05 21:47:34 +00009722
9723# Enable support for OpenMP
9724if test "$have_threads" != 'yes'; then
9725 ac_cv_prog_c_openmp=unsupported
9726fi
9727
9728 OPENMP_CFLAGS=
9729 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009730if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009731 enableval=$enable_openmp;
9732fi
9733
9734 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009736$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009737if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009738 $as_echo_n "(cached) " >&6
9739else
cristy8b350f62009-11-15 23:12:43 +00009740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009742
9743#ifndef _OPENMP
9744 choke me
9745#endif
9746#include <omp.h>
9747int main () { return omp_get_num_threads (); }
9748
9749_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009750if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009751 ac_cv_prog_c_openmp='none needed'
9752else
cristy8b350f62009-11-15 23:12:43 +00009753 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009754 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9755 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009756 ac_save_CFLAGS=$CFLAGS
9757 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009760
9761#ifndef _OPENMP
9762 choke me
9763#endif
9764#include <omp.h>
9765int main () { return omp_get_num_threads (); }
9766
9767_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009768if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009769 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009770fi
cristy8b350f62009-11-15 23:12:43 +00009771rm -f core conftest.err conftest.$ac_objext \
9772 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009773 CFLAGS=$ac_save_CFLAGS
9774 if test "$ac_cv_prog_c_openmp" != unsupported; then
9775 break
9776 fi
9777 done
9778fi
cristy8b350f62009-11-15 23:12:43 +00009779rm -f core conftest.err conftest.$ac_objext \
9780 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009781fi
cristy8b350f62009-11-15 23:12:43 +00009782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009783$as_echo "$ac_cv_prog_c_openmp" >&6; }
9784 case $ac_cv_prog_c_openmp in #(
9785 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009786 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009787 *)
cristy8b350f62009-11-15 23:12:43 +00009788 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009789 esac
9790 fi
9791
9792
9793CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9794MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9795
cristy391f1ce2010-09-09 17:23:28 +00009796if test "$enable_openmp" != no; then
9797 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9798 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9799 fi
9800fi
cristy3ed852e2009-09-05 21:47:34 +00009801
cristy736173a2009-09-20 21:18:22 +00009802# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009803
9804
cristy73bd4a52010-10-05 11:24:23 +00009805ac_ext=c
9806ac_cpp='$CPP $CPPFLAGS'
9807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9809ac_compiler_gnu=$ac_cv_c_compiler_gnu
9810
9811ax_pthread_ok=no
9812
9813# We used to check for pthread.h first, but this fails if pthread.h
9814# requires special compiler flags (e.g. on True64 or Sequent).
9815# It gets checked for in the link test anyway.
9816
9817# First of all, check if the user has set any of the PTHREAD_LIBS,
9818# etcetera environment variables, and if threads linking works using
9819# them:
9820if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9821 save_CFLAGS="$CFLAGS"
9822 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9823 save_LIBS="$LIBS"
9824 LIBS="$PTHREAD_LIBS $LIBS"
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9826$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828/* end confdefs.h. */
9829
9830/* Override any GCC internal prototype to avoid an error.
9831 Use char because int might match the return type of a GCC
9832 builtin and then its argument prototype would still apply. */
9833#ifdef __cplusplus
9834extern "C"
9835#endif
9836char pthread_join ();
9837int
9838main ()
9839{
9840return pthread_join ();
9841 ;
9842 return 0;
9843}
9844_ACEOF
9845if ac_fn_c_try_link "$LINENO"; then :
9846 ax_pthread_ok=yes
9847fi
9848rm -f core conftest.err conftest.$ac_objext \
9849 conftest$ac_exeext conftest.$ac_ext
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9851$as_echo "$ax_pthread_ok" >&6; }
9852 if test x"$ax_pthread_ok" = xno; then
9853 PTHREAD_LIBS=""
9854 PTHREAD_CFLAGS=""
9855 fi
9856 LIBS="$save_LIBS"
9857 CFLAGS="$save_CFLAGS"
9858fi
9859
9860# We must check for the threads library under a number of different
9861# names; the ordering is very important because some systems
9862# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9863# libraries is broken (non-POSIX).
9864
9865# Create a list of thread flags to try. Items starting with a "-" are
9866# C compiler flags, and other items are library names, except for "none"
9867# which indicates that we try without any flags at all, and "pthread-config"
9868# which is a program returning the flags for the Pth emulation library.
9869
cristy2ec87cc2013-02-18 17:46:50 +00009870ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009871
9872# The ordering *is* (sometimes) important. Some notes on the
9873# individual items follow:
9874
9875# pthreads: AIX (must check this before -lpthread)
9876# none: in case threads are in libc; should be tried before -Kthread and
9877# other compiler flags to prevent continual compiler warnings
9878# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9879# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9880# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9881# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9882# -pthreads: Solaris/gcc
9883# -mthreads: Mingw32/gcc, Lynx/gcc
9884# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9885# doesn't hurt to check since this sometimes defines pthreads too;
9886# also defines -D_REENTRANT)
9887# ... -mt is also the pthreads flag for HP/aCC
9888# pthread: Linux, etcetera
9889# --thread-safe: KAI C++
9890# pthread-config: use pthread-config program (for GNU Pth library)
9891
cristy2ec87cc2013-02-18 17:46:50 +00009892case ${host_os} in
9893 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009894
9895 # On Solaris (at least, for some versions), libc contains stubbed
9896 # (non-functional) versions of the pthreads routines, so link-based
9897 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9898 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9899 # a function called by this macro, so we could check for that, but
9900 # who knows whether they'll stub that too in a future libc.) So,
9901 # we'll just look for -pthreads and -lpthread first:
9902
9903 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9904 ;;
9905
cristy2ec87cc2013-02-18 17:46:50 +00009906 darwin*)
cristya316db12011-10-24 00:49:45 +00009907 ax_pthread_flags="-pthread $ax_pthread_flags"
9908 ;;
cristy73bd4a52010-10-05 11:24:23 +00009909esac
9910
9911if test x"$ax_pthread_ok" = xno; then
9912for flag in $ax_pthread_flags; do
9913
9914 case $flag in
9915 none)
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9917$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9918 ;;
9919
9920 -*)
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9922$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9923 PTHREAD_CFLAGS="$flag"
9924 ;;
9925
cristya316db12011-10-24 00:49:45 +00009926 pthread-config)
9927 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009928set dummy pthread-config; ac_word=$2
9929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9930$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009931if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009932 $as_echo_n "(cached) " >&6
9933else
9934 if test -n "$ax_pthread_config"; then
9935 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9936else
9937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9938for as_dir in $PATH
9939do
9940 IFS=$as_save_IFS
9941 test -z "$as_dir" && as_dir=.
9942 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009944 ac_cv_prog_ax_pthread_config="yes"
9945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9946 break 2
9947 fi
9948done
9949 done
9950IFS=$as_save_IFS
9951
9952 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9953fi
9954fi
9955ax_pthread_config=$ac_cv_prog_ax_pthread_config
9956if test -n "$ax_pthread_config"; then
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9958$as_echo "$ax_pthread_config" >&6; }
9959else
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9961$as_echo "no" >&6; }
9962fi
9963
9964
cristya316db12011-10-24 00:49:45 +00009965 if test x"$ax_pthread_config" = xno; then continue; fi
9966 PTHREAD_CFLAGS="`pthread-config --cflags`"
9967 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9968 ;;
cristy73bd4a52010-10-05 11:24:23 +00009969
9970 *)
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9972$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9973 PTHREAD_LIBS="-l$flag"
9974 ;;
9975 esac
9976
9977 save_LIBS="$LIBS"
9978 save_CFLAGS="$CFLAGS"
9979 LIBS="$PTHREAD_LIBS $LIBS"
9980 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9981
9982 # Check for various functions. We must include pthread.h,
9983 # since some functions may be macros. (On the Sequent, we
9984 # need a special flag -Kthread to make this header compile.)
9985 # We check for pthread_join because it is in -lpthread on IRIX
9986 # while pthread_create is in libc. We check for pthread_attr_init
9987 # due to DEC craziness with -lpthreads. We check for
9988 # pthread_cleanup_push because it is one of the few pthread
9989 # functions on Solaris that doesn't have a non-functional libc stub.
9990 # We try pthread_create on general principles.
9991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9992/* end confdefs.h. */
9993#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009994 static void routine(void *a) { a = 0; }
9995 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009996int
9997main ()
9998{
9999pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010000 pthread_create(&th, 0, start_routine, 0);
10001 pthread_join(th, 0);
10002 pthread_attr_init(&attr);
10003 pthread_cleanup_push(routine, 0);
10004 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010005 ;
10006 return 0;
10007}
10008_ACEOF
10009if ac_fn_c_try_link "$LINENO"; then :
10010 ax_pthread_ok=yes
10011fi
10012rm -f core conftest.err conftest.$ac_objext \
10013 conftest$ac_exeext conftest.$ac_ext
10014
10015 LIBS="$save_LIBS"
10016 CFLAGS="$save_CFLAGS"
10017
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10019$as_echo "$ax_pthread_ok" >&6; }
10020 if test "x$ax_pthread_ok" = xyes; then
10021 break;
10022 fi
10023
10024 PTHREAD_LIBS=""
10025 PTHREAD_CFLAGS=""
10026done
10027fi
10028
10029# Various other checks:
10030if test "x$ax_pthread_ok" = xyes; then
10031 save_LIBS="$LIBS"
10032 LIBS="$PTHREAD_LIBS $LIBS"
10033 save_CFLAGS="$CFLAGS"
10034 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10035
10036 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010038$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010039 attr_name=unknown
10040 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010042/* end confdefs.h. */
10043#include <pthread.h>
10044int
10045main ()
10046{
cristya316db12011-10-24 00:49:45 +000010047int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010048 ;
10049 return 0;
10050}
10051_ACEOF
10052if ac_fn_c_try_link "$LINENO"; then :
10053 attr_name=$attr; break
10054fi
10055rm -f core conftest.err conftest.$ac_objext \
10056 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010057 done
cristy73bd4a52010-10-05 11:24:23 +000010058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10059$as_echo "$attr_name" >&6; }
10060 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10061
10062cat >>confdefs.h <<_ACEOF
10063#define PTHREAD_CREATE_JOINABLE $attr_name
10064_ACEOF
10065
10066 fi
10067
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10069$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10070 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010071 case ${host_os} in
10072 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10073 osf* | hpux*) flag="-D_REENTRANT";;
10074 solaris*)
10075 if test "$GCC" = "yes"; then
10076 flag="-D_REENTRANT"
10077 else
10078 flag="-mt -D_REENTRANT"
10079 fi
10080 ;;
cristy73bd4a52010-10-05 11:24:23 +000010081 esac
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
10083$as_echo "${flag}" >&6; }
10084 if test "x$flag" != xno; then
10085 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10086 fi
10087
cristya316db12011-10-24 00:49:45 +000010088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10089$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10090if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10091 $as_echo_n "(cached) " >&6
10092else
10093
10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095/* end confdefs.h. */
10096
10097 #include <pthread.h>
10098int
10099main ()
10100{
10101int i = PTHREAD_PRIO_INHERIT;
10102 ;
10103 return 0;
10104}
10105_ACEOF
10106if ac_fn_c_try_link "$LINENO"; then :
10107 ax_cv_PTHREAD_PRIO_INHERIT=yes
10108else
10109 ax_cv_PTHREAD_PRIO_INHERIT=no
10110fi
10111rm -f core conftest.err conftest.$ac_objext \
10112 conftest$ac_exeext conftest.$ac_ext
10113
10114fi
10115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10116$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10117 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10118
10119$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10120
10121fi
10122
cristy73bd4a52010-10-05 11:24:23 +000010123 LIBS="$save_LIBS"
10124 CFLAGS="$save_CFLAGS"
10125
cristy23493c42013-04-11 16:04:59 +000010126 # More AIX lossage: compile with *_r variant
10127 if test "x$GCC" != xyes; then
10128 case $host_os in
10129 aix*)
10130 case "x/$CC" in #(
10131 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10132 #handle absolute path differently from PATH based program lookup
10133 case "x$CC" in #(
10134 x/*) :
10135 if as_fn_executable_p ${CC}_r; then :
10136 PTHREAD_CC="${CC}_r"
10137fi ;; #(
10138 *) :
10139 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010140do
10141 # Extract the first word of "$ac_prog", so it can be a program name with args.
10142set dummy $ac_prog; ac_word=$2
10143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010145if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010146 $as_echo_n "(cached) " >&6
10147else
10148 if test -n "$PTHREAD_CC"; then
10149 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10150else
10151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152for as_dir in $PATH
10153do
10154 IFS=$as_save_IFS
10155 test -z "$as_dir" && as_dir=.
10156 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010158 ac_cv_prog_PTHREAD_CC="$ac_prog"
10159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10160 break 2
10161 fi
10162done
10163 done
10164IFS=$as_save_IFS
10165
10166fi
10167fi
10168PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10169if test -n "$PTHREAD_CC"; then
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10171$as_echo "$PTHREAD_CC" >&6; }
10172else
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174$as_echo "no" >&6; }
10175fi
10176
10177
10178 test -n "$PTHREAD_CC" && break
10179done
cristy23493c42013-04-11 16:04:59 +000010180test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10181 ;;
10182esac ;; #(
10183 *) :
10184 ;;
10185esac
10186 ;;
10187 esac
cristya316db12011-10-24 00:49:45 +000010188 fi
cristy73bd4a52010-10-05 11:24:23 +000010189fi
10190
cristy23493c42013-04-11 16:04:59 +000010191test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10192
cristy73bd4a52010-10-05 11:24:23 +000010193
10194
10195
10196
10197# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10198if test x"$ax_pthread_ok" = xyes; then
10199
10200$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10201
10202 :
10203else
10204 ax_pthread_ok=no
10205
10206fi
10207ac_ext=c
10208ac_cpp='$CPP $CPPFLAGS'
10209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10211ac_compiler_gnu=$ac_cv_c_compiler_gnu
10212
10213
10214
10215# Check whether --enable-opencl was given.
10216if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010217 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010218else
cristy48794642012-09-02 15:19:08 +000010219 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010220fi
10221
10222
cristy48794642012-09-02 15:19:08 +000010223if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010224 ac_ext=c
10225ac_cpp='$CPP $CPPFLAGS'
10226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10228ac_compiler_gnu=$ac_cv_c_compiler_gnu
10229
cristy75314cc2012-09-15 23:08:29 +000010230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10231$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10232if ${ax_cv_c_compiler_ms+:} false; then :
10233 $as_echo_n "(cached) " >&6
10234else
10235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236/* end confdefs.h. */
10237
10238int
10239main ()
10240{
10241#ifndef _MSC_VER
10242 choke me
10243#endif
10244
10245 ;
10246 return 0;
10247}
10248_ACEOF
10249if ac_fn_c_try_compile "$LINENO"; then :
10250 ax_compiler_ms=yes
10251else
10252 ax_compiler_ms=no
10253fi
10254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10255ax_cv_c_compiler_ms=$ax_compiler_ms
10256
10257fi
10258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10259$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010260 if test X$ax_compiler_ms = Xno; then :
10261 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10262fi
10263
10264 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010265 ax_save_CL_CFLAGS=$CL_CFLAGS
10266
10267 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010268 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10269 for ac_header in CL/cl.h OpenCL/cl.h
10270do :
10271 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10272ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010273if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010274 cat >>confdefs.h <<_ACEOF
10275#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10276_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010277 found_opencl_header='yes'
10278 break;
10279else
10280 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010281fi
10282
10283done
10284
cristyfdc7d122013-08-17 20:46:45 +000010285
10286 if test X$found_opencl_header = Xno; then :
10287 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10288 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10289 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10290 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10291 for ac_header in CL/cl.h OpenCL/cl.h
10292do :
10293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10294ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10295if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10296 cat >>confdefs.h <<_ACEOF
10297#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10298_ACEOF
10299 found_opencl_header='yes'
10300 break;
10301else
10302 found_opencl_header='no'
10303fi
10304
10305done
10306
10307
10308fi
10309
10310 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010311
10312 for ac_header in windows.h
10313do :
10314 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010315if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010316 cat >>confdefs.h <<_ACEOF
10317#define HAVE_WINDOWS_H 1
10318_ACEOF
10319
10320fi
10321
10322done
10323
10324
10325
10326
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10328$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010329if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010330 $as_echo_n "(cached) " >&6
10331else
10332 ax_cv_check_cl_libcl=no
10333 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010334 x86_64) ax_check_cl_libdir=lib64
10335 ax_check_cl_amd_libdir=x86_64
10336 ;;
10337 *) ax_check_cl_libdir=lib
10338 ax_check_cl_amd_libdir=x86
10339 ;;
cristy73bd4a52010-10-05 11:24:23 +000010340 esac
10341 ax_save_CPPFLAGS=$CPPFLAGS
10342 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10343 ax_save_LIBS=$LIBS
10344 LIBS=""
10345 ax_check_libs="-lOpenCL -lCL -lclparser"
10346 for ax_lib in $ax_check_libs; do
10347 if test X$ax_compiler_ms = Xyes; then :
10348 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10349else
10350 ax_try_lib=$ax_lib
10351fi
10352 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354/* end confdefs.h. */
10355
10356 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10357 # include <windows.h>
10358 # endif
10359 # ifdef HAVE_CL_CL_H
10360 # include <CL/cl.h>
10361 # elif defined(HAVE_OPENCL_CL_H)
10362 # include <OpenCL/cl.h>
10363 # else
10364 # error no CL.h
10365 # endif
10366int
10367main ()
10368{
10369clCreateContextFromType(0,0,0,0,0)
10370 ;
10371 return 0;
10372}
10373_ACEOF
10374if ac_fn_c_try_link "$LINENO"; then :
10375 ax_cv_check_cl_libcl=$ax_try_lib; break
10376else
10377 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"
10378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379/* end confdefs.h. */
10380
10381 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10382 # include <windows.h>
10383 # endif
10384 # ifdef HAVE_CL_CL_H
10385 # include <CL/cl.h>
10386 # elif defined(HAVE_OPENCL_CL_H)
10387 # include <OpenCL/cl.h>
10388 # else
10389 # error no CL.h
10390 # endif
10391int
10392main ()
10393{
10394clCreateContextFromType(0,0,0,0,0)
10395 ;
10396 return 0;
10397}
10398_ACEOF
10399if ac_fn_c_try_link "$LINENO"; then :
10400 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10401else
cristy78c5a0c2010-12-04 20:00:59 +000010402 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 +000010403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404/* end confdefs.h. */
10405
10406 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10407 # include <windows.h>
10408 # endif
10409 # ifdef HAVE_CL_CL_H
10410 # include <CL/cl.h>
10411 # elif defined(HAVE_OPENCL_CL_H)
10412 # include <OpenCL/cl.h>
10413 # else
10414 # error no CL.h
10415 # endif
10416int
10417main ()
10418{
10419clCreateContextFromType(0,0,0,0,0)
10420 ;
10421 return 0;
10422}
10423_ACEOF
10424if ac_fn_c_try_link "$LINENO"; then :
10425 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010426else
10427 ax_check_cl_amd_flags="-L$AMDAPPSDKROOT/lib/$ax_check_cl_amd_libdir" LIBS="$ax_try_lib $ax_check_cl_amd_flags $CL_LIBS $ax_save_LIBS"
10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429/* end confdefs.h. */
10430
10431 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10432 # include <windows.h>
10433 # endif
10434 # ifdef HAVE_CL_CL_H
10435 # include <CL/cl.h>
10436 # elif defined(HAVE_OPENCL_CL_H)
10437 # include <OpenCL/cl.h>
10438 # else
10439 # error no CL.h
10440 # endif
10441int
10442main ()
10443{
10444clCreateContextFromType(0,0,0,0,0)
10445 ;
10446 return 0;
10447}
10448_ACEOF
10449if ac_fn_c_try_link "$LINENO"; then :
10450 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10451
10452fi
10453rm -f core conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
10455
10456
cristy73bd4a52010-10-05 11:24:23 +000010457fi
10458rm -f core conftest.err conftest.$ac_objext \
10459 conftest$ac_exeext conftest.$ac_ext
10460fi
10461rm -f core conftest.err conftest.$ac_objext \
10462 conftest$ac_exeext conftest.$ac_ext
10463fi
10464rm -f core conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10466 done
10467
cristyc3f8b8e2011-12-22 14:55:16 +000010468 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010469 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471/* end confdefs.h. */
10472
10473 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10474 # include <windows.h>
10475 # endif
10476 # ifdef HAVE_CL_CL_H
10477 # include <CL/cl.h>
10478 # elif defined(HAVE_OPENCL_CL_H)
10479 # include <OpenCL/cl.h>
10480 # else
10481 # error no CL.h
10482 # endif
10483int
10484main ()
10485{
10486clCreateContextFromType(0,0,0,0,0)
10487 ;
10488 return 0;
10489}
10490_ACEOF
10491if ac_fn_c_try_link "$LINENO"; then :
10492 ax_cv_check_cl_libcl=$LIBS
10493fi
10494rm -f core conftest.err conftest.$ac_objext \
10495 conftest$ac_exeext conftest.$ac_ext
10496fi
10497
10498 LIBS=$ax_save_LIBS
10499 CPPFLAGS=$ax_save_CPPFLAGS
10500fi
10501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10502$as_echo "$ax_cv_check_cl_libcl" >&6; }
10503
10504 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10505 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10506else
10507 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10508$as_echo "#define _OPENCL 1" >>confdefs.h
10509
10510fi
10511 ac_ext=c
10512ac_cpp='$CPP $CPPFLAGS'
10513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10515ac_compiler_gnu=$ac_cv_c_compiler_gnu
10516
10517fi
10518
10519
10520
10521
cristyc7083c12009-10-14 03:16:55 +000010522CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010523CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010524LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010525
cristy391f1ce2010-09-09 17:23:28 +000010526if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010527 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010528 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10529 fi
cristyfd9dcd42010-08-08 18:07:02 +000010530fi
cristy2e8b51d2009-10-17 18:26:15 +000010531
cristy3ed852e2009-09-05 21:47:34 +000010532########
10533#
10534# Check for large file support
10535#
10536########
10537# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010538if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010539 enableval=$enable_largefile;
10540fi
10541
10542if test "$enable_largefile" != no; then
10543
cristy8b350f62009-11-15 23:12:43 +000010544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010545$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010546if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010547 $as_echo_n "(cached) " >&6
10548else
10549 ac_cv_sys_largefile_CC=no
10550 if test "$GCC" != yes; then
10551 ac_save_CC=$CC
10552 while :; do
10553 # IRIX 6.2 and later do not support large files by default,
10554 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010556/* end confdefs.h. */
10557#include <sys/types.h>
10558 /* Check that off_t can represent 2**63 - 1 correctly.
10559 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10560 since some C++ compilers masquerading as C compilers
10561 incorrectly reject 9223372036854775807. */
10562#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10563 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10564 && LARGE_OFF_T % 2147483647 == 1)
10565 ? 1 : -1];
10566int
10567main ()
10568{
10569
10570 ;
10571 return 0;
10572}
10573_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010574 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010575 break
cristy3ed852e2009-09-05 21:47:34 +000010576fi
cristy3ed852e2009-09-05 21:47:34 +000010577rm -f core conftest.err conftest.$ac_objext
10578 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010579 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010580 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010581fi
cristy3ed852e2009-09-05 21:47:34 +000010582rm -f core conftest.err conftest.$ac_objext
10583 break
10584 done
10585 CC=$ac_save_CC
10586 rm -f conftest.$ac_ext
10587 fi
10588fi
cristy8b350f62009-11-15 23:12:43 +000010589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010590$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10591 if test "$ac_cv_sys_largefile_CC" != no; then
10592 CC=$CC$ac_cv_sys_largefile_CC
10593 fi
10594
cristy8b350f62009-11-15 23:12:43 +000010595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010596$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010597if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010598 $as_echo_n "(cached) " >&6
10599else
10600 while :; do
cristy8b350f62009-11-15 23:12:43 +000010601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010602/* end confdefs.h. */
10603#include <sys/types.h>
10604 /* Check that off_t can represent 2**63 - 1 correctly.
10605 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10606 since some C++ compilers masquerading as C compilers
10607 incorrectly reject 9223372036854775807. */
10608#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10609 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10610 && LARGE_OFF_T % 2147483647 == 1)
10611 ? 1 : -1];
10612int
10613main ()
10614{
10615
10616 ;
10617 return 0;
10618}
10619_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010620if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010621 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010622fi
cristy3ed852e2009-09-05 21:47:34 +000010623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010625/* end confdefs.h. */
10626#define _FILE_OFFSET_BITS 64
10627#include <sys/types.h>
10628 /* Check that off_t can represent 2**63 - 1 correctly.
10629 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10630 since some C++ compilers masquerading as C compilers
10631 incorrectly reject 9223372036854775807. */
10632#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10633 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10634 && LARGE_OFF_T % 2147483647 == 1)
10635 ? 1 : -1];
10636int
10637main ()
10638{
10639
10640 ;
10641 return 0;
10642}
10643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010644if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010645 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010646fi
cristy3ed852e2009-09-05 21:47:34 +000010647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10648 ac_cv_sys_file_offset_bits=unknown
10649 break
10650done
10651fi
cristy8b350f62009-11-15 23:12:43 +000010652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010653$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10654case $ac_cv_sys_file_offset_bits in #(
10655 no | unknown) ;;
10656 *)
10657cat >>confdefs.h <<_ACEOF
10658#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10659_ACEOF
10660;;
10661esac
10662rm -rf conftest*
10663 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010665$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010666if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010667 $as_echo_n "(cached) " >&6
10668else
10669 while :; do
cristy8b350f62009-11-15 23:12:43 +000010670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010671/* end confdefs.h. */
10672#include <sys/types.h>
10673 /* Check that off_t can represent 2**63 - 1 correctly.
10674 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10675 since some C++ compilers masquerading as C compilers
10676 incorrectly reject 9223372036854775807. */
10677#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10678 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10679 && LARGE_OFF_T % 2147483647 == 1)
10680 ? 1 : -1];
10681int
10682main ()
10683{
10684
10685 ;
10686 return 0;
10687}
10688_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010689if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010690 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010691fi
cristy3ed852e2009-09-05 21:47:34 +000010692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010694/* end confdefs.h. */
10695#define _LARGE_FILES 1
10696#include <sys/types.h>
10697 /* Check that off_t can represent 2**63 - 1 correctly.
10698 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10699 since some C++ compilers masquerading as C compilers
10700 incorrectly reject 9223372036854775807. */
10701#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10702 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10703 && LARGE_OFF_T % 2147483647 == 1)
10704 ? 1 : -1];
10705int
10706main ()
10707{
10708
10709 ;
10710 return 0;
10711}
10712_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010713if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010714 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010715fi
cristy3ed852e2009-09-05 21:47:34 +000010716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10717 ac_cv_sys_large_files=unknown
10718 break
10719done
10720fi
cristy8b350f62009-11-15 23:12:43 +000010721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010722$as_echo "$ac_cv_sys_large_files" >&6; }
10723case $ac_cv_sys_large_files in #(
10724 no | unknown) ;;
10725 *)
10726cat >>confdefs.h <<_ACEOF
10727#define _LARGE_FILES $ac_cv_sys_large_files
10728_ACEOF
10729;;
10730esac
10731rm -rf conftest*
10732 fi
cristy14fefe52012-05-21 00:59:18 +000010733
10734
cristy3ed852e2009-09-05 21:47:34 +000010735fi
10736
cristy8b350f62009-11-15 23:12:43 +000010737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010738$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010739if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010740 $as_echo_n "(cached) " >&6
10741else
10742 while :; do
cristy8b350f62009-11-15 23:12:43 +000010743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010744/* end confdefs.h. */
10745#include <sys/types.h> /* for off_t */
10746 #include <stdio.h>
10747int
10748main ()
10749{
10750int (*fp) (FILE *, off_t, int) = fseeko;
10751 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10752 ;
10753 return 0;
10754}
10755_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010756if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010757 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010758fi
cristy8b350f62009-11-15 23:12:43 +000010759rm -f core conftest.err conftest.$ac_objext \
10760 conftest$ac_exeext conftest.$ac_ext
10761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010762/* end confdefs.h. */
10763#define _LARGEFILE_SOURCE 1
10764#include <sys/types.h> /* for off_t */
10765 #include <stdio.h>
10766int
10767main ()
10768{
10769int (*fp) (FILE *, off_t, int) = fseeko;
10770 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10771 ;
10772 return 0;
10773}
10774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010775if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010776 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010777fi
cristy8b350f62009-11-15 23:12:43 +000010778rm -f core conftest.err conftest.$ac_objext \
10779 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010780 ac_cv_sys_largefile_source=unknown
10781 break
10782done
10783fi
cristy8b350f62009-11-15 23:12:43 +000010784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010785$as_echo "$ac_cv_sys_largefile_source" >&6; }
10786case $ac_cv_sys_largefile_source in #(
10787 no | unknown) ;;
10788 *)
10789cat >>confdefs.h <<_ACEOF
10790#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10791_ACEOF
10792;;
10793esac
10794rm -rf conftest*
10795
10796# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10797# in glibc 2.1.3, but that breaks too many other things.
10798# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10799if test $ac_cv_sys_largefile_source != unknown; then
10800
cristy8b350f62009-11-15 23:12:43 +000010801$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010802
10803fi
10804
10805LFS_CPPFLAGS=''
10806if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010807 case $ac_cv_sys_file_offset_bits in
10808 no)
10809 # nothing to do here as the host supports LFS fine
10810 ;;
10811 unknown)
cristy8b350f62009-11-15 23:12:43 +000010812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010813$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010814 if test "$cross_compiling" = yes; then :
10815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010817as_fn_error $? "cannot run test program while cross compiling
10818See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010819else
cristy8b350f62009-11-15 23:12:43 +000010820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010822#include <unistd.h>
10823 main () {
10824 exit(!(sizeof(off_t) == 8));
10825 }
cristyda16f162011-02-19 23:52:17 +000010826int
10827main ()
10828{
10829
10830 ;
10831 return 0;
10832}
cristy3ed852e2009-09-05 21:47:34 +000010833_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010834if ac_fn_c_try_run "$LINENO"; then :
10835 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010836
cristyad38abe2012-12-23 23:03:21 +000010837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10838$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010839else
cristyad38abe2012-12-23 23:03:21 +000010840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010842fi
cristy8b350f62009-11-15 23:12:43 +000010843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10844 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010845fi
10846
cristyc1e0cc12011-09-21 16:41:16 +000010847 ;;
10848 *)
10849 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10850 ;;
10851 esac
cristy3ed852e2009-09-05 21:47:34 +000010852 if test "$ac_cv_sys_large_files" != 'no'; then
10853 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10854 fi
10855 if test "$ac_cv_sys_largefile_source" != 'no'; then
10856 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10857 fi
10858fi
10859
10860
cristy3ed852e2009-09-05 21:47:34 +000010861# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010862enable_dlopen=yes
10863
10864
10865
10866case `pwd` in
10867 *\ * | *\ *)
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10869$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10870esac
10871
10872
10873
cristy99bd5232011-12-07 14:38:20 +000010874macro_version='2.4.2'
10875macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889ltmain="$ac_aux_dir/ltmain.sh"
10890
cristy0c60a692010-11-04 01:09:47 +000010891# Backslashify metacharacters that are still active within
10892# double-quoted strings.
10893sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10894
10895# Same as above, but do not quote variable references.
10896double_quote_subst='s/\(["`\\]\)/\\\1/g'
10897
10898# Sed substitution to delay expansion of an escaped shell variable in a
10899# double_quote_subst'ed string.
10900delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10901
10902# Sed substitution to delay expansion of an escaped single quote.
10903delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10904
10905# Sed substitution to avoid accidental globbing in evaled expressions
10906no_glob_subst='s/\*/\\\*/g'
10907
cristy73bd4a52010-10-05 11:24:23 +000010908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10909$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010910if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010911 $as_echo_n "(cached) " >&6
10912else
10913 if test -n "$NM"; then
10914 # Let the user override the test.
10915 lt_cv_path_NM="$NM"
10916else
10917 lt_nm_to_check="${ac_tool_prefix}nm"
10918 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10919 lt_nm_to_check="$lt_nm_to_check nm"
10920 fi
10921 for lt_tmp_nm in $lt_nm_to_check; do
10922 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10923 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10924 IFS="$lt_save_ifs"
10925 test -z "$ac_dir" && ac_dir=.
10926 tmp_nm="$ac_dir/$lt_tmp_nm"
10927 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10928 # Check to see if the nm accepts a BSD-compat flag.
10929 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10930 # nm: unknown option "B" ignored
10931 # Tru64's nm complains that /dev/null is an invalid object file
10932 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10933 */dev/null* | *'Invalid file or object type'*)
10934 lt_cv_path_NM="$tmp_nm -B"
10935 break
10936 ;;
10937 *)
10938 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10939 */dev/null*)
10940 lt_cv_path_NM="$tmp_nm -p"
10941 break
10942 ;;
10943 *)
10944 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10945 continue # so that we can try to find one that supports BSD flags
10946 ;;
10947 esac
10948 ;;
10949 esac
10950 fi
10951 done
10952 IFS="$lt_save_ifs"
10953 done
10954 : ${lt_cv_path_NM=no}
10955fi
10956fi
10957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10958$as_echo "$lt_cv_path_NM" >&6; }
10959if test "$lt_cv_path_NM" != "no"; then
10960 NM="$lt_cv_path_NM"
10961else
10962 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010963 if test -n "$DUMPBIN"; then :
10964 # Let the user override the test.
10965 else
10966 if test -n "$ac_tool_prefix"; then
10967 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010968 do
10969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10970set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10972$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010973if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010974 $as_echo_n "(cached) " >&6
10975else
10976 if test -n "$DUMPBIN"; then
10977 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10978else
10979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10980for as_dir in $PATH
10981do
10982 IFS=$as_save_IFS
10983 test -z "$as_dir" && as_dir=.
10984 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010986 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10988 break 2
10989 fi
10990done
10991 done
10992IFS=$as_save_IFS
10993
10994fi
10995fi
10996DUMPBIN=$ac_cv_prog_DUMPBIN
10997if test -n "$DUMPBIN"; then
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10999$as_echo "$DUMPBIN" >&6; }
11000else
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002$as_echo "no" >&6; }
11003fi
11004
11005
11006 test -n "$DUMPBIN" && break
11007 done
11008fi
11009if test -z "$DUMPBIN"; then
11010 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011011 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011012do
11013 # Extract the first word of "$ac_prog", so it can be a program name with args.
11014set dummy $ac_prog; ac_word=$2
11015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11016$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011017if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011018 $as_echo_n "(cached) " >&6
11019else
11020 if test -n "$ac_ct_DUMPBIN"; then
11021 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11022else
11023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024for as_dir in $PATH
11025do
11026 IFS=$as_save_IFS
11027 test -z "$as_dir" && as_dir=.
11028 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011030 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11032 break 2
11033 fi
11034done
11035 done
11036IFS=$as_save_IFS
11037
11038fi
11039fi
11040ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11041if test -n "$ac_ct_DUMPBIN"; then
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11043$as_echo "$ac_ct_DUMPBIN" >&6; }
11044else
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11046$as_echo "no" >&6; }
11047fi
11048
11049
11050 test -n "$ac_ct_DUMPBIN" && break
11051done
11052
11053 if test "x$ac_ct_DUMPBIN" = x; then
11054 DUMPBIN=":"
11055 else
11056 case $cross_compiling:$ac_tool_warned in
11057yes:)
11058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11060ac_tool_warned=yes ;;
11061esac
11062 DUMPBIN=$ac_ct_DUMPBIN
11063 fi
11064fi
11065
cristy0c60a692010-11-04 01:09:47 +000011066 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11067 *COFF*)
11068 DUMPBIN="$DUMPBIN -symbols"
11069 ;;
11070 *)
11071 DUMPBIN=:
11072 ;;
11073 esac
11074 fi
cristy73bd4a52010-10-05 11:24:23 +000011075
11076 if test "$DUMPBIN" != ":"; then
11077 NM="$DUMPBIN"
11078 fi
11079fi
11080test -z "$NM" && NM=nm
11081
11082
11083
11084
11085
11086
11087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11088$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011089if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011090 $as_echo_n "(cached) " >&6
11091else
11092 lt_cv_nm_interface="BSD nm"
11093 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011094 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011095 (eval "$ac_compile" 2>conftest.err)
11096 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011097 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011098 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11099 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011100 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011101 cat conftest.out >&5
11102 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11103 lt_cv_nm_interface="MS dumpbin"
11104 fi
11105 rm -f conftest*
11106fi
11107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11108$as_echo "$lt_cv_nm_interface" >&6; }
11109
11110# find the maximum length of command line arguments
11111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11112$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011113if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011114 $as_echo_n "(cached) " >&6
11115else
11116 i=0
11117 teststring="ABCD"
11118
11119 case $build_os in
11120 msdosdjgpp*)
11121 # On DJGPP, this test can blow up pretty badly due to problems in libc
11122 # (any single argument exceeding 2000 bytes causes a buffer overrun
11123 # during glob expansion). Even if it were fixed, the result of this
11124 # check would be larger than it should be.
11125 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11126 ;;
11127
11128 gnu*)
11129 # Under GNU Hurd, this test is not required because there is
11130 # no limit to the length of command line arguments.
11131 # Libtool will interpret -1 as no limit whatsoever
11132 lt_cv_sys_max_cmd_len=-1;
11133 ;;
11134
11135 cygwin* | mingw* | cegcc*)
11136 # On Win9x/ME, this test blows up -- it succeeds, but takes
11137 # about 5 minutes as the teststring grows exponentially.
11138 # Worse, since 9x/ME are not pre-emptively multitasking,
11139 # you end up with a "frozen" computer, even though with patience
11140 # the test eventually succeeds (with a max line length of 256k).
11141 # Instead, let's just punt: use the minimum linelength reported by
11142 # all of the supported platforms: 8192 (on NT/2K/XP).
11143 lt_cv_sys_max_cmd_len=8192;
11144 ;;
11145
cristy0c60a692010-11-04 01:09:47 +000011146 mint*)
11147 # On MiNT this can take a long time and run out of memory.
11148 lt_cv_sys_max_cmd_len=8192;
11149 ;;
11150
cristy73bd4a52010-10-05 11:24:23 +000011151 amigaos*)
11152 # On AmigaOS with pdksh, this test takes hours, literally.
11153 # So we just punt and use a minimum line length of 8192.
11154 lt_cv_sys_max_cmd_len=8192;
11155 ;;
11156
11157 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11158 # This has been around since 386BSD, at least. Likely further.
11159 if test -x /sbin/sysctl; then
11160 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11161 elif test -x /usr/sbin/sysctl; then
11162 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11163 else
11164 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11165 fi
11166 # And add a safety zone
11167 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11168 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11169 ;;
11170
11171 interix*)
11172 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11173 lt_cv_sys_max_cmd_len=196608
11174 ;;
11175
cristy99bd5232011-12-07 14:38:20 +000011176 os2*)
11177 # The test takes a long time on OS/2.
11178 lt_cv_sys_max_cmd_len=8192
11179 ;;
11180
cristy73bd4a52010-10-05 11:24:23 +000011181 osf*)
11182 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11183 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11184 # nice to cause kernel panics so lets avoid the loop below.
11185 # First set a reasonable default.
11186 lt_cv_sys_max_cmd_len=16384
11187 #
11188 if test -x /sbin/sysconfig; then
11189 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11190 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11191 esac
11192 fi
11193 ;;
11194 sco3.2v5*)
11195 lt_cv_sys_max_cmd_len=102400
11196 ;;
11197 sysv5* | sco5v6* | sysv4.2uw2*)
11198 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11199 if test -n "$kargmax"; then
11200 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11201 else
11202 lt_cv_sys_max_cmd_len=32768
11203 fi
11204 ;;
11205 *)
11206 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11207 if test -n "$lt_cv_sys_max_cmd_len"; then
11208 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11210 else
11211 # Make teststring a little bigger before we do anything with it.
11212 # a 1K string should be a reasonable start.
11213 for i in 1 2 3 4 5 6 7 8 ; do
11214 teststring=$teststring$teststring
11215 done
11216 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11217 # If test is not a shell built-in, we'll probably end up computing a
11218 # maximum length that is only half of the actual maximum length, but
11219 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011220 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011221 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011222 test $i != 17 # 1/2 MB should be enough
11223 do
11224 i=`expr $i + 1`
11225 teststring=$teststring$teststring
11226 done
11227 # Only check the string length outside the loop.
11228 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11229 teststring=
11230 # Add a significant safety factor because C++ compilers can tack on
11231 # massive amounts of additional arguments before passing them to the
11232 # linker. It appears as though 1/2 is a usable value.
11233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11234 fi
11235 ;;
11236 esac
11237
11238fi
11239
11240if test -n $lt_cv_sys_max_cmd_len ; then
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11242$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11243else
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11245$as_echo "none" >&6; }
11246fi
11247max_cmd_len=$lt_cv_sys_max_cmd_len
11248
11249
11250
11251
11252
11253
11254: ${CP="cp -f"}
11255: ${MV="mv -f"}
11256: ${RM="rm -f"}
11257
11258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11259$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11260# Try some XSI features
11261xsi_shell=no
11262( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011263 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11264 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011265 && eval 'test $(( 1 + 1 )) -eq 2 \
11266 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11267 && xsi_shell=yes
11268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11269$as_echo "$xsi_shell" >&6; }
11270
11271
11272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11273$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11274lt_shell_append=no
11275( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11276 >/dev/null 2>&1 \
11277 && lt_shell_append=yes
11278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11279$as_echo "$lt_shell_append" >&6; }
11280
11281
11282if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11283 lt_unset=unset
11284else
11285 lt_unset=false
11286fi
11287
11288
11289
11290
11291
11292# test EBCDIC or ASCII
11293case `echo X|tr X '\101'` in
11294 A) # ASCII based system
11295 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11296 lt_SP2NL='tr \040 \012'
11297 lt_NL2SP='tr \015\012 \040\040'
11298 ;;
11299 *) # EBCDIC based system
11300 lt_SP2NL='tr \100 \n'
11301 lt_NL2SP='tr \r\n \100\100'
11302 ;;
11303esac
11304
11305
11306
11307
11308
11309
11310
11311
11312
cristyda16f162011-02-19 23:52:17 +000011313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11314$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11315if ${lt_cv_to_host_file_cmd+:} false; then :
11316 $as_echo_n "(cached) " >&6
11317else
11318 case $host in
11319 *-*-mingw* )
11320 case $build in
11321 *-*-mingw* ) # actually msys
11322 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11323 ;;
11324 *-*-cygwin* )
11325 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11326 ;;
11327 * ) # otherwise, assume *nix
11328 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11329 ;;
11330 esac
11331 ;;
11332 *-*-cygwin* )
11333 case $build in
11334 *-*-mingw* ) # actually msys
11335 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11336 ;;
11337 *-*-cygwin* )
11338 lt_cv_to_host_file_cmd=func_convert_file_noop
11339 ;;
11340 * ) # otherwise, assume *nix
11341 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11342 ;;
11343 esac
11344 ;;
11345 * ) # unhandled hosts (and "normal" native builds)
11346 lt_cv_to_host_file_cmd=func_convert_file_noop
11347 ;;
11348esac
11349
11350fi
11351
11352to_host_file_cmd=$lt_cv_to_host_file_cmd
11353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11354$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11355
11356
11357
11358
11359
11360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11361$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11362if ${lt_cv_to_tool_file_cmd+:} false; then :
11363 $as_echo_n "(cached) " >&6
11364else
11365 #assume ordinary cross tools, or native build.
11366lt_cv_to_tool_file_cmd=func_convert_file_noop
11367case $host in
11368 *-*-mingw* )
11369 case $build in
11370 *-*-mingw* ) # actually msys
11371 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11372 ;;
11373 esac
11374 ;;
11375esac
11376
11377fi
11378
11379to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11381$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11382
11383
11384
11385
11386
cristy73bd4a52010-10-05 11:24:23 +000011387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11388$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011389if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011390 $as_echo_n "(cached) " >&6
11391else
11392 lt_cv_ld_reload_flag='-r'
11393fi
11394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11395$as_echo "$lt_cv_ld_reload_flag" >&6; }
11396reload_flag=$lt_cv_ld_reload_flag
11397case $reload_flag in
11398"" | " "*) ;;
11399*) reload_flag=" $reload_flag" ;;
11400esac
11401reload_cmds='$LD$reload_flag -o $output$reload_objs'
11402case $host_os in
cristyda16f162011-02-19 23:52:17 +000011403 cygwin* | mingw* | pw32* | cegcc*)
11404 if test "$GCC" != yes; then
11405 reload_cmds=false
11406 fi
11407 ;;
cristy73bd4a52010-10-05 11:24:23 +000011408 darwin*)
11409 if test "$GCC" = yes; then
11410 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11411 else
11412 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11413 fi
11414 ;;
11415esac
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425if test -n "$ac_tool_prefix"; then
11426 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11427set dummy ${ac_tool_prefix}objdump; ac_word=$2
11428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11429$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011430if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011431 $as_echo_n "(cached) " >&6
11432else
11433 if test -n "$OBJDUMP"; then
11434 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11435else
11436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437for as_dir in $PATH
11438do
11439 IFS=$as_save_IFS
11440 test -z "$as_dir" && as_dir=.
11441 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011443 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11445 break 2
11446 fi
11447done
11448 done
11449IFS=$as_save_IFS
11450
11451fi
11452fi
11453OBJDUMP=$ac_cv_prog_OBJDUMP
11454if test -n "$OBJDUMP"; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11456$as_echo "$OBJDUMP" >&6; }
11457else
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459$as_echo "no" >&6; }
11460fi
11461
11462
11463fi
11464if test -z "$ac_cv_prog_OBJDUMP"; then
11465 ac_ct_OBJDUMP=$OBJDUMP
11466 # Extract the first word of "objdump", so it can be a program name with args.
11467set dummy objdump; ac_word=$2
11468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011470if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011471 $as_echo_n "(cached) " >&6
11472else
11473 if test -n "$ac_ct_OBJDUMP"; then
11474 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11475else
11476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477for as_dir in $PATH
11478do
11479 IFS=$as_save_IFS
11480 test -z "$as_dir" && as_dir=.
11481 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011483 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11485 break 2
11486 fi
11487done
11488 done
11489IFS=$as_save_IFS
11490
11491fi
11492fi
11493ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11494if test -n "$ac_ct_OBJDUMP"; then
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11496$as_echo "$ac_ct_OBJDUMP" >&6; }
11497else
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499$as_echo "no" >&6; }
11500fi
11501
11502 if test "x$ac_ct_OBJDUMP" = x; then
11503 OBJDUMP="false"
11504 else
11505 case $cross_compiling:$ac_tool_warned in
11506yes:)
11507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11509ac_tool_warned=yes ;;
11510esac
11511 OBJDUMP=$ac_ct_OBJDUMP
11512 fi
11513else
11514 OBJDUMP="$ac_cv_prog_OBJDUMP"
11515fi
11516
11517test -z "$OBJDUMP" && OBJDUMP=objdump
11518
11519
11520
11521
11522
11523
11524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11525$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011526if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011527 $as_echo_n "(cached) " >&6
11528else
11529 lt_cv_file_magic_cmd='$MAGIC_CMD'
11530lt_cv_file_magic_test_file=
11531lt_cv_deplibs_check_method='unknown'
11532# Need to set the preceding variable on all platforms that support
11533# interlibrary dependencies.
11534# 'none' -- dependencies not supported.
11535# `unknown' -- same as none, but documents that we really don't know.
11536# 'pass_all' -- all dependencies passed with no checks.
11537# 'test_compile' -- check by making test program.
11538# 'file_magic [[regex]]' -- check by looking for files in library path
11539# which responds to the $file_magic_cmd with a given extended regex.
11540# If you have `file' or equivalent on your system and you're not sure
11541# whether `pass_all' will *always* work, you probably want this one.
11542
11543case $host_os in
11544aix[4-9]*)
11545 lt_cv_deplibs_check_method=pass_all
11546 ;;
11547
11548beos*)
11549 lt_cv_deplibs_check_method=pass_all
11550 ;;
11551
11552bsdi[45]*)
11553 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11554 lt_cv_file_magic_cmd='/usr/bin/file -L'
11555 lt_cv_file_magic_test_file=/shlib/libc.so
11556 ;;
11557
11558cygwin*)
11559 # func_win32_libid is a shell function defined in ltmain.sh
11560 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11561 lt_cv_file_magic_cmd='func_win32_libid'
11562 ;;
11563
11564mingw* | pw32*)
11565 # Base MSYS/MinGW do not provide the 'file' command needed by
11566 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11567 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011568 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11569 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011570 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11571 lt_cv_file_magic_cmd='func_win32_libid'
11572 else
cristy0c60a692010-11-04 01:09:47 +000011573 # Keep this pattern in sync with the one in func_win32_libid.
11574 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 +000011575 lt_cv_file_magic_cmd='$OBJDUMP -f'
11576 fi
11577 ;;
11578
cristy0c60a692010-11-04 01:09:47 +000011579cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011580 # use the weaker test based on 'objdump'. See mingw*.
11581 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11582 lt_cv_file_magic_cmd='$OBJDUMP -f'
11583 ;;
11584
11585darwin* | rhapsody*)
11586 lt_cv_deplibs_check_method=pass_all
11587 ;;
11588
11589freebsd* | dragonfly*)
11590 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11591 case $host_cpu in
11592 i*86 )
11593 # Not sure whether the presence of OpenBSD here was a mistake.
11594 # Let's accept both of them until this is cleared up.
11595 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11596 lt_cv_file_magic_cmd=/usr/bin/file
11597 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11598 ;;
11599 esac
11600 else
11601 lt_cv_deplibs_check_method=pass_all
11602 fi
11603 ;;
11604
11605gnu*)
11606 lt_cv_deplibs_check_method=pass_all
11607 ;;
11608
cristy0c60a692010-11-04 01:09:47 +000011609haiku*)
11610 lt_cv_deplibs_check_method=pass_all
11611 ;;
11612
cristy73bd4a52010-10-05 11:24:23 +000011613hpux10.20* | hpux11*)
11614 lt_cv_file_magic_cmd=/usr/bin/file
11615 case $host_cpu in
11616 ia64*)
11617 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11618 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11619 ;;
11620 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011621 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 +000011622 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11623 ;;
11624 *)
cristy0c60a692010-11-04 01:09:47 +000011625 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 +000011626 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11627 ;;
11628 esac
11629 ;;
11630
11631interix[3-9]*)
11632 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11634 ;;
11635
11636irix5* | irix6* | nonstopux*)
11637 case $LD in
11638 *-32|*"-32 ") libmagic=32-bit;;
11639 *-n32|*"-n32 ") libmagic=N32;;
11640 *-64|*"-64 ") libmagic=64-bit;;
11641 *) libmagic=never-match;;
11642 esac
11643 lt_cv_deplibs_check_method=pass_all
11644 ;;
11645
cristy99bd5232011-12-07 14:38:20 +000011646# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011647linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011648 lt_cv_deplibs_check_method=pass_all
11649 ;;
11650
11651netbsd*)
11652 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11654 else
11655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11656 fi
11657 ;;
11658
11659newos6*)
11660 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11661 lt_cv_file_magic_cmd=/usr/bin/file
11662 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11663 ;;
11664
11665*nto* | *qnx*)
11666 lt_cv_deplibs_check_method=pass_all
11667 ;;
11668
11669openbsd*)
11670 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11671 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11672 else
11673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11674 fi
11675 ;;
11676
11677osf3* | osf4* | osf5*)
11678 lt_cv_deplibs_check_method=pass_all
11679 ;;
11680
11681rdos*)
11682 lt_cv_deplibs_check_method=pass_all
11683 ;;
11684
11685solaris*)
11686 lt_cv_deplibs_check_method=pass_all
11687 ;;
11688
11689sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11690 lt_cv_deplibs_check_method=pass_all
11691 ;;
11692
11693sysv4 | sysv4.3*)
11694 case $host_vendor in
11695 motorola)
11696 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]'
11697 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11698 ;;
11699 ncr)
11700 lt_cv_deplibs_check_method=pass_all
11701 ;;
11702 sequent)
11703 lt_cv_file_magic_cmd='/bin/file'
11704 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11705 ;;
11706 sni)
11707 lt_cv_file_magic_cmd='/bin/file'
11708 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11709 lt_cv_file_magic_test_file=/lib/libc.so
11710 ;;
11711 siemens)
11712 lt_cv_deplibs_check_method=pass_all
11713 ;;
11714 pc)
11715 lt_cv_deplibs_check_method=pass_all
11716 ;;
11717 esac
11718 ;;
11719
11720tpf*)
11721 lt_cv_deplibs_check_method=pass_all
11722 ;;
11723esac
11724
11725fi
11726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11727$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011728
11729file_magic_glob=
11730want_nocaseglob=no
11731if test "$build" = "$host"; then
11732 case $host_os in
11733 mingw* | pw32*)
11734 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11735 want_nocaseglob=yes
11736 else
11737 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11738 fi
11739 ;;
11740 esac
11741fi
11742
cristy73bd4a52010-10-05 11:24:23 +000011743file_magic_cmd=$lt_cv_file_magic_cmd
11744deplibs_check_method=$lt_cv_deplibs_check_method
11745test -z "$deplibs_check_method" && deplibs_check_method=unknown
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
cristyda16f162011-02-19 23:52:17 +000011758
11759
11760
11761
11762
11763
11764
11765
11766
11767
cristy73bd4a52010-10-05 11:24:23 +000011768if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011769 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11770set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11772$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011773if ${ac_cv_prog_DLLTOOL+:} false; then :
11774 $as_echo_n "(cached) " >&6
11775else
11776 if test -n "$DLLTOOL"; then
11777 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11778else
11779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780for as_dir in $PATH
11781do
11782 IFS=$as_save_IFS
11783 test -z "$as_dir" && as_dir=.
11784 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011786 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11788 break 2
11789 fi
11790done
11791 done
11792IFS=$as_save_IFS
11793
11794fi
11795fi
11796DLLTOOL=$ac_cv_prog_DLLTOOL
11797if test -n "$DLLTOOL"; then
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11799$as_echo "$DLLTOOL" >&6; }
11800else
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11802$as_echo "no" >&6; }
11803fi
11804
11805
11806fi
11807if test -z "$ac_cv_prog_DLLTOOL"; then
11808 ac_ct_DLLTOOL=$DLLTOOL
11809 # Extract the first word of "dlltool", so it can be a program name with args.
11810set dummy dlltool; ac_word=$2
11811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11812$as_echo_n "checking for $ac_word... " >&6; }
11813if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11814 $as_echo_n "(cached) " >&6
11815else
11816 if test -n "$ac_ct_DLLTOOL"; then
11817 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11818else
11819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820for as_dir in $PATH
11821do
11822 IFS=$as_save_IFS
11823 test -z "$as_dir" && as_dir=.
11824 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011826 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11828 break 2
11829 fi
11830done
11831 done
11832IFS=$as_save_IFS
11833
11834fi
11835fi
11836ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11837if test -n "$ac_ct_DLLTOOL"; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11839$as_echo "$ac_ct_DLLTOOL" >&6; }
11840else
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842$as_echo "no" >&6; }
11843fi
11844
11845 if test "x$ac_ct_DLLTOOL" = x; then
11846 DLLTOOL="false"
11847 else
11848 case $cross_compiling:$ac_tool_warned in
11849yes:)
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11852ac_tool_warned=yes ;;
11853esac
11854 DLLTOOL=$ac_ct_DLLTOOL
11855 fi
11856else
11857 DLLTOOL="$ac_cv_prog_DLLTOOL"
11858fi
11859
11860test -z "$DLLTOOL" && DLLTOOL=dlltool
11861
11862
11863
11864
11865
11866
11867
11868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11869$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11870if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11871 $as_echo_n "(cached) " >&6
11872else
11873 lt_cv_sharedlib_from_linklib_cmd='unknown'
11874
11875case $host_os in
11876cygwin* | mingw* | pw32* | cegcc*)
11877 # two different shell functions defined in ltmain.sh
11878 # decide which to use based on capabilities of $DLLTOOL
11879 case `$DLLTOOL --help 2>&1` in
11880 *--identify-strict*)
11881 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11882 ;;
11883 *)
11884 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11885 ;;
11886 esac
11887 ;;
11888*)
11889 # fallback: assume linklib IS sharedlib
11890 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11891 ;;
11892esac
11893
11894fi
11895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11896$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11897sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11898test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11899
11900
11901
11902
11903
11904
11905
11906if test -n "$ac_tool_prefix"; then
11907 for ac_prog in ar
11908 do
11909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11910set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11912$as_echo_n "checking for $ac_word... " >&6; }
11913if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011914 $as_echo_n "(cached) " >&6
11915else
11916 if test -n "$AR"; then
11917 ac_cv_prog_AR="$AR" # Let the user override the test.
11918else
11919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11920for as_dir in $PATH
11921do
11922 IFS=$as_save_IFS
11923 test -z "$as_dir" && as_dir=.
11924 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011926 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11928 break 2
11929 fi
11930done
11931 done
11932IFS=$as_save_IFS
11933
11934fi
11935fi
11936AR=$ac_cv_prog_AR
11937if test -n "$AR"; then
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11939$as_echo "$AR" >&6; }
11940else
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942$as_echo "no" >&6; }
11943fi
11944
11945
cristyda16f162011-02-19 23:52:17 +000011946 test -n "$AR" && break
11947 done
cristy73bd4a52010-10-05 11:24:23 +000011948fi
cristyda16f162011-02-19 23:52:17 +000011949if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011950 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011951 for ac_prog in ar
11952do
11953 # Extract the first word of "$ac_prog", so it can be a program name with args.
11954set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011957if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011958 $as_echo_n "(cached) " >&6
11959else
11960 if test -n "$ac_ct_AR"; then
11961 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11962else
11963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964for as_dir in $PATH
11965do
11966 IFS=$as_save_IFS
11967 test -z "$as_dir" && as_dir=.
11968 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011970 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11972 break 2
11973 fi
11974done
11975 done
11976IFS=$as_save_IFS
11977
11978fi
11979fi
11980ac_ct_AR=$ac_cv_prog_ac_ct_AR
11981if test -n "$ac_ct_AR"; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11983$as_echo "$ac_ct_AR" >&6; }
11984else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986$as_echo "no" >&6; }
11987fi
11988
cristyda16f162011-02-19 23:52:17 +000011989
11990 test -n "$ac_ct_AR" && break
11991done
11992
cristy73bd4a52010-10-05 11:24:23 +000011993 if test "x$ac_ct_AR" = x; then
11994 AR="false"
11995 else
11996 case $cross_compiling:$ac_tool_warned in
11997yes:)
11998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12000ac_tool_warned=yes ;;
12001esac
12002 AR=$ac_ct_AR
12003 fi
cristy73bd4a52010-10-05 11:24:23 +000012004fi
12005
cristyda16f162011-02-19 23:52:17 +000012006: ${AR=ar}
12007: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
cristyda16f162011-02-19 23:52:17 +000012019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12020$as_echo_n "checking for archiver @FILE support... " >&6; }
12021if ${lt_cv_ar_at_file+:} false; then :
12022 $as_echo_n "(cached) " >&6
12023else
12024 lt_cv_ar_at_file=no
12025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026/* end confdefs.h. */
12027
12028int
12029main ()
12030{
12031
12032 ;
12033 return 0;
12034}
12035_ACEOF
12036if ac_fn_c_try_compile "$LINENO"; then :
12037 echo conftest.$ac_objext > conftest.lst
12038 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12040 (eval $lt_ar_try) 2>&5
12041 ac_status=$?
12042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12043 test $ac_status = 0; }
12044 if test "$ac_status" -eq 0; then
12045 # Ensure the archiver fails upon bogus file names.
12046 rm -f conftest.$ac_objext libconftest.a
12047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12048 (eval $lt_ar_try) 2>&5
12049 ac_status=$?
12050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12051 test $ac_status = 0; }
12052 if test "$ac_status" -ne 0; then
12053 lt_cv_ar_at_file=@
12054 fi
12055 fi
12056 rm -f conftest.* libconftest.a
12057
12058fi
12059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12060
12061fi
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12063$as_echo "$lt_cv_ar_at_file" >&6; }
12064
12065if test "x$lt_cv_ar_at_file" = xno; then
12066 archiver_list_spec=
12067else
12068 archiver_list_spec=$lt_cv_ar_at_file
12069fi
12070
12071
12072
12073
12074
12075
12076
cristy73bd4a52010-10-05 11:24:23 +000012077if test -n "$ac_tool_prefix"; then
12078 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12079set dummy ${ac_tool_prefix}strip; ac_word=$2
12080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12081$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012082if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012083 $as_echo_n "(cached) " >&6
12084else
12085 if test -n "$STRIP"; then
12086 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12087else
12088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089for as_dir in $PATH
12090do
12091 IFS=$as_save_IFS
12092 test -z "$as_dir" && as_dir=.
12093 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012095 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12097 break 2
12098 fi
12099done
12100 done
12101IFS=$as_save_IFS
12102
12103fi
12104fi
12105STRIP=$ac_cv_prog_STRIP
12106if test -n "$STRIP"; then
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12108$as_echo "$STRIP" >&6; }
12109else
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111$as_echo "no" >&6; }
12112fi
12113
12114
12115fi
12116if test -z "$ac_cv_prog_STRIP"; then
12117 ac_ct_STRIP=$STRIP
12118 # Extract the first word of "strip", so it can be a program name with args.
12119set dummy strip; ac_word=$2
12120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12121$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012122if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012123 $as_echo_n "(cached) " >&6
12124else
12125 if test -n "$ac_ct_STRIP"; then
12126 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12127else
12128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12129for as_dir in $PATH
12130do
12131 IFS=$as_save_IFS
12132 test -z "$as_dir" && as_dir=.
12133 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012135 ac_cv_prog_ac_ct_STRIP="strip"
12136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12137 break 2
12138 fi
12139done
12140 done
12141IFS=$as_save_IFS
12142
12143fi
12144fi
12145ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12146if test -n "$ac_ct_STRIP"; then
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12148$as_echo "$ac_ct_STRIP" >&6; }
12149else
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12151$as_echo "no" >&6; }
12152fi
12153
12154 if test "x$ac_ct_STRIP" = x; then
12155 STRIP=":"
12156 else
12157 case $cross_compiling:$ac_tool_warned in
12158yes:)
12159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12161ac_tool_warned=yes ;;
12162esac
12163 STRIP=$ac_ct_STRIP
12164 fi
12165else
12166 STRIP="$ac_cv_prog_STRIP"
12167fi
12168
12169test -z "$STRIP" && STRIP=:
12170
12171
12172
12173
12174
12175
12176if test -n "$ac_tool_prefix"; then
12177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12178set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12180$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012181if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012182 $as_echo_n "(cached) " >&6
12183else
12184 if test -n "$RANLIB"; then
12185 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12186else
12187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188for as_dir in $PATH
12189do
12190 IFS=$as_save_IFS
12191 test -z "$as_dir" && as_dir=.
12192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012194 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12196 break 2
12197 fi
12198done
12199 done
12200IFS=$as_save_IFS
12201
12202fi
12203fi
12204RANLIB=$ac_cv_prog_RANLIB
12205if test -n "$RANLIB"; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12207$as_echo "$RANLIB" >&6; }
12208else
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210$as_echo "no" >&6; }
12211fi
12212
12213
12214fi
12215if test -z "$ac_cv_prog_RANLIB"; then
12216 ac_ct_RANLIB=$RANLIB
12217 # Extract the first word of "ranlib", so it can be a program name with args.
12218set dummy ranlib; ac_word=$2
12219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12220$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012221if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012222 $as_echo_n "(cached) " >&6
12223else
12224 if test -n "$ac_ct_RANLIB"; then
12225 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12226else
12227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12228for as_dir in $PATH
12229do
12230 IFS=$as_save_IFS
12231 test -z "$as_dir" && as_dir=.
12232 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012234 ac_cv_prog_ac_ct_RANLIB="ranlib"
12235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12236 break 2
12237 fi
12238done
12239 done
12240IFS=$as_save_IFS
12241
12242fi
12243fi
12244ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12245if test -n "$ac_ct_RANLIB"; then
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12247$as_echo "$ac_ct_RANLIB" >&6; }
12248else
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250$as_echo "no" >&6; }
12251fi
12252
12253 if test "x$ac_ct_RANLIB" = x; then
12254 RANLIB=":"
12255 else
12256 case $cross_compiling:$ac_tool_warned in
12257yes:)
12258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12260ac_tool_warned=yes ;;
12261esac
12262 RANLIB=$ac_ct_RANLIB
12263 fi
12264else
12265 RANLIB="$ac_cv_prog_RANLIB"
12266fi
12267
12268test -z "$RANLIB" && RANLIB=:
12269
12270
12271
12272
12273
12274
12275# Determine commands to create old-style static archives.
12276old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12277old_postinstall_cmds='chmod 644 $oldlib'
12278old_postuninstall_cmds=
12279
12280if test -n "$RANLIB"; then
12281 case $host_os in
12282 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012283 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012284 ;;
12285 *)
cristy99bd5232011-12-07 14:38:20 +000012286 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012287 ;;
12288 esac
cristy99bd5232011-12-07 14:38:20 +000012289 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012290fi
12291
cristy0c60a692010-11-04 01:09:47 +000012292case $host_os in
12293 darwin*)
12294 lock_old_archive_extraction=yes ;;
12295 *)
12296 lock_old_archive_extraction=no ;;
12297esac
12298
12299
12300
12301
12302
12303
cristy73bd4a52010-10-05 11:24:23 +000012304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337# If no C compiler was specified, use CC.
12338LTCC=${LTCC-"$CC"}
12339
12340# If no C compiler flags were specified, use CFLAGS.
12341LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12342
12343# Allow CC to be a program name with arguments.
12344compiler=$CC
12345
12346
12347# Check for command to grab the raw symbol name followed by C symbol from nm.
12348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12349$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012350if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012351 $as_echo_n "(cached) " >&6
12352else
12353
12354# These are sane defaults that work on at least a few old systems.
12355# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12356
12357# Character class describing NM global symbol codes.
12358symcode='[BCDEGRST]'
12359
12360# Regexp to match symbols that can be accessed directly from C.
12361sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12362
12363# Define system-specific variables.
12364case $host_os in
12365aix*)
12366 symcode='[BCDT]'
12367 ;;
12368cygwin* | mingw* | pw32* | cegcc*)
12369 symcode='[ABCDGISTW]'
12370 ;;
12371hpux*)
12372 if test "$host_cpu" = ia64; then
12373 symcode='[ABCDEGRST]'
12374 fi
12375 ;;
12376irix* | nonstopux*)
12377 symcode='[BCDEGRST]'
12378 ;;
12379osf*)
12380 symcode='[BCDEGQRST]'
12381 ;;
12382solaris*)
12383 symcode='[BDRT]'
12384 ;;
12385sco3.2v5*)
12386 symcode='[DT]'
12387 ;;
12388sysv4.2uw2*)
12389 symcode='[DT]'
12390 ;;
12391sysv5* | sco5v6* | unixware* | OpenUNIX*)
12392 symcode='[ABDT]'
12393 ;;
12394sysv4)
12395 symcode='[DFNSTU]'
12396 ;;
12397esac
12398
12399# If we're using GNU nm, then use its standard symbol codes.
12400case `$NM -V 2>&1` in
12401*GNU* | *'with BFD'*)
12402 symcode='[ABCDGIRSTW]' ;;
12403esac
12404
12405# Transform an extracted symbol line into a proper C declaration.
12406# Some systems (esp. on ia64) link data and code symbols differently,
12407# so use this general approach.
12408lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12409
12410# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012411lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12412lt_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 +000012413
12414# Handle CRLF in mingw tool chain
12415opt_cr=
12416case $build_os in
12417mingw*)
12418 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12419 ;;
12420esac
12421
12422# Try without a prefix underscore, then with it.
12423for ac_symprfx in "" "_"; do
12424
12425 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12426 symxfrm="\\1 $ac_symprfx\\2 \\2"
12427
12428 # Write the raw and C identifiers.
12429 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12430 # Fake it for dumpbin and say T for any non-static function
12431 # and D for any global variable.
12432 # Also find C++ and __fastcall symbols from MSVC++,
12433 # which start with @ or ?.
12434 lt_cv_sys_global_symbol_pipe="$AWK '"\
12435" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012436" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012437" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12438" \$ 0!~/External *\|/{next};"\
12439" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12440" {if(hide[section]) next};"\
12441" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12442" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12443" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12444" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12445" ' prfx=^$ac_symprfx"
12446 else
12447 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12448 fi
cristyda16f162011-02-19 23:52:17 +000012449 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012450
12451 # Check to see that the pipe works correctly.
12452 pipe_works=no
12453
12454 rm -f conftest*
12455 cat > conftest.$ac_ext <<_LT_EOF
12456#ifdef __cplusplus
12457extern "C" {
12458#endif
12459char nm_test_var;
12460void nm_test_func(void);
12461void nm_test_func(void){}
12462#ifdef __cplusplus
12463}
12464#endif
12465int main(){nm_test_var='a';nm_test_func();return(0);}
12466_LT_EOF
12467
12468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12469 (eval $ac_compile) 2>&5
12470 ac_status=$?
12471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12472 test $ac_status = 0; }; then
12473 # Now try to grab the symbols.
12474 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12476 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012477 ac_status=$?
12478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12479 test $ac_status = 0; } && test -s "$nlist"; then
12480 # Try sorting and uniquifying the output.
12481 if sort "$nlist" | uniq > "$nlist"T; then
12482 mv -f "$nlist"T "$nlist"
12483 else
12484 rm -f "$nlist"T
12485 fi
12486
12487 # Make sure that we snagged all the symbols we need.
12488 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12489 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12490 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012491/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12492#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12493/* DATA imports from DLLs on WIN32 con't be const, because runtime
12494 relocations are performed -- see ld's documentation on pseudo-relocs. */
12495# define LT_DLSYM_CONST
12496#elif defined(__osf__)
12497/* This system does not cope well with relocations in const data. */
12498# define LT_DLSYM_CONST
12499#else
12500# define LT_DLSYM_CONST const
12501#endif
12502
cristy73bd4a52010-10-05 11:24:23 +000012503#ifdef __cplusplus
12504extern "C" {
12505#endif
12506
12507_LT_EOF
12508 # Now generate the symbol file.
12509 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12510
12511 cat <<_LT_EOF >> conftest.$ac_ext
12512
12513/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012514LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012515 const char *name;
12516 void *address;
12517}
12518lt__PROGRAM__LTX_preloaded_symbols[] =
12519{
12520 { "@PROGRAM@", (void *) 0 },
12521_LT_EOF
12522 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12523 cat <<\_LT_EOF >> conftest.$ac_ext
12524 {0, (void *) 0}
12525};
12526
12527/* This works around a problem in FreeBSD linker */
12528#ifdef FREEBSD_WORKAROUND
12529static const void *lt_preloaded_setup() {
12530 return lt__PROGRAM__LTX_preloaded_symbols;
12531}
12532#endif
12533
12534#ifdef __cplusplus
12535}
12536#endif
12537_LT_EOF
12538 # Now try linking the two files.
12539 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012540 lt_globsym_save_LIBS=$LIBS
12541 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012542 LIBS="conftstm.$ac_objext"
12543 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12545 (eval $ac_link) 2>&5
12546 ac_status=$?
12547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12548 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12549 pipe_works=yes
12550 fi
cristyda16f162011-02-19 23:52:17 +000012551 LIBS=$lt_globsym_save_LIBS
12552 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012553 else
12554 echo "cannot find nm_test_func in $nlist" >&5
12555 fi
12556 else
12557 echo "cannot find nm_test_var in $nlist" >&5
12558 fi
12559 else
12560 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12561 fi
12562 else
12563 echo "$progname: failed program was:" >&5
12564 cat conftest.$ac_ext >&5
12565 fi
12566 rm -rf conftest* conftst*
12567
12568 # Do not use the global_symbol_pipe unless it works.
12569 if test "$pipe_works" = yes; then
12570 break
12571 else
12572 lt_cv_sys_global_symbol_pipe=
12573 fi
12574done
12575
12576fi
12577
12578if test -z "$lt_cv_sys_global_symbol_pipe"; then
12579 lt_cv_sys_global_symbol_to_cdecl=
12580fi
12581if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12583$as_echo "failed" >&6; }
12584else
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12586$as_echo "ok" >&6; }
12587fi
12588
cristyda16f162011-02-19 23:52:17 +000012589# Response file support.
12590if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12591 nm_file_list_spec='@'
12592elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12593 nm_file_list_spec='@'
12594fi
cristy73bd4a52010-10-05 11:24:23 +000012595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
cristyda16f162011-02-19 23:52:17 +000012616
12617
12618
12619
12620
12621
12622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12623$as_echo_n "checking for sysroot... " >&6; }
12624
12625# Check whether --with-sysroot was given.
12626if test "${with_sysroot+set}" = set; then :
12627 withval=$with_sysroot;
12628else
12629 with_sysroot=no
12630fi
12631
12632
12633lt_sysroot=
12634case ${with_sysroot} in #(
12635 yes)
12636 if test "$GCC" = yes; then
12637 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12638 fi
12639 ;; #(
12640 /*)
12641 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12642 ;; #(
12643 no|'')
12644 ;; #(
12645 *)
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12647$as_echo "${with_sysroot}" >&6; }
12648 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12649 ;;
12650esac
12651
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12653$as_echo "${lt_sysroot:-no}" >&6; }
12654
12655
12656
12657
12658
cristy73bd4a52010-10-05 11:24:23 +000012659# Check whether --enable-libtool-lock was given.
12660if test "${enable_libtool_lock+set}" = set; then :
12661 enableval=$enable_libtool_lock;
12662fi
12663
12664test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12665
12666# Some flags need to be propagated to the compiler or linker for good
12667# libtool support.
12668case $host in
12669ia64-*-hpux*)
12670 # Find out which ABI we are using.
12671 echo 'int i;' > conftest.$ac_ext
12672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12673 (eval $ac_compile) 2>&5
12674 ac_status=$?
12675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12676 test $ac_status = 0; }; then
12677 case `/usr/bin/file conftest.$ac_objext` in
12678 *ELF-32*)
12679 HPUX_IA64_MODE="32"
12680 ;;
12681 *ELF-64*)
12682 HPUX_IA64_MODE="64"
12683 ;;
12684 esac
12685 fi
12686 rm -rf conftest*
12687 ;;
12688*-*-irix6*)
12689 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012690 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12692 (eval $ac_compile) 2>&5
12693 ac_status=$?
12694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12695 test $ac_status = 0; }; then
12696 if test "$lt_cv_prog_gnu_ld" = yes; then
12697 case `/usr/bin/file conftest.$ac_objext` in
12698 *32-bit*)
12699 LD="${LD-ld} -melf32bsmip"
12700 ;;
12701 *N32*)
12702 LD="${LD-ld} -melf32bmipn32"
12703 ;;
12704 *64-bit*)
12705 LD="${LD-ld} -melf64bmip"
12706 ;;
12707 esac
12708 else
12709 case `/usr/bin/file conftest.$ac_objext` in
12710 *32-bit*)
12711 LD="${LD-ld} -32"
12712 ;;
12713 *N32*)
12714 LD="${LD-ld} -n32"
12715 ;;
12716 *64-bit*)
12717 LD="${LD-ld} -64"
12718 ;;
12719 esac
12720 fi
12721 fi
12722 rm -rf conftest*
12723 ;;
12724
cristyd95b7a52013-10-23 13:12:53 +000012725x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000012726s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12727 # Find out which ABI we are using.
12728 echo 'int i;' > conftest.$ac_ext
12729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12730 (eval $ac_compile) 2>&5
12731 ac_status=$?
12732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12733 test $ac_status = 0; }; then
12734 case `/usr/bin/file conftest.o` in
12735 *32-bit*)
12736 case $host in
12737 x86_64-*kfreebsd*-gnu)
12738 LD="${LD-ld} -m elf_i386_fbsd"
12739 ;;
12740 x86_64-*linux*)
12741 LD="${LD-ld} -m elf_i386"
12742 ;;
cristya5bda012013-11-03 18:05:38 +000012743 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000012744 LD="${LD-ld} -m elf32lppclinux"
12745 ;;
cristya5bda012013-11-03 18:05:38 +000012746 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012747 LD="${LD-ld} -m elf32ppclinux"
12748 ;;
12749 s390x-*linux*)
12750 LD="${LD-ld} -m elf_s390"
12751 ;;
12752 sparc64-*linux*)
12753 LD="${LD-ld} -m elf32_sparc"
12754 ;;
12755 esac
12756 ;;
12757 *64-bit*)
12758 case $host in
12759 x86_64-*kfreebsd*-gnu)
12760 LD="${LD-ld} -m elf_x86_64_fbsd"
12761 ;;
12762 x86_64-*linux*)
12763 LD="${LD-ld} -m elf_x86_64"
12764 ;;
cristyd95b7a52013-10-23 13:12:53 +000012765 powerpcle-*linux*)
12766 LD="${LD-ld} -m elf64lppc"
12767 ;;
12768 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012769 LD="${LD-ld} -m elf64ppc"
12770 ;;
12771 s390*-*linux*|s390*-*tpf*)
12772 LD="${LD-ld} -m elf64_s390"
12773 ;;
12774 sparc*-*linux*)
12775 LD="${LD-ld} -m elf64_sparc"
12776 ;;
12777 esac
12778 ;;
12779 esac
12780 fi
12781 rm -rf conftest*
12782 ;;
12783
12784*-*-sco3.2v5*)
12785 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12786 SAVE_CFLAGS="$CFLAGS"
12787 CFLAGS="$CFLAGS -belf"
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12789$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012790if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012791 $as_echo_n "(cached) " >&6
12792else
12793 ac_ext=c
12794ac_cpp='$CPP $CPPFLAGS'
12795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12797ac_compiler_gnu=$ac_cv_c_compiler_gnu
12798
12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800/* end confdefs.h. */
12801
12802int
12803main ()
12804{
12805
12806 ;
12807 return 0;
12808}
12809_ACEOF
12810if ac_fn_c_try_link "$LINENO"; then :
12811 lt_cv_cc_needs_belf=yes
12812else
12813 lt_cv_cc_needs_belf=no
12814fi
12815rm -f core conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext conftest.$ac_ext
12817 ac_ext=c
12818ac_cpp='$CPP $CPPFLAGS'
12819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12821ac_compiler_gnu=$ac_cv_c_compiler_gnu
12822
12823fi
12824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12825$as_echo "$lt_cv_cc_needs_belf" >&6; }
12826 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12827 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12828 CFLAGS="$SAVE_CFLAGS"
12829 fi
12830 ;;
cristy99bd5232011-12-07 14:38:20 +000012831*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012832 # Find out which ABI we are using.
12833 echo 'int i;' > conftest.$ac_ext
12834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12835 (eval $ac_compile) 2>&5
12836 ac_status=$?
12837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12838 test $ac_status = 0; }; then
12839 case `/usr/bin/file conftest.o` in
12840 *64-bit*)
12841 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012842 yes*)
12843 case $host in
12844 i?86-*-solaris*)
12845 LD="${LD-ld} -m elf_x86_64"
12846 ;;
12847 sparc*-*-solaris*)
12848 LD="${LD-ld} -m elf64_sparc"
12849 ;;
12850 esac
12851 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12852 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12853 LD="${LD-ld}_sol2"
12854 fi
12855 ;;
cristy73bd4a52010-10-05 11:24:23 +000012856 *)
12857 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12858 LD="${LD-ld} -64"
12859 fi
12860 ;;
12861 esac
12862 ;;
12863 esac
12864 fi
12865 rm -rf conftest*
12866 ;;
12867esac
12868
12869need_locks="$enable_libtool_lock"
12870
cristyda16f162011-02-19 23:52:17 +000012871if test -n "$ac_tool_prefix"; then
12872 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12873set dummy ${ac_tool_prefix}mt; ac_word=$2
12874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12875$as_echo_n "checking for $ac_word... " >&6; }
12876if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12877 $as_echo_n "(cached) " >&6
12878else
12879 if test -n "$MANIFEST_TOOL"; then
12880 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12881else
12882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12883for as_dir in $PATH
12884do
12885 IFS=$as_save_IFS
12886 test -z "$as_dir" && as_dir=.
12887 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012889 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12891 break 2
12892 fi
12893done
12894 done
12895IFS=$as_save_IFS
12896
12897fi
12898fi
12899MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12900if test -n "$MANIFEST_TOOL"; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12902$as_echo "$MANIFEST_TOOL" >&6; }
12903else
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905$as_echo "no" >&6; }
12906fi
12907
12908
12909fi
12910if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12911 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12912 # Extract the first word of "mt", so it can be a program name with args.
12913set dummy mt; ac_word=$2
12914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12915$as_echo_n "checking for $ac_word... " >&6; }
12916if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12917 $as_echo_n "(cached) " >&6
12918else
12919 if test -n "$ac_ct_MANIFEST_TOOL"; then
12920 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12921else
12922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12923for as_dir in $PATH
12924do
12925 IFS=$as_save_IFS
12926 test -z "$as_dir" && as_dir=.
12927 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012929 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12931 break 2
12932 fi
12933done
12934 done
12935IFS=$as_save_IFS
12936
12937fi
12938fi
12939ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12940if test -n "$ac_ct_MANIFEST_TOOL"; then
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12942$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12943else
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12945$as_echo "no" >&6; }
12946fi
12947
12948 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12949 MANIFEST_TOOL=":"
12950 else
12951 case $cross_compiling:$ac_tool_warned in
12952yes:)
12953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12955ac_tool_warned=yes ;;
12956esac
12957 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12958 fi
12959else
12960 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12961fi
12962
12963test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12965$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12966if ${lt_cv_path_mainfest_tool+:} false; then :
12967 $as_echo_n "(cached) " >&6
12968else
12969 lt_cv_path_mainfest_tool=no
12970 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12971 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12972 cat conftest.err >&5
12973 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12974 lt_cv_path_mainfest_tool=yes
12975 fi
12976 rm -f conftest*
12977fi
12978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12979$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12980if test "x$lt_cv_path_mainfest_tool" != xyes; then
12981 MANIFEST_TOOL=:
12982fi
12983
12984
12985
12986
12987
cristy73bd4a52010-10-05 11:24:23 +000012988
12989 case $host_os in
12990 rhapsody* | darwin*)
12991 if test -n "$ac_tool_prefix"; then
12992 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12993set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12995$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012996if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012997 $as_echo_n "(cached) " >&6
12998else
12999 if test -n "$DSYMUTIL"; then
13000 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13001else
13002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13003for as_dir in $PATH
13004do
13005 IFS=$as_save_IFS
13006 test -z "$as_dir" && as_dir=.
13007 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013009 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13011 break 2
13012 fi
13013done
13014 done
13015IFS=$as_save_IFS
13016
13017fi
13018fi
13019DSYMUTIL=$ac_cv_prog_DSYMUTIL
13020if test -n "$DSYMUTIL"; then
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13022$as_echo "$DSYMUTIL" >&6; }
13023else
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025$as_echo "no" >&6; }
13026fi
13027
13028
13029fi
13030if test -z "$ac_cv_prog_DSYMUTIL"; then
13031 ac_ct_DSYMUTIL=$DSYMUTIL
13032 # Extract the first word of "dsymutil", so it can be a program name with args.
13033set dummy dsymutil; ac_word=$2
13034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013036if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013037 $as_echo_n "(cached) " >&6
13038else
13039 if test -n "$ac_ct_DSYMUTIL"; then
13040 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13041else
13042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13043for as_dir in $PATH
13044do
13045 IFS=$as_save_IFS
13046 test -z "$as_dir" && as_dir=.
13047 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013049 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13051 break 2
13052 fi
13053done
13054 done
13055IFS=$as_save_IFS
13056
13057fi
13058fi
13059ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13060if test -n "$ac_ct_DSYMUTIL"; then
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13062$as_echo "$ac_ct_DSYMUTIL" >&6; }
13063else
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065$as_echo "no" >&6; }
13066fi
13067
13068 if test "x$ac_ct_DSYMUTIL" = x; then
13069 DSYMUTIL=":"
13070 else
13071 case $cross_compiling:$ac_tool_warned in
13072yes:)
13073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13075ac_tool_warned=yes ;;
13076esac
13077 DSYMUTIL=$ac_ct_DSYMUTIL
13078 fi
13079else
13080 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13081fi
13082
13083 if test -n "$ac_tool_prefix"; then
13084 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13085set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13087$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013088if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013089 $as_echo_n "(cached) " >&6
13090else
13091 if test -n "$NMEDIT"; then
13092 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13093else
13094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095for as_dir in $PATH
13096do
13097 IFS=$as_save_IFS
13098 test -z "$as_dir" && as_dir=.
13099 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013101 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13103 break 2
13104 fi
13105done
13106 done
13107IFS=$as_save_IFS
13108
13109fi
13110fi
13111NMEDIT=$ac_cv_prog_NMEDIT
13112if test -n "$NMEDIT"; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13114$as_echo "$NMEDIT" >&6; }
13115else
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117$as_echo "no" >&6; }
13118fi
13119
13120
13121fi
13122if test -z "$ac_cv_prog_NMEDIT"; then
13123 ac_ct_NMEDIT=$NMEDIT
13124 # Extract the first word of "nmedit", so it can be a program name with args.
13125set dummy nmedit; ac_word=$2
13126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13127$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013128if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013129 $as_echo_n "(cached) " >&6
13130else
13131 if test -n "$ac_ct_NMEDIT"; then
13132 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13133else
13134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135for as_dir in $PATH
13136do
13137 IFS=$as_save_IFS
13138 test -z "$as_dir" && as_dir=.
13139 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013141 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13143 break 2
13144 fi
13145done
13146 done
13147IFS=$as_save_IFS
13148
13149fi
13150fi
13151ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13152if test -n "$ac_ct_NMEDIT"; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13154$as_echo "$ac_ct_NMEDIT" >&6; }
13155else
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157$as_echo "no" >&6; }
13158fi
13159
13160 if test "x$ac_ct_NMEDIT" = x; then
13161 NMEDIT=":"
13162 else
13163 case $cross_compiling:$ac_tool_warned in
13164yes:)
13165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13167ac_tool_warned=yes ;;
13168esac
13169 NMEDIT=$ac_ct_NMEDIT
13170 fi
13171else
13172 NMEDIT="$ac_cv_prog_NMEDIT"
13173fi
13174
13175 if test -n "$ac_tool_prefix"; then
13176 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13177set dummy ${ac_tool_prefix}lipo; ac_word=$2
13178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13179$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013180if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013181 $as_echo_n "(cached) " >&6
13182else
13183 if test -n "$LIPO"; then
13184 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13185else
13186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13187for as_dir in $PATH
13188do
13189 IFS=$as_save_IFS
13190 test -z "$as_dir" && as_dir=.
13191 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013193 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13195 break 2
13196 fi
13197done
13198 done
13199IFS=$as_save_IFS
13200
13201fi
13202fi
13203LIPO=$ac_cv_prog_LIPO
13204if test -n "$LIPO"; then
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13206$as_echo "$LIPO" >&6; }
13207else
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209$as_echo "no" >&6; }
13210fi
13211
13212
13213fi
13214if test -z "$ac_cv_prog_LIPO"; then
13215 ac_ct_LIPO=$LIPO
13216 # Extract the first word of "lipo", so it can be a program name with args.
13217set dummy lipo; 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_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013221 $as_echo_n "(cached) " >&6
13222else
13223 if test -n "$ac_ct_LIPO"; then
13224 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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_ac_ct_LIPO="lipo"
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
13243ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13244if test -n "$ac_ct_LIPO"; then
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13246$as_echo "$ac_ct_LIPO" >&6; }
13247else
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249$as_echo "no" >&6; }
13250fi
13251
13252 if test "x$ac_ct_LIPO" = x; then
13253 LIPO=":"
13254 else
13255 case $cross_compiling:$ac_tool_warned in
13256yes:)
13257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13259ac_tool_warned=yes ;;
13260esac
13261 LIPO=$ac_ct_LIPO
13262 fi
13263else
13264 LIPO="$ac_cv_prog_LIPO"
13265fi
13266
13267 if test -n "$ac_tool_prefix"; then
13268 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13269set dummy ${ac_tool_prefix}otool; ac_word=$2
13270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13271$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013272if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013273 $as_echo_n "(cached) " >&6
13274else
13275 if test -n "$OTOOL"; then
13276 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13277else
13278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279for as_dir in $PATH
13280do
13281 IFS=$as_save_IFS
13282 test -z "$as_dir" && as_dir=.
13283 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013285 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13287 break 2
13288 fi
13289done
13290 done
13291IFS=$as_save_IFS
13292
13293fi
13294fi
13295OTOOL=$ac_cv_prog_OTOOL
13296if test -n "$OTOOL"; then
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13298$as_echo "$OTOOL" >&6; }
13299else
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301$as_echo "no" >&6; }
13302fi
13303
13304
13305fi
13306if test -z "$ac_cv_prog_OTOOL"; then
13307 ac_ct_OTOOL=$OTOOL
13308 # Extract the first word of "otool", so it can be a program name with args.
13309set dummy otool; 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_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013313 $as_echo_n "(cached) " >&6
13314else
13315 if test -n "$ac_ct_OTOOL"; then
13316 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_ac_ct_OTOOL="otool"
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
13335ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13336if test -n "$ac_ct_OTOOL"; then
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13338$as_echo "$ac_ct_OTOOL" >&6; }
13339else
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341$as_echo "no" >&6; }
13342fi
13343
13344 if test "x$ac_ct_OTOOL" = x; then
13345 OTOOL=":"
13346 else
13347 case $cross_compiling:$ac_tool_warned in
13348yes:)
13349{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13350$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13351ac_tool_warned=yes ;;
13352esac
13353 OTOOL=$ac_ct_OTOOL
13354 fi
13355else
13356 OTOOL="$ac_cv_prog_OTOOL"
13357fi
13358
13359 if test -n "$ac_tool_prefix"; then
13360 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13361set dummy ${ac_tool_prefix}otool64; ac_word=$2
13362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13363$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013364if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013365 $as_echo_n "(cached) " >&6
13366else
13367 if test -n "$OTOOL64"; then
13368 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13369else
13370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371for as_dir in $PATH
13372do
13373 IFS=$as_save_IFS
13374 test -z "$as_dir" && as_dir=.
13375 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013377 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13379 break 2
13380 fi
13381done
13382 done
13383IFS=$as_save_IFS
13384
13385fi
13386fi
13387OTOOL64=$ac_cv_prog_OTOOL64
13388if test -n "$OTOOL64"; then
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13390$as_echo "$OTOOL64" >&6; }
13391else
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13393$as_echo "no" >&6; }
13394fi
13395
13396
13397fi
13398if test -z "$ac_cv_prog_OTOOL64"; then
13399 ac_ct_OTOOL64=$OTOOL64
13400 # Extract the first word of "otool64", so it can be a program name with args.
13401set dummy otool64; 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_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013405 $as_echo_n "(cached) " >&6
13406else
13407 if test -n "$ac_ct_OTOOL64"; then
13408 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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_ac_ct_OTOOL64="otool64"
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
13427ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13428if test -n "$ac_ct_OTOOL64"; then
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13430$as_echo "$ac_ct_OTOOL64" >&6; }
13431else
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433$as_echo "no" >&6; }
13434fi
13435
13436 if test "x$ac_ct_OTOOL64" = x; then
13437 OTOOL64=":"
13438 else
13439 case $cross_compiling:$ac_tool_warned in
13440yes:)
13441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13443ac_tool_warned=yes ;;
13444esac
13445 OTOOL64=$ac_ct_OTOOL64
13446 fi
13447else
13448 OTOOL64="$ac_cv_prog_OTOOL64"
13449fi
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13478$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013479if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013480 $as_echo_n "(cached) " >&6
13481else
13482 lt_cv_apple_cc_single_mod=no
13483 if test -z "${LT_MULTI_MODULE}"; then
13484 # By default we will add the -single_module flag. You can override
13485 # by either setting the environment variable LT_MULTI_MODULE
13486 # non-empty at configure time, or by adding -multi_module to the
13487 # link flags.
13488 rm -rf libconftest.dylib*
13489 echo "int foo(void){return 1;}" > conftest.c
13490 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13491-dynamiclib -Wl,-single_module conftest.c" >&5
13492 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13493 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13494 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013495 # If there is a non-empty error log, and "single_module"
13496 # appears in it, assume the flag caused a linker warning
13497 if test -s conftest.err && $GREP single_module conftest.err; then
13498 cat conftest.err >&5
13499 # Otherwise, if the output was created with a 0 exit code from
13500 # the compiler, it worked.
13501 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013502 lt_cv_apple_cc_single_mod=yes
13503 else
13504 cat conftest.err >&5
13505 fi
13506 rm -rf libconftest.dylib*
13507 rm -f conftest.*
13508 fi
13509fi
13510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13511$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013512
cristy73bd4a52010-10-05 11:24:23 +000013513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13514$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013515if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013516 $as_echo_n "(cached) " >&6
13517else
13518 lt_cv_ld_exported_symbols_list=no
13519 save_LDFLAGS=$LDFLAGS
13520 echo "_main" > conftest.sym
13521 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523/* end confdefs.h. */
13524
13525int
13526main ()
13527{
13528
13529 ;
13530 return 0;
13531}
13532_ACEOF
13533if ac_fn_c_try_link "$LINENO"; then :
13534 lt_cv_ld_exported_symbols_list=yes
13535else
13536 lt_cv_ld_exported_symbols_list=no
13537fi
13538rm -f core conftest.err conftest.$ac_objext \
13539 conftest$ac_exeext conftest.$ac_ext
13540 LDFLAGS="$save_LDFLAGS"
13541
13542fi
13543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13544$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013545
cristy0c60a692010-11-04 01:09:47 +000013546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13547$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013548if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013549 $as_echo_n "(cached) " >&6
13550else
13551 lt_cv_ld_force_load=no
13552 cat > conftest.c << _LT_EOF
13553int forced_loaded() { return 2;}
13554_LT_EOF
13555 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13556 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13557 echo "$AR cru libconftest.a conftest.o" >&5
13558 $AR cru libconftest.a conftest.o 2>&5
13559 echo "$RANLIB libconftest.a" >&5
13560 $RANLIB libconftest.a 2>&5
13561 cat > conftest.c << _LT_EOF
13562int main() { return 0;}
13563_LT_EOF
13564 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13565 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13566 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013567 if test -s conftest.err && $GREP force_load conftest.err; then
13568 cat conftest.err >&5
13569 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013570 lt_cv_ld_force_load=yes
13571 else
13572 cat conftest.err >&5
13573 fi
13574 rm -f conftest.err libconftest.a conftest conftest.c
13575 rm -rf conftest.dSYM
13576
13577fi
13578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13579$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013580 case $host_os in
13581 rhapsody* | darwin1.[012])
13582 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13583 darwin1.*)
13584 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13585 darwin*) # darwin 5.x on
13586 # if running on 10.5 or later, the deployment target defaults
13587 # to the OS version, if on x86, and 10.4, the deployment
13588 # target defaults to 10.4. Don't you love it?
13589 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13590 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13591 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13592 10.[012]*)
13593 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13594 10.*)
13595 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13596 esac
13597 ;;
13598 esac
13599 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13600 _lt_dar_single_mod='$single_module'
13601 fi
13602 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13603 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13604 else
13605 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13606 fi
cristy0c60a692010-11-04 01:09:47 +000013607 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013608 _lt_dsymutil='~$DSYMUTIL $lib || :'
13609 else
13610 _lt_dsymutil=
13611 fi
13612 ;;
13613 esac
13614
13615for ac_header in dlfcn.h
13616do :
13617 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13618"
cristyda16f162011-02-19 23:52:17 +000013619if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013620 cat >>confdefs.h <<_ACEOF
13621#define HAVE_DLFCN_H 1
13622_ACEOF
13623
13624fi
13625
13626done
13627
13628
13629
cristy73bd4a52010-10-05 11:24:23 +000013630
cristyda16f162011-02-19 23:52:17 +000013631func_stripname_cnf ()
13632{
13633 case ${2} in
13634 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13635 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13636 esac
13637} # func_stripname_cnf
13638
13639
13640
cristy73bd4a52010-10-05 11:24:23 +000013641
13642
13643# Set options
13644enable_win32_dll=yes
13645
13646case $host in
cristy0c60a692010-11-04 01:09:47 +000013647*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013648 if test -n "$ac_tool_prefix"; then
13649 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13650set dummy ${ac_tool_prefix}as; ac_word=$2
13651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13652$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013653if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013654 $as_echo_n "(cached) " >&6
13655else
13656 if test -n "$AS"; then
13657 ac_cv_prog_AS="$AS" # Let the user override the test.
13658else
13659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660for as_dir in $PATH
13661do
13662 IFS=$as_save_IFS
13663 test -z "$as_dir" && as_dir=.
13664 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013666 ac_cv_prog_AS="${ac_tool_prefix}as"
13667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13668 break 2
13669 fi
13670done
13671 done
13672IFS=$as_save_IFS
13673
13674fi
13675fi
13676AS=$ac_cv_prog_AS
13677if test -n "$AS"; then
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13679$as_echo "$AS" >&6; }
13680else
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13682$as_echo "no" >&6; }
13683fi
13684
13685
13686fi
13687if test -z "$ac_cv_prog_AS"; then
13688 ac_ct_AS=$AS
13689 # Extract the first word of "as", so it can be a program name with args.
13690set dummy as; ac_word=$2
13691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13692$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013693if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013694 $as_echo_n "(cached) " >&6
13695else
13696 if test -n "$ac_ct_AS"; then
13697 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13698else
13699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13700for as_dir in $PATH
13701do
13702 IFS=$as_save_IFS
13703 test -z "$as_dir" && as_dir=.
13704 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013706 ac_cv_prog_ac_ct_AS="as"
13707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13708 break 2
13709 fi
13710done
13711 done
13712IFS=$as_save_IFS
13713
13714fi
13715fi
13716ac_ct_AS=$ac_cv_prog_ac_ct_AS
13717if test -n "$ac_ct_AS"; then
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13719$as_echo "$ac_ct_AS" >&6; }
13720else
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13722$as_echo "no" >&6; }
13723fi
13724
13725 if test "x$ac_ct_AS" = x; then
13726 AS="false"
13727 else
13728 case $cross_compiling:$ac_tool_warned in
13729yes:)
13730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13732ac_tool_warned=yes ;;
13733esac
13734 AS=$ac_ct_AS
13735 fi
13736else
13737 AS="$ac_cv_prog_AS"
13738fi
13739
13740 if test -n "$ac_tool_prefix"; then
13741 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13742set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13744$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013745if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013746 $as_echo_n "(cached) " >&6
13747else
13748 if test -n "$DLLTOOL"; then
13749 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13750else
13751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752for as_dir in $PATH
13753do
13754 IFS=$as_save_IFS
13755 test -z "$as_dir" && as_dir=.
13756 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013758 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13760 break 2
13761 fi
13762done
13763 done
13764IFS=$as_save_IFS
13765
13766fi
13767fi
13768DLLTOOL=$ac_cv_prog_DLLTOOL
13769if test -n "$DLLTOOL"; then
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13771$as_echo "$DLLTOOL" >&6; }
13772else
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774$as_echo "no" >&6; }
13775fi
13776
13777
13778fi
13779if test -z "$ac_cv_prog_DLLTOOL"; then
13780 ac_ct_DLLTOOL=$DLLTOOL
13781 # Extract the first word of "dlltool", so it can be a program name with args.
13782set dummy dlltool; ac_word=$2
13783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13784$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013785if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013786 $as_echo_n "(cached) " >&6
13787else
13788 if test -n "$ac_ct_DLLTOOL"; then
13789 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13790else
13791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13792for as_dir in $PATH
13793do
13794 IFS=$as_save_IFS
13795 test -z "$as_dir" && as_dir=.
13796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013798 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13800 break 2
13801 fi
13802done
13803 done
13804IFS=$as_save_IFS
13805
13806fi
13807fi
13808ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13809if test -n "$ac_ct_DLLTOOL"; then
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13811$as_echo "$ac_ct_DLLTOOL" >&6; }
13812else
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13814$as_echo "no" >&6; }
13815fi
13816
13817 if test "x$ac_ct_DLLTOOL" = x; then
13818 DLLTOOL="false"
13819 else
13820 case $cross_compiling:$ac_tool_warned in
13821yes:)
13822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13824ac_tool_warned=yes ;;
13825esac
13826 DLLTOOL=$ac_ct_DLLTOOL
13827 fi
13828else
13829 DLLTOOL="$ac_cv_prog_DLLTOOL"
13830fi
13831
13832 if test -n "$ac_tool_prefix"; then
13833 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13834set dummy ${ac_tool_prefix}objdump; ac_word=$2
13835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13836$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013837if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013838 $as_echo_n "(cached) " >&6
13839else
13840 if test -n "$OBJDUMP"; then
13841 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13842else
13843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13844for as_dir in $PATH
13845do
13846 IFS=$as_save_IFS
13847 test -z "$as_dir" && as_dir=.
13848 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013850 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13852 break 2
13853 fi
13854done
13855 done
13856IFS=$as_save_IFS
13857
13858fi
13859fi
13860OBJDUMP=$ac_cv_prog_OBJDUMP
13861if test -n "$OBJDUMP"; then
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13863$as_echo "$OBJDUMP" >&6; }
13864else
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13866$as_echo "no" >&6; }
13867fi
13868
13869
13870fi
13871if test -z "$ac_cv_prog_OBJDUMP"; then
13872 ac_ct_OBJDUMP=$OBJDUMP
13873 # Extract the first word of "objdump", so it can be a program name with args.
13874set dummy objdump; ac_word=$2
13875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13876$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013877if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013878 $as_echo_n "(cached) " >&6
13879else
13880 if test -n "$ac_ct_OBJDUMP"; then
13881 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13882else
13883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13884for as_dir in $PATH
13885do
13886 IFS=$as_save_IFS
13887 test -z "$as_dir" && as_dir=.
13888 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013890 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13892 break 2
13893 fi
13894done
13895 done
13896IFS=$as_save_IFS
13897
13898fi
13899fi
13900ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13901if test -n "$ac_ct_OBJDUMP"; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13903$as_echo "$ac_ct_OBJDUMP" >&6; }
13904else
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13906$as_echo "no" >&6; }
13907fi
13908
13909 if test "x$ac_ct_OBJDUMP" = x; then
13910 OBJDUMP="false"
13911 else
13912 case $cross_compiling:$ac_tool_warned in
13913yes:)
13914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13916ac_tool_warned=yes ;;
13917esac
13918 OBJDUMP=$ac_ct_OBJDUMP
13919 fi
13920else
13921 OBJDUMP="$ac_cv_prog_OBJDUMP"
13922fi
13923
13924 ;;
13925esac
13926
13927test -z "$AS" && AS=as
13928
13929
13930
13931
13932
13933test -z "$DLLTOOL" && DLLTOOL=dlltool
13934
13935
13936
13937
13938
13939test -z "$OBJDUMP" && OBJDUMP=objdump
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949 # Check whether --enable-shared was given.
13950if test "${enable_shared+set}" = set; then :
13951 enableval=$enable_shared; p=${PACKAGE-default}
13952 case $enableval in
13953 yes) enable_shared=yes ;;
13954 no) enable_shared=no ;;
13955 *)
13956 enable_shared=no
13957 # Look at the argument we got. We use all the common list separators.
13958 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13959 for pkg in $enableval; do
13960 IFS="$lt_save_ifs"
13961 if test "X$pkg" = "X$p"; then
13962 enable_shared=yes
13963 fi
13964 done
13965 IFS="$lt_save_ifs"
13966 ;;
13967 esac
13968else
13969 enable_shared=yes
13970fi
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980 # Check whether --enable-static was given.
13981if test "${enable_static+set}" = set; then :
13982 enableval=$enable_static; p=${PACKAGE-default}
13983 case $enableval in
13984 yes) enable_static=yes ;;
13985 no) enable_static=no ;;
13986 *)
13987 enable_static=no
13988 # Look at the argument we got. We use all the common list separators.
13989 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13990 for pkg in $enableval; do
13991 IFS="$lt_save_ifs"
13992 if test "X$pkg" = "X$p"; then
13993 enable_static=yes
13994 fi
13995 done
13996 IFS="$lt_save_ifs"
13997 ;;
13998 esac
13999else
14000 enable_static=yes
14001fi
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012# Check whether --with-pic was given.
14013if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014014 withval=$with_pic; lt_p=${PACKAGE-default}
14015 case $withval in
14016 yes|no) pic_mode=$withval ;;
14017 *)
14018 pic_mode=default
14019 # Look at the argument we got. We use all the common list separators.
14020 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14021 for lt_pkg in $withval; do
14022 IFS="$lt_save_ifs"
14023 if test "X$lt_pkg" = "X$lt_p"; then
14024 pic_mode=yes
14025 fi
14026 done
14027 IFS="$lt_save_ifs"
14028 ;;
14029 esac
cristy73bd4a52010-10-05 11:24:23 +000014030else
14031 pic_mode=default
14032fi
14033
14034
14035test -z "$pic_mode" && pic_mode=default
14036
14037
14038
14039
14040
14041
14042
14043 # Check whether --enable-fast-install was given.
14044if test "${enable_fast_install+set}" = set; then :
14045 enableval=$enable_fast_install; p=${PACKAGE-default}
14046 case $enableval in
14047 yes) enable_fast_install=yes ;;
14048 no) enable_fast_install=no ;;
14049 *)
14050 enable_fast_install=no
14051 # Look at the argument we got. We use all the common list separators.
14052 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14053 for pkg in $enableval; do
14054 IFS="$lt_save_ifs"
14055 if test "X$pkg" = "X$p"; then
14056 enable_fast_install=yes
14057 fi
14058 done
14059 IFS="$lt_save_ifs"
14060 ;;
14061 esac
14062else
14063 enable_fast_install=yes
14064fi
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076# This can be used to rebuild libtool when needed
14077LIBTOOL_DEPS="$ltmain"
14078
14079# Always use our own libtool.
14080LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
cristy0c60a692010-11-04 01:09:47 +000014106
cristy99bd5232011-12-07 14:38:20 +000014107
14108
14109
14110
cristy73bd4a52010-10-05 11:24:23 +000014111test -z "$LN_S" && LN_S="ln -s"
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126if test -n "${ZSH_VERSION+set}" ; then
14127 setopt NO_GLOB_SUBST
14128fi
14129
14130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14131$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014132if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014133 $as_echo_n "(cached) " >&6
14134else
14135 rm -f .libs 2>/dev/null
14136mkdir .libs 2>/dev/null
14137if test -d .libs; then
14138 lt_cv_objdir=.libs
14139else
14140 # MS-DOS does not allow filenames that begin with a dot.
14141 lt_cv_objdir=_libs
14142fi
14143rmdir .libs 2>/dev/null
14144fi
14145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14146$as_echo "$lt_cv_objdir" >&6; }
14147objdir=$lt_cv_objdir
14148
14149
14150
14151
14152
14153cat >>confdefs.h <<_ACEOF
14154#define LT_OBJDIR "$lt_cv_objdir/"
14155_ACEOF
14156
14157
14158
14159
cristy73bd4a52010-10-05 11:24:23 +000014160case $host_os in
14161aix3*)
14162 # AIX sometimes has problems with the GCC collect2 program. For some
14163 # reason, if we set the COLLECT_NAMES environment variable, the problems
14164 # vanish in a puff of smoke.
14165 if test "X${COLLECT_NAMES+set}" != Xset; then
14166 COLLECT_NAMES=
14167 export COLLECT_NAMES
14168 fi
14169 ;;
14170esac
14171
cristy73bd4a52010-10-05 11:24:23 +000014172# Global variables:
14173ofile=libtool
14174can_build_shared=yes
14175
14176# All known linkers require a `.a' archive for static linking (except MSVC,
14177# which needs '.lib').
14178libext=a
14179
14180with_gnu_ld="$lt_cv_prog_gnu_ld"
14181
14182old_CC="$CC"
14183old_CFLAGS="$CFLAGS"
14184
14185# Set sane defaults for various variables
14186test -z "$CC" && CC=cc
14187test -z "$LTCC" && LTCC=$CC
14188test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14189test -z "$LD" && LD=ld
14190test -z "$ac_objext" && ac_objext=o
14191
14192for cc_temp in $compiler""; do
14193 case $cc_temp in
14194 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14195 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14196 \-*) ;;
14197 *) break;;
14198 esac
14199done
cristy0c60a692010-11-04 01:09:47 +000014200cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014201
14202
14203# Only perform the check for file, if the check method requires it
14204test -z "$MAGIC_CMD" && MAGIC_CMD=file
14205case $deplibs_check_method in
14206file_magic*)
14207 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14209$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014210if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014211 $as_echo_n "(cached) " >&6
14212else
14213 case $MAGIC_CMD in
14214[\\/*] | ?:[\\/]*)
14215 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14216 ;;
14217*)
14218 lt_save_MAGIC_CMD="$MAGIC_CMD"
14219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14220 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14221 for ac_dir in $ac_dummy; do
14222 IFS="$lt_save_ifs"
14223 test -z "$ac_dir" && ac_dir=.
14224 if test -f $ac_dir/${ac_tool_prefix}file; then
14225 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14226 if test -n "$file_magic_test_file"; then
14227 case $deplibs_check_method in
14228 "file_magic "*)
14229 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14231 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14232 $EGREP "$file_magic_regex" > /dev/null; then
14233 :
14234 else
14235 cat <<_LT_EOF 1>&2
14236
14237*** Warning: the command libtool uses to detect shared libraries,
14238*** $file_magic_cmd, produces output that libtool cannot recognize.
14239*** The result is that libtool may fail to recognize shared libraries
14240*** as such. This will affect the creation of libtool libraries that
14241*** depend on shared libraries, but programs linked with such libtool
14242*** libraries will work regardless of this problem. Nevertheless, you
14243*** may want to report the problem to your system manager and/or to
14244*** bug-libtool@gnu.org
14245
14246_LT_EOF
14247 fi ;;
14248 esac
14249 fi
14250 break
14251 fi
14252 done
14253 IFS="$lt_save_ifs"
14254 MAGIC_CMD="$lt_save_MAGIC_CMD"
14255 ;;
14256esac
14257fi
14258
14259MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14260if test -n "$MAGIC_CMD"; then
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14262$as_echo "$MAGIC_CMD" >&6; }
14263else
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14265$as_echo "no" >&6; }
14266fi
14267
14268
14269
14270
14271
14272if test -z "$lt_cv_path_MAGIC_CMD"; then
14273 if test -n "$ac_tool_prefix"; then
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14275$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014276if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014277 $as_echo_n "(cached) " >&6
14278else
14279 case $MAGIC_CMD in
14280[\\/*] | ?:[\\/]*)
14281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14282 ;;
14283*)
14284 lt_save_MAGIC_CMD="$MAGIC_CMD"
14285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14286 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14287 for ac_dir in $ac_dummy; do
14288 IFS="$lt_save_ifs"
14289 test -z "$ac_dir" && ac_dir=.
14290 if test -f $ac_dir/file; then
14291 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14292 if test -n "$file_magic_test_file"; then
14293 case $deplibs_check_method in
14294 "file_magic "*)
14295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14298 $EGREP "$file_magic_regex" > /dev/null; then
14299 :
14300 else
14301 cat <<_LT_EOF 1>&2
14302
14303*** Warning: the command libtool uses to detect shared libraries,
14304*** $file_magic_cmd, produces output that libtool cannot recognize.
14305*** The result is that libtool may fail to recognize shared libraries
14306*** as such. This will affect the creation of libtool libraries that
14307*** depend on shared libraries, but programs linked with such libtool
14308*** libraries will work regardless of this problem. Nevertheless, you
14309*** may want to report the problem to your system manager and/or to
14310*** bug-libtool@gnu.org
14311
14312_LT_EOF
14313 fi ;;
14314 esac
14315 fi
14316 break
14317 fi
14318 done
14319 IFS="$lt_save_ifs"
14320 MAGIC_CMD="$lt_save_MAGIC_CMD"
14321 ;;
14322esac
14323fi
14324
14325MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14326if test -n "$MAGIC_CMD"; then
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14328$as_echo "$MAGIC_CMD" >&6; }
14329else
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14331$as_echo "no" >&6; }
14332fi
14333
14334
14335 else
14336 MAGIC_CMD=:
14337 fi
14338fi
14339
14340 fi
14341 ;;
14342esac
14343
14344# Use C for the default configuration in the libtool script
14345
14346lt_save_CC="$CC"
14347ac_ext=c
14348ac_cpp='$CPP $CPPFLAGS'
14349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14351ac_compiler_gnu=$ac_cv_c_compiler_gnu
14352
14353
14354# Source file extension for C test sources.
14355ac_ext=c
14356
14357# Object file extension for compiled C test sources.
14358objext=o
14359objext=$objext
14360
14361# Code to be used in simple compile tests
14362lt_simple_compile_test_code="int some_variable = 0;"
14363
14364# Code to be used in simple link tests
14365lt_simple_link_test_code='int main(){return(0);}'
14366
14367
14368
14369
14370
14371
14372
14373# If no C compiler was specified, use CC.
14374LTCC=${LTCC-"$CC"}
14375
14376# If no C compiler flags were specified, use CFLAGS.
14377LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14378
14379# Allow CC to be a program name with arguments.
14380compiler=$CC
14381
14382# Save the default compiler, since it gets overwritten when the other
14383# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14384compiler_DEFAULT=$CC
14385
14386# save warnings/boilerplate of simple test code
14387ac_outfile=conftest.$ac_objext
14388echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14389eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14390_lt_compiler_boilerplate=`cat conftest.err`
14391$RM conftest*
14392
14393ac_outfile=conftest.$ac_objext
14394echo "$lt_simple_link_test_code" >conftest.$ac_ext
14395eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14396_lt_linker_boilerplate=`cat conftest.err`
14397$RM -r conftest*
14398
14399
14400## CAVEAT EMPTOR:
14401## There is no encapsulation within the following macros, do not change
14402## the running order or otherwise move them around unless you know exactly
14403## what you are doing...
14404if test -n "$compiler"; then
14405
14406lt_prog_compiler_no_builtin_flag=
14407
14408if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014409 case $cc_basename in
14410 nvcc*)
14411 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14412 *)
14413 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14414 esac
cristy73bd4a52010-10-05 11:24:23 +000014415
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14417$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014418if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014419 $as_echo_n "(cached) " >&6
14420else
14421 lt_cv_prog_compiler_rtti_exceptions=no
14422 ac_outfile=conftest.$ac_objext
14423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14424 lt_compiler_flag="-fno-rtti -fno-exceptions"
14425 # Insert the option either (1) after the last *FLAGS variable, or
14426 # (2) before a word containing "conftest.", or (3) at the end.
14427 # Note that $ac_compile itself does not contain backslashes and begins
14428 # with a dollar sign (not a hyphen), so the echo should work correctly.
14429 # The option is referenced via a variable to avoid confusing sed.
14430 lt_compile=`echo "$ac_compile" | $SED \
14431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14433 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014435 (eval "$lt_compile" 2>conftest.err)
14436 ac_status=$?
14437 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014439 if (exit $ac_status) && test -s "$ac_outfile"; then
14440 # The compiler can only warn and ignore the option if not recognized
14441 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14445 lt_cv_prog_compiler_rtti_exceptions=yes
14446 fi
14447 fi
14448 $RM conftest*
14449
14450fi
14451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14452$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14453
14454if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14455 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14456else
14457 :
14458fi
14459
14460fi
14461
14462
14463
14464
14465
14466
14467 lt_prog_compiler_wl=
14468lt_prog_compiler_pic=
14469lt_prog_compiler_static=
14470
cristy73bd4a52010-10-05 11:24:23 +000014471
14472 if test "$GCC" = yes; then
14473 lt_prog_compiler_wl='-Wl,'
14474 lt_prog_compiler_static='-static'
14475
14476 case $host_os in
14477 aix*)
14478 # All AIX code is PIC.
14479 if test "$host_cpu" = ia64; then
14480 # AIX 5 now supports IA64 processor
14481 lt_prog_compiler_static='-Bstatic'
14482 fi
14483 ;;
14484
14485 amigaos*)
14486 case $host_cpu in
14487 powerpc)
14488 # see comment about AmigaOS4 .so support
14489 lt_prog_compiler_pic='-fPIC'
14490 ;;
14491 m68k)
14492 # FIXME: we need at least 68020 code to build shared libraries, but
14493 # adding the `-m68020' flag to GCC prevents building anything better,
14494 # like `-m68040'.
14495 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14496 ;;
14497 esac
14498 ;;
14499
14500 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14501 # PIC is the default for these OSes.
14502 ;;
14503
14504 mingw* | cygwin* | pw32* | os2* | cegcc*)
14505 # This hack is so that the source file can tell whether it is being
14506 # built for inclusion in a dll (and should export symbols for example).
14507 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14508 # (--disable-auto-import) libraries
14509 lt_prog_compiler_pic='-DDLL_EXPORT'
14510 ;;
14511
14512 darwin* | rhapsody*)
14513 # PIC is the default on this platform
14514 # Common symbols not allowed in MH_DYLIB files
14515 lt_prog_compiler_pic='-fno-common'
14516 ;;
14517
cristy0c60a692010-11-04 01:09:47 +000014518 haiku*)
14519 # PIC is the default for Haiku.
14520 # The "-static" flag exists, but is broken.
14521 lt_prog_compiler_static=
14522 ;;
14523
cristy73bd4a52010-10-05 11:24:23 +000014524 hpux*)
14525 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14526 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14527 # sets the default TLS model and affects inlining.
14528 case $host_cpu in
14529 hppa*64*)
14530 # +Z the default
14531 ;;
14532 *)
14533 lt_prog_compiler_pic='-fPIC'
14534 ;;
14535 esac
14536 ;;
14537
14538 interix[3-9]*)
14539 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14540 # Instead, we relocate shared libraries at runtime.
14541 ;;
14542
14543 msdosdjgpp*)
14544 # Just because we use GCC doesn't mean we suddenly get shared libraries
14545 # on systems that don't support them.
14546 lt_prog_compiler_can_build_shared=no
14547 enable_shared=no
14548 ;;
14549
14550 *nto* | *qnx*)
14551 # QNX uses GNU C++, but need to define -shared option too, otherwise
14552 # it will coredump.
14553 lt_prog_compiler_pic='-fPIC -shared'
14554 ;;
14555
14556 sysv4*MP*)
14557 if test -d /usr/nec; then
14558 lt_prog_compiler_pic=-Kconform_pic
14559 fi
14560 ;;
14561
14562 *)
14563 lt_prog_compiler_pic='-fPIC'
14564 ;;
14565 esac
cristy0c60a692010-11-04 01:09:47 +000014566
14567 case $cc_basename in
14568 nvcc*) # Cuda Compiler Driver 2.2
14569 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014570 if test -n "$lt_prog_compiler_pic"; then
14571 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14572 fi
cristy0c60a692010-11-04 01:09:47 +000014573 ;;
14574 esac
cristy73bd4a52010-10-05 11:24:23 +000014575 else
14576 # PORTME Check for flag to pass linker flags through the system compiler.
14577 case $host_os in
14578 aix*)
14579 lt_prog_compiler_wl='-Wl,'
14580 if test "$host_cpu" = ia64; then
14581 # AIX 5 now supports IA64 processor
14582 lt_prog_compiler_static='-Bstatic'
14583 else
14584 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14585 fi
14586 ;;
14587
14588 mingw* | cygwin* | pw32* | os2* | cegcc*)
14589 # This hack is so that the source file can tell whether it is being
14590 # built for inclusion in a dll (and should export symbols for example).
14591 lt_prog_compiler_pic='-DDLL_EXPORT'
14592 ;;
14593
14594 hpux9* | hpux10* | hpux11*)
14595 lt_prog_compiler_wl='-Wl,'
14596 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14597 # not for PA HP-UX.
14598 case $host_cpu in
14599 hppa*64*|ia64*)
14600 # +Z the default
14601 ;;
14602 *)
14603 lt_prog_compiler_pic='+Z'
14604 ;;
14605 esac
14606 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14607 lt_prog_compiler_static='${wl}-a ${wl}archive'
14608 ;;
14609
14610 irix5* | irix6* | nonstopux*)
14611 lt_prog_compiler_wl='-Wl,'
14612 # PIC (with -KPIC) is the default.
14613 lt_prog_compiler_static='-non_shared'
14614 ;;
14615
cristy0c60a692010-11-04 01:09:47 +000014616 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014617 case $cc_basename in
14618 # old Intel for x86_64 which still supported -KPIC.
14619 ecc*)
14620 lt_prog_compiler_wl='-Wl,'
14621 lt_prog_compiler_pic='-KPIC'
14622 lt_prog_compiler_static='-static'
14623 ;;
14624 # icc used to be incompatible with GCC.
14625 # ICC 10 doesn't accept -KPIC any more.
14626 icc* | ifort*)
14627 lt_prog_compiler_wl='-Wl,'
14628 lt_prog_compiler_pic='-fPIC'
14629 lt_prog_compiler_static='-static'
14630 ;;
14631 # Lahey Fortran 8.1.
14632 lf95*)
14633 lt_prog_compiler_wl='-Wl,'
14634 lt_prog_compiler_pic='--shared'
14635 lt_prog_compiler_static='--static'
14636 ;;
cristyda16f162011-02-19 23:52:17 +000014637 nagfor*)
14638 # NAG Fortran compiler
14639 lt_prog_compiler_wl='-Wl,-Wl,,'
14640 lt_prog_compiler_pic='-PIC'
14641 lt_prog_compiler_static='-Bstatic'
14642 ;;
cristy0c60a692010-11-04 01:09:47 +000014643 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014644 # Portland Group compilers (*not* the Pentium gcc compiler,
14645 # which looks to be a dead project)
14646 lt_prog_compiler_wl='-Wl,'
14647 lt_prog_compiler_pic='-fpic'
14648 lt_prog_compiler_static='-Bstatic'
14649 ;;
14650 ccc*)
14651 lt_prog_compiler_wl='-Wl,'
14652 # All Alpha code is PIC.
14653 lt_prog_compiler_static='-non_shared'
14654 ;;
cristy0c60a692010-11-04 01:09:47 +000014655 xl* | bgxl* | bgf* | mpixl*)
14656 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014657 lt_prog_compiler_wl='-Wl,'
14658 lt_prog_compiler_pic='-qpic'
14659 lt_prog_compiler_static='-qstaticlink'
14660 ;;
14661 *)
14662 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014663 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014664 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14665 lt_prog_compiler_pic='-KPIC'
14666 lt_prog_compiler_static='-Bstatic'
14667 lt_prog_compiler_wl=''
14668 ;;
cristy99bd5232011-12-07 14:38:20 +000014669 *Sun\ F* | *Sun*Fortran*)
14670 lt_prog_compiler_pic='-KPIC'
14671 lt_prog_compiler_static='-Bstatic'
14672 lt_prog_compiler_wl='-Qoption ld '
14673 ;;
cristy73bd4a52010-10-05 11:24:23 +000014674 *Sun\ C*)
14675 # Sun C 5.9
14676 lt_prog_compiler_pic='-KPIC'
14677 lt_prog_compiler_static='-Bstatic'
14678 lt_prog_compiler_wl='-Wl,'
14679 ;;
cristy99bd5232011-12-07 14:38:20 +000014680 *Intel*\ [CF]*Compiler*)
14681 lt_prog_compiler_wl='-Wl,'
14682 lt_prog_compiler_pic='-fPIC'
14683 lt_prog_compiler_static='-static'
14684 ;;
14685 *Portland\ Group*)
14686 lt_prog_compiler_wl='-Wl,'
14687 lt_prog_compiler_pic='-fpic'
14688 lt_prog_compiler_static='-Bstatic'
14689 ;;
cristy73bd4a52010-10-05 11:24:23 +000014690 esac
14691 ;;
14692 esac
14693 ;;
14694
14695 newsos6)
14696 lt_prog_compiler_pic='-KPIC'
14697 lt_prog_compiler_static='-Bstatic'
14698 ;;
14699
14700 *nto* | *qnx*)
14701 # QNX uses GNU C++, but need to define -shared option too, otherwise
14702 # it will coredump.
14703 lt_prog_compiler_pic='-fPIC -shared'
14704 ;;
14705
14706 osf3* | osf4* | osf5*)
14707 lt_prog_compiler_wl='-Wl,'
14708 # All OSF/1 code is PIC.
14709 lt_prog_compiler_static='-non_shared'
14710 ;;
14711
14712 rdos*)
14713 lt_prog_compiler_static='-non_shared'
14714 ;;
14715
14716 solaris*)
14717 lt_prog_compiler_pic='-KPIC'
14718 lt_prog_compiler_static='-Bstatic'
14719 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014720 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014721 lt_prog_compiler_wl='-Qoption ld ';;
14722 *)
14723 lt_prog_compiler_wl='-Wl,';;
14724 esac
14725 ;;
14726
14727 sunos4*)
14728 lt_prog_compiler_wl='-Qoption ld '
14729 lt_prog_compiler_pic='-PIC'
14730 lt_prog_compiler_static='-Bstatic'
14731 ;;
14732
14733 sysv4 | sysv4.2uw2* | sysv4.3*)
14734 lt_prog_compiler_wl='-Wl,'
14735 lt_prog_compiler_pic='-KPIC'
14736 lt_prog_compiler_static='-Bstatic'
14737 ;;
14738
14739 sysv4*MP*)
14740 if test -d /usr/nec ;then
14741 lt_prog_compiler_pic='-Kconform_pic'
14742 lt_prog_compiler_static='-Bstatic'
14743 fi
14744 ;;
14745
14746 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14747 lt_prog_compiler_wl='-Wl,'
14748 lt_prog_compiler_pic='-KPIC'
14749 lt_prog_compiler_static='-Bstatic'
14750 ;;
14751
14752 unicos*)
14753 lt_prog_compiler_wl='-Wl,'
14754 lt_prog_compiler_can_build_shared=no
14755 ;;
14756
14757 uts4*)
14758 lt_prog_compiler_pic='-pic'
14759 lt_prog_compiler_static='-Bstatic'
14760 ;;
14761
14762 *)
14763 lt_prog_compiler_can_build_shared=no
14764 ;;
14765 esac
14766 fi
14767
14768case $host_os in
14769 # For platforms which do not support PIC, -DPIC is meaningless:
14770 *djgpp*)
14771 lt_prog_compiler_pic=
14772 ;;
14773 *)
14774 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14775 ;;
14776esac
cristy73bd4a52010-10-05 11:24:23 +000014777
cristyda16f162011-02-19 23:52:17 +000014778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14779$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14780if ${lt_cv_prog_compiler_pic+:} false; then :
14781 $as_echo_n "(cached) " >&6
14782else
14783 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14784fi
14785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14786$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14787lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014788
14789#
14790# Check to make sure the PIC flag actually works.
14791#
14792if test -n "$lt_prog_compiler_pic"; then
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14794$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014795if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014796 $as_echo_n "(cached) " >&6
14797else
14798 lt_cv_prog_compiler_pic_works=no
14799 ac_outfile=conftest.$ac_objext
14800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14801 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14802 # Insert the option either (1) after the last *FLAGS variable, or
14803 # (2) before a word containing "conftest.", or (3) at the end.
14804 # Note that $ac_compile itself does not contain backslashes and begins
14805 # with a dollar sign (not a hyphen), so the echo should work correctly.
14806 # The option is referenced via a variable to avoid confusing sed.
14807 lt_compile=`echo "$ac_compile" | $SED \
14808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14810 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014811 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014812 (eval "$lt_compile" 2>conftest.err)
14813 ac_status=$?
14814 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014816 if (exit $ac_status) && test -s "$ac_outfile"; then
14817 # The compiler can only warn and ignore the option if not recognized
14818 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14821 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14822 lt_cv_prog_compiler_pic_works=yes
14823 fi
14824 fi
14825 $RM conftest*
14826
14827fi
14828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14829$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14830
14831if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14832 case $lt_prog_compiler_pic in
14833 "" | " "*) ;;
14834 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14835 esac
14836else
14837 lt_prog_compiler_pic=
14838 lt_prog_compiler_can_build_shared=no
14839fi
14840
14841fi
14842
14843
14844
14845
14846
14847
cristyda16f162011-02-19 23:52:17 +000014848
14849
14850
14851
14852
cristy73bd4a52010-10-05 11:24:23 +000014853#
14854# Check to make sure the static flag actually works.
14855#
14856wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14858$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014859if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014860 $as_echo_n "(cached) " >&6
14861else
14862 lt_cv_prog_compiler_static_works=no
14863 save_LDFLAGS="$LDFLAGS"
14864 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14865 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14867 # The linker can only warn and ignore the option if not recognized
14868 # So say no if there are warnings
14869 if test -s conftest.err; then
14870 # Append any errors to the config.log.
14871 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014872 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14874 if diff conftest.exp conftest.er2 >/dev/null; then
14875 lt_cv_prog_compiler_static_works=yes
14876 fi
14877 else
14878 lt_cv_prog_compiler_static_works=yes
14879 fi
14880 fi
14881 $RM -r conftest*
14882 LDFLAGS="$save_LDFLAGS"
14883
14884fi
14885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14886$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14887
14888if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14889 :
14890else
14891 lt_prog_compiler_static=
14892fi
14893
14894
14895
14896
14897
14898
14899
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14901$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014902if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014903 $as_echo_n "(cached) " >&6
14904else
14905 lt_cv_prog_compiler_c_o=no
14906 $RM -r conftest 2>/dev/null
14907 mkdir conftest
14908 cd conftest
14909 mkdir out
14910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14911
14912 lt_compiler_flag="-o out/conftest2.$ac_objext"
14913 # Insert the option either (1) after the last *FLAGS variable, or
14914 # (2) before a word containing "conftest.", or (3) at the end.
14915 # Note that $ac_compile itself does not contain backslashes and begins
14916 # with a dollar sign (not a hyphen), so the echo should work correctly.
14917 lt_compile=`echo "$ac_compile" | $SED \
14918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14920 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014922 (eval "$lt_compile" 2>out/conftest.err)
14923 ac_status=$?
14924 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014926 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14927 then
14928 # The compiler can only warn and ignore the option if not recognized
14929 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14933 lt_cv_prog_compiler_c_o=yes
14934 fi
14935 fi
14936 chmod u+w . 2>&5
14937 $RM conftest*
14938 # SGI C++ compiler will create directory out/ii_files/ for
14939 # template instantiation
14940 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14941 $RM out/* && rmdir out
14942 cd ..
14943 $RM -r conftest
14944 $RM conftest*
14945
14946fi
14947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14948$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14949
14950
14951
14952
14953
14954
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14956$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014957if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014958 $as_echo_n "(cached) " >&6
14959else
14960 lt_cv_prog_compiler_c_o=no
14961 $RM -r conftest 2>/dev/null
14962 mkdir conftest
14963 cd conftest
14964 mkdir out
14965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14966
14967 lt_compiler_flag="-o out/conftest2.$ac_objext"
14968 # Insert the option either (1) after the last *FLAGS variable, or
14969 # (2) before a word containing "conftest.", or (3) at the end.
14970 # Note that $ac_compile itself does not contain backslashes and begins
14971 # with a dollar sign (not a hyphen), so the echo should work correctly.
14972 lt_compile=`echo "$ac_compile" | $SED \
14973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14975 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014976 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014977 (eval "$lt_compile" 2>out/conftest.err)
14978 ac_status=$?
14979 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014981 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14982 then
14983 # The compiler can only warn and ignore the option if not recognized
14984 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014985 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014986 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14987 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14988 lt_cv_prog_compiler_c_o=yes
14989 fi
14990 fi
14991 chmod u+w . 2>&5
14992 $RM conftest*
14993 # SGI C++ compiler will create directory out/ii_files/ for
14994 # template instantiation
14995 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14996 $RM out/* && rmdir out
14997 cd ..
14998 $RM -r conftest
14999 $RM conftest*
15000
15001fi
15002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15003$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15004
15005
15006
15007
15008hard_links="nottested"
15009if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15010 # do not overwrite the value of need_locks provided by the user
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15012$as_echo_n "checking if we can lock with hard links... " >&6; }
15013 hard_links=yes
15014 $RM conftest*
15015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15016 touch conftest.a
15017 ln conftest.a conftest.b 2>&5 || hard_links=no
15018 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15020$as_echo "$hard_links" >&6; }
15021 if test "$hard_links" = no; then
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15023$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15024 need_locks=warn
15025 fi
15026else
15027 need_locks=no
15028fi
15029
15030
15031
15032
15033
15034
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15036$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15037
15038 runpath_var=
15039 allow_undefined_flag=
15040 always_export_symbols=no
15041 archive_cmds=
15042 archive_expsym_cmds=
15043 compiler_needs_object=no
15044 enable_shared_with_static_runtimes=no
15045 export_dynamic_flag_spec=
15046 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15047 hardcode_automatic=no
15048 hardcode_direct=no
15049 hardcode_direct_absolute=no
15050 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015051 hardcode_libdir_separator=
15052 hardcode_minus_L=no
15053 hardcode_shlibpath_var=unsupported
15054 inherit_rpath=no
15055 link_all_deplibs=unknown
15056 module_cmds=
15057 module_expsym_cmds=
15058 old_archive_from_new_cmds=
15059 old_archive_from_expsyms_cmds=
15060 thread_safe_flag_spec=
15061 whole_archive_flag_spec=
15062 # include_expsyms should be a list of space-separated symbols to be *always*
15063 # included in the symbol list
15064 include_expsyms=
15065 # exclude_expsyms can be an extended regexp of symbols to exclude
15066 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15067 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15068 # as well as any symbol that contains `d'.
15069 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15070 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15071 # platforms (ab)use it in PIC code, but their linkers get confused if
15072 # the symbol is explicitly referenced. Since portable code cannot
15073 # rely on this symbol name, it's probably fine to never include it in
15074 # preloaded symbol tables.
15075 # Exclude shared library initialization/finalization symbols.
15076 extract_expsyms_cmds=
15077
15078 case $host_os in
15079 cygwin* | mingw* | pw32* | cegcc*)
15080 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15081 # When not using gcc, we currently assume that we are using
15082 # Microsoft Visual C++.
15083 if test "$GCC" != yes; then
15084 with_gnu_ld=no
15085 fi
15086 ;;
15087 interix*)
15088 # we just hope/assume this is gcc and not c89 (= MSVC++)
15089 with_gnu_ld=yes
15090 ;;
15091 openbsd*)
15092 with_gnu_ld=no
15093 ;;
15094 esac
15095
15096 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015097
15098 # On some targets, GNU ld is compatible enough with the native linker
15099 # that we're better off using the native interface for both.
15100 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015101 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015102 case $host_os in
15103 aix*)
15104 # The AIX port of GNU ld has always aspired to compatibility
15105 # with the native linker. However, as the warning in the GNU ld
15106 # block says, versions before 2.19.5* couldn't really create working
15107 # shared libraries, regardless of the interface used.
15108 case `$LD -v 2>&1` in
15109 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15110 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15111 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15112 *)
15113 lt_use_gnu_ld_interface=yes
15114 ;;
15115 esac
15116 ;;
15117 *)
15118 lt_use_gnu_ld_interface=yes
15119 ;;
15120 esac
15121 fi
15122
15123 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015124 # If archive_cmds runs LD, not CC, wlarc should be empty
15125 wlarc='${wl}'
15126
15127 # Set some defaults for GNU ld with shared library support. These
15128 # are reset later if shared libraries are not supported. Putting them
15129 # here allows them to be overridden if necessary.
15130 runpath_var=LD_RUN_PATH
15131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15132 export_dynamic_flag_spec='${wl}--export-dynamic'
15133 # ancient GNU ld didn't support --whole-archive et. al.
15134 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15135 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15136 else
15137 whole_archive_flag_spec=
15138 fi
15139 supports_anon_versioning=no
15140 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015141 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015142 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15143 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15144 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15145 *\ 2.11.*) ;; # other 2.11 versions
15146 *) supports_anon_versioning=yes ;;
15147 esac
15148
15149 # See if GNU ld supports shared libraries.
15150 case $host_os in
15151 aix[3-9]*)
15152 # On AIX/PPC, the GNU linker is very broken
15153 if test "$host_cpu" != ia64; then
15154 ld_shlibs=no
15155 cat <<_LT_EOF 1>&2
15156
cristy0c60a692010-11-04 01:09:47 +000015157*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015158*** to be unable to reliably create shared libraries on AIX.
15159*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015160*** really care for shared libraries, you may want to install binutils
15161*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15162*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015163
15164_LT_EOF
15165 fi
15166 ;;
15167
15168 amigaos*)
15169 case $host_cpu in
15170 powerpc)
15171 # see comment about AmigaOS4 .so support
15172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15173 archive_expsym_cmds=''
15174 ;;
15175 m68k)
15176 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)'
15177 hardcode_libdir_flag_spec='-L$libdir'
15178 hardcode_minus_L=yes
15179 ;;
15180 esac
15181 ;;
15182
15183 beos*)
15184 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15185 allow_undefined_flag=unsupported
15186 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15187 # support --undefined. This deserves some investigation. FIXME
15188 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15189 else
15190 ld_shlibs=no
15191 fi
15192 ;;
15193
15194 cygwin* | mingw* | pw32* | cegcc*)
15195 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15196 # as there is no search path for DLLs.
15197 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015198 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015199 allow_undefined_flag=unsupported
15200 always_export_symbols=no
15201 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015202 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'
15203 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 +000015204
15205 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15207 # If the export-symbols file already is a .def file (1st line
15208 # is EXPORTS), use it as is; otherwise, prepend...
15209 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15210 cp $export_symbols $output_objdir/$soname.def;
15211 else
15212 echo EXPORTS > $output_objdir/$soname.def;
15213 cat $export_symbols >> $output_objdir/$soname.def;
15214 fi~
15215 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15216 else
15217 ld_shlibs=no
15218 fi
15219 ;;
15220
cristy0c60a692010-11-04 01:09:47 +000015221 haiku*)
15222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15223 link_all_deplibs=yes
15224 ;;
15225
cristy73bd4a52010-10-05 11:24:23 +000015226 interix[3-9]*)
15227 hardcode_direct=no
15228 hardcode_shlibpath_var=no
15229 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15230 export_dynamic_flag_spec='${wl}-E'
15231 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15232 # Instead, shared libraries are loaded at an image base (0x10000000 by
15233 # default) and relocated if they conflict, which is a slow very memory
15234 # consuming and fragmenting process. To avoid this, we pick a random,
15235 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15236 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15237 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15238 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'
15239 ;;
15240
cristy0c60a692010-11-04 01:09:47 +000015241 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015242 tmp_diet=no
15243 if test "$host_os" = linux-dietlibc; then
15244 case $cc_basename in
15245 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15246 esac
15247 fi
15248 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15249 && test "$tmp_diet" = no
15250 then
cristyda16f162011-02-19 23:52:17 +000015251 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015252 tmp_sharedflag='-shared'
15253 case $cc_basename,$host_cpu in
15254 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015255 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 +000015256 tmp_addflag=' $pic_flag'
15257 ;;
cristy0c60a692010-11-04 01:09:47 +000015258 pgf77* | pgf90* | pgf95* | pgfortran*)
15259 # Portland Group f77 and f90 compilers
15260 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 +000015261 tmp_addflag=' $pic_flag -Mnomain' ;;
15262 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15263 tmp_addflag=' -i_dynamic' ;;
15264 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15265 tmp_addflag=' -i_dynamic -nofor_main' ;;
15266 ifc* | ifort*) # Intel Fortran compiler
15267 tmp_addflag=' -nofor_main' ;;
15268 lf95*) # Lahey Fortran 8.1
15269 whole_archive_flag_spec=
15270 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015271 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015272 tmp_sharedflag='-qmkshrobj'
15273 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015274 nvcc*) # Cuda Compiler Driver 2.2
15275 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'
15276 compiler_needs_object=yes
15277 ;;
cristy73bd4a52010-10-05 11:24:23 +000015278 esac
15279 case `$CC -V 2>&1 | sed 5q` in
15280 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015281 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 +000015282 compiler_needs_object=yes
15283 tmp_sharedflag='-G' ;;
15284 *Sun\ F*) # Sun Fortran 8.3
15285 tmp_sharedflag='-G' ;;
15286 esac
15287 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15288
15289 if test "x$supports_anon_versioning" = xyes; then
15290 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15291 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15292 echo "local: *; };" >> $output_objdir/$libname.ver~
15293 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15294 fi
15295
15296 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015297 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015298 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15299 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015301 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015302 if test "x$supports_anon_versioning" = xyes; then
15303 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15304 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15305 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015306 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015307 fi
15308 ;;
15309 esac
15310 else
15311 ld_shlibs=no
15312 fi
15313 ;;
15314
15315 netbsd*)
15316 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15317 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15318 wlarc=
15319 else
cristyda16f162011-02-19 23:52:17 +000015320 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15321 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 +000015322 fi
15323 ;;
15324
15325 solaris*)
15326 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15327 ld_shlibs=no
15328 cat <<_LT_EOF 1>&2
15329
15330*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15331*** create shared libraries on Solaris systems. Therefore, libtool
15332*** is disabling shared libraries support. We urge you to upgrade GNU
15333*** binutils to release 2.9.1 or newer. Another option is to modify
15334*** your PATH or compiler configuration so that the native linker is
15335*** used, and then restart.
15336
15337_LT_EOF
15338 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015339 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15340 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 +000015341 else
15342 ld_shlibs=no
15343 fi
15344 ;;
15345
15346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15347 case `$LD -v 2>&1` in
15348 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15349 ld_shlibs=no
15350 cat <<_LT_EOF 1>&2
15351
15352*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15353*** reliably create shared libraries on SCO systems. Therefore, libtool
15354*** is disabling shared libraries support. We urge you to upgrade GNU
15355*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15356*** your PATH or compiler configuration so that the native linker is
15357*** used, and then restart.
15358
15359_LT_EOF
15360 ;;
15361 *)
15362 # For security reasons, it is highly recommended that you always
15363 # use absolute paths for naming shared libraries, and exclude the
15364 # DT_RUNPATH tag from executables and libraries. But doing so
15365 # requires that you compile everything twice, which is a pain.
15366 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15367 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15369 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15370 else
15371 ld_shlibs=no
15372 fi
15373 ;;
15374 esac
15375 ;;
15376
15377 sunos4*)
15378 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15379 wlarc=
15380 hardcode_direct=yes
15381 hardcode_shlibpath_var=no
15382 ;;
15383
15384 *)
15385 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015386 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15387 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 +000015388 else
15389 ld_shlibs=no
15390 fi
15391 ;;
15392 esac
15393
15394 if test "$ld_shlibs" = no; then
15395 runpath_var=
15396 hardcode_libdir_flag_spec=
15397 export_dynamic_flag_spec=
15398 whole_archive_flag_spec=
15399 fi
15400 else
15401 # PORTME fill in a description of your system's linker (not GNU ld)
15402 case $host_os in
15403 aix3*)
15404 allow_undefined_flag=unsupported
15405 always_export_symbols=yes
15406 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'
15407 # Note: this linker hardcodes the directories in LIBPATH if there
15408 # are no directories specified by -L.
15409 hardcode_minus_L=yes
15410 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15411 # Neither direct hardcoding nor static linking is supported with a
15412 # broken collect2.
15413 hardcode_direct=unsupported
15414 fi
15415 ;;
15416
15417 aix[4-9]*)
15418 if test "$host_cpu" = ia64; then
15419 # On IA64, the linker does run time linking by default, so we don't
15420 # have to do anything special.
15421 aix_use_runtimelinking=no
15422 exp_sym_flag='-Bexport'
15423 no_entry_flag=""
15424 else
15425 # If we're using GNU nm, then we don't want the "-C" option.
15426 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015427 # Also, AIX nm treats weak defined symbols like other global
15428 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015429 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015430 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 +000015431 else
15432 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'
15433 fi
15434 aix_use_runtimelinking=no
15435
15436 # Test if we are trying to use run time linking or normal
15437 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15438 # need to do runtime linking.
15439 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15440 for ld_flag in $LDFLAGS; do
15441 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15442 aix_use_runtimelinking=yes
15443 break
15444 fi
15445 done
15446 ;;
15447 esac
15448
15449 exp_sym_flag='-bexport'
15450 no_entry_flag='-bnoentry'
15451 fi
15452
15453 # When large executables or shared objects are built, AIX ld can
15454 # have problems creating the table of contents. If linking a library
15455 # or program results in "error TOC overflow" add -mminimal-toc to
15456 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15457 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15458
15459 archive_cmds=''
15460 hardcode_direct=yes
15461 hardcode_direct_absolute=yes
15462 hardcode_libdir_separator=':'
15463 link_all_deplibs=yes
15464 file_list_spec='${wl}-f,'
15465
15466 if test "$GCC" = yes; then
15467 case $host_os in aix4.[012]|aix4.[012].*)
15468 # We only want to do this on AIX 4.2 and lower, the check
15469 # below for broken collect2 doesn't work under 4.3+
15470 collect2name=`${CC} -print-prog-name=collect2`
15471 if test -f "$collect2name" &&
15472 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15473 then
15474 # We have reworked collect2
15475 :
15476 else
15477 # We have old collect2
15478 hardcode_direct=unsupported
15479 # It fails to find uninstalled libraries when the uninstalled
15480 # path is not listed in the libpath. Setting hardcode_minus_L
15481 # to unsupported forces relinking
15482 hardcode_minus_L=yes
15483 hardcode_libdir_flag_spec='-L$libdir'
15484 hardcode_libdir_separator=
15485 fi
15486 ;;
15487 esac
15488 shared_flag='-shared'
15489 if test "$aix_use_runtimelinking" = yes; then
15490 shared_flag="$shared_flag "'${wl}-G'
15491 fi
15492 else
15493 # not using gcc
15494 if test "$host_cpu" = ia64; then
15495 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15496 # chokes on -Wl,-G. The following line is correct:
15497 shared_flag='-G'
15498 else
15499 if test "$aix_use_runtimelinking" = yes; then
15500 shared_flag='${wl}-G'
15501 else
15502 shared_flag='${wl}-bM:SRE'
15503 fi
15504 fi
15505 fi
15506
15507 export_dynamic_flag_spec='${wl}-bexpall'
15508 # It seems that -bexpall does not export symbols beginning with
15509 # underscore (_), so it is better to generate a list of symbols to export.
15510 always_export_symbols=yes
15511 if test "$aix_use_runtimelinking" = yes; then
15512 # Warning - without using the other runtime loading flags (-brtl),
15513 # -berok will link without error, but may produce a broken library.
15514 allow_undefined_flag='-berok'
15515 # Determine the default libpath from the value encoded in an
15516 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015517 if test "${lt_cv_aix_libpath+set}" = set; then
15518 aix_libpath=$lt_cv_aix_libpath
15519else
15520 if ${lt_cv_aix_libpath_+:} false; then :
15521 $as_echo_n "(cached) " >&6
15522else
15523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015524/* end confdefs.h. */
15525
15526int
15527main ()
15528{
15529
15530 ;
15531 return 0;
15532}
15533_ACEOF
15534if ac_fn_c_try_link "$LINENO"; then :
15535
cristyda16f162011-02-19 23:52:17 +000015536 lt_aix_libpath_sed='
15537 /Import File Strings/,/^$/ {
15538 /^0/ {
15539 s/^0 *\([^ ]*\) *$/\1/
15540 p
15541 }
15542 }'
15543 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15544 # Check for a 64-bit object if we didn't find anything.
15545 if test -z "$lt_cv_aix_libpath_"; then
15546 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15547 fi
cristy73bd4a52010-10-05 11:24:23 +000015548fi
15549rm -f core conftest.err conftest.$ac_objext \
15550 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015551 if test -z "$lt_cv_aix_libpath_"; then
15552 lt_cv_aix_libpath_="/usr/lib:/lib"
15553 fi
15554
15555fi
15556
15557 aix_libpath=$lt_cv_aix_libpath_
15558fi
cristy73bd4a52010-10-05 11:24:23 +000015559
15560 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015561 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 +000015562 else
15563 if test "$host_cpu" = ia64; then
15564 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15565 allow_undefined_flag="-z nodefs"
15566 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"
15567 else
15568 # Determine the default libpath from the value encoded in an
15569 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015570 if test "${lt_cv_aix_libpath+set}" = set; then
15571 aix_libpath=$lt_cv_aix_libpath
15572else
15573 if ${lt_cv_aix_libpath_+:} false; then :
15574 $as_echo_n "(cached) " >&6
15575else
15576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015577/* end confdefs.h. */
15578
15579int
15580main ()
15581{
15582
15583 ;
15584 return 0;
15585}
15586_ACEOF
15587if ac_fn_c_try_link "$LINENO"; then :
15588
cristyda16f162011-02-19 23:52:17 +000015589 lt_aix_libpath_sed='
15590 /Import File Strings/,/^$/ {
15591 /^0/ {
15592 s/^0 *\([^ ]*\) *$/\1/
15593 p
15594 }
15595 }'
15596 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15597 # Check for a 64-bit object if we didn't find anything.
15598 if test -z "$lt_cv_aix_libpath_"; then
15599 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15600 fi
cristy73bd4a52010-10-05 11:24:23 +000015601fi
15602rm -f core conftest.err conftest.$ac_objext \
15603 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015604 if test -z "$lt_cv_aix_libpath_"; then
15605 lt_cv_aix_libpath_="/usr/lib:/lib"
15606 fi
15607
15608fi
15609
15610 aix_libpath=$lt_cv_aix_libpath_
15611fi
cristy73bd4a52010-10-05 11:24:23 +000015612
15613 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15614 # Warning - without using the other run time loading flags,
15615 # -berok will link without error, but may produce a broken library.
15616 no_undefined_flag=' ${wl}-bernotok'
15617 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015618 if test "$with_gnu_ld" = yes; then
15619 # We only use this code for GNU lds that support --whole-archive.
15620 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15621 else
15622 # Exported symbols can be pulled into shared objects from archives
15623 whole_archive_flag_spec='$convenience'
15624 fi
cristy73bd4a52010-10-05 11:24:23 +000015625 archive_cmds_need_lc=yes
15626 # This is similar to how AIX traditionally builds its shared libraries.
15627 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'
15628 fi
15629 fi
15630 ;;
15631
15632 amigaos*)
15633 case $host_cpu in
15634 powerpc)
15635 # see comment about AmigaOS4 .so support
15636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15637 archive_expsym_cmds=''
15638 ;;
15639 m68k)
15640 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)'
15641 hardcode_libdir_flag_spec='-L$libdir'
15642 hardcode_minus_L=yes
15643 ;;
15644 esac
15645 ;;
15646
15647 bsdi[45]*)
15648 export_dynamic_flag_spec=-rdynamic
15649 ;;
15650
15651 cygwin* | mingw* | pw32* | cegcc*)
15652 # When not using gcc, we currently assume that we are using
15653 # Microsoft Visual C++.
15654 # hardcode_libdir_flag_spec is actually meaningless, as there is
15655 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015656 case $cc_basename in
15657 cl*)
15658 # Native MSVC
15659 hardcode_libdir_flag_spec=' '
15660 allow_undefined_flag=unsupported
15661 always_export_symbols=yes
15662 file_list_spec='@'
15663 # Tell ltmain to make .lib files, not .a files.
15664 libext=lib
15665 # Tell ltmain to make .dll files, not .so files.
15666 shrext_cmds=".dll"
15667 # FIXME: Setting linknames here is a bad hack.
15668 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15669 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15670 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15671 else
15672 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15673 fi~
15674 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15675 linknames='
15676 # The linker will not automatically build a static lib if we build a DLL.
15677 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15678 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015679 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015680 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15681 # Don't use ranlib
15682 old_postinstall_cmds='chmod 644 $oldlib'
15683 postlink_cmds='lt_outputfile="@OUTPUT@"~
15684 lt_tool_outputfile="@TOOL_OUTPUT@"~
15685 case $lt_outputfile in
15686 *.exe|*.EXE) ;;
15687 *)
15688 lt_outputfile="$lt_outputfile.exe"
15689 lt_tool_outputfile="$lt_tool_outputfile.exe"
15690 ;;
15691 esac~
15692 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15693 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15694 $RM "$lt_outputfile.manifest";
15695 fi'
15696 ;;
15697 *)
15698 # Assume MSVC wrapper
15699 hardcode_libdir_flag_spec=' '
15700 allow_undefined_flag=unsupported
15701 # Tell ltmain to make .lib files, not .a files.
15702 libext=lib
15703 # Tell ltmain to make .dll files, not .so files.
15704 shrext_cmds=".dll"
15705 # FIXME: Setting linknames here is a bad hack.
15706 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15707 # The linker will automatically build a .lib file if we build a DLL.
15708 old_archive_from_new_cmds='true'
15709 # FIXME: Should let the user specify the lib program.
15710 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15711 enable_shared_with_static_runtimes=yes
15712 ;;
15713 esac
cristy73bd4a52010-10-05 11:24:23 +000015714 ;;
15715
15716 darwin* | rhapsody*)
15717
15718
15719 archive_cmds_need_lc=no
15720 hardcode_direct=no
15721 hardcode_automatic=yes
15722 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015723 if test "$lt_cv_ld_force_load" = "yes"; then
15724 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 +000015725
cristy0c60a692010-11-04 01:09:47 +000015726 else
15727 whole_archive_flag_spec=''
15728 fi
cristy73bd4a52010-10-05 11:24:23 +000015729 link_all_deplibs=yes
15730 allow_undefined_flag="$_lt_dar_allow_undefined"
15731 case $cc_basename in
15732 ifort*) _lt_dar_can_shared=yes ;;
15733 *) _lt_dar_can_shared=$GCC ;;
15734 esac
15735 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015736 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015737 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15738 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15739 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}"
15740 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}"
15741
15742 else
15743 ld_shlibs=no
15744 fi
15745
15746 ;;
15747
15748 dgux*)
15749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15750 hardcode_libdir_flag_spec='-L$libdir'
15751 hardcode_shlibpath_var=no
15752 ;;
15753
cristy73bd4a52010-10-05 11:24:23 +000015754 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15755 # support. Future versions do this automatically, but an explicit c++rt0.o
15756 # does not break anything, and helps significantly (at the cost of a little
15757 # extra space).
15758 freebsd2.2*)
15759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15760 hardcode_libdir_flag_spec='-R$libdir'
15761 hardcode_direct=yes
15762 hardcode_shlibpath_var=no
15763 ;;
15764
15765 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015766 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15768 hardcode_direct=yes
15769 hardcode_minus_L=yes
15770 hardcode_shlibpath_var=no
15771 ;;
15772
15773 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15774 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015775 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015776 hardcode_libdir_flag_spec='-R$libdir'
15777 hardcode_direct=yes
15778 hardcode_shlibpath_var=no
15779 ;;
15780
15781 hpux9*)
15782 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015783 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 +000015784 else
15785 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'
15786 fi
15787 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15788 hardcode_libdir_separator=:
15789 hardcode_direct=yes
15790
15791 # hardcode_minus_L: Not really in the search PATH,
15792 # but as the default location of the library.
15793 hardcode_minus_L=yes
15794 export_dynamic_flag_spec='${wl}-E'
15795 ;;
15796
15797 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015798 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015799 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 +000015800 else
15801 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15802 fi
15803 if test "$with_gnu_ld" = no; then
15804 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015805 hardcode_libdir_separator=:
15806 hardcode_direct=yes
15807 hardcode_direct_absolute=yes
15808 export_dynamic_flag_spec='${wl}-E'
15809 # hardcode_minus_L: Not really in the search PATH,
15810 # but as the default location of the library.
15811 hardcode_minus_L=yes
15812 fi
15813 ;;
15814
15815 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015816 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015817 case $host_cpu in
15818 hppa*64*)
15819 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15820 ;;
15821 ia64*)
cristyda16f162011-02-19 23:52:17 +000015822 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015823 ;;
15824 *)
cristyda16f162011-02-19 23:52:17 +000015825 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 +000015826 ;;
15827 esac
15828 else
15829 case $host_cpu in
15830 hppa*64*)
15831 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15832 ;;
15833 ia64*)
15834 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15835 ;;
15836 *)
cristy0c60a692010-11-04 01:09:47 +000015837
15838 # Older versions of the 11.00 compiler do not understand -b yet
15839 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15841$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015842if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015843 $as_echo_n "(cached) " >&6
15844else
15845 lt_cv_prog_compiler__b=no
15846 save_LDFLAGS="$LDFLAGS"
15847 LDFLAGS="$LDFLAGS -b"
15848 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15849 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15850 # The linker can only warn and ignore the option if not recognized
15851 # So say no if there are warnings
15852 if test -s conftest.err; then
15853 # Append any errors to the config.log.
15854 cat conftest.err 1>&5
15855 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15857 if diff conftest.exp conftest.er2 >/dev/null; then
15858 lt_cv_prog_compiler__b=yes
15859 fi
15860 else
15861 lt_cv_prog_compiler__b=yes
15862 fi
15863 fi
15864 $RM -r conftest*
15865 LDFLAGS="$save_LDFLAGS"
15866
15867fi
15868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15869$as_echo "$lt_cv_prog_compiler__b" >&6; }
15870
15871if test x"$lt_cv_prog_compiler__b" = xyes; then
15872 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15873else
15874 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15875fi
15876
cristy73bd4a52010-10-05 11:24:23 +000015877 ;;
15878 esac
15879 fi
15880 if test "$with_gnu_ld" = no; then
15881 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15882 hardcode_libdir_separator=:
15883
15884 case $host_cpu in
15885 hppa*64*|ia64*)
15886 hardcode_direct=no
15887 hardcode_shlibpath_var=no
15888 ;;
15889 *)
15890 hardcode_direct=yes
15891 hardcode_direct_absolute=yes
15892 export_dynamic_flag_spec='${wl}-E'
15893
15894 # hardcode_minus_L: Not really in the search PATH,
15895 # but as the default location of the library.
15896 hardcode_minus_L=yes
15897 ;;
15898 esac
15899 fi
15900 ;;
15901
15902 irix5* | irix6* | nonstopux*)
15903 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015904 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 +000015905 # Try to use the -exported_symbol ld option, if it does not
15906 # work, assume that -exports_file does not work either and
15907 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015908 # This should be the same for all languages, so no per-tag cache variable.
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15910$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15911if ${lt_cv_irix_exported_symbol+:} false; then :
15912 $as_echo_n "(cached) " >&6
15913else
15914 save_LDFLAGS="$LDFLAGS"
15915 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015917/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015918int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015919_ACEOF
15920if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015921 lt_cv_irix_exported_symbol=yes
15922else
15923 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015924fi
15925rm -f core conftest.err conftest.$ac_objext \
15926 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015927 LDFLAGS="$save_LDFLAGS"
15928fi
15929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15930$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15931 if test "$lt_cv_irix_exported_symbol" = yes; then
15932 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'
15933 fi
cristy73bd4a52010-10-05 11:24:23 +000015934 else
cristy0c60a692010-11-04 01:09:47 +000015935 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'
15936 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 +000015937 fi
15938 archive_cmds_need_lc='no'
15939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15940 hardcode_libdir_separator=:
15941 inherit_rpath=yes
15942 link_all_deplibs=yes
15943 ;;
15944
15945 netbsd*)
15946 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15947 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15948 else
15949 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15950 fi
15951 hardcode_libdir_flag_spec='-R$libdir'
15952 hardcode_direct=yes
15953 hardcode_shlibpath_var=no
15954 ;;
15955
15956 newsos6)
15957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15958 hardcode_direct=yes
15959 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15960 hardcode_libdir_separator=:
15961 hardcode_shlibpath_var=no
15962 ;;
15963
15964 *nto* | *qnx*)
15965 ;;
15966
15967 openbsd*)
15968 if test -f /usr/libexec/ld.so; then
15969 hardcode_direct=yes
15970 hardcode_shlibpath_var=no
15971 hardcode_direct_absolute=yes
15972 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15974 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15975 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15976 export_dynamic_flag_spec='${wl}-E'
15977 else
15978 case $host_os in
15979 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15981 hardcode_libdir_flag_spec='-R$libdir'
15982 ;;
15983 *)
15984 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15985 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15986 ;;
15987 esac
15988 fi
15989 else
15990 ld_shlibs=no
15991 fi
15992 ;;
15993
15994 os2*)
15995 hardcode_libdir_flag_spec='-L$libdir'
15996 hardcode_minus_L=yes
15997 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015998 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 +000015999 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16000 ;;
16001
16002 osf3*)
16003 if test "$GCC" = yes; then
16004 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016005 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 +000016006 else
16007 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016008 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 +000016009 fi
16010 archive_cmds_need_lc='no'
16011 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16012 hardcode_libdir_separator=:
16013 ;;
16014
16015 osf4* | osf5*) # as osf3* with the addition of -msym flag
16016 if test "$GCC" = yes; then
16017 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016018 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 +000016019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16020 else
16021 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016022 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 +000016023 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 +000016024 $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 +000016025
16026 # Both c and cxx compiler support -rpath directly
16027 hardcode_libdir_flag_spec='-rpath $libdir'
16028 fi
16029 archive_cmds_need_lc='no'
16030 hardcode_libdir_separator=:
16031 ;;
16032
16033 solaris*)
16034 no_undefined_flag=' -z defs'
16035 if test "$GCC" = yes; then
16036 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016037 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 +000016038 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 +000016039 $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 +000016040 else
16041 case `$CC -V 2>&1` in
16042 *"Compilers 5.0"*)
16043 wlarc=''
16044 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16045 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16046 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16047 ;;
16048 *)
16049 wlarc='${wl}'
16050 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16051 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16052 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16053 ;;
16054 esac
16055 fi
16056 hardcode_libdir_flag_spec='-R$libdir'
16057 hardcode_shlibpath_var=no
16058 case $host_os in
16059 solaris2.[0-5] | solaris2.[0-5].*) ;;
16060 *)
16061 # The compiler driver will combine and reorder linker options,
16062 # but understands `-z linker_flag'. GCC discards it without `$wl',
16063 # but is careful enough not to reorder.
16064 # Supported since Solaris 2.6 (maybe 2.5.1?)
16065 if test "$GCC" = yes; then
16066 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16067 else
16068 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16069 fi
16070 ;;
16071 esac
16072 link_all_deplibs=yes
16073 ;;
16074
16075 sunos4*)
16076 if test "x$host_vendor" = xsequent; then
16077 # Use $CC to link under sequent, because it throws in some extra .o
16078 # files that make .init and .fini sections work.
16079 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16080 else
16081 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16082 fi
16083 hardcode_libdir_flag_spec='-L$libdir'
16084 hardcode_direct=yes
16085 hardcode_minus_L=yes
16086 hardcode_shlibpath_var=no
16087 ;;
16088
16089 sysv4)
16090 case $host_vendor in
16091 sni)
16092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16093 hardcode_direct=yes # is this really true???
16094 ;;
16095 siemens)
16096 ## LD is ld it makes a PLAMLIB
16097 ## CC just makes a GrossModule.
16098 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16099 reload_cmds='$CC -r -o $output$reload_objs'
16100 hardcode_direct=no
16101 ;;
16102 motorola)
16103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16104 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16105 ;;
16106 esac
16107 runpath_var='LD_RUN_PATH'
16108 hardcode_shlibpath_var=no
16109 ;;
16110
16111 sysv4.3*)
16112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16113 hardcode_shlibpath_var=no
16114 export_dynamic_flag_spec='-Bexport'
16115 ;;
16116
16117 sysv4*MP*)
16118 if test -d /usr/nec; then
16119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16120 hardcode_shlibpath_var=no
16121 runpath_var=LD_RUN_PATH
16122 hardcode_runpath_var=yes
16123 ld_shlibs=yes
16124 fi
16125 ;;
16126
16127 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16128 no_undefined_flag='${wl}-z,text'
16129 archive_cmds_need_lc=no
16130 hardcode_shlibpath_var=no
16131 runpath_var='LD_RUN_PATH'
16132
16133 if test "$GCC" = yes; then
16134 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16135 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16136 else
16137 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16138 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16139 fi
16140 ;;
16141
16142 sysv5* | sco3.2v5* | sco5v6*)
16143 # Note: We can NOT use -z defs as we might desire, because we do not
16144 # link with -lc, and that would cause any symbols used from libc to
16145 # always be unresolved, which means just about no library would
16146 # ever link correctly. If we're not using GNU ld we use -z text
16147 # though, which does catch some bad symbols but isn't as heavy-handed
16148 # as -z defs.
16149 no_undefined_flag='${wl}-z,text'
16150 allow_undefined_flag='${wl}-z,nodefs'
16151 archive_cmds_need_lc=no
16152 hardcode_shlibpath_var=no
16153 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16154 hardcode_libdir_separator=':'
16155 link_all_deplibs=yes
16156 export_dynamic_flag_spec='${wl}-Bexport'
16157 runpath_var='LD_RUN_PATH'
16158
16159 if test "$GCC" = yes; then
16160 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16161 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16162 else
16163 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16164 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16165 fi
16166 ;;
16167
16168 uts4*)
16169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16170 hardcode_libdir_flag_spec='-L$libdir'
16171 hardcode_shlibpath_var=no
16172 ;;
16173
16174 *)
16175 ld_shlibs=no
16176 ;;
16177 esac
16178
16179 if test x$host_vendor = xsni; then
16180 case $host in
16181 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16182 export_dynamic_flag_spec='${wl}-Blargedynsym'
16183 ;;
16184 esac
16185 fi
16186 fi
16187
16188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16189$as_echo "$ld_shlibs" >&6; }
16190test "$ld_shlibs" = no && can_build_shared=no
16191
16192with_gnu_ld=$with_gnu_ld
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208#
16209# Do we need to explicitly link libc?
16210#
16211case "x$archive_cmds_need_lc" in
16212x|xyes)
16213 # Assume -lc should be added
16214 archive_cmds_need_lc=yes
16215
16216 if test "$enable_shared" = yes && test "$GCC" = yes; then
16217 case $archive_cmds in
16218 *'~'*)
16219 # FIXME: we may have to deal with multi-command sequences.
16220 ;;
16221 '$CC '*)
16222 # Test whether the compiler implicitly links with -lc since on some
16223 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16224 # to ld, don't add -lc before -lgcc.
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16226$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016227if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016228 $as_echo_n "(cached) " >&6
16229else
16230 $RM conftest*
16231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016232
cristy0c60a692010-11-04 01:09:47 +000016233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016234 (eval $ac_compile) 2>&5
16235 ac_status=$?
16236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16237 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016238 soname=conftest
16239 lib=conftest
16240 libobjs=conftest.$ac_objext
16241 deplibs=
16242 wl=$lt_prog_compiler_wl
16243 pic_flag=$lt_prog_compiler_pic
16244 compiler_flags=-v
16245 linker_flags=-v
16246 verstring=
16247 output_objdir=.
16248 libname=conftest
16249 lt_save_allow_undefined_flag=$allow_undefined_flag
16250 allow_undefined_flag=
16251 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 +000016252 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16253 ac_status=$?
16254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16255 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016256 then
16257 lt_cv_archive_cmds_need_lc=no
16258 else
16259 lt_cv_archive_cmds_need_lc=yes
16260 fi
16261 allow_undefined_flag=$lt_save_allow_undefined_flag
16262 else
16263 cat conftest.err 1>&5
16264 fi
16265 $RM conftest*
16266
16267fi
16268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16269$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16270 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016271 ;;
16272 esac
16273 fi
16274 ;;
16275esac
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
cristy73bd4a52010-10-05 11:24:23 +000016428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16429$as_echo_n "checking dynamic linker characteristics... " >&6; }
16430
16431if test "$GCC" = yes; then
16432 case $host_os in
16433 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16434 *) lt_awk_arg="/^libraries:/" ;;
16435 esac
cristy0c60a692010-11-04 01:09:47 +000016436 case $host_os in
16437 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16438 *) lt_sed_strip_eq="s,=/,/,g" ;;
16439 esac
16440 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16441 case $lt_search_path_spec in
16442 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016443 # if the path contains ";" then we assume it to be the separator
16444 # otherwise default to the standard path separator (i.e. ":") - it is
16445 # assumed that no part of a normal pathname contains ";" but that should
16446 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016447 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16448 ;;
16449 *)
16450 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16451 ;;
16452 esac
cristy73bd4a52010-10-05 11:24:23 +000016453 # Ok, now we have the path, separated by spaces, we can step through it
16454 # and add multilib dir if necessary.
16455 lt_tmp_lt_search_path_spec=
16456 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16457 for lt_sys_path in $lt_search_path_spec; do
16458 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16459 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16460 else
16461 test -d "$lt_sys_path" && \
16462 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16463 fi
16464 done
cristy0c60a692010-11-04 01:09:47 +000016465 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016466BEGIN {RS=" "; FS="/|\n";} {
16467 lt_foo="";
16468 lt_count=0;
16469 for (lt_i = NF; lt_i > 0; lt_i--) {
16470 if ($lt_i != "" && $lt_i != ".") {
16471 if ($lt_i == "..") {
16472 lt_count++;
16473 } else {
16474 if (lt_count == 0) {
16475 lt_foo="/" $lt_i lt_foo;
16476 } else {
16477 lt_count--;
16478 }
16479 }
16480 }
16481 }
16482 if (lt_foo != "") { lt_freq[lt_foo]++; }
16483 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16484}'`
cristy0c60a692010-11-04 01:09:47 +000016485 # AWK program above erroneously prepends '/' to C:/dos/paths
16486 # for these hosts.
16487 case $host_os in
16488 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16489 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16490 esac
16491 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016492else
16493 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16494fi
16495library_names_spec=
16496libname_spec='lib$name'
16497soname_spec=
16498shrext_cmds=".so"
16499postinstall_cmds=
16500postuninstall_cmds=
16501finish_cmds=
16502finish_eval=
16503shlibpath_var=
16504shlibpath_overrides_runpath=unknown
16505version_type=none
16506dynamic_linker="$host_os ld.so"
16507sys_lib_dlsearch_path_spec="/lib /usr/lib"
16508need_lib_prefix=unknown
16509hardcode_into_libs=no
16510
16511# when you set need_version to no, make sure it does not cause -set_version
16512# flags to be left without arguments
16513need_version=unknown
16514
16515case $host_os in
16516aix3*)
cristy99bd5232011-12-07 14:38:20 +000016517 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16519 shlibpath_var=LIBPATH
16520
16521 # AIX 3 has no versioning support, so we append a major version to the name.
16522 soname_spec='${libname}${release}${shared_ext}$major'
16523 ;;
16524
16525aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016526 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016527 need_lib_prefix=no
16528 need_version=no
16529 hardcode_into_libs=yes
16530 if test "$host_cpu" = ia64; then
16531 # AIX 5 supports IA64
16532 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16533 shlibpath_var=LD_LIBRARY_PATH
16534 else
16535 # With GCC up to 2.95.x, collect2 would create an import file
16536 # for dependence libraries. The import file would start with
16537 # the line `#! .'. This would cause the generated library to
16538 # depend on `.', always an invalid library. This was fixed in
16539 # development snapshots of GCC prior to 3.0.
16540 case $host_os in
16541 aix4 | aix4.[01] | aix4.[01].*)
16542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16543 echo ' yes '
16544 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16545 :
16546 else
16547 can_build_shared=no
16548 fi
16549 ;;
16550 esac
16551 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16552 # soname into executable. Probably we can add versioning support to
16553 # collect2, so additional links can be useful in future.
16554 if test "$aix_use_runtimelinking" = yes; then
16555 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16556 # instead of lib<name>.a to let people know that these are not
16557 # typical AIX shared libraries.
16558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16559 else
16560 # We preserve .a as extension for shared libraries through AIX4.2
16561 # and later when we are not doing run time linking.
16562 library_names_spec='${libname}${release}.a $libname.a'
16563 soname_spec='${libname}${release}${shared_ext}$major'
16564 fi
16565 shlibpath_var=LIBPATH
16566 fi
16567 ;;
16568
16569amigaos*)
16570 case $host_cpu in
16571 powerpc)
16572 # Since July 2007 AmigaOS4 officially supports .so libraries.
16573 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16575 ;;
16576 m68k)
16577 library_names_spec='$libname.ixlibrary $libname.a'
16578 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016579 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 +000016580 ;;
16581 esac
16582 ;;
16583
16584beos*)
16585 library_names_spec='${libname}${shared_ext}'
16586 dynamic_linker="$host_os ld.so"
16587 shlibpath_var=LIBRARY_PATH
16588 ;;
16589
16590bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016591 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016592 need_version=no
16593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16594 soname_spec='${libname}${release}${shared_ext}$major'
16595 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16596 shlibpath_var=LD_LIBRARY_PATH
16597 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16598 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16599 # the default ld.so.conf also contains /usr/contrib/lib and
16600 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16601 # libtool to hard-code these into programs
16602 ;;
16603
16604cygwin* | mingw* | pw32* | cegcc*)
16605 version_type=windows
16606 shrext_cmds=".dll"
16607 need_version=no
16608 need_lib_prefix=no
16609
cristyda16f162011-02-19 23:52:17 +000016610 case $GCC,$cc_basename in
16611 yes,*)
16612 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016613 library_names_spec='$libname.dll.a'
16614 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16615 postinstall_cmds='base_file=`basename \${file}`~
16616 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16617 dldir=$destdir/`dirname \$dlpath`~
16618 test -d \$dldir || mkdir -p \$dldir~
16619 $install_prog $dir/$dlname \$dldir/$dlname~
16620 chmod a+x \$dldir/$dlname~
16621 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16622 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16623 fi'
16624 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16625 dlpath=$dir/\$dldll~
16626 $RM \$dlpath'
16627 shlibpath_overrides_runpath=yes
16628
16629 case $host_os in
16630 cygwin*)
16631 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16632 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016633
16634 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016635 ;;
16636 mingw* | cegcc*)
16637 # MinGW DLLs use traditional 'lib' prefix
16638 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016639 ;;
16640 pw32*)
16641 # pw32 DLLs use 'pw' prefix rather than 'lib'
16642 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16643 ;;
16644 esac
cristyda16f162011-02-19 23:52:17 +000016645 dynamic_linker='Win32 ld.exe'
16646 ;;
16647
16648 *,cl*)
16649 # Native MSVC
16650 libname_spec='$name'
16651 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16652 library_names_spec='${libname}.dll.lib'
16653
16654 case $build_os in
16655 mingw*)
16656 sys_lib_search_path_spec=
16657 lt_save_ifs=$IFS
16658 IFS=';'
16659 for lt_path in $LIB
16660 do
16661 IFS=$lt_save_ifs
16662 # Let DOS variable expansion print the short 8.3 style file name.
16663 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16664 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16665 done
16666 IFS=$lt_save_ifs
16667 # Convert to MSYS style.
16668 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16669 ;;
16670 cygwin*)
16671 # Convert to unix form, then to dos form, then back to unix form
16672 # but this time dos style (no spaces!) so that the unix form looks
16673 # like /cygdrive/c/PROGRA~1:/cygdr...
16674 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16675 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16676 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16677 ;;
16678 *)
16679 sys_lib_search_path_spec="$LIB"
16680 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16681 # It is most probably a Windows format PATH.
16682 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16683 else
16684 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16685 fi
16686 # FIXME: find the short name or the path components, as spaces are
16687 # common. (e.g. "Program Files" -> "PROGRA~1")
16688 ;;
16689 esac
16690
16691 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16692 postinstall_cmds='base_file=`basename \${file}`~
16693 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16694 dldir=$destdir/`dirname \$dlpath`~
16695 test -d \$dldir || mkdir -p \$dldir~
16696 $install_prog $dir/$dlname \$dldir/$dlname'
16697 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16698 dlpath=$dir/\$dldll~
16699 $RM \$dlpath'
16700 shlibpath_overrides_runpath=yes
16701 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016702 ;;
16703
16704 *)
cristyda16f162011-02-19 23:52:17 +000016705 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016706 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016707 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016708 ;;
16709 esac
cristy73bd4a52010-10-05 11:24:23 +000016710 # FIXME: first we should search . and the directory the executable is in
16711 shlibpath_var=PATH
16712 ;;
16713
16714darwin* | rhapsody*)
16715 dynamic_linker="$host_os dyld"
16716 version_type=darwin
16717 need_lib_prefix=no
16718 need_version=no
16719 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16720 soname_spec='${libname}${release}${major}$shared_ext'
16721 shlibpath_overrides_runpath=yes
16722 shlibpath_var=DYLD_LIBRARY_PATH
16723 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16724
16725 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16726 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16727 ;;
16728
16729dgux*)
cristy99bd5232011-12-07 14:38:20 +000016730 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016731 need_lib_prefix=no
16732 need_version=no
16733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16734 soname_spec='${libname}${release}${shared_ext}$major'
16735 shlibpath_var=LD_LIBRARY_PATH
16736 ;;
16737
cristy73bd4a52010-10-05 11:24:23 +000016738freebsd* | dragonfly*)
16739 # DragonFly does not have aout. When/if they implement a new
16740 # versioning mechanism, adjust this.
16741 if test -x /usr/bin/objformat; then
16742 objformat=`/usr/bin/objformat`
16743 else
16744 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016745 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016746 *) objformat=elf ;;
16747 esac
16748 fi
16749 version_type=freebsd-$objformat
16750 case $version_type in
16751 freebsd-elf*)
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16753 need_version=no
16754 need_lib_prefix=no
16755 ;;
16756 freebsd-*)
16757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16758 need_version=yes
16759 ;;
16760 esac
16761 shlibpath_var=LD_LIBRARY_PATH
16762 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016763 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016764 shlibpath_overrides_runpath=yes
16765 ;;
16766 freebsd3.[01]* | freebsdelf3.[01]*)
16767 shlibpath_overrides_runpath=yes
16768 hardcode_into_libs=yes
16769 ;;
16770 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16771 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16772 shlibpath_overrides_runpath=no
16773 hardcode_into_libs=yes
16774 ;;
16775 *) # from 4.6 on, and DragonFly
16776 shlibpath_overrides_runpath=yes
16777 hardcode_into_libs=yes
16778 ;;
16779 esac
16780 ;;
16781
16782gnu*)
cristy99bd5232011-12-07 14:38:20 +000016783 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016784 need_lib_prefix=no
16785 need_version=no
16786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16787 soname_spec='${libname}${release}${shared_ext}$major'
16788 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016789 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016790 hardcode_into_libs=yes
16791 ;;
16792
cristy0c60a692010-11-04 01:09:47 +000016793haiku*)
cristy99bd5232011-12-07 14:38:20 +000016794 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016795 need_lib_prefix=no
16796 need_version=no
16797 dynamic_linker="$host_os runtime_loader"
16798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16799 soname_spec='${libname}${release}${shared_ext}$major'
16800 shlibpath_var=LIBRARY_PATH
16801 shlibpath_overrides_runpath=yes
16802 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16803 hardcode_into_libs=yes
16804 ;;
16805
cristy73bd4a52010-10-05 11:24:23 +000016806hpux9* | hpux10* | hpux11*)
16807 # Give a soname corresponding to the major version so that dld.sl refuses to
16808 # link against other versions.
16809 version_type=sunos
16810 need_lib_prefix=no
16811 need_version=no
16812 case $host_cpu in
16813 ia64*)
16814 shrext_cmds='.so'
16815 hardcode_into_libs=yes
16816 dynamic_linker="$host_os dld.so"
16817 shlibpath_var=LD_LIBRARY_PATH
16818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16820 soname_spec='${libname}${release}${shared_ext}$major'
16821 if test "X$HPUX_IA64_MODE" = X32; then
16822 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16823 else
16824 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16825 fi
16826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16827 ;;
16828 hppa*64*)
16829 shrext_cmds='.sl'
16830 hardcode_into_libs=yes
16831 dynamic_linker="$host_os dld.sl"
16832 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16835 soname_spec='${libname}${release}${shared_ext}$major'
16836 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16838 ;;
16839 *)
16840 shrext_cmds='.sl'
16841 dynamic_linker="$host_os dld.sl"
16842 shlibpath_var=SHLIB_PATH
16843 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16845 soname_spec='${libname}${release}${shared_ext}$major'
16846 ;;
16847 esac
cristy0c60a692010-11-04 01:09:47 +000016848 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016849 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016850 # or fails outright, so override atomically:
16851 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016852 ;;
16853
16854interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016855 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016856 need_lib_prefix=no
16857 need_version=no
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16859 soname_spec='${libname}${release}${shared_ext}$major'
16860 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16861 shlibpath_var=LD_LIBRARY_PATH
16862 shlibpath_overrides_runpath=no
16863 hardcode_into_libs=yes
16864 ;;
16865
16866irix5* | irix6* | nonstopux*)
16867 case $host_os in
16868 nonstopux*) version_type=nonstopux ;;
16869 *)
16870 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016871 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016872 else
16873 version_type=irix
16874 fi ;;
16875 esac
16876 need_lib_prefix=no
16877 need_version=no
16878 soname_spec='${libname}${release}${shared_ext}$major'
16879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16880 case $host_os in
16881 irix5* | nonstopux*)
16882 libsuff= shlibsuff=
16883 ;;
16884 *)
16885 case $LD in # libtool.m4 will add one of these switches to LD
16886 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16887 libsuff= shlibsuff= libmagic=32-bit;;
16888 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16889 libsuff=32 shlibsuff=N32 libmagic=N32;;
16890 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16891 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16892 *) libsuff= shlibsuff= libmagic=never-match;;
16893 esac
16894 ;;
16895 esac
16896 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16897 shlibpath_overrides_runpath=no
16898 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16899 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16900 hardcode_into_libs=yes
16901 ;;
16902
16903# No shared lib support for Linux oldld, aout, or coff.
16904linux*oldld* | linux*aout* | linux*coff*)
16905 dynamic_linker=no
16906 ;;
16907
cristy99bd5232011-12-07 14:38:20 +000016908# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016909linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016910 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016911 need_lib_prefix=no
16912 need_version=no
16913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16914 soname_spec='${libname}${release}${shared_ext}$major'
16915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16916 shlibpath_var=LD_LIBRARY_PATH
16917 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016918
cristy73bd4a52010-10-05 11:24:23 +000016919 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016920 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016921 $as_echo_n "(cached) " >&6
16922else
16923 lt_cv_shlibpath_overrides_runpath=no
16924 save_LDFLAGS=$LDFLAGS
16925 save_libdir=$libdir
16926 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16927 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016929/* end confdefs.h. */
16930
16931int
16932main ()
16933{
16934
16935 ;
16936 return 0;
16937}
16938_ACEOF
16939if ac_fn_c_try_link "$LINENO"; then :
16940 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016941 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016942fi
16943fi
16944rm -f core conftest.err conftest.$ac_objext \
16945 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016946 LDFLAGS=$save_LDFLAGS
16947 libdir=$save_libdir
16948
16949fi
16950
16951 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016952
16953 # This implies no fast_install, which is unacceptable.
16954 # Some rework will be needed to allow for fast_install
16955 # before this can be enabled.
16956 hardcode_into_libs=yes
16957
16958 # Add ABI-specific directories to the system library path.
16959 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16960
16961 # Append ld.so.conf contents to the search path
16962 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016963 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 +000016964 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016965
cristy73bd4a52010-10-05 11:24:23 +000016966 fi
16967
16968 # We used to test for /lib/ld.so.1 and disable shared libraries on
16969 # powerpc, because MkLinux only supported shared libraries with the
16970 # GNU dynamic linker. Since this was broken with cross compilers,
16971 # most powerpc-linux boxes support dynamic linking these days and
16972 # people can always --disable-shared, the test was removed, and we
16973 # assume the GNU/Linux dynamic linker is in use.
16974 dynamic_linker='GNU/Linux ld.so'
16975 ;;
16976
16977netbsd*)
16978 version_type=sunos
16979 need_lib_prefix=no
16980 need_version=no
16981 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16984 dynamic_linker='NetBSD (a.out) ld.so'
16985 else
16986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16987 soname_spec='${libname}${release}${shared_ext}$major'
16988 dynamic_linker='NetBSD ld.elf_so'
16989 fi
16990 shlibpath_var=LD_LIBRARY_PATH
16991 shlibpath_overrides_runpath=yes
16992 hardcode_into_libs=yes
16993 ;;
16994
16995newsos6)
cristy99bd5232011-12-07 14:38:20 +000016996 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998 shlibpath_var=LD_LIBRARY_PATH
16999 shlibpath_overrides_runpath=yes
17000 ;;
17001
17002*nto* | *qnx*)
17003 version_type=qnx
17004 need_lib_prefix=no
17005 need_version=no
17006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17007 soname_spec='${libname}${release}${shared_ext}$major'
17008 shlibpath_var=LD_LIBRARY_PATH
17009 shlibpath_overrides_runpath=no
17010 hardcode_into_libs=yes
17011 dynamic_linker='ldqnx.so'
17012 ;;
17013
17014openbsd*)
17015 version_type=sunos
17016 sys_lib_dlsearch_path_spec="/usr/lib"
17017 need_lib_prefix=no
17018 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17019 case $host_os in
17020 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17021 *) need_version=no ;;
17022 esac
17023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17025 shlibpath_var=LD_LIBRARY_PATH
17026 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17027 case $host_os in
17028 openbsd2.[89] | openbsd2.[89].*)
17029 shlibpath_overrides_runpath=no
17030 ;;
17031 *)
17032 shlibpath_overrides_runpath=yes
17033 ;;
17034 esac
17035 else
17036 shlibpath_overrides_runpath=yes
17037 fi
17038 ;;
17039
17040os2*)
17041 libname_spec='$name'
17042 shrext_cmds=".dll"
17043 need_lib_prefix=no
17044 library_names_spec='$libname${shared_ext} $libname.a'
17045 dynamic_linker='OS/2 ld.exe'
17046 shlibpath_var=LIBPATH
17047 ;;
17048
17049osf3* | osf4* | osf5*)
17050 version_type=osf
17051 need_lib_prefix=no
17052 need_version=no
17053 soname_spec='${libname}${release}${shared_ext}$major'
17054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055 shlibpath_var=LD_LIBRARY_PATH
17056 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17057 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17058 ;;
17059
17060rdos*)
17061 dynamic_linker=no
17062 ;;
17063
17064solaris*)
cristy99bd5232011-12-07 14:38:20 +000017065 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017066 need_lib_prefix=no
17067 need_version=no
17068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069 soname_spec='${libname}${release}${shared_ext}$major'
17070 shlibpath_var=LD_LIBRARY_PATH
17071 shlibpath_overrides_runpath=yes
17072 hardcode_into_libs=yes
17073 # ldd complains unless libraries are executable
17074 postinstall_cmds='chmod +x $lib'
17075 ;;
17076
17077sunos4*)
17078 version_type=sunos
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17080 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17081 shlibpath_var=LD_LIBRARY_PATH
17082 shlibpath_overrides_runpath=yes
17083 if test "$with_gnu_ld" = yes; then
17084 need_lib_prefix=no
17085 fi
17086 need_version=yes
17087 ;;
17088
17089sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017090 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092 soname_spec='${libname}${release}${shared_ext}$major'
17093 shlibpath_var=LD_LIBRARY_PATH
17094 case $host_vendor in
17095 sni)
17096 shlibpath_overrides_runpath=no
17097 need_lib_prefix=no
17098 runpath_var=LD_RUN_PATH
17099 ;;
17100 siemens)
17101 need_lib_prefix=no
17102 ;;
17103 motorola)
17104 need_lib_prefix=no
17105 need_version=no
17106 shlibpath_overrides_runpath=no
17107 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17108 ;;
17109 esac
17110 ;;
17111
17112sysv4*MP*)
17113 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017114 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017115 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17116 soname_spec='$libname${shared_ext}.$major'
17117 shlibpath_var=LD_LIBRARY_PATH
17118 fi
17119 ;;
17120
17121sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17122 version_type=freebsd-elf
17123 need_lib_prefix=no
17124 need_version=no
17125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17126 soname_spec='${libname}${release}${shared_ext}$major'
17127 shlibpath_var=LD_LIBRARY_PATH
17128 shlibpath_overrides_runpath=yes
17129 hardcode_into_libs=yes
17130 if test "$with_gnu_ld" = yes; then
17131 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17132 else
17133 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17134 case $host_os in
17135 sco3.2v5*)
17136 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17137 ;;
17138 esac
17139 fi
17140 sys_lib_dlsearch_path_spec='/usr/lib'
17141 ;;
17142
17143tpf*)
17144 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017145 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017146 need_lib_prefix=no
17147 need_version=no
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149 shlibpath_var=LD_LIBRARY_PATH
17150 shlibpath_overrides_runpath=no
17151 hardcode_into_libs=yes
17152 ;;
17153
17154uts4*)
cristy99bd5232011-12-07 14:38:20 +000017155 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17157 soname_spec='${libname}${release}${shared_ext}$major'
17158 shlibpath_var=LD_LIBRARY_PATH
17159 ;;
17160
17161*)
17162 dynamic_linker=no
17163 ;;
17164esac
17165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17166$as_echo "$dynamic_linker" >&6; }
17167test "$dynamic_linker" = no && can_build_shared=no
17168
17169variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17170if test "$GCC" = yes; then
17171 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17172fi
17173
17174if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17175 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17176fi
17177if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17178 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17179fi
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
cristy0c60a692010-11-04 01:09:47 +000017267
17268
17269
17270
17271
cristy73bd4a52010-10-05 11:24:23 +000017272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17273$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17274hardcode_action=
17275if test -n "$hardcode_libdir_flag_spec" ||
17276 test -n "$runpath_var" ||
17277 test "X$hardcode_automatic" = "Xyes" ; then
17278
17279 # We can hardcode non-existent directories.
17280 if test "$hardcode_direct" != no &&
17281 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17282 # have to relink, otherwise we might link with an installed library
17283 # when we should be linking with a yet-to-be-installed one
17284 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17285 test "$hardcode_minus_L" != no; then
17286 # Linking always hardcodes the temporary library directory.
17287 hardcode_action=relink
17288 else
17289 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17290 hardcode_action=immediate
17291 fi
17292else
17293 # We cannot hardcode anything, or else we can only hardcode existing
17294 # directories.
17295 hardcode_action=unsupported
17296fi
17297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17298$as_echo "$hardcode_action" >&6; }
17299
17300if test "$hardcode_action" = relink ||
17301 test "$inherit_rpath" = yes; then
17302 # Fast installation is not supported
17303 enable_fast_install=no
17304elif test "$shlibpath_overrides_runpath" = yes ||
17305 test "$enable_shared" = no; then
17306 # Fast installation is not necessary
17307 enable_fast_install=needless
17308fi
17309
17310
17311
17312
17313
17314
17315 if test "x$enable_dlopen" != xyes; then
17316 enable_dlopen=unknown
17317 enable_dlopen_self=unknown
17318 enable_dlopen_self_static=unknown
17319else
17320 lt_cv_dlopen=no
17321 lt_cv_dlopen_libs=
17322
17323 case $host_os in
17324 beos*)
17325 lt_cv_dlopen="load_add_on"
17326 lt_cv_dlopen_libs=
17327 lt_cv_dlopen_self=yes
17328 ;;
17329
17330 mingw* | pw32* | cegcc*)
17331 lt_cv_dlopen="LoadLibrary"
17332 lt_cv_dlopen_libs=
17333 ;;
17334
17335 cygwin*)
17336 lt_cv_dlopen="dlopen"
17337 lt_cv_dlopen_libs=
17338 ;;
17339
17340 darwin*)
17341 # if libdl is installed we need to link against it
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17343$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017344if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017345 $as_echo_n "(cached) " >&6
17346else
17347 ac_check_lib_save_LIBS=$LIBS
17348LIBS="-ldl $LIBS"
17349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17350/* end confdefs.h. */
17351
17352/* Override any GCC internal prototype to avoid an error.
17353 Use char because int might match the return type of a GCC
17354 builtin and then its argument prototype would still apply. */
17355#ifdef __cplusplus
17356extern "C"
17357#endif
17358char dlopen ();
17359int
17360main ()
17361{
17362return dlopen ();
17363 ;
17364 return 0;
17365}
17366_ACEOF
17367if ac_fn_c_try_link "$LINENO"; then :
17368 ac_cv_lib_dl_dlopen=yes
17369else
17370 ac_cv_lib_dl_dlopen=no
17371fi
17372rm -f core conftest.err conftest.$ac_objext \
17373 conftest$ac_exeext conftest.$ac_ext
17374LIBS=$ac_check_lib_save_LIBS
17375fi
17376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17377$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017378if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017379 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17380else
17381
17382 lt_cv_dlopen="dyld"
17383 lt_cv_dlopen_libs=
17384 lt_cv_dlopen_self=yes
17385
17386fi
17387
17388 ;;
17389
17390 *)
17391 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017392if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017393 lt_cv_dlopen="shl_load"
17394else
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17396$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017397if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017398 $as_echo_n "(cached) " >&6
17399else
17400 ac_check_lib_save_LIBS=$LIBS
17401LIBS="-ldld $LIBS"
17402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17403/* end confdefs.h. */
17404
17405/* Override any GCC internal prototype to avoid an error.
17406 Use char because int might match the return type of a GCC
17407 builtin and then its argument prototype would still apply. */
17408#ifdef __cplusplus
17409extern "C"
17410#endif
17411char shl_load ();
17412int
17413main ()
17414{
17415return shl_load ();
17416 ;
17417 return 0;
17418}
17419_ACEOF
17420if ac_fn_c_try_link "$LINENO"; then :
17421 ac_cv_lib_dld_shl_load=yes
17422else
17423 ac_cv_lib_dld_shl_load=no
17424fi
17425rm -f core conftest.err conftest.$ac_objext \
17426 conftest$ac_exeext conftest.$ac_ext
17427LIBS=$ac_check_lib_save_LIBS
17428fi
17429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17430$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017431if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017432 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17433else
17434 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017435if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017436 lt_cv_dlopen="dlopen"
17437else
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17439$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017440if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017441 $as_echo_n "(cached) " >&6
17442else
17443 ac_check_lib_save_LIBS=$LIBS
17444LIBS="-ldl $LIBS"
17445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17446/* end confdefs.h. */
17447
17448/* Override any GCC internal prototype to avoid an error.
17449 Use char because int might match the return type of a GCC
17450 builtin and then its argument prototype would still apply. */
17451#ifdef __cplusplus
17452extern "C"
17453#endif
17454char dlopen ();
17455int
17456main ()
17457{
17458return dlopen ();
17459 ;
17460 return 0;
17461}
17462_ACEOF
17463if ac_fn_c_try_link "$LINENO"; then :
17464 ac_cv_lib_dl_dlopen=yes
17465else
17466 ac_cv_lib_dl_dlopen=no
17467fi
17468rm -f core conftest.err conftest.$ac_objext \
17469 conftest$ac_exeext conftest.$ac_ext
17470LIBS=$ac_check_lib_save_LIBS
17471fi
17472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17473$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017474if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017475 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17476else
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17478$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017479if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017480 $as_echo_n "(cached) " >&6
17481else
17482 ac_check_lib_save_LIBS=$LIBS
17483LIBS="-lsvld $LIBS"
17484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17485/* end confdefs.h. */
17486
17487/* Override any GCC internal prototype to avoid an error.
17488 Use char because int might match the return type of a GCC
17489 builtin and then its argument prototype would still apply. */
17490#ifdef __cplusplus
17491extern "C"
17492#endif
17493char dlopen ();
17494int
17495main ()
17496{
17497return dlopen ();
17498 ;
17499 return 0;
17500}
17501_ACEOF
17502if ac_fn_c_try_link "$LINENO"; then :
17503 ac_cv_lib_svld_dlopen=yes
17504else
17505 ac_cv_lib_svld_dlopen=no
17506fi
17507rm -f core conftest.err conftest.$ac_objext \
17508 conftest$ac_exeext conftest.$ac_ext
17509LIBS=$ac_check_lib_save_LIBS
17510fi
17511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17512$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017513if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017514 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17515else
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17517$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017518if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017519 $as_echo_n "(cached) " >&6
17520else
17521 ac_check_lib_save_LIBS=$LIBS
17522LIBS="-ldld $LIBS"
17523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524/* end confdefs.h. */
17525
17526/* Override any GCC internal prototype to avoid an error.
17527 Use char because int might match the return type of a GCC
17528 builtin and then its argument prototype would still apply. */
17529#ifdef __cplusplus
17530extern "C"
17531#endif
17532char dld_link ();
17533int
17534main ()
17535{
17536return dld_link ();
17537 ;
17538 return 0;
17539}
17540_ACEOF
17541if ac_fn_c_try_link "$LINENO"; then :
17542 ac_cv_lib_dld_dld_link=yes
17543else
17544 ac_cv_lib_dld_dld_link=no
17545fi
17546rm -f core conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
17548LIBS=$ac_check_lib_save_LIBS
17549fi
17550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17551$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017552if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017553 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17554fi
17555
17556
17557fi
17558
17559
17560fi
17561
17562
17563fi
17564
17565
17566fi
17567
17568
17569fi
17570
17571 ;;
17572 esac
17573
17574 if test "x$lt_cv_dlopen" != xno; then
17575 enable_dlopen=yes
17576 else
17577 enable_dlopen=no
17578 fi
17579
17580 case $lt_cv_dlopen in
17581 dlopen)
17582 save_CPPFLAGS="$CPPFLAGS"
17583 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17584
17585 save_LDFLAGS="$LDFLAGS"
17586 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17587
17588 save_LIBS="$LIBS"
17589 LIBS="$lt_cv_dlopen_libs $LIBS"
17590
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17592$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017593if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017594 $as_echo_n "(cached) " >&6
17595else
17596 if test "$cross_compiling" = yes; then :
17597 lt_cv_dlopen_self=cross
17598else
17599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17600 lt_status=$lt_dlunknown
17601 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017602#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017603#include "confdefs.h"
17604
17605#if HAVE_DLFCN_H
17606#include <dlfcn.h>
17607#endif
17608
17609#include <stdio.h>
17610
17611#ifdef RTLD_GLOBAL
17612# define LT_DLGLOBAL RTLD_GLOBAL
17613#else
17614# ifdef DL_GLOBAL
17615# define LT_DLGLOBAL DL_GLOBAL
17616# else
17617# define LT_DLGLOBAL 0
17618# endif
17619#endif
17620
17621/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17622 find out it does not work in some platform. */
17623#ifndef LT_DLLAZY_OR_NOW
17624# ifdef RTLD_LAZY
17625# define LT_DLLAZY_OR_NOW RTLD_LAZY
17626# else
17627# ifdef DL_LAZY
17628# define LT_DLLAZY_OR_NOW DL_LAZY
17629# else
17630# ifdef RTLD_NOW
17631# define LT_DLLAZY_OR_NOW RTLD_NOW
17632# else
17633# ifdef DL_NOW
17634# define LT_DLLAZY_OR_NOW DL_NOW
17635# else
17636# define LT_DLLAZY_OR_NOW 0
17637# endif
17638# endif
17639# endif
17640# endif
17641#endif
17642
cristy0c60a692010-11-04 01:09:47 +000017643/* When -fvisbility=hidden is used, assume the code has been annotated
17644 correspondingly for the symbols needed. */
17645#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017646int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017647#endif
17648
cristyda16f162011-02-19 23:52:17 +000017649int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017650int main ()
17651{
17652 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17653 int status = $lt_dlunknown;
17654
17655 if (self)
17656 {
17657 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017658 else
17659 {
17660 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17661 else puts (dlerror ());
17662 }
cristy73bd4a52010-10-05 11:24:23 +000017663 /* dlclose (self); */
17664 }
17665 else
17666 puts (dlerror ());
17667
17668 return status;
17669}
17670_LT_EOF
17671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17672 (eval $ac_link) 2>&5
17673 ac_status=$?
17674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17675 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17676 (./conftest; exit; ) >&5 2>/dev/null
17677 lt_status=$?
17678 case x$lt_status in
17679 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17680 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17681 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17682 esac
17683 else :
17684 # compilation failed
17685 lt_cv_dlopen_self=no
17686 fi
17687fi
17688rm -fr conftest*
17689
17690
17691fi
17692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17693$as_echo "$lt_cv_dlopen_self" >&6; }
17694
17695 if test "x$lt_cv_dlopen_self" = xyes; then
17696 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17698$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017699if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017700 $as_echo_n "(cached) " >&6
17701else
17702 if test "$cross_compiling" = yes; then :
17703 lt_cv_dlopen_self_static=cross
17704else
17705 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17706 lt_status=$lt_dlunknown
17707 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017708#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017709#include "confdefs.h"
17710
17711#if HAVE_DLFCN_H
17712#include <dlfcn.h>
17713#endif
17714
17715#include <stdio.h>
17716
17717#ifdef RTLD_GLOBAL
17718# define LT_DLGLOBAL RTLD_GLOBAL
17719#else
17720# ifdef DL_GLOBAL
17721# define LT_DLGLOBAL DL_GLOBAL
17722# else
17723# define LT_DLGLOBAL 0
17724# endif
17725#endif
17726
17727/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17728 find out it does not work in some platform. */
17729#ifndef LT_DLLAZY_OR_NOW
17730# ifdef RTLD_LAZY
17731# define LT_DLLAZY_OR_NOW RTLD_LAZY
17732# else
17733# ifdef DL_LAZY
17734# define LT_DLLAZY_OR_NOW DL_LAZY
17735# else
17736# ifdef RTLD_NOW
17737# define LT_DLLAZY_OR_NOW RTLD_NOW
17738# else
17739# ifdef DL_NOW
17740# define LT_DLLAZY_OR_NOW DL_NOW
17741# else
17742# define LT_DLLAZY_OR_NOW 0
17743# endif
17744# endif
17745# endif
17746# endif
17747#endif
17748
cristy0c60a692010-11-04 01:09:47 +000017749/* When -fvisbility=hidden is used, assume the code has been annotated
17750 correspondingly for the symbols needed. */
17751#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017752int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017753#endif
17754
cristyda16f162011-02-19 23:52:17 +000017755int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017756int main ()
17757{
17758 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17759 int status = $lt_dlunknown;
17760
17761 if (self)
17762 {
17763 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017764 else
17765 {
17766 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17767 else puts (dlerror ());
17768 }
cristy73bd4a52010-10-05 11:24:23 +000017769 /* dlclose (self); */
17770 }
17771 else
17772 puts (dlerror ());
17773
17774 return status;
17775}
17776_LT_EOF
17777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17778 (eval $ac_link) 2>&5
17779 ac_status=$?
17780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17781 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17782 (./conftest; exit; ) >&5 2>/dev/null
17783 lt_status=$?
17784 case x$lt_status in
17785 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17786 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17787 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17788 esac
17789 else :
17790 # compilation failed
17791 lt_cv_dlopen_self_static=no
17792 fi
17793fi
17794rm -fr conftest*
17795
17796
17797fi
17798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17799$as_echo "$lt_cv_dlopen_self_static" >&6; }
17800 fi
17801
17802 CPPFLAGS="$save_CPPFLAGS"
17803 LDFLAGS="$save_LDFLAGS"
17804 LIBS="$save_LIBS"
17805 ;;
17806 esac
17807
17808 case $lt_cv_dlopen_self in
17809 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17810 *) enable_dlopen_self=unknown ;;
17811 esac
17812
17813 case $lt_cv_dlopen_self_static in
17814 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17815 *) enable_dlopen_self_static=unknown ;;
17816 esac
17817fi
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835striplib=
17836old_striplib=
17837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17838$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17839if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17840 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17841 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17843$as_echo "yes" >&6; }
17844else
17845# FIXME - insert some real tests, host_os isn't really good enough
17846 case $host_os in
17847 darwin*)
17848 if test -n "$STRIP" ; then
17849 striplib="$STRIP -x"
17850 old_striplib="$STRIP -S"
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17852$as_echo "yes" >&6; }
17853 else
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17855$as_echo "no" >&6; }
17856 fi
17857 ;;
17858 *)
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17860$as_echo "no" >&6; }
17861 ;;
17862 esac
17863fi
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876 # Report which library types will actually be built
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17878$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17880$as_echo "$can_build_shared" >&6; }
17881
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17883$as_echo_n "checking whether to build shared libraries... " >&6; }
17884 test "$can_build_shared" = "no" && enable_shared=no
17885
17886 # On AIX, shared libraries and static libraries use the same namespace, and
17887 # are all built from PIC.
17888 case $host_os in
17889 aix3*)
17890 test "$enable_shared" = yes && enable_static=no
17891 if test -n "$RANLIB"; then
17892 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17893 postinstall_cmds='$RANLIB $lib'
17894 fi
17895 ;;
17896
17897 aix[4-9]*)
17898 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17899 test "$enable_shared" = yes && enable_static=no
17900 fi
17901 ;;
17902 esac
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17904$as_echo "$enable_shared" >&6; }
17905
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17907$as_echo_n "checking whether to build static libraries... " >&6; }
17908 # Make sure either enable_shared or enable_static is yes.
17909 test "$enable_shared" = yes || enable_static=yes
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17911$as_echo "$enable_static" >&6; }
17912
17913
17914
17915
17916fi
17917ac_ext=c
17918ac_cpp='$CPP $CPPFLAGS'
17919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17921ac_compiler_gnu=$ac_cv_c_compiler_gnu
17922
17923CC="$lt_save_CC"
17924
cristy0c60a692010-11-04 01:09:47 +000017925 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17926 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17927 (test "X$CXX" != "Xg++"))) ; then
17928 ac_ext=cpp
17929ac_cpp='$CXXCPP $CPPFLAGS'
17930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17934$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17935if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017936 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017937 $as_echo_n "(cached) " >&6
17938else
17939 # Double quotes because CXXCPP needs to be expanded
17940 for CXXCPP in "$CXX -E" "/lib/cpp"
17941 do
17942 ac_preproc_ok=false
17943for ac_cxx_preproc_warn_flag in '' yes
17944do
17945 # Use a header file that comes with gcc, so configuring glibc
17946 # with a fresh cross-compiler works.
17947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17948 # <limits.h> exists even on freestanding compilers.
17949 # On the NeXT, cc -E runs the code through the compiler's parser,
17950 # not just through cpp. "Syntax error" is here to catch this case.
17951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17952/* end confdefs.h. */
17953#ifdef __STDC__
17954# include <limits.h>
17955#else
17956# include <assert.h>
17957#endif
17958 Syntax error
17959_ACEOF
17960if ac_fn_cxx_try_cpp "$LINENO"; then :
17961
17962else
17963 # Broken: fails on valid input.
17964continue
17965fi
cristyda16f162011-02-19 23:52:17 +000017966rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017967
17968 # OK, works on sane cases. Now check whether nonexistent headers
17969 # can be detected and how.
17970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17971/* end confdefs.h. */
17972#include <ac_nonexistent.h>
17973_ACEOF
17974if ac_fn_cxx_try_cpp "$LINENO"; then :
17975 # Broken: success on invalid input.
17976continue
17977else
17978 # Passes both tests.
17979ac_preproc_ok=:
17980break
17981fi
cristyda16f162011-02-19 23:52:17 +000017982rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017983
17984done
17985# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017986rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017987if $ac_preproc_ok; then :
17988 break
17989fi
17990
17991 done
17992 ac_cv_prog_CXXCPP=$CXXCPP
17993
17994fi
17995 CXXCPP=$ac_cv_prog_CXXCPP
17996else
17997 ac_cv_prog_CXXCPP=$CXXCPP
17998fi
17999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18000$as_echo "$CXXCPP" >&6; }
18001ac_preproc_ok=false
18002for ac_cxx_preproc_warn_flag in '' yes
18003do
18004 # Use a header file that comes with gcc, so configuring glibc
18005 # with a fresh cross-compiler works.
18006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18007 # <limits.h> exists even on freestanding compilers.
18008 # On the NeXT, cc -E runs the code through the compiler's parser,
18009 # not just through cpp. "Syntax error" is here to catch this case.
18010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18011/* end confdefs.h. */
18012#ifdef __STDC__
18013# include <limits.h>
18014#else
18015# include <assert.h>
18016#endif
18017 Syntax error
18018_ACEOF
18019if ac_fn_cxx_try_cpp "$LINENO"; then :
18020
18021else
18022 # Broken: fails on valid input.
18023continue
18024fi
cristyda16f162011-02-19 23:52:17 +000018025rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018026
18027 # OK, works on sane cases. Now check whether nonexistent headers
18028 # can be detected and how.
18029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18030/* end confdefs.h. */
18031#include <ac_nonexistent.h>
18032_ACEOF
18033if ac_fn_cxx_try_cpp "$LINENO"; then :
18034 # Broken: success on invalid input.
18035continue
18036else
18037 # Passes both tests.
18038ac_preproc_ok=:
18039break
18040fi
cristyda16f162011-02-19 23:52:17 +000018041rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018042
18043done
18044# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018045rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018046if $ac_preproc_ok; then :
18047
18048else
18049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18051as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18052See \`config.log' for more details" "$LINENO" 5; }
18053fi
18054
18055ac_ext=c
18056ac_cpp='$CPP $CPPFLAGS'
18057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18059ac_compiler_gnu=$ac_cv_c_compiler_gnu
18060
18061else
18062 _lt_caught_CXX_error=yes
18063fi
cristy73bd4a52010-10-05 11:24:23 +000018064
18065ac_ext=cpp
18066ac_cpp='$CXXCPP $CPPFLAGS'
18067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18070
18071archive_cmds_need_lc_CXX=no
18072allow_undefined_flag_CXX=
18073always_export_symbols_CXX=no
18074archive_expsym_cmds_CXX=
18075compiler_needs_object_CXX=no
18076export_dynamic_flag_spec_CXX=
18077hardcode_direct_CXX=no
18078hardcode_direct_absolute_CXX=no
18079hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018080hardcode_libdir_separator_CXX=
18081hardcode_minus_L_CXX=no
18082hardcode_shlibpath_var_CXX=unsupported
18083hardcode_automatic_CXX=no
18084inherit_rpath_CXX=no
18085module_cmds_CXX=
18086module_expsym_cmds_CXX=
18087link_all_deplibs_CXX=unknown
18088old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018089reload_flag_CXX=$reload_flag
18090reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018091no_undefined_flag_CXX=
18092whole_archive_flag_spec_CXX=
18093enable_shared_with_static_runtimes_CXX=no
18094
18095# Source file extension for C++ test sources.
18096ac_ext=cpp
18097
18098# Object file extension for compiled C++ test sources.
18099objext=o
18100objext_CXX=$objext
18101
18102# No sense in running all these tests if we already determined that
18103# the CXX compiler isn't working. Some variables (like enable_shared)
18104# are currently assumed to apply to all compilers on this platform,
18105# and will be corrupted by setting them based on a non-working compiler.
18106if test "$_lt_caught_CXX_error" != yes; then
18107 # Code to be used in simple compile tests
18108 lt_simple_compile_test_code="int some_variable = 0;"
18109
18110 # Code to be used in simple link tests
18111 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18112
18113 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18114
18115
18116
18117
18118
18119
18120# If no C compiler was specified, use CC.
18121LTCC=${LTCC-"$CC"}
18122
18123# If no C compiler flags were specified, use CFLAGS.
18124LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18125
18126# Allow CC to be a program name with arguments.
18127compiler=$CC
18128
18129
18130 # save warnings/boilerplate of simple test code
18131 ac_outfile=conftest.$ac_objext
18132echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18133eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18134_lt_compiler_boilerplate=`cat conftest.err`
18135$RM conftest*
18136
18137 ac_outfile=conftest.$ac_objext
18138echo "$lt_simple_link_test_code" >conftest.$ac_ext
18139eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18140_lt_linker_boilerplate=`cat conftest.err`
18141$RM -r conftest*
18142
18143
18144 # Allow CC to be a program name with arguments.
18145 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018146 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018147 lt_save_LD=$LD
18148 lt_save_GCC=$GCC
18149 GCC=$GXX
18150 lt_save_with_gnu_ld=$with_gnu_ld
18151 lt_save_path_LD=$lt_cv_path_LD
18152 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18153 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18154 else
18155 $as_unset lt_cv_prog_gnu_ld
18156 fi
18157 if test -n "${lt_cv_path_LDCXX+set}"; then
18158 lt_cv_path_LD=$lt_cv_path_LDCXX
18159 else
18160 $as_unset lt_cv_path_LD
18161 fi
18162 test -z "${LDCXX+set}" || LD=$LDCXX
18163 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018164 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018165 compiler=$CC
18166 compiler_CXX=$CC
18167 for cc_temp in $compiler""; do
18168 case $cc_temp in
18169 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18170 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18171 \-*) ;;
18172 *) break;;
18173 esac
18174done
cristy0c60a692010-11-04 01:09:47 +000018175cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018176
18177
18178 if test -n "$compiler"; then
18179 # We don't want -fno-exception when compiling C++ code, so set the
18180 # no_builtin_flag separately
18181 if test "$GXX" = yes; then
18182 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18183 else
18184 lt_prog_compiler_no_builtin_flag_CXX=
18185 fi
18186
18187 if test "$GXX" = yes; then
18188 # Set up default GNU C++ configuration
18189
18190
18191
18192# Check whether --with-gnu-ld was given.
18193if test "${with_gnu_ld+set}" = set; then :
18194 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18195else
18196 with_gnu_ld=no
18197fi
18198
18199ac_prog=ld
18200if test "$GCC" = yes; then
18201 # Check if gcc -print-prog-name=ld gives a path.
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18203$as_echo_n "checking for ld used by $CC... " >&6; }
18204 case $host in
18205 *-*-mingw*)
18206 # gcc leaves a trailing carriage return which upsets mingw
18207 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18208 *)
18209 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18210 esac
18211 case $ac_prog in
18212 # Accept absolute paths.
18213 [\\/]* | ?:[\\/]*)
18214 re_direlt='/[^/][^/]*/\.\./'
18215 # Canonicalize the pathname of ld
18216 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18217 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18218 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18219 done
18220 test -z "$LD" && LD="$ac_prog"
18221 ;;
18222 "")
18223 # If it fails, then pretend we aren't using GCC.
18224 ac_prog=ld
18225 ;;
18226 *)
18227 # If it is relative, then search for the first ld in PATH.
18228 with_gnu_ld=unknown
18229 ;;
18230 esac
18231elif test "$with_gnu_ld" = yes; then
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18233$as_echo_n "checking for GNU ld... " >&6; }
18234else
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18236$as_echo_n "checking for non-GNU ld... " >&6; }
18237fi
cristyda16f162011-02-19 23:52:17 +000018238if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018239 $as_echo_n "(cached) " >&6
18240else
18241 if test -z "$LD"; then
18242 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18243 for ac_dir in $PATH; do
18244 IFS="$lt_save_ifs"
18245 test -z "$ac_dir" && ac_dir=.
18246 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18247 lt_cv_path_LD="$ac_dir/$ac_prog"
18248 # Check to see if the program is GNU ld. I'd rather use --version,
18249 # but apparently some variants of GNU ld only accept -v.
18250 # Break only if it was the GNU/non-GNU ld that we prefer.
18251 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18252 *GNU* | *'with BFD'*)
18253 test "$with_gnu_ld" != no && break
18254 ;;
18255 *)
18256 test "$with_gnu_ld" != yes && break
18257 ;;
18258 esac
18259 fi
18260 done
18261 IFS="$lt_save_ifs"
18262else
18263 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18264fi
18265fi
18266
18267LD="$lt_cv_path_LD"
18268if test -n "$LD"; then
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18270$as_echo "$LD" >&6; }
18271else
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18273$as_echo "no" >&6; }
18274fi
cristy98dddb52010-11-04 00:30:15 +000018275test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18277$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018278if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018279 $as_echo_n "(cached) " >&6
18280else
18281 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18282case `$LD -v 2>&1 </dev/null` in
18283*GNU* | *'with BFD'*)
18284 lt_cv_prog_gnu_ld=yes
18285 ;;
18286*)
18287 lt_cv_prog_gnu_ld=no
18288 ;;
18289esac
18290fi
18291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18292$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18293with_gnu_ld=$lt_cv_prog_gnu_ld
18294
18295
18296
18297
18298
18299
18300
18301 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18302 # archiving commands below assume that GNU ld is being used.
18303 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018304 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18305 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 +000018306
18307 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18308 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18309
18310 # If archive_cmds runs LD, not CC, wlarc should be empty
18311 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18312 # investigate it a little bit more. (MM)
18313 wlarc='${wl}'
18314
18315 # ancient GNU ld didn't support --whole-archive et. al.
18316 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18317 $GREP 'no-whole-archive' > /dev/null; then
18318 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18319 else
18320 whole_archive_flag_spec_CXX=
18321 fi
18322 else
18323 with_gnu_ld=no
18324 wlarc=
18325
18326 # A generic and very simple default shared library creation
18327 # command for GNU C++ for the case where it uses the native
18328 # linker, instead of GNU ld. If possible, this setting should
18329 # overridden to take advantage of the native linker features on
18330 # the platform it is being used on.
18331 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18332 fi
18333
18334 # Commands to make compiler produce verbose output that lists
18335 # what "hidden" libraries, object files and flags are used when
18336 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018337 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018338
18339 else
18340 GXX=no
18341 with_gnu_ld=no
18342 wlarc=
18343 fi
18344
18345 # PORTME: fill in a description of your system's C++ link characteristics
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18347$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18348 ld_shlibs_CXX=yes
18349 case $host_os in
18350 aix3*)
18351 # FIXME: insert proper C++ library support
18352 ld_shlibs_CXX=no
18353 ;;
18354 aix[4-9]*)
18355 if test "$host_cpu" = ia64; then
18356 # On IA64, the linker does run time linking by default, so we don't
18357 # have to do anything special.
18358 aix_use_runtimelinking=no
18359 exp_sym_flag='-Bexport'
18360 no_entry_flag=""
18361 else
18362 aix_use_runtimelinking=no
18363
18364 # Test if we are trying to use run time linking or normal
18365 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18366 # need to do runtime linking.
18367 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18368 for ld_flag in $LDFLAGS; do
18369 case $ld_flag in
18370 *-brtl*)
18371 aix_use_runtimelinking=yes
18372 break
18373 ;;
18374 esac
18375 done
18376 ;;
18377 esac
18378
18379 exp_sym_flag='-bexport'
18380 no_entry_flag='-bnoentry'
18381 fi
18382
18383 # When large executables or shared objects are built, AIX ld can
18384 # have problems creating the table of contents. If linking a library
18385 # or program results in "error TOC overflow" add -mminimal-toc to
18386 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18387 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18388
18389 archive_cmds_CXX=''
18390 hardcode_direct_CXX=yes
18391 hardcode_direct_absolute_CXX=yes
18392 hardcode_libdir_separator_CXX=':'
18393 link_all_deplibs_CXX=yes
18394 file_list_spec_CXX='${wl}-f,'
18395
18396 if test "$GXX" = yes; then
18397 case $host_os in aix4.[012]|aix4.[012].*)
18398 # We only want to do this on AIX 4.2 and lower, the check
18399 # below for broken collect2 doesn't work under 4.3+
18400 collect2name=`${CC} -print-prog-name=collect2`
18401 if test -f "$collect2name" &&
18402 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18403 then
18404 # We have reworked collect2
18405 :
18406 else
18407 # We have old collect2
18408 hardcode_direct_CXX=unsupported
18409 # It fails to find uninstalled libraries when the uninstalled
18410 # path is not listed in the libpath. Setting hardcode_minus_L
18411 # to unsupported forces relinking
18412 hardcode_minus_L_CXX=yes
18413 hardcode_libdir_flag_spec_CXX='-L$libdir'
18414 hardcode_libdir_separator_CXX=
18415 fi
18416 esac
18417 shared_flag='-shared'
18418 if test "$aix_use_runtimelinking" = yes; then
18419 shared_flag="$shared_flag "'${wl}-G'
18420 fi
18421 else
18422 # not using gcc
18423 if test "$host_cpu" = ia64; then
18424 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18425 # chokes on -Wl,-G. The following line is correct:
18426 shared_flag='-G'
18427 else
18428 if test "$aix_use_runtimelinking" = yes; then
18429 shared_flag='${wl}-G'
18430 else
18431 shared_flag='${wl}-bM:SRE'
18432 fi
18433 fi
18434 fi
18435
18436 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18437 # It seems that -bexpall does not export symbols beginning with
18438 # underscore (_), so it is better to generate a list of symbols to
18439 # export.
18440 always_export_symbols_CXX=yes
18441 if test "$aix_use_runtimelinking" = yes; then
18442 # Warning - without using the other runtime loading flags (-brtl),
18443 # -berok will link without error, but may produce a broken library.
18444 allow_undefined_flag_CXX='-berok'
18445 # Determine the default libpath from the value encoded in an empty
18446 # executable.
cristyda16f162011-02-19 23:52:17 +000018447 if test "${lt_cv_aix_libpath+set}" = set; then
18448 aix_libpath=$lt_cv_aix_libpath
18449else
18450 if ${lt_cv_aix_libpath__CXX+:} false; then :
18451 $as_echo_n "(cached) " >&6
18452else
18453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018454/* end confdefs.h. */
18455
18456int
18457main ()
18458{
18459
18460 ;
18461 return 0;
18462}
18463_ACEOF
18464if ac_fn_cxx_try_link "$LINENO"; then :
18465
cristyda16f162011-02-19 23:52:17 +000018466 lt_aix_libpath_sed='
18467 /Import File Strings/,/^$/ {
18468 /^0/ {
18469 s/^0 *\([^ ]*\) *$/\1/
18470 p
18471 }
18472 }'
18473 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18474 # Check for a 64-bit object if we didn't find anything.
18475 if test -z "$lt_cv_aix_libpath__CXX"; then
18476 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18477 fi
cristy73bd4a52010-10-05 11:24:23 +000018478fi
18479rm -f core conftest.err conftest.$ac_objext \
18480 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018481 if test -z "$lt_cv_aix_libpath__CXX"; then
18482 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18483 fi
18484
18485fi
18486
18487 aix_libpath=$lt_cv_aix_libpath__CXX
18488fi
cristy73bd4a52010-10-05 11:24:23 +000018489
18490 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18491
cristy0c60a692010-11-04 01:09:47 +000018492 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 +000018493 else
18494 if test "$host_cpu" = ia64; then
18495 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18496 allow_undefined_flag_CXX="-z nodefs"
18497 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"
18498 else
18499 # Determine the default libpath from the value encoded in an
18500 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018501 if test "${lt_cv_aix_libpath+set}" = set; then
18502 aix_libpath=$lt_cv_aix_libpath
18503else
18504 if ${lt_cv_aix_libpath__CXX+:} false; then :
18505 $as_echo_n "(cached) " >&6
18506else
18507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018508/* end confdefs.h. */
18509
18510int
18511main ()
18512{
18513
18514 ;
18515 return 0;
18516}
18517_ACEOF
18518if ac_fn_cxx_try_link "$LINENO"; then :
18519
cristyda16f162011-02-19 23:52:17 +000018520 lt_aix_libpath_sed='
18521 /Import File Strings/,/^$/ {
18522 /^0/ {
18523 s/^0 *\([^ ]*\) *$/\1/
18524 p
18525 }
18526 }'
18527 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18528 # Check for a 64-bit object if we didn't find anything.
18529 if test -z "$lt_cv_aix_libpath__CXX"; then
18530 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18531 fi
cristy73bd4a52010-10-05 11:24:23 +000018532fi
18533rm -f core conftest.err conftest.$ac_objext \
18534 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018535 if test -z "$lt_cv_aix_libpath__CXX"; then
18536 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18537 fi
18538
18539fi
18540
18541 aix_libpath=$lt_cv_aix_libpath__CXX
18542fi
cristy73bd4a52010-10-05 11:24:23 +000018543
18544 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18545 # Warning - without using the other run time loading flags,
18546 # -berok will link without error, but may produce a broken library.
18547 no_undefined_flag_CXX=' ${wl}-bernotok'
18548 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018549 if test "$with_gnu_ld" = yes; then
18550 # We only use this code for GNU lds that support --whole-archive.
18551 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18552 else
18553 # Exported symbols can be pulled into shared objects from archives
18554 whole_archive_flag_spec_CXX='$convenience'
18555 fi
cristy73bd4a52010-10-05 11:24:23 +000018556 archive_cmds_need_lc_CXX=yes
18557 # This is similar to how AIX traditionally builds its shared
18558 # libraries.
18559 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'
18560 fi
18561 fi
18562 ;;
18563
18564 beos*)
18565 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18566 allow_undefined_flag_CXX=unsupported
18567 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18568 # support --undefined. This deserves some investigation. FIXME
18569 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18570 else
18571 ld_shlibs_CXX=no
18572 fi
18573 ;;
18574
18575 chorus*)
18576 case $cc_basename in
18577 *)
18578 # FIXME: insert proper C++ library support
18579 ld_shlibs_CXX=no
18580 ;;
18581 esac
18582 ;;
18583
18584 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018585 case $GXX,$cc_basename in
18586 ,cl* | no,cl*)
18587 # Native MSVC
18588 # hardcode_libdir_flag_spec is actually meaningless, as there is
18589 # no search path for DLLs.
18590 hardcode_libdir_flag_spec_CXX=' '
18591 allow_undefined_flag_CXX=unsupported
18592 always_export_symbols_CXX=yes
18593 file_list_spec_CXX='@'
18594 # Tell ltmain to make .lib files, not .a files.
18595 libext=lib
18596 # Tell ltmain to make .dll files, not .so files.
18597 shrext_cmds=".dll"
18598 # FIXME: Setting linknames here is a bad hack.
18599 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18600 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18601 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18602 else
18603 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18604 fi~
18605 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18606 linknames='
18607 # The linker will not automatically build a static lib if we build a DLL.
18608 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18609 enable_shared_with_static_runtimes_CXX=yes
18610 # Don't use ranlib
18611 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18612 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18613 lt_tool_outputfile="@TOOL_OUTPUT@"~
18614 case $lt_outputfile in
18615 *.exe|*.EXE) ;;
18616 *)
18617 lt_outputfile="$lt_outputfile.exe"
18618 lt_tool_outputfile="$lt_tool_outputfile.exe"
18619 ;;
18620 esac~
18621 func_to_tool_file "$lt_outputfile"~
18622 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18623 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18624 $RM "$lt_outputfile.manifest";
18625 fi'
18626 ;;
18627 *)
18628 # g++
18629 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18630 # as there is no search path for DLLs.
18631 hardcode_libdir_flag_spec_CXX='-L$libdir'
18632 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18633 allow_undefined_flag_CXX=unsupported
18634 always_export_symbols_CXX=no
18635 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018636
cristyda16f162011-02-19 23:52:17 +000018637 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18638 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'
18639 # If the export-symbols file already is a .def file (1st line
18640 # is EXPORTS), use it as is; otherwise, prepend...
18641 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18642 cp $export_symbols $output_objdir/$soname.def;
18643 else
18644 echo EXPORTS > $output_objdir/$soname.def;
18645 cat $export_symbols >> $output_objdir/$soname.def;
18646 fi~
18647 $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'
18648 else
18649 ld_shlibs_CXX=no
18650 fi
18651 ;;
18652 esac
18653 ;;
cristy73bd4a52010-10-05 11:24:23 +000018654 darwin* | rhapsody*)
18655
18656
18657 archive_cmds_need_lc_CXX=no
18658 hardcode_direct_CXX=no
18659 hardcode_automatic_CXX=yes
18660 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018661 if test "$lt_cv_ld_force_load" = "yes"; then
18662 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 +000018663
cristy0c60a692010-11-04 01:09:47 +000018664 else
18665 whole_archive_flag_spec_CXX=''
18666 fi
cristy73bd4a52010-10-05 11:24:23 +000018667 link_all_deplibs_CXX=yes
18668 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18669 case $cc_basename in
18670 ifort*) _lt_dar_can_shared=yes ;;
18671 *) _lt_dar_can_shared=$GCC ;;
18672 esac
18673 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018674 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018675 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}"
18676 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18677 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}"
18678 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}"
18679 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18680 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}"
18681 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}"
18682 fi
18683
18684 else
18685 ld_shlibs_CXX=no
18686 fi
18687
18688 ;;
18689
18690 dgux*)
18691 case $cc_basename in
18692 ec++*)
18693 # FIXME: insert proper C++ library support
18694 ld_shlibs_CXX=no
18695 ;;
18696 ghcx*)
18697 # Green Hills C++ Compiler
18698 # FIXME: insert proper C++ library support
18699 ld_shlibs_CXX=no
18700 ;;
18701 *)
18702 # FIXME: insert proper C++ library support
18703 ld_shlibs_CXX=no
18704 ;;
18705 esac
18706 ;;
18707
cristy99bd5232011-12-07 14:38:20 +000018708 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018709 # C++ shared libraries reported to be fairly broken before
18710 # switch to ELF
18711 ld_shlibs_CXX=no
18712 ;;
18713
18714 freebsd-elf*)
18715 archive_cmds_need_lc_CXX=no
18716 ;;
18717
18718 freebsd* | dragonfly*)
18719 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18720 # conventions
18721 ld_shlibs_CXX=yes
18722 ;;
18723
18724 gnu*)
18725 ;;
18726
cristy0c60a692010-11-04 01:09:47 +000018727 haiku*)
18728 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18729 link_all_deplibs_CXX=yes
18730 ;;
18731
cristy73bd4a52010-10-05 11:24:23 +000018732 hpux9*)
18733 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18734 hardcode_libdir_separator_CXX=:
18735 export_dynamic_flag_spec_CXX='${wl}-E'
18736 hardcode_direct_CXX=yes
18737 hardcode_minus_L_CXX=yes # Not in the search PATH,
18738 # but as the default
18739 # location of the library.
18740
18741 case $cc_basename in
18742 CC*)
18743 # FIXME: insert proper C++ library support
18744 ld_shlibs_CXX=no
18745 ;;
18746 aCC*)
18747 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'
18748 # Commands to make compiler produce verbose output that lists
18749 # what "hidden" libraries, object files and flags are used when
18750 # linking a shared library.
18751 #
18752 # There doesn't appear to be a way to prevent this compiler from
18753 # explicitly linking system object files so we need to strip them
18754 # from the output so that they don't get included in the library
18755 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018756 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 +000018757 ;;
18758 *)
18759 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018760 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 +000018761 else
18762 # FIXME: insert proper C++ library support
18763 ld_shlibs_CXX=no
18764 fi
18765 ;;
18766 esac
18767 ;;
18768
18769 hpux10*|hpux11*)
18770 if test $with_gnu_ld = no; then
18771 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18772 hardcode_libdir_separator_CXX=:
18773
18774 case $host_cpu in
18775 hppa*64*|ia64*)
18776 ;;
18777 *)
18778 export_dynamic_flag_spec_CXX='${wl}-E'
18779 ;;
18780 esac
18781 fi
18782 case $host_cpu in
18783 hppa*64*|ia64*)
18784 hardcode_direct_CXX=no
18785 hardcode_shlibpath_var_CXX=no
18786 ;;
18787 *)
18788 hardcode_direct_CXX=yes
18789 hardcode_direct_absolute_CXX=yes
18790 hardcode_minus_L_CXX=yes # Not in the search PATH,
18791 # but as the default
18792 # location of the library.
18793 ;;
18794 esac
18795
18796 case $cc_basename in
18797 CC*)
18798 # FIXME: insert proper C++ library support
18799 ld_shlibs_CXX=no
18800 ;;
18801 aCC*)
18802 case $host_cpu in
18803 hppa*64*)
18804 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18805 ;;
18806 ia64*)
18807 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18808 ;;
18809 *)
18810 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18811 ;;
18812 esac
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.
18816 #
18817 # There doesn't appear to be a way to prevent this compiler from
18818 # explicitly linking system object files so we need to strip them
18819 # from the output so that they don't get included in the library
18820 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018821 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 +000018822 ;;
18823 *)
18824 if test "$GXX" = yes; then
18825 if test $with_gnu_ld = no; then
18826 case $host_cpu in
18827 hppa*64*)
18828 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18829 ;;
18830 ia64*)
cristyda16f162011-02-19 23:52:17 +000018831 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 +000018832 ;;
18833 *)
cristyda16f162011-02-19 23:52:17 +000018834 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 +000018835 ;;
18836 esac
18837 fi
18838 else
18839 # FIXME: insert proper C++ library support
18840 ld_shlibs_CXX=no
18841 fi
18842 ;;
18843 esac
18844 ;;
18845
18846 interix[3-9]*)
18847 hardcode_direct_CXX=no
18848 hardcode_shlibpath_var_CXX=no
18849 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18850 export_dynamic_flag_spec_CXX='${wl}-E'
18851 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18852 # Instead, shared libraries are loaded at an image base (0x10000000 by
18853 # default) and relocated if they conflict, which is a slow very memory
18854 # consuming and fragmenting process. To avoid this, we pick a random,
18855 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18856 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18857 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'
18858 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'
18859 ;;
18860 irix5* | irix6*)
18861 case $cc_basename in
18862 CC*)
18863 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018864 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 +000018865
18866 # Archives containing C++ object files must be created using
18867 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18868 # necessary to make sure instantiated templates are included
18869 # in the archive.
18870 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18871 ;;
18872 *)
18873 if test "$GXX" = yes; then
18874 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018875 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 +000018876 else
cristyda16f162011-02-19 23:52:17 +000018877 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 +000018878 fi
18879 fi
18880 link_all_deplibs_CXX=yes
18881 ;;
18882 esac
18883 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18884 hardcode_libdir_separator_CXX=:
18885 inherit_rpath_CXX=yes
18886 ;;
18887
cristy0c60a692010-11-04 01:09:47 +000018888 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018889 case $cc_basename in
18890 KCC*)
18891 # Kuck and Associates, Inc. (KAI) C++ Compiler
18892
18893 # KCC will only create a shared library if the output file
18894 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18895 # to its proper name (with version) after linking.
18896 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'
18897 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'
18898 # Commands to make compiler produce verbose output that lists
18899 # what "hidden" libraries, object files and flags are used when
18900 # linking a shared library.
18901 #
18902 # There doesn't appear to be a way to prevent this compiler from
18903 # explicitly linking system object files so we need to strip them
18904 # from the output so that they don't get included in the library
18905 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018906 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 +000018907
18908 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18909 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18910
18911 # Archives containing C++ object files must be created using
18912 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18913 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18914 ;;
18915 icpc* | ecpc* )
18916 # Intel C++
18917 with_gnu_ld=yes
18918 # version 8.0 and above of icpc choke on multiply defined symbols
18919 # if we add $predep_objects and $postdep_objects, however 7.1 and
18920 # earlier do not add the objects themselves.
18921 case `$CC -V 2>&1` in
18922 *"Version 7."*)
18923 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18924 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'
18925 ;;
18926 *) # Version 8.0 or newer
18927 tmp_idyn=
18928 case $host_cpu in
18929 ia64*) tmp_idyn=' -i_dynamic';;
18930 esac
18931 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18932 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'
18933 ;;
18934 esac
18935 archive_cmds_need_lc_CXX=no
18936 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18937 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18938 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18939 ;;
18940 pgCC* | pgcpp*)
18941 # Portland Group C++ compiler
18942 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018943 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018944 prelink_cmds_CXX='tpldir=Template.dir~
18945 rm -rf $tpldir~
18946 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018947 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018948 old_archive_cmds_CXX='tpldir=Template.dir~
18949 rm -rf $tpldir~
18950 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018951 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018952 $RANLIB $oldlib'
18953 archive_cmds_CXX='tpldir=Template.dir~
18954 rm -rf $tpldir~
18955 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018956 $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 +000018957 archive_expsym_cmds_CXX='tpldir=Template.dir~
18958 rm -rf $tpldir~
18959 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018960 $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 +000018961 ;;
cristy0c60a692010-11-04 01:09:47 +000018962 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018963 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18964 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'
18965 ;;
18966 esac
18967
18968 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18969 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018970 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 +000018971 ;;
18972 cxx*)
18973 # Compaq C++
18974 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18975 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'
18976
18977 runpath_var=LD_RUN_PATH
18978 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18979 hardcode_libdir_separator_CXX=:
18980
18981 # Commands to make compiler produce verbose output that lists
18982 # what "hidden" libraries, object files and flags are used when
18983 # linking a shared library.
18984 #
18985 # There doesn't appear to be a way to prevent this compiler from
18986 # explicitly linking system object files so we need to strip them
18987 # from the output so that they don't get included in the library
18988 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018989 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 +000018990 ;;
cristy0c60a692010-11-04 01:09:47 +000018991 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018992 # IBM XL 8.0 on PPC, with GNU ld
18993 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18994 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18995 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18996 if test "x$supports_anon_versioning" = xyes; then
18997 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18998 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18999 echo "local: *; };" >> $output_objdir/$libname.ver~
19000 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19001 fi
19002 ;;
19003 *)
19004 case `$CC -V 2>&1 | sed 5q` in
19005 *Sun\ C*)
19006 # Sun C++ 5.9
19007 no_undefined_flag_CXX=' -zdefs'
19008 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19009 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'
19010 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019011 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 +000019012 compiler_needs_object_CXX=yes
19013
19014 # Not sure whether something based on
19015 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19016 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019017 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019018
19019 # Archives containing C++ object files must be created using
19020 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19021 # necessary to make sure instantiated templates are included
19022 # in the archive.
19023 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19024 ;;
19025 esac
19026 ;;
19027 esac
19028 ;;
19029
19030 lynxos*)
19031 # FIXME: insert proper C++ library support
19032 ld_shlibs_CXX=no
19033 ;;
19034
19035 m88k*)
19036 # FIXME: insert proper C++ library support
19037 ld_shlibs_CXX=no
19038 ;;
19039
19040 mvs*)
19041 case $cc_basename in
19042 cxx*)
19043 # FIXME: insert proper C++ library support
19044 ld_shlibs_CXX=no
19045 ;;
19046 *)
19047 # FIXME: insert proper C++ library support
19048 ld_shlibs_CXX=no
19049 ;;
19050 esac
19051 ;;
19052
19053 netbsd*)
19054 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19055 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19056 wlarc=
19057 hardcode_libdir_flag_spec_CXX='-R$libdir'
19058 hardcode_direct_CXX=yes
19059 hardcode_shlibpath_var_CXX=no
19060 fi
19061 # Workaround some broken pre-1.5 toolchains
19062 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19063 ;;
19064
19065 *nto* | *qnx*)
19066 ld_shlibs_CXX=yes
19067 ;;
19068
19069 openbsd2*)
19070 # C++ shared libraries are fairly broken
19071 ld_shlibs_CXX=no
19072 ;;
19073
19074 openbsd*)
19075 if test -f /usr/libexec/ld.so; then
19076 hardcode_direct_CXX=yes
19077 hardcode_shlibpath_var_CXX=no
19078 hardcode_direct_absolute_CXX=yes
19079 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19080 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19081 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19082 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19083 export_dynamic_flag_spec_CXX='${wl}-E'
19084 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19085 fi
cristy0c60a692010-11-04 01:09:47 +000019086 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019087 else
19088 ld_shlibs_CXX=no
19089 fi
19090 ;;
19091
19092 osf3* | osf4* | osf5*)
19093 case $cc_basename in
19094 KCC*)
19095 # Kuck and Associates, Inc. (KAI) C++ Compiler
19096
19097 # KCC will only create a shared library if the output file
19098 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19099 # to its proper name (with version) after linking.
19100 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'
19101
19102 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19103 hardcode_libdir_separator_CXX=:
19104
19105 # Archives containing C++ object files must be created using
19106 # the KAI C++ compiler.
19107 case $host in
19108 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19109 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19110 esac
19111 ;;
19112 RCC*)
19113 # Rational C++ 2.4.1
19114 # FIXME: insert proper C++ library support
19115 ld_shlibs_CXX=no
19116 ;;
19117 cxx*)
19118 case $host in
19119 osf3*)
19120 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019121 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 +000019122 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19123 ;;
19124 *)
19125 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019126 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 +000019127 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19128 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019129 $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 +000019130 $RM $lib.exp'
19131 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19132 ;;
19133 esac
19134
19135 hardcode_libdir_separator_CXX=:
19136
19137 # Commands to make compiler produce verbose output that lists
19138 # what "hidden" libraries, object files and flags are used when
19139 # linking a shared library.
19140 #
19141 # There doesn't appear to be a way to prevent this compiler from
19142 # explicitly linking system object files so we need to strip them
19143 # from the output so that they don't get included in the library
19144 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019145 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 +000019146 ;;
19147 *)
19148 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19149 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19150 case $host in
19151 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019152 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 +000019153 ;;
19154 *)
cristyda16f162011-02-19 23:52:17 +000019155 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 +000019156 ;;
19157 esac
19158
19159 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19160 hardcode_libdir_separator_CXX=:
19161
19162 # Commands to make compiler produce verbose output that lists
19163 # what "hidden" libraries, object files and flags are used when
19164 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019165 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019166
19167 else
19168 # FIXME: insert proper C++ library support
19169 ld_shlibs_CXX=no
19170 fi
19171 ;;
19172 esac
19173 ;;
19174
19175 psos*)
19176 # FIXME: insert proper C++ library support
19177 ld_shlibs_CXX=no
19178 ;;
19179
19180 sunos4*)
19181 case $cc_basename in
19182 CC*)
19183 # Sun C++ 4.x
19184 # FIXME: insert proper C++ library support
19185 ld_shlibs_CXX=no
19186 ;;
19187 lcc*)
19188 # Lucid
19189 # FIXME: insert proper C++ library support
19190 ld_shlibs_CXX=no
19191 ;;
19192 *)
19193 # FIXME: insert proper C++ library support
19194 ld_shlibs_CXX=no
19195 ;;
19196 esac
19197 ;;
19198
19199 solaris*)
19200 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019201 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019202 # Sun C++ 4.2, 5.x and Centerline C++
19203 archive_cmds_need_lc_CXX=yes
19204 no_undefined_flag_CXX=' -zdefs'
19205 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19206 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19207 $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'
19208
19209 hardcode_libdir_flag_spec_CXX='-R$libdir'
19210 hardcode_shlibpath_var_CXX=no
19211 case $host_os in
19212 solaris2.[0-5] | solaris2.[0-5].*) ;;
19213 *)
19214 # The compiler driver will combine and reorder linker options,
19215 # but understands `-z linker_flag'.
19216 # Supported since Solaris 2.6 (maybe 2.5.1?)
19217 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19218 ;;
19219 esac
19220 link_all_deplibs_CXX=yes
19221
cristy0c60a692010-11-04 01:09:47 +000019222 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019223
19224 # Archives containing C++ object files must be created using
19225 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19226 # necessary to make sure instantiated templates are included
19227 # in the archive.
19228 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19229 ;;
19230 gcx*)
19231 # Green Hills C++ Compiler
19232 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19233
19234 # The C++ compiler must be used to create the archive.
19235 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19236 ;;
19237 *)
19238 # GNU C++ compiler with Solaris linker
19239 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19240 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19241 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019242 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 +000019243 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 +000019244 $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 +000019245
19246 # Commands to make compiler produce verbose output that lists
19247 # what "hidden" libraries, object files and flags are used when
19248 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019249 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019250 else
19251 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19252 # platform.
19253 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19254 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19255 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19256
19257 # Commands to make compiler produce verbose output that lists
19258 # what "hidden" libraries, object files and flags are used when
19259 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019260 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019261 fi
19262
19263 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19264 case $host_os in
19265 solaris2.[0-5] | solaris2.[0-5].*) ;;
19266 *)
19267 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19268 ;;
19269 esac
19270 fi
19271 ;;
19272 esac
19273 ;;
19274
19275 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19276 no_undefined_flag_CXX='${wl}-z,text'
19277 archive_cmds_need_lc_CXX=no
19278 hardcode_shlibpath_var_CXX=no
19279 runpath_var='LD_RUN_PATH'
19280
19281 case $cc_basename in
19282 CC*)
19283 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19284 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19285 ;;
19286 *)
19287 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19288 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19289 ;;
19290 esac
19291 ;;
19292
19293 sysv5* | sco3.2v5* | sco5v6*)
19294 # Note: We can NOT use -z defs as we might desire, because we do not
19295 # link with -lc, and that would cause any symbols used from libc to
19296 # always be unresolved, which means just about no library would
19297 # ever link correctly. If we're not using GNU ld we use -z text
19298 # though, which does catch some bad symbols but isn't as heavy-handed
19299 # as -z defs.
19300 no_undefined_flag_CXX='${wl}-z,text'
19301 allow_undefined_flag_CXX='${wl}-z,nodefs'
19302 archive_cmds_need_lc_CXX=no
19303 hardcode_shlibpath_var_CXX=no
19304 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19305 hardcode_libdir_separator_CXX=':'
19306 link_all_deplibs_CXX=yes
19307 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19308 runpath_var='LD_RUN_PATH'
19309
19310 case $cc_basename in
19311 CC*)
19312 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19313 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 +000019314 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19315 '"$old_archive_cmds_CXX"
19316 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19317 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019318 ;;
19319 *)
19320 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19321 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19322 ;;
19323 esac
19324 ;;
19325
19326 tandem*)
19327 case $cc_basename in
19328 NCC*)
19329 # NonStop-UX NCC 3.20
19330 # FIXME: insert proper C++ library support
19331 ld_shlibs_CXX=no
19332 ;;
19333 *)
19334 # FIXME: insert proper C++ library support
19335 ld_shlibs_CXX=no
19336 ;;
19337 esac
19338 ;;
19339
19340 vxworks*)
19341 # FIXME: insert proper C++ library support
19342 ld_shlibs_CXX=no
19343 ;;
19344
19345 *)
19346 # FIXME: insert proper C++ library support
19347 ld_shlibs_CXX=no
19348 ;;
19349 esac
19350
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19352$as_echo "$ld_shlibs_CXX" >&6; }
19353 test "$ld_shlibs_CXX" = no && can_build_shared=no
19354
19355 GCC_CXX="$GXX"
19356 LD_CXX="$LD"
19357
19358 ## CAVEAT EMPTOR:
19359 ## There is no encapsulation within the following macros, do not change
19360 ## the running order or otherwise move them around unless you know exactly
19361 ## what you are doing...
19362 # Dependencies to place before and after the object being linked:
19363predep_objects_CXX=
19364postdep_objects_CXX=
19365predeps_CXX=
19366postdeps_CXX=
19367compiler_lib_search_path_CXX=
19368
19369cat > conftest.$ac_ext <<_LT_EOF
19370class Foo
19371{
19372public:
19373 Foo (void) { a = 0; }
19374private:
19375 int a;
19376};
19377_LT_EOF
19378
cristyda16f162011-02-19 23:52:17 +000019379
19380_lt_libdeps_save_CFLAGS=$CFLAGS
19381case "$CC $CFLAGS " in #(
19382*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19383*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019384*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019385esac
19386
cristy73bd4a52010-10-05 11:24:23 +000019387if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19388 (eval $ac_compile) 2>&5
19389 ac_status=$?
19390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19391 test $ac_status = 0; }; then
19392 # Parse the compiler output and extract the necessary
19393 # objects, libraries and library flags.
19394
19395 # Sentinel used to keep track of whether or not we are before
19396 # the conftest object file.
19397 pre_test_object_deps_done=no
19398
19399 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019400 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019401
19402 -L* | -R* | -l*)
19403 # Some compilers place space between "-{L,R}" and the path.
19404 # Remove the space.
19405 if test $p = "-L" ||
19406 test $p = "-R"; then
19407 prev=$p
19408 continue
cristy73bd4a52010-10-05 11:24:23 +000019409 fi
19410
cristyda16f162011-02-19 23:52:17 +000019411 # Expand the sysroot to ease extracting the directories later.
19412 if test -z "$prev"; then
19413 case $p in
19414 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19415 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19416 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19417 esac
19418 fi
19419 case $p in
19420 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19421 esac
cristy73bd4a52010-10-05 11:24:23 +000019422 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019423 case ${prev} in
19424 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019425 # Internal compiler library paths should come after those
19426 # provided the user. The postdeps already come after the
19427 # user supplied libs so there is no need to process them.
19428 if test -z "$compiler_lib_search_path_CXX"; then
19429 compiler_lib_search_path_CXX="${prev}${p}"
19430 else
19431 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19432 fi
19433 ;;
19434 # The "-l" case would never come before the object being
19435 # linked, so don't bother handling this case.
19436 esac
19437 else
19438 if test -z "$postdeps_CXX"; then
19439 postdeps_CXX="${prev}${p}"
19440 else
19441 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19442 fi
19443 fi
cristyda16f162011-02-19 23:52:17 +000019444 prev=
cristy73bd4a52010-10-05 11:24:23 +000019445 ;;
19446
cristyda16f162011-02-19 23:52:17 +000019447 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019448 *.$objext)
19449 # This assumes that the test object file only shows up
19450 # once in the compiler output.
19451 if test "$p" = "conftest.$objext"; then
19452 pre_test_object_deps_done=yes
19453 continue
19454 fi
19455
19456 if test "$pre_test_object_deps_done" = no; then
19457 if test -z "$predep_objects_CXX"; then
19458 predep_objects_CXX="$p"
19459 else
19460 predep_objects_CXX="$predep_objects_CXX $p"
19461 fi
19462 else
19463 if test -z "$postdep_objects_CXX"; then
19464 postdep_objects_CXX="$p"
19465 else
19466 postdep_objects_CXX="$postdep_objects_CXX $p"
19467 fi
19468 fi
19469 ;;
19470
19471 *) ;; # Ignore the rest.
19472
19473 esac
19474 done
19475
19476 # Clean up.
19477 rm -f a.out a.exe
19478else
19479 echo "libtool.m4: error: problem compiling CXX test program"
19480fi
19481
19482$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019483CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019484
19485# PORTME: override above test on systems where it is broken
19486case $host_os in
19487interix[3-9]*)
19488 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19489 # hack all around it, let's just trust "g++" to DTRT.
19490 predep_objects_CXX=
19491 postdep_objects_CXX=
19492 postdeps_CXX=
19493 ;;
19494
19495linux*)
19496 case `$CC -V 2>&1 | sed 5q` in
19497 *Sun\ C*)
19498 # Sun C++ 5.9
19499
19500 # The more standards-conforming stlport4 library is
19501 # incompatible with the Cstd library. Avoid specifying
19502 # it if it's in CXXFLAGS. Ignore libCrun as
19503 # -library=stlport4 depends on it.
19504 case " $CXX $CXXFLAGS " in
19505 *" -library=stlport4 "*)
19506 solaris_use_stlport4=yes
19507 ;;
19508 esac
19509
19510 if test "$solaris_use_stlport4" != yes; then
19511 postdeps_CXX='-library=Cstd -library=Crun'
19512 fi
19513 ;;
19514 esac
19515 ;;
19516
19517solaris*)
19518 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019519 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019520 # The more standards-conforming stlport4 library is
19521 # incompatible with the Cstd library. Avoid specifying
19522 # it if it's in CXXFLAGS. Ignore libCrun as
19523 # -library=stlport4 depends on it.
19524 case " $CXX $CXXFLAGS " in
19525 *" -library=stlport4 "*)
19526 solaris_use_stlport4=yes
19527 ;;
19528 esac
19529
19530 # Adding this requires a known-good setup of shared libraries for
19531 # Sun compiler versions before 5.6, else PIC objects from an old
19532 # archive will be linked into the output, leading to subtle bugs.
19533 if test "$solaris_use_stlport4" != yes; then
19534 postdeps_CXX='-library=Cstd -library=Crun'
19535 fi
19536 ;;
19537 esac
19538 ;;
19539esac
19540
19541
19542case " $postdeps_CXX " in
19543*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19544esac
19545 compiler_lib_search_dirs_CXX=
19546if test -n "${compiler_lib_search_path_CXX}"; then
19547 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19548fi
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580 lt_prog_compiler_wl_CXX=
19581lt_prog_compiler_pic_CXX=
19582lt_prog_compiler_static_CXX=
19583
cristy73bd4a52010-10-05 11:24:23 +000019584
19585 # C++ specific cases for pic, static, wl, etc.
19586 if test "$GXX" = yes; then
19587 lt_prog_compiler_wl_CXX='-Wl,'
19588 lt_prog_compiler_static_CXX='-static'
19589
19590 case $host_os in
19591 aix*)
19592 # All AIX code is PIC.
19593 if test "$host_cpu" = ia64; then
19594 # AIX 5 now supports IA64 processor
19595 lt_prog_compiler_static_CXX='-Bstatic'
19596 fi
19597 ;;
19598
19599 amigaos*)
19600 case $host_cpu in
19601 powerpc)
19602 # see comment about AmigaOS4 .so support
19603 lt_prog_compiler_pic_CXX='-fPIC'
19604 ;;
19605 m68k)
19606 # FIXME: we need at least 68020 code to build shared libraries, but
19607 # adding the `-m68020' flag to GCC prevents building anything better,
19608 # like `-m68040'.
19609 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19610 ;;
19611 esac
19612 ;;
19613
19614 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19615 # PIC is the default for these OSes.
19616 ;;
19617 mingw* | cygwin* | os2* | pw32* | cegcc*)
19618 # This hack is so that the source file can tell whether it is being
19619 # built for inclusion in a dll (and should export symbols for example).
19620 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19621 # (--disable-auto-import) libraries
19622 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19623 ;;
19624 darwin* | rhapsody*)
19625 # PIC is the default on this platform
19626 # Common symbols not allowed in MH_DYLIB files
19627 lt_prog_compiler_pic_CXX='-fno-common'
19628 ;;
19629 *djgpp*)
19630 # DJGPP does not support shared libraries at all
19631 lt_prog_compiler_pic_CXX=
19632 ;;
cristy0c60a692010-11-04 01:09:47 +000019633 haiku*)
19634 # PIC is the default for Haiku.
19635 # The "-static" flag exists, but is broken.
19636 lt_prog_compiler_static_CXX=
19637 ;;
cristy73bd4a52010-10-05 11:24:23 +000019638 interix[3-9]*)
19639 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19640 # Instead, we relocate shared libraries at runtime.
19641 ;;
19642 sysv4*MP*)
19643 if test -d /usr/nec; then
19644 lt_prog_compiler_pic_CXX=-Kconform_pic
19645 fi
19646 ;;
19647 hpux*)
19648 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19649 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19650 # sets the default TLS model and affects inlining.
19651 case $host_cpu in
19652 hppa*64*)
19653 ;;
19654 *)
19655 lt_prog_compiler_pic_CXX='-fPIC'
19656 ;;
19657 esac
19658 ;;
19659 *qnx* | *nto*)
19660 # QNX uses GNU C++, but need to define -shared option too, otherwise
19661 # it will coredump.
19662 lt_prog_compiler_pic_CXX='-fPIC -shared'
19663 ;;
19664 *)
19665 lt_prog_compiler_pic_CXX='-fPIC'
19666 ;;
19667 esac
19668 else
19669 case $host_os in
19670 aix[4-9]*)
19671 # All AIX code is PIC.
19672 if test "$host_cpu" = ia64; then
19673 # AIX 5 now supports IA64 processor
19674 lt_prog_compiler_static_CXX='-Bstatic'
19675 else
19676 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19677 fi
19678 ;;
19679 chorus*)
19680 case $cc_basename in
19681 cxch68*)
19682 # Green Hills C++ Compiler
19683 # _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"
19684 ;;
19685 esac
19686 ;;
cristyda16f162011-02-19 23:52:17 +000019687 mingw* | cygwin* | os2* | pw32* | cegcc*)
19688 # This hack is so that the source file can tell whether it is being
19689 # built for inclusion in a dll (and should export symbols for example).
19690 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19691 ;;
cristy73bd4a52010-10-05 11:24:23 +000019692 dgux*)
19693 case $cc_basename in
19694 ec++*)
19695 lt_prog_compiler_pic_CXX='-KPIC'
19696 ;;
19697 ghcx*)
19698 # Green Hills C++ Compiler
19699 lt_prog_compiler_pic_CXX='-pic'
19700 ;;
19701 *)
19702 ;;
19703 esac
19704 ;;
19705 freebsd* | dragonfly*)
19706 # FreeBSD uses GNU C++
19707 ;;
19708 hpux9* | hpux10* | hpux11*)
19709 case $cc_basename in
19710 CC*)
19711 lt_prog_compiler_wl_CXX='-Wl,'
19712 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19713 if test "$host_cpu" != ia64; then
19714 lt_prog_compiler_pic_CXX='+Z'
19715 fi
19716 ;;
19717 aCC*)
19718 lt_prog_compiler_wl_CXX='-Wl,'
19719 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19720 case $host_cpu in
19721 hppa*64*|ia64*)
19722 # +Z the default
19723 ;;
19724 *)
19725 lt_prog_compiler_pic_CXX='+Z'
19726 ;;
19727 esac
19728 ;;
19729 *)
19730 ;;
19731 esac
19732 ;;
19733 interix*)
19734 # This is c89, which is MS Visual C++ (no shared libs)
19735 # Anyone wants to do a port?
19736 ;;
19737 irix5* | irix6* | nonstopux*)
19738 case $cc_basename in
19739 CC*)
19740 lt_prog_compiler_wl_CXX='-Wl,'
19741 lt_prog_compiler_static_CXX='-non_shared'
19742 # CC pic flag -KPIC is the default.
19743 ;;
19744 *)
19745 ;;
19746 esac
19747 ;;
cristy0c60a692010-11-04 01:09:47 +000019748 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019749 case $cc_basename in
19750 KCC*)
19751 # KAI C++ Compiler
19752 lt_prog_compiler_wl_CXX='--backend -Wl,'
19753 lt_prog_compiler_pic_CXX='-fPIC'
19754 ;;
19755 ecpc* )
19756 # old Intel C++ for x86_64 which still supported -KPIC.
19757 lt_prog_compiler_wl_CXX='-Wl,'
19758 lt_prog_compiler_pic_CXX='-KPIC'
19759 lt_prog_compiler_static_CXX='-static'
19760 ;;
19761 icpc* )
19762 # Intel C++, used to be incompatible with GCC.
19763 # ICC 10 doesn't accept -KPIC any more.
19764 lt_prog_compiler_wl_CXX='-Wl,'
19765 lt_prog_compiler_pic_CXX='-fPIC'
19766 lt_prog_compiler_static_CXX='-static'
19767 ;;
19768 pgCC* | pgcpp*)
19769 # Portland Group C++ compiler
19770 lt_prog_compiler_wl_CXX='-Wl,'
19771 lt_prog_compiler_pic_CXX='-fpic'
19772 lt_prog_compiler_static_CXX='-Bstatic'
19773 ;;
19774 cxx*)
19775 # Compaq C++
19776 # Make sure the PIC flag is empty. It appears that all Alpha
19777 # Linux and Compaq Tru64 Unix objects are PIC.
19778 lt_prog_compiler_pic_CXX=
19779 lt_prog_compiler_static_CXX='-non_shared'
19780 ;;
cristy0c60a692010-11-04 01:09:47 +000019781 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19782 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019783 lt_prog_compiler_wl_CXX='-Wl,'
19784 lt_prog_compiler_pic_CXX='-qpic'
19785 lt_prog_compiler_static_CXX='-qstaticlink'
19786 ;;
19787 *)
19788 case `$CC -V 2>&1 | sed 5q` in
19789 *Sun\ C*)
19790 # Sun C++ 5.9
19791 lt_prog_compiler_pic_CXX='-KPIC'
19792 lt_prog_compiler_static_CXX='-Bstatic'
19793 lt_prog_compiler_wl_CXX='-Qoption ld '
19794 ;;
19795 esac
19796 ;;
19797 esac
19798 ;;
19799 lynxos*)
19800 ;;
19801 m88k*)
19802 ;;
19803 mvs*)
19804 case $cc_basename in
19805 cxx*)
19806 lt_prog_compiler_pic_CXX='-W c,exportall'
19807 ;;
19808 *)
19809 ;;
19810 esac
19811 ;;
19812 netbsd*)
19813 ;;
19814 *qnx* | *nto*)
19815 # QNX uses GNU C++, but need to define -shared option too, otherwise
19816 # it will coredump.
19817 lt_prog_compiler_pic_CXX='-fPIC -shared'
19818 ;;
19819 osf3* | osf4* | osf5*)
19820 case $cc_basename in
19821 KCC*)
19822 lt_prog_compiler_wl_CXX='--backend -Wl,'
19823 ;;
19824 RCC*)
19825 # Rational C++ 2.4.1
19826 lt_prog_compiler_pic_CXX='-pic'
19827 ;;
19828 cxx*)
19829 # Digital/Compaq C++
19830 lt_prog_compiler_wl_CXX='-Wl,'
19831 # Make sure the PIC flag is empty. It appears that all Alpha
19832 # Linux and Compaq Tru64 Unix objects are PIC.
19833 lt_prog_compiler_pic_CXX=
19834 lt_prog_compiler_static_CXX='-non_shared'
19835 ;;
19836 *)
19837 ;;
19838 esac
19839 ;;
19840 psos*)
19841 ;;
19842 solaris*)
19843 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019844 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019845 # Sun C++ 4.2, 5.x and Centerline C++
19846 lt_prog_compiler_pic_CXX='-KPIC'
19847 lt_prog_compiler_static_CXX='-Bstatic'
19848 lt_prog_compiler_wl_CXX='-Qoption ld '
19849 ;;
19850 gcx*)
19851 # Green Hills C++ Compiler
19852 lt_prog_compiler_pic_CXX='-PIC'
19853 ;;
19854 *)
19855 ;;
19856 esac
19857 ;;
19858 sunos4*)
19859 case $cc_basename in
19860 CC*)
19861 # Sun C++ 4.x
19862 lt_prog_compiler_pic_CXX='-pic'
19863 lt_prog_compiler_static_CXX='-Bstatic'
19864 ;;
19865 lcc*)
19866 # Lucid
19867 lt_prog_compiler_pic_CXX='-pic'
19868 ;;
19869 *)
19870 ;;
19871 esac
19872 ;;
19873 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19874 case $cc_basename in
19875 CC*)
19876 lt_prog_compiler_wl_CXX='-Wl,'
19877 lt_prog_compiler_pic_CXX='-KPIC'
19878 lt_prog_compiler_static_CXX='-Bstatic'
19879 ;;
19880 esac
19881 ;;
19882 tandem*)
19883 case $cc_basename in
19884 NCC*)
19885 # NonStop-UX NCC 3.20
19886 lt_prog_compiler_pic_CXX='-KPIC'
19887 ;;
19888 *)
19889 ;;
19890 esac
19891 ;;
19892 vxworks*)
19893 ;;
19894 *)
19895 lt_prog_compiler_can_build_shared_CXX=no
19896 ;;
19897 esac
19898 fi
19899
19900case $host_os in
19901 # For platforms which do not support PIC, -DPIC is meaningless:
19902 *djgpp*)
19903 lt_prog_compiler_pic_CXX=
19904 ;;
19905 *)
19906 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19907 ;;
19908esac
cristy73bd4a52010-10-05 11:24:23 +000019909
cristyda16f162011-02-19 23:52:17 +000019910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19911$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19912if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19913 $as_echo_n "(cached) " >&6
19914else
19915 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19916fi
19917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19918$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19919lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019920
19921#
19922# Check to make sure the PIC flag actually works.
19923#
19924if test -n "$lt_prog_compiler_pic_CXX"; then
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19926$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019927if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019928 $as_echo_n "(cached) " >&6
19929else
19930 lt_cv_prog_compiler_pic_works_CXX=no
19931 ac_outfile=conftest.$ac_objext
19932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19933 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19934 # Insert the option either (1) after the last *FLAGS variable, or
19935 # (2) before a word containing "conftest.", or (3) at the end.
19936 # Note that $ac_compile itself does not contain backslashes and begins
19937 # with a dollar sign (not a hyphen), so the echo should work correctly.
19938 # The option is referenced via a variable to avoid confusing sed.
19939 lt_compile=`echo "$ac_compile" | $SED \
19940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19942 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019943 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019944 (eval "$lt_compile" 2>conftest.err)
19945 ac_status=$?
19946 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019948 if (exit $ac_status) && test -s "$ac_outfile"; then
19949 # The compiler can only warn and ignore the option if not recognized
19950 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19953 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19954 lt_cv_prog_compiler_pic_works_CXX=yes
19955 fi
19956 fi
19957 $RM conftest*
19958
19959fi
19960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19961$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19962
19963if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19964 case $lt_prog_compiler_pic_CXX in
19965 "" | " "*) ;;
19966 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19967 esac
19968else
19969 lt_prog_compiler_pic_CXX=
19970 lt_prog_compiler_can_build_shared_CXX=no
19971fi
19972
19973fi
19974
19975
19976
cristyda16f162011-02-19 23:52:17 +000019977
19978
cristy73bd4a52010-10-05 11:24:23 +000019979#
19980# Check to make sure the static flag actually works.
19981#
19982wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19984$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019985if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019986 $as_echo_n "(cached) " >&6
19987else
19988 lt_cv_prog_compiler_static_works_CXX=no
19989 save_LDFLAGS="$LDFLAGS"
19990 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19991 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19992 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19993 # The linker can only warn and ignore the option if not recognized
19994 # So say no if there are warnings
19995 if test -s conftest.err; then
19996 # Append any errors to the config.log.
19997 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019998 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20000 if diff conftest.exp conftest.er2 >/dev/null; then
20001 lt_cv_prog_compiler_static_works_CXX=yes
20002 fi
20003 else
20004 lt_cv_prog_compiler_static_works_CXX=yes
20005 fi
20006 fi
20007 $RM -r conftest*
20008 LDFLAGS="$save_LDFLAGS"
20009
20010fi
20011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20012$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20013
20014if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20015 :
20016else
20017 lt_prog_compiler_static_CXX=
20018fi
20019
20020
20021
20022
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20024$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020025if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020026 $as_echo_n "(cached) " >&6
20027else
20028 lt_cv_prog_compiler_c_o_CXX=no
20029 $RM -r conftest 2>/dev/null
20030 mkdir conftest
20031 cd conftest
20032 mkdir out
20033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20034
20035 lt_compiler_flag="-o out/conftest2.$ac_objext"
20036 # Insert the option either (1) after the last *FLAGS variable, or
20037 # (2) before a word containing "conftest.", or (3) at the end.
20038 # Note that $ac_compile itself does not contain backslashes and begins
20039 # with a dollar sign (not a hyphen), so the echo should work correctly.
20040 lt_compile=`echo "$ac_compile" | $SED \
20041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20043 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020044 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020045 (eval "$lt_compile" 2>out/conftest.err)
20046 ac_status=$?
20047 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020049 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20050 then
20051 # The compiler can only warn and ignore the option if not recognized
20052 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020054 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20055 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20056 lt_cv_prog_compiler_c_o_CXX=yes
20057 fi
20058 fi
20059 chmod u+w . 2>&5
20060 $RM conftest*
20061 # SGI C++ compiler will create directory out/ii_files/ for
20062 # template instantiation
20063 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20064 $RM out/* && rmdir out
20065 cd ..
20066 $RM -r conftest
20067 $RM conftest*
20068
20069fi
20070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20071$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20072
20073
20074
20075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20076$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020077if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020078 $as_echo_n "(cached) " >&6
20079else
20080 lt_cv_prog_compiler_c_o_CXX=no
20081 $RM -r conftest 2>/dev/null
20082 mkdir conftest
20083 cd conftest
20084 mkdir out
20085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20086
20087 lt_compiler_flag="-o out/conftest2.$ac_objext"
20088 # Insert the option either (1) after the last *FLAGS variable, or
20089 # (2) before a word containing "conftest.", or (3) at the end.
20090 # Note that $ac_compile itself does not contain backslashes and begins
20091 # with a dollar sign (not a hyphen), so the echo should work correctly.
20092 lt_compile=`echo "$ac_compile" | $SED \
20093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20095 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020096 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020097 (eval "$lt_compile" 2>out/conftest.err)
20098 ac_status=$?
20099 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020101 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20102 then
20103 # The compiler can only warn and ignore the option if not recognized
20104 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020105 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020106 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20107 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20108 lt_cv_prog_compiler_c_o_CXX=yes
20109 fi
20110 fi
20111 chmod u+w . 2>&5
20112 $RM conftest*
20113 # SGI C++ compiler will create directory out/ii_files/ for
20114 # template instantiation
20115 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20116 $RM out/* && rmdir out
20117 cd ..
20118 $RM -r conftest
20119 $RM conftest*
20120
20121fi
20122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20123$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20124
20125
20126
20127
20128hard_links="nottested"
20129if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20130 # do not overwrite the value of need_locks provided by the user
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20132$as_echo_n "checking if we can lock with hard links... " >&6; }
20133 hard_links=yes
20134 $RM conftest*
20135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20136 touch conftest.a
20137 ln conftest.a conftest.b 2>&5 || hard_links=no
20138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20140$as_echo "$hard_links" >&6; }
20141 if test "$hard_links" = no; then
20142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20143$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20144 need_locks=warn
20145 fi
20146else
20147 need_locks=no
20148fi
20149
20150
20151
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20153$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20154
20155 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020156 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020157 case $host_os in
20158 aix[4-9]*)
20159 # If we're using GNU nm, then we don't want the "-C" option.
20160 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020161 # Also, AIX nm treats weak defined symbols like other global defined
20162 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020163 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020164 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 +000020165 else
20166 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'
20167 fi
20168 ;;
20169 pw32*)
20170 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020171 ;;
cristy73bd4a52010-10-05 11:24:23 +000020172 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020173 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020174 cl*)
20175 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20176 ;;
cristyda16f162011-02-19 23:52:17 +000020177 *)
20178 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'
20179 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20180 ;;
20181 esac
20182 ;;
cristy73bd4a52010-10-05 11:24:23 +000020183 *)
20184 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020185 ;;
cristy73bd4a52010-10-05 11:24:23 +000020186 esac
cristy73bd4a52010-10-05 11:24:23 +000020187
20188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20189$as_echo "$ld_shlibs_CXX" >&6; }
20190test "$ld_shlibs_CXX" = no && can_build_shared=no
20191
20192with_gnu_ld_CXX=$with_gnu_ld
20193
20194
20195
20196
20197
20198
20199#
20200# Do we need to explicitly link libc?
20201#
20202case "x$archive_cmds_need_lc_CXX" in
20203x|xyes)
20204 # Assume -lc should be added
20205 archive_cmds_need_lc_CXX=yes
20206
20207 if test "$enable_shared" = yes && test "$GCC" = yes; then
20208 case $archive_cmds_CXX in
20209 *'~'*)
20210 # FIXME: we may have to deal with multi-command sequences.
20211 ;;
20212 '$CC '*)
20213 # Test whether the compiler implicitly links with -lc since on some
20214 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20215 # to ld, don't add -lc before -lgcc.
20216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20217$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020218if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020219 $as_echo_n "(cached) " >&6
20220else
20221 $RM conftest*
20222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020223
cristy0c60a692010-11-04 01:09:47 +000020224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020225 (eval $ac_compile) 2>&5
20226 ac_status=$?
20227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20228 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020229 soname=conftest
20230 lib=conftest
20231 libobjs=conftest.$ac_objext
20232 deplibs=
20233 wl=$lt_prog_compiler_wl_CXX
20234 pic_flag=$lt_prog_compiler_pic_CXX
20235 compiler_flags=-v
20236 linker_flags=-v
20237 verstring=
20238 output_objdir=.
20239 libname=conftest
20240 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20241 allow_undefined_flag_CXX=
20242 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 +000020243 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20244 ac_status=$?
20245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20246 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020247 then
20248 lt_cv_archive_cmds_need_lc_CXX=no
20249 else
20250 lt_cv_archive_cmds_need_lc_CXX=yes
20251 fi
20252 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20253 else
20254 cat conftest.err 1>&5
20255 fi
20256 $RM conftest*
20257
20258fi
20259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20260$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20261 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020262 ;;
20263 esac
20264 fi
20265 ;;
20266esac
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
cristy73bd4a52010-10-05 11:24:23 +000020329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20330$as_echo_n "checking dynamic linker characteristics... " >&6; }
20331
20332library_names_spec=
20333libname_spec='lib$name'
20334soname_spec=
20335shrext_cmds=".so"
20336postinstall_cmds=
20337postuninstall_cmds=
20338finish_cmds=
20339finish_eval=
20340shlibpath_var=
20341shlibpath_overrides_runpath=unknown
20342version_type=none
20343dynamic_linker="$host_os ld.so"
20344sys_lib_dlsearch_path_spec="/lib /usr/lib"
20345need_lib_prefix=unknown
20346hardcode_into_libs=no
20347
20348# when you set need_version to no, make sure it does not cause -set_version
20349# flags to be left without arguments
20350need_version=unknown
20351
20352case $host_os in
20353aix3*)
cristy99bd5232011-12-07 14:38:20 +000020354 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020355 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20356 shlibpath_var=LIBPATH
20357
20358 # AIX 3 has no versioning support, so we append a major version to the name.
20359 soname_spec='${libname}${release}${shared_ext}$major'
20360 ;;
20361
20362aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020363 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020364 need_lib_prefix=no
20365 need_version=no
20366 hardcode_into_libs=yes
20367 if test "$host_cpu" = ia64; then
20368 # AIX 5 supports IA64
20369 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20370 shlibpath_var=LD_LIBRARY_PATH
20371 else
20372 # With GCC up to 2.95.x, collect2 would create an import file
20373 # for dependence libraries. The import file would start with
20374 # the line `#! .'. This would cause the generated library to
20375 # depend on `.', always an invalid library. This was fixed in
20376 # development snapshots of GCC prior to 3.0.
20377 case $host_os in
20378 aix4 | aix4.[01] | aix4.[01].*)
20379 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20380 echo ' yes '
20381 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20382 :
20383 else
20384 can_build_shared=no
20385 fi
20386 ;;
20387 esac
20388 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20389 # soname into executable. Probably we can add versioning support to
20390 # collect2, so additional links can be useful in future.
20391 if test "$aix_use_runtimelinking" = yes; then
20392 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20393 # instead of lib<name>.a to let people know that these are not
20394 # typical AIX shared libraries.
20395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20396 else
20397 # We preserve .a as extension for shared libraries through AIX4.2
20398 # and later when we are not doing run time linking.
20399 library_names_spec='${libname}${release}.a $libname.a'
20400 soname_spec='${libname}${release}${shared_ext}$major'
20401 fi
20402 shlibpath_var=LIBPATH
20403 fi
20404 ;;
20405
20406amigaos*)
20407 case $host_cpu in
20408 powerpc)
20409 # Since July 2007 AmigaOS4 officially supports .so libraries.
20410 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20412 ;;
20413 m68k)
20414 library_names_spec='$libname.ixlibrary $libname.a'
20415 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020416 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 +000020417 ;;
20418 esac
20419 ;;
20420
20421beos*)
20422 library_names_spec='${libname}${shared_ext}'
20423 dynamic_linker="$host_os ld.so"
20424 shlibpath_var=LIBRARY_PATH
20425 ;;
20426
20427bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020428 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020429 need_version=no
20430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20431 soname_spec='${libname}${release}${shared_ext}$major'
20432 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20433 shlibpath_var=LD_LIBRARY_PATH
20434 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20435 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20436 # the default ld.so.conf also contains /usr/contrib/lib and
20437 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20438 # libtool to hard-code these into programs
20439 ;;
20440
20441cygwin* | mingw* | pw32* | cegcc*)
20442 version_type=windows
20443 shrext_cmds=".dll"
20444 need_version=no
20445 need_lib_prefix=no
20446
cristyda16f162011-02-19 23:52:17 +000020447 case $GCC,$cc_basename in
20448 yes,*)
20449 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020450 library_names_spec='$libname.dll.a'
20451 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20452 postinstall_cmds='base_file=`basename \${file}`~
20453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20454 dldir=$destdir/`dirname \$dlpath`~
20455 test -d \$dldir || mkdir -p \$dldir~
20456 $install_prog $dir/$dlname \$dldir/$dlname~
20457 chmod a+x \$dldir/$dlname~
20458 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20459 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20460 fi'
20461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20462 dlpath=$dir/\$dldll~
20463 $RM \$dlpath'
20464 shlibpath_overrides_runpath=yes
20465
20466 case $host_os in
20467 cygwin*)
20468 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20469 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020470
cristy73bd4a52010-10-05 11:24:23 +000020471 ;;
20472 mingw* | cegcc*)
20473 # MinGW DLLs use traditional 'lib' prefix
20474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020475 ;;
20476 pw32*)
20477 # pw32 DLLs use 'pw' prefix rather than 'lib'
20478 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20479 ;;
20480 esac
cristyda16f162011-02-19 23:52:17 +000020481 dynamic_linker='Win32 ld.exe'
20482 ;;
20483
20484 *,cl*)
20485 # Native MSVC
20486 libname_spec='$name'
20487 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20488 library_names_spec='${libname}.dll.lib'
20489
20490 case $build_os in
20491 mingw*)
20492 sys_lib_search_path_spec=
20493 lt_save_ifs=$IFS
20494 IFS=';'
20495 for lt_path in $LIB
20496 do
20497 IFS=$lt_save_ifs
20498 # Let DOS variable expansion print the short 8.3 style file name.
20499 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20500 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20501 done
20502 IFS=$lt_save_ifs
20503 # Convert to MSYS style.
20504 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20505 ;;
20506 cygwin*)
20507 # Convert to unix form, then to dos form, then back to unix form
20508 # but this time dos style (no spaces!) so that the unix form looks
20509 # like /cygdrive/c/PROGRA~1:/cygdr...
20510 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20511 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20512 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20513 ;;
20514 *)
20515 sys_lib_search_path_spec="$LIB"
20516 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20517 # It is most probably a Windows format PATH.
20518 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20519 else
20520 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20521 fi
20522 # FIXME: find the short name or the path components, as spaces are
20523 # common. (e.g. "Program Files" -> "PROGRA~1")
20524 ;;
20525 esac
20526
20527 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20528 postinstall_cmds='base_file=`basename \${file}`~
20529 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20530 dldir=$destdir/`dirname \$dlpath`~
20531 test -d \$dldir || mkdir -p \$dldir~
20532 $install_prog $dir/$dlname \$dldir/$dlname'
20533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20534 dlpath=$dir/\$dldll~
20535 $RM \$dlpath'
20536 shlibpath_overrides_runpath=yes
20537 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020538 ;;
20539
20540 *)
cristyda16f162011-02-19 23:52:17 +000020541 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020543 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020544 ;;
20545 esac
cristy73bd4a52010-10-05 11:24:23 +000020546 # FIXME: first we should search . and the directory the executable is in
20547 shlibpath_var=PATH
20548 ;;
20549
20550darwin* | rhapsody*)
20551 dynamic_linker="$host_os dyld"
20552 version_type=darwin
20553 need_lib_prefix=no
20554 need_version=no
20555 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20556 soname_spec='${libname}${release}${major}$shared_ext'
20557 shlibpath_overrides_runpath=yes
20558 shlibpath_var=DYLD_LIBRARY_PATH
20559 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20560
20561 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20562 ;;
20563
20564dgux*)
cristy99bd5232011-12-07 14:38:20 +000020565 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020566 need_lib_prefix=no
20567 need_version=no
20568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20569 soname_spec='${libname}${release}${shared_ext}$major'
20570 shlibpath_var=LD_LIBRARY_PATH
20571 ;;
20572
cristy73bd4a52010-10-05 11:24:23 +000020573freebsd* | dragonfly*)
20574 # DragonFly does not have aout. When/if they implement a new
20575 # versioning mechanism, adjust this.
20576 if test -x /usr/bin/objformat; then
20577 objformat=`/usr/bin/objformat`
20578 else
20579 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020580 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020581 *) objformat=elf ;;
20582 esac
20583 fi
20584 version_type=freebsd-$objformat
20585 case $version_type in
20586 freebsd-elf*)
20587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20588 need_version=no
20589 need_lib_prefix=no
20590 ;;
20591 freebsd-*)
20592 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20593 need_version=yes
20594 ;;
20595 esac
20596 shlibpath_var=LD_LIBRARY_PATH
20597 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020598 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020599 shlibpath_overrides_runpath=yes
20600 ;;
20601 freebsd3.[01]* | freebsdelf3.[01]*)
20602 shlibpath_overrides_runpath=yes
20603 hardcode_into_libs=yes
20604 ;;
20605 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20606 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20607 shlibpath_overrides_runpath=no
20608 hardcode_into_libs=yes
20609 ;;
20610 *) # from 4.6 on, and DragonFly
20611 shlibpath_overrides_runpath=yes
20612 hardcode_into_libs=yes
20613 ;;
20614 esac
20615 ;;
20616
20617gnu*)
cristy99bd5232011-12-07 14:38:20 +000020618 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020619 need_lib_prefix=no
20620 need_version=no
20621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20622 soname_spec='${libname}${release}${shared_ext}$major'
20623 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020624 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020625 hardcode_into_libs=yes
20626 ;;
20627
cristy0c60a692010-11-04 01:09:47 +000020628haiku*)
cristy99bd5232011-12-07 14:38:20 +000020629 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020630 need_lib_prefix=no
20631 need_version=no
20632 dynamic_linker="$host_os runtime_loader"
20633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20634 soname_spec='${libname}${release}${shared_ext}$major'
20635 shlibpath_var=LIBRARY_PATH
20636 shlibpath_overrides_runpath=yes
20637 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20638 hardcode_into_libs=yes
20639 ;;
20640
cristy73bd4a52010-10-05 11:24:23 +000020641hpux9* | hpux10* | hpux11*)
20642 # Give a soname corresponding to the major version so that dld.sl refuses to
20643 # link against other versions.
20644 version_type=sunos
20645 need_lib_prefix=no
20646 need_version=no
20647 case $host_cpu in
20648 ia64*)
20649 shrext_cmds='.so'
20650 hardcode_into_libs=yes
20651 dynamic_linker="$host_os dld.so"
20652 shlibpath_var=LD_LIBRARY_PATH
20653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20655 soname_spec='${libname}${release}${shared_ext}$major'
20656 if test "X$HPUX_IA64_MODE" = X32; then
20657 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20658 else
20659 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20660 fi
20661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20662 ;;
20663 hppa*64*)
20664 shrext_cmds='.sl'
20665 hardcode_into_libs=yes
20666 dynamic_linker="$host_os dld.sl"
20667 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20670 soname_spec='${libname}${release}${shared_ext}$major'
20671 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20673 ;;
20674 *)
20675 shrext_cmds='.sl'
20676 dynamic_linker="$host_os dld.sl"
20677 shlibpath_var=SHLIB_PATH
20678 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20680 soname_spec='${libname}${release}${shared_ext}$major'
20681 ;;
20682 esac
cristy0c60a692010-11-04 01:09:47 +000020683 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020684 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020685 # or fails outright, so override atomically:
20686 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020687 ;;
20688
20689interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020690 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020691 need_lib_prefix=no
20692 need_version=no
20693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20694 soname_spec='${libname}${release}${shared_ext}$major'
20695 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20696 shlibpath_var=LD_LIBRARY_PATH
20697 shlibpath_overrides_runpath=no
20698 hardcode_into_libs=yes
20699 ;;
20700
20701irix5* | irix6* | nonstopux*)
20702 case $host_os in
20703 nonstopux*) version_type=nonstopux ;;
20704 *)
20705 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020706 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020707 else
20708 version_type=irix
20709 fi ;;
20710 esac
20711 need_lib_prefix=no
20712 need_version=no
20713 soname_spec='${libname}${release}${shared_ext}$major'
20714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20715 case $host_os in
20716 irix5* | nonstopux*)
20717 libsuff= shlibsuff=
20718 ;;
20719 *)
20720 case $LD in # libtool.m4 will add one of these switches to LD
20721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20722 libsuff= shlibsuff= libmagic=32-bit;;
20723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20724 libsuff=32 shlibsuff=N32 libmagic=N32;;
20725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20726 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20727 *) libsuff= shlibsuff= libmagic=never-match;;
20728 esac
20729 ;;
20730 esac
20731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20732 shlibpath_overrides_runpath=no
20733 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20734 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20735 hardcode_into_libs=yes
20736 ;;
20737
20738# No shared lib support for Linux oldld, aout, or coff.
20739linux*oldld* | linux*aout* | linux*coff*)
20740 dynamic_linker=no
20741 ;;
20742
cristy99bd5232011-12-07 14:38:20 +000020743# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020744linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020745 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020746 need_lib_prefix=no
20747 need_version=no
20748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20749 soname_spec='${libname}${release}${shared_ext}$major'
20750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20751 shlibpath_var=LD_LIBRARY_PATH
20752 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020753
cristy73bd4a52010-10-05 11:24:23 +000020754 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020755 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020756 $as_echo_n "(cached) " >&6
20757else
20758 lt_cv_shlibpath_overrides_runpath=no
20759 save_LDFLAGS=$LDFLAGS
20760 save_libdir=$libdir
20761 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20762 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020764/* end confdefs.h. */
20765
20766int
20767main ()
20768{
20769
20770 ;
20771 return 0;
20772}
20773_ACEOF
20774if ac_fn_cxx_try_link "$LINENO"; then :
20775 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020776 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020777fi
20778fi
20779rm -f core conftest.err conftest.$ac_objext \
20780 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020781 LDFLAGS=$save_LDFLAGS
20782 libdir=$save_libdir
20783
20784fi
20785
20786 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020787
20788 # This implies no fast_install, which is unacceptable.
20789 # Some rework will be needed to allow for fast_install
20790 # before this can be enabled.
20791 hardcode_into_libs=yes
20792
20793 # Add ABI-specific directories to the system library path.
20794 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20795
20796 # Append ld.so.conf contents to the search path
20797 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020798 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 +000020799 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020800
cristy73bd4a52010-10-05 11:24:23 +000020801 fi
20802
20803 # We used to test for /lib/ld.so.1 and disable shared libraries on
20804 # powerpc, because MkLinux only supported shared libraries with the
20805 # GNU dynamic linker. Since this was broken with cross compilers,
20806 # most powerpc-linux boxes support dynamic linking these days and
20807 # people can always --disable-shared, the test was removed, and we
20808 # assume the GNU/Linux dynamic linker is in use.
20809 dynamic_linker='GNU/Linux ld.so'
20810 ;;
20811
20812netbsd*)
20813 version_type=sunos
20814 need_lib_prefix=no
20815 need_version=no
20816 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20819 dynamic_linker='NetBSD (a.out) ld.so'
20820 else
20821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20822 soname_spec='${libname}${release}${shared_ext}$major'
20823 dynamic_linker='NetBSD ld.elf_so'
20824 fi
20825 shlibpath_var=LD_LIBRARY_PATH
20826 shlibpath_overrides_runpath=yes
20827 hardcode_into_libs=yes
20828 ;;
20829
20830newsos6)
cristy99bd5232011-12-07 14:38:20 +000020831 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20833 shlibpath_var=LD_LIBRARY_PATH
20834 shlibpath_overrides_runpath=yes
20835 ;;
20836
20837*nto* | *qnx*)
20838 version_type=qnx
20839 need_lib_prefix=no
20840 need_version=no
20841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20842 soname_spec='${libname}${release}${shared_ext}$major'
20843 shlibpath_var=LD_LIBRARY_PATH
20844 shlibpath_overrides_runpath=no
20845 hardcode_into_libs=yes
20846 dynamic_linker='ldqnx.so'
20847 ;;
20848
20849openbsd*)
20850 version_type=sunos
20851 sys_lib_dlsearch_path_spec="/usr/lib"
20852 need_lib_prefix=no
20853 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20854 case $host_os in
20855 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20856 *) need_version=no ;;
20857 esac
20858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20860 shlibpath_var=LD_LIBRARY_PATH
20861 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20862 case $host_os in
20863 openbsd2.[89] | openbsd2.[89].*)
20864 shlibpath_overrides_runpath=no
20865 ;;
20866 *)
20867 shlibpath_overrides_runpath=yes
20868 ;;
20869 esac
20870 else
20871 shlibpath_overrides_runpath=yes
20872 fi
20873 ;;
20874
20875os2*)
20876 libname_spec='$name'
20877 shrext_cmds=".dll"
20878 need_lib_prefix=no
20879 library_names_spec='$libname${shared_ext} $libname.a'
20880 dynamic_linker='OS/2 ld.exe'
20881 shlibpath_var=LIBPATH
20882 ;;
20883
20884osf3* | osf4* | osf5*)
20885 version_type=osf
20886 need_lib_prefix=no
20887 need_version=no
20888 soname_spec='${libname}${release}${shared_ext}$major'
20889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20890 shlibpath_var=LD_LIBRARY_PATH
20891 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20892 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20893 ;;
20894
20895rdos*)
20896 dynamic_linker=no
20897 ;;
20898
20899solaris*)
cristy99bd5232011-12-07 14:38:20 +000020900 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020901 need_lib_prefix=no
20902 need_version=no
20903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20904 soname_spec='${libname}${release}${shared_ext}$major'
20905 shlibpath_var=LD_LIBRARY_PATH
20906 shlibpath_overrides_runpath=yes
20907 hardcode_into_libs=yes
20908 # ldd complains unless libraries are executable
20909 postinstall_cmds='chmod +x $lib'
20910 ;;
20911
20912sunos4*)
20913 version_type=sunos
20914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20915 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20916 shlibpath_var=LD_LIBRARY_PATH
20917 shlibpath_overrides_runpath=yes
20918 if test "$with_gnu_ld" = yes; then
20919 need_lib_prefix=no
20920 fi
20921 need_version=yes
20922 ;;
20923
20924sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020925 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20927 soname_spec='${libname}${release}${shared_ext}$major'
20928 shlibpath_var=LD_LIBRARY_PATH
20929 case $host_vendor in
20930 sni)
20931 shlibpath_overrides_runpath=no
20932 need_lib_prefix=no
20933 runpath_var=LD_RUN_PATH
20934 ;;
20935 siemens)
20936 need_lib_prefix=no
20937 ;;
20938 motorola)
20939 need_lib_prefix=no
20940 need_version=no
20941 shlibpath_overrides_runpath=no
20942 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20943 ;;
20944 esac
20945 ;;
20946
20947sysv4*MP*)
20948 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020949 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020950 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20951 soname_spec='$libname${shared_ext}.$major'
20952 shlibpath_var=LD_LIBRARY_PATH
20953 fi
20954 ;;
20955
20956sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20957 version_type=freebsd-elf
20958 need_lib_prefix=no
20959 need_version=no
20960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20961 soname_spec='${libname}${release}${shared_ext}$major'
20962 shlibpath_var=LD_LIBRARY_PATH
20963 shlibpath_overrides_runpath=yes
20964 hardcode_into_libs=yes
20965 if test "$with_gnu_ld" = yes; then
20966 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20967 else
20968 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20969 case $host_os in
20970 sco3.2v5*)
20971 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20972 ;;
20973 esac
20974 fi
20975 sys_lib_dlsearch_path_spec='/usr/lib'
20976 ;;
20977
20978tpf*)
20979 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020980 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020981 need_lib_prefix=no
20982 need_version=no
20983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20984 shlibpath_var=LD_LIBRARY_PATH
20985 shlibpath_overrides_runpath=no
20986 hardcode_into_libs=yes
20987 ;;
20988
20989uts4*)
cristy99bd5232011-12-07 14:38:20 +000020990 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20992 soname_spec='${libname}${release}${shared_ext}$major'
20993 shlibpath_var=LD_LIBRARY_PATH
20994 ;;
20995
20996*)
20997 dynamic_linker=no
20998 ;;
20999esac
21000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21001$as_echo "$dynamic_linker" >&6; }
21002test "$dynamic_linker" = no && can_build_shared=no
21003
21004variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21005if test "$GCC" = yes; then
21006 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21007fi
21008
21009if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21010 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21011fi
21012if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21013 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21014fi
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
cristy0c60a692010-11-04 01:09:47 +000021051
21052
cristy73bd4a52010-10-05 11:24:23 +000021053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21054$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21055hardcode_action_CXX=
21056if test -n "$hardcode_libdir_flag_spec_CXX" ||
21057 test -n "$runpath_var_CXX" ||
21058 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21059
21060 # We can hardcode non-existent directories.
21061 if test "$hardcode_direct_CXX" != no &&
21062 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21063 # have to relink, otherwise we might link with an installed library
21064 # when we should be linking with a yet-to-be-installed one
21065 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21066 test "$hardcode_minus_L_CXX" != no; then
21067 # Linking always hardcodes the temporary library directory.
21068 hardcode_action_CXX=relink
21069 else
21070 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21071 hardcode_action_CXX=immediate
21072 fi
21073else
21074 # We cannot hardcode anything, or else we can only hardcode existing
21075 # directories.
21076 hardcode_action_CXX=unsupported
21077fi
21078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21079$as_echo "$hardcode_action_CXX" >&6; }
21080
21081if test "$hardcode_action_CXX" = relink ||
21082 test "$inherit_rpath_CXX" = yes; then
21083 # Fast installation is not supported
21084 enable_fast_install=no
21085elif test "$shlibpath_overrides_runpath" = yes ||
21086 test "$enable_shared" = no; then
21087 # Fast installation is not necessary
21088 enable_fast_install=needless
21089fi
21090
21091
21092
21093
21094
21095
21096
21097 fi # test -n "$compiler"
21098
21099 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021100 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021101 LDCXX=$LD
21102 LD=$lt_save_LD
21103 GCC=$lt_save_GCC
21104 with_gnu_ld=$lt_save_with_gnu_ld
21105 lt_cv_path_LDCXX=$lt_cv_path_LD
21106 lt_cv_path_LD=$lt_save_path_LD
21107 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21108 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21109fi # test "$_lt_caught_CXX_error" != yes
21110
21111ac_ext=c
21112ac_cpp='$CPP $CPPFLAGS'
21113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21115ac_compiler_gnu=$ac_cv_c_compiler_gnu
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
cristy99bd5232011-12-07 14:38:20 +000021129
21130
cristy73bd4a52010-10-05 11:24:23 +000021131 ac_config_commands="$ac_config_commands libtool"
21132
21133
21134
21135
21136# Only expand once:
21137
21138
21139
cristy3ed852e2009-09-05 21:47:34 +000021140
21141
cristy3ed852e2009-09-05 21:47:34 +000021142# Check to see if building shared libraries
21143libtool_build_shared_libs='no'
21144if test "$enable_shared" = 'yes'; then
21145 libtool_build_shared_libs='yes'
21146fi
21147
21148# Check to see if building static libraries
21149libtool_build_static_libs='no'
21150if test "$enable_static" = 'yes'; then
21151 libtool_build_static_libs='yes'
21152fi
21153
cristy73bd4a52010-10-05 11:24:23 +000021154 if test "${libtool_build_shared_libs}" = 'yes'; then
21155 WITH_SHARED_LIBS_TRUE=
21156 WITH_SHARED_LIBS_FALSE='#'
21157else
21158 WITH_SHARED_LIBS_TRUE='#'
21159 WITH_SHARED_LIBS_FALSE=
21160fi
21161
cristy3ed852e2009-09-05 21:47:34 +000021162#
21163# Enable support for building loadable modules
21164#
cristyaf4cbf32012-10-16 23:47:41 +000021165build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021166
21167# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021168if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021169 withval=$with_modules; with_modules=$withval
21170else
cristy5a1cefd2010-01-06 20:42:35 +000021171 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021172fi
21173
21174
21175# Only allow building loadable modules if we are building shared libraries
21176if test "$with_modules" != 'no' ; then
21177 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021178 { $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 +000021179$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021180 build_modules='no'
21181 else
21182 build_modules='yes'
21183 fi
cristy3ed852e2009-09-05 21:47:34 +000021184fi
cristyc6722092012-10-14 00:19:31 +000021185if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021186
cristy8b350f62009-11-15 23:12:43 +000021187$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021188
cristyfa161182012-12-19 15:45:28 +000021189 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021190fi
cristyc6722092012-10-14 00:19:31 +000021191 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021192 WITH_MODULES_TRUE=
21193 WITH_MODULES_FALSE='#'
21194else
21195 WITH_MODULES_TRUE='#'
21196 WITH_MODULES_FALSE=
21197fi
21198
cristy3ed852e2009-09-05 21:47:34 +000021199
cristy3ed852e2009-09-05 21:47:34 +000021200# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021201# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021202# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021203if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021204 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21205else
21206 enable_delegate_build='no'
21207fi
21208
21209
21210# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021211if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021212 enableval=$enable_deprecated; enable_deprecated=$enableval
21213else
21214 enable_deprecated='no'
21215fi
21216
21217
21218if test "$enable_deprecated" = 'yes'; then
21219
cristy8b350f62009-11-15 23:12:43 +000021220$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021221
21222else
21223 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21224fi
21225
21226# Build a version of ImageMagick which operates uninstalled.
21227# Used to build distributions located via MAGICK_HOME / executable path
21228# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021229if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021230 enableval=$enable_installed; enable_installed=$enableval
21231else
21232 enable_installed='yes'
21233fi
21234
21235
21236if test "$enable_installed" = 'yes'; then
21237
cristy8b350f62009-11-15 23:12:43 +000021238$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021239
21240else
21241 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21242fi
21243
21244# Permit enciphering and deciphering image pixels.
21245# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021246if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021247 enableval=$enable_cipher; enable_cipher=$enableval
21248else
21249 enable_cipher='yes'
21250fi
21251
21252
21253if test "$enable_cipher" = 'yes'; then
21254
cristy8b350f62009-11-15 23:12:43 +000021255$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021256
21257fi
21258
cristy6e3607c2011-09-13 13:59:17 +000021259# Build a zero-configuration version of ImageMagick.
21260# Check whether --enable-zero-configuration was given.
21261if test "${enable_zero_configuration+set}" = set; then :
21262 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021263else
cristy6e3607c2011-09-13 13:59:17 +000021264 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021265fi
21266
21267
cristy6e3607c2011-09-13 13:59:17 +000021268if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021269
cristy6e3607c2011-09-13 13:59:17 +000021270$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021271
cristy81af5702011-09-13 14:20:58 +000021272 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021273fi
21274
21275# Build a high dynamic range version of ImageMagick.
21276# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021277if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021278 enableval=$enable_hdri; enable_hdri=$enableval
21279else
cristy191c0b72012-08-12 16:29:52 +000021280 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021281fi
21282
21283
21284MAGICK_HDRI=""
21285if test "$enable_hdri" = 'yes'; then
21286 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021287 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021288 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021289else
21290 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021291fi
21292
cristye52f12f2012-12-31 15:32:36 +000021293cat >>confdefs.h <<_ACEOF
21294#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21295_ACEOF
21296
21297MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21298CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021299CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021300
cristy3ed852e2009-09-05 21:47:34 +000021301# Build a version of ImageMagick with assert statements.
21302# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021303if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021304 enableval=$enable_assert; enable_assert=$enableval
21305else
21306 enable_assert='yes'
21307fi
21308
21309
21310if test "$enable_assert" = 'no'; then
21311
cristy8b350f62009-11-15 23:12:43 +000021312$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021313
21314fi
21315
cristya448bd22011-10-14 12:38:13 +000021316# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021317
21318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21319$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21320 # Check whether --enable-maintainer-mode was given.
21321if test "${enable_maintainer_mode+set}" = set; then :
21322 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21323else
21324 USE_MAINTAINER_MODE=no
21325fi
21326
21327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21328$as_echo "$USE_MAINTAINER_MODE" >&6; }
21329 if test $USE_MAINTAINER_MODE = yes; then
21330 MAINTAINER_MODE_TRUE=
21331 MAINTAINER_MODE_FALSE='#'
21332else
21333 MAINTAINER_MODE_TRUE='#'
21334 MAINTAINER_MODE_FALSE=
21335fi
21336
21337 MAINT=$MAINTAINER_MODE_TRUE
21338
21339
cristy3ed852e2009-09-05 21:47:34 +000021340
cristy944e51f2013-04-16 18:45:02 +000021341# Enable hugepages support
21342# Check whether --enable-hugepages was given.
21343if test "${enable_hugepages+set}" = set; then :
21344 enableval=$enable_hugepages; enable_hugepages=$enableval
21345else
21346 enable_hugepages='no'
21347fi
21348
21349
cristy3ed852e2009-09-05 21:47:34 +000021350# Enable ccmalloc memory debugging support
21351# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021352if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021353 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21354else
21355 enable_ccmalloc='no'
21356fi
21357
21358
21359# Enable Electric Fence memory debugging support
21360# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021361if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021362 enableval=$enable_efence; enable_efence=$enableval
21363else
21364 enable_efence='no'
21365fi
21366
21367
21368# Enable prof-based profiling support
21369# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021370if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021371 enableval=$enable_prof; enable_prof=$enableval
21372else
21373 enable_prof='no'
21374fi
21375
21376
21377# Enable gprof-based profiling support
21378# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021379if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021380 enableval=$enable_gprof; enable_gprof=$enableval
21381else
21382 enable_gprof='no'
21383fi
21384
21385
21386# Enable gcov-based profiling support
21387# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021388if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021389 enableval=$enable_gcov; enable_gcov=$enableval
21390else
21391 enable_gcov='no'
21392fi
21393
21394
21395enable_profiling='no'
21396if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21397 enable_profiling='yes'
21398 if test "$libtool_build_shared_libs" = 'yes'; then
21399 echo "Warning: Can not profile code using shared libraries"
21400 fi
21401fi
21402
21403# Magick API method prefix
21404
21405# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021406if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021407 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021408else
cristyfc3d0222012-02-07 15:05:57 +000021409 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021410fi
21411
21412
cristyfc3d0222012-02-07 15:05:57 +000021413if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021414
21415cat >>confdefs.h <<_ACEOF
21416#define NAMESPACE_PREFIX $with_method_prefix
21417_ACEOF
21418
cristyfc3d0222012-02-07 15:05:57 +000021419 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021420fi
21421
cristy71d8c202012-03-20 17:05:01 +000021422# Enable legacy support (default no)
21423# Check whether --enable-legacy-support was given.
21424if test "${enable_legacy_support+set}" = set; then :
21425 enableval=$enable_legacy_support; with_legacy_support=$enableval
21426else
21427 with_legacy_support='no'
21428fi
21429
21430 if test "$with_legacy_support" != 'no'; then
21431 LEGACY_SUPPORT_TRUE=
21432 LEGACY_SUPPORT_FALSE='#'
21433else
21434 LEGACY_SUPPORT_TRUE='#'
21435 LEGACY_SUPPORT_FALSE=
21436fi
21437
21438
cristy3ed852e2009-09-05 21:47:34 +000021439# Number of bits in a Quantum
21440
21441# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021442if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021443 withval=$with_quantum_depth; with_quantum_depth=$withval
21444else
21445 with_quantum_depth=16
21446fi
21447
21448
21449if test "$with_quantum_depth" != '8'; then
21450 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21451fi
21452
21453case "${with_quantum_depth}" in
21454 8 ) ;;
21455 16 ) ;;
21456 32 ) ;;
21457 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021458 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021459esac
21460QUANTUM_DEPTH="$with_quantum_depth"
21461
21462cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021463#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021464_ACEOF
21465
cristya371edf2013-02-06 13:42:17 +000021466MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021467CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021468CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021469
cristy01ff9f32012-12-01 18:15:29 +000021470# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021471MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021472if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021473 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021474fi
cristy01ff9f32012-12-01 18:15:29 +000021475
21476
cristy3ed852e2009-09-05 21:47:34 +000021477# Set pixel cache threshold
21478
21479# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021480if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021481 withval=$with_cache; with_cache=$withval
21482else
21483 with_cache=''
21484fi
21485
21486
21487if test "$with_cache" != ''; then
21488
21489cat >>confdefs.h <<_ACEOF
21490#define PixelCacheThreshold $with_cache
21491_ACEOF
21492
21493 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21494fi
21495
21496# Disable/Enable support for full delegate paths
21497
21498# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021499if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021500 withval=$with_frozenpaths; with_frozenpaths=$withval
21501else
21502 with_frozenpaths='no'
21503fi
21504
21505
21506# Enable build/install of Magick++
21507
21508# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021509if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021510 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21511else
21512 with_magick_plus_plus='yes'
21513fi
21514
21515
cristy3a75f062012-09-08 23:29:40 +000021516# Encode the this name into the shared library.
21517
21518# Check whether --with-package-release-name was given.
21519if test "${with_package_release_name+set}" = set; then :
21520 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21521fi
21522
21523
21524
cristy3ed852e2009-09-05 21:47:34 +000021525# Disable build/install of PerlMagick.
21526
21527# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021528if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021529 withval=$with_perl; with_perl=$withval
21530else
cristyb5f4e2f2010-04-25 00:49:11 +000021531 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021532fi
21533
21534
21535# Options to pass when configuring PerlMagick
21536
21537# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021538if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021539 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021540fi
21541
21542
cristy3ed852e2009-09-05 21:47:34 +000021543
21544# Enable umem, object-caching memory allocation library.
21545
21546# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021547if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021548 withval=$with_umem; with_umem=$withval
21549else
21550 with_umem='no'
21551fi
21552
21553if test "$with_umem" != 'yes' ; then
21554 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21555fi
21556
21557#
21558# Specify path to shared libstdc++ if not in normal location
21559#
21560
21561# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021562if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021563 withval=$with_libstdc; with_libstdc=$withval
21564else
21565 with_libstdc=''
21566fi
21567
21568
21569if test "$with_libstdc" != ''; then
21570 if test -d "$with_libstdc"; then
21571 LIBSTDCLDFLAGS="-L$with_libstdc"
21572 fi
21573fi
21574
21575
21576# Does gcc required -traditional?
21577if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021579$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021580if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021581 $as_echo_n "(cached) " >&6
21582else
21583 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021585/* end confdefs.h. */
21586#include <sgtty.h>
21587Autoconf TIOCGETP
21588_ACEOF
21589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021590 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021591 ac_cv_prog_gcc_traditional=yes
21592else
21593 ac_cv_prog_gcc_traditional=no
21594fi
21595rm -f conftest*
21596
21597
21598 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021600/* end confdefs.h. */
21601#include <termio.h>
21602Autoconf TCGETA
21603_ACEOF
21604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021605 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021606 ac_cv_prog_gcc_traditional=yes
21607fi
21608rm -f conftest*
21609
21610 fi
21611fi
cristy8b350f62009-11-15 23:12:43 +000021612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021613$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21614 if test $ac_cv_prog_gcc_traditional = yes; then
21615 CC="$CC -traditional"
21616 fi
21617fi
21618
21619
21620########
21621#
21622# Set defines required to build DLLs and modules using MinGW
21623#
21624########
21625# These options are set for multi-thread DLL module build
21626# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21627# module: _DLL
21628# executable/Magick++: _DLL _MAGICKMOD_
21629MODULE_EXTRA_CPPFLAGS=''
21630LIBRARY_EXTRA_CPPFLAGS=''
21631if test "${native_win32_build}" = 'yes'; then
21632 if test "${libtool_build_shared_libs}" = 'yes'; then
21633 CPPFLAGS="$CPPFLAGS -D_DLL"
21634 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21635 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21636 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021637 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021638 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21639 else
21640 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21641 fi
21642 else
21643 CPPFLAGS="$CPPFLAGS -D_LIB"
21644 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21645 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21646 fi
21647 if test "$with_threads" = 'yes'; then
21648 CPPFLAGS="$CPPFLAGS -D_MT"
21649 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21650 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21651 fi
21652fi
21653
21654
21655
21656# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021658$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021659if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021660 $as_echo_n "(cached) " >&6
21661else
cristy8b350f62009-11-15 23:12:43 +000021662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021663/* end confdefs.h. */
21664#include <stdlib.h>
21665#include <stdarg.h>
21666#include <string.h>
21667#include <float.h>
21668
21669int
21670main ()
21671{
21672
21673 ;
21674 return 0;
21675}
21676_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021677if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021678 ac_cv_header_stdc=yes
21679else
cristy8b350f62009-11-15 23:12:43 +000021680 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021681fi
cristy3ed852e2009-09-05 21:47:34 +000021682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21683
21684if test $ac_cv_header_stdc = yes; then
21685 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021687/* end confdefs.h. */
21688#include <string.h>
21689
21690_ACEOF
21691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021692 $EGREP "memchr" >/dev/null 2>&1; then :
21693
cristy3ed852e2009-09-05 21:47:34 +000021694else
21695 ac_cv_header_stdc=no
21696fi
21697rm -f conftest*
21698
21699fi
21700
21701if test $ac_cv_header_stdc = yes; then
21702 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021704/* end confdefs.h. */
21705#include <stdlib.h>
21706
21707_ACEOF
21708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021709 $EGREP "free" >/dev/null 2>&1; then :
21710
cristy3ed852e2009-09-05 21:47:34 +000021711else
21712 ac_cv_header_stdc=no
21713fi
21714rm -f conftest*
21715
21716fi
21717
21718if test $ac_cv_header_stdc = yes; then
21719 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021720 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021721 :
21722else
cristy8b350f62009-11-15 23:12:43 +000021723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021724/* end confdefs.h. */
21725#include <ctype.h>
21726#include <stdlib.h>
21727#if ((' ' & 0x0FF) == 0x020)
21728# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21729# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21730#else
21731# define ISLOWER(c) \
21732 (('a' <= (c) && (c) <= 'i') \
21733 || ('j' <= (c) && (c) <= 'r') \
21734 || ('s' <= (c) && (c) <= 'z'))
21735# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21736#endif
21737
21738#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21739int
21740main ()
21741{
21742 int i;
21743 for (i = 0; i < 256; i++)
21744 if (XOR (islower (i), ISLOWER (i))
21745 || toupper (i) != TOUPPER (i))
21746 return 2;
21747 return 0;
21748}
21749_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021750if ac_fn_c_try_run "$LINENO"; then :
21751
cristy3ed852e2009-09-05 21:47:34 +000021752else
cristy8b350f62009-11-15 23:12:43 +000021753 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021754fi
cristy8b350f62009-11-15 23:12:43 +000021755rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21756 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021757fi
21758
cristy3ed852e2009-09-05 21:47:34 +000021759fi
21760fi
cristy8b350f62009-11-15 23:12:43 +000021761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021762$as_echo "$ac_cv_header_stdc" >&6; }
21763if test $ac_cv_header_stdc = yes; then
21764
cristy8b350f62009-11-15 23:12:43 +000021765$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021766
21767fi
21768
21769if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021770 { $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 +000021771 header files. Compilation cannot proceed. Please install the ANSI C
21772 headers and rerun this script." >&5
21773$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21774 header files. Compilation cannot proceed. Please install the ANSI C
21775 headers and rerun this script." >&2;};
21776fi
cristya0b81c32010-01-22 02:54:33 +000021777
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21779$as_echo_n "checking whether to enable assertions... " >&6; }
21780 # Check whether --enable-assert was given.
21781if test "${enable_assert+set}" = set; then :
21782 enableval=$enable_assert; ac_enable_assert=$enableval
21783 if test "x$enableval" = xno; then :
21784
21785$as_echo "#define NDEBUG 1" >>confdefs.h
21786
21787elif test "x$enableval" != xyes; then :
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21789$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21790 ac_enable_assert=yes
21791fi
21792else
21793 ac_enable_assert=yes
21794fi
21795
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21797$as_echo "$ac_enable_assert" >&6; }
21798
cristy3ed852e2009-09-05 21:47:34 +000021799ac_header_dirent=no
21800for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21801 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021803$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021804if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021805 $as_echo_n "(cached) " >&6
21806else
cristy8b350f62009-11-15 23:12:43 +000021807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021808/* end confdefs.h. */
21809#include <sys/types.h>
21810#include <$ac_hdr>
21811
21812int
21813main ()
21814{
21815if ((DIR *) 0)
21816return 0;
21817 ;
21818 return 0;
21819}
21820_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021821if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021822 eval "$as_ac_Header=yes"
21823else
cristy8b350f62009-11-15 23:12:43 +000021824 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021825fi
cristy3ed852e2009-09-05 21:47:34 +000021826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21827fi
cristy8b350f62009-11-15 23:12:43 +000021828eval ac_res=\$$as_ac_Header
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021830$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021831if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021832 cat >>confdefs.h <<_ACEOF
21833#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21834_ACEOF
21835
21836ac_header_dirent=$ac_hdr; break
21837fi
21838
21839done
21840# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21841if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021843$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021844if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021845 $as_echo_n "(cached) " >&6
21846else
21847 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021849/* end confdefs.h. */
21850
21851/* Override any GCC internal prototype to avoid an error.
21852 Use char because int might match the return type of a GCC
21853 builtin and then its argument prototype would still apply. */
21854#ifdef __cplusplus
21855extern "C"
21856#endif
21857char opendir ();
21858int
21859main ()
21860{
21861return opendir ();
21862 ;
21863 return 0;
21864}
21865_ACEOF
21866for ac_lib in '' dir; do
21867 if test -z "$ac_lib"; then
21868 ac_res="none required"
21869 else
21870 ac_res=-l$ac_lib
21871 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21872 fi
cristy8b350f62009-11-15 23:12:43 +000021873 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021874 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021875fi
cristy8b350f62009-11-15 23:12:43 +000021876rm -f core conftest.err conftest.$ac_objext \
21877 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021878 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021879 break
21880fi
21881done
cristyda16f162011-02-19 23:52:17 +000021882if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021883
cristy3ed852e2009-09-05 21:47:34 +000021884else
21885 ac_cv_search_opendir=no
21886fi
21887rm conftest.$ac_ext
21888LIBS=$ac_func_search_save_LIBS
21889fi
cristy8b350f62009-11-15 23:12:43 +000021890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021891$as_echo "$ac_cv_search_opendir" >&6; }
21892ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021893if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021894 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21895
21896fi
21897
21898else
cristy8b350f62009-11-15 23:12:43 +000021899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021900$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021901if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021902 $as_echo_n "(cached) " >&6
21903else
21904 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021906/* end confdefs.h. */
21907
21908/* Override any GCC internal prototype to avoid an error.
21909 Use char because int might match the return type of a GCC
21910 builtin and then its argument prototype would still apply. */
21911#ifdef __cplusplus
21912extern "C"
21913#endif
21914char opendir ();
21915int
21916main ()
21917{
21918return opendir ();
21919 ;
21920 return 0;
21921}
21922_ACEOF
21923for ac_lib in '' x; do
21924 if test -z "$ac_lib"; then
21925 ac_res="none required"
21926 else
21927 ac_res=-l$ac_lib
21928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21929 fi
cristy8b350f62009-11-15 23:12:43 +000021930 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021931 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021932fi
cristy8b350f62009-11-15 23:12:43 +000021933rm -f core conftest.err conftest.$ac_objext \
21934 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021935 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021936 break
21937fi
21938done
cristyda16f162011-02-19 23:52:17 +000021939if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021940
cristy3ed852e2009-09-05 21:47:34 +000021941else
21942 ac_cv_search_opendir=no
21943fi
21944rm conftest.$ac_ext
21945LIBS=$ac_func_search_save_LIBS
21946fi
cristy8b350f62009-11-15 23:12:43 +000021947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021948$as_echo "$ac_cv_search_opendir" >&6; }
21949ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021950if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21952
21953fi
21954
21955fi
21956
21957
21958# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021959for 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 +000021960do :
21961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21962ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021963if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021964 cat >>confdefs.h <<_ACEOF
21965#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21966_ACEOF
21967
21968fi
21969
21970done
21971
21972
21973########
21974#
21975# Checks for typedefs, structures, and compiler characteristics.
21976#
21977########
21978
cristy8b350f62009-11-15 23:12:43 +000021979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021980$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021981if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021982 $as_echo_n "(cached) " >&6
21983else
cristy8b350f62009-11-15 23:12:43 +000021984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021985/* end confdefs.h. */
21986
cristy14fefe52012-05-21 00:59:18 +000021987 #include <stdbool.h>
21988 #ifndef bool
21989 "error: bool is not defined"
21990 #endif
21991 #ifndef false
21992 "error: false is not defined"
21993 #endif
21994 #if false
21995 "error: false is not 0"
21996 #endif
21997 #ifndef true
21998 "error: true is not defined"
21999 #endif
22000 #if true != 1
22001 "error: true is not 1"
22002 #endif
22003 #ifndef __bool_true_false_are_defined
22004 "error: __bool_true_false_are_defined is not defined"
22005 #endif
cristy3ed852e2009-09-05 21:47:34 +000022006
cristy14fefe52012-05-21 00:59:18 +000022007 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022008
cristy14fefe52012-05-21 00:59:18 +000022009 char a[true == 1 ? 1 : -1];
22010 char b[false == 0 ? 1 : -1];
22011 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22012 char d[(bool) 0.5 == true ? 1 : -1];
22013 /* See body of main program for 'e'. */
22014 char f[(_Bool) 0.0 == false ? 1 : -1];
22015 char g[true];
22016 char h[sizeof (_Bool)];
22017 char i[sizeof s.t];
22018 enum { j = false, k = true, l = false * true, m = true * 256 };
22019 /* The following fails for
22020 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22021 _Bool n[m];
22022 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22023 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22024 /* Catch a bug in an HP-UX C compiler. See
22025 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22026 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22027 */
22028 _Bool q = true;
22029 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022030
22031int
22032main ()
22033{
22034
cristy14fefe52012-05-21 00:59:18 +000022035 bool e = &s;
22036 *pq |= q;
22037 *pq |= ! q;
22038 /* Refer to every declared value, to avoid compiler optimizations. */
22039 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22040 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022041
22042 ;
22043 return 0;
22044}
22045_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022046if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022047 ac_cv_header_stdbool_h=yes
22048else
cristy8b350f62009-11-15 23:12:43 +000022049 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022050fi
cristy3ed852e2009-09-05 21:47:34 +000022051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22052fi
cristy8b350f62009-11-15 23:12:43 +000022053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022054$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022055 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022056if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022057
22058cat >>confdefs.h <<_ACEOF
22059#define HAVE__BOOL 1
22060_ACEOF
22061
22062
22063fi
22064
cristy14fefe52012-05-21 00:59:18 +000022065
cristy3ed852e2009-09-05 21:47:34 +000022066if test $ac_cv_header_stdbool_h = yes; then
22067
cristy8b350f62009-11-15 23:12:43 +000022068$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022069
22070fi
22071
cristy8b350f62009-11-15 23:12:43 +000022072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022073$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022074if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022075 $as_echo_n "(cached) " >&6
22076else
cristy8b350f62009-11-15 23:12:43 +000022077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022078/* end confdefs.h. */
22079
22080int
22081main ()
22082{
22083
22084volatile int x;
22085int * volatile y = (int *) 0;
22086return !x && !y;
22087 ;
22088 return 0;
22089}
22090_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022091if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022092 ac_cv_c_volatile=yes
22093else
cristy8b350f62009-11-15 23:12:43 +000022094 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022095fi
cristy3ed852e2009-09-05 21:47:34 +000022096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22097fi
cristy8b350f62009-11-15 23:12:43 +000022098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022099$as_echo "$ac_cv_c_volatile" >&6; }
22100if test $ac_cv_c_volatile = no; then
22101
cristy8b350f62009-11-15 23:12:43 +000022102$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022103
22104fi
22105
cristy8b350f62009-11-15 23:12:43 +000022106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022107$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022108if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022109 $as_echo_n "(cached) " >&6
22110else
cristy8b350f62009-11-15 23:12:43 +000022111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022112/* end confdefs.h. */
22113#define x(y) #y
22114
22115char *s = x(teststring);
22116_ACEOF
22117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022118 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022119 ac_cv_c_stringize=no
22120else
22121 ac_cv_c_stringize=yes
22122fi
22123rm -f conftest*
22124
22125fi
cristy8b350f62009-11-15 23:12:43 +000022126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022127$as_echo "$ac_cv_c_stringize" >&6; }
22128if test $ac_cv_c_stringize = yes; then
22129
cristy8b350f62009-11-15 23:12:43 +000022130$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022131
22132fi
22133
cristy8b350f62009-11-15 23:12:43 +000022134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022135$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022136if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022137 $as_echo_n "(cached) " >&6
22138else
cristy8b350f62009-11-15 23:12:43 +000022139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022140/* end confdefs.h. */
22141#include <sys/types.h>
22142#include <sys/stat.h>
22143
22144#if defined S_ISBLK && defined S_IFDIR
22145extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22146#endif
22147
22148#if defined S_ISBLK && defined S_IFCHR
22149extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22150#endif
22151
22152#if defined S_ISLNK && defined S_IFREG
22153extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22154#endif
22155
22156#if defined S_ISSOCK && defined S_IFREG
22157extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22158#endif
22159
22160_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022161if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022162 ac_cv_header_stat_broken=no
22163else
cristy8b350f62009-11-15 23:12:43 +000022164 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022165fi
cristy3ed852e2009-09-05 21:47:34 +000022166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22167fi
cristy8b350f62009-11-15 23:12:43 +000022168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022169$as_echo "$ac_cv_header_stat_broken" >&6; }
22170if test $ac_cv_header_stat_broken = yes; then
22171
cristy8b350f62009-11-15 23:12:43 +000022172$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022173
22174fi
22175
cristy8b350f62009-11-15 23:12:43 +000022176{ $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 +000022177$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022178if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022179 $as_echo_n "(cached) " >&6
22180else
cristy8b350f62009-11-15 23:12:43 +000022181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022182/* end confdefs.h. */
22183#include <sys/types.h>
22184#include <sys/time.h>
22185#include <time.h>
22186
22187int
22188main ()
22189{
22190if ((struct tm *) 0)
22191return 0;
22192 ;
22193 return 0;
22194}
22195_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022196if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022197 ac_cv_header_time=yes
22198else
cristy8b350f62009-11-15 23:12:43 +000022199 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022200fi
cristy3ed852e2009-09-05 21:47:34 +000022201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22202fi
cristy8b350f62009-11-15 23:12:43 +000022203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022204$as_echo "$ac_cv_header_time" >&6; }
22205if test $ac_cv_header_time = yes; then
22206
cristy8b350f62009-11-15 23:12:43 +000022207$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022208
22209fi
22210
cristy8b350f62009-11-15 23:12:43 +000022211{ $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 +000022212$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022213if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022214 $as_echo_n "(cached) " >&6
22215else
cristy8b350f62009-11-15 23:12:43 +000022216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022217/* end confdefs.h. */
22218#include <sys/types.h>
22219#include <time.h>
22220
22221int
22222main ()
22223{
22224struct tm tm;
22225 int *p = &tm.tm_sec;
22226 return !p;
22227 ;
22228 return 0;
22229}
22230_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022231if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022232 ac_cv_struct_tm=time.h
22233else
cristy8b350f62009-11-15 23:12:43 +000022234 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022235fi
cristy3ed852e2009-09-05 21:47:34 +000022236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22237fi
cristy8b350f62009-11-15 23:12:43 +000022238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022239$as_echo "$ac_cv_struct_tm" >&6; }
22240if test $ac_cv_struct_tm = sys/time.h; then
22241
cristy8b350f62009-11-15 23:12:43 +000022242$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022243
22244fi
22245
cristy92703d82010-04-26 00:18:18 +000022246ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22247#include <$ac_cv_struct_tm>
22248
22249"
cristyda16f162011-02-19 23:52:17 +000022250if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022251
22252cat >>confdefs.h <<_ACEOF
22253#define HAVE_STRUCT_TM_TM_ZONE 1
22254_ACEOF
22255
22256
22257fi
22258
22259if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22260
22261$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22262
22263else
22264 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22265"
cristyda16f162011-02-19 23:52:17 +000022266if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022267 ac_have_decl=1
22268else
22269 ac_have_decl=0
22270fi
22271
22272cat >>confdefs.h <<_ACEOF
22273#define HAVE_DECL_TZNAME $ac_have_decl
22274_ACEOF
22275
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22277$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022278if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022279 $as_echo_n "(cached) " >&6
22280else
22281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22282/* end confdefs.h. */
22283#include <time.h>
22284#if !HAVE_DECL_TZNAME
22285extern char *tzname[];
22286#endif
22287
22288int
22289main ()
22290{
22291return tzname[0][0];
22292 ;
22293 return 0;
22294}
22295_ACEOF
22296if ac_fn_c_try_link "$LINENO"; then :
22297 ac_cv_var_tzname=yes
22298else
22299 ac_cv_var_tzname=no
22300fi
22301rm -f core conftest.err conftest.$ac_objext \
22302 conftest$ac_exeext conftest.$ac_ext
22303fi
22304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22305$as_echo "$ac_cv_var_tzname" >&6; }
22306 if test $ac_cv_var_tzname = yes; then
22307
22308$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22309
22310 fi
22311fi
22312
cristy8b350f62009-11-15 23:12:43 +000022313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022314$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022315if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022316 $as_echo_n "(cached) " >&6
22317else
22318 echo '#! /bin/cat
22319exit 69
22320' >conftest
22321chmod u+x conftest
22322(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22323if test $? -ne 69; then
22324 ac_cv_sys_interpreter=yes
22325else
22326 ac_cv_sys_interpreter=no
22327fi
22328rm -f conftest
22329fi
cristy8b350f62009-11-15 23:12:43 +000022330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022331$as_echo "$ac_cv_sys_interpreter" >&6; }
22332interpval=$ac_cv_sys_interpreter
22333
22334
cristye80f9cb2013-01-09 01:09:31 +000022335#
22336# Checks for language qualifiers and semantics.
22337#
22338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22339$as_echo_n "checking whether char is unsigned... " >&6; }
22340if ${ac_cv_c_char_unsigned+:} false; then :
22341 $as_echo_n "(cached) " >&6
22342else
22343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22344/* end confdefs.h. */
22345$ac_includes_default
22346int
22347main ()
22348{
22349static int test_array [1 - 2 * !(((char) -1) < 0)];
22350test_array [0] = 0;
22351return test_array [0];
22352
22353 ;
22354 return 0;
22355}
22356_ACEOF
22357if ac_fn_c_try_compile "$LINENO"; then :
22358 ac_cv_c_char_unsigned=no
22359else
22360 ac_cv_c_char_unsigned=yes
22361fi
22362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22363fi
22364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22365$as_echo "$ac_cv_c_char_unsigned" >&6; }
22366if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22367 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22368
22369fi
22370
22371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22372$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22373if ${ac_cv_c_const+:} false; then :
22374 $as_echo_n "(cached) " >&6
22375else
22376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22377/* end confdefs.h. */
22378
22379int
22380main ()
22381{
22382
22383#ifndef __cplusplus
22384 /* Ultrix mips cc rejects this sort of thing. */
22385 typedef int charset[2];
22386 const charset cs = { 0, 0 };
22387 /* SunOS 4.1.1 cc rejects this. */
22388 char const *const *pcpcc;
22389 char **ppc;
22390 /* NEC SVR4.0.2 mips cc rejects this. */
22391 struct point {int x, y;};
22392 static struct point const zero = {0,0};
22393 /* AIX XL C 1.02.0.0 rejects this.
22394 It does not let you subtract one const X* pointer from another in
22395 an arm of an if-expression whose if-part is not a constant
22396 expression */
22397 const char *g = "string";
22398 pcpcc = &g + (g ? g-g : 0);
22399 /* HPUX 7.0 cc rejects these. */
22400 ++pcpcc;
22401 ppc = (char**) pcpcc;
22402 pcpcc = (char const *const *) ppc;
22403 { /* SCO 3.2v4 cc rejects this sort of thing. */
22404 char tx;
22405 char *t = &tx;
22406 char const *s = 0 ? (char *) 0 : (char const *) 0;
22407
22408 *t++ = 0;
22409 if (s) return 0;
22410 }
22411 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22412 int x[] = {25, 17};
22413 const int *foo = &x[0];
22414 ++foo;
22415 }
22416 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22417 typedef const int *iptr;
22418 iptr p = 0;
22419 ++p;
22420 }
22421 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22422 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22423 struct s { int j; const int *ap[3]; } bx;
22424 struct s *b = &bx; b->j = 5;
22425 }
22426 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22427 const int foo = 10;
22428 if (!foo) return 0;
22429 }
22430 return !cs[0] && !zero.x;
22431#endif
22432
22433 ;
22434 return 0;
22435}
22436_ACEOF
22437if ac_fn_c_try_compile "$LINENO"; then :
22438 ac_cv_c_const=yes
22439else
22440 ac_cv_c_const=no
22441fi
22442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22443fi
22444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22445$as_echo "$ac_cv_c_const" >&6; }
22446if test $ac_cv_c_const = no; then
22447
22448$as_echo "#define const /**/" >>confdefs.h
22449
22450fi
22451
cristy8b350f62009-11-15 23:12:43 +000022452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022453$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022454if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022455 $as_echo_n "(cached) " >&6
22456else
22457 ac_cv_c_inline=no
22458for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022460/* end confdefs.h. */
22461#ifndef __cplusplus
22462typedef int foo_t;
22463static $ac_kw foo_t static_foo () {return 0; }
22464$ac_kw foo_t foo () {return 0; }
22465#endif
22466
22467_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022468if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022469 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022470fi
cristy3ed852e2009-09-05 21:47:34 +000022471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22472 test "$ac_cv_c_inline" != no && break
22473done
22474
22475fi
cristy8b350f62009-11-15 23:12:43 +000022476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022477$as_echo "$ac_cv_c_inline" >&6; }
22478
cristy3ed852e2009-09-05 21:47:34 +000022479case $ac_cv_c_inline in
22480 inline | yes) ;;
22481 *)
22482 case $ac_cv_c_inline in
22483 no) ac_val=;;
22484 *) ac_val=$ac_cv_c_inline;;
22485 esac
22486 cat >>confdefs.h <<_ACEOF
22487#ifndef __cplusplus
22488#define inline $ac_val
22489#endif
22490_ACEOF
22491 ;;
22492esac
22493
cristy8b350f62009-11-15 23:12:43 +000022494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022495$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022496if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022497 $as_echo_n "(cached) " >&6
22498else
22499 ac_cv_c_restrict=no
22500 # The order here caters to the fact that C++ does not require restrict.
22501 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022503/* end confdefs.h. */
22504typedef int * int_ptr;
22505 int foo (int_ptr $ac_kw ip) {
22506 return ip[0];
22507 }
22508int
22509main ()
22510{
22511int s[1];
22512 int * $ac_kw t = s;
22513 t[0] = 0;
22514 return foo(t)
22515 ;
22516 return 0;
22517}
22518_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022519if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022520 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022521fi
cristy3ed852e2009-09-05 21:47:34 +000022522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22523 test "$ac_cv_c_restrict" != no && break
22524 done
22525
22526fi
cristy8b350f62009-11-15 23:12:43 +000022527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022528$as_echo "$ac_cv_c_restrict" >&6; }
22529
cristy3ed852e2009-09-05 21:47:34 +000022530 case $ac_cv_c_restrict in
22531 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022532 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022533 ;;
22534 *) cat >>confdefs.h <<_ACEOF
22535#define restrict $ac_cv_c_restrict
22536_ACEOF
22537 ;;
22538 esac
22539
cristye80f9cb2013-01-09 01:09:31 +000022540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22541$as_echo_n "checking for working volatile... " >&6; }
22542if ${ac_cv_c_volatile+:} false; then :
22543 $as_echo_n "(cached) " >&6
22544else
22545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22546/* end confdefs.h. */
22547
22548int
22549main ()
22550{
22551
22552volatile int x;
22553int * volatile y = (int *) 0;
22554return !x && !y;
22555 ;
22556 return 0;
22557}
22558_ACEOF
22559if ac_fn_c_try_compile "$LINENO"; then :
22560 ac_cv_c_volatile=yes
22561else
22562 ac_cv_c_volatile=no
22563fi
22564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565fi
22566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22567$as_echo "$ac_cv_c_volatile" >&6; }
22568if test $ac_cv_c_volatile = no; then
22569
22570$as_echo "#define volatile /**/" >>confdefs.h
22571
22572fi
22573
cristy3ed852e2009-09-05 21:47:34 +000022574
22575# If words are stored with the most significant byte first (like
22576# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022578$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022579if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022580 $as_echo_n "(cached) " >&6
22581else
22582 ac_cv_c_bigendian=unknown
22583 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022585/* end confdefs.h. */
22586#ifndef __APPLE_CC__
22587 not a universal capable compiler
22588 #endif
22589 typedef int dummy;
22590
22591_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022592if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022593
22594 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022595 # there are at least two -arch flags with different values.
22596 ac_arch=
22597 ac_prev=
22598 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22599 if test -n "$ac_prev"; then
22600 case $ac_word in
22601 i?86 | x86_64 | ppc | ppc64)
22602 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22603 ac_arch=$ac_word
22604 else
22605 ac_cv_c_bigendian=universal
22606 break
22607 fi
22608 ;;
22609 esac
22610 ac_prev=
22611 elif test "x$ac_word" = "x-arch"; then
22612 ac_prev=arch
22613 fi
22614 done
cristy3ed852e2009-09-05 21:47:34 +000022615fi
cristy3ed852e2009-09-05 21:47:34 +000022616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22617 if test $ac_cv_c_bigendian = unknown; then
22618 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022620/* end confdefs.h. */
22621#include <sys/types.h>
22622 #include <sys/param.h>
22623
22624int
22625main ()
22626{
22627#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22628 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22629 && LITTLE_ENDIAN)
22630 bogus endian macros
22631 #endif
22632
22633 ;
22634 return 0;
22635}
22636_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022637if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022638 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022640/* end confdefs.h. */
22641#include <sys/types.h>
22642 #include <sys/param.h>
22643
22644int
22645main ()
22646{
22647#if BYTE_ORDER != BIG_ENDIAN
22648 not big endian
22649 #endif
22650
22651 ;
22652 return 0;
22653}
22654_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022655if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022656 ac_cv_c_bigendian=yes
22657else
cristy8b350f62009-11-15 23:12:43 +000022658 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022659fi
cristy3ed852e2009-09-05 21:47:34 +000022660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022661fi
cristy3ed852e2009-09-05 21:47:34 +000022662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22663 fi
22664 if test $ac_cv_c_bigendian = unknown; then
22665 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022667/* end confdefs.h. */
22668#include <limits.h>
22669
22670int
22671main ()
22672{
22673#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22674 bogus endian macros
22675 #endif
22676
22677 ;
22678 return 0;
22679}
22680_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022681if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022682 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022684/* end confdefs.h. */
22685#include <limits.h>
22686
22687int
22688main ()
22689{
22690#ifndef _BIG_ENDIAN
22691 not big endian
22692 #endif
22693
22694 ;
22695 return 0;
22696}
22697_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022698if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022699 ac_cv_c_bigendian=yes
22700else
cristy8b350f62009-11-15 23:12:43 +000022701 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022702fi
cristy3ed852e2009-09-05 21:47:34 +000022703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022704fi
cristy3ed852e2009-09-05 21:47:34 +000022705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22706 fi
22707 if test $ac_cv_c_bigendian = unknown; then
22708 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022709 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022710 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022712/* end confdefs.h. */
22713short int ascii_mm[] =
22714 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22715 short int ascii_ii[] =
22716 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22717 int use_ascii (int i) {
22718 return ascii_mm[i] + ascii_ii[i];
22719 }
22720 short int ebcdic_ii[] =
22721 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22722 short int ebcdic_mm[] =
22723 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22724 int use_ebcdic (int i) {
22725 return ebcdic_mm[i] + ebcdic_ii[i];
22726 }
22727 extern int foo;
22728
22729int
22730main ()
22731{
22732return use_ascii (foo) == use_ebcdic (foo);
22733 ;
22734 return 0;
22735}
22736_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022737if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022738 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22739 ac_cv_c_bigendian=yes
22740 fi
22741 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22742 if test "$ac_cv_c_bigendian" = unknown; then
22743 ac_cv_c_bigendian=no
22744 else
22745 # finding both strings is unlikely to happen, but who knows?
22746 ac_cv_c_bigendian=unknown
22747 fi
22748 fi
cristy3ed852e2009-09-05 21:47:34 +000022749fi
cristy3ed852e2009-09-05 21:47:34 +000022750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22751else
cristy8b350f62009-11-15 23:12:43 +000022752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022753/* end confdefs.h. */
22754$ac_includes_default
22755int
22756main ()
22757{
22758
22759 /* Are we little or big endian? From Harbison&Steele. */
22760 union
22761 {
22762 long int l;
22763 char c[sizeof (long int)];
22764 } u;
22765 u.l = 1;
22766 return u.c[sizeof (long int) - 1] == 1;
22767
22768 ;
22769 return 0;
22770}
22771_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022772if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022773 ac_cv_c_bigendian=no
22774else
cristy8b350f62009-11-15 23:12:43 +000022775 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022776fi
cristy8b350f62009-11-15 23:12:43 +000022777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22778 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022779fi
22780
cristy3ed852e2009-09-05 21:47:34 +000022781 fi
22782fi
cristy8b350f62009-11-15 23:12:43 +000022783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022784$as_echo "$ac_cv_c_bigendian" >&6; }
22785 case $ac_cv_c_bigendian in #(
22786 yes)
cristy8b350f62009-11-15 23:12:43 +000022787 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022788;; #(
22789 no)
22790 ;; #(
22791 universal)
22792
cristy8b350f62009-11-15 23:12:43 +000022793$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022794
22795 ;; #(
22796 *)
cristy98dddb52010-11-04 00:30:15 +000022797 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022798 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022799 esac
22800
22801
cristy501c8042011-05-26 17:46:28 +000022802# Define to a suitable type, if standard headers do not define it.
22803ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22804case $ac_cv_c_int8_t in #(
22805 no|yes) ;; #(
22806 *)
cristy3ed852e2009-09-05 21:47:34 +000022807
22808cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022809#define int8_t $ac_cv_c_int8_t
22810_ACEOF
22811;;
22812esac
22813
22814ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22815case $ac_cv_c_int16_t in #(
22816 no|yes) ;; #(
22817 *)
22818
22819cat >>confdefs.h <<_ACEOF
22820#define int16_t $ac_cv_c_int16_t
22821_ACEOF
22822;;
22823esac
22824
22825ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22826case $ac_cv_c_int32_t in #(
22827 no|yes) ;; #(
22828 *)
22829
22830cat >>confdefs.h <<_ACEOF
22831#define int32_t $ac_cv_c_int32_t
22832_ACEOF
22833;;
22834esac
22835
22836ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22837case $ac_cv_c_int64_t in #(
22838 no|yes) ;; #(
22839 *)
22840
22841cat >>confdefs.h <<_ACEOF
22842#define int64_t $ac_cv_c_int64_t
22843_ACEOF
22844;;
22845esac
22846
22847
cristy045228a2013-06-23 11:00:16 +000022848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22849$as_echo_n "checking for unsigned long long int... " >&6; }
22850if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022851 $as_echo_n "(cached) " >&6
22852else
cristy045228a2013-06-23 11:00:16 +000022853 ac_cv_type_unsigned_long_long_int=yes
22854 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022856/* end confdefs.h. */
22857
22858 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022859 implementations with broken preprocessors. Perhaps this can
22860 be revisited in 2012. In the meantime, code should not expect
22861 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022862 /* Test literals. */
22863 long long int ll = 9223372036854775807ll;
22864 long long int nll = -9223372036854775807LL;
22865 unsigned long long int ull = 18446744073709551615ULL;
22866 /* Test constant expressions. */
22867 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022868 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022869 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022870 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022871 int i = 63;
22872int
22873main ()
22874{
22875/* Test availability of runtime routines for shift and division. */
22876 long long int llmax = 9223372036854775807ll;
22877 unsigned long long int ullmax = 18446744073709551615ull;
22878 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022879 | (llmax / ll) | (llmax % ll)
22880 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22881 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022882 ;
22883 return 0;
22884}
22885
22886_ACEOF
22887if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022888
22889else
22890 ac_cv_type_unsigned_long_long_int=no
22891fi
22892rm -f core conftest.err conftest.$ac_objext \
22893 conftest$ac_exeext conftest.$ac_ext
22894 fi
22895fi
22896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22897$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22898 if test $ac_cv_type_unsigned_long_long_int = yes; then
22899
22900$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22901
22902 fi
22903
22904
22905
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22907$as_echo_n "checking for long long int... " >&6; }
22908if ${ac_cv_type_long_long_int+:} false; then :
22909 $as_echo_n "(cached) " >&6
22910else
cristy501c8042011-05-26 17:46:28 +000022911 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022912 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022913 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22914 if test $ac_cv_type_long_long_int = yes; then
22915 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022916 :
cristy501c8042011-05-26 17:46:28 +000022917else
22918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22919/* end confdefs.h. */
22920#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022921 #ifndef LLONG_MAX
22922 # define HALF \
22923 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22924 # define LLONG_MAX (HALF - 1 + HALF)
22925 #endif
cristy501c8042011-05-26 17:46:28 +000022926int
22927main ()
22928{
22929long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022930 int i;
22931 for (i = 0; ; i++)
22932 {
22933 long long int m = n << i;
22934 if (m >> i != n)
22935 return 1;
22936 if (LLONG_MAX / 2 < m)
22937 break;
22938 }
22939 return 0;
cristy501c8042011-05-26 17:46:28 +000022940 ;
22941 return 0;
22942}
22943_ACEOF
22944if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022945
cristy501c8042011-05-26 17:46:28 +000022946else
22947 ac_cv_type_long_long_int=no
22948fi
22949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22950 conftest.$ac_objext conftest.beam conftest.$ac_ext
22951fi
22952
cristy5ed9c6e2013-07-14 21:20:31 +000022953 fi
cristy045228a2013-06-23 11:00:16 +000022954 fi
cristy501c8042011-05-26 17:46:28 +000022955fi
22956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22957$as_echo "$ac_cv_type_long_long_int" >&6; }
22958 if test $ac_cv_type_long_long_int = yes; then
22959
22960$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22961
22962 fi
22963
22964
22965
22966 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22967if test "x$ac_cv_type_intmax_t" = xyes; then :
22968
22969$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22970
22971else
22972 test $ac_cv_type_long_long_int = yes \
22973 && ac_type='long long int' \
22974 || ac_type='long int'
22975
22976cat >>confdefs.h <<_ACEOF
22977#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022978_ACEOF
22979
22980fi
22981
22982
cristy501c8042011-05-26 17:46:28 +000022983
22984 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22985if test "x$ac_cv_type_intptr_t" = xyes; then :
22986
22987$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022988
cristy3ed852e2009-09-05 21:47:34 +000022989else
cristy501c8042011-05-26 17:46:28 +000022990 for ac_type in 'int' 'long int' 'long long int'; do
22991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22992/* end confdefs.h. */
22993$ac_includes_default
22994int
22995main ()
22996{
22997static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022998test_array [0] = 0;
22999return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023000
23001 ;
23002 return 0;
23003}
23004_ACEOF
23005if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023006
23007cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023008#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023009_ACEOF
23010
cristy501c8042011-05-26 17:46:28 +000023011 ac_type=
23012fi
23013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23014 test -z "$ac_type" && break
23015 done
cristy3ed852e2009-09-05 21:47:34 +000023016fi
23017
23018
cristy3ed852e2009-09-05 21:47:34 +000023019
cristy501c8042011-05-26 17:46:28 +000023020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23021$as_echo_n "checking for long double... " >&6; }
23022if ${ac_cv_type_long_double+:} false; then :
23023 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023024else
cristy501c8042011-05-26 17:46:28 +000023025 if test "$GCC" = yes; then
23026 ac_cv_type_long_double=yes
23027 else
23028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23029/* end confdefs.h. */
23030/* The Stardent Vistra knows sizeof (long double), but does
23031 not support it. */
23032 long double foo = 0.0L;
23033int
23034main ()
23035{
23036static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23037 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023038test_array [0] = 0;
23039return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023040
cristy501c8042011-05-26 17:46:28 +000023041 ;
23042 return 0;
23043}
cristy3ed852e2009-09-05 21:47:34 +000023044_ACEOF
cristy501c8042011-05-26 17:46:28 +000023045if ac_fn_c_try_compile "$LINENO"; then :
23046 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023047else
cristy501c8042011-05-26 17:46:28 +000023048 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023049fi
cristy501c8042011-05-26 17:46:28 +000023050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23051 fi
cristy3ed852e2009-09-05 21:47:34 +000023052fi
cristy501c8042011-05-26 17:46:28 +000023053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23054$as_echo "$ac_cv_type_long_double" >&6; }
23055 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023056
cristy501c8042011-05-26 17:46:28 +000023057$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023058
cristy501c8042011-05-26 17:46:28 +000023059 fi
23060
cristy3ed852e2009-09-05 21:47:34 +000023061
cristy8b350f62009-11-15 23:12:43 +000023062 { $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 +000023063$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023064if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023065 $as_echo_n "(cached) " >&6
23066else
cristy8b350f62009-11-15 23:12:43 +000023067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023068/* end confdefs.h. */
23069#include <float.h>
23070 long double const a[] =
23071 {
23072 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23073 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23074 };
23075 long double
23076 f (long double x)
23077 {
23078 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23079 + (x ? f (x) : 'c'));
23080 }
23081
23082int
23083main ()
23084{
23085static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23086 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23087 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23088 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23089 && (int) LDBL_EPSILON == 0
23090 )];
cristy14fefe52012-05-21 00:59:18 +000023091test_array [0] = 0;
23092return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023093
23094 ;
23095 return 0;
23096}
23097_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023098if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023099 ac_cv_type_long_double_wider=yes
23100else
cristy8b350f62009-11-15 23:12:43 +000023101 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023102fi
cristy3ed852e2009-09-05 21:47:34 +000023103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23104fi
cristy8b350f62009-11-15 23:12:43 +000023105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023106$as_echo "$ac_cv_type_long_double_wider" >&6; }
23107 if test $ac_cv_type_long_double_wider = yes; then
23108
cristy8b350f62009-11-15 23:12:43 +000023109$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023110
23111 fi
23112
23113
cristy045228a2013-06-23 11:00:16 +000023114
cristy501c8042011-05-26 17:46:28 +000023115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23116$as_echo_n "checking for long long int... " >&6; }
23117if ${ac_cv_type_long_long_int+:} false; then :
23118 $as_echo_n "(cached) " >&6
23119else
cristy501c8042011-05-26 17:46:28 +000023120 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023121 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023122 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23123 if test $ac_cv_type_long_long_int = yes; then
23124 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023125 :
cristy501c8042011-05-26 17:46:28 +000023126else
23127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23128/* end confdefs.h. */
23129#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023130 #ifndef LLONG_MAX
23131 # define HALF \
23132 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23133 # define LLONG_MAX (HALF - 1 + HALF)
23134 #endif
cristy501c8042011-05-26 17:46:28 +000023135int
23136main ()
23137{
23138long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023139 int i;
23140 for (i = 0; ; i++)
23141 {
23142 long long int m = n << i;
23143 if (m >> i != n)
23144 return 1;
23145 if (LLONG_MAX / 2 < m)
23146 break;
23147 }
23148 return 0;
cristy501c8042011-05-26 17:46:28 +000023149 ;
23150 return 0;
23151}
23152_ACEOF
23153if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023154
cristy501c8042011-05-26 17:46:28 +000023155else
23156 ac_cv_type_long_long_int=no
23157fi
23158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23159 conftest.$ac_objext conftest.beam conftest.$ac_ext
23160fi
23161
cristy5ed9c6e2013-07-14 21:20:31 +000023162 fi
cristy045228a2013-06-23 11:00:16 +000023163 fi
cristy501c8042011-05-26 17:46:28 +000023164fi
23165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23166$as_echo "$ac_cv_type_long_long_int" >&6; }
23167 if test $ac_cv_type_long_long_int = yes; then
23168
23169$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23170
23171 fi
23172
23173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23174$as_echo_n "checking for mbstate_t... " >&6; }
23175if ${ac_cv_type_mbstate_t+:} false; then :
23176 $as_echo_n "(cached) " >&6
23177else
23178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23179/* end confdefs.h. */
23180$ac_includes_default
23181# include <wchar.h>
23182int
23183main ()
23184{
23185mbstate_t x; return sizeof x;
23186 ;
23187 return 0;
23188}
23189_ACEOF
23190if ac_fn_c_try_compile "$LINENO"; then :
23191 ac_cv_type_mbstate_t=yes
23192else
23193 ac_cv_type_mbstate_t=no
23194fi
23195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23196fi
23197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23198$as_echo "$ac_cv_type_mbstate_t" >&6; }
23199 if test $ac_cv_type_mbstate_t = yes; then
23200
23201$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23202
23203 else
23204
23205$as_echo "#define mbstate_t int" >>confdefs.h
23206
23207 fi
23208ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23209if test "x$ac_cv_type_mode_t" = xyes; then :
23210
23211else
23212
23213cat >>confdefs.h <<_ACEOF
23214#define mode_t int
23215_ACEOF
23216
23217fi
23218
23219ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23220if test "x$ac_cv_type_off_t" = xyes; then :
23221
23222else
23223
23224cat >>confdefs.h <<_ACEOF
23225#define off_t long int
23226_ACEOF
23227
23228fi
23229
23230ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23231if test "x$ac_cv_type_pid_t" = xyes; then :
23232
23233else
23234
23235cat >>confdefs.h <<_ACEOF
23236#define pid_t int
23237_ACEOF
23238
23239fi
23240
23241ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23242if test "x$ac_cv_type_size_t" = xyes; then :
23243
23244else
23245
23246cat >>confdefs.h <<_ACEOF
23247#define size_t unsigned int
23248_ACEOF
23249
23250fi
23251
23252ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23253if test "x$ac_cv_type_ssize_t" = xyes; then :
23254
23255else
23256
23257cat >>confdefs.h <<_ACEOF
23258#define ssize_t int
23259_ACEOF
23260
23261fi
23262
23263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23264$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23265if ${ac_cv_type_uid_t+:} false; then :
23266 $as_echo_n "(cached) " >&6
23267else
23268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23269/* end confdefs.h. */
23270#include <sys/types.h>
23271
23272_ACEOF
23273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23274 $EGREP "uid_t" >/dev/null 2>&1; then :
23275 ac_cv_type_uid_t=yes
23276else
23277 ac_cv_type_uid_t=no
23278fi
23279rm -f conftest*
23280
23281fi
23282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23283$as_echo "$ac_cv_type_uid_t" >&6; }
23284if test $ac_cv_type_uid_t = no; then
23285
23286$as_echo "#define uid_t int" >>confdefs.h
23287
23288
23289$as_echo "#define gid_t int" >>confdefs.h
23290
23291fi
23292
23293ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23294case $ac_cv_c_uint8_t in #(
23295 no|yes) ;; #(
23296 *)
23297
23298$as_echo "#define _UINT8_T 1" >>confdefs.h
23299
23300
23301cat >>confdefs.h <<_ACEOF
23302#define uint8_t $ac_cv_c_uint8_t
23303_ACEOF
23304;;
23305 esac
23306
23307ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23308case $ac_cv_c_uint16_t in #(
23309 no|yes) ;; #(
23310 *)
23311
23312
23313cat >>confdefs.h <<_ACEOF
23314#define uint16_t $ac_cv_c_uint16_t
23315_ACEOF
23316;;
23317 esac
23318
23319ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23320case $ac_cv_c_uint32_t in #(
23321 no|yes) ;; #(
23322 *)
23323
23324$as_echo "#define _UINT32_T 1" >>confdefs.h
23325
23326
23327cat >>confdefs.h <<_ACEOF
23328#define uint32_t $ac_cv_c_uint32_t
23329_ACEOF
23330;;
23331 esac
23332
23333ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23334case $ac_cv_c_uint64_t in #(
23335 no|yes) ;; #(
23336 *)
23337
23338$as_echo "#define _UINT64_T 1" >>confdefs.h
23339
23340
23341cat >>confdefs.h <<_ACEOF
23342#define uint64_t $ac_cv_c_uint64_t
23343_ACEOF
23344;;
23345 esac
23346
23347
cristy501c8042011-05-26 17:46:28 +000023348
23349 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23350if test "x$ac_cv_type_uintmax_t" = xyes; then :
23351
23352$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23353
23354else
23355 test $ac_cv_type_unsigned_long_long_int = yes \
23356 && ac_type='unsigned long long int' \
23357 || ac_type='unsigned long int'
23358
23359cat >>confdefs.h <<_ACEOF
23360#define uintmax_t $ac_type
23361_ACEOF
23362
23363fi
23364
23365
23366
23367 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23368if test "x$ac_cv_type_uintptr_t" = xyes; then :
23369
23370$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23371
23372else
23373 for ac_type in 'unsigned int' 'unsigned long int' \
23374 'unsigned long long int'; do
23375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23376/* end confdefs.h. */
23377$ac_includes_default
23378int
23379main ()
23380{
23381static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023382test_array [0] = 0;
23383return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023384
23385 ;
23386 return 0;
23387}
23388_ACEOF
23389if ac_fn_c_try_compile "$LINENO"; then :
23390
23391cat >>confdefs.h <<_ACEOF
23392#define uintptr_t $ac_type
23393_ACEOF
23394
23395 ac_type=
23396fi
23397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23398 test -z "$ac_type" && break
23399 done
23400fi
23401
23402
23403
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23405$as_echo_n "checking for unsigned long long int... " >&6; }
23406if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23407 $as_echo_n "(cached) " >&6
23408else
cristy045228a2013-06-23 11:00:16 +000023409 ac_cv_type_unsigned_long_long_int=yes
23410 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023412/* end confdefs.h. */
23413
23414 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023415 implementations with broken preprocessors. Perhaps this can
23416 be revisited in 2012. In the meantime, code should not expect
23417 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023418 /* Test literals. */
23419 long long int ll = 9223372036854775807ll;
23420 long long int nll = -9223372036854775807LL;
23421 unsigned long long int ull = 18446744073709551615ULL;
23422 /* Test constant expressions. */
23423 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023424 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023425 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023426 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023427 int i = 63;
23428int
23429main ()
23430{
23431/* Test availability of runtime routines for shift and division. */
23432 long long int llmax = 9223372036854775807ll;
23433 unsigned long long int ullmax = 18446744073709551615ull;
23434 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023435 | (llmax / ll) | (llmax % ll)
23436 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23437 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023438 ;
23439 return 0;
23440}
23441
23442_ACEOF
23443if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023444
cristy501c8042011-05-26 17:46:28 +000023445else
23446 ac_cv_type_unsigned_long_long_int=no
23447fi
23448rm -f core conftest.err conftest.$ac_objext \
23449 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023450 fi
cristy501c8042011-05-26 17:46:28 +000023451fi
23452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23453$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23454 if test $ac_cv_type_unsigned_long_long_int = yes; then
23455
23456$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23457
23458 fi
23459
23460
cristyfec31822013-05-23 12:32:12 +000023461# Float_t and double_t are intended to be the the most efficient type.
23462ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23463"
23464if test "x$ac_cv_type_float_t" = xyes; then :
23465
23466cat >>confdefs.h <<_ACEOF
23467#define HAVE_FLOAT_T 1
23468_ACEOF
23469
23470
23471fi
23472
23473ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23474"
23475if test "x$ac_cv_type_double_t" = xyes; then :
23476
23477cat >>confdefs.h <<_ACEOF
23478#define HAVE_DOUBLE_T 1
23479_ACEOF
23480
23481
23482fi
23483
23484# The cast to long int works around a bug in the HP C Compiler
23485# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23486# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23487# This bug is HP SR number 8606223364.
23488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23489$as_echo_n "checking size of float_t... " >&6; }
23490if ${ac_cv_sizeof_float_t+:} false; then :
23491 $as_echo_n "(cached) " >&6
23492else
23493 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23494"; then :
23495
23496else
23497 if test "$ac_cv_type_float_t" = yes; then
23498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23500as_fn_error 77 "cannot compute sizeof (float_t)
23501See \`config.log' for more details" "$LINENO" 5; }
23502 else
23503 ac_cv_sizeof_float_t=0
23504 fi
23505fi
23506
23507fi
23508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23509$as_echo "$ac_cv_sizeof_float_t" >&6; }
23510
23511
23512
23513cat >>confdefs.h <<_ACEOF
23514#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23515_ACEOF
23516
23517
23518# The cast to long int works around a bug in the HP C Compiler
23519# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23520# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23521# This bug is HP SR number 8606223364.
23522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23523$as_echo_n "checking size of double_t... " >&6; }
23524if ${ac_cv_sizeof_double_t+:} false; then :
23525 $as_echo_n "(cached) " >&6
23526else
23527 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23528"; then :
23529
23530else
23531 if test "$ac_cv_type_double_t" = yes; then
23532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23534as_fn_error 77 "cannot compute sizeof (double_t)
23535See \`config.log' for more details" "$LINENO" 5; }
23536 else
23537 ac_cv_sizeof_double_t=0
23538 fi
23539fi
23540
23541fi
23542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23543$as_echo "$ac_cv_sizeof_double_t" >&6; }
23544
23545
23546
23547cat >>confdefs.h <<_ACEOF
23548#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23549_ACEOF
23550
23551
23552
cristy9b86f202012-11-28 21:55:35 +000023553# Get size of float, double and long double for comparaison.
23554# The cast to long int works around a bug in the HP C Compiler
23555# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23556# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23557# This bug is HP SR number 8606223364.
23558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23559$as_echo_n "checking size of float... " >&6; }
23560if ${ac_cv_sizeof_float+:} false; then :
23561 $as_echo_n "(cached) " >&6
23562else
23563 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23564
23565else
23566 if test "$ac_cv_type_float" = yes; then
23567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23569as_fn_error 77 "cannot compute sizeof (float)
23570See \`config.log' for more details" "$LINENO" 5; }
23571 else
23572 ac_cv_sizeof_float=0
23573 fi
23574fi
23575
23576fi
23577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23578$as_echo "$ac_cv_sizeof_float" >&6; }
23579
23580
23581
23582cat >>confdefs.h <<_ACEOF
23583#define SIZEOF_FLOAT $ac_cv_sizeof_float
23584_ACEOF
23585
23586
23587# The cast to long int works around a bug in the HP C Compiler
23588# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23589# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23590# This bug is HP SR number 8606223364.
23591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23592$as_echo_n "checking size of double... " >&6; }
23593if ${ac_cv_sizeof_double+:} false; then :
23594 $as_echo_n "(cached) " >&6
23595else
23596 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23597
23598else
23599 if test "$ac_cv_type_double" = yes; then
23600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23602as_fn_error 77 "cannot compute sizeof (double)
23603See \`config.log' for more details" "$LINENO" 5; }
23604 else
23605 ac_cv_sizeof_double=0
23606 fi
23607fi
23608
23609fi
23610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23611$as_echo "$ac_cv_sizeof_double" >&6; }
23612
23613
23614
23615cat >>confdefs.h <<_ACEOF
23616#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23617_ACEOF
23618
23619
cristyfec31822013-05-23 12:32:12 +000023620# The cast to long int works around a bug in the HP C Compiler
23621# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23622# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23623# This bug is HP SR number 8606223364.
23624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23625$as_echo_n "checking size of long double... " >&6; }
23626if ${ac_cv_sizeof_long_double+:} false; then :
23627 $as_echo_n "(cached) " >&6
23628else
23629 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23630
23631else
23632 if test "$ac_cv_type_long_double" = yes; then
23633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23635as_fn_error 77 "cannot compute sizeof (long double)
23636See \`config.log' for more details" "$LINENO" 5; }
23637 else
23638 ac_cv_sizeof_long_double=0
23639 fi
23640fi
23641
23642fi
23643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23644$as_echo "$ac_cv_sizeof_long_double" >&6; }
23645
23646
23647
23648cat >>confdefs.h <<_ACEOF
23649#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23650_ACEOF
23651
23652
cristyf0cf9a22012-10-24 12:05:01 +000023653
cristy3ed852e2009-09-05 21:47:34 +000023654# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23655# The cast to long int works around a bug in the HP C Compiler
23656# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23657# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23658# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023660$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023661if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023662 $as_echo_n "(cached) " >&6
23663else
cristy8b350f62009-11-15 23:12:43 +000023664 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 +000023665
cristy3ed852e2009-09-05 21:47:34 +000023666else
cristy8b350f62009-11-15 23:12:43 +000023667 if test "$ac_cv_type_signed_short" = yes; then
23668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023669$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023670as_fn_error 77 "cannot compute sizeof (signed short)
23671See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023672 else
23673 ac_cv_sizeof_signed_short=0
23674 fi
23675fi
cristy8b350f62009-11-15 23:12:43 +000023676
cristy3ed852e2009-09-05 21:47:34 +000023677fi
cristy8b350f62009-11-15 23:12:43 +000023678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023679$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23680
23681
23682
23683cat >>confdefs.h <<_ACEOF
23684#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23685_ACEOF
23686
23687
23688
23689# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23690# The cast to long int works around a bug in the HP C Compiler
23691# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23692# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23693# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023695$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023696if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023697 $as_echo_n "(cached) " >&6
23698else
cristy8b350f62009-11-15 23:12:43 +000023699 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 +000023700
cristy3ed852e2009-09-05 21:47:34 +000023701else
cristy8b350f62009-11-15 23:12:43 +000023702 if test "$ac_cv_type_unsigned_short" = yes; then
23703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023705as_fn_error 77 "cannot compute sizeof (unsigned short)
23706See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023707 else
23708 ac_cv_sizeof_unsigned_short=0
23709 fi
23710fi
cristy8b350f62009-11-15 23:12:43 +000023711
cristy3ed852e2009-09-05 21:47:34 +000023712fi
cristy8b350f62009-11-15 23:12:43 +000023713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023714$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23715
23716
23717
23718cat >>confdefs.h <<_ACEOF
23719#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23720_ACEOF
23721
23722
23723
23724# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23725# The cast to long int works around a bug in the HP C Compiler
23726# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23727# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23728# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023730$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023731if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023732 $as_echo_n "(cached) " >&6
23733else
cristy8b350f62009-11-15 23:12:43 +000023734 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 +000023735
cristy3ed852e2009-09-05 21:47:34 +000023736else
cristy8b350f62009-11-15 23:12:43 +000023737 if test "$ac_cv_type_signed_int" = yes; then
23738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023740as_fn_error 77 "cannot compute sizeof (signed int)
23741See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023742 else
23743 ac_cv_sizeof_signed_int=0
23744 fi
23745fi
cristy8b350f62009-11-15 23:12:43 +000023746
cristy3ed852e2009-09-05 21:47:34 +000023747fi
cristy8b350f62009-11-15 23:12:43 +000023748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023749$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23750
23751
23752
23753cat >>confdefs.h <<_ACEOF
23754#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23755_ACEOF
23756
23757
23758
23759# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23760# The cast to long int works around a bug in the HP C Compiler
23761# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23762# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23763# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023765$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023766if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023767 $as_echo_n "(cached) " >&6
23768else
cristy8b350f62009-11-15 23:12:43 +000023769 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 +000023770
cristy3ed852e2009-09-05 21:47:34 +000023771else
cristy8b350f62009-11-15 23:12:43 +000023772 if test "$ac_cv_type_unsigned_int" = yes; then
23773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023775as_fn_error 77 "cannot compute sizeof (unsigned int)
23776See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023777 else
23778 ac_cv_sizeof_unsigned_int=0
23779 fi
23780fi
cristy8b350f62009-11-15 23:12:43 +000023781
cristy3ed852e2009-09-05 21:47:34 +000023782fi
cristy8b350f62009-11-15 23:12:43 +000023783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023784$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23785
23786
23787
23788cat >>confdefs.h <<_ACEOF
23789#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23790_ACEOF
23791
23792
23793
23794# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23795# The cast to long int works around a bug in the HP C Compiler
23796# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23797# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23798# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023800$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023801if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023802 $as_echo_n "(cached) " >&6
23803else
cristy8b350f62009-11-15 23:12:43 +000023804 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 +000023805
cristy3ed852e2009-09-05 21:47:34 +000023806else
cristy8b350f62009-11-15 23:12:43 +000023807 if test "$ac_cv_type_signed_long" = yes; then
23808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023810as_fn_error 77 "cannot compute sizeof (signed long)
23811See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023812 else
23813 ac_cv_sizeof_signed_long=0
23814 fi
23815fi
cristy8b350f62009-11-15 23:12:43 +000023816
cristy3ed852e2009-09-05 21:47:34 +000023817fi
cristy8b350f62009-11-15 23:12:43 +000023818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023819$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23820
23821
23822
23823cat >>confdefs.h <<_ACEOF
23824#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23825_ACEOF
23826
23827
23828
23829# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23830# The cast to long int works around a bug in the HP C Compiler
23831# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23832# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23833# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023835$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023836if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023837 $as_echo_n "(cached) " >&6
23838else
cristy8b350f62009-11-15 23:12:43 +000023839 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 +000023840
cristy3ed852e2009-09-05 21:47:34 +000023841else
cristy8b350f62009-11-15 23:12:43 +000023842 if test "$ac_cv_type_unsigned_long" = yes; then
23843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023845as_fn_error 77 "cannot compute sizeof (unsigned long)
23846See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023847 else
23848 ac_cv_sizeof_unsigned_long=0
23849 fi
23850fi
cristy8b350f62009-11-15 23:12:43 +000023851
cristy3ed852e2009-09-05 21:47:34 +000023852fi
cristy8b350f62009-11-15 23:12:43 +000023853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023854$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23855
23856
23857
23858cat >>confdefs.h <<_ACEOF
23859#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23860_ACEOF
23861
23862
23863
23864# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23865# 'signed long long' is not supported then the value defined is zero.
23866# The cast to long int works around a bug in the HP C Compiler
23867# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23868# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23869# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023871$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023872if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023873 $as_echo_n "(cached) " >&6
23874else
cristy8b350f62009-11-15 23:12:43 +000023875 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 +000023876
cristy3ed852e2009-09-05 21:47:34 +000023877else
cristy8b350f62009-11-15 23:12:43 +000023878 if test "$ac_cv_type_signed_long_long" = yes; then
23879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023881as_fn_error 77 "cannot compute sizeof (signed long long)
23882See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023883 else
23884 ac_cv_sizeof_signed_long_long=0
23885 fi
23886fi
cristy8b350f62009-11-15 23:12:43 +000023887
cristy3ed852e2009-09-05 21:47:34 +000023888fi
cristy8b350f62009-11-15 23:12:43 +000023889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023890$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23891
23892
23893
23894cat >>confdefs.h <<_ACEOF
23895#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23896_ACEOF
23897
23898
23899
23900# Obtain size of a 'unsigned long long' and define as
23901# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23902# supported then the value defined is zero.
23903# The cast to long int works around a bug in the HP C Compiler
23904# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23905# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23906# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023908$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023909if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023910 $as_echo_n "(cached) " >&6
23911else
cristy8b350f62009-11-15 23:12:43 +000023912 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 +000023913
cristy3ed852e2009-09-05 21:47:34 +000023914else
cristy8b350f62009-11-15 23:12:43 +000023915 if test "$ac_cv_type_unsigned_long_long" = yes; then
23916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023918as_fn_error 77 "cannot compute sizeof (unsigned long long)
23919See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023920 else
23921 ac_cv_sizeof_unsigned_long_long=0
23922 fi
23923fi
cristy8b350f62009-11-15 23:12:43 +000023924
cristy3ed852e2009-09-05 21:47:34 +000023925fi
cristy8b350f62009-11-15 23:12:43 +000023926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023927$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23928
23929
23930
23931cat >>confdefs.h <<_ACEOF
23932#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23933_ACEOF
23934
23935
23936
cristyfec31822013-05-23 12:32:12 +000023937# Obtain size of off_t and define as SIZEOF_OFF_T
23938# The cast to long int works around a bug in the HP C Compiler
23939# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23940# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23941# This bug is HP SR number 8606223364.
23942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23943$as_echo_n "checking size of off_t... " >&6; }
23944if ${ac_cv_sizeof_off_t+:} false; then :
23945 $as_echo_n "(cached) " >&6
23946else
23947 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
23948
23949else
23950 if test "$ac_cv_type_off_t" = yes; then
23951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23953as_fn_error 77 "cannot compute sizeof (off_t)
23954See \`config.log' for more details" "$LINENO" 5; }
23955 else
23956 ac_cv_sizeof_off_t=0
23957 fi
23958fi
23959
23960fi
23961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23962$as_echo "$ac_cv_sizeof_off_t" >&6; }
23963
23964
23965
23966cat >>confdefs.h <<_ACEOF
23967#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23968_ACEOF
23969
23970
23971
23972# Obtain size of size_t and define as SIZEOF_SIZE_T
23973# The cast to long int works around a bug in the HP C Compiler
23974# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23975# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23976# This bug is HP SR number 8606223364.
23977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23978$as_echo_n "checking size of size_t... " >&6; }
23979if ${ac_cv_sizeof_size_t+:} false; then :
23980 $as_echo_n "(cached) " >&6
23981else
23982 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23983
23984else
23985 if test "$ac_cv_type_size_t" = yes; then
23986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23988as_fn_error 77 "cannot compute sizeof (size_t)
23989See \`config.log' for more details" "$LINENO" 5; }
23990 else
23991 ac_cv_sizeof_size_t=0
23992 fi
23993fi
23994
23995fi
23996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23997$as_echo "$ac_cv_sizeof_size_t" >&6; }
23998
23999
24000
24001cat >>confdefs.h <<_ACEOF
24002#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24003_ACEOF
24004
24005
24006
24007# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24008# The cast to long int works around a bug in the HP C Compiler
24009# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24010# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24011# This bug is HP SR number 8606223364.
24012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24013$as_echo_n "checking size of ssize_t... " >&6; }
24014if ${ac_cv_sizeof_ssize_t+:} false; then :
24015 $as_echo_n "(cached) " >&6
24016else
24017 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24018
24019else
24020 if test "$ac_cv_type_ssize_t" = yes; then
24021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24023as_fn_error 77 "cannot compute sizeof (ssize_t)
24024See \`config.log' for more details" "$LINENO" 5; }
24025 else
24026 ac_cv_sizeof_ssize_t=0
24027 fi
24028fi
24029
24030fi
24031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24032$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24033
24034
24035
24036cat >>confdefs.h <<_ACEOF
24037#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24038_ACEOF
24039
24040
24041
cristy3ed852e2009-09-05 21:47:34 +000024042# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24043# The cast to long int works around a bug in the HP C Compiler
24044# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24045# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24046# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024048$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024049if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024050 $as_echo_n "(cached) " >&6
24051else
cristy8b350f62009-11-15 23:12:43 +000024052 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 +000024053
cristy3ed852e2009-09-05 21:47:34 +000024054else
cristy8b350f62009-11-15 23:12:43 +000024055 if test "$ac_cv_type_unsigned_intp" = yes; then
24056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024058as_fn_error 77 "cannot compute sizeof (unsigned int*)
24059See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024060 else
24061 ac_cv_sizeof_unsigned_intp=0
24062 fi
24063fi
cristy8b350f62009-11-15 23:12:43 +000024064
cristy3ed852e2009-09-05 21:47:34 +000024065fi
cristy8b350f62009-11-15 23:12:43 +000024066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024067$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24068
24069
24070
24071cat >>confdefs.h <<_ACEOF
24072#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24073_ACEOF
24074
24075
24076
24077#
24078# Compute sized types for current CPU and compiler options.
24079#
24080
cristy8b350f62009-11-15 23:12:43 +000024081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024082$as_echo_n "checking for signed 8-bit type... " >&6; }
24083INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24085$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024086
24087
cristy8b350f62009-11-15 23:12:43 +000024088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024089$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24090UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24092$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024093
24094
cristy8b350f62009-11-15 23:12:43 +000024095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024096$as_echo_n "checking for signed 16-bit type... " >&6; }
24097INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24099$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024100
24101
cristy8b350f62009-11-15 23:12:43 +000024102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024103$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24104UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24106$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024107
24108
cristy8b350f62009-11-15 23:12:43 +000024109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024110$as_echo_n "checking for signed 32-bit type... " >&6; }
24111INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024112INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024113if test $ac_cv_sizeof_signed_int -eq 4; then
24114 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024115 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024116elif test $ac_cv_sizeof_signed_long -eq 4; then
24117 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024118 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024119fi
cristyad38abe2012-12-23 23:03:21 +000024120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24121$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024122
24123
cristy6d5e20f2011-04-25 13:48:54 +000024124
cristy8b350f62009-11-15 23:12:43 +000024125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024126$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24127UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024128UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024129if test $ac_cv_sizeof_unsigned_int -eq 4; then
24130 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024131 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024132elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24133 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024134 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024135fi
cristyad38abe2012-12-23 23:03:21 +000024136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24137$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024138
24139
cristy6d5e20f2011-04-25 13:48:54 +000024140
cristy8b350f62009-11-15 23:12:43 +000024141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024142$as_echo_n "checking for signed 64-bit type... " >&6; }
24143INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024144INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024145if test $ac_cv_sizeof_signed_long -eq 8; then
24146 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024147 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024148elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24149 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024150 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024151fi
cristy3a99dcf2011-12-17 01:29:40 +000024152case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024153 mingw* )
24154 INT64_F='"I64"'
24155 ;;
24156esac
cristyad38abe2012-12-23 23:03:21 +000024157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24158$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024159
24160
cristy6d5e20f2011-04-25 13:48:54 +000024161
cristy8b350f62009-11-15 23:12:43 +000024162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024163$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24164UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024165UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024166if test $ac_cv_sizeof_unsigned_long -eq 8; then
24167 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024168 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024169elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24170 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024171 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024172fi
cristy3a99dcf2011-12-17 01:29:40 +000024173case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024174 mingw* )
24175 UINT64_F='"I64"'
24176 ;;
24177esac
cristyad38abe2012-12-23 23:03:21 +000024178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24179$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024180
24181
cristy6d5e20f2011-04-25 13:48:54 +000024182
cristy8b350f62009-11-15 23:12:43 +000024183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024184$as_echo_n "checking for unsigned maximum type... " >&6; }
24185UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024186UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024187if test "$UINT64_T" != 'none'; then
24188 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024189 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024190elif test "$UINT32_T" != 'none'; then
24191 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024192 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024193fi
cristyad38abe2012-12-23 23:03:21 +000024194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24195$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024196
24197
cristy6d5e20f2011-04-25 13:48:54 +000024198
cristy8b350f62009-11-15 23:12:43 +000024199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024200$as_echo_n "checking for pointer difference type... " >&6; }
24201UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024202UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024203if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24204 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024205 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024206elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24207 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024208 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024209fi
cristyad38abe2012-12-23 23:03:21 +000024210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24211$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024212
24213
cristy6d5e20f2011-04-25 13:48:54 +000024214
cristy8b350f62009-11-15 23:12:43 +000024215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024216$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024218/* end confdefs.h. */
24219
24220int
24221main ()
24222{
24223{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24224 ;
24225 return 0;
24226}
24227_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024228if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24230$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024231else
cristyad38abe2012-12-23 23:03:21 +000024232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24233$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024235$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024237/* end confdefs.h. */
24238
24239int
24240main ()
24241{
24242{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24243 ;
24244 return 0;
24245}
24246_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024247if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24249$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024250
cristy8b350f62009-11-15 23:12:43 +000024251$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024252
24253else
cristyad38abe2012-12-23 23:03:21 +000024254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24255$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024256
cristy8b350f62009-11-15 23:12:43 +000024257$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024258
24259fi
cristy3ed852e2009-09-05 21:47:34 +000024260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24261fi
cristy3ed852e2009-09-05 21:47:34 +000024262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24263
24264########
24265#
24266# Check for functions
24267#
24268########
cristy8b350f62009-11-15 23:12:43 +000024269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024270$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024271if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024272 $as_echo_n "(cached) " >&6
24273else
cristy8b350f62009-11-15 23:12:43 +000024274 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024275 ac_cv_func_closedir_void=yes
24276else
cristy8b350f62009-11-15 23:12:43 +000024277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024278/* end confdefs.h. */
24279$ac_includes_default
24280#include <$ac_header_dirent>
24281#ifndef __cplusplus
24282int closedir ();
24283#endif
24284
24285int
24286main ()
24287{
24288return closedir (opendir (".")) != 0;
24289 ;
24290 return 0;
24291}
24292_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024293if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024294 ac_cv_func_closedir_void=no
24295else
cristy8b350f62009-11-15 23:12:43 +000024296 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024297fi
cristy8b350f62009-11-15 23:12:43 +000024298rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24299 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024300fi
24301
cristy3ed852e2009-09-05 21:47:34 +000024302fi
cristy8b350f62009-11-15 23:12:43 +000024303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024304$as_echo "$ac_cv_func_closedir_void" >&6; }
24305if test $ac_cv_func_closedir_void = yes; then
24306
cristy8b350f62009-11-15 23:12:43 +000024307$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024308
24309fi
24310
cristycd4c5312009-11-22 01:19:08 +000024311
24312
24313
24314 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024315do :
24316 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024317ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24318"
cristy98dddb52010-11-04 00:30:15 +000024319if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024320 cat >>confdefs.h <<_ACEOF
24321#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24322_ACEOF
24323
24324fi
24325
24326done
24327
cristycd4c5312009-11-22 01:19:08 +000024328
24329
24330
24331
24332
24333
24334
cristy3ed852e2009-09-05 21:47:34 +000024335for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024336do :
24337 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024338if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024339 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024340#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024341_ACEOF
24342
24343fi
24344done
24345
cristy8b350f62009-11-15 23:12:43 +000024346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024347$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024348if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024349 $as_echo_n "(cached) " >&6
24350else
cristy8b350f62009-11-15 23:12:43 +000024351 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024352 ac_cv_func_mmap_fixed_mapped=no
24353else
cristy8b350f62009-11-15 23:12:43 +000024354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024355/* end confdefs.h. */
24356$ac_includes_default
24357/* malloc might have been renamed as rpl_malloc. */
24358#undef malloc
24359
24360/* Thanks to Mike Haertel and Jim Avera for this test.
24361 Here is a matrix of mmap possibilities:
24362 mmap private not fixed
24363 mmap private fixed at somewhere currently unmapped
24364 mmap private fixed at somewhere already mapped
24365 mmap shared not fixed
24366 mmap shared fixed at somewhere currently unmapped
24367 mmap shared fixed at somewhere already mapped
24368 For private mappings, we should verify that changes cannot be read()
24369 back from the file, nor mmap's back from the file at a different
24370 address. (There have been systems where private was not correctly
24371 implemented like the infamous i386 svr4.0, and systems where the
24372 VM page cache was not coherent with the file system buffer cache
24373 like early versions of FreeBSD and possibly contemporary NetBSD.)
24374 For shared mappings, we should conversely verify that changes get
24375 propagated back to all the places they're supposed to be.
24376
24377 Grep wants private fixed already mapped.
24378 The main things grep needs to know about mmap are:
24379 * does it exist and is it safe to write into the mmap'd area
24380 * how to use it (BSD variants) */
24381
24382#include <fcntl.h>
24383#include <sys/mman.h>
24384
24385#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24386char *malloc ();
24387#endif
24388
24389/* This mess was copied from the GNU getpagesize.h. */
24390#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024391# ifdef _SC_PAGESIZE
24392# define getpagesize() sysconf(_SC_PAGESIZE)
24393# else /* no _SC_PAGESIZE */
24394# ifdef HAVE_SYS_PARAM_H
24395# include <sys/param.h>
24396# ifdef EXEC_PAGESIZE
24397# define getpagesize() EXEC_PAGESIZE
24398# else /* no EXEC_PAGESIZE */
24399# ifdef NBPG
24400# define getpagesize() NBPG * CLSIZE
24401# ifndef CLSIZE
24402# define CLSIZE 1
24403# endif /* no CLSIZE */
24404# else /* no NBPG */
24405# ifdef NBPC
24406# define getpagesize() NBPC
24407# else /* no NBPC */
24408# ifdef PAGESIZE
24409# define getpagesize() PAGESIZE
24410# endif /* PAGESIZE */
24411# endif /* no NBPC */
24412# endif /* no NBPG */
24413# endif /* no EXEC_PAGESIZE */
24414# else /* no HAVE_SYS_PARAM_H */
24415# define getpagesize() 8192 /* punt totally */
24416# endif /* no HAVE_SYS_PARAM_H */
24417# endif /* no _SC_PAGESIZE */
24418
24419#endif /* no HAVE_GETPAGESIZE */
24420
24421int
24422main ()
24423{
24424 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024425 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024426 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024427 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024428
24429 pagesize = getpagesize ();
24430
24431 /* First, make a file with some known garbage in it. */
24432 data = (char *) malloc (pagesize);
24433 if (!data)
24434 return 1;
24435 for (i = 0; i < pagesize; ++i)
24436 *(data + i) = rand ();
24437 umask (0);
24438 fd = creat ("conftest.mmap", 0600);
24439 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024440 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024441 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024442 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024443 close (fd);
24444
cristycd4c5312009-11-22 01:19:08 +000024445 /* Next, check that the tail of a page is zero-filled. File must have
24446 non-zero length, otherwise we risk SIGBUS for entire page. */
24447 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24448 if (fd2 < 0)
24449 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024450 cdata2 = "";
24451 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024452 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024453 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024454 if (data2 == MAP_FAILED)
24455 return 6;
24456 for (i = 0; i < pagesize; ++i)
24457 if (*(data2 + i))
24458 return 7;
24459 close (fd2);
24460 if (munmap (data2, pagesize))
24461 return 8;
24462
cristy3ed852e2009-09-05 21:47:34 +000024463 /* Next, try to mmap the file at a fixed address which already has
24464 something else allocated at it. If we can, also make sure that
24465 we see the same garbage. */
24466 fd = open ("conftest.mmap", O_RDWR);
24467 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024468 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024469 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24470 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024471 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024472 for (i = 0; i < pagesize; ++i)
24473 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024474 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024475
24476 /* Finally, make sure that changes to the mapped area do not
24477 percolate back to the file as seen by read(). (This is a bug on
24478 some variants of i386 svr4.0.) */
24479 for (i = 0; i < pagesize; ++i)
24480 *(data2 + i) = *(data2 + i) + 1;
24481 data3 = (char *) malloc (pagesize);
24482 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024483 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024484 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024485 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024486 for (i = 0; i < pagesize; ++i)
24487 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024488 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024489 close (fd);
24490 return 0;
24491}
24492_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024493if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024494 ac_cv_func_mmap_fixed_mapped=yes
24495else
cristy8b350f62009-11-15 23:12:43 +000024496 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024497fi
cristy8b350f62009-11-15 23:12:43 +000024498rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24499 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024500fi
24501
cristy3ed852e2009-09-05 21:47:34 +000024502fi
cristy8b350f62009-11-15 23:12:43 +000024503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024504$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24505if test $ac_cv_func_mmap_fixed_mapped = yes; then
24506
cristy8b350f62009-11-15 23:12:43 +000024507$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024508
24509fi
cristycd4c5312009-11-22 01:19:08 +000024510rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024511
cristy3ed852e2009-09-05 21:47:34 +000024512for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024513do :
24514 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024515if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024516 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024517#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024518_ACEOF
24519
24520fi
24521
24522done
24523
cristy3ed852e2009-09-05 21:47:34 +000024524for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024525do :
24526 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24527ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024528if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024529 cat >>confdefs.h <<_ACEOF
24530#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24531_ACEOF
24532
24533fi
24534done
24535
24536if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024538$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024539if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024540 $as_echo_n "(cached) " >&6
24541else
cristy8b350f62009-11-15 23:12:43 +000024542 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024543 ac_cv_func_fork_works=cross
24544else
cristy8b350f62009-11-15 23:12:43 +000024545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024546/* end confdefs.h. */
24547$ac_includes_default
24548int
24549main ()
24550{
24551
24552 /* By Ruediger Kuhlmann. */
24553 return fork () < 0;
24554
24555 ;
24556 return 0;
24557}
24558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024559if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024560 ac_cv_func_fork_works=yes
24561else
cristy8b350f62009-11-15 23:12:43 +000024562 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024563fi
cristy8b350f62009-11-15 23:12:43 +000024564rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24565 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024566fi
24567
cristy3ed852e2009-09-05 21:47:34 +000024568fi
cristy8b350f62009-11-15 23:12:43 +000024569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024570$as_echo "$ac_cv_func_fork_works" >&6; }
24571
24572else
24573 ac_cv_func_fork_works=$ac_cv_func_fork
24574fi
24575if test "x$ac_cv_func_fork_works" = xcross; then
24576 case $host in
24577 *-*-amigaos* | *-*-msdosdjgpp*)
24578 # Override, as these systems have only a dummy fork() stub
24579 ac_cv_func_fork_works=no
24580 ;;
24581 *)
24582 ac_cv_func_fork_works=yes
24583 ;;
24584 esac
cristy8b350f62009-11-15 23:12:43 +000024585 { $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 +000024586$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24587fi
24588ac_cv_func_vfork_works=$ac_cv_func_vfork
24589if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024591$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024592if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024593 $as_echo_n "(cached) " >&6
24594else
cristy8b350f62009-11-15 23:12:43 +000024595 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024596 ac_cv_func_vfork_works=cross
24597else
cristy8b350f62009-11-15 23:12:43 +000024598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024599/* end confdefs.h. */
24600/* Thanks to Paul Eggert for this test. */
24601$ac_includes_default
24602#include <sys/wait.h>
24603#ifdef HAVE_VFORK_H
24604# include <vfork.h>
24605#endif
24606/* On some sparc systems, changes by the child to local and incoming
24607 argument registers are propagated back to the parent. The compiler
24608 is told about this with #include <vfork.h>, but some compilers
24609 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24610 static variable whose address is put into a register that is
24611 clobbered by the vfork. */
24612static void
24613#ifdef __cplusplus
24614sparc_address_test (int arg)
24615# else
24616sparc_address_test (arg) int arg;
24617#endif
24618{
24619 static pid_t child;
24620 if (!child) {
24621 child = vfork ();
24622 if (child < 0) {
24623 perror ("vfork");
24624 _exit(2);
24625 }
24626 if (!child) {
24627 arg = getpid();
24628 write(-1, "", 0);
24629 _exit (arg);
24630 }
24631 }
24632}
24633
24634int
24635main ()
24636{
24637 pid_t parent = getpid ();
24638 pid_t child;
24639
24640 sparc_address_test (0);
24641
24642 child = vfork ();
24643
24644 if (child == 0) {
24645 /* Here is another test for sparc vfork register problems. This
24646 test uses lots of local variables, at least as many local
24647 variables as main has allocated so far including compiler
24648 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24649 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24650 reuse the register of parent for one of the local variables,
24651 since it will think that parent can't possibly be used any more
24652 in this routine. Assigning to the local variable will thus
24653 munge parent in the parent process. */
24654 pid_t
24655 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24656 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24657 /* Convince the compiler that p..p7 are live; otherwise, it might
24658 use the same hardware register for all 8 local variables. */
24659 if (p != p1 || p != p2 || p != p3 || p != p4
24660 || p != p5 || p != p6 || p != p7)
24661 _exit(1);
24662
24663 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24664 from child file descriptors. If the child closes a descriptor
24665 before it execs or exits, this munges the parent's descriptor
24666 as well. Test for this by closing stdout in the child. */
24667 _exit(close(fileno(stdout)) != 0);
24668 } else {
24669 int status;
24670 struct stat st;
24671
24672 while (wait(&status) != child)
24673 ;
24674 return (
24675 /* Was there some problem with vforking? */
24676 child < 0
24677
24678 /* Did the child fail? (This shouldn't happen.) */
24679 || status
24680
24681 /* Did the vfork/compiler bug occur? */
24682 || parent != getpid()
24683
24684 /* Did the file descriptor bug occur? */
24685 || fstat(fileno(stdout), &st) != 0
24686 );
24687 }
24688}
24689_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024690if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024691 ac_cv_func_vfork_works=yes
24692else
cristy8b350f62009-11-15 23:12:43 +000024693 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024694fi
cristy8b350f62009-11-15 23:12:43 +000024695rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24696 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024697fi
24698
cristy3ed852e2009-09-05 21:47:34 +000024699fi
cristy8b350f62009-11-15 23:12:43 +000024700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024701$as_echo "$ac_cv_func_vfork_works" >&6; }
24702
24703fi;
24704if test "x$ac_cv_func_fork_works" = xcross; then
24705 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024706 { $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 +000024707$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24708fi
24709
24710if test "x$ac_cv_func_vfork_works" = xyes; then
24711
cristy8b350f62009-11-15 23:12:43 +000024712$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024713
24714else
24715
cristy8b350f62009-11-15 23:12:43 +000024716$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024717
24718fi
24719if test "x$ac_cv_func_fork_works" = xyes; then
24720
cristy8b350f62009-11-15 23:12:43 +000024721$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024722
24723fi
24724
cristy8b350f62009-11-15 23:12:43 +000024725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024726$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024727if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024728 $as_echo_n "(cached) " >&6
24729else
cristy8b350f62009-11-15 23:12:43 +000024730 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024731 ac_cv_func_memcmp_working=no
24732else
cristy8b350f62009-11-15 23:12:43 +000024733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024734/* end confdefs.h. */
24735$ac_includes_default
24736int
24737main ()
24738{
24739
24740 /* Some versions of memcmp are not 8-bit clean. */
24741 char c0 = '\100', c1 = '\200', c2 = '\201';
24742 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24743 return 1;
24744
24745 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24746 or more and with at least one buffer not starting on a 4-byte boundary.
24747 William Lewis provided this test program. */
24748 {
24749 char foo[21];
24750 char bar[21];
24751 int i;
24752 for (i = 0; i < 4; i++)
24753 {
24754 char *a = foo + i;
24755 char *b = bar + i;
24756 strcpy (a, "--------01111111");
24757 strcpy (b, "--------10000000");
24758 if (memcmp (a, b, 16) >= 0)
24759 return 1;
24760 }
24761 return 0;
24762 }
24763
24764 ;
24765 return 0;
24766}
24767_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024768if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024769 ac_cv_func_memcmp_working=yes
24770else
cristy8b350f62009-11-15 23:12:43 +000024771 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024772fi
cristy8b350f62009-11-15 23:12:43 +000024773rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24774 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024775fi
24776
cristy3ed852e2009-09-05 21:47:34 +000024777fi
cristy8b350f62009-11-15 23:12:43 +000024778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024779$as_echo "$ac_cv_func_memcmp_working" >&6; }
24780test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24781 *" memcmp.$ac_objext "* ) ;;
24782 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24783 ;;
24784esac
24785
24786
cristy3ed852e2009-09-05 21:47:34 +000024787for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024788do :
24789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24790ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024791if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024792 cat >>confdefs.h <<_ACEOF
24793#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24794_ACEOF
24795
24796fi
24797
24798done
24799
cristy8b350f62009-11-15 23:12:43 +000024800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024801$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024802if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024803 $as_echo_n "(cached) " >&6
24804else
24805 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24806 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24807 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024809/* end confdefs.h. */
24810$ac_includes_default
24811#ifdef HAVE_SYS_SELECT_H
24812# include <sys/select.h>
24813#endif
24814#ifdef HAVE_SYS_SOCKET_H
24815# include <sys/socket.h>
24816#endif
24817
24818int
24819main ()
24820{
24821extern int select ($ac_arg1,
24822 $ac_arg234, $ac_arg234, $ac_arg234,
24823 $ac_arg5);
24824 ;
24825 return 0;
24826}
24827_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024828if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024829 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024830fi
cristy3ed852e2009-09-05 21:47:34 +000024831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24832 done
24833 done
24834done
24835# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024836: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024837
24838fi
cristy8b350f62009-11-15 23:12:43 +000024839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024840$as_echo "$ac_cv_func_select_args" >&6; }
24841ac_save_IFS=$IFS; IFS=','
24842set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24843IFS=$ac_save_IFS
24844shift
24845
24846cat >>confdefs.h <<_ACEOF
24847#define SELECT_TYPE_ARG1 $1
24848_ACEOF
24849
24850
24851cat >>confdefs.h <<_ACEOF
24852#define SELECT_TYPE_ARG234 ($2)
24853_ACEOF
24854
24855
24856cat >>confdefs.h <<_ACEOF
24857#define SELECT_TYPE_ARG5 ($3)
24858_ACEOF
24859
24860rm -f conftest*
24861
cristyda16f162011-02-19 23:52:17 +000024862if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024863 $as_echo_n "(cached) " >&6
24864else
24865 ac_cv_func_setvbuf_reversed=no
24866fi
24867
24868
cristy8b350f62009-11-15 23:12:43 +000024869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024870$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024871if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024872 $as_echo_n "(cached) " >&6
24873else
cristy8b350f62009-11-15 23:12:43 +000024874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024875/* end confdefs.h. */
24876#include <sys/types.h>
24877#include <signal.h>
24878
24879int
24880main ()
24881{
24882return *(signal (0, 0)) (0) == 1;
24883 ;
24884 return 0;
24885}
24886_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024887if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024888 ac_cv_type_signal=int
24889else
cristy8b350f62009-11-15 23:12:43 +000024890 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024891fi
cristy3ed852e2009-09-05 21:47:34 +000024892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24893fi
cristy8b350f62009-11-15 23:12:43 +000024894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024895$as_echo "$ac_cv_type_signal" >&6; }
24896
24897cat >>confdefs.h <<_ACEOF
24898#define RETSIGTYPE $ac_cv_type_signal
24899_ACEOF
24900
24901
cristy8b350f62009-11-15 23:12:43 +000024902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024903$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024904if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024905 $as_echo_n "(cached) " >&6
24906else
cristy8b350f62009-11-15 23:12:43 +000024907 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024908 ac_cv_func_strtod=no
24909else
cristy8b350f62009-11-15 23:12:43 +000024910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024911/* end confdefs.h. */
24912
24913$ac_includes_default
24914#ifndef strtod
24915double strtod ();
24916#endif
24917int
24918main()
24919{
24920 {
24921 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24922 char *string = " +69";
24923 char *term;
24924 double value;
24925 value = strtod (string, &term);
24926 if (value != 69 || term != (string + 4))
24927 return 1;
24928 }
24929
24930 {
24931 /* Under Solaris 2.4, strtod returns the wrong value for the
24932 terminating character under some conditions. */
24933 char *string = "NaN";
24934 char *term;
24935 strtod (string, &term);
24936 if (term != string && *(term - 1) == 0)
24937 return 1;
24938 }
24939 return 0;
24940}
24941
24942_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024943if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024944 ac_cv_func_strtod=yes
24945else
cristy8b350f62009-11-15 23:12:43 +000024946 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024947fi
cristy8b350f62009-11-15 23:12:43 +000024948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24949 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024950fi
24951
cristy3ed852e2009-09-05 21:47:34 +000024952fi
cristy8b350f62009-11-15 23:12:43 +000024953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024954$as_echo "$ac_cv_func_strtod" >&6; }
24955if test $ac_cv_func_strtod = no; then
24956 case " $LIBOBJS " in
24957 *" strtod.$ac_objext "* ) ;;
24958 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24959 ;;
24960esac
24961
cristy8b350f62009-11-15 23:12:43 +000024962ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024963if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024964
cristy3ed852e2009-09-05 21:47:34 +000024965fi
24966
cristy3ed852e2009-09-05 21:47:34 +000024967if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024969$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024970if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024971 $as_echo_n "(cached) " >&6
24972else
24973 ac_check_lib_save_LIBS=$LIBS
24974LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024976/* end confdefs.h. */
24977
24978/* Override any GCC internal prototype to avoid an error.
24979 Use char because int might match the return type of a GCC
24980 builtin and then its argument prototype would still apply. */
24981#ifdef __cplusplus
24982extern "C"
24983#endif
24984char pow ();
24985int
24986main ()
24987{
24988return pow ();
24989 ;
24990 return 0;
24991}
24992_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024993if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024994 ac_cv_lib_m_pow=yes
24995else
cristy8b350f62009-11-15 23:12:43 +000024996 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024997fi
cristy8b350f62009-11-15 23:12:43 +000024998rm -f core conftest.err conftest.$ac_objext \
24999 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025000LIBS=$ac_check_lib_save_LIBS
25001fi
cristy8b350f62009-11-15 23:12:43 +000025002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025003$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025004if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025005 POW_LIB=-lm
25006else
cristy8b350f62009-11-15 23:12:43 +000025007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025008$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25009fi
25010
25011fi
25012
25013fi
25014
cristy7d4a1d62011-10-13 15:54:12 +000025015ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25016if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25017 ac_have_decl=1
25018else
25019 ac_have_decl=0
25020fi
25021
25022cat >>confdefs.h <<_ACEOF
25023#define HAVE_DECL_STRERROR_R $ac_have_decl
25024_ACEOF
25025
25026for ac_func in strerror_r
25027do :
25028 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25029if test "x$ac_cv_func_strerror_r" = xyes; then :
25030 cat >>confdefs.h <<_ACEOF
25031#define HAVE_STRERROR_R 1
25032_ACEOF
25033
25034fi
25035done
25036
25037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25038$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25039if ${ac_cv_func_strerror_r_char_p+:} false; then :
25040 $as_echo_n "(cached) " >&6
25041else
25042
25043 ac_cv_func_strerror_r_char_p=no
25044 if test $ac_cv_have_decl_strerror_r = yes; then
25045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25046/* end confdefs.h. */
25047$ac_includes_default
25048int
25049main ()
25050{
25051
25052 char buf[100];
25053 char x = *strerror_r (0, buf, sizeof buf);
25054 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025055 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025056
25057 ;
25058 return 0;
25059}
25060_ACEOF
25061if ac_fn_c_try_compile "$LINENO"; then :
25062 ac_cv_func_strerror_r_char_p=yes
25063fi
25064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25065 else
25066 # strerror_r is not declared. Choose between
25067 # systems that have relatively inaccessible declarations for the
25068 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25069 # former has a strerror_r that returns char*, while the latter
25070 # has a strerror_r that returns `int'.
25071 # This test should segfault on the DEC system.
25072 if test "$cross_compiling" = yes; then :
25073 :
25074else
25075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25076/* end confdefs.h. */
25077$ac_includes_default
25078 extern char *strerror_r ();
25079int
25080main ()
25081{
25082char buf[100];
25083 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025084 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025085 ;
25086 return 0;
25087}
25088_ACEOF
25089if ac_fn_c_try_run "$LINENO"; then :
25090 ac_cv_func_strerror_r_char_p=yes
25091fi
25092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25093 conftest.$ac_objext conftest.beam conftest.$ac_ext
25094fi
25095
25096 fi
25097
25098fi
25099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25100$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25101if test $ac_cv_func_strerror_r_char_p = yes; then
25102
25103$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25104
25105fi
25106
cristy3ed852e2009-09-05 21:47:34 +000025107for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025108do :
25109 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025110if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025111 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025112#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025113_ACEOF
25114
cristy8b350f62009-11-15 23:12:43 +000025115ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025116if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025117
cristy8b350f62009-11-15 23:12:43 +000025118$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025119
25120fi
25121
25122fi
25123done
25124
25125
25126
cristy161b9262010-03-20 19:34:32 +000025127#
25128# Find math library
25129#
25130MATH_LIBS=''
25131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25132$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025133if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025134 $as_echo_n "(cached) " >&6
25135else
25136 ac_check_lib_save_LIBS=$LIBS
25137LIBS="-lm $LIBS"
25138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25139/* end confdefs.h. */
25140
25141/* Override any GCC internal prototype to avoid an error.
25142 Use char because int might match the return type of a GCC
25143 builtin and then its argument prototype would still apply. */
25144#ifdef __cplusplus
25145extern "C"
25146#endif
25147char sqrt ();
25148int
25149main ()
25150{
25151return sqrt ();
25152 ;
25153 return 0;
25154}
25155_ACEOF
25156if ac_fn_c_try_link "$LINENO"; then :
25157 ac_cv_lib_m_sqrt=yes
25158else
25159 ac_cv_lib_m_sqrt=no
25160fi
25161rm -f core conftest.err conftest.$ac_objext \
25162 conftest$ac_exeext conftest.$ac_ext
25163LIBS=$ac_check_lib_save_LIBS
25164fi
25165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25166$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025167if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025168 MATH_LIBS="-lm"
25169fi
25170
25171LIBS="$MATH_LIBS $LIBS"
25172
25173
cristy85572162013-01-04 19:19:32 +000025174#
25175# Find socket library
25176#
cristy8a5d7f42013-01-06 15:24:33 +000025177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25178$as_echo_n "checking for library containing gethostbyname... " >&6; }
25179if ${ac_cv_search_gethostbyname+:} false; then :
25180 $as_echo_n "(cached) " >&6
25181else
25182 ac_func_search_save_LIBS=$LIBS
25183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25184/* end confdefs.h. */
25185
25186/* Override any GCC internal prototype to avoid an error.
25187 Use char because int might match the return type of a GCC
25188 builtin and then its argument prototype would still apply. */
25189#ifdef __cplusplus
25190extern "C"
25191#endif
25192char gethostbyname ();
25193int
25194main ()
25195{
25196return gethostbyname ();
25197 ;
25198 return 0;
25199}
25200_ACEOF
25201for ac_lib in '' resolv nsl; do
25202 if test -z "$ac_lib"; then
25203 ac_res="none required"
25204 else
25205 ac_res=-l$ac_lib
25206 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25207 fi
25208 if ac_fn_c_try_link "$LINENO"; then :
25209 ac_cv_search_gethostbyname=$ac_res
25210fi
25211rm -f core conftest.err conftest.$ac_objext \
25212 conftest$ac_exeext
25213 if ${ac_cv_search_gethostbyname+:} false; then :
25214 break
25215fi
25216done
25217if ${ac_cv_search_gethostbyname+:} false; then :
25218
25219else
25220 ac_cv_search_gethostbyname=no
25221fi
25222rm conftest.$ac_ext
25223LIBS=$ac_func_search_save_LIBS
25224fi
25225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25226$as_echo "$ac_cv_search_gethostbyname" >&6; }
25227ac_res=$ac_cv_search_gethostbyname
25228if test "$ac_res" != no; then :
25229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25230
25231fi
25232
cristy85572162013-01-04 19:19:32 +000025233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25234$as_echo_n "checking for library containing socket... " >&6; }
25235if ${ac_cv_search_socket+:} false; then :
25236 $as_echo_n "(cached) " >&6
25237else
25238 ac_func_search_save_LIBS=$LIBS
25239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25240/* end confdefs.h. */
25241
25242/* Override any GCC internal prototype to avoid an error.
25243 Use char because int might match the return type of a GCC
25244 builtin and then its argument prototype would still apply. */
25245#ifdef __cplusplus
25246extern "C"
25247#endif
25248char socket ();
25249int
25250main ()
25251{
25252return socket ();
25253 ;
25254 return 0;
25255}
25256_ACEOF
25257for ac_lib in '' socket; do
25258 if test -z "$ac_lib"; then
25259 ac_res="none required"
25260 else
25261 ac_res=-l$ac_lib
25262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25263 fi
25264 if ac_fn_c_try_link "$LINENO"; then :
25265 ac_cv_search_socket=$ac_res
25266fi
25267rm -f core conftest.err conftest.$ac_objext \
25268 conftest$ac_exeext
25269 if ${ac_cv_search_socket+:} false; then :
25270 break
25271fi
25272done
25273if ${ac_cv_search_socket+:} false; then :
25274
25275else
25276 ac_cv_search_socket=no
25277fi
25278rm conftest.$ac_ext
25279LIBS=$ac_func_search_save_LIBS
25280fi
25281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25282$as_echo "$ac_cv_search_socket" >&6; }
25283ac_res=$ac_cv_search_socket
25284if test "$ac_res" != no; then :
25285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25286
cristy85572162013-01-04 19:19:32 +000025287
cristy8a5d7f42013-01-06 15:24:33 +000025288$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025289
cristy03f187e2013-01-24 00:22:19 +000025290 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025291
25292fi
25293
25294
25295for 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 +000025296do :
25297 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25298ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025299if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025300 cat >>confdefs.h <<_ACEOF
25301#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25302_ACEOF
25303
25304fi
25305done
25306
25307
cristye43a45e2009-09-28 14:49:00 +000025308#
25309# Check for clock_gettime().
25310#
cristy8b350f62009-11-15 23:12:43 +000025311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025312$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025313if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025314 $as_echo_n "(cached) " >&6
25315else
25316 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025318/* end confdefs.h. */
25319
25320/* Override any GCC internal prototype to avoid an error.
25321 Use char because int might match the return type of a GCC
25322 builtin and then its argument prototype would still apply. */
25323#ifdef __cplusplus
25324extern "C"
25325#endif
25326char clock_gettime ();
25327int
25328main ()
25329{
25330return clock_gettime ();
25331 ;
25332 return 0;
25333}
25334_ACEOF
25335for ac_lib in '' rt; do
25336 if test -z "$ac_lib"; then
25337 ac_res="none required"
25338 else
25339 ac_res=-l$ac_lib
25340 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25341 fi
cristy8b350f62009-11-15 23:12:43 +000025342 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025343 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025344fi
cristy8b350f62009-11-15 23:12:43 +000025345rm -f core conftest.err conftest.$ac_objext \
25346 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025347 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025348 break
25349fi
25350done
cristyda16f162011-02-19 23:52:17 +000025351if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025352
cristye43a45e2009-09-28 14:49:00 +000025353else
25354 ac_cv_search_clock_gettime=no
25355fi
25356rm conftest.$ac_ext
25357LIBS=$ac_func_search_save_LIBS
25358fi
cristy8b350f62009-11-15 23:12:43 +000025359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025360$as_echo "$ac_cv_search_clock_gettime" >&6; }
25361ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025362if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25364
25365
cristy8b350f62009-11-15 23:12:43 +000025366$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025367
cristy8b350f62009-11-15 23:12:43 +000025368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025369$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025371/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025372
25373 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025374int
25375main ()
25376{
25377clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025378 ;
25379 return 0;
25380}
25381_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025382if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025383
cristyad38abe2012-12-23 23:03:21 +000025384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25385$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025386
cristy8b350f62009-11-15 23:12:43 +000025387$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025388
25389
25390else
cristyad38abe2012-12-23 23:03:21 +000025391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25392$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025393
25394fi
cristye43a45e2009-09-28 14:49:00 +000025395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25396
25397else
25398
cristy8b350f62009-11-15 23:12:43 +000025399 for ac_func in gettimeofday ftime
25400do :
25401 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25402ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025403if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025404 cat >>confdefs.h <<_ACEOF
25405#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25406_ACEOF
25407 break
25408fi
25409done
25410
25411
25412
25413fi
25414
25415
cristy3ed852e2009-09-05 21:47:34 +000025416########
25417#
25418# Check for function prototypes
25419#
25420########
25421
cristy8b350f62009-11-15 23:12:43 +000025422ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025423#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025424"
cristyda16f162011-02-19 23:52:17 +000025425if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025426 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025427else
cristy8b350f62009-11-15 23:12:43 +000025428 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025429fi
25430
cristy3ed852e2009-09-05 21:47:34 +000025431cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025432#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025433_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025434ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025435#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025436"
cristyda16f162011-02-19 23:52:17 +000025437if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025438 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025439else
cristy8b350f62009-11-15 23:12:43 +000025440 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025441fi
25442
cristy3ed852e2009-09-05 21:47:34 +000025443cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025444#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025445_ACEOF
25446
25447
cristy8b350f62009-11-15 23:12:43 +000025448ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025449#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025450"
cristyda16f162011-02-19 23:52:17 +000025451if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025452 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025453else
cristy8b350f62009-11-15 23:12:43 +000025454 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025455fi
25456
cristy3ed852e2009-09-05 21:47:34 +000025457cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025458#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025459_ACEOF
25460
25461
cristy8b350f62009-11-15 23:12:43 +000025462ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025463#include <stdio.h>
25464#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025465"
cristyda16f162011-02-19 23:52:17 +000025466if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025467 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025468else
cristy8b350f62009-11-15 23:12:43 +000025469 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025470fi
25471
cristy3ed852e2009-09-05 21:47:34 +000025472cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025473#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025474_ACEOF
25475
25476
cristy3ed852e2009-09-05 21:47:34 +000025477########
25478#
25479# C++ Support Tests (For Magick++)
25480#
25481########
25482have_magick_plus_plus='no'
25483if test "$with_magick_plus_plus" = 'yes'; then
25484 OLIBS="$LIBS"
25485 LIBS=''
25486 ac_ext=cpp
25487ac_cpp='$CXXCPP $CPPFLAGS'
25488ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25489ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25490ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25491
25492
25493 # Full set of headers used...
25494 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25495 # functional iomanip iosfwd iostream iterator list string strstream utility
25496 ac_ext=cpp
25497ac_cpp='$CXXCPP $CPPFLAGS'
25498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25501
25502 ac_ext=cpp
25503ac_cpp='$CXXCPP $CPPFLAGS'
25504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25507if test -z "$CXX"; then
25508 if test -n "$CCC"; then
25509 CXX=$CCC
25510 else
25511 if test -n "$ac_tool_prefix"; then
25512 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25513 do
25514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25515set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025517$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025518if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025519 $as_echo_n "(cached) " >&6
25520else
25521 if test -n "$CXX"; then
25522 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25523else
25524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25525for as_dir in $PATH
25526do
25527 IFS=$as_save_IFS
25528 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025529 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025531 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025533 break 2
25534 fi
25535done
cristy8b350f62009-11-15 23:12:43 +000025536 done
cristy3ed852e2009-09-05 21:47:34 +000025537IFS=$as_save_IFS
25538
25539fi
25540fi
25541CXX=$ac_cv_prog_CXX
25542if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025544$as_echo "$CXX" >&6; }
25545else
cristy8b350f62009-11-15 23:12:43 +000025546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025547$as_echo "no" >&6; }
25548fi
25549
25550
25551 test -n "$CXX" && break
25552 done
25553fi
25554if test -z "$CXX"; then
25555 ac_ct_CXX=$CXX
25556 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25557do
25558 # Extract the first word of "$ac_prog", so it can be a program name with args.
25559set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025561$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025562if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025563 $as_echo_n "(cached) " >&6
25564else
25565 if test -n "$ac_ct_CXX"; then
25566 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25567else
25568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25569for as_dir in $PATH
25570do
25571 IFS=$as_save_IFS
25572 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025573 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025575 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025577 break 2
25578 fi
25579done
cristy8b350f62009-11-15 23:12:43 +000025580 done
cristy3ed852e2009-09-05 21:47:34 +000025581IFS=$as_save_IFS
25582
25583fi
25584fi
25585ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25586if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025588$as_echo "$ac_ct_CXX" >&6; }
25589else
cristy8b350f62009-11-15 23:12:43 +000025590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025591$as_echo "no" >&6; }
25592fi
25593
25594
25595 test -n "$ac_ct_CXX" && break
25596done
25597
25598 if test "x$ac_ct_CXX" = x; then
25599 CXX="g++"
25600 else
25601 case $cross_compiling:$ac_tool_warned in
25602yes:)
cristy8b350f62009-11-15 23:12:43 +000025603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25605ac_tool_warned=yes ;;
25606esac
25607 CXX=$ac_ct_CXX
25608 fi
25609fi
25610
25611 fi
25612fi
25613# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025614$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025615set X $ac_compile
25616ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025617for ac_option in --version -v -V -qversion; do
25618 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025619case "(($ac_try" in
25620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25621 *) ac_try_echo=$ac_try;;
25622esac
cristy8b350f62009-11-15 23:12:43 +000025623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25624$as_echo "$ac_try_echo"; } >&5
25625 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025626 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025627 if test -s conftest.err; then
25628 sed '10a\
25629... rest of stderr output deleted ...
25630 10q' conftest.err >conftest.er1
25631 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025632 fi
cristycd4c5312009-11-22 01:19:08 +000025633 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25635 test $ac_status = 0; }
25636done
cristy3ed852e2009-09-05 21:47:34 +000025637
cristy8b350f62009-11-15 23:12:43 +000025638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025639$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025640if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025641 $as_echo_n "(cached) " >&6
25642else
cristy8b350f62009-11-15 23:12:43 +000025643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025644/* end confdefs.h. */
25645
25646int
25647main ()
25648{
25649#ifndef __GNUC__
25650 choke me
25651#endif
25652
25653 ;
25654 return 0;
25655}
25656_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025657if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025658 ac_compiler_gnu=yes
25659else
cristy8b350f62009-11-15 23:12:43 +000025660 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025661fi
cristy3ed852e2009-09-05 21:47:34 +000025662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25663ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25664
25665fi
cristy8b350f62009-11-15 23:12:43 +000025666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025667$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25668if test $ac_compiler_gnu = yes; then
25669 GXX=yes
25670else
25671 GXX=
25672fi
25673ac_test_CXXFLAGS=${CXXFLAGS+set}
25674ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025676$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025677if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025678 $as_echo_n "(cached) " >&6
25679else
25680 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25681 ac_cxx_werror_flag=yes
25682 ac_cv_prog_cxx_g=no
25683 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025685/* end confdefs.h. */
25686
25687int
25688main ()
25689{
25690
25691 ;
25692 return 0;
25693}
25694_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025695if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025696 ac_cv_prog_cxx_g=yes
25697else
cristy8b350f62009-11-15 23:12:43 +000025698 CXXFLAGS=""
25699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025700/* end confdefs.h. */
25701
25702int
25703main ()
25704{
25705
25706 ;
25707 return 0;
25708}
25709_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025710if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025711
cristy8b350f62009-11-15 23:12:43 +000025712else
25713 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025714 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025716/* end confdefs.h. */
25717
25718int
25719main ()
25720{
25721
25722 ;
25723 return 0;
25724}
25725_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025726if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025727 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025728fi
cristy3ed852e2009-09-05 21:47:34 +000025729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25730fi
cristy3ed852e2009-09-05 21:47:34 +000025731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25732fi
cristy3ed852e2009-09-05 21:47:34 +000025733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25734 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25735fi
cristy8b350f62009-11-15 23:12:43 +000025736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025737$as_echo "$ac_cv_prog_cxx_g" >&6; }
25738if test "$ac_test_CXXFLAGS" = set; then
25739 CXXFLAGS=$ac_save_CXXFLAGS
25740elif test $ac_cv_prog_cxx_g = yes; then
25741 if test "$GXX" = yes; then
25742 CXXFLAGS="-g -O2"
25743 else
25744 CXXFLAGS="-g"
25745 fi
25746else
25747 if test "$GXX" = yes; then
25748 CXXFLAGS="-O2"
25749 else
25750 CXXFLAGS=
25751 fi
25752fi
25753ac_ext=cpp
25754ac_cpp='$CXXCPP $CPPFLAGS'
25755ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25756ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25757ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25758
cristy73bd4a52010-10-05 11:24:23 +000025759depcc="$CXX" am_compiler_list=
25760
25761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25762$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025763if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025764 $as_echo_n "(cached) " >&6
25765else
25766 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25767 # We make a subdir and do the tests there. Otherwise we can end up
25768 # making bogus files that we don't know about and never remove. For
25769 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025770 # making a dummy file named 'D' -- because '-MD' means "put the output
25771 # in D".
cristy7247bba2012-02-05 16:37:27 +000025772 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025773 mkdir conftest.dir
25774 # Copy depcomp to subdir because otherwise we won't find it if we're
25775 # using a relative directory.
25776 cp "$am_depcomp" conftest.dir
25777 cd conftest.dir
25778 # We will build objects and dependencies in a subdirectory because
25779 # it helps to detect inapplicable dependency modes. For instance
25780 # both Tru64's cc and ICC support -MD to output dependencies as a
25781 # side effect of compilation, but ICC will put the dependencies in
25782 # the current directory while Tru64 will put them in the object
25783 # directory.
25784 mkdir sub
25785
25786 am_cv_CXX_dependencies_compiler_type=none
25787 if test "$am_compiler_list" = ""; then
25788 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25789 fi
25790 am__universal=false
25791 case " $depcc " in #(
25792 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25793 esac
25794
25795 for depmode in $am_compiler_list; do
25796 # Setup a source with many dependencies, because some compilers
25797 # like to wrap large dependency lists on column 80 (with \), and
25798 # we should not choose a depcomp mode which is confused by this.
25799 #
25800 # We need to recreate these files for each test, as the compiler may
25801 # overwrite some of them when testing with obscure command lines.
25802 # This happens at least with the AIX C compiler.
25803 : > sub/conftest.c
25804 for i in 1 2 3 4 5 6; do
25805 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025806 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25807 # Solaris 10 /bin/sh.
25808 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025809 done
25810 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25811
cristyc0890a62012-07-19 00:18:20 +000025812 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025813 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025814 # handle '-M -o', and we need to detect this. Also, some Intel
25815 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025816 am__obj=sub/conftest.${OBJEXT-o}
25817 am__minus_obj="-o $am__obj"
25818 case $depmode in
25819 gcc)
25820 # This depmode causes a compiler race in universal mode.
25821 test "$am__universal" = false || continue
25822 ;;
25823 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025824 # After this tag, mechanisms are not by side-effect, so they'll
25825 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025826 if test "x$enable_dependency_tracking" = xyes; then
25827 continue
25828 else
25829 break
25830 fi
25831 ;;
cristy7247bba2012-02-05 16:37:27 +000025832 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025833 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025834 # not run yet. These depmodes are late enough in the game, and
25835 # so weak that their functioning should not be impacted.
25836 am__obj=conftest.${OBJEXT-o}
25837 am__minus_obj=
25838 ;;
25839 none) break ;;
25840 esac
25841 if depmode=$depmode \
25842 source=sub/conftest.c object=$am__obj \
25843 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25844 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25845 >/dev/null 2>conftest.err &&
25846 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25847 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25848 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25849 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25850 # icc doesn't choke on unknown options, it will just issue warnings
25851 # or remarks (even with -Werror). So we grep stderr for any message
25852 # that says an option was ignored or not supported.
25853 # When given -MP, icc 7.0 and 7.1 complain thusly:
25854 # icc: Command line warning: ignoring option '-M'; no argument required
25855 # The diagnosis changed in icc 8.0:
25856 # icc: Command line remark: option '-MP' not supported
25857 if (grep 'ignoring option' conftest.err ||
25858 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25859 am_cv_CXX_dependencies_compiler_type=$depmode
25860 break
25861 fi
25862 fi
25863 done
25864
25865 cd ..
25866 rm -rf conftest.dir
25867else
25868 am_cv_CXX_dependencies_compiler_type=none
25869fi
25870
25871fi
25872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25873$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25874CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25875
25876 if
25877 test "x$enable_dependency_tracking" != xno \
25878 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25879 am__fastdepCXX_TRUE=
25880 am__fastdepCXX_FALSE='#'
25881else
25882 am__fastdepCXX_TRUE='#'
25883 am__fastdepCXX_FALSE=
25884fi
25885
25886
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25888$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025889if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025890 $as_echo_n "(cached) " >&6
25891else
25892
25893 ac_ext=cpp
25894ac_cpp='$CXXCPP $CPPFLAGS'
25895ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25896ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25897ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25898
25899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25900/* end confdefs.h. */
25901
25902int f(int x){return 1;}
25903int f(char x){return 1;}
25904int f(bool x){return 1;}
25905
25906int
25907main ()
25908{
25909bool b = true; return f(b);
25910 ;
25911 return 0;
25912}
25913_ACEOF
25914if ac_fn_cxx_try_compile "$LINENO"; then :
25915 ax_cv_cxx_bool=yes
25916else
25917 ax_cv_cxx_bool=no
25918fi
25919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25920 ac_ext=cpp
25921ac_cpp='$CXXCPP $CPPFLAGS'
25922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25925
25926
25927fi
25928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25929$as_echo "$ax_cv_cxx_bool" >&6; }
25930if test "$ax_cv_cxx_bool" = yes; then
25931
25932$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25933
25934fi
25935
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25937$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025938if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025939 $as_echo_n "(cached) " >&6
25940else
25941
25942 ac_ext=cpp
25943ac_cpp='$CXXCPP $CPPFLAGS'
25944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25947
25948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25949/* end confdefs.h. */
25950namespace Outer { namespace Inner { int i = 0; }}
25951int
25952main ()
25953{
25954using namespace Outer::Inner; return i;
25955 ;
25956 return 0;
25957}
25958_ACEOF
25959if ac_fn_cxx_try_compile "$LINENO"; then :
25960 ax_cv_cxx_namespaces=yes
25961else
25962 ax_cv_cxx_namespaces=no
25963fi
25964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25965 ac_ext=cpp
25966ac_cpp='$CXXCPP $CPPFLAGS'
25967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25970
25971
25972fi
25973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25974$as_echo "$ax_cv_cxx_namespaces" >&6; }
25975if test "$ax_cv_cxx_namespaces" = yes; then
25976
25977$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25978
25979fi
25980
25981
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25983$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025984if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025985 $as_echo_n "(cached) " >&6
25986else
25987
25988 ac_ext=cpp
25989ac_cpp='$CXXCPP $CPPFLAGS'
25990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25993
25994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25995/* end confdefs.h. */
25996#include <iostream>
25997 std::istream& is = std::cin;
25998int
25999main ()
26000{
26001
26002 ;
26003 return 0;
26004}
26005_ACEOF
26006if ac_fn_cxx_try_compile "$LINENO"; then :
26007 ax_cv_cxx_have_std_namespace=yes
26008else
26009 ax_cv_cxx_have_std_namespace=no
26010fi
26011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26012 ac_ext=cpp
26013ac_cpp='$CXXCPP $CPPFLAGS'
26014ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26015ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26016ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26017
26018
26019fi
26020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26021$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26022 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26023
26024$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26025
26026 fi
26027
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26029$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026030if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026031 $as_echo_n "(cached) " >&6
26032else
26033
26034
26035 ac_ext=cpp
26036ac_cpp='$CXXCPP $CPPFLAGS'
26037ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26038ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26039ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26040
26041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26042/* end confdefs.h. */
26043#include <iostream>
26044#include <map>
26045#include <iomanip>
26046#include <cmath>
26047#ifdef HAVE_NAMESPACES
26048using namespace std;
26049#endif
26050int
26051main ()
26052{
26053return 0;
26054 ;
26055 return 0;
26056}
26057_ACEOF
26058if ac_fn_cxx_try_compile "$LINENO"; then :
26059 ac_cv_cxx_have_std_libs=yes
26060else
26061 ac_cv_cxx_have_std_libs=no
26062fi
26063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26064 ac_ext=cpp
26065ac_cpp='$CXXCPP $CPPFLAGS'
26066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26069
26070
26071fi
26072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26073$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26074if test "$ac_cv_cxx_have_std_libs" = yes; then
26075
26076$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26077
26078fi
26079
cristy3ed852e2009-09-05 21:47:34 +000026080
26081 OPENMP_CXXFLAGS=
26082 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026083if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026084 enableval=$enable_openmp;
26085fi
26086
26087 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26089$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026090if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026091 $as_echo_n "(cached) " >&6
26092else
cristy8b350f62009-11-15 23:12:43 +000026093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26094/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026095
26096#ifndef _OPENMP
26097 choke me
26098#endif
26099#include <omp.h>
26100int main () { return omp_get_num_threads (); }
26101
26102_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026103if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026104 ac_cv_prog_cxx_openmp='none needed'
26105else
cristy8b350f62009-11-15 23:12:43 +000026106 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026107 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26108 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026109 ac_save_CXXFLAGS=$CXXFLAGS
26110 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26112/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026113
26114#ifndef _OPENMP
26115 choke me
26116#endif
26117#include <omp.h>
26118int main () { return omp_get_num_threads (); }
26119
26120_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026121if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026122 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026123fi
cristy8b350f62009-11-15 23:12:43 +000026124rm -f core conftest.err conftest.$ac_objext \
26125 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026126 CXXFLAGS=$ac_save_CXXFLAGS
26127 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26128 break
26129 fi
26130 done
26131fi
cristy8b350f62009-11-15 23:12:43 +000026132rm -f core conftest.err conftest.$ac_objext \
26133 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026134fi
cristy8b350f62009-11-15 23:12:43 +000026135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026136$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26137 case $ac_cv_prog_cxx_openmp in #(
26138 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026139 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026140 *)
cristy8b350f62009-11-15 23:12:43 +000026141 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026142 esac
26143 fi
26144
26145
26146 ac_ext=c
26147ac_cpp='$CPP $CPPFLAGS'
26148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26150ac_compiler_gnu=$ac_cv_c_compiler_gnu
26151
26152
cristy8b350f62009-11-15 23:12:43 +000026153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026154$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26155 if \
cristy964cb7f2010-04-25 23:18:00 +000026156 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026157 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026158 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026159 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026160 have_magick_plus_plus='yes'
26161 else
26162 have_magick_plus_plus='no (failed tests)'
26163 fi
cristyad38abe2012-12-23 23:03:21 +000026164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26165$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026166 LIBS="$OLIBS"
26167fi
cristy73bd4a52010-10-05 11:24:23 +000026168 if test "$have_magick_plus_plus" = 'yes'; then
26169 WITH_MAGICK_PLUS_PLUS_TRUE=
26170 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26171else
26172 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26173 WITH_MAGICK_PLUS_PLUS_FALSE=
26174fi
26175
cristy3ed852e2009-09-05 21:47:34 +000026176
26177# Only check for delegate libraries in subdirectories if requested.
26178if test "$enable_delegate_build" != 'no'; then
26179 # Check for delegate sub-directories and add -I & -L options as required.
26180 # This presumes that delegates are installed as detailed in the ImageMagick
26181 # README. If delegates are installed in a standard location where the
26182 # compiler will automatically find them then these options should not be
26183 # required.
26184
26185 #
26186 # Most delegates have includes in the same directory as the library, but not all...
26187 #
26188 # Includes
cristyfdc7d122013-08-17 20:46:45 +000026189 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick mupdf png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026190 if test -d "$builddir/$dir"; then
26191 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26192 else
26193 if test -d "$srcdirfull/$dir"; then
26194 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26195 fi
26196 fi
26197 done
26198
26199 # Libraries
cristyfdc7d122013-08-17 20:46:45 +000026200 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick mupdf png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026201 if test -d "$builddir/$dir/.libs"; then
26202 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26203 else
26204 if test -d "$srcdirfull/$dir/.libs"; then
26205 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26206 fi
26207 fi
26208 if test -d "$builddir/$dir"; then
26209 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26210 else
26211 if test -d "$srcdirfull/$dir"; then
26212 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26213 fi
26214 fi
26215 done
26216fi
26217
26218# Assume that delegate headers reside under same directory as ImageMagick
26219# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026220MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026221
26222#
26223# Find the X11 RGB database
26224#
cristy8b350f62009-11-15 23:12:43 +000026225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026226$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026227if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026228 $as_echo_n "(cached) " >&6
26229else
26230 # Look for the header file in a standard set of common directories.
26231# Check X11 before X11Rn because it is often a symlink to the current release.
26232 for ac_dir in \
26233 /lib/usr/lib/X11 \
26234 /usr/X11/lib \
26235 /usr/X11R4/lib \
26236 /usr/X11R5/lib \
26237 /usr/X11R6/lib \
26238 /usr/X11R7/lib \
26239 /usr/X386/lib \
26240 /usr/XFree86/lib/X11 \
26241 /usr/athena/lib \
26242 /usr/lib \
26243 /usr/lib/X11 \
26244 /usr/lib/X11R4 \
26245 /usr/lib/X11R5 \
26246 /usr/lib/X11R6 \
26247 /usr/lib/X11R7 \
26248 /usr/local/X11/lib \
26249 /usr/local/X11R4/lib \
26250 /usr/local/X11R5/lib \
26251 /usr/local/X11R6/lib \
26252 /usr/local/lib \
26253 /usr/local/lib/X11 \
26254 /usr/local/lib/X11R4 \
26255 /usr/local/lib/X11R5 \
26256 /usr/local/lib/X11R6 \
26257 /usr/local/lib/X11R7 \
26258 /usr/local/x11r5/lib \
26259 /usr/lpp/Xamples/lib \
26260 /usr/openwin/lib \
26261 /usr/openwin/share/lib \
26262 /usr/unsupported/lib \
26263 /usr/x386/lib \
26264 ; do
26265 if test -f "$ac_dir/X11/rgb.txt"; then
26266 im_cv_x_configure="$ac_dir/X11/"
26267 break
26268 elif test -f "$ac_dir/rgb.txt"; then
26269 im_cv_x_configure="$ac_dir/"
26270 break
26271 fi
26272
26273 done
26274fi
cristy8b350f62009-11-15 23:12:43 +000026275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026276$as_echo "$im_cv_x_configure" >&6; }
26277X11_CONFIGURE_PATH="$im_cv_x_configure"
26278case "${build_os}" in
26279 mingw* )
26280 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26281 ;;
26282esac
26283
26284cat >>confdefs.h <<_ACEOF
26285#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26286_ACEOF
26287
26288
26289#
26290# Find OpenMP library
26291#
26292GOMP_LIBS=''
26293if test "$enable_openmp" != 'no'; then
26294 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026295 # Open64 (passes for GCC but uses different OpenMP implementation)
26296 if test "x$GOMP_LIBS" = x ; then
26297 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26299$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26300if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26301 $as_echo_n "(cached) " >&6
26302else
26303 ac_check_lib_save_LIBS=$LIBS
26304LIBS="-lopenmp $LIBS"
26305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26306/* end confdefs.h. */
26307
26308/* Override any GCC internal prototype to avoid an error.
26309 Use char because int might match the return type of a GCC
26310 builtin and then its argument prototype would still apply. */
26311#ifdef __cplusplus
26312extern "C"
26313#endif
26314char omp_get_num_procs ();
26315int
26316main ()
26317{
26318return omp_get_num_procs ();
26319 ;
26320 return 0;
26321}
26322_ACEOF
26323if ac_fn_c_try_link "$LINENO"; then :
26324 ac_cv_lib_openmp_omp_get_num_procs=yes
26325else
26326 ac_cv_lib_openmp_omp_get_num_procs=no
26327fi
26328rm -f core conftest.err conftest.$ac_objext \
26329 conftest$ac_exeext conftest.$ac_ext
26330LIBS=$ac_check_lib_save_LIBS
26331fi
26332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26333$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26334if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26335 GOMP_LIBS="-lopenmp"
26336fi
26337
26338 fi
26339 fi
26340 # GCC
26341 if test "x$GOMP_LIBS" = x ; then
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026343$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026344if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026345 $as_echo_n "(cached) " >&6
26346else
26347 ac_check_lib_save_LIBS=$LIBS
26348LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026350/* end confdefs.h. */
26351
26352/* Override any GCC internal prototype to avoid an error.
26353 Use char because int might match the return type of a GCC
26354 builtin and then its argument prototype would still apply. */
26355#ifdef __cplusplus
26356extern "C"
26357#endif
26358char GOMP_parallel_start ();
26359int
26360main ()
26361{
26362return GOMP_parallel_start ();
26363 ;
26364 return 0;
26365}
26366_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026367if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026368 ac_cv_lib_gomp_GOMP_parallel_start=yes
26369else
cristy8b350f62009-11-15 23:12:43 +000026370 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026371fi
cristy8b350f62009-11-15 23:12:43 +000026372rm -f core conftest.err conftest.$ac_objext \
26373 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026374LIBS=$ac_check_lib_save_LIBS
26375fi
cristy8b350f62009-11-15 23:12:43 +000026376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026377$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026378if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026379 GOMP_LIBS="-lgomp"
26380fi
cristy18307f12011-12-30 01:20:16 +000026381
26382 fi
cristy3ed852e2009-09-05 21:47:34 +000026383 else
cristy18307f12011-12-30 01:20:16 +000026384 # Sun CC
26385 if test "x$GOMP_LIBS" = x ; then
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026387$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026388if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026389 $as_echo_n "(cached) " >&6
26390else
26391 ac_check_lib_save_LIBS=$LIBS
26392LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026394/* end confdefs.h. */
26395
26396/* Override any GCC internal prototype to avoid an error.
26397 Use char because int might match the return type of a GCC
26398 builtin and then its argument prototype would still apply. */
26399#ifdef __cplusplus
26400extern "C"
26401#endif
26402char sunw_mp_register_warn ();
26403int
26404main ()
26405{
26406return sunw_mp_register_warn ();
26407 ;
26408 return 0;
26409}
26410_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026411if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026412 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26413else
cristy8b350f62009-11-15 23:12:43 +000026414 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026415fi
cristy8b350f62009-11-15 23:12:43 +000026416rm -f core conftest.err conftest.$ac_objext \
26417 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026418LIBS=$ac_check_lib_save_LIBS
26419fi
cristy8b350f62009-11-15 23:12:43 +000026420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026421$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026422if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026423 GOMP_LIBS="-lmtsk"
26424fi
cristy18307f12011-12-30 01:20:16 +000026425
26426 fi
26427 # AIX xlc
26428 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026430$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026431if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026432 $as_echo_n "(cached) " >&6
26433else
26434 ac_check_lib_save_LIBS=$LIBS
26435LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026437/* end confdefs.h. */
26438
26439/* Override any GCC internal prototype to avoid an error.
26440 Use char because int might match the return type of a GCC
26441 builtin and then its argument prototype would still apply. */
26442#ifdef __cplusplus
26443extern "C"
26444#endif
26445char _xlsmpFlush ();
26446int
26447main ()
26448{
26449return _xlsmpFlush ();
26450 ;
26451 return 0;
26452}
26453_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026454if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026455 ac_cv_lib_xlsmp__xlsmpFlush=yes
26456else
cristy8b350f62009-11-15 23:12:43 +000026457 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026458fi
cristy8b350f62009-11-15 23:12:43 +000026459rm -f core conftest.err conftest.$ac_objext \
26460 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026461LIBS=$ac_check_lib_save_LIBS
26462fi
cristy8b350f62009-11-15 23:12:43 +000026463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026464$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026465if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026466 GOMP_LIBS="-lxlsmp"
26467fi
cristy18307f12011-12-30 01:20:16 +000026468
26469 fi
26470 # SGI IRIX 6.5 MIPSpro C/C++
26471 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026473$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026474if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026475 $as_echo_n "(cached) " >&6
26476else
26477 ac_check_lib_save_LIBS=$LIBS
26478LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026480/* end confdefs.h. */
26481
26482/* Override any GCC internal prototype to avoid an error.
26483 Use char because int might match the return type of a GCC
26484 builtin and then its argument prototype would still apply. */
26485#ifdef __cplusplus
26486extern "C"
26487#endif
26488char mp_destroy ();
26489int
26490main ()
26491{
26492return mp_destroy ();
26493 ;
26494 return 0;
26495}
26496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026497if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026498 ac_cv_lib_mp_mp_destroy=yes
26499else
cristy8b350f62009-11-15 23:12:43 +000026500 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026501fi
cristy8b350f62009-11-15 23:12:43 +000026502rm -f core conftest.err conftest.$ac_objext \
26503 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026504LIBS=$ac_check_lib_save_LIBS
26505fi
cristy8b350f62009-11-15 23:12:43 +000026506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026507$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026508if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026509 GOMP_LIBS="-lmp"
26510fi
cristy18307f12011-12-30 01:20:16 +000026511
26512 fi
cristy3ed852e2009-09-05 21:47:34 +000026513 fi
26514 LIBS="$GOMP_LIBS $LIBS"
26515fi
26516
26517
cristy3ed852e2009-09-05 21:47:34 +000026518
26519
26520#
26521# Check for umem.
26522#
26523have_umem='no'
26524UMEM_LIBS=''
26525if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026527$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26529$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026530 failed=0
26531 passed=0
cristy8b350f62009-11-15 23:12:43 +000026532 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026533if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026534 passed=`expr $passed + 1`
26535else
26536 failed=`expr $failed + 1`
26537fi
26538
26539
cristy8b350f62009-11-15 23:12:43 +000026540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026541$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026542if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026543 $as_echo_n "(cached) " >&6
26544else
26545 ac_check_lib_save_LIBS=$LIBS
26546LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026548/* end confdefs.h. */
26549
26550/* Override any GCC internal prototype to avoid an error.
26551 Use char because int might match the return type of a GCC
26552 builtin and then its argument prototype would still apply. */
26553#ifdef __cplusplus
26554extern "C"
26555#endif
26556char umem_alloc ();
26557int
26558main ()
26559{
26560return umem_alloc ();
26561 ;
26562 return 0;
26563}
26564_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026565if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026566 ac_cv_lib_umem_umem_alloc=yes
26567else
cristy8b350f62009-11-15 23:12:43 +000026568 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026569fi
cristy8b350f62009-11-15 23:12:43 +000026570rm -f core conftest.err conftest.$ac_objext \
26571 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026572LIBS=$ac_check_lib_save_LIBS
26573fi
cristy8b350f62009-11-15 23:12:43 +000026574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026575$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026576if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026577 passed=`expr $passed + 1`
26578else
26579 failed=`expr $failed + 1`
26580fi
26581
cristy8b350f62009-11-15 23:12:43 +000026582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026583$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026584if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026585 $as_echo_n "(cached) " >&6
26586else
26587 ac_check_lib_save_LIBS=$LIBS
26588LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026590/* end confdefs.h. */
26591
26592/* Override any GCC internal prototype to avoid an error.
26593 Use char because int might match the return type of a GCC
26594 builtin and then its argument prototype would still apply. */
26595#ifdef __cplusplus
26596extern "C"
26597#endif
26598char umem_free ();
26599int
26600main ()
26601{
26602return umem_free ();
26603 ;
26604 return 0;
26605}
26606_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026607if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026608 ac_cv_lib_umem_umem_free=yes
26609else
cristy8b350f62009-11-15 23:12:43 +000026610 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026611fi
cristy8b350f62009-11-15 23:12:43 +000026612rm -f core conftest.err conftest.$ac_objext \
26613 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026614LIBS=$ac_check_lib_save_LIBS
26615fi
cristy8b350f62009-11-15 23:12:43 +000026616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026617$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026618if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026619 passed=`expr $passed + 1`
26620else
26621 failed=`expr $failed + 1`
26622fi
26623
cristy8b350f62009-11-15 23:12:43 +000026624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026625$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26626 if test $passed -gt 0; then
26627 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26629$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026630 have_umem='no (failed tests)'
26631 else
26632 UMEM_LIBS='-lumem'
26633 LIBS="$UMEM_LIBS $LIBS"
26634
cristy8b350f62009-11-15 23:12:43 +000026635$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026636
cristyad38abe2012-12-23 23:03:21 +000026637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26638$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026639 have_umem='yes'
26640 fi
26641 else
cristyad38abe2012-12-23 23:03:21 +000026642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26643$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026644 fi
26645fi
cristy73bd4a52010-10-05 11:24:23 +000026646 if test "$have_umem" = 'yes'; then
26647 HasUMEM_TRUE=
26648 HasUMEM_FALSE='#'
26649else
26650 HasUMEM_TRUE='#'
26651 HasUMEM_FALSE=
26652fi
26653
cristy3ed852e2009-09-05 21:47:34 +000026654
26655
26656#
26657# Add support for ccmalloc memory debugging library if requested
26658#
26659have_ccmalloc='no'
26660CCMALLOC_LIBS=''
26661if test "$enable_ccmalloc" = 'yes'; then
26662 # Extract the first word of "ccmalloc", so it can be a program name with args.
26663set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026665$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026666if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026667 $as_echo_n "(cached) " >&6
26668else
26669 case $CCMALLOCDelegate in
26670 [\\/]* | ?:[\\/]*)
26671 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26672 ;;
26673 *)
26674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26675for as_dir in $PATH
26676do
26677 IFS=$as_save_IFS
26678 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026679 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026681 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026683 break 2
26684 fi
26685done
cristy8b350f62009-11-15 23:12:43 +000026686 done
cristy3ed852e2009-09-05 21:47:34 +000026687IFS=$as_save_IFS
26688
26689 ;;
26690esac
26691fi
26692CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26693if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026695$as_echo "$CCMALLOCDelegate" >&6; }
26696else
cristy8b350f62009-11-15 23:12:43 +000026697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026698$as_echo "no" >&6; }
26699fi
26700
26701
26702 if test -n "$CCMALLOCDelegate"; then
26703 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26704 OLIBS="$LIBS"
26705 # Assume that gcc is used with ccmalloc.
26706 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026708$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026709if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026710 $as_echo_n "(cached) " >&6
26711else
26712 ac_check_lib_save_LIBS=$LIBS
26713LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026715/* end confdefs.h. */
26716
26717/* Override any GCC internal prototype to avoid an error.
26718 Use char because int might match the return type of a GCC
26719 builtin and then its argument prototype would still apply. */
26720#ifdef __cplusplus
26721extern "C"
26722#endif
26723char ccmalloc_malloc ();
26724int
26725main ()
26726{
26727return ccmalloc_malloc ();
26728 ;
26729 return 0;
26730}
26731_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026732if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026733 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26734else
cristy8b350f62009-11-15 23:12:43 +000026735 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026736fi
cristy8b350f62009-11-15 23:12:43 +000026737rm -f core conftest.err conftest.$ac_objext \
26738 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026739LIBS=$ac_check_lib_save_LIBS
26740fi
cristy8b350f62009-11-15 23:12:43 +000026741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026742$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026743if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026744 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26745fi
26746
26747 if test -n "$CCMALLOC_LIBS"; then
26748 LIBS="$OLIBS"
26749 LIBS="$LIBS $CCMALLOC_LIBS"
26750 have_ccmalloc='yes'
26751 else
26752 LIBS="$OLIBS"
26753 fi
26754 fi
26755fi
26756
26757#
cristy944e51f2013-04-16 18:45:02 +000026758# Add support for 'huge pages' if requested
26759#
26760if test "x$enable_hugepages" != "xno"; then :
26761
26762
26763$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26764
26765
26766fi
26767
26768#
cristy3ed852e2009-09-05 21:47:34 +000026769# Add support for efence memory debugging library if requested
26770#
26771if test "$enable_efence" = 'yes'; then
26772 EFENCE_LIBS='-lefence'
26773 LIBS="$EFENCE_LIBS $LIBS"
26774fi
26775
cristy3ed852e2009-09-05 21:47:34 +000026776
26777#
26778# Check for BZLIB
26779#
26780
26781
26782# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026783if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026784 withval=$with_bzlib; with_bzlib=$withval
26785else
26786 with_bzlib='yes'
26787fi
26788
26789
26790if test "$with_bzlib" != 'yes'; then
26791 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26792fi
26793
26794have_bzlib='no'
26795if test "$with_bzlib" != 'no'; then
26796 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26798$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026800$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26802$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026803 failed=0
26804 passed=0
26805 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026806 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026807if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026808 passed=`expr $passed + 1`
26809else
26810 failed=`expr $failed + 1`
26811fi
26812
26813
cristy8b350f62009-11-15 23:12:43 +000026814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026815$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026816if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026817 $as_echo_n "(cached) " >&6
26818else
26819 ac_check_lib_save_LIBS=$LIBS
26820LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026822/* end confdefs.h. */
26823
26824/* Override any GCC internal prototype to avoid an error.
26825 Use char because int might match the return type of a GCC
26826 builtin and then its argument prototype would still apply. */
26827#ifdef __cplusplus
26828extern "C"
26829#endif
26830char BZ2_bzDecompress ();
26831int
26832main ()
26833{
26834return BZ2_bzDecompress ();
26835 ;
26836 return 0;
26837}
26838_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026839if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026840 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26841else
cristy8b350f62009-11-15 23:12:43 +000026842 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026843fi
cristy8b350f62009-11-15 23:12:43 +000026844rm -f core conftest.err conftest.$ac_objext \
26845 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026846LIBS=$ac_check_lib_save_LIBS
26847fi
cristy8b350f62009-11-15 23:12:43 +000026848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026849$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026850if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026851 found_libbz=`expr $found_libbz + 1`
26852fi
26853
26854 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026856$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026857if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026858 $as_echo_n "(cached) " >&6
26859else
26860 ac_check_lib_save_LIBS=$LIBS
26861LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026863/* end confdefs.h. */
26864
26865/* Override any GCC internal prototype to avoid an error.
26866 Use char because int might match the return type of a GCC
26867 builtin and then its argument prototype would still apply. */
26868#ifdef __cplusplus
26869extern "C"
26870#endif
26871char _imp__BZ2_decompress ();
26872int
26873main ()
26874{
26875return _imp__BZ2_decompress ();
26876 ;
26877 return 0;
26878}
26879_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026880if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026881 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26882else
cristy8b350f62009-11-15 23:12:43 +000026883 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026884fi
cristy8b350f62009-11-15 23:12:43 +000026885rm -f core conftest.err conftest.$ac_objext \
26886 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026887LIBS=$ac_check_lib_save_LIBS
26888fi
cristy8b350f62009-11-15 23:12:43 +000026889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026890$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026891if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026892 found_libbz=`expr $found_libbz + 1`
26893fi
26894
26895 fi
26896 if test $found_libbz -gt 0; then
26897 passed=`expr $passed + 1`
26898 else
26899 failed=`expr $failed + 1`
26900 fi
cristy8b350f62009-11-15 23:12:43 +000026901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026902$as_echo_n "checking if BZLIB package is complete... " >&6; }
26903 if test $passed -gt 0; then
26904 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26906$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026907 have_bzlib='no (failed tests)'
26908 else
26909 BZLIB_LIBS='-lbz2'
26910 LIBS="$BZLIB_LIBS $LIBS"
26911
cristy8b350f62009-11-15 23:12:43 +000026912$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026913
cristyad38abe2012-12-23 23:03:21 +000026914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26915$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026916 have_bzlib='yes'
26917 fi
26918 else
cristyad38abe2012-12-23 23:03:21 +000026919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26920$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026921 fi
26922fi
cristy73bd4a52010-10-05 11:24:23 +000026923 if test "$have_bzlib" = 'yes'; then
26924 BZLIB_DELEGATE_TRUE=
26925 BZLIB_DELEGATE_FALSE='#'
26926else
26927 BZLIB_DELEGATE_TRUE='#'
26928 BZLIB_DELEGATE_FALSE=
26929fi
26930
cristy3ed852e2009-09-05 21:47:34 +000026931
26932
26933#
26934# Find the X11 include and library directories.
26935#
26936IPC_LIBS=''
26937X11_LIBS=''
26938XEXT_LIBS=''
26939XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026941$as_echo_n "checking for X... " >&6; }
26942
26943
26944# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026945if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026946 withval=$with_x;
26947fi
26948
26949# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26950if test "x$with_x" = xno; then
26951 # The user explicitly disabled X.
26952 have_x=disabled
26953else
26954 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026955 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026956 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026957 $as_echo_n "(cached) " >&6
26958else
26959 # One or both of the vars are not set, and there is no cached value.
26960ac_x_includes=no ac_x_libraries=no
26961rm -f -r conftest.dir
26962if mkdir conftest.dir; then
26963 cd conftest.dir
26964 cat >Imakefile <<'_ACEOF'
26965incroot:
26966 @echo incroot='${INCROOT}'
26967usrlibdir:
26968 @echo usrlibdir='${USRLIBDIR}'
26969libdir:
26970 @echo libdir='${LIBDIR}'
26971_ACEOF
26972 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026973 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026974 for ac_var in incroot usrlibdir libdir; do
26975 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26976 done
26977 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26978 for ac_extension in a so sl dylib la dll; do
26979 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26980 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26981 ac_im_usrlibdir=$ac_im_libdir; break
26982 fi
26983 done
26984 # Screen out bogus values from the imake configuration. They are
26985 # bogus both because they are the default anyway, and because
26986 # using them would break gcc on systems where it needs fixed includes.
26987 case $ac_im_incroot in
26988 /usr/include) ac_x_includes= ;;
26989 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26990 esac
26991 case $ac_im_usrlibdir in
26992 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26993 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26994 esac
26995 fi
26996 cd ..
26997 rm -f -r conftest.dir
26998fi
26999
27000# Standard set of common directories for X headers.
27001# Check X11 before X11Rn because it is often a symlink to the current release.
27002ac_x_header_dirs='
27003/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027004/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027005/usr/X11R6/include
27006/usr/X11R5/include
27007/usr/X11R4/include
27008
27009/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027010/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027011/usr/include/X11R6
27012/usr/include/X11R5
27013/usr/include/X11R4
27014
27015/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027016/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027017/usr/local/X11R6/include
27018/usr/local/X11R5/include
27019/usr/local/X11R4/include
27020
27021/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027022/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027023/usr/local/include/X11R6
27024/usr/local/include/X11R5
27025/usr/local/include/X11R4
27026
27027/usr/X386/include
27028/usr/x386/include
27029/usr/XFree86/include/X11
27030
27031/usr/include
27032/usr/local/include
27033/usr/unsupported/include
27034/usr/athena/include
27035/usr/local/x11r5/include
27036/usr/lpp/Xamples/include
27037
27038/usr/openwin/include
27039/usr/openwin/share/include'
27040
27041if test "$ac_x_includes" = no; then
27042 # Guess where to find include files, by looking for Xlib.h.
27043 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027045/* end confdefs.h. */
27046#include <X11/Xlib.h>
27047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027048if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027049 # We can compile using X headers with no special include directory.
27050ac_x_includes=
27051else
cristyc7083c12009-10-14 03:16:55 +000027052 for ac_dir in $ac_x_header_dirs; do
27053 if test -r "$ac_dir/X11/Xlib.h"; then
27054 ac_x_includes=$ac_dir
27055 break
27056 fi
27057done
27058fi
cristyda16f162011-02-19 23:52:17 +000027059rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027060fi # $ac_x_includes = no
27061
27062if test "$ac_x_libraries" = no; then
27063 # Check for the libraries.
27064 # See if we find them without any special options.
27065 # Don't add to $LIBS permanently.
27066 ac_save_LIBS=$LIBS
27067 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027069/* end confdefs.h. */
27070#include <X11/Xlib.h>
27071int
27072main ()
27073{
27074XrmInitialize ()
27075 ;
27076 return 0;
27077}
27078_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027079if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027080 LIBS=$ac_save_LIBS
27081# We can link X programs with no special library path.
27082ac_x_libraries=
27083else
cristy8b350f62009-11-15 23:12:43 +000027084 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027085for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27086do
27087 # Don't even attempt the hair of trying to link an X program!
27088 for ac_extension in a so sl dylib la dll; do
27089 if test -r "$ac_dir/libX11.$ac_extension"; then
27090 ac_x_libraries=$ac_dir
27091 break 2
27092 fi
27093 done
27094done
27095fi
cristy8b350f62009-11-15 23:12:43 +000027096rm -f core conftest.err conftest.$ac_objext \
27097 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027098fi # $ac_x_libraries = no
27099
27100case $ac_x_includes,$ac_x_libraries in #(
27101 no,* | *,no | *\'*)
27102 # Didn't find X, or a directory has "'" in its name.
27103 ac_cv_have_x="have_x=no";; #(
27104 *)
27105 # Record where we found X for the cache.
27106 ac_cv_have_x="have_x=yes\
27107 ac_x_includes='$ac_x_includes'\
27108 ac_x_libraries='$ac_x_libraries'"
27109esac
27110fi
27111;; #(
27112 *) have_x=yes;;
27113 esac
27114 eval "$ac_cv_have_x"
27115fi # $with_x != no
27116
27117if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027119$as_echo "$have_x" >&6; }
27120 no_x=yes
27121else
27122 # If each of the values was on the command line, it overrides each guess.
27123 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27124 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27125 # Update the cache value to reflect the command line values.
27126 ac_cv_have_x="have_x=yes\
27127 ac_x_includes='$x_includes'\
27128 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027130$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27131fi
27132
cristy3ed852e2009-09-05 21:47:34 +000027133if test "$no_x" = yes; then
27134 # Not all programs may use this symbol, but it does not hurt to define it.
27135
cristy8b350f62009-11-15 23:12:43 +000027136$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027137
27138 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27139else
27140 if test -n "$x_includes"; then
27141 X_CFLAGS="$X_CFLAGS -I$x_includes"
27142 fi
27143
27144 # It would also be nice to do this for all -L options, not just this one.
27145 if test -n "$x_libraries"; then
27146 X_LIBS="$X_LIBS -L$x_libraries"
27147 # For Solaris; some versions of Sun CC require a space after -R and
27148 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027150$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27151 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27152 ac_xsave_c_werror_flag=$ac_c_werror_flag
27153 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027155/* end confdefs.h. */
27156
27157int
27158main ()
27159{
27160
27161 ;
27162 return 0;
27163}
27164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027165if ac_fn_c_try_link "$LINENO"; then :
27166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027167$as_echo "no" >&6; }
27168 X_LIBS="$X_LIBS -R$x_libraries"
27169else
cristy8b350f62009-11-15 23:12:43 +000027170 LIBS="$ac_xsave_LIBS -R $x_libraries"
27171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027172/* end confdefs.h. */
27173
27174int
27175main ()
27176{
27177
27178 ;
27179 return 0;
27180}
27181_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027182if ac_fn_c_try_link "$LINENO"; then :
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027184$as_echo "yes" >&6; }
27185 X_LIBS="$X_LIBS -R $x_libraries"
27186else
cristy8b350f62009-11-15 23:12:43 +000027187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027188$as_echo "neither works" >&6; }
27189fi
cristy8b350f62009-11-15 23:12:43 +000027190rm -f core conftest.err conftest.$ac_objext \
27191 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027192fi
cristy8b350f62009-11-15 23:12:43 +000027193rm -f core conftest.err conftest.$ac_objext \
27194 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027195 ac_c_werror_flag=$ac_xsave_c_werror_flag
27196 LIBS=$ac_xsave_LIBS
27197 fi
27198
27199 # Check for system-dependent libraries X programs must link with.
27200 # Do this before checking for the system-independent R6 libraries
27201 # (-lICE), since we may need -lsocket or whatever for X linking.
27202
27203 if test "$ISC" = yes; then
27204 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27205 else
27206 # Martyn Johnson says this is needed for Ultrix, if the X
27207 # libraries were built with DECnet support. And Karl Berry says
27208 # the Alpha needs dnet_stub (dnet does not exist).
27209 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027211/* end confdefs.h. */
27212
27213/* Override any GCC internal prototype to avoid an error.
27214 Use char because int might match the return type of a GCC
27215 builtin and then its argument prototype would still apply. */
27216#ifdef __cplusplus
27217extern "C"
27218#endif
27219char XOpenDisplay ();
27220int
27221main ()
27222{
27223return XOpenDisplay ();
27224 ;
27225 return 0;
27226}
27227_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027228if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027229
cristy8b350f62009-11-15 23:12:43 +000027230else
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027232$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027233if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027234 $as_echo_n "(cached) " >&6
27235else
27236 ac_check_lib_save_LIBS=$LIBS
27237LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027239/* end confdefs.h. */
27240
27241/* Override any GCC internal prototype to avoid an error.
27242 Use char because int might match the return type of a GCC
27243 builtin and then its argument prototype would still apply. */
27244#ifdef __cplusplus
27245extern "C"
27246#endif
27247char dnet_ntoa ();
27248int
27249main ()
27250{
27251return dnet_ntoa ();
27252 ;
27253 return 0;
27254}
27255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027256if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027257 ac_cv_lib_dnet_dnet_ntoa=yes
27258else
cristy8b350f62009-11-15 23:12:43 +000027259 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027260fi
cristy8b350f62009-11-15 23:12:43 +000027261rm -f core conftest.err conftest.$ac_objext \
27262 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027263LIBS=$ac_check_lib_save_LIBS
27264fi
cristy8b350f62009-11-15 23:12:43 +000027265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027266$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027267if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027268 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27269fi
27270
27271 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027273$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027274if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027275 $as_echo_n "(cached) " >&6
27276else
27277 ac_check_lib_save_LIBS=$LIBS
27278LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027280/* end confdefs.h. */
27281
27282/* Override any GCC internal prototype to avoid an error.
27283 Use char because int might match the return type of a GCC
27284 builtin and then its argument prototype would still apply. */
27285#ifdef __cplusplus
27286extern "C"
27287#endif
27288char dnet_ntoa ();
27289int
27290main ()
27291{
27292return dnet_ntoa ();
27293 ;
27294 return 0;
27295}
27296_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027297if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027298 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27299else
cristy8b350f62009-11-15 23:12:43 +000027300 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027301fi
cristy8b350f62009-11-15 23:12:43 +000027302rm -f core conftest.err conftest.$ac_objext \
27303 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027304LIBS=$ac_check_lib_save_LIBS
27305fi
cristy8b350f62009-11-15 23:12:43 +000027306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027307$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027308if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027309 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27310fi
27311
27312 fi
27313fi
cristy8b350f62009-11-15 23:12:43 +000027314rm -f core conftest.err conftest.$ac_objext \
27315 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027316 LIBS="$ac_xsave_LIBS"
27317
27318 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27319 # to get the SysV transport functions.
27320 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27321 # needs -lnsl.
27322 # The nsl library prevents programs from opening the X display
27323 # on Irix 5.2, according to T.E. Dickey.
27324 # The functions gethostbyname, getservbyname, and inet_addr are
27325 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027326 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027327if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027328
cristy3ed852e2009-09-05 21:47:34 +000027329fi
27330
cristy3ed852e2009-09-05 21:47:34 +000027331 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027333$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027334if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027335 $as_echo_n "(cached) " >&6
27336else
27337 ac_check_lib_save_LIBS=$LIBS
27338LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027340/* end confdefs.h. */
27341
27342/* Override any GCC internal prototype to avoid an error.
27343 Use char because int might match the return type of a GCC
27344 builtin and then its argument prototype would still apply. */
27345#ifdef __cplusplus
27346extern "C"
27347#endif
27348char gethostbyname ();
27349int
27350main ()
27351{
27352return gethostbyname ();
27353 ;
27354 return 0;
27355}
27356_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027357if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027358 ac_cv_lib_nsl_gethostbyname=yes
27359else
cristy8b350f62009-11-15 23:12:43 +000027360 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027361fi
cristy8b350f62009-11-15 23:12:43 +000027362rm -f core conftest.err conftest.$ac_objext \
27363 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027364LIBS=$ac_check_lib_save_LIBS
27365fi
cristy8b350f62009-11-15 23:12:43 +000027366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027367$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027368if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027369 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27370fi
27371
27372 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027374$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027375if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027376 $as_echo_n "(cached) " >&6
27377else
27378 ac_check_lib_save_LIBS=$LIBS
27379LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027381/* end confdefs.h. */
27382
27383/* Override any GCC internal prototype to avoid an error.
27384 Use char because int might match the return type of a GCC
27385 builtin and then its argument prototype would still apply. */
27386#ifdef __cplusplus
27387extern "C"
27388#endif
27389char gethostbyname ();
27390int
27391main ()
27392{
27393return gethostbyname ();
27394 ;
27395 return 0;
27396}
27397_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027398if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027399 ac_cv_lib_bsd_gethostbyname=yes
27400else
cristy8b350f62009-11-15 23:12:43 +000027401 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027402fi
cristy8b350f62009-11-15 23:12:43 +000027403rm -f core conftest.err conftest.$ac_objext \
27404 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027405LIBS=$ac_check_lib_save_LIBS
27406fi
cristy8b350f62009-11-15 23:12:43 +000027407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027408$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027409if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027410 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27411fi
27412
27413 fi
27414 fi
27415
27416 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27417 # socket/setsockopt and other routines are undefined under SCO ODT
27418 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27419 # on later versions), says Simon Leinen: it contains gethostby*
27420 # variants that don't use the name server (or something). -lsocket
27421 # must be given before -lnsl if both are needed. We assume that
27422 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027423 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027424if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027425
cristy3ed852e2009-09-05 21:47:34 +000027426fi
27427
cristy3ed852e2009-09-05 21:47:34 +000027428 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027430$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027431if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027432 $as_echo_n "(cached) " >&6
27433else
27434 ac_check_lib_save_LIBS=$LIBS
27435LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027437/* end confdefs.h. */
27438
27439/* Override any GCC internal prototype to avoid an error.
27440 Use char because int might match the return type of a GCC
27441 builtin and then its argument prototype would still apply. */
27442#ifdef __cplusplus
27443extern "C"
27444#endif
27445char connect ();
27446int
27447main ()
27448{
27449return connect ();
27450 ;
27451 return 0;
27452}
27453_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027454if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027455 ac_cv_lib_socket_connect=yes
27456else
cristy8b350f62009-11-15 23:12:43 +000027457 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027458fi
cristy8b350f62009-11-15 23:12:43 +000027459rm -f core conftest.err conftest.$ac_objext \
27460 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027461LIBS=$ac_check_lib_save_LIBS
27462fi
cristy8b350f62009-11-15 23:12:43 +000027463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027464$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027465if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027466 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27467fi
27468
27469 fi
27470
27471 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027472 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027473if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027474
cristy3ed852e2009-09-05 21:47:34 +000027475fi
27476
cristy3ed852e2009-09-05 21:47:34 +000027477 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027479$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027480if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027481 $as_echo_n "(cached) " >&6
27482else
27483 ac_check_lib_save_LIBS=$LIBS
27484LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027486/* end confdefs.h. */
27487
27488/* Override any GCC internal prototype to avoid an error.
27489 Use char because int might match the return type of a GCC
27490 builtin and then its argument prototype would still apply. */
27491#ifdef __cplusplus
27492extern "C"
27493#endif
27494char remove ();
27495int
27496main ()
27497{
27498return remove ();
27499 ;
27500 return 0;
27501}
27502_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027503if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027504 ac_cv_lib_posix_remove=yes
27505else
cristy8b350f62009-11-15 23:12:43 +000027506 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027507fi
cristy8b350f62009-11-15 23:12:43 +000027508rm -f core conftest.err conftest.$ac_objext \
27509 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027510LIBS=$ac_check_lib_save_LIBS
27511fi
cristy8b350f62009-11-15 23:12:43 +000027512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027513$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027514if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027515 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27516fi
27517
27518 fi
27519
27520 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027521 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027522if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027523
cristy3ed852e2009-09-05 21:47:34 +000027524fi
27525
cristy3ed852e2009-09-05 21:47:34 +000027526 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027528$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027529if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027530 $as_echo_n "(cached) " >&6
27531else
27532 ac_check_lib_save_LIBS=$LIBS
27533LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027535/* end confdefs.h. */
27536
27537/* Override any GCC internal prototype to avoid an error.
27538 Use char because int might match the return type of a GCC
27539 builtin and then its argument prototype would still apply. */
27540#ifdef __cplusplus
27541extern "C"
27542#endif
27543char shmat ();
27544int
27545main ()
27546{
27547return shmat ();
27548 ;
27549 return 0;
27550}
27551_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027552if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027553 ac_cv_lib_ipc_shmat=yes
27554else
cristy8b350f62009-11-15 23:12:43 +000027555 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027556fi
cristy8b350f62009-11-15 23:12:43 +000027557rm -f core conftest.err conftest.$ac_objext \
27558 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027559LIBS=$ac_check_lib_save_LIBS
27560fi
cristy8b350f62009-11-15 23:12:43 +000027561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027562$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027563if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027564 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27565fi
27566
27567 fi
27568 fi
27569
27570 # Check for libraries that X11R6 Xt/Xaw programs need.
27571 ac_save_LDFLAGS=$LDFLAGS
27572 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27573 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27574 # check for ICE first), but we must link in the order -lSM -lICE or
27575 # we get undefined symbols. So assume we have SM if we have ICE.
27576 # These have to be linked with before -lX11, unlike the other
27577 # libraries we check for below, so use a different variable.
27578 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027580$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027581if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027582 $as_echo_n "(cached) " >&6
27583else
27584 ac_check_lib_save_LIBS=$LIBS
27585LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027587/* end confdefs.h. */
27588
27589/* Override any GCC internal prototype to avoid an error.
27590 Use char because int might match the return type of a GCC
27591 builtin and then its argument prototype would still apply. */
27592#ifdef __cplusplus
27593extern "C"
27594#endif
27595char IceConnectionNumber ();
27596int
27597main ()
27598{
27599return IceConnectionNumber ();
27600 ;
27601 return 0;
27602}
27603_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027604if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027605 ac_cv_lib_ICE_IceConnectionNumber=yes
27606else
cristy8b350f62009-11-15 23:12:43 +000027607 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027608fi
cristy8b350f62009-11-15 23:12:43 +000027609rm -f core conftest.err conftest.$ac_objext \
27610 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027611LIBS=$ac_check_lib_save_LIBS
27612fi
cristy8b350f62009-11-15 23:12:43 +000027613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027614$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027615if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027616 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27617fi
27618
27619 LDFLAGS=$ac_save_LDFLAGS
27620
27621fi
27622
27623if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27625$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027627$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27629$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027630 LDFLAGS="$LDFLAGS $X_LIBS"
27631 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27632 LIBS="$X11_LIBS $LIBS"
27633 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27634
27635
cristy8b350f62009-11-15 23:12:43 +000027636$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027637
27638 #
27639 # Check for X11 shared memory extension
27640 #
27641 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027642 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027643if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027644 have_shmctl='yes'
27645fi
27646
27647 if test "$have_shmctl" != 'yes'; then
27648 PERSIST_LIBS=$LIBS
27649 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027651/* end confdefs.h. */
27652
27653/* Override any GCC internal prototype to avoid an error.
27654 Use char because int might match the return type of a GCC
27655 builtin and then its argument prototype would still apply. */
27656#ifdef __cplusplus
27657extern "C"
27658#endif
27659char shmctl ();
27660int
27661main ()
27662{
27663return shmctl ();
27664 ;
27665 return 0;
27666}
27667_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027668if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027669 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027670fi
cristy8b350f62009-11-15 23:12:43 +000027671rm -f core conftest.err conftest.$ac_objext \
27672 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027673 LIBS=$PERSIST_LIBS
27674 fi
27675
27676 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027678$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027679if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027680 $as_echo_n "(cached) " >&6
27681else
27682 ac_check_lib_save_LIBS=$LIBS
27683LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027685/* end confdefs.h. */
27686
27687/* Override any GCC internal prototype to avoid an error.
27688 Use char because int might match the return type of a GCC
27689 builtin and then its argument prototype would still apply. */
27690#ifdef __cplusplus
27691extern "C"
27692#endif
27693char XShmAttach ();
27694int
27695main ()
27696{
27697return XShmAttach ();
27698 ;
27699 return 0;
27700}
27701_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027702if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027703 ac_cv_lib_Xext_XShmAttach=yes
27704else
cristy8b350f62009-11-15 23:12:43 +000027705 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027706fi
cristy8b350f62009-11-15 23:12:43 +000027707rm -f core conftest.err conftest.$ac_objext \
27708 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027709LIBS=$ac_check_lib_save_LIBS
27710fi
cristy8b350f62009-11-15 23:12:43 +000027711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027712$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027713if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027714 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027715$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027716
27717fi
27718
27719 fi
27720
27721 #
27722 # Check for X11 shape extension
27723 #
cristy8b350f62009-11-15 23:12:43 +000027724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027725$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027726if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027727 $as_echo_n "(cached) " >&6
27728else
27729 ac_check_lib_save_LIBS=$LIBS
27730LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027732/* end confdefs.h. */
27733
27734/* Override any GCC internal prototype to avoid an error.
27735 Use char because int might match the return type of a GCC
27736 builtin and then its argument prototype would still apply. */
27737#ifdef __cplusplus
27738extern "C"
27739#endif
27740char XShapeCombineMask ();
27741int
27742main ()
27743{
27744return XShapeCombineMask ();
27745 ;
27746 return 0;
27747}
27748_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027749if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027750 ac_cv_lib_Xext_XShapeCombineMask=yes
27751else
cristy8b350f62009-11-15 23:12:43 +000027752 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027753fi
cristy8b350f62009-11-15 23:12:43 +000027754rm -f core conftest.err conftest.$ac_objext \
27755 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027756LIBS=$ac_check_lib_save_LIBS
27757fi
cristy8b350f62009-11-15 23:12:43 +000027758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027759$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027760if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027761 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027762$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027763
27764fi
27765
cristy8b350f62009-11-15 23:12:43 +000027766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027767$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027768if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027769 $as_echo_n "(cached) " >&6
27770else
27771 ac_check_lib_save_LIBS=$LIBS
27772LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027774/* end confdefs.h. */
27775
27776/* Override any GCC internal prototype to avoid an error.
27777 Use char because int might match the return type of a GCC
27778 builtin and then its argument prototype would still apply. */
27779#ifdef __cplusplus
27780extern "C"
27781#endif
27782char XtSetEventDispatcher ();
27783int
27784main ()
27785{
27786return XtSetEventDispatcher ();
27787 ;
27788 return 0;
27789}
27790_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027791if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027792 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27793else
cristy8b350f62009-11-15 23:12:43 +000027794 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027795fi
cristy8b350f62009-11-15 23:12:43 +000027796rm -f core conftest.err conftest.$ac_objext \
27797 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027798LIBS=$ac_check_lib_save_LIBS
27799fi
cristy8b350f62009-11-15 23:12:43 +000027800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027801$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027802if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027803 XT_LIBS='-lXt'
27804fi
27805
27806 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27807fi
27808if test "$no_x" != 'yes'; then
27809 have_x='yes'
27810else
27811 have_x='no'
27812fi
cristy73bd4a52010-10-05 11:24:23 +000027813 if test "$have_x" = 'yes'; then
27814 X11_DELEGATE_TRUE=
27815 X11_DELEGATE_FALSE='#'
27816else
27817 X11_DELEGATE_TRUE='#'
27818 X11_DELEGATE_FALSE=
27819fi
27820
cristy3ed852e2009-09-05 21:47:34 +000027821
27822
27823
27824
27825#
27826# Check for ZLIB
27827#
27828
27829# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027830if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027831 withval=$with_zlib; with_zlib=$withval
27832else
27833 with_zlib='yes'
27834fi
27835
27836
27837if test "$with_zlib" != 'yes'; then
27838 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27839fi
27840
27841have_zlib='no'
27842ZLIB_LIBS=''
27843if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27845$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027847$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27849$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027850 ZLIB_LIBS=''
27851 failed=0
27852 passed=0
cristy8b350f62009-11-15 23:12:43 +000027853 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027854if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027855 passed=`expr $passed + 1`
27856else
27857 failed=`expr $failed + 1`
27858fi
27859
27860
cristy8b350f62009-11-15 23:12:43 +000027861 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027862if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027863 passed=`expr $passed + 1`
27864else
27865 failed=`expr $failed + 1`
27866fi
27867
27868
cristy8b350f62009-11-15 23:12:43 +000027869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027870$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027871if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027872 $as_echo_n "(cached) " >&6
27873else
27874 ac_check_lib_save_LIBS=$LIBS
27875LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027877/* end confdefs.h. */
27878
27879/* Override any GCC internal prototype to avoid an error.
27880 Use char because int might match the return type of a GCC
27881 builtin and then its argument prototype would still apply. */
27882#ifdef __cplusplus
27883extern "C"
27884#endif
27885char compress ();
27886int
27887main ()
27888{
27889return compress ();
27890 ;
27891 return 0;
27892}
27893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027894if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027895 ac_cv_lib_z_compress=yes
27896else
cristy8b350f62009-11-15 23:12:43 +000027897 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027898fi
cristy8b350f62009-11-15 23:12:43 +000027899rm -f core conftest.err conftest.$ac_objext \
27900 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027901LIBS=$ac_check_lib_save_LIBS
27902fi
cristy8b350f62009-11-15 23:12:43 +000027903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027904$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027905if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027906 passed=`expr $passed + 1`
27907else
27908 failed=`expr $failed + 1`
27909fi
27910
cristy8b350f62009-11-15 23:12:43 +000027911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027912$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027913if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027914 $as_echo_n "(cached) " >&6
27915else
27916 ac_check_lib_save_LIBS=$LIBS
27917LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027919/* end confdefs.h. */
27920
27921/* Override any GCC internal prototype to avoid an error.
27922 Use char because int might match the return type of a GCC
27923 builtin and then its argument prototype would still apply. */
27924#ifdef __cplusplus
27925extern "C"
27926#endif
27927char uncompress ();
27928int
27929main ()
27930{
27931return uncompress ();
27932 ;
27933 return 0;
27934}
27935_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027936if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027937 ac_cv_lib_z_uncompress=yes
27938else
cristy8b350f62009-11-15 23:12:43 +000027939 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027940fi
cristy8b350f62009-11-15 23:12:43 +000027941rm -f core conftest.err conftest.$ac_objext \
27942 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027943LIBS=$ac_check_lib_save_LIBS
27944fi
cristy8b350f62009-11-15 23:12:43 +000027945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027946$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027947if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027948 passed=`expr $passed + 1`
27949else
27950 failed=`expr $failed + 1`
27951fi
27952
cristy8b350f62009-11-15 23:12:43 +000027953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027954$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027955if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027956 $as_echo_n "(cached) " >&6
27957else
27958 ac_check_lib_save_LIBS=$LIBS
27959LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027961/* end confdefs.h. */
27962
27963/* Override any GCC internal prototype to avoid an error.
27964 Use char because int might match the return type of a GCC
27965 builtin and then its argument prototype would still apply. */
27966#ifdef __cplusplus
27967extern "C"
27968#endif
27969char deflate ();
27970int
27971main ()
27972{
27973return deflate ();
27974 ;
27975 return 0;
27976}
27977_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027978if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027979 ac_cv_lib_z_deflate=yes
27980else
cristy8b350f62009-11-15 23:12:43 +000027981 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027982fi
cristy8b350f62009-11-15 23:12:43 +000027983rm -f core conftest.err conftest.$ac_objext \
27984 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027985LIBS=$ac_check_lib_save_LIBS
27986fi
cristy8b350f62009-11-15 23:12:43 +000027987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027988$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027989if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027990 passed=`expr $passed + 1`
27991else
27992 failed=`expr $failed + 1`
27993fi
27994
cristy8b350f62009-11-15 23:12:43 +000027995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027996$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027997if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027998 $as_echo_n "(cached) " >&6
27999else
28000 ac_check_lib_save_LIBS=$LIBS
28001LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028003/* end confdefs.h. */
28004
28005/* Override any GCC internal prototype to avoid an error.
28006 Use char because int might match the return type of a GCC
28007 builtin and then its argument prototype would still apply. */
28008#ifdef __cplusplus
28009extern "C"
28010#endif
28011char inflate ();
28012int
28013main ()
28014{
28015return inflate ();
28016 ;
28017 return 0;
28018}
28019_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028020if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028021 ac_cv_lib_z_inflate=yes
28022else
cristy8b350f62009-11-15 23:12:43 +000028023 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028024fi
cristy8b350f62009-11-15 23:12:43 +000028025rm -f core conftest.err conftest.$ac_objext \
28026 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028027LIBS=$ac_check_lib_save_LIBS
28028fi
cristy8b350f62009-11-15 23:12:43 +000028029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028030$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028031if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028032 passed=`expr $passed + 1`
28033else
28034 failed=`expr $failed + 1`
28035fi
28036
cristy8b350f62009-11-15 23:12:43 +000028037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028038$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028039if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028040 $as_echo_n "(cached) " >&6
28041else
28042 ac_check_lib_save_LIBS=$LIBS
28043LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028045/* end confdefs.h. */
28046
28047/* Override any GCC internal prototype to avoid an error.
28048 Use char because int might match the return type of a GCC
28049 builtin and then its argument prototype would still apply. */
28050#ifdef __cplusplus
28051extern "C"
28052#endif
28053char gzseek ();
28054int
28055main ()
28056{
28057return gzseek ();
28058 ;
28059 return 0;
28060}
28061_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028062if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028063 ac_cv_lib_z_gzseek=yes
28064else
cristy8b350f62009-11-15 23:12:43 +000028065 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028066fi
cristy8b350f62009-11-15 23:12:43 +000028067rm -f core conftest.err conftest.$ac_objext \
28068 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028069LIBS=$ac_check_lib_save_LIBS
28070fi
cristy8b350f62009-11-15 23:12:43 +000028071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028072$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028073if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028074 passed=`expr $passed + 1`
28075else
28076 failed=`expr $failed + 1`
28077fi
28078
cristy8b350f62009-11-15 23:12:43 +000028079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028080$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028081if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028082 $as_echo_n "(cached) " >&6
28083else
28084 ac_check_lib_save_LIBS=$LIBS
28085LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028087/* end confdefs.h. */
28088
28089/* Override any GCC internal prototype to avoid an error.
28090 Use char because int might match the return type of a GCC
28091 builtin and then its argument prototype would still apply. */
28092#ifdef __cplusplus
28093extern "C"
28094#endif
28095char gztell ();
28096int
28097main ()
28098{
28099return gztell ();
28100 ;
28101 return 0;
28102}
28103_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028104if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028105 ac_cv_lib_z_gztell=yes
28106else
cristy8b350f62009-11-15 23:12:43 +000028107 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028108fi
cristy8b350f62009-11-15 23:12:43 +000028109rm -f core conftest.err conftest.$ac_objext \
28110 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028111LIBS=$ac_check_lib_save_LIBS
28112fi
cristy8b350f62009-11-15 23:12:43 +000028113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028114$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028115if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028116 passed=`expr $passed + 1`
28117else
28118 failed=`expr $failed + 1`
28119fi
28120
cristy8b350f62009-11-15 23:12:43 +000028121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028122$as_echo_n "checking if ZLIB package is complete... " >&6; }
28123 if test $passed -gt 0; then
28124 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28126$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028127 have_zlib='no (failed tests)'
28128 else
28129 ZLIB_LIBS='-lz'
28130 LIBS="$ZLIB_LIBS $LIBS"
28131
cristy8b350f62009-11-15 23:12:43 +000028132$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028133
cristyad38abe2012-12-23 23:03:21 +000028134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28135$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028136 have_zlib='yes'
28137 fi
28138 else
cristyad38abe2012-12-23 23:03:21 +000028139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28140$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028141 fi
28142fi
cristy73bd4a52010-10-05 11:24:23 +000028143 if test "$have_zlib" = 'yes'; then
28144 ZLIB_DELEGATE_TRUE=
28145 ZLIB_DELEGATE_FALSE='#'
28146else
28147 ZLIB_DELEGATE_TRUE='#'
28148 ZLIB_DELEGATE_FALSE=
28149fi
28150
cristy3ed852e2009-09-05 21:47:34 +000028151
28152
cristy5eef09f2012-10-16 12:08:28 +000028153# whether modules are built or not.
28154with_ltdl='yes'
28155have_ltdl='no'
28156LTDL_LIBS=''
28157if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28159$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28161$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28163$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028164 failed=0
28165 passed=0
28166 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28167if test "x$ac_cv_header_ltdl_h" = xyes; then :
28168 passed=`expr $passed + 1`
28169else
28170 failed=`expr $failed + 1`
28171fi
28172
28173
28174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28175$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28176if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28177 $as_echo_n "(cached) " >&6
28178else
28179 ac_check_lib_save_LIBS=$LIBS
28180LIBS="-lltdl $LIBS"
28181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28182/* end confdefs.h. */
28183
28184/* Override any GCC internal prototype to avoid an error.
28185 Use char because int might match the return type of a GCC
28186 builtin and then its argument prototype would still apply. */
28187#ifdef __cplusplus
28188extern "C"
28189#endif
28190char lt_dlinit ();
28191int
28192main ()
28193{
28194return lt_dlinit ();
28195 ;
28196 return 0;
28197}
28198_ACEOF
28199if ac_fn_c_try_link "$LINENO"; then :
28200 ac_cv_lib_ltdl_lt_dlinit=yes
28201else
28202 ac_cv_lib_ltdl_lt_dlinit=no
28203fi
28204rm -f core conftest.err conftest.$ac_objext \
28205 conftest$ac_exeext conftest.$ac_ext
28206LIBS=$ac_check_lib_save_LIBS
28207fi
28208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28209$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28210if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28211 passed=`expr $passed + 1`
28212else
28213 failed=`expr $failed + 1`
28214fi
28215
28216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28217$as_echo_n "checking if libltdl package is complete... " >&6; }
28218 if test $passed -gt 0 ; then
28219 if test $failed -gt 0 ; then
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28221$as_echo "no -- some components failed test" >&6; }
28222 have_ltdl='no (failed tests)'
28223 else
28224 LTDL_LIBS='-lltdl'
28225 LIBS="$LTDL_LIBS $LIBS"
28226
28227$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28228
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28230$as_echo "yes" >&6; }
28231 have_ltdl='yes'
28232 fi
28233 else
28234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28235$as_echo "no" >&6; }
28236 fi
cristyaf4cbf32012-10-16 23:47:41 +000028237 if test "$have_ltdl" != 'yes' ; then
28238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28240as_fn_error 1 "libltdl is required for modules build
28241See \`config.log' for more details" "$LINENO" 5; }
28242 fi
cristy5eef09f2012-10-16 12:08:28 +000028243fi
28244 if test "$have_ltdl" != 'no'; then
28245 WITH_LTDL_TRUE=
28246 WITH_LTDL_FALSE='#'
28247else
28248 WITH_LTDL_TRUE='#'
28249 WITH_LTDL_FALSE=
28250fi
28251
28252
cristy3ed852e2009-09-05 21:47:34 +000028253#
28254# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28255#
28256LIB_DL=''
28257if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028259$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028260if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028261 $as_echo_n "(cached) " >&6
28262else
28263 ac_check_lib_save_LIBS=$LIBS
28264LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028266/* end confdefs.h. */
28267
28268/* Override any GCC internal prototype to avoid an error.
28269 Use char because int might match the return type of a GCC
28270 builtin and then its argument prototype would still apply. */
28271#ifdef __cplusplus
28272extern "C"
28273#endif
28274char dlopen ();
28275int
28276main ()
28277{
28278return dlopen ();
28279 ;
28280 return 0;
28281}
28282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028283if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028284 ac_cv_lib_dl_dlopen=yes
28285else
cristy8b350f62009-11-15 23:12:43 +000028286 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028287fi
cristy8b350f62009-11-15 23:12:43 +000028288rm -f core conftest.err conftest.$ac_objext \
28289 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028290LIBS=$ac_check_lib_save_LIBS
28291fi
cristy8b350f62009-11-15 23:12:43 +000028292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028293$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028294if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028295 LIB_DL='-ldl'
28296fi
28297
28298 LIBS="$LIB_DL $LIBS"
28299fi
28300
28301
28302
28303#
28304# Check for Autotrace delegate library.
28305#
28306
28307# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028308if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028309 withval=$with_autotrace; with_autotrace=$withval
28310else
28311 with_autotrace='no'
28312fi
28313
28314
28315if test "$with_autotrace" != 'yes'; then
28316 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28317fi
28318
28319have_autotrace='no'
28320AUTOTRACE_CFLAGS=""
28321AUTOTRACE_LIBS=""
28322AUTOTRACE_PKG=""
28323if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28325$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028326
28327pkg_failed=no
28328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28329$as_echo_n "checking for AUTOTRACE... " >&6; }
28330
28331if test -n "$AUTOTRACE_CFLAGS"; then
28332 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28333 elif test -n "$PKG_CONFIG"; then
28334 if test -n "$PKG_CONFIG" && \
28335 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28336 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28337 ac_status=$?
28338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28339 test $ac_status = 0; }; then
28340 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28341else
28342 pkg_failed=yes
28343fi
28344 else
28345 pkg_failed=untried
28346fi
28347if test -n "$AUTOTRACE_LIBS"; then
28348 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28349 elif test -n "$PKG_CONFIG"; then
28350 if test -n "$PKG_CONFIG" && \
28351 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28352 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28353 ac_status=$?
28354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28355 test $ac_status = 0; }; then
28356 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28357else
28358 pkg_failed=yes
28359fi
28360 else
28361 pkg_failed=untried
28362fi
28363
28364
28365
28366if test $pkg_failed = yes; then
28367
28368if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28369 _pkg_short_errors_supported=yes
28370else
28371 _pkg_short_errors_supported=no
28372fi
28373 if test $_pkg_short_errors_supported = yes; then
28374 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28375 else
28376 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28377 fi
28378 # Put the nasty error message in config.log where it belongs
28379 echo "$AUTOTRACE_PKG_ERRORS" >&5
28380
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28382$as_echo "no" >&6; }
28383 have_autotrace=no
28384elif test $pkg_failed = untried; then
28385 have_autotrace=no
28386else
28387 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28388 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28390$as_echo "yes" >&6; }
28391 have_autotrace=yes
28392fi
cristyad38abe2012-12-23 23:03:21 +000028393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28394$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028395fi
28396
28397if test "$have_autotrace" = 'yes'; then
28398 failed=0
28399
cristy8b350f62009-11-15 23:12:43 +000028400$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028401
cristyc6722092012-10-14 00:19:31 +000028402 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028403 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028404 fi
28405fi
28406
cristy73bd4a52010-10-05 11:24:23 +000028407 if test "$have_autotrace" = 'yes'; then
28408 AUTOTRACE_DELEGATE_TRUE=
28409 AUTOTRACE_DELEGATE_FALSE='#'
28410else
28411 AUTOTRACE_DELEGATE_TRUE='#'
28412 AUTOTRACE_DELEGATE_FALSE=
28413fi
28414
cristy3ed852e2009-09-05 21:47:34 +000028415
28416
28417
28418
28419#
28420# Check for Display Postscript delegate library.
28421#
28422
28423# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028424if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028425 withval=$with_dps; with_dps=$withval
28426else
28427 with_dps='yes'
28428fi
28429
28430
28431if test "$with_dps" != 'yes'; then
28432 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28433fi
28434
28435have_dps='no'
28436DPS_LIBS=''
28437if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28439$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028441$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28443$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028444 failed=0
28445 passed=0
28446 PERSIST_CPPFLAGS="$CPPFLAGS"
28447 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028448 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 +000028449if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028450 passed=`expr $passed + 1`
28451else
28452 failed=`expr $failed + 1`
28453fi
28454
28455
28456 # DPS issues:
28457 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28458 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28459 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28460 # ImageMagick itself doesn't use -lXt.
28461 have_libdps='no'
28462 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028464$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028465if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028466 $as_echo_n "(cached) " >&6
28467else
28468 ac_check_lib_save_LIBS=$LIBS
28469LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028471/* end confdefs.h. */
28472
28473/* Override any GCC internal prototype to avoid an error.
28474 Use char because int might match the return type of a GCC
28475 builtin and then its argument prototype would still apply. */
28476#ifdef __cplusplus
28477extern "C"
28478#endif
28479char DPSInitialize ();
28480int
28481main ()
28482{
28483return DPSInitialize ();
28484 ;
28485 return 0;
28486}
28487_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028488if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028489 ac_cv_lib_dps_DPSInitialize=yes
28490else
cristy8b350f62009-11-15 23:12:43 +000028491 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028492fi
cristy8b350f62009-11-15 23:12:43 +000028493rm -f core conftest.err conftest.$ac_objext \
28494 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028495LIBS=$ac_check_lib_save_LIBS
28496fi
cristy8b350f62009-11-15 23:12:43 +000028497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028498$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028499if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028500 have_libdps='yes'
28501else
28502 have_libdps='no'
28503fi
28504
28505 if test "$have_libdps" != 'yes'; then
28506 # Unset cache variable so we can try again.
28507 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028509$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028510if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028511 $as_echo_n "(cached) " >&6
28512else
28513 ac_check_lib_save_LIBS=$LIBS
28514LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028516/* end confdefs.h. */
28517
28518/* Override any GCC internal prototype to avoid an error.
28519 Use char because int might match the return type of a GCC
28520 builtin and then its argument prototype would still apply. */
28521#ifdef __cplusplus
28522extern "C"
28523#endif
28524char DPSInitialize ();
28525int
28526main ()
28527{
28528return DPSInitialize ();
28529 ;
28530 return 0;
28531}
28532_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028533if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028534 ac_cv_lib_dps_DPSInitialize=yes
28535else
cristy8b350f62009-11-15 23:12:43 +000028536 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028537fi
cristy8b350f62009-11-15 23:12:43 +000028538rm -f core conftest.err conftest.$ac_objext \
28539 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028540LIBS=$ac_check_lib_save_LIBS
28541fi
cristy8b350f62009-11-15 23:12:43 +000028542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028543$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028544if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028545 have_libdps='yes'
28546else
28547 have_libdps='no'
28548fi
28549
28550 if test "$have_libdps" = 'yes'; then
28551 LIBDPS_XT='-lXt'
28552 fi
28553 fi
28554 if test "$have_libdps" = 'yes'; then
28555 passed=`expr $passed + 1`
28556 else
28557 failed=`expr $failed + 1`
28558 fi
cristy8b350f62009-11-15 23:12:43 +000028559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028560$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028561if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028562 $as_echo_n "(cached) " >&6
28563else
28564 ac_check_lib_save_LIBS=$LIBS
28565LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028567/* end confdefs.h. */
28568
28569/* Override any GCC internal prototype to avoid an error.
28570 Use char because int might match the return type of a GCC
28571 builtin and then its argument prototype would still apply. */
28572#ifdef __cplusplus
28573extern "C"
28574#endif
28575char XDPSPixelsPerPoint ();
28576int
28577main ()
28578{
28579return XDPSPixelsPerPoint ();
28580 ;
28581 return 0;
28582}
28583_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028584if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028585 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28586else
cristy8b350f62009-11-15 23:12:43 +000028587 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028588fi
cristy8b350f62009-11-15 23:12:43 +000028589rm -f core conftest.err conftest.$ac_objext \
28590 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028591LIBS=$ac_check_lib_save_LIBS
28592fi
cristy8b350f62009-11-15 23:12:43 +000028593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028594$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028595if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028596 passed=`expr $passed + 1`
28597else
28598 failed=`expr $failed + 1`
28599fi
28600
cristy8b350f62009-11-15 23:12:43 +000028601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028602$as_echo_n "checking if DPS package is complete... " >&6; }
28603 if test $passed -gt 0; then
28604 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28606$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028607 have_dps='no (failed tests)'
28608 CPPFLAGS="$PERSIST_CPPFLAGS"
28609 else
28610 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28611 LIBS="$DPS_LIBS $LIBS"
28612
cristy8b350f62009-11-15 23:12:43 +000028613$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028614
cristyad38abe2012-12-23 23:03:21 +000028615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28616$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028617 have_dps='yes'
28618 fi
28619 else
cristyad38abe2012-12-23 23:03:21 +000028620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28621$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028622 CPPFLAGS=$PERSIST_CPPFLAGS
28623 fi
28624fi
cristy73bd4a52010-10-05 11:24:23 +000028625 if test "$have_dps" = 'yes'; then
28626 DPS_DELEGATE_TRUE=
28627 DPS_DELEGATE_FALSE='#'
28628else
28629 DPS_DELEGATE_TRUE='#'
28630 DPS_DELEGATE_FALSE=
28631fi
28632
cristy3ed852e2009-09-05 21:47:34 +000028633
28634
28635
28636#
28637# Check for DJVU delegate library.
28638#
28639
28640# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028641if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028642 withval=$with_djvu; with_djvu=$withval
28643else
28644 with_djvu='yes'
28645fi
28646
28647
28648if test "$with_djvu" != 'yes'; then
28649 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28650fi
28651
28652have_djvu='no'
28653DJVU_LIBS=''
28654if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28656$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028658$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28660$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028661 failed=0
28662 passed=0
cristy8b350f62009-11-15 23:12:43 +000028663 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 +000028664if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028665 passed=`expr $passed + 1`
28666else
28667 failed=`expr $failed + 1`
28668fi
28669
28670
cristy8b350f62009-11-15 23:12:43 +000028671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028672$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028673if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028674 $as_echo_n "(cached) " >&6
28675else
28676 ac_check_lib_save_LIBS=$LIBS
28677LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028679/* end confdefs.h. */
28680
28681/* Override any GCC internal prototype to avoid an error.
28682 Use char because int might match the return type of a GCC
28683 builtin and then its argument prototype would still apply. */
28684#ifdef __cplusplus
28685extern "C"
28686#endif
28687char ddjvu_context_create ();
28688int
28689main ()
28690{
28691return ddjvu_context_create ();
28692 ;
28693 return 0;
28694}
28695_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028696if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028697 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28698else
cristy8b350f62009-11-15 23:12:43 +000028699 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028700fi
cristy8b350f62009-11-15 23:12:43 +000028701rm -f core conftest.err conftest.$ac_objext \
28702 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028703LIBS=$ac_check_lib_save_LIBS
28704fi
cristy8b350f62009-11-15 23:12:43 +000028705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028706$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028707if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028708 passed=`expr $passed + 1`
28709else
28710 failed=`expr $failed + 1`
28711fi
28712
cristy8b350f62009-11-15 23:12:43 +000028713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028714$as_echo_n "checking if DJVU package is complete... " >&6; }
28715 if test $passed -gt 0; then
28716 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28718$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028719 have_djvu='no (failed tests)'
28720 else
28721 DJVU_LIBS='-ldjvulibre'
28722 LIBS="$DJVU_LIBS $LIBS"
28723
cristy8b350f62009-11-15 23:12:43 +000028724$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028725
cristyad38abe2012-12-23 23:03:21 +000028726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28727$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028728 have_djvu='yes'
28729 fi
28730 else
cristyad38abe2012-12-23 23:03:21 +000028731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28732$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028733 fi
28734fi
cristy73bd4a52010-10-05 11:24:23 +000028735 if test "$have_djvu" = 'yes'; then
28736 DJVU_DELEGATE_TRUE=
28737 DJVU_DELEGATE_FALSE='#'
28738else
28739 DJVU_DELEGATE_TRUE='#'
28740 DJVU_DELEGATE_FALSE=
28741fi
28742
cristy3ed852e2009-09-05 21:47:34 +000028743
28744
28745
28746#
cristy430a7312010-01-21 20:44:04 +000028747# Set DejaVu font directory.
28748#
28749
28750# Check whether --with-dejavu-font-dir was given.
28751if test "${with_dejavu_font_dir+set}" = set; then :
28752 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28753else
28754 with_dejavu_font_dir='default'
28755fi
28756
28757
28758if test "$with_dejavu_font_dir" != 'default'; then
28759 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28760fi
28761
28762
28763#
cristy3ed852e2009-09-05 21:47:34 +000028764# Check for FFTW delegate library.
28765#
28766
28767# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028768if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028769 withval=$with_fftw; with_fftw=$withval
28770else
28771 with_fftw='yes'
28772fi
28773
28774
28775if test "$with_fftw" != 'yes'; then
28776 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28777fi
28778
cristy81beccd2011-10-03 18:17:24 +000028779have_fftw='no'
28780FFTW_LIBS=''
28781if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28783$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28785$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28787$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028788 failed=0
28789 passed=0
28790 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28791if test "x$ac_cv_header_fftw3_h" = xyes; then :
28792 passed=`expr $passed + 1`
28793else
28794 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028795fi
28796
cristy81beccd2011-10-03 18:17:24 +000028797
28798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28799$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28800if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28801 $as_echo_n "(cached) " >&6
28802else
28803 ac_check_lib_save_LIBS=$LIBS
28804LIBS="-lfftw3 $LIBS"
28805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28806/* end confdefs.h. */
28807
28808/* Override any GCC internal prototype to avoid an error.
28809 Use char because int might match the return type of a GCC
28810 builtin and then its argument prototype would still apply. */
28811#ifdef __cplusplus
28812extern "C"
28813#endif
28814char fftw_execute ();
28815int
28816main ()
28817{
28818return fftw_execute ();
28819 ;
28820 return 0;
28821}
28822_ACEOF
28823if ac_fn_c_try_link "$LINENO"; then :
28824 ac_cv_lib_fftw3_fftw_execute=yes
28825else
28826 ac_cv_lib_fftw3_fftw_execute=no
28827fi
28828rm -f core conftest.err conftest.$ac_objext \
28829 conftest$ac_exeext conftest.$ac_ext
28830LIBS=$ac_check_lib_save_LIBS
28831fi
28832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28833$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28834if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28835 passed=`expr $passed + 1`
28836else
28837 failed=`expr $failed + 1`
28838fi
28839
28840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28841$as_echo_n "checking if FFTW package is complete... " >&6; }
28842 if test $passed -gt 0; then
28843 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28845$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028846 have_fftw='no (failed tests)'
28847 else
28848 FFTW_LIBS='-lfftw3'
28849 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028850
cristy8b350f62009-11-15 23:12:43 +000028851$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028852
cristyad38abe2012-12-23 23:03:21 +000028853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28854$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028855 have_fftw='yes'
28856 fi
28857 else
cristyad38abe2012-12-23 23:03:21 +000028858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28859$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028860 fi
28861fi
cristy73bd4a52010-10-05 11:24:23 +000028862 if test "$have_fftw" = 'yes'; then
28863 FFTW_DELEGATE_TRUE=
28864 FFTW_DELEGATE_FALSE='#'
28865else
28866 FFTW_DELEGATE_TRUE='#'
28867 FFTW_DELEGATE_FALSE=
28868fi
28869
cristy3ed852e2009-09-05 21:47:34 +000028870
28871
28872
28873#
28874# Check for FlashPIX delegate library.
28875#
28876
28877# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028878if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028879 withval=$with_fpx; with_fpx=$withval
28880else
28881 with_fpx='yes'
28882fi
28883
28884
28885if test "$with_fpx" != 'yes'; then
28886 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28887fi
28888
28889have_fpx='no'
28890FPX_LIBS=''
28891if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28893$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028895$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28897$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028898 failed=0
28899 passed=0
28900 ac_ext=cpp
28901ac_cpp='$CXXCPP $CPPFLAGS'
28902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28905
28906
cristy8b350f62009-11-15 23:12:43 +000028907ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028908if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028909 passed=`expr $passed + 1`
28910else
28911 failed=`expr $failed + 1`
28912fi
28913
28914
cristy8b350f62009-11-15 23:12:43 +000028915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028916$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028917if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028918 $as_echo_n "(cached) " >&6
28919else
28920 ac_check_lib_save_LIBS=$LIBS
28921LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028923/* end confdefs.h. */
28924
28925/* Override any GCC internal prototype to avoid an error.
28926 Use char because int might match the return type of a GCC
28927 builtin and then its argument prototype would still apply. */
28928#ifdef __cplusplus
28929extern "C"
28930#endif
28931char FPX_OpenImageByFilename ();
28932int
28933main ()
28934{
28935return FPX_OpenImageByFilename ();
28936 ;
28937 return 0;
28938}
28939_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028940if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028941 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28942else
cristy8b350f62009-11-15 23:12:43 +000028943 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028944fi
cristy8b350f62009-11-15 23:12:43 +000028945rm -f core conftest.err conftest.$ac_objext \
28946 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028947LIBS=$ac_check_lib_save_LIBS
28948fi
cristy8b350f62009-11-15 23:12:43 +000028949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028950$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028951if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028952 passed=`expr $passed + 1`
28953else
28954 failed=`expr $failed + 1`
28955fi
28956
28957 ac_ext=c
28958ac_cpp='$CPP $CPPFLAGS'
28959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28961ac_compiler_gnu=$ac_cv_c_compiler_gnu
28962
cristy8b350f62009-11-15 23:12:43 +000028963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028964$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28965 if test $passed -gt 0; then
28966 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28968$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028969 have_fpx='no (failed tests)'
28970 else
28971 FPX_LIBS='-lfpx'
28972
cristy8b350f62009-11-15 23:12:43 +000028973$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028974
cristyad38abe2012-12-23 23:03:21 +000028975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28976$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028977 have_fpx='yes'
28978 PERLMAINCC="$CXX"
28979 fi
28980 else
cristyad38abe2012-12-23 23:03:21 +000028981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28982$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028983 fi
28984fi
cristy73bd4a52010-10-05 11:24:23 +000028985 if test "$have_fpx" = 'yes'; then
28986 FPX_DELEGATE_TRUE=
28987 FPX_DELEGATE_FALSE='#'
28988else
28989 FPX_DELEGATE_TRUE='#'
28990 FPX_DELEGATE_FALSE=
28991fi
28992
cristy3ed852e2009-09-05 21:47:34 +000028993
28994
28995
28996#
28997# Check for fontconfig delegate library.
28998#
28999
29000# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029001if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029002 withval=$with_fontconfig; with_fontconfig=$withval
29003else
cristyfc3d0222012-02-07 15:05:57 +000029004 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029005fi
29006
29007
29008if test "$with_fontconfig" != 'yes'; then
29009 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29010fi
29011
29012have_fontconfig='no'
29013FONTCONFIG_CFLAGS=""
29014FONTCONFIG_LIBS=""
29015FONTCONFIG_PKG=""
29016if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29018$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029019
29020pkg_failed=no
29021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29022$as_echo_n "checking for FONTCONFIG... " >&6; }
29023
29024if test -n "$FONTCONFIG_CFLAGS"; then
29025 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29026 elif test -n "$PKG_CONFIG"; then
29027 if test -n "$PKG_CONFIG" && \
29028 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29029 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29030 ac_status=$?
29031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29032 test $ac_status = 0; }; then
29033 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29034else
29035 pkg_failed=yes
29036fi
29037 else
29038 pkg_failed=untried
29039fi
29040if test -n "$FONTCONFIG_LIBS"; then
29041 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29042 elif test -n "$PKG_CONFIG"; then
29043 if test -n "$PKG_CONFIG" && \
29044 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29045 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29046 ac_status=$?
29047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29048 test $ac_status = 0; }; then
29049 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29050else
29051 pkg_failed=yes
29052fi
29053 else
29054 pkg_failed=untried
29055fi
29056
29057
29058
29059if test $pkg_failed = yes; then
29060
29061if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29062 _pkg_short_errors_supported=yes
29063else
29064 _pkg_short_errors_supported=no
29065fi
29066 if test $_pkg_short_errors_supported = yes; then
29067 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29068 else
29069 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29070 fi
29071 # Put the nasty error message in config.log where it belongs
29072 echo "$FONTCONFIG_PKG_ERRORS" >&5
29073
29074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29075$as_echo "no" >&6; }
29076 have_fontconfig=no
29077elif test $pkg_failed = untried; then
29078 have_fontconfig=no
29079else
29080 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29081 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29083$as_echo "yes" >&6; }
29084 have_fontconfig=yes
29085fi
cristyad38abe2012-12-23 23:03:21 +000029086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29087$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029088fi
29089
29090if test "$have_fontconfig" = 'yes'; then
29091
cristy8b350f62009-11-15 23:12:43 +000029092$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029093
cristyc6722092012-10-14 00:19:31 +000029094 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029095 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029096 fi
cristy3ed852e2009-09-05 21:47:34 +000029097fi
29098
cristy73bd4a52010-10-05 11:24:23 +000029099 if test "$have_fontconfig" = 'yes'; then
29100 FONTCONFIG_DELEGATE_TRUE=
29101 FONTCONFIG_DELEGATE_FALSE='#'
29102else
29103 FONTCONFIG_DELEGATE_TRUE='#'
29104 FONTCONFIG_DELEGATE_FALSE=
29105fi
29106
cristy3ed852e2009-09-05 21:47:34 +000029107
29108
29109
29110
29111#
cristy03f187e2013-01-24 00:22:19 +000029112# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029113#
29114
29115# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029116if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029117 withval=$with_freetype; with_freetype=$withval
29118else
29119 with_freetype='yes'
29120fi
29121
29122
cristy3ed852e2009-09-05 21:47:34 +000029123if test "$with_freetype" != 'yes'; then
29124 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29125fi
29126
cristy81beccd2011-10-03 18:17:24 +000029127have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029128FREETYPE_CFLAGS=""
29129FREETYPE_LIBS=""
29130FREETYPE_PKG=""
29131if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29133$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029134
29135pkg_failed=no
29136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29137$as_echo_n "checking for FREETYPE... " >&6; }
29138
29139if test -n "$FREETYPE_CFLAGS"; then
29140 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29141 elif test -n "$PKG_CONFIG"; then
29142 if test -n "$PKG_CONFIG" && \
29143 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29144 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29145 ac_status=$?
29146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29147 test $ac_status = 0; }; then
29148 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29149else
29150 pkg_failed=yes
29151fi
29152 else
29153 pkg_failed=untried
29154fi
29155if test -n "$FREETYPE_LIBS"; then
29156 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29157 elif test -n "$PKG_CONFIG"; then
29158 if test -n "$PKG_CONFIG" && \
29159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29160 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29161 ac_status=$?
29162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29163 test $ac_status = 0; }; then
29164 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29165else
29166 pkg_failed=yes
29167fi
29168 else
29169 pkg_failed=untried
29170fi
29171
29172
29173
29174if test $pkg_failed = yes; then
29175
29176if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29177 _pkg_short_errors_supported=yes
29178else
29179 _pkg_short_errors_supported=no
29180fi
29181 if test $_pkg_short_errors_supported = yes; then
29182 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29183 else
29184 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29185 fi
29186 # Put the nasty error message in config.log where it belongs
29187 echo "$FREETYPE_PKG_ERRORS" >&5
29188
29189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29190$as_echo "no" >&6; }
29191 have_freetype=no
29192elif test $pkg_failed = untried; then
29193 have_freetype=no
29194else
29195 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29196 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29198$as_echo "yes" >&6; }
29199 have_freetype=yes
29200fi
cristyad38abe2012-12-23 23:03:21 +000029201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29202$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029203fi
29204
cristy03f187e2013-01-24 00:22:19 +000029205if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029206
cristy8b350f62009-11-15 23:12:43 +000029207$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029208
cristy03f187e2013-01-24 00:22:19 +000029209 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029210fi
cristy03f187e2013-01-24 00:22:19 +000029211
cristy73bd4a52010-10-05 11:24:23 +000029212 if test "$have_freetype" = 'yes'; then
29213 FREETYPE_DELEGATE_TRUE=
29214 FREETYPE_DELEGATE_FALSE='#'
29215else
29216 FREETYPE_DELEGATE_TRUE='#'
29217 FREETYPE_DELEGATE_FALSE=
29218fi
29219
cristy3ed852e2009-09-05 21:47:34 +000029220
29221
29222
cristy03f187e2013-01-24 00:22:19 +000029223
cristy3ed852e2009-09-05 21:47:34 +000029224#
29225# Check for Ghostscript library or framework.
29226#
29227# Test for iapi.h & test for gsapi_new_instance in -lgs
29228# or -framework Ghostscript
29229
29230
29231# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029232if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029233 withval=$with_gslib; with_gslib=$withval
29234else
29235 with_gslib='no'
29236fi
29237
29238
cristyb7931f12009-09-25 10:22:21 +000029239gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029240if test "$with_gslib" != 'yes'; then
29241 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29242fi
29243
29244have_gslib='no'
29245GS_LIBS=''
29246if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29248$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029250$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29252$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029253 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029254 failed=0
29255 passed=0
cristy8b350f62009-11-15 23:12:43 +000029256 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 +000029257if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029258 passed=`expr $passed + 1`
29259else
29260 failed=`expr $failed + 1`
29261fi
29262
29263
cristy8b350f62009-11-15 23:12:43 +000029264 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 +000029265if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029266 passed=`expr $passed + 1`
29267else
29268 failed=`expr $failed + 1`
29269fi
29270
29271
cristy73bd4a52010-10-05 11:24:23 +000029272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29273$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029274if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029275 $as_echo_n "(cached) " >&6
29276else
29277 ac_check_framework_save_LIBS=$LIBS
29278LIBS="-framework Ghostscript $LIBS"
29279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29280/* end confdefs.h. */
29281
29282/* Override any GCC internal prototype to avoid an error.
29283 Use char because int might match the return type of a GCC
29284 builtin and then its argument prototype would still apply. */
29285#ifdef __cplusplus
29286extern "C"
29287#endif
29288char gsapi_new_instance ();
29289int
29290main ()
29291{
29292return gsapi_new_instance ();
29293 ;
29294 return 0;
29295}
29296_ACEOF
29297if ac_fn_c_try_link "$LINENO"; then :
29298 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29299else
29300 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29301fi
29302rm -f core conftest.err conftest.$ac_objext \
29303 conftest$ac_exeext conftest.$ac_ext
29304LIBS=$ac_check_framework_save_LIBS
29305fi
29306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29307$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29308if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29309 framework=`expr $framework + 1`
29310else
29311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029312$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029313if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029314 $as_echo_n "(cached) " >&6
29315else
29316 ac_check_lib_save_LIBS=$LIBS
29317LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029319/* end confdefs.h. */
29320
29321/* Override any GCC internal prototype to avoid an error.
29322 Use char because int might match the return type of a GCC
29323 builtin and then its argument prototype would still apply. */
29324#ifdef __cplusplus
29325extern "C"
29326#endif
29327char gsapi_new_instance ();
29328int
29329main ()
29330{
29331return gsapi_new_instance ();
29332 ;
29333 return 0;
29334}
29335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029336if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029337 ac_cv_lib_gs_gsapi_new_instance=yes
29338else
cristy8b350f62009-11-15 23:12:43 +000029339 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029340fi
cristy8b350f62009-11-15 23:12:43 +000029341rm -f core conftest.err conftest.$ac_objext \
29342 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029343LIBS=$ac_check_lib_save_LIBS
29344fi
cristy8b350f62009-11-15 23:12:43 +000029345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029346$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029347if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029348 passed=`expr $passed + 1`
29349else
29350 failed=`expr $failed + 1`
29351fi
cristy73bd4a52010-10-05 11:24:23 +000029352
29353fi
cristy8b350f62009-11-15 23:12:43 +000029354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029355$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29356 if test $passed -gt 0; then
29357 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29359$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029360 have_gslib='no (failed tests)'
29361 else
29362 if test $framework -gt 0; then
29363 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029364 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29366$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029367 else
cristyad38abe2012-12-23 23:03:21 +000029368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29369$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029370 GS_LIBS='-lgs'
29371 fi
29372 LIBS="$GS_LIBS $LIBS"
29373
cristy8b350f62009-11-15 23:12:43 +000029374$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029375
29376 have_gslib='yes'
29377 fi
29378 else
cristyad38abe2012-12-23 23:03:21 +000029379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29380$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029381 fi
29382fi
cristy73bd4a52010-10-05 11:24:23 +000029383 if test "$have_gslib" = 'yes'; then
29384 GS_DELEGATE_TRUE=
29385 GS_DELEGATE_FALSE='#'
29386else
29387 GS_DELEGATE_TRUE='#'
29388 GS_DELEGATE_FALSE=
29389fi
29390
cristy3ed852e2009-09-05 21:47:34 +000029391
29392
29393# Set default font search path
29394
29395# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029396if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029397 withval=$with_fontpath; with_fontpath=$withval
29398else
29399 with_fontpath=''
29400fi
29401
29402
29403if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29404 with_fontpath=''
29405else
29406
29407cat >>confdefs.h <<_ACEOF
29408#define MAGICK_FONT_PATH "$with_fontpath"
29409_ACEOF
29410
29411fi
29412if test "$with_fontpath=" != ''; then
29413 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29414fi
29415
29416# Set Ghostscript font directory
29417
29418# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029419if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029420 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29421else
29422 with_gs_font_dir='default'
29423fi
29424
29425
29426if test "$with_gs_font_dir" != 'default'; then
29427 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29428fi
29429
29430
29431#
29432# Check for GVC delegate library.
29433#
29434
29435# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029436if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029437 withval=$with_gvc; with_gvc=$withval
29438else
cristy1b70dc82012-07-01 23:15:05 +000029439 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029440fi
29441
29442
29443if test "$with_gvc" != 'yes'; then
29444 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29445fi
29446
29447GVC_PKG=""
29448if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29450$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029451
29452pkg_failed=no
29453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29454$as_echo_n "checking for GVC... " >&6; }
29455
29456if test -n "$GVC_CFLAGS"; then
29457 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29458 elif test -n "$PKG_CONFIG"; then
29459 if test -n "$PKG_CONFIG" && \
29460 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29461 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29462 ac_status=$?
29463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29464 test $ac_status = 0; }; then
29465 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29466else
29467 pkg_failed=yes
29468fi
29469 else
29470 pkg_failed=untried
29471fi
29472if test -n "$GVC_LIBS"; then
29473 pkg_cv_GVC_LIBS="$GVC_LIBS"
29474 elif test -n "$PKG_CONFIG"; then
29475 if test -n "$PKG_CONFIG" && \
29476 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29477 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29478 ac_status=$?
29479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29480 test $ac_status = 0; }; then
29481 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29482else
29483 pkg_failed=yes
29484fi
29485 else
29486 pkg_failed=untried
29487fi
29488
29489
29490
29491if test $pkg_failed = yes; then
29492
29493if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29494 _pkg_short_errors_supported=yes
29495else
29496 _pkg_short_errors_supported=no
29497fi
29498 if test $_pkg_short_errors_supported = yes; then
29499 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29500 else
29501 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29502 fi
29503 # Put the nasty error message in config.log where it belongs
29504 echo "$GVC_PKG_ERRORS" >&5
29505
29506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29507$as_echo "no" >&6; }
29508 have_gvc=no
29509elif test $pkg_failed = untried; then
29510 have_gvc=no
29511else
29512 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29513 GVC_LIBS=$pkg_cv_GVC_LIBS
29514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29515$as_echo "yes" >&6; }
29516 have_gvc=yes
29517fi
cristyad38abe2012-12-23 23:03:21 +000029518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29519$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029520fi
29521
29522if test "$have_gvc" = 'yes'; then
29523
cristy8b350f62009-11-15 23:12:43 +000029524$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029525
cristyc6722092012-10-14 00:19:31 +000029526 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029527 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29528 fi
29529fi
29530
cristy73bd4a52010-10-05 11:24:23 +000029531 if test "$have_gvc" = 'yes'; then
29532 GVC_DELEGATE_TRUE=
29533 GVC_DELEGATE_FALSE='#'
29534else
29535 GVC_DELEGATE_TRUE='#'
29536 GVC_DELEGATE_FALSE=
29537fi
29538
cristy3ed852e2009-09-05 21:47:34 +000029539
29540
29541
29542
29543#
29544# Check for JBIG delegate library.
29545#
29546
29547
29548# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029549if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029550 withval=$with_jbig; with_jbig=$withval
29551else
29552 with_jbig='yes'
29553fi
29554
29555
29556have_jbig='no'
29557JBIG_LIBS=''
29558if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29560$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029562$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29564$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029565 failed=0
29566 passed=0
cristy8b350f62009-11-15 23:12:43 +000029567 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029568if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029569 passed=`expr $passed + 1`
29570else
29571 failed=`expr $failed + 1`
29572fi
29573
29574
cristy8b350f62009-11-15 23:12:43 +000029575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029576$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029577if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029578 $as_echo_n "(cached) " >&6
29579else
29580 ac_check_lib_save_LIBS=$LIBS
29581LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029583/* end confdefs.h. */
29584
29585/* Override any GCC internal prototype to avoid an error.
29586 Use char because int might match the return type of a GCC
29587 builtin and then its argument prototype would still apply. */
29588#ifdef __cplusplus
29589extern "C"
29590#endif
29591char jbg_dec_init ();
29592int
29593main ()
29594{
29595return jbg_dec_init ();
29596 ;
29597 return 0;
29598}
29599_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029600if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029601 ac_cv_lib_jbig_jbg_dec_init=yes
29602else
cristy8b350f62009-11-15 23:12:43 +000029603 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029604fi
cristy8b350f62009-11-15 23:12:43 +000029605rm -f core conftest.err conftest.$ac_objext \
29606 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029607LIBS=$ac_check_lib_save_LIBS
29608fi
cristy8b350f62009-11-15 23:12:43 +000029609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029610$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029611if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029612 passed=`expr $passed + 1`
29613else
29614 failed=`expr $failed + 1`
29615fi
29616
cristy8b350f62009-11-15 23:12:43 +000029617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029618$as_echo_n "checking if JBIG package is complete... " >&6; }
29619 if test $passed -gt 0; then
29620 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29622$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029623 have_jbig='no (failed tests)'
29624 else
29625 JBIG_LIBS='-ljbig'
29626 LIBS="$JBIG_LIBS $LIBS"
29627
cristy8b350f62009-11-15 23:12:43 +000029628$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029629
cristyad38abe2012-12-23 23:03:21 +000029630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29631$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029632 have_jbig='yes'
29633 fi
29634 else
cristyad38abe2012-12-23 23:03:21 +000029635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29636$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029637 fi
29638fi
cristy73bd4a52010-10-05 11:24:23 +000029639 if test "$have_jbig" = 'yes'; then
29640 JBIG_DELEGATE_TRUE=
29641 JBIG_DELEGATE_FALSE='#'
29642else
29643 JBIG_DELEGATE_TRUE='#'
29644 JBIG_DELEGATE_FALSE=
29645fi
29646
cristy3ed852e2009-09-05 21:47:34 +000029647
29648
29649
29650#
29651# Check for JPEG delegate library.
29652#
29653
29654# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029655if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029656 withval=$with_jpeg; with_jpeg=$withval
29657else
29658 with_jpeg='yes'
29659fi
29660
29661
29662if test "$with_jpeg" != 'yes'; then
29663 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29664fi
29665
29666have_jpeg='no'
29667JPEG_LIBS=''
29668if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29670$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029672$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29674$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029675 failed=0
29676 passed=0
cristy8b350f62009-11-15 23:12:43 +000029677 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029678if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029679 passed=`expr $passed + 1`
29680else
29681 failed=`expr $failed + 1`
29682fi
29683
29684
cristy8b350f62009-11-15 23:12:43 +000029685 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029686if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029687 passed=`expr $passed + 1`
29688else
29689 failed=`expr $failed + 1`
29690fi
29691
29692
cristy8b350f62009-11-15 23:12:43 +000029693 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029694if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029695 passed=`expr $passed + 1`
29696else
29697 failed=`expr $failed + 1`
29698fi
29699
29700
cristy8b350f62009-11-15 23:12:43 +000029701 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029702if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029703 passed=`expr $passed + 1`
29704else
29705 failed=`expr $failed + 1`
29706fi
29707
29708
cristy8b350f62009-11-15 23:12:43 +000029709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029710$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029711if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029712 $as_echo_n "(cached) " >&6
29713else
29714 ac_check_lib_save_LIBS=$LIBS
29715LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029717/* end confdefs.h. */
29718
29719/* Override any GCC internal prototype to avoid an error.
29720 Use char because int might match the return type of a GCC
29721 builtin and then its argument prototype would still apply. */
29722#ifdef __cplusplus
29723extern "C"
29724#endif
29725char jpeg_read_header ();
29726int
29727main ()
29728{
29729return jpeg_read_header ();
29730 ;
29731 return 0;
29732}
29733_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029734if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029735 ac_cv_lib_jpeg_jpeg_read_header=yes
29736else
cristy8b350f62009-11-15 23:12:43 +000029737 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029738fi
cristy8b350f62009-11-15 23:12:43 +000029739rm -f core conftest.err conftest.$ac_objext \
29740 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029741LIBS=$ac_check_lib_save_LIBS
29742fi
cristy8b350f62009-11-15 23:12:43 +000029743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029744$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029745if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029746 passed=`expr $passed + 1`
29747else
29748 failed=`expr $failed + 1`
29749fi
29750
29751
29752# Test for compatible JPEG library
29753if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029755$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029756if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029757 $as_echo_n "(cached) " >&6
29758else
cristy8b350f62009-11-15 23:12:43 +000029759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029760/* end confdefs.h. */
29761#include <stdio.h>
29762#include <stdlib.h>
29763#include <jpeglib.h>
29764
29765int
29766main ()
29767{
29768
29769#if JPEG_LIB_VERSION < 62
29770#error IJG JPEG library must be version 6b or newer!
29771#endif
29772return 0;
29773
29774 ;
29775 return 0;
29776}
29777_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029778if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029779 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29780else
cristy8b350f62009-11-15 23:12:43 +000029781 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029782fi
cristy3ed852e2009-09-05 21:47:34 +000029783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29784fi
cristy8b350f62009-11-15 23:12:43 +000029785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029786$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29787fi
cristy8b350f62009-11-15 23:12:43 +000029788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029789$as_echo_n "checking if JPEG package is complete... " >&6; }
29790 if test $passed -gt 0; then
29791 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29793$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029794 have_jpeg='no (failed tests)'
29795 else
29796 JPEG_LIBS='-ljpeg'
29797 LIBS="$JPEG_LIBS $LIBS"
29798
cristy8b350f62009-11-15 23:12:43 +000029799$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029800
cristyad38abe2012-12-23 23:03:21 +000029801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29802$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029803 have_jpeg='yes'
29804 fi
29805 else
cristyad38abe2012-12-23 23:03:21 +000029806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29807$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029808 fi
29809fi
cristy73bd4a52010-10-05 11:24:23 +000029810 if test "$have_jpeg" = 'yes'; then
29811 JPEG_DELEGATE_TRUE=
29812 JPEG_DELEGATE_FALSE='#'
29813else
29814 JPEG_DELEGATE_TRUE='#'
29815 JPEG_DELEGATE_FALSE=
29816fi
29817
cristy3ed852e2009-09-05 21:47:34 +000029818
29819
29820
29821#
29822# Check for JPEG Version 2 delegate library.
29823#
29824
29825# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029826if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029827 withval=$with_jp2; with_jp2=$withval
29828else
29829 with_jp2='yes'
29830fi
29831
29832
29833if test "$with_jp2" != 'yes'; then
29834 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29835fi
29836
29837have_jp2='no'
29838JP2_LIBS=''
29839if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29841$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029843$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29845$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029846 failed=0
29847 passed=0
cristy8b350f62009-11-15 23:12:43 +000029848 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 +000029849if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029850 passed=`expr $passed + 1`
29851else
29852 failed=`expr $failed + 1`
29853fi
29854
29855
cristy8b350f62009-11-15 23:12:43 +000029856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029857$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029858if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029859 $as_echo_n "(cached) " >&6
29860else
29861 ac_check_lib_save_LIBS=$LIBS
29862LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029864/* end confdefs.h. */
29865
29866/* Override any GCC internal prototype to avoid an error.
29867 Use char because int might match the return type of a GCC
29868 builtin and then its argument prototype would still apply. */
29869#ifdef __cplusplus
29870extern "C"
29871#endif
29872char jas_stream_fopen ();
29873int
29874main ()
29875{
29876return jas_stream_fopen ();
29877 ;
29878 return 0;
29879}
29880_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029881if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029882 ac_cv_lib_jasper_jas_stream_fopen=yes
29883else
cristy8b350f62009-11-15 23:12:43 +000029884 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029885fi
cristy8b350f62009-11-15 23:12:43 +000029886rm -f core conftest.err conftest.$ac_objext \
29887 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029888LIBS=$ac_check_lib_save_LIBS
29889fi
cristy8b350f62009-11-15 23:12:43 +000029890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029891$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029892if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029893 passed=`expr $passed + 1`
29894else
29895 failed=`expr $failed + 1`
29896fi
29897
cristy8b350f62009-11-15 23:12:43 +000029898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029899$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29900 if test $passed -gt 0; then
29901 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29903$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029904 have_jp2='no (failed tests)'
29905 else
29906 JP2_LIBS='-ljasper'
29907 LIBS="$JP2_LIBS $LIBS"
29908
cristy8b350f62009-11-15 23:12:43 +000029909$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029910
cristyad38abe2012-12-23 23:03:21 +000029911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29912$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029913 have_jp2='yes'
29914 fi
29915 else
cristyad38abe2012-12-23 23:03:21 +000029916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29917$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029918 fi
29919fi
cristy73bd4a52010-10-05 11:24:23 +000029920 if test "$have_jp2" = 'yes'; then
29921 JP2_DELEGATE_TRUE=
29922 JP2_DELEGATE_FALSE='#'
29923else
29924 JP2_DELEGATE_TRUE='#'
29925 JP2_DELEGATE_FALSE=
29926fi
29927
cristy3ed852e2009-09-05 21:47:34 +000029928
29929
29930
29931#
29932# Check for LCMS delegate library.
29933#
cristy71203402010-06-18 13:12:03 +000029934# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029935
29936# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029937if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029938 withval=$with_lcms; with_lcms=$withval
29939else
29940 with_lcms='yes'
29941fi
29942
cristy71203402010-06-18 13:12:03 +000029943if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029944 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29945fi
29946
cristy71203402010-06-18 13:12:03 +000029947# Disable LCMS2.
29948
29949# Check whether --with-lcms2 was given.
29950if test "${with_lcms2+set}" = set; then :
29951 withval=$with_lcms2; with_lcms2=$withval
29952else
29953 with_lcms2='yes'
29954fi
29955
29956if test "$with_lcms2" != 'yes' ; then
29957 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29958fi
29959
29960have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029961LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029962if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29964$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29966$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29968$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029969 failed=0
29970 passed=0
29971 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029972
29973 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029974 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029975if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029976 have_lcms_header='yes'
29977fi
29978
29979
29980 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029981
29982$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29983
cristy71203402010-06-18 13:12:03 +000029984 passed=`expr $passed + 1`
29985 fi
29986
29987 # Check for <lcms2/lcms2.h)
29988 if test "$have_lcms_header" != 'yes'; then
29989 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 +000029990if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029991 have_lcms_header='yes'
29992fi
29993
29994
cristy71203402010-06-18 13:12:03 +000029995 if test "$have_lcms_header" = 'yes'; then
29996 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029997
cristy71203402010-06-18 13:12:03 +000029998$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029999
cristy71203402010-06-18 13:12:03 +000030000 fi
cristyd09bcf92010-03-25 03:04:45 +000030001 fi
cristy71203402010-06-18 13:12:03 +000030002
30003 # Failed to find lcms header?
30004 if test "$have_lcms_header" != 'yes'; then
30005 failed=`expr $failed + 1`
30006 fi
30007
30008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30009$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030010if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030011 $as_echo_n "(cached) " >&6
30012else
30013 ac_check_lib_save_LIBS=$LIBS
30014LIBS="-llcms2 $LIBS"
30015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30016/* end confdefs.h. */
30017
30018/* Override any GCC internal prototype to avoid an error.
30019 Use char because int might match the return type of a GCC
30020 builtin and then its argument prototype would still apply. */
30021#ifdef __cplusplus
30022extern "C"
30023#endif
cristy71203402010-06-18 13:12:03 +000030024char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030025int
30026main ()
30027{
cristy71203402010-06-18 13:12:03 +000030028return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030029 ;
30030 return 0;
30031}
30032_ACEOF
30033if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030034 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030035else
cristy71203402010-06-18 13:12:03 +000030036 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030037fi
30038rm -f core conftest.err conftest.$ac_objext \
30039 conftest$ac_exeext conftest.$ac_ext
30040LIBS=$ac_check_lib_save_LIBS
30041fi
cristy71203402010-06-18 13:12:03 +000030042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30043$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030044if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030045 passed=`expr $passed + 1`
30046else
30047 failed=`expr $failed + 1`
30048fi
30049
cristy71203402010-06-18 13:12:03 +000030050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30051$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030052 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030053 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30055$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030056 have_lcms2='no (failed tests)'
30057 else
30058 LCMS_LIBS='-llcms2'
30059 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30061$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030062 have_lcms2='yes'
30063 fi
cristyd09bcf92010-03-25 03:04:45 +000030064 else
cristyad38abe2012-12-23 23:03:21 +000030065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30066$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030067 fi
30068fi
30069
cristy71203402010-06-18 13:12:03 +000030070#
30071# Check for LCMS v1 (1.11 or later)
30072#
30073if test $have_lcms2 = 'yes'; then
30074 with_lcms='no'
30075fi
30076
30077have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030078if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30080$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30082$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30084$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030085 failed=0
30086 passed=0
30087 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030088
30089 # Check for <lcms.h>
30090 if test "$have_lcms_header" != 'yes'; then
30091 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030092if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030093 have_lcms_header='yes'
30094fi
30095
30096
cristy71203402010-06-18 13:12:03 +000030097 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030098 passed=`expr $passed + 1`
30099
cristy8b350f62009-11-15 23:12:43 +000030100$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030101
cristy71203402010-06-18 13:12:03 +000030102 fi
30103 fi
30104
30105 # Check for <lcms/lcms.h>
30106 if test "$have_lcms_header" != 'yes'; then
30107 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 +000030108if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030109 have_lcms_header='yes'
30110fi
30111
30112
cristy71203402010-06-18 13:12:03 +000030113 if test "$have_lcms_header" = 'yes'; then
30114 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030115
cristy8b350f62009-11-15 23:12:43 +000030116$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030117
cristy71203402010-06-18 13:12:03 +000030118 fi
cristy3ed852e2009-09-05 21:47:34 +000030119 fi
cristy71203402010-06-18 13:12:03 +000030120
30121 # Failed to find lcms header?
30122 if test "$have_lcms_header" != 'yes'; then
30123 failed=`expr $failed + 1`
30124 fi
30125
30126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30127$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030128if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030129 $as_echo_n "(cached) " >&6
30130else
30131 ac_check_lib_save_LIBS=$LIBS
30132LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030134/* end confdefs.h. */
30135
30136/* Override any GCC internal prototype to avoid an error.
30137 Use char because int might match the return type of a GCC
30138 builtin and then its argument prototype would still apply. */
30139#ifdef __cplusplus
30140extern "C"
30141#endif
cristy71203402010-06-18 13:12:03 +000030142char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030143int
30144main ()
30145{
cristy71203402010-06-18 13:12:03 +000030146return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030147 ;
30148 return 0;
30149}
30150_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030151if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030152 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030153else
cristy71203402010-06-18 13:12:03 +000030154 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030155fi
cristy8b350f62009-11-15 23:12:43 +000030156rm -f core conftest.err conftest.$ac_objext \
30157 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030158LIBS=$ac_check_lib_save_LIBS
30159fi
cristy71203402010-06-18 13:12:03 +000030160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30161$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030162if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030163 passed=`expr $passed + 1`
30164else
30165 failed=`expr $failed + 1`
30166fi
30167
cristy8b350f62009-11-15 23:12:43 +000030168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030169$as_echo_n "checking if LCMS package is complete... " >&6; }
30170 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030171 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30173$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030174 have_lcms='no (failed tests)'
30175 else
30176 LCMS_LIBS='-llcms'
30177 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30179$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030180 have_lcms='yes'
30181 fi
cristy3ed852e2009-09-05 21:47:34 +000030182 else
cristyad38abe2012-12-23 23:03:21 +000030183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30184$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030185 fi
30186fi
cristy71203402010-06-18 13:12:03 +000030187
cristy73bd4a52010-10-05 11:24:23 +000030188 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30189 LCMS_DELEGATE_TRUE=
30190 LCMS_DELEGATE_FALSE='#'
30191else
30192 LCMS_DELEGATE_TRUE='#'
30193 LCMS_DELEGATE_FALSE=
30194fi
30195
cristy71203402010-06-18 13:12:03 +000030196if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30197
30198$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30199
30200fi
30201
cristy3ed852e2009-09-05 21:47:34 +000030202
30203
30204
30205#
30206# Check for the LQR (Liquid Rescale) delegate library.
30207#
30208
30209# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030210if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030211 withval=$with_lqr; with_lqr=$withval
30212else
30213 with_lqr='yes'
30214fi
30215
30216
30217if test "$with_lqr" != 'yes'; then
30218 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30219fi
30220
30221have_lqr='no'
30222LQR_CFLAGS=""
30223LQR_LIBS=""
30224LQR_PKG=""
30225if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30227$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030228
30229pkg_failed=no
30230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30231$as_echo_n "checking for LQR... " >&6; }
30232
30233if test -n "$LQR_CFLAGS"; then
30234 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30235 elif test -n "$PKG_CONFIG"; then
30236 if test -n "$PKG_CONFIG" && \
30237 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30238 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30239 ac_status=$?
30240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30241 test $ac_status = 0; }; then
30242 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30243else
30244 pkg_failed=yes
30245fi
30246 else
30247 pkg_failed=untried
30248fi
30249if test -n "$LQR_LIBS"; then
30250 pkg_cv_LQR_LIBS="$LQR_LIBS"
30251 elif test -n "$PKG_CONFIG"; then
30252 if test -n "$PKG_CONFIG" && \
30253 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30254 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30255 ac_status=$?
30256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30257 test $ac_status = 0; }; then
30258 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30259else
30260 pkg_failed=yes
30261fi
30262 else
30263 pkg_failed=untried
30264fi
30265
30266
30267
30268if test $pkg_failed = yes; then
30269
30270if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30271 _pkg_short_errors_supported=yes
30272else
30273 _pkg_short_errors_supported=no
30274fi
30275 if test $_pkg_short_errors_supported = yes; then
30276 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30277 else
30278 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30279 fi
30280 # Put the nasty error message in config.log where it belongs
30281 echo "$LQR_PKG_ERRORS" >&5
30282
30283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30284$as_echo "no" >&6; }
30285 have_lqr=no
30286elif test $pkg_failed = untried; then
30287 have_lqr=no
30288else
30289 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30290 LQR_LIBS=$pkg_cv_LQR_LIBS
30291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30292$as_echo "yes" >&6; }
30293 have_lqr=yes
30294fi
cristyad38abe2012-12-23 23:03:21 +000030295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30296$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030297fi
30298
30299if test "$have_lqr" = 'yes'; then
30300
cristy8b350f62009-11-15 23:12:43 +000030301$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030302
30303 CFLAGS="$LQR_CFLAGS $CFLAGS"
30304fi
30305
cristy73bd4a52010-10-05 11:24:23 +000030306 if test "$have_lqr" = 'yes'; then
30307 LQR_DELEGATE_TRUE=
30308 LQR_DELEGATE_FALSE='#'
30309else
30310 LQR_DELEGATE_TRUE='#'
30311 LQR_DELEGATE_FALSE=
30312fi
30313
cristy3ed852e2009-09-05 21:47:34 +000030314
30315
30316
30317
cristy81beccd2011-10-03 18:17:24 +000030318# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030319
30320# Check whether --with-lzma was given.
30321if test "${with_lzma+set}" = set; then :
30322 withval=$with_lzma; with_lzma=$withval
30323else
30324 with_lzma='yes'
30325fi
30326
cristy81beccd2011-10-03 18:17:24 +000030327if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030328 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30329fi
30330
cristyb94e5002011-11-14 13:20:10 +000030331LZMA_PKG=""
30332if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30334$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030335
30336pkg_failed=no
30337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030338$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030339
30340if test -n "$LZMA_CFLAGS"; then
30341 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30342 elif test -n "$PKG_CONFIG"; then
30343 if test -n "$PKG_CONFIG" && \
30344 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30345 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30346 ac_status=$?
30347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30348 test $ac_status = 0; }; then
30349 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30350else
30351 pkg_failed=yes
30352fi
30353 else
30354 pkg_failed=untried
30355fi
30356if test -n "$LZMA_LIBS"; then
30357 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30358 elif test -n "$PKG_CONFIG"; then
30359 if test -n "$PKG_CONFIG" && \
30360 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30361 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30362 ac_status=$?
30363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30364 test $ac_status = 0; }; then
30365 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30366else
30367 pkg_failed=yes
30368fi
30369 else
30370 pkg_failed=untried
30371fi
30372
30373
30374
30375if test $pkg_failed = yes; then
30376
30377if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30378 _pkg_short_errors_supported=yes
30379else
30380 _pkg_short_errors_supported=no
30381fi
30382 if test $_pkg_short_errors_supported = yes; then
30383 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30384 else
30385 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30386 fi
30387 # Put the nasty error message in config.log where it belongs
30388 echo "$LZMA_PKG_ERRORS" >&5
30389
30390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30391$as_echo "no" >&6; }
30392 have_lzma=no
30393elif test $pkg_failed = untried; then
30394 have_lzma=no
30395else
30396 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30397 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30399$as_echo "yes" >&6; }
30400 have_lzma=yes
30401fi
cristyad38abe2012-12-23 23:03:21 +000030402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30403$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030404fi
30405
cristyb94e5002011-11-14 13:20:10 +000030406if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030407
30408$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30409
cristyc6722092012-10-14 00:19:31 +000030410 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030411 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030412 fi
cristyfbb0ef02010-12-19 02:32:11 +000030413fi
cristyb94e5002011-11-14 13:20:10 +000030414
cristyfbb0ef02010-12-19 02:32:11 +000030415 if test "$have_lzma" = 'yes'; then
30416 LZMA_DELEGATE_TRUE=
30417 LZMA_DELEGATE_FALSE='#'
30418else
30419 LZMA_DELEGATE_TRUE='#'
30420 LZMA_DELEGATE_FALSE=
30421fi
30422
30423
30424
30425
cristyb94e5002011-11-14 13:20:10 +000030426
cristy3ed852e2009-09-05 21:47:34 +000030427#
cristy854c9cf2013-08-10 21:03:06 +000030428# Check for MUPDF delegate library.
30429#
30430
30431# Check whether --with-mupdf was given.
30432if test "${with_mupdf+set}" = set; then :
30433 withval=$with_mupdf; with_mupdf=$withval
30434else
30435 with_mupdf='no'
30436fi
30437
30438
30439if test "$with_mupdf" != 'yes'; then
30440 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-mupdf=$with_mupdf "
30441fi
30442
30443have_mupdf='no'
30444MUPDF_LIBS=''
30445if test "$with_mupdf" != 'no'; then
30446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30447$as_echo "-------------------------------------------------------------" >&6; }
30448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MUPDF" >&5
30449$as_echo_n "checking for MUPDF... " >&6; }
30450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30451$as_echo "" >&6; }
30452 failed=0
30453 passed=0
30454 ac_fn_c_check_header_mongrel "$LINENO" "mupdf/fitz.h" "ac_cv_header_mupdf_fitz_h" "$ac_includes_default"
30455if test "x$ac_cv_header_mupdf_fitz_h" = xyes; then :
30456 passed=`expr $passed + 1`
30457else
30458 failed=`expr $failed + 1`
30459fi
30460
30461
30462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fz_new_context in -lmupdf" >&5
30463$as_echo_n "checking for fz_new_context in -lmupdf... " >&6; }
30464if ${ac_cv_lib_mupdf_fz_new_context+:} false; then :
30465 $as_echo_n "(cached) " >&6
30466else
30467 ac_check_lib_save_LIBS=$LIBS
30468LIBS="-lmupdf -lmupdf $FREETYPE_LIBS $LIBS"
30469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30470/* end confdefs.h. */
30471
30472/* Override any GCC internal prototype to avoid an error.
30473 Use char because int might match the return type of a GCC
30474 builtin and then its argument prototype would still apply. */
30475#ifdef __cplusplus
30476extern "C"
30477#endif
30478char fz_new_context ();
30479int
30480main ()
30481{
30482return fz_new_context ();
30483 ;
30484 return 0;
30485}
30486_ACEOF
30487if ac_fn_c_try_link "$LINENO"; then :
30488 ac_cv_lib_mupdf_fz_new_context=yes
30489else
30490 ac_cv_lib_mupdf_fz_new_context=no
30491fi
30492rm -f core conftest.err conftest.$ac_objext \
30493 conftest$ac_exeext conftest.$ac_ext
30494LIBS=$ac_check_lib_save_LIBS
30495fi
30496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mupdf_fz_new_context" >&5
30497$as_echo "$ac_cv_lib_mupdf_fz_new_context" >&6; }
30498if test "x$ac_cv_lib_mupdf_fz_new_context" = xyes; then :
30499 passed=`expr $passed + 1`
30500else
30501 failed=`expr $failed + 1`
30502fi
30503
30504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MUPDF package is complete" >&5
30505$as_echo_n "checking if MUPDF package is complete... " >&6; }
30506 if test $passed -gt 0; then
30507 if test $failed -gt 0; then
30508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30509$as_echo "no -- some components failed test" >&6; }
30510 have_mupdf='no (failed tests)'
30511 else
30512 MUPDF_LIBS='-lmupdf'
30513 LIBS="$MUPDF_LIBS $LIBS"
30514
30515$as_echo "#define MUPDF_DELEGATE 1" >>confdefs.h
30516
30517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30518$as_echo "yes" >&6; }
30519 have_mupdf='yes'
30520 fi
30521 else
30522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30523$as_echo "no" >&6; }
30524 fi
30525fi
30526 if test "$have_mupdf" = 'yes'; then
30527 MUPDF_DELEGATE_TRUE=
30528 MUPDF_DELEGATE_FALSE='#'
30529else
30530 MUPDF_DELEGATE_TRUE='#'
30531 MUPDF_DELEGATE_FALSE=
30532fi
30533
30534
30535
30536
30537#
cristy3ed852e2009-09-05 21:47:34 +000030538# Check for the OpenEXR delegate library.
30539#
30540
30541# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030542if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030543 withval=$with_openexr; with_openexr=$withval
30544else
30545 with_openexr='yes'
30546fi
30547
30548
30549if test "$with_openexr" != 'yes'; then
30550 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30551fi
30552
30553have_openexr='no'
30554OPENEXR_CFLAGS=""
30555OPENEXR_LIBS=""
30556OPENEXR_PKG=""
30557if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30559$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030560
30561pkg_failed=no
30562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30563$as_echo_n "checking for OPENEXR... " >&6; }
30564
30565if test -n "$OPENEXR_CFLAGS"; then
30566 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30567 elif test -n "$PKG_CONFIG"; then
30568 if test -n "$PKG_CONFIG" && \
30569 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30570 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30571 ac_status=$?
30572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30573 test $ac_status = 0; }; then
30574 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30575else
30576 pkg_failed=yes
30577fi
30578 else
30579 pkg_failed=untried
30580fi
30581if test -n "$OPENEXR_LIBS"; then
30582 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30583 elif test -n "$PKG_CONFIG"; then
30584 if test -n "$PKG_CONFIG" && \
30585 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30586 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30587 ac_status=$?
30588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30589 test $ac_status = 0; }; then
30590 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30591else
30592 pkg_failed=yes
30593fi
30594 else
30595 pkg_failed=untried
30596fi
30597
30598
30599
30600if test $pkg_failed = yes; then
30601
30602if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30603 _pkg_short_errors_supported=yes
30604else
30605 _pkg_short_errors_supported=no
30606fi
30607 if test $_pkg_short_errors_supported = yes; then
30608 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30609 else
30610 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30611 fi
30612 # Put the nasty error message in config.log where it belongs
30613 echo "$OPENEXR_PKG_ERRORS" >&5
30614
30615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30616$as_echo "no" >&6; }
30617 have_openexr=no
30618elif test $pkg_failed = untried; then
30619 have_openexr=no
30620else
30621 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30622 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30624$as_echo "yes" >&6; }
30625 have_openexr=yes
30626fi
cristyad38abe2012-12-23 23:03:21 +000030627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30628$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030629fi
30630
30631if test "$have_openexr" = 'yes'; then
30632
cristy8b350f62009-11-15 23:12:43 +000030633$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030634
cristyc6722092012-10-14 00:19:31 +000030635 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030636 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30637 fi
30638fi
30639
cristy73bd4a52010-10-05 11:24:23 +000030640 if test "$have_openexr" = 'yes'; then
30641 OPENEXR_DELEGATE_TRUE=
30642 OPENEXR_DELEGATE_FALSE='#'
30643else
30644 OPENEXR_DELEGATE_TRUE='#'
30645 OPENEXR_DELEGATE_FALSE=
30646fi
30647
cristy3ed852e2009-09-05 21:47:34 +000030648
30649
30650
30651
30652#
cristy3fe09452014-01-01 12:29:14 +000030653# Check for OPENJPEG delegate library.
30654#
30655
30656# Check whether --with-openjpeg was given.
30657if test "${with_openjpeg+set}" = set; then :
30658 withval=$with_openjpeg; with_openjpeg=$withval
30659else
30660 with_openjpeg='yes'
30661fi
30662
30663
30664if test "$with_openjpeg" != 'yes'; then
30665 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjpeg=$with_openjpeg "
30666fi
30667
30668have_openjpeg='no'
30669OPENJPEG_LIBS=''
30670if test "$with_openjpeg" != 'no'; then
30671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30672$as_echo "-------------------------------------------------------------" >&6; }
30673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENJPEG" >&5
30674$as_echo_n "checking for OPENJPEG... " >&6; }
30675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30676$as_echo "" >&6; }
30677 failed=0
30678 passed=0
30679 ac_fn_c_check_header_mongrel "$LINENO" "openjpeg-1.5/openjpeg.h" "ac_cv_header_openjpeg_1_5_openjpeg_h" "$ac_includes_default"
30680if test "x$ac_cv_header_openjpeg_1_5_openjpeg_h" = xyes; then :
30681 passed=`expr $passed + 1`
30682else
30683 failed=`expr $failed + 1`
30684fi
30685
30686
30687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opj_setup_decoder in -lopenjpeg" >&5
30688$as_echo_n "checking for opj_setup_decoder in -lopenjpeg... " >&6; }
30689if ${ac_cv_lib_openjpeg_opj_setup_decoder+:} false; then :
30690 $as_echo_n "(cached) " >&6
30691else
30692 ac_check_lib_save_LIBS=$LIBS
30693LIBS="-lopenjpeg -lopenjpeg $FREETYPE_LIBS $LIBS"
30694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30695/* end confdefs.h. */
30696
30697/* Override any GCC internal prototype to avoid an error.
30698 Use char because int might match the return type of a GCC
30699 builtin and then its argument prototype would still apply. */
30700#ifdef __cplusplus
30701extern "C"
30702#endif
30703char opj_setup_decoder ();
30704int
30705main ()
30706{
30707return opj_setup_decoder ();
30708 ;
30709 return 0;
30710}
30711_ACEOF
30712if ac_fn_c_try_link "$LINENO"; then :
30713 ac_cv_lib_openjpeg_opj_setup_decoder=yes
30714else
30715 ac_cv_lib_openjpeg_opj_setup_decoder=no
30716fi
30717rm -f core conftest.err conftest.$ac_objext \
30718 conftest$ac_exeext conftest.$ac_ext
30719LIBS=$ac_check_lib_save_LIBS
30720fi
30721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openjpeg_opj_setup_decoder" >&5
30722$as_echo "$ac_cv_lib_openjpeg_opj_setup_decoder" >&6; }
30723if test "x$ac_cv_lib_openjpeg_opj_setup_decoder" = xyes; then :
30724 passed=`expr $passed + 1`
30725else
30726 failed=`expr $failed + 1`
30727fi
30728
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OPENJPEG package is complete" >&5
30730$as_echo_n "checking if OPENJPEG package is complete... " >&6; }
30731 if test $passed -gt 0; then
30732 if test $failed -gt 0; then
30733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30734$as_echo "no -- some components failed test" >&6; }
30735 have_openjpeg='no (failed tests)'
30736 else
30737 OPENJPEG_LIBS='-lopenjpeg'
30738 LIBS="$OPENJPEG_LIBS $LIBS"
30739
30740$as_echo "#define OPENJPEG_DELEGATE 1" >>confdefs.h
30741
30742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30743$as_echo "yes" >&6; }
30744 have_openjpeg='yes'
30745 fi
30746 else
30747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30748$as_echo "no" >&6; }
30749 fi
30750fi
30751 if test "$have_openjpeg" = 'yes'; then
30752 OPENJPEG_DELEGATE_TRUE=
30753 OPENJPEG_DELEGATE_FALSE='#'
30754else
30755 OPENJPEG_DELEGATE_TRUE='#'
30756 OPENJPEG_DELEGATE_FALSE=
30757fi
30758
30759
30760
30761
30762
30763#
cristy41cbe8a2011-10-27 01:35:18 +000030764# Check for PANGO delegate library.
30765#
30766
30767# Check whether --with-pango was given.
30768if test "${with_pango+set}" = set; then :
30769 withval=$with_pango; with_pango=$withval
30770else
cristyfc3d0222012-02-07 15:05:57 +000030771 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030772fi
30773
30774
30775if test "$with_pango" != 'yes'; then
30776 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30777fi
30778
30779have_pango='no'
cristya054b762012-03-26 23:16:00 +000030780have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030781PANGO_CFLAGS=""
30782PANGO_LIBS=""
30783PANGO_PKG=""
30784if test "x$with_pango" = "xyes"; then
30785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30786$as_echo "-------------------------------------------------------------" >&6; }
30787
30788pkg_failed=no
30789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30790$as_echo_n "checking for PANGO... " >&6; }
30791
30792if test -n "$PANGO_CFLAGS"; then
30793 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30794 elif test -n "$PKG_CONFIG"; then
30795 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030796 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30797 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030798 ac_status=$?
30799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30800 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030801 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030802else
30803 pkg_failed=yes
30804fi
30805 else
30806 pkg_failed=untried
30807fi
30808if test -n "$PANGO_LIBS"; then
30809 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30810 elif test -n "$PKG_CONFIG"; then
30811 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030812 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30813 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030814 ac_status=$?
30815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30816 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030817 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030818else
30819 pkg_failed=yes
30820fi
30821 else
30822 pkg_failed=untried
30823fi
30824
30825
30826
30827if test $pkg_failed = yes; then
30828
30829if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30830 _pkg_short_errors_supported=yes
30831else
30832 _pkg_short_errors_supported=no
30833fi
30834 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030835 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030836 else
cristya054b762012-03-26 23:16:00 +000030837 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030838 fi
30839 # Put the nasty error message in config.log where it belongs
30840 echo "$PANGO_PKG_ERRORS" >&5
30841
30842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30843$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030844 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030845elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030846 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030847else
30848 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30849 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30851$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030852 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030853fi
30854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30855$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030856
30857pkg_failed=no
30858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30859$as_echo_n "checking for PANGO... " >&6; }
30860
30861if test -n "$PANGO_CFLAGS"; then
30862 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30863 elif test -n "$PKG_CONFIG"; then
30864 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030865 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30866 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030867 ac_status=$?
30868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30869 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030870 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030871else
30872 pkg_failed=yes
30873fi
30874 else
30875 pkg_failed=untried
30876fi
30877if test -n "$PANGO_LIBS"; then
30878 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30879 elif test -n "$PKG_CONFIG"; then
30880 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030881 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30882 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030883 ac_status=$?
30884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30885 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030886 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030887else
30888 pkg_failed=yes
30889fi
30890 else
30891 pkg_failed=untried
30892fi
30893
30894
30895
30896if test $pkg_failed = yes; then
30897
30898if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30899 _pkg_short_errors_supported=yes
30900else
30901 _pkg_short_errors_supported=no
30902fi
30903 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030904 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030905 else
cristy2542fc62011-12-06 17:50:25 +000030906 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030907 fi
30908 # Put the nasty error message in config.log where it belongs
30909 echo "$PANGO_PKG_ERRORS" >&5
30910
30911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30912$as_echo "no" >&6; }
30913 have_pango=no
30914elif test $pkg_failed = untried; then
30915 have_pango=no
30916else
30917 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30918 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30920$as_echo "yes" >&6; }
30921 have_pango=yes
30922fi
30923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30924$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030925fi
30926
30927if test "$have_pango" = 'yes'; then
30928
30929$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30930
cristyc6722092012-10-14 00:19:31 +000030931 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030932 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30933 fi
30934fi
30935
cristya054b762012-03-26 23:16:00 +000030936if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030937
cristya054b762012-03-26 23:16:00 +000030938$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030939
cristyc6722092012-10-14 00:19:31 +000030940 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030941 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030942 fi
30943fi
30944
30945 if test "$have_pango" = 'yes'; then
30946 PANGO_DELEGATE_TRUE=
30947 PANGO_DELEGATE_FALSE='#'
30948else
30949 PANGO_DELEGATE_TRUE='#'
30950 PANGO_DELEGATE_FALSE=
30951fi
30952
cristya054b762012-03-26 23:16:00 +000030953 if test "$have_pangocairo" = 'yes'; then
30954 PANGOCAIRO_DELEGATE_TRUE=
30955 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030956else
cristya054b762012-03-26 23:16:00 +000030957 PANGOCAIRO_DELEGATE_TRUE='#'
30958 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030959fi
30960
30961
30962
30963
30964
30965#
cristy3ed852e2009-09-05 21:47:34 +000030966# Check for PNG delegate library.
30967#
30968
30969# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030970if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030971 withval=$with_png; with_png=$withval
30972else
30973 with_png='yes'
30974fi
30975
30976
30977if test "$with_png" != 'yes'; then
30978 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30979fi
30980
cristy81beccd2011-10-03 18:17:24 +000030981have_png='no'
30982PNG_LIBS=''
30983
30984if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30986$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30988$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30990$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030991 failed=0
30992 passed=0
30993 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30994if test "x$ac_cv_header_png_h" = xyes; then :
30995 passed=`expr $passed + 1`
30996else
30997 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030998fi
30999
cristy81beccd2011-10-03 18:17:24 +000031000
31001
31002 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000031003 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031004 if test "$have_png" = 'no' ; then
31005 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031006 pnglib='png'
31007 else
31008 pnglib="png1${var}"
31009 fi
31010
31011# Test for compatible LIBPNG library
31012 failed=0
31013 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031014 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031015 if test "${pnglib}" != 'png' ; then
31016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31017$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31019/* end confdefs.h. */
31020#include <stdio.h>
31021#include <stdlib.h>
31022#include <png.h>
31023
31024int
31025main ()
31026{
31027
31028#if PNG_LIBPNG_VER_MINOR != ${var}
31029#error LIBPNG library must be version 1${var}!
31030Kaboom, Kaboom
31031#endif
31032return 0;
31033
31034 ;
31035 return 0;
31036}
31037_ACEOF
31038if ac_fn_c_try_compile "$LINENO"; then :
31039 ac_cv_libpng_ok='yes'
31040else
31041 ac_cv_libpng_ok='no'
31042fi
31043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31044 if test "$ac_cv_libpng_ok" = 'yes' ; then
31045 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31047$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031048 else
31049 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000031050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31051$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031052 fi
31053 else
31054 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31056$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031057 fi
31058 fi
31059
31060 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000031061 if test "1${var}" = '17' ; then
31062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
31063$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
31064if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
31065 $as_echo_n "(cached) " >&6
31066else
31067 ac_check_lib_save_LIBS=$LIBS
31068LIBS="-lpng17 $LIBS"
31069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31070/* end confdefs.h. */
31071
31072/* Override any GCC internal prototype to avoid an error.
31073 Use char because int might match the return type of a GCC
31074 builtin and then its argument prototype would still apply. */
31075#ifdef __cplusplus
31076extern "C"
31077#endif
31078char png_get_io_ptr ();
31079int
31080main ()
31081{
31082return png_get_io_ptr ();
31083 ;
31084 return 0;
31085}
31086_ACEOF
31087if ac_fn_c_try_link "$LINENO"; then :
31088 ac_cv_lib_png17_png_get_io_ptr=yes
31089else
31090 ac_cv_lib_png17_png_get_io_ptr=no
31091fi
31092rm -f core conftest.err conftest.$ac_objext \
31093 conftest$ac_exeext conftest.$ac_ext
31094LIBS=$ac_check_lib_save_LIBS
31095fi
31096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
31097$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
31098if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
31099 passed=`expr $passed + 1`
31100else
31101 failed=`expr $failed + 1`
31102fi
31103
31104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
31105$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
31106if ${ac_cv_lib_png17_png_longjmp+:} false; then :
31107 $as_echo_n "(cached) " >&6
31108else
31109 ac_check_lib_save_LIBS=$LIBS
31110LIBS="-lpng17 $LIBS"
31111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31112/* end confdefs.h. */
31113
31114/* Override any GCC internal prototype to avoid an error.
31115 Use char because int might match the return type of a GCC
31116 builtin and then its argument prototype would still apply. */
31117#ifdef __cplusplus
31118extern "C"
31119#endif
31120char png_longjmp ();
31121int
31122main ()
31123{
31124return png_longjmp ();
31125 ;
31126 return 0;
31127}
31128_ACEOF
31129if ac_fn_c_try_link "$LINENO"; then :
31130 ac_cv_lib_png17_png_longjmp=yes
31131else
31132 ac_cv_lib_png17_png_longjmp=no
31133fi
31134rm -f core conftest.err conftest.$ac_objext \
31135 conftest$ac_exeext conftest.$ac_ext
31136LIBS=$ac_check_lib_save_LIBS
31137fi
31138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31139$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31140if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31141 passed=`expr $passed + 1`
31142else
31143 failed=`expr $failed + 1`
31144fi
31145
31146 fi
31147 if test "1${var}" = '16' ; then
31148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31149$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31150if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31151 $as_echo_n "(cached) " >&6
31152else
31153 ac_check_lib_save_LIBS=$LIBS
31154LIBS="-lpng16 $LIBS"
31155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31156/* end confdefs.h. */
31157
31158/* Override any GCC internal prototype to avoid an error.
31159 Use char because int might match the return type of a GCC
31160 builtin and then its argument prototype would still apply. */
31161#ifdef __cplusplus
31162extern "C"
31163#endif
31164char png_get_io_ptr ();
31165int
31166main ()
31167{
31168return png_get_io_ptr ();
31169 ;
31170 return 0;
31171}
31172_ACEOF
31173if ac_fn_c_try_link "$LINENO"; then :
31174 ac_cv_lib_png16_png_get_io_ptr=yes
31175else
31176 ac_cv_lib_png16_png_get_io_ptr=no
31177fi
31178rm -f core conftest.err conftest.$ac_objext \
31179 conftest$ac_exeext conftest.$ac_ext
31180LIBS=$ac_check_lib_save_LIBS
31181fi
31182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31183$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31184if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31185 passed=`expr $passed + 1`
31186else
31187 failed=`expr $failed + 1`
31188fi
31189
31190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31191$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31192if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31193 $as_echo_n "(cached) " >&6
31194else
31195 ac_check_lib_save_LIBS=$LIBS
31196LIBS="-lpng16 $LIBS"
31197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31198/* end confdefs.h. */
31199
31200/* Override any GCC internal prototype to avoid an error.
31201 Use char because int might match the return type of a GCC
31202 builtin and then its argument prototype would still apply. */
31203#ifdef __cplusplus
31204extern "C"
31205#endif
31206char png_longjmp ();
31207int
31208main ()
31209{
31210return png_longjmp ();
31211 ;
31212 return 0;
31213}
31214_ACEOF
31215if ac_fn_c_try_link "$LINENO"; then :
31216 ac_cv_lib_png16_png_longjmp=yes
31217else
31218 ac_cv_lib_png16_png_longjmp=no
31219fi
31220rm -f core conftest.err conftest.$ac_objext \
31221 conftest$ac_exeext conftest.$ac_ext
31222LIBS=$ac_check_lib_save_LIBS
31223fi
31224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31225$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31226if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31227 passed=`expr $passed + 1`
31228else
31229 failed=`expr $failed + 1`
31230fi
31231
31232 fi
cristy81beccd2011-10-03 18:17:24 +000031233 if test "1${var}" = '15' ; then
31234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31235$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31236if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31237 $as_echo_n "(cached) " >&6
31238else
31239 ac_check_lib_save_LIBS=$LIBS
31240LIBS="-lpng15 $LIBS"
31241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31242/* end confdefs.h. */
31243
31244/* Override any GCC internal prototype to avoid an error.
31245 Use char because int might match the return type of a GCC
31246 builtin and then its argument prototype would still apply. */
31247#ifdef __cplusplus
31248extern "C"
31249#endif
31250char png_get_io_ptr ();
31251int
31252main ()
31253{
31254return png_get_io_ptr ();
31255 ;
31256 return 0;
31257}
31258_ACEOF
31259if ac_fn_c_try_link "$LINENO"; then :
31260 ac_cv_lib_png15_png_get_io_ptr=yes
31261else
31262 ac_cv_lib_png15_png_get_io_ptr=no
31263fi
31264rm -f core conftest.err conftest.$ac_objext \
31265 conftest$ac_exeext conftest.$ac_ext
31266LIBS=$ac_check_lib_save_LIBS
31267fi
31268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31269$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31270if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31271 passed=`expr $passed + 1`
31272else
31273 failed=`expr $failed + 1`
31274fi
31275
31276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31277$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31278if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31279 $as_echo_n "(cached) " >&6
31280else
31281 ac_check_lib_save_LIBS=$LIBS
31282LIBS="-lpng15 $LIBS"
31283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31284/* end confdefs.h. */
31285
31286/* Override any GCC internal prototype to avoid an error.
31287 Use char because int might match the return type of a GCC
31288 builtin and then its argument prototype would still apply. */
31289#ifdef __cplusplus
31290extern "C"
31291#endif
31292char png_longjmp ();
31293int
31294main ()
31295{
31296return png_longjmp ();
31297 ;
31298 return 0;
31299}
31300_ACEOF
31301if ac_fn_c_try_link "$LINENO"; then :
31302 ac_cv_lib_png15_png_longjmp=yes
31303else
31304 ac_cv_lib_png15_png_longjmp=no
31305fi
31306rm -f core conftest.err conftest.$ac_objext \
31307 conftest$ac_exeext conftest.$ac_ext
31308LIBS=$ac_check_lib_save_LIBS
31309fi
31310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31311$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31312if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31313 passed=`expr $passed + 1`
31314else
31315 failed=`expr $failed + 1`
31316fi
31317
31318 fi
31319 if test "1${var}" = '14' ; then
31320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31321$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31322if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31323 $as_echo_n "(cached) " >&6
31324else
31325 ac_check_lib_save_LIBS=$LIBS
31326LIBS="-lpng14 $LIBS"
31327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31328/* end confdefs.h. */
31329
31330/* Override any GCC internal prototype to avoid an error.
31331 Use char because int might match the return type of a GCC
31332 builtin and then its argument prototype would still apply. */
31333#ifdef __cplusplus
31334extern "C"
31335#endif
31336char png_get_io_ptr ();
31337int
31338main ()
31339{
31340return png_get_io_ptr ();
31341 ;
31342 return 0;
31343}
31344_ACEOF
31345if ac_fn_c_try_link "$LINENO"; then :
31346 ac_cv_lib_png14_png_get_io_ptr=yes
31347else
31348 ac_cv_lib_png14_png_get_io_ptr=no
31349fi
31350rm -f core conftest.err conftest.$ac_objext \
31351 conftest$ac_exeext conftest.$ac_ext
31352LIBS=$ac_check_lib_save_LIBS
31353fi
31354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31355$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31356if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31357 passed=`expr $passed + 1`
31358else
31359 failed=`expr $failed + 1`
31360fi
31361
31362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31363$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31364if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31365 $as_echo_n "(cached) " >&6
31366else
31367 ac_check_lib_save_LIBS=$LIBS
31368LIBS="-lpng14 $LIBS"
31369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31370/* end confdefs.h. */
31371
31372/* Override any GCC internal prototype to avoid an error.
31373 Use char because int might match the return type of a GCC
31374 builtin and then its argument prototype would still apply. */
31375#ifdef __cplusplus
31376extern "C"
31377#endif
31378char png_get_io_state ();
31379int
31380main ()
31381{
31382return png_get_io_state ();
31383 ;
31384 return 0;
31385}
31386_ACEOF
31387if ac_fn_c_try_link "$LINENO"; then :
31388 ac_cv_lib_png14_png_get_io_state=yes
31389else
31390 ac_cv_lib_png14_png_get_io_state=no
31391fi
31392rm -f core conftest.err conftest.$ac_objext \
31393 conftest$ac_exeext conftest.$ac_ext
31394LIBS=$ac_check_lib_save_LIBS
31395fi
31396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31397$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31398if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31399 passed=`expr $passed + 1`
31400else
31401 failed=`expr $failed + 1`
31402fi
31403
31404 fi
31405 if test "1${var}" = '12' ; then
31406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31407$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31408if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31409 $as_echo_n "(cached) " >&6
31410else
31411 ac_check_lib_save_LIBS=$LIBS
31412LIBS="-lpng12 $LIBS"
31413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31414/* end confdefs.h. */
31415
31416/* Override any GCC internal prototype to avoid an error.
31417 Use char because int might match the return type of a GCC
31418 builtin and then its argument prototype would still apply. */
31419#ifdef __cplusplus
31420extern "C"
31421#endif
31422char png_get_io_ptr ();
31423int
31424main ()
31425{
31426return png_get_io_ptr ();
31427 ;
31428 return 0;
31429}
31430_ACEOF
31431if ac_fn_c_try_link "$LINENO"; then :
31432 ac_cv_lib_png12_png_get_io_ptr=yes
31433else
31434 ac_cv_lib_png12_png_get_io_ptr=no
31435fi
31436rm -f core conftest.err conftest.$ac_objext \
31437 conftest$ac_exeext conftest.$ac_ext
31438LIBS=$ac_check_lib_save_LIBS
31439fi
31440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31441$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31442if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31443 passed=`expr $passed + 1`
31444else
31445 failed=`expr $failed + 1`
31446fi
31447
31448 fi
31449 if test "1${var}" = '1' ; then
31450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31451$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31452if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31453 $as_echo_n "(cached) " >&6
31454else
31455 ac_check_lib_save_LIBS=$LIBS
31456LIBS="-lpng $LIBS"
31457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31458/* end confdefs.h. */
31459
31460/* Override any GCC internal prototype to avoid an error.
31461 Use char because int might match the return type of a GCC
31462 builtin and then its argument prototype would still apply. */
31463#ifdef __cplusplus
31464extern "C"
31465#endif
31466char png_get_io_ptr ();
31467int
31468main ()
31469{
31470return png_get_io_ptr ();
31471 ;
31472 return 0;
31473}
31474_ACEOF
31475if ac_fn_c_try_link "$LINENO"; then :
31476 ac_cv_lib_png_png_get_io_ptr=yes
31477else
31478 ac_cv_lib_png_png_get_io_ptr=no
31479fi
31480rm -f core conftest.err conftest.$ac_objext \
31481 conftest$ac_exeext conftest.$ac_ext
31482LIBS=$ac_check_lib_save_LIBS
31483fi
31484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31485$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31486if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31487 passed=`expr $passed + 1`
31488else
31489 failed=`expr $failed + 1`
31490fi
31491
31492 fi
31493 if test $passed -gt 0 -a $failed -le 0 ; then
31494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31495$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31496 if test $passed -gt 0 ; then
31497 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31499$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031500 have_png='no (failed tests)'
31501 else
31502 PNG_LIBS="-l${pnglib}"
31503 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031504
cristy8b350f62009-11-15 23:12:43 +000031505$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031506
cristyad38abe2012-12-23 23:03:21 +000031507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31508$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031509 have_png='yes'
31510 fi
31511 fi
31512 fi
31513 fi
31514 fi
31515 done
31516 fi
cristy3ed852e2009-09-05 21:47:34 +000031517fi
cristy64877302011-08-23 19:10:31 +000031518
cristy73bd4a52010-10-05 11:24:23 +000031519 if test "$have_png" = 'yes'; then
31520 PNG_DELEGATE_TRUE=
31521 PNG_DELEGATE_FALSE='#'
31522else
31523 PNG_DELEGATE_TRUE='#'
31524 PNG_DELEGATE_FALSE=
31525fi
31526
cristy3ed852e2009-09-05 21:47:34 +000031527
cristy50d3f5c2011-09-10 20:09:06 +000031528
cristy3ed852e2009-09-05 21:47:34 +000031529
31530
31531#
31532# Check for RSVG delegate library.
31533#
31534
31535# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031536if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031537 withval=$with_rsvg; with_rsvg=$withval
31538else
cristy1164d5f2012-08-15 00:58:25 +000031539 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031540fi
31541
31542
31543if test "$with_rsvg" != 'yes'; then
31544 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31545fi
31546
31547have_rsvg='no'
31548have_cairo='no'
31549RSVG_CFLAGS=""
31550RSVG_LIBS=""
31551RSVG_PKG=""
31552if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31554$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031555
31556pkg_failed=no
31557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31558$as_echo_n "checking for RSVG... " >&6; }
31559
31560if test -n "$RSVG_CFLAGS"; then
31561 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31562 elif test -n "$PKG_CONFIG"; then
31563 if test -n "$PKG_CONFIG" && \
31564 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31565 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31566 ac_status=$?
31567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31568 test $ac_status = 0; }; then
31569 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31570else
31571 pkg_failed=yes
31572fi
31573 else
31574 pkg_failed=untried
31575fi
31576if test -n "$RSVG_LIBS"; then
31577 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31578 elif test -n "$PKG_CONFIG"; then
31579 if test -n "$PKG_CONFIG" && \
31580 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31581 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31582 ac_status=$?
31583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31584 test $ac_status = 0; }; then
31585 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31586else
31587 pkg_failed=yes
31588fi
31589 else
31590 pkg_failed=untried
31591fi
31592
31593
31594
31595if test $pkg_failed = yes; then
31596
31597if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31598 _pkg_short_errors_supported=yes
31599else
31600 _pkg_short_errors_supported=no
31601fi
31602 if test $_pkg_short_errors_supported = yes; then
31603 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31604 else
31605 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31606 fi
31607 # Put the nasty error message in config.log where it belongs
31608 echo "$RSVG_PKG_ERRORS" >&5
31609
31610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31611$as_echo "no" >&6; }
31612 have_rsvg=no
31613elif test $pkg_failed = untried; then
31614 have_rsvg=no
31615else
31616 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31617 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31619$as_echo "yes" >&6; }
31620 have_rsvg=yes
31621fi
cristyad38abe2012-12-23 23:03:21 +000031622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31623$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031624
31625pkg_failed=no
31626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31627$as_echo_n "checking for CAIRO_SVG... " >&6; }
31628
31629if test -n "$CAIRO_SVG_CFLAGS"; then
31630 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31631 elif test -n "$PKG_CONFIG"; then
31632 if test -n "$PKG_CONFIG" && \
31633 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31634 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31635 ac_status=$?
31636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31637 test $ac_status = 0; }; then
31638 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31639else
31640 pkg_failed=yes
31641fi
31642 else
31643 pkg_failed=untried
31644fi
31645if test -n "$CAIRO_SVG_LIBS"; then
31646 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31647 elif test -n "$PKG_CONFIG"; then
31648 if test -n "$PKG_CONFIG" && \
31649 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31650 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31651 ac_status=$?
31652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31653 test $ac_status = 0; }; then
31654 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31655else
31656 pkg_failed=yes
31657fi
31658 else
31659 pkg_failed=untried
31660fi
31661
31662
31663
31664if test $pkg_failed = yes; then
31665
31666if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31667 _pkg_short_errors_supported=yes
31668else
31669 _pkg_short_errors_supported=no
31670fi
31671 if test $_pkg_short_errors_supported = yes; then
31672 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31673 else
31674 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31675 fi
31676 # Put the nasty error message in config.log where it belongs
31677 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31678
31679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31680$as_echo "no" >&6; }
31681 have_cairo=no
31682elif test $pkg_failed = untried; then
31683 have_cairo=no
31684else
31685 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31686 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31688$as_echo "yes" >&6; }
31689 have_cairo=yes
31690fi
cristyad38abe2012-12-23 23:03:21 +000031691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31692$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031693fi
31694
31695if test "$have_rsvg" = 'yes'; then
31696
cristy8b350f62009-11-15 23:12:43 +000031697$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031698
cristyc6722092012-10-14 00:19:31 +000031699 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031700 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31701 fi
31702fi
31703
31704if test "$have_cairo" = 'yes'; then
31705
cristy8b350f62009-11-15 23:12:43 +000031706$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031707
cristyc6722092012-10-14 00:19:31 +000031708 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031709 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31710 fi
31711fi
31712
cristy73bd4a52010-10-05 11:24:23 +000031713 if test "$have_rsvg" = 'yes'; then
31714 RSVG_DELEGATE_TRUE=
31715 RSVG_DELEGATE_FALSE='#'
31716else
31717 RSVG_DELEGATE_TRUE='#'
31718 RSVG_DELEGATE_FALSE=
31719fi
31720
31721 if test "$have_cairo" = 'yes'; then
31722 CAIRO_DELEGATE_TRUE=
31723 CAIRO_DELEGATE_FALSE='#'
31724else
31725 CAIRO_DELEGATE_TRUE='#'
31726 CAIRO_DELEGATE_FALSE=
31727fi
31728
cristy3ed852e2009-09-05 21:47:34 +000031729
31730
31731
31732
31733#
31734# Check for TIFF delegate library.
31735#
31736
31737# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031738if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031739 withval=$with_tiff; with_tiff=$withval
31740else
31741 with_tiff='yes'
31742fi
31743
31744
31745if test "$with_tiff" != 'yes'; then
31746 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31747fi
31748
31749have_tiff='no'
31750TIFF_LIBS=''
31751if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31753$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031755$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31757$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031758 failed=0
31759 passed=0
cristy8b350f62009-11-15 23:12:43 +000031760 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031761if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031762 passed=`expr $passed + 1`
31763else
31764 failed=`expr $failed + 1`
31765fi
31766
31767
cristy8b350f62009-11-15 23:12:43 +000031768 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031769if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031770 passed=`expr $passed + 1`
31771else
31772 failed=`expr $failed + 1`
31773fi
31774
31775
cristy8b350f62009-11-15 23:12:43 +000031776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031777$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031778if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031779 $as_echo_n "(cached) " >&6
31780else
31781 ac_check_lib_save_LIBS=$LIBS
31782LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031784/* end confdefs.h. */
31785
31786/* Override any GCC internal prototype to avoid an error.
31787 Use char because int might match the return type of a GCC
31788 builtin and then its argument prototype would still apply. */
31789#ifdef __cplusplus
31790extern "C"
31791#endif
31792char TIFFOpen ();
31793int
31794main ()
31795{
31796return TIFFOpen ();
31797 ;
31798 return 0;
31799}
31800_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031801if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031802 ac_cv_lib_tiff_TIFFOpen=yes
31803else
cristy8b350f62009-11-15 23:12:43 +000031804 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031805fi
cristy8b350f62009-11-15 23:12:43 +000031806rm -f core conftest.err conftest.$ac_objext \
31807 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031808LIBS=$ac_check_lib_save_LIBS
31809fi
cristy8b350f62009-11-15 23:12:43 +000031810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031811$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031812if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031813 passed=`expr $passed + 1`
31814else
31815 failed=`expr $failed + 1`
31816fi
31817
cristy8b350f62009-11-15 23:12:43 +000031818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031819$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031820if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031821 $as_echo_n "(cached) " >&6
31822else
31823 ac_check_lib_save_LIBS=$LIBS
31824LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031826/* end confdefs.h. */
31827
31828/* Override any GCC internal prototype to avoid an error.
31829 Use char because int might match the return type of a GCC
31830 builtin and then its argument prototype would still apply. */
31831#ifdef __cplusplus
31832extern "C"
31833#endif
31834char TIFFClientOpen ();
31835int
31836main ()
31837{
31838return TIFFClientOpen ();
31839 ;
31840 return 0;
31841}
31842_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031843if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031844 ac_cv_lib_tiff_TIFFClientOpen=yes
31845else
cristy8b350f62009-11-15 23:12:43 +000031846 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031847fi
cristy8b350f62009-11-15 23:12:43 +000031848rm -f core conftest.err conftest.$ac_objext \
31849 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031850LIBS=$ac_check_lib_save_LIBS
31851fi
cristy8b350f62009-11-15 23:12:43 +000031852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031853$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031854if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031855 passed=`expr $passed + 1`
31856else
31857 failed=`expr $failed + 1`
31858fi
31859
cristy8b350f62009-11-15 23:12:43 +000031860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031861$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031862if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031863 $as_echo_n "(cached) " >&6
31864else
31865 ac_check_lib_save_LIBS=$LIBS
31866LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031868/* end confdefs.h. */
31869
31870/* Override any GCC internal prototype to avoid an error.
31871 Use char because int might match the return type of a GCC
31872 builtin and then its argument prototype would still apply. */
31873#ifdef __cplusplus
31874extern "C"
31875#endif
31876char TIFFIsByteSwapped ();
31877int
31878main ()
31879{
31880return TIFFIsByteSwapped ();
31881 ;
31882 return 0;
31883}
31884_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031885if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031886 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31887else
cristy8b350f62009-11-15 23:12:43 +000031888 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031889fi
cristy8b350f62009-11-15 23:12:43 +000031890rm -f core conftest.err conftest.$ac_objext \
31891 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031892LIBS=$ac_check_lib_save_LIBS
31893fi
cristy8b350f62009-11-15 23:12:43 +000031894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031895$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031896if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031897 passed=`expr $passed + 1`
31898else
31899 failed=`expr $failed + 1`
31900fi
31901
cristy8b350f62009-11-15 23:12:43 +000031902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031903$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031904if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031905 $as_echo_n "(cached) " >&6
31906else
31907 ac_check_lib_save_LIBS=$LIBS
31908LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031910/* end confdefs.h. */
31911
31912/* Override any GCC internal prototype to avoid an error.
31913 Use char because int might match the return type of a GCC
31914 builtin and then its argument prototype would still apply. */
31915#ifdef __cplusplus
31916extern "C"
31917#endif
31918char TIFFReadRGBATile ();
31919int
31920main ()
31921{
31922return TIFFReadRGBATile ();
31923 ;
31924 return 0;
31925}
31926_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031927if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031928 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31929else
cristy8b350f62009-11-15 23:12:43 +000031930 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031931fi
cristy8b350f62009-11-15 23:12:43 +000031932rm -f core conftest.err conftest.$ac_objext \
31933 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031934LIBS=$ac_check_lib_save_LIBS
31935fi
cristy8b350f62009-11-15 23:12:43 +000031936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031937$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031938if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031939 passed=`expr $passed + 1`
31940else
31941 failed=`expr $failed + 1`
31942fi
31943
cristy8b350f62009-11-15 23:12:43 +000031944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031945$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031946if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031947 $as_echo_n "(cached) " >&6
31948else
31949 ac_check_lib_save_LIBS=$LIBS
31950LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031952/* end confdefs.h. */
31953
31954/* Override any GCC internal prototype to avoid an error.
31955 Use char because int might match the return type of a GCC
31956 builtin and then its argument prototype would still apply. */
31957#ifdef __cplusplus
31958extern "C"
31959#endif
31960char TIFFReadRGBAStrip ();
31961int
31962main ()
31963{
31964return TIFFReadRGBAStrip ();
31965 ;
31966 return 0;
31967}
31968_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031969if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031970 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31971else
cristy8b350f62009-11-15 23:12:43 +000031972 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031973fi
cristy8b350f62009-11-15 23:12:43 +000031974rm -f core conftest.err conftest.$ac_objext \
31975 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031976LIBS=$ac_check_lib_save_LIBS
31977fi
cristy8b350f62009-11-15 23:12:43 +000031978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031979$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031980if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031981 passed=`expr $passed + 1`
31982else
31983 failed=`expr $failed + 1`
31984fi
31985
cristy8b350f62009-11-15 23:12:43 +000031986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031987$as_echo_n "checking if TIFF package is complete... " >&6; }
31988 if test $passed -gt 0; then
31989 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31991$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031992 have_tiff='no (failed tests)'
31993 else
31994 TIFF_LIBS='-ltiff'
31995 LIBS="$TIFF_LIBS $LIBS"
31996
cristy8b350f62009-11-15 23:12:43 +000031997$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031998
cristyad38abe2012-12-23 23:03:21 +000031999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32000$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032001 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032002 for ac_header in tiffconf.h
32003do :
32004 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032005if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032006 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032007#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032008_ACEOF
32009
32010fi
32011
32012done
32013
cristy8b350f62009-11-15 23:12:43 +000032014 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032015 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32016 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32017 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032018do :
32019 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32020ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032021if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032022 cat >>confdefs.h <<_ACEOF
32023#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32024_ACEOF
32025
32026fi
32027done
32028
32029 fi
32030 else
cristyad38abe2012-12-23 23:03:21 +000032031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32032$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032033 fi
32034fi
cristy73bd4a52010-10-05 11:24:23 +000032035 if test "$have_tiff" = 'yes'; then
32036 TIFF_DELEGATE_TRUE=
32037 TIFF_DELEGATE_FALSE='#'
32038else
32039 TIFF_DELEGATE_TRUE='#'
32040 TIFF_DELEGATE_FALSE=
32041fi
32042
cristy3ed852e2009-09-05 21:47:34 +000032043
32044
32045
32046#
cristyb1860752011-03-14 00:27:46 +000032047# Check for WEBP delegate library.
32048#
32049
32050# Check whether --with-webp was given.
32051if test "${with_webp+set}" = set; then :
32052 withval=$with_webp; with_webp=$withval
32053else
32054 with_webp='yes'
32055fi
32056
32057
32058if test "$with_webp" != 'yes'; then
32059 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32060fi
32061
32062have_webp='no'
32063WEBP_LIBS=''
32064if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32066$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000032067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32068$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32070$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000032071 failed=0
32072 passed=0
32073 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32074if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32075 passed=`expr $passed + 1`
32076else
32077 failed=`expr $failed + 1`
32078fi
32079
32080
cristy6d670312013-03-22 23:23:01 +000032081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
32082$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
32083if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000032084 $as_echo_n "(cached) " >&6
32085else
32086 ac_check_lib_save_LIBS=$LIBS
32087LIBS="-lwebp $LIBS"
32088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32089/* end confdefs.h. */
32090
32091/* Override any GCC internal prototype to avoid an error.
32092 Use char because int might match the return type of a GCC
32093 builtin and then its argument prototype would still apply. */
32094#ifdef __cplusplus
32095extern "C"
32096#endif
cristy6d670312013-03-22 23:23:01 +000032097char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032098int
32099main ()
32100{
cristy6d670312013-03-22 23:23:01 +000032101return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032102 ;
32103 return 0;
32104}
32105_ACEOF
32106if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000032107 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000032108else
cristy6d670312013-03-22 23:23:01 +000032109 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000032110fi
32111rm -f core conftest.err conftest.$ac_objext \
32112 conftest$ac_exeext conftest.$ac_ext
32113LIBS=$ac_check_lib_save_LIBS
32114fi
cristy6d670312013-03-22 23:23:01 +000032115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32116$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32117if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032118 passed=`expr $passed + 1`
32119else
32120 failed=`expr $failed + 1`
32121fi
32122
32123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32124$as_echo_n "checking if WEBP package is complete... " >&6; }
32125 if test $passed -gt 0; then
32126 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32128$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032129 have_webp='no (failed tests)'
32130 else
32131 WEBP_LIBS='-lwebp'
32132 LIBS="$WEBP_LIBS $LIBS"
32133
32134$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32135
cristyad38abe2012-12-23 23:03:21 +000032136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32137$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032138 have_webp='yes'
32139 fi
32140 else
cristyad38abe2012-12-23 23:03:21 +000032141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32142$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032143 fi
32144fi
32145 if test "$have_webp" = 'yes'; then
32146 WEBP_DELEGATE_TRUE=
32147 WEBP_DELEGATE_FALSE='#'
32148else
32149 WEBP_DELEGATE_TRUE='#'
32150 WEBP_DELEGATE_FALSE=
32151fi
32152
32153
32154
32155
32156#
cristy3ed852e2009-09-05 21:47:34 +000032157# Set Windows font directory.
32158#
32159
32160# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032161if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032162 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32163else
32164 with_windows_font_dir=''
32165fi
32166
32167if test "$with_windows_font_dir" != '' ; then
32168 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32169fi
32170
32171
32172#
32173# Check for WMF delegate library.
32174#
32175
32176# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032177if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032178 withval=$with_wmf; with_wmf=$withval
32179else
cristyfc3d0222012-02-07 15:05:57 +000032180 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032181fi
32182
32183
32184if test "$with_wmf" != 'yes'; then
32185 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32186fi
32187
32188have_wmf='no'
32189WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032190WMF_LIBS_DEPS=''
32191OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032192if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32194$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032196$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32198$as_echo "" >&6; }
32199 have_libwmf='no'
32200 have_libwmflite='no'
32201 have_libwmf_ipa_h='no'
32202
32203 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32204"
32205if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32206 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032207fi
32208
32209
cristy03f7cf92011-12-15 01:40:41 +000032210 if test "$have_libwmf_ipa_h" = 'yes'; then
32211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32212$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32213if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032214 $as_echo_n "(cached) " >&6
32215else
32216 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032217LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032219/* end confdefs.h. */
32220
32221/* Override any GCC internal prototype to avoid an error.
32222 Use char because int might match the return type of a GCC
32223 builtin and then its argument prototype would still apply. */
32224#ifdef __cplusplus
32225extern "C"
32226#endif
cristy03f7cf92011-12-15 01:40:41 +000032227char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032228int
32229main ()
32230{
cristy03f7cf92011-12-15 01:40:41 +000032231return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032232 ;
32233 return 0;
32234}
32235_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032236if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032237 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032238else
cristy03f7cf92011-12-15 01:40:41 +000032239 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032240fi
cristy8b350f62009-11-15 23:12:43 +000032241rm -f core conftest.err conftest.$ac_objext \
32242 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032243LIBS=$ac_check_lib_save_LIBS
32244fi
cristy03f7cf92011-12-15 01:40:41 +000032245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32246$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32247if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32248 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032249fi
32250
cristy03f7cf92011-12-15 01:40:41 +000032251 if test "$have_libwmflite" = 'yes'; then
32252
32253$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32254
32255 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032256 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032257 have_wmf='yes'
32258 else
32259 WMF_LIBS_DEPS=''
32260 WMF_CONFIG_LIBS=`libwmf-config --libs`
32261 for lib in xml2 expat freetype jpeg png z; do
32262 testlib="-l${lib}"
32263 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32264 done
32265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32266$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32267if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32268 $as_echo_n "(cached) " >&6
32269else
32270 ac_check_lib_save_LIBS=$LIBS
32271LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32273/* end confdefs.h. */
32274
32275/* Override any GCC internal prototype to avoid an error.
32276 Use char because int might match the return type of a GCC
32277 builtin and then its argument prototype would still apply. */
32278#ifdef __cplusplus
32279extern "C"
32280#endif
32281char wmf_api_create ();
32282int
32283main ()
32284{
32285return wmf_api_create ();
32286 ;
32287 return 0;
32288}
32289_ACEOF
32290if ac_fn_c_try_link "$LINENO"; then :
32291 ac_cv_lib_wmf_wmf_api_create=yes
32292else
32293 ac_cv_lib_wmf_wmf_api_create=no
32294fi
32295rm -f core conftest.err conftest.$ac_objext \
32296 conftest$ac_exeext conftest.$ac_ext
32297LIBS=$ac_check_lib_save_LIBS
32298fi
32299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32300$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32301if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32302 have_libwmf='yes'
32303fi
32304
32305 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032306
cristy8b350f62009-11-15 23:12:43 +000032307$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032308
cristy03f7cf92011-12-15 01:40:41 +000032309 WMF_LIBS='-lwmf'
32310 LIBS="$WMF_LIBS $LIBS"
32311 have_wmf='yes'
32312 else
32313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32314$as_echo "no -- some components failed test" >&6; }
32315 have_wmf='no (failed tests)'
32316 have_wmflite='no (failed tests)'
32317 LIBS="$OLIBS"
32318 WMF_LIBS=''
32319 fi
glennrp33e524b2011-08-24 17:41:57 +000032320 fi
cristy03f7cf92011-12-15 01:40:41 +000032321 fi
32322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32323$as_echo_n "checking if WMF package is complete... " >&6; }
32324 if test "$have_wmf" = 'yes'; then
32325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32326$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032327 else
cristy03f7cf92011-12-15 01:40:41 +000032328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32329$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032330 fi
cristy3ed852e2009-09-05 21:47:34 +000032331fi
cristy73bd4a52010-10-05 11:24:23 +000032332 if test "$have_wmf" = 'yes'; then
32333 WMF_DELEGATE_TRUE=
32334 WMF_DELEGATE_FALSE='#'
32335else
32336 WMF_DELEGATE_TRUE='#'
32337 WMF_DELEGATE_FALSE=
32338fi
32339
cristy3ed852e2009-09-05 21:47:34 +000032340
32341
32342
cristy81beccd2011-10-03 18:17:24 +000032343
32344
cristy3ed852e2009-09-05 21:47:34 +000032345#
32346# Check for XML delegate library.
32347#
32348
32349# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032350if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032351 withval=$with_xml; with_xml=$withval
32352else
cristyfc3d0222012-02-07 15:05:57 +000032353 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032354fi
32355
32356
cristy81beccd2011-10-03 18:17:24 +000032357if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032358 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32359fi
32360
cristy81beccd2011-10-03 18:17:24 +000032361have_xml='no'
32362XML_LIBS=''
32363if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32365$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32367$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32369$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032370 PERSIST_LDFLAGS=$LDFLAGS
32371 PERSIST_CPPFLAGS=$CPPFLAGS
32372 xml2_config=''
32373 # Extract the first word of "xml2-config", so it can be a program name with args.
32374set dummy xml2-config; ac_word=$2
32375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32376$as_echo_n "checking for $ac_word... " >&6; }
32377if ${ac_cv_path_xml2_config+:} false; then :
32378 $as_echo_n "(cached) " >&6
32379else
32380 case $xml2_config in
32381 [\\/]* | ?:[\\/]*)
32382 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32383 ;;
32384 *)
32385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32386for as_dir in $PATH
32387do
32388 IFS=$as_save_IFS
32389 test -z "$as_dir" && as_dir=.
32390 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032392 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32394 break 2
32395 fi
32396done
32397 done
32398IFS=$as_save_IFS
32399
32400 ;;
32401esac
32402fi
32403xml2_config=$ac_cv_path_xml2_config
32404if test -n "$xml2_config"; then
32405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32406$as_echo "$xml2_config" >&6; }
32407else
32408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32409$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032410fi
32411
cristy81beccd2011-10-03 18:17:24 +000032412 if test -n "$xml2_config"; then
32413 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32414 # the shared library installed under /usr/lib, whereas the package
32415 # installs itself under $prefix/libxml and $prefix/lib.
32416 xml2_prefix=`xml2-config --prefix`
32417 if test -d "${xml2_prefix}/include/libxml2"; then
32418 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32419 fi
32420 if test "${xml2_prefix}" != '/usr'; then
32421 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32422 fi
32423 fi
32424 failed=0
32425 passed=0
32426 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32427if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32428 passed=`expr $passed + 1`
32429else
32430 failed=`expr $failed + 1`
32431fi
32432
32433
32434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32435$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32436if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32437 $as_echo_n "(cached) " >&6
32438else
32439 ac_check_lib_save_LIBS=$LIBS
32440LIBS="-lxml2 $LIBS"
32441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32442/* end confdefs.h. */
32443
32444/* Override any GCC internal prototype to avoid an error.
32445 Use char because int might match the return type of a GCC
32446 builtin and then its argument prototype would still apply. */
32447#ifdef __cplusplus
32448extern "C"
32449#endif
32450char xmlSAXVersion ();
32451int
32452main ()
32453{
32454return xmlSAXVersion ();
32455 ;
32456 return 0;
32457}
32458_ACEOF
32459if ac_fn_c_try_link "$LINENO"; then :
32460 ac_cv_lib_xml2_xmlSAXVersion=yes
32461else
32462 ac_cv_lib_xml2_xmlSAXVersion=no
32463fi
32464rm -f core conftest.err conftest.$ac_objext \
32465 conftest$ac_exeext conftest.$ac_ext
32466LIBS=$ac_check_lib_save_LIBS
32467fi
32468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32469$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32470if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32471 passed=`expr $passed + 1`
32472else
32473 failed=`expr $failed + 1`
32474fi
32475
32476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32477$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32478if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32479 $as_echo_n "(cached) " >&6
32480else
32481 ac_check_lib_save_LIBS=$LIBS
32482LIBS="-lxml2 $LIBS"
32483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32484/* end confdefs.h. */
32485
32486/* Override any GCC internal prototype to avoid an error.
32487 Use char because int might match the return type of a GCC
32488 builtin and then its argument prototype would still apply. */
32489#ifdef __cplusplus
32490extern "C"
32491#endif
32492char xmlParseChunk ();
32493int
32494main ()
32495{
32496return xmlParseChunk ();
32497 ;
32498 return 0;
32499}
32500_ACEOF
32501if ac_fn_c_try_link "$LINENO"; then :
32502 ac_cv_lib_xml2_xmlParseChunk=yes
32503else
32504 ac_cv_lib_xml2_xmlParseChunk=no
32505fi
32506rm -f core conftest.err conftest.$ac_objext \
32507 conftest$ac_exeext conftest.$ac_ext
32508LIBS=$ac_check_lib_save_LIBS
32509fi
32510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32511$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32512if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32513 passed=`expr $passed + 1`
32514else
32515 failed=`expr $failed + 1`
32516fi
32517
32518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32519$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32520if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32521 $as_echo_n "(cached) " >&6
32522else
32523 ac_check_lib_save_LIBS=$LIBS
32524LIBS="-lxml2 $LIBS"
32525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32526/* end confdefs.h. */
32527
32528/* Override any GCC internal prototype to avoid an error.
32529 Use char because int might match the return type of a GCC
32530 builtin and then its argument prototype would still apply. */
32531#ifdef __cplusplus
32532extern "C"
32533#endif
32534char xmlCreatePushParserCtxt ();
32535int
32536main ()
32537{
32538return xmlCreatePushParserCtxt ();
32539 ;
32540 return 0;
32541}
32542_ACEOF
32543if ac_fn_c_try_link "$LINENO"; then :
32544 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32545else
32546 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32547fi
32548rm -f core conftest.err conftest.$ac_objext \
32549 conftest$ac_exeext conftest.$ac_ext
32550LIBS=$ac_check_lib_save_LIBS
32551fi
32552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32553$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32554if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32555 passed=`expr $passed + 1`
32556else
32557 failed=`expr $failed + 1`
32558fi
32559
32560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32561$as_echo_n "checking if XML package is complete... " >&6; }
32562 if test $passed -gt 0; then
32563 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32565$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032566 have_xml='no (failed tests)'
32567 LDFLAGS="$PERSIST_LDFLAGS"
32568 CPPFLAGS="$PERSIST_CPPFLAGS"
32569 else
32570 XML_LIBS='-lxml2'
32571 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032572
cristy8b350f62009-11-15 23:12:43 +000032573$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032574
cristyad38abe2012-12-23 23:03:21 +000032575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32576$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032577 have_xml='yes'
32578 fi
32579 else
cristyad38abe2012-12-23 23:03:21 +000032580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32581$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032582 fi
32583fi
cristy73bd4a52010-10-05 11:24:23 +000032584 if test "$have_xml" = 'yes'; then
32585 XML_DELEGATE_TRUE=
32586 XML_DELEGATE_FALSE='#'
32587else
32588 XML_DELEGATE_TRUE='#'
32589 XML_DELEGATE_FALSE=
32590fi
32591
cristy3ed852e2009-09-05 21:47:34 +000032592
32593
32594
32595# Substitute compiler name to build/link PerlMagick
32596#
32597
32598
32599#
32600# Configure install Paths
32601#
cristy7def36a2011-10-28 19:04:41 +000032602
cristy2a11bef2011-10-28 18:33:11 +000032603# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032604INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032605INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32606DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032607case "${build_os}" in
32608 mingw* )
32609 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32610 ;;
32611esac
32612
32613cat >>confdefs.h <<_ACEOF
32614#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32615_ACEOF
32616
32617
cristy3ed852e2009-09-05 21:47:34 +000032618
cristye52f12f2012-12-31 15:32:36 +000032619# Path to ImageMagick header files (arch part)
32620INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32621DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32622case "${build_os}" in
32623 mingw* )
32624 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32625 ;;
32626esac
32627
32628cat >>confdefs.h <<_ACEOF
32629#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32630_ACEOF
32631
32632
32633
cristy3ed852e2009-09-05 21:47:34 +000032634# Subdirectory under lib to place ImageMagick lib files
32635LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32636
32637cat >>confdefs.h <<_ACEOF
32638#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32639_ACEOF
32640
32641
32642# Path to ImageMagick bin directory
32643EXECUTABLE_PATH="${BIN_DIR}"
32644DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32645case "${build_os}" in
32646 mingw* )
32647 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32648 ;;
32649esac
32650
32651cat >>confdefs.h <<_ACEOF
32652#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32653_ACEOF
32654
32655
32656
32657# Path to ImageMagick lib
32658LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32659DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32660case "${build_os}" in
32661 mingw* )
32662 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32663 ;;
32664esac
32665
32666cat >>confdefs.h <<_ACEOF
32667#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32668_ACEOF
32669
32670
32671
cristy3ed852e2009-09-05 21:47:34 +000032672#
cristy8d0ff762013-03-10 20:33:28 +000032673# path to local binaries
32674if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32675 LIB_BIN_BASEDIRNAME="bin"
32676fi
32677
32678cat >>confdefs.h <<_ACEOF
32679#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32680_ACEOF
32681
32682
32683
32684if test "x$LIB_BIN_DIR" = "x"; then
32685 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32686fi
32687
32688
32689LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32690
32691LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32692
32693
32694#
cristy01ff9f32012-12-01 18:15:29 +000032695# path to modules lib
32696if test "x$MODULES_BASEDIRNAME" = "x"; then
32697 MODULES_BASEDIRNAME="modules"
32698fi
cristy3ed852e2009-09-05 21:47:34 +000032699
32700cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032701#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032702_ACEOF
32703
cristy01ff9f32012-12-01 18:15:29 +000032704
32705
32706if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032707 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32708else
cristy3ed852e2009-09-05 21:47:34 +000032709
32710cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032711#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032712_ACEOF
32713
cristycf4a3c22012-12-02 21:47:25 +000032714fi
cristy01ff9f32012-12-01 18:15:29 +000032715
32716
cristy371d4812012-12-01 19:48:10 +000032717MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032718
32719MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32720
32721
32722#
32723# path to coders lib
32724if test "x$CODER_DIRNAME" = "x"; then
32725 CODER_DIRNAME="coders"
32726fi
32727
32728cat >>confdefs.h <<_ACEOF
32729#define CODER_DIRNAME "$CODER_DIRNAME"
32730_ACEOF
32731
32732
32733
cristy371d4812012-12-01 19:48:10 +000032734CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032735CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032736
32737
32738#
32739# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032740#
32741# path to coders lib
32742if test "x$FILTER_DIRNAME" = "x"; then
32743 FILTER_DIRNAME="filters"
32744fi
cristy3ed852e2009-09-05 21:47:34 +000032745
32746cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032747#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032748_ACEOF
32749
cristy3ed852e2009-09-05 21:47:34 +000032750
cristy3ed852e2009-09-05 21:47:34 +000032751
cristy371d4812012-12-01 19:48:10 +000032752FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032753FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032754
32755
32756#
32757# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032758DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032759DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32760DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032761case "${build_os}" in
32762 mingw* )
32763 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32764 ;;
32765esac
32766
32767cat >>confdefs.h <<_ACEOF
32768#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32769_ACEOF
32770
32771
32772
cristy2a11bef2011-10-28 18:33:11 +000032773# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032774CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032775
32776cat >>confdefs.h <<_ACEOF
32777#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32778_ACEOF
32779
cristy7def36a2011-10-28 19:04:41 +000032780CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032781DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32782case "${build_os}" in
32783 mingw* )
32784 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32785 ;;
32786esac
32787
32788cat >>confdefs.h <<_ACEOF
32789#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32790_ACEOF
32791
32792
32793
cristy2a11bef2011-10-28 18:33:11 +000032794# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032795SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032796
32797cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032798#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032799_ACEOF
32800
cristy670aa3c2011-11-03 00:54:00 +000032801SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032802DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032803case "${build_os}" in
32804 mingw* )
cristy4f820712011-04-01 12:35:43 +000032805 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032806 ;;
32807esac
32808
32809cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032810#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032811_ACEOF
32812
32813
32814
cristy54378032012-12-04 15:52:20 +000032815#
32816# Subdirectory to place architecture-dependent configuration files.
32817if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32818 SHAREARCH_BASEDIRNAME="config"
32819fi
cristy670aa3c2011-11-03 00:54:00 +000032820
32821cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032822#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032823_ACEOF
32824
cristy54378032012-12-04 15:52:20 +000032825
32826
32827if test "x$SHAREARCH_DIRNAME" = "x"; then
32828 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32829else
cristy670aa3c2011-11-03 00:54:00 +000032830
32831cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032832#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032833_ACEOF
32834
cristy54378032012-12-04 15:52:20 +000032835fi
32836
32837
32838SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32839
32840SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032841
32842
cristy3ed852e2009-09-05 21:47:34 +000032843#
32844# program_transform_name is formed for use in a Makefile, so create a
32845# modified version for use in a shell script.
32846configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32847
32848# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32850$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032852$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32854$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032855AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032856BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032857BZIPDelegateDefault='bzip2'
32858BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032859CatDelegateDefault='cat'
32860DNGDecodeDelegateDefault='ufraw-batch'
32861GVCDecodeDelegateDefault='dot'
32862DVIDecodeDelegateDefault='dvips'
32863EchoDelegateDefault='echo'
32864EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032865ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32866DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32867MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32868GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032869HPGLDecodeDelegateDefault='hp2xx'
32870HTMLDecodeDelegateDefault='html2ps'
32871ILBMDecodeDelegateDefault='ilbmtoppm'
32872ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032873JXRDecodeDelegateDefault='JxrDecApp'
32874JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032875LPDelegateDefault='lp'
32876LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032877LaunchDelegateDefault='gimp'
32878MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032879MPEGDecodeDelegateDefault='avconv'
32880MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032881MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032882MVDelegateDefault='mv'
32883PCLDelegateDefault='pcl6'
32884PGPDecodeDelegateDefault='pgpv'
32885POVDelegateDefault='povray'
32886if test "$native_win32_build" = 'yes'; then
32887 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032888elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032889 PSDelegateDefault='gsc'
32890else
32891 PSDelegateDefault='gs'
32892fi
32893RLEEncodeDelegateDefault='rawtorle'
32894RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032895RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032896SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032897SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032898TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032899UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032900WebPDecodeDelegateDefault='dwebp'
32901WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032902WMFDecodeDelegateDefault='wmf2eps'
32903WWWDecodeDelegateDefault='curl'
32904XPSDelegateDefault='gxps'
32905ZipDelegateDefault='gzip'
32906
32907# Search for delegates
32908# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32909set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032911$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032912if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032913 $as_echo_n "(cached) " >&6
32914else
32915 case $AutotraceDecodeDelegate in
32916 [\\/]* | ?:[\\/]*)
32917 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32918 ;;
32919 *)
32920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32921for as_dir in $PATH
32922do
32923 IFS=$as_save_IFS
32924 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032925 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032927 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032929 break 2
32930 fi
32931done
cristy8b350f62009-11-15 23:12:43 +000032932 done
cristy3ed852e2009-09-05 21:47:34 +000032933IFS=$as_save_IFS
32934
32935 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32936 ;;
32937esac
32938fi
32939AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32940if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032942$as_echo "$AutotraceDecodeDelegate" >&6; }
32943else
cristy8b350f62009-11-15 23:12:43 +000032944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032945$as_echo "no" >&6; }
32946fi
32947
32948
cristy3ed852e2009-09-05 21:47:34 +000032949# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32950set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032952$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032953if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032954 $as_echo_n "(cached) " >&6
32955else
32956 case $BlenderDecodeDelegate in
32957 [\\/]* | ?:[\\/]*)
32958 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32959 ;;
32960 *)
32961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32962for as_dir in $PATH
32963do
32964 IFS=$as_save_IFS
32965 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032966 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032968 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032970 break 2
32971 fi
32972done
cristy8b350f62009-11-15 23:12:43 +000032973 done
cristy3ed852e2009-09-05 21:47:34 +000032974IFS=$as_save_IFS
32975
32976 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32977 ;;
32978esac
32979fi
32980BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32981if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032983$as_echo "$BlenderDecodeDelegate" >&6; }
32984else
cristy8b350f62009-11-15 23:12:43 +000032985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032986$as_echo "no" >&6; }
32987fi
32988
32989
32990# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32991set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032993$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032994if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032995 $as_echo_n "(cached) " >&6
32996else
32997 case $BZIPDelegate in
32998 [\\/]* | ?:[\\/]*)
32999 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33000 ;;
33001 *)
33002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33003for as_dir in $PATH
33004do
33005 IFS=$as_save_IFS
33006 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033007 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033009 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033011 break 2
33012 fi
33013done
cristy8b350f62009-11-15 23:12:43 +000033014 done
cristy3ed852e2009-09-05 21:47:34 +000033015IFS=$as_save_IFS
33016
33017 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33018 ;;
33019esac
33020fi
33021BZIPDelegate=$ac_cv_path_BZIPDelegate
33022if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033024$as_echo "$BZIPDelegate" >&6; }
33025else
cristy8b350f62009-11-15 23:12:43 +000033026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033027$as_echo "no" >&6; }
33028fi
33029
33030
cristyc59f0e72012-08-27 12:59:33 +000033031for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33032do
33033 # Extract the first word of "$ac_prog", so it can be a program name with args.
33034set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033036$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033037if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033038 $as_echo_n "(cached) " >&6
33039else
33040 case $BrowseDelegate in
33041 [\\/]* | ?:[\\/]*)
33042 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33043 ;;
33044 *)
33045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33046for as_dir in $PATH
33047do
33048 IFS=$as_save_IFS
33049 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033050 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033052 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033054 break 2
33055 fi
33056done
cristy8b350f62009-11-15 23:12:43 +000033057 done
cristy3ed852e2009-09-05 21:47:34 +000033058IFS=$as_save_IFS
33059
cristy3ed852e2009-09-05 21:47:34 +000033060 ;;
33061esac
33062fi
33063BrowseDelegate=$ac_cv_path_BrowseDelegate
33064if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033066$as_echo "$BrowseDelegate" >&6; }
33067else
cristy8b350f62009-11-15 23:12:43 +000033068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033069$as_echo "no" >&6; }
33070fi
33071
33072
cristyc59f0e72012-08-27 12:59:33 +000033073 test -n "$BrowseDelegate" && break
33074done
33075test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33076
cristy3ed852e2009-09-05 21:47:34 +000033077# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33078set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033080$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033081if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033082 $as_echo_n "(cached) " >&6
33083else
33084 case $CatDelegate in
33085 [\\/]* | ?:[\\/]*)
33086 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33087 ;;
33088 *)
33089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33090for as_dir in $PATH
33091do
33092 IFS=$as_save_IFS
33093 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033094 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033096 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033098 break 2
33099 fi
33100done
cristy8b350f62009-11-15 23:12:43 +000033101 done
cristy3ed852e2009-09-05 21:47:34 +000033102IFS=$as_save_IFS
33103
33104 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33105 ;;
33106esac
33107fi
33108CatDelegate=$ac_cv_path_CatDelegate
33109if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033111$as_echo "$CatDelegate" >&6; }
33112else
cristy8b350f62009-11-15 23:12:43 +000033113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033114$as_echo "no" >&6; }
33115fi
33116
33117
33118# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33119set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033121$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033122if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033123 $as_echo_n "(cached) " >&6
33124else
33125 case $DNGDecodeDelegate in
33126 [\\/]* | ?:[\\/]*)
33127 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33128 ;;
33129 *)
33130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33131for as_dir in $PATH
33132do
33133 IFS=$as_save_IFS
33134 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033135 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033137 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033139 break 2
33140 fi
33141done
cristy8b350f62009-11-15 23:12:43 +000033142 done
cristy3ed852e2009-09-05 21:47:34 +000033143IFS=$as_save_IFS
33144
33145 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33146 ;;
33147esac
33148fi
33149DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33150if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033152$as_echo "$DNGDecodeDelegate" >&6; }
33153else
cristy8b350f62009-11-15 23:12:43 +000033154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033155$as_echo "no" >&6; }
33156fi
33157
33158
33159# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33160set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033162$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033163if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033164 $as_echo_n "(cached) " >&6
33165else
33166 case $GVCDecodeDelegate in
33167 [\\/]* | ?:[\\/]*)
33168 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33169 ;;
33170 *)
33171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33172for as_dir in $PATH
33173do
33174 IFS=$as_save_IFS
33175 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033176 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033178 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033180 break 2
33181 fi
33182done
cristy8b350f62009-11-15 23:12:43 +000033183 done
cristy3ed852e2009-09-05 21:47:34 +000033184IFS=$as_save_IFS
33185
33186 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33187 ;;
33188esac
33189fi
33190GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33191if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033193$as_echo "$GVCDecodeDelegate" >&6; }
33194else
cristy8b350f62009-11-15 23:12:43 +000033195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033196$as_echo "no" >&6; }
33197fi
33198
33199
33200# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33201set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033203$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033204if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033205 $as_echo_n "(cached) " >&6
33206else
33207 case $DVIDecodeDelegate in
33208 [\\/]* | ?:[\\/]*)
33209 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33210 ;;
33211 *)
33212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33213for as_dir in $PATH
33214do
33215 IFS=$as_save_IFS
33216 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033217 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033219 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033221 break 2
33222 fi
33223done
cristy8b350f62009-11-15 23:12:43 +000033224 done
cristy3ed852e2009-09-05 21:47:34 +000033225IFS=$as_save_IFS
33226
33227 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33228 ;;
33229esac
33230fi
33231DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33232if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033234$as_echo "$DVIDecodeDelegate" >&6; }
33235else
cristy8b350f62009-11-15 23:12:43 +000033236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033237$as_echo "no" >&6; }
33238fi
33239
33240
33241# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33242set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033244$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033245if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033246 $as_echo_n "(cached) " >&6
33247else
33248 case $EchoDelegate in
33249 [\\/]* | ?:[\\/]*)
33250 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33251 ;;
33252 *)
33253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33254for as_dir in $PATH
33255do
33256 IFS=$as_save_IFS
33257 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033258 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033260 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033262 break 2
33263 fi
33264done
cristy8b350f62009-11-15 23:12:43 +000033265 done
cristy3ed852e2009-09-05 21:47:34 +000033266IFS=$as_save_IFS
33267
33268 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33269 ;;
33270esac
33271fi
33272EchoDelegate=$ac_cv_path_EchoDelegate
33273if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033275$as_echo "$EchoDelegate" >&6; }
33276else
cristy8b350f62009-11-15 23:12:43 +000033277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033278$as_echo "no" >&6; }
33279fi
33280
33281
33282# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33283set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033285$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033286if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033287 $as_echo_n "(cached) " >&6
33288else
33289 case $EditorDelegate in
33290 [\\/]* | ?:[\\/]*)
33291 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33292 ;;
33293 *)
33294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33295for as_dir in $PATH
33296do
33297 IFS=$as_save_IFS
33298 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033299 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033301 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033303 break 2
33304 fi
33305done
cristy8b350f62009-11-15 23:12:43 +000033306 done
cristy3ed852e2009-09-05 21:47:34 +000033307IFS=$as_save_IFS
33308
33309 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33310 ;;
33311esac
33312fi
33313EditorDelegate=$ac_cv_path_EditorDelegate
33314if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033316$as_echo "$EditorDelegate" >&6; }
33317else
cristy8b350f62009-11-15 23:12:43 +000033318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033319$as_echo "no" >&6; }
33320fi
33321
33322
cristy3ed852e2009-09-05 21:47:34 +000033323# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33324set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033326$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033327if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033328 $as_echo_n "(cached) " >&6
33329else
33330 case $ConvertDelegate in
33331 [\\/]* | ?:[\\/]*)
33332 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33333 ;;
33334 *)
33335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33336for as_dir in $PATH
33337do
33338 IFS=$as_save_IFS
33339 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033340 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033342 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033344 break 2
33345 fi
33346done
cristy8b350f62009-11-15 23:12:43 +000033347 done
cristy3ed852e2009-09-05 21:47:34 +000033348IFS=$as_save_IFS
33349
33350 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33351 ;;
33352esac
33353fi
33354ConvertDelegate=$ac_cv_path_ConvertDelegate
33355if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033357$as_echo "$ConvertDelegate" >&6; }
33358else
cristy8b350f62009-11-15 23:12:43 +000033359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033360$as_echo "no" >&6; }
33361fi
33362
33363
33364# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33365set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033367$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033368if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033369 $as_echo_n "(cached) " >&6
33370else
33371 case $DisplayDelegate in
33372 [\\/]* | ?:[\\/]*)
33373 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33374 ;;
33375 *)
33376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33377for as_dir in $PATH
33378do
33379 IFS=$as_save_IFS
33380 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033381 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033383 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033385 break 2
33386 fi
33387done
cristy8b350f62009-11-15 23:12:43 +000033388 done
cristy3ed852e2009-09-05 21:47:34 +000033389IFS=$as_save_IFS
33390
33391 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33392 ;;
33393esac
33394fi
33395DisplayDelegate=$ac_cv_path_DisplayDelegate
33396if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033398$as_echo "$DisplayDelegate" >&6; }
33399else
cristy8b350f62009-11-15 23:12:43 +000033400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033401$as_echo "no" >&6; }
33402fi
33403
33404
33405# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33406set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033408$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033409if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033410 $as_echo_n "(cached) " >&6
33411else
33412 case $MogrifyDelegate in
33413 [\\/]* | ?:[\\/]*)
33414 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33415 ;;
33416 *)
33417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33418for as_dir in $PATH
33419do
33420 IFS=$as_save_IFS
33421 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033422 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033424 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033426 break 2
33427 fi
33428done
cristy8b350f62009-11-15 23:12:43 +000033429 done
cristy3ed852e2009-09-05 21:47:34 +000033430IFS=$as_save_IFS
33431
33432 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33433 ;;
33434esac
33435fi
33436MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33437if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033439$as_echo "$MogrifyDelegate" >&6; }
33440else
cristy8b350f62009-11-15 23:12:43 +000033441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033442$as_echo "no" >&6; }
33443fi
33444
33445
33446# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33447set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033449$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033450if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033451 $as_echo_n "(cached) " >&6
33452else
33453 case $GnuplotDecodeDelegate in
33454 [\\/]* | ?:[\\/]*)
33455 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33456 ;;
33457 *)
33458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33459for as_dir in $PATH
33460do
33461 IFS=$as_save_IFS
33462 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033463 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033465 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033467 break 2
33468 fi
33469done
cristy8b350f62009-11-15 23:12:43 +000033470 done
cristy3ed852e2009-09-05 21:47:34 +000033471IFS=$as_save_IFS
33472
33473 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33474 ;;
33475esac
33476fi
33477GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33478if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033480$as_echo "$GnuplotDecodeDelegate" >&6; }
33481else
cristy8b350f62009-11-15 23:12:43 +000033482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033483$as_echo "no" >&6; }
33484fi
33485
33486
cristy3ed852e2009-09-05 21:47:34 +000033487# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33488set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033490$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033491if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033492 $as_echo_n "(cached) " >&6
33493else
33494 case $HPGLDecodeDelegate in
33495 [\\/]* | ?:[\\/]*)
33496 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33497 ;;
33498 *)
33499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33500for as_dir in $PATH
33501do
33502 IFS=$as_save_IFS
33503 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033504 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033506 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033508 break 2
33509 fi
33510done
cristy8b350f62009-11-15 23:12:43 +000033511 done
cristy3ed852e2009-09-05 21:47:34 +000033512IFS=$as_save_IFS
33513
33514 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33515 ;;
33516esac
33517fi
33518HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33519if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033521$as_echo "$HPGLDecodeDelegate" >&6; }
33522else
cristy8b350f62009-11-15 23:12:43 +000033523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033524$as_echo "no" >&6; }
33525fi
33526
33527
33528# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33529set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033531$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033532if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033533 $as_echo_n "(cached) " >&6
33534else
33535 case $HTMLDecodeDelegate in
33536 [\\/]* | ?:[\\/]*)
33537 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33538 ;;
33539 *)
33540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33541for as_dir in $PATH
33542do
33543 IFS=$as_save_IFS
33544 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033545 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033547 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033549 break 2
33550 fi
33551done
cristy8b350f62009-11-15 23:12:43 +000033552 done
cristy3ed852e2009-09-05 21:47:34 +000033553IFS=$as_save_IFS
33554
33555 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33556 ;;
33557esac
33558fi
33559HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33560if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033562$as_echo "$HTMLDecodeDelegate" >&6; }
33563else
cristy8b350f62009-11-15 23:12:43 +000033564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033565$as_echo "no" >&6; }
33566fi
33567
33568
33569# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33570set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033572$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033573if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033574 $as_echo_n "(cached) " >&6
33575else
33576 case $ILBMDecodeDelegate in
33577 [\\/]* | ?:[\\/]*)
33578 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33579 ;;
33580 *)
33581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33582for as_dir in $PATH
33583do
33584 IFS=$as_save_IFS
33585 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033586 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033588 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033590 break 2
33591 fi
33592done
cristy8b350f62009-11-15 23:12:43 +000033593 done
cristy3ed852e2009-09-05 21:47:34 +000033594IFS=$as_save_IFS
33595
33596 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33597 ;;
33598esac
33599fi
33600ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33601if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033603$as_echo "$ILBMDecodeDelegate" >&6; }
33604else
cristy8b350f62009-11-15 23:12:43 +000033605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033606$as_echo "no" >&6; }
33607fi
33608
33609
33610# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33611set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033613$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033614if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033615 $as_echo_n "(cached) " >&6
33616else
33617 case $ILBMEncodeDelegate in
33618 [\\/]* | ?:[\\/]*)
33619 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33620 ;;
33621 *)
33622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33623for as_dir in $PATH
33624do
33625 IFS=$as_save_IFS
33626 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033627 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033629 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033631 break 2
33632 fi
33633done
cristy8b350f62009-11-15 23:12:43 +000033634 done
cristy3ed852e2009-09-05 21:47:34 +000033635IFS=$as_save_IFS
33636
33637 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33638 ;;
33639esac
33640fi
33641ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33642if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033644$as_echo "$ILBMEncodeDelegate" >&6; }
33645else
cristy8b350f62009-11-15 23:12:43 +000033646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033647$as_echo "no" >&6; }
33648fi
33649
33650
cristy71f53d52013-04-27 13:33:59 +000033651# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33652set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33654$as_echo_n "checking for $ac_word... " >&6; }
33655if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33656 $as_echo_n "(cached) " >&6
33657else
33658 case $JXRDecodeDelegate in
33659 [\\/]* | ?:[\\/]*)
33660 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33661 ;;
33662 *)
33663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33664for as_dir in $PATH
33665do
33666 IFS=$as_save_IFS
33667 test -z "$as_dir" && as_dir=.
33668 for ac_exec_ext in '' $ac_executable_extensions; do
33669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33670 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33672 break 2
33673 fi
33674done
33675 done
33676IFS=$as_save_IFS
33677
33678 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33679 ;;
33680esac
33681fi
33682JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33683if test -n "$JXRDecodeDelegate"; then
33684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33685$as_echo "$JXRDecodeDelegate" >&6; }
33686else
33687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33688$as_echo "no" >&6; }
33689fi
33690
33691
33692# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33693set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33695$as_echo_n "checking for $ac_word... " >&6; }
33696if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33697 $as_echo_n "(cached) " >&6
33698else
33699 case $JXREncodeDelegate in
33700 [\\/]* | ?:[\\/]*)
33701 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33702 ;;
33703 *)
33704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33705for as_dir in $PATH
33706do
33707 IFS=$as_save_IFS
33708 test -z "$as_dir" && as_dir=.
33709 for ac_exec_ext in '' $ac_executable_extensions; do
33710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33711 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33713 break 2
33714 fi
33715done
33716 done
33717IFS=$as_save_IFS
33718
33719 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33720 ;;
33721esac
33722fi
33723JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33724if test -n "$JXREncodeDelegate"; then
33725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33726$as_echo "$JXREncodeDelegate" >&6; }
33727else
33728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33729$as_echo "no" >&6; }
33730fi
33731
33732
cristy3ed852e2009-09-05 21:47:34 +000033733# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33734set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033736$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033737if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033738 $as_echo_n "(cached) " >&6
33739else
33740 case $LPDelegate in
33741 [\\/]* | ?:[\\/]*)
33742 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33743 ;;
33744 *)
33745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33746for as_dir in $PATH
33747do
33748 IFS=$as_save_IFS
33749 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033750 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033752 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033754 break 2
33755 fi
33756done
cristy8b350f62009-11-15 23:12:43 +000033757 done
cristy3ed852e2009-09-05 21:47:34 +000033758IFS=$as_save_IFS
33759
33760 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33761 ;;
33762esac
33763fi
33764LPDelegate=$ac_cv_path_LPDelegate
33765if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033767$as_echo "$LPDelegate" >&6; }
33768else
cristy8b350f62009-11-15 23:12:43 +000033769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033770$as_echo "no" >&6; }
33771fi
33772
33773
33774# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33775set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033777$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033778if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033779 $as_echo_n "(cached) " >&6
33780else
33781 case $LPRDelegate in
33782 [\\/]* | ?:[\\/]*)
33783 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33784 ;;
33785 *)
33786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33787for as_dir in $PATH
33788do
33789 IFS=$as_save_IFS
33790 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033793 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033795 break 2
33796 fi
33797done
cristy8b350f62009-11-15 23:12:43 +000033798 done
cristy3ed852e2009-09-05 21:47:34 +000033799IFS=$as_save_IFS
33800
33801 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33802 ;;
33803esac
33804fi
33805LPRDelegate=$ac_cv_path_LPRDelegate
33806if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033808$as_echo "$LPRDelegate" >&6; }
33809else
cristy8b350f62009-11-15 23:12:43 +000033810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033811$as_echo "no" >&6; }
33812fi
33813
33814
cristy3ed852e2009-09-05 21:47:34 +000033815# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33816set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033818$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033819if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033820 $as_echo_n "(cached) " >&6
33821else
33822 case $LaunchDelegate in
33823 [\\/]* | ?:[\\/]*)
33824 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33825 ;;
33826 *)
33827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33828for as_dir in $PATH
33829do
33830 IFS=$as_save_IFS
33831 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033832 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033834 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033836 break 2
33837 fi
33838done
cristy8b350f62009-11-15 23:12:43 +000033839 done
cristy3ed852e2009-09-05 21:47:34 +000033840IFS=$as_save_IFS
33841
33842 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33843 ;;
33844esac
33845fi
33846LaunchDelegate=$ac_cv_path_LaunchDelegate
33847if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033849$as_echo "$LaunchDelegate" >&6; }
33850else
cristy8b350f62009-11-15 23:12:43 +000033851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033852$as_echo "no" >&6; }
33853fi
33854
33855
33856# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33857set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033859$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033860if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033861 $as_echo_n "(cached) " >&6
33862else
33863 case $MANDelegate in
33864 [\\/]* | ?:[\\/]*)
33865 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33866 ;;
33867 *)
33868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33869for as_dir in $PATH
33870do
33871 IFS=$as_save_IFS
33872 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033873 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033875 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033877 break 2
33878 fi
33879done
cristy8b350f62009-11-15 23:12:43 +000033880 done
cristy3ed852e2009-09-05 21:47:34 +000033881IFS=$as_save_IFS
33882
33883 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33884 ;;
33885esac
33886fi
33887MANDelegate=$ac_cv_path_MANDelegate
33888if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033890$as_echo "$MANDelegate" >&6; }
33891else
cristy8b350f62009-11-15 23:12:43 +000033892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033893$as_echo "no" >&6; }
33894fi
33895
33896
33897# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33898set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033900$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033901if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033902 $as_echo_n "(cached) " >&6
33903else
33904 case $MPEGDecodeDelegate in
33905 [\\/]* | ?:[\\/]*)
33906 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33907 ;;
33908 *)
33909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33910for as_dir in $PATH
33911do
33912 IFS=$as_save_IFS
33913 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033914 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033916 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033918 break 2
33919 fi
33920done
cristy8b350f62009-11-15 23:12:43 +000033921 done
cristy3ed852e2009-09-05 21:47:34 +000033922IFS=$as_save_IFS
33923
33924 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33925 ;;
33926esac
33927fi
33928MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33929if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033931$as_echo "$MPEGDecodeDelegate" >&6; }
33932else
cristy8b350f62009-11-15 23:12:43 +000033933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033934$as_echo "no" >&6; }
33935fi
33936
33937
cristy81ab5af2013-10-06 18:28:39 +000033938if test "$MPEGDecodeDelegate" == "$MPEGDecodeDelegateDefault" ; then
33939 MPEGDecodeDelegateDefault='ffmpeg'
33940 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33941set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33943$as_echo_n "checking for $ac_word... " >&6; }
33944if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33945 $as_echo_n "(cached) " >&6
33946else
33947 case $MPEGDecodeDelegate in
33948 [\\/]* | ?:[\\/]*)
33949 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33950 ;;
33951 *)
33952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33953for as_dir in $PATH
33954do
33955 IFS=$as_save_IFS
33956 test -z "$as_dir" && as_dir=.
33957 for ac_exec_ext in '' $ac_executable_extensions; do
33958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33959 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33961 break 2
33962 fi
33963done
33964 done
33965IFS=$as_save_IFS
33966
33967 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33968 ;;
33969esac
33970fi
33971MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33972if test -n "$MPEGDecodeDelegate"; then
33973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33974$as_echo "$MPEGDecodeDelegate" >&6; }
33975else
33976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33977$as_echo "no" >&6; }
33978fi
33979
33980
33981fi;
cristy3ed852e2009-09-05 21:47:34 +000033982# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33983set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033985$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033986if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033987 $as_echo_n "(cached) " >&6
33988else
33989 case $MPEGEncodeDelegate in
33990 [\\/]* | ?:[\\/]*)
33991 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33992 ;;
33993 *)
33994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33995for as_dir in $PATH
33996do
33997 IFS=$as_save_IFS
33998 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033999 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034001 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034003 break 2
34004 fi
34005done
cristy8b350f62009-11-15 23:12:43 +000034006 done
cristy3ed852e2009-09-05 21:47:34 +000034007IFS=$as_save_IFS
34008
34009 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34010 ;;
34011esac
34012fi
34013MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34014if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034016$as_echo "$MPEGEncodeDelegate" >&6; }
34017else
cristy8b350f62009-11-15 23:12:43 +000034018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034019$as_echo "no" >&6; }
34020fi
34021
34022
cristy81ab5af2013-10-06 18:28:39 +000034023if test "$MPEGEncodeDelegate" == "$MPEGEncodeDelegateDefault" ; then
34024 MPEGEncodeDelegateDefault='ffmpeg'
34025 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34026set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
34027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34028$as_echo_n "checking for $ac_word... " >&6; }
34029if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
34030 $as_echo_n "(cached) " >&6
34031else
34032 case $MPEGEncodeDelegate in
34033 [\\/]* | ?:[\\/]*)
34034 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34035 ;;
34036 *)
34037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34038for as_dir in $PATH
34039do
34040 IFS=$as_save_IFS
34041 test -z "$as_dir" && as_dir=.
34042 for ac_exec_ext in '' $ac_executable_extensions; do
34043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34044 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34046 break 2
34047 fi
34048done
34049 done
34050IFS=$as_save_IFS
34051
34052 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34053 ;;
34054esac
34055fi
34056MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34057if test -n "$MPEGEncodeDelegate"; then
34058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
34059$as_echo "$MPEGEncodeDelegate" >&6; }
34060else
34061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34062$as_echo "no" >&6; }
34063fi
34064
34065
34066fi;
cristy935c86e2010-06-05 23:50:07 +000034067# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34068set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34070$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034071if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034072 $as_echo_n "(cached) " >&6
34073else
34074 case $MrSIDDecodeDelegate in
34075 [\\/]* | ?:[\\/]*)
34076 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34077 ;;
34078 *)
34079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34080for as_dir in $PATH
34081do
34082 IFS=$as_save_IFS
34083 test -z "$as_dir" && as_dir=.
34084 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034086 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34088 break 2
34089 fi
34090done
34091 done
34092IFS=$as_save_IFS
34093
34094 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34095 ;;
34096esac
34097fi
34098MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34099if test -n "$MrSIDDecodeDelegate"; then
34100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34101$as_echo "$MrSIDDecodeDelegate" >&6; }
34102else
34103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34104$as_echo "no" >&6; }
34105fi
34106
34107
cristy3ed852e2009-09-05 21:47:34 +000034108# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34109set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034111$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034112if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034113 $as_echo_n "(cached) " >&6
34114else
34115 case $MVDelegate in
34116 [\\/]* | ?:[\\/]*)
34117 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34118 ;;
34119 *)
34120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34121for as_dir in $PATH
34122do
34123 IFS=$as_save_IFS
34124 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034125 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034127 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034129 break 2
34130 fi
34131done
cristy8b350f62009-11-15 23:12:43 +000034132 done
cristy3ed852e2009-09-05 21:47:34 +000034133IFS=$as_save_IFS
34134
34135 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34136 ;;
34137esac
34138fi
34139MVDelegate=$ac_cv_path_MVDelegate
34140if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034142$as_echo "$MVDelegate" >&6; }
34143else
cristy8b350f62009-11-15 23:12:43 +000034144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034145$as_echo "no" >&6; }
34146fi
34147
34148
34149# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34150set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034152$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034153if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034154 $as_echo_n "(cached) " >&6
34155else
34156 case $PCLDelegate in
34157 [\\/]* | ?:[\\/]*)
34158 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34159 ;;
34160 *)
34161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34162for as_dir in $PATH
34163do
34164 IFS=$as_save_IFS
34165 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034166 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034168 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034170 break 2
34171 fi
34172done
cristy8b350f62009-11-15 23:12:43 +000034173 done
cristy3ed852e2009-09-05 21:47:34 +000034174IFS=$as_save_IFS
34175
34176 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34177 ;;
34178esac
34179fi
34180PCLDelegate=$ac_cv_path_PCLDelegate
34181if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034183$as_echo "$PCLDelegate" >&6; }
34184else
cristy8b350f62009-11-15 23:12:43 +000034185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034186$as_echo "no" >&6; }
34187fi
34188
34189
34190# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34191set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034193$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034194if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034195 $as_echo_n "(cached) " >&6
34196else
34197 case $PGPDecodeDelegate in
34198 [\\/]* | ?:[\\/]*)
34199 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34200 ;;
34201 *)
34202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34203for as_dir in $PATH
34204do
34205 IFS=$as_save_IFS
34206 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034209 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034211 break 2
34212 fi
34213done
cristy8b350f62009-11-15 23:12:43 +000034214 done
cristy3ed852e2009-09-05 21:47:34 +000034215IFS=$as_save_IFS
34216
34217 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34218 ;;
34219esac
34220fi
34221PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34222if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034224$as_echo "$PGPDecodeDelegate" >&6; }
34225else
cristy8b350f62009-11-15 23:12:43 +000034226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034227$as_echo "no" >&6; }
34228fi
34229
34230
34231# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34232set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034234$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034235if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034236 $as_echo_n "(cached) " >&6
34237else
34238 case $POVDelegate in
34239 [\\/]* | ?:[\\/]*)
34240 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34241 ;;
34242 *)
34243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34244for as_dir in $PATH
34245do
34246 IFS=$as_save_IFS
34247 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034248 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034250 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034252 break 2
34253 fi
34254done
cristy8b350f62009-11-15 23:12:43 +000034255 done
cristy3ed852e2009-09-05 21:47:34 +000034256IFS=$as_save_IFS
34257
34258 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34259 ;;
34260esac
34261fi
34262POVDelegate=$ac_cv_path_POVDelegate
34263if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034265$as_echo "$POVDelegate" >&6; }
34266else
cristy8b350f62009-11-15 23:12:43 +000034267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034268$as_echo "no" >&6; }
34269fi
34270
34271
34272for ac_prog in gsx gsc "$PSDelegateDefault"
34273do
34274 # Extract the first word of "$ac_prog", so it can be a program name with args.
34275set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034277$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034278if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034279 $as_echo_n "(cached) " >&6
34280else
34281 case $PSDelegate in
34282 [\\/]* | ?:[\\/]*)
34283 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34284 ;;
34285 *)
34286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34287for as_dir in $PATH
34288do
34289 IFS=$as_save_IFS
34290 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034291 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034293 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034295 break 2
34296 fi
34297done
cristy8b350f62009-11-15 23:12:43 +000034298 done
cristy3ed852e2009-09-05 21:47:34 +000034299IFS=$as_save_IFS
34300
34301 ;;
34302esac
34303fi
34304PSDelegate=$ac_cv_path_PSDelegate
34305if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034307$as_echo "$PSDelegate" >&6; }
34308else
cristy8b350f62009-11-15 23:12:43 +000034309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034310$as_echo "no" >&6; }
34311fi
34312
34313
34314 test -n "$PSDelegate" && break
34315done
34316test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34317
34318# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34319set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034321$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034322if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034323 $as_echo_n "(cached) " >&6
34324else
34325 case $RLEEncodeDelegate in
34326 [\\/]* | ?:[\\/]*)
34327 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34328 ;;
34329 *)
34330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34331for as_dir in $PATH
34332do
34333 IFS=$as_save_IFS
34334 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034335 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034337 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034339 break 2
34340 fi
34341done
cristy8b350f62009-11-15 23:12:43 +000034342 done
cristy3ed852e2009-09-05 21:47:34 +000034343IFS=$as_save_IFS
34344
34345 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34346 ;;
34347esac
34348fi
34349RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34350if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034352$as_echo "$RLEEncodeDelegate" >&6; }
34353else
cristy8b350f62009-11-15 23:12:43 +000034354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034355$as_echo "no" >&6; }
34356fi
34357
34358
34359# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34360set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034362$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034363if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034364 $as_echo_n "(cached) " >&6
34365else
34366 case $RMDelegate in
34367 [\\/]* | ?:[\\/]*)
34368 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34369 ;;
34370 *)
34371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34372for as_dir in $PATH
34373do
34374 IFS=$as_save_IFS
34375 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034376 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034378 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034380 break 2
34381 fi
34382done
cristy8b350f62009-11-15 23:12:43 +000034383 done
cristy3ed852e2009-09-05 21:47:34 +000034384IFS=$as_save_IFS
34385
34386 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34387 ;;
34388esac
34389fi
34390RMDelegate=$ac_cv_path_RMDelegate
34391if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034393$as_echo "$RMDelegate" >&6; }
34394else
cristy8b350f62009-11-15 23:12:43 +000034395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034396$as_echo "no" >&6; }
34397fi
34398
34399
cristy4689cf02010-02-17 21:15:45 +000034400# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34401set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34403$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034404if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034405 $as_echo_n "(cached) " >&6
34406else
34407 case $RSVGDecodeDelegate in
34408 [\\/]* | ?:[\\/]*)
34409 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34410 ;;
34411 *)
34412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34413for as_dir in $PATH
34414do
34415 IFS=$as_save_IFS
34416 test -z "$as_dir" && as_dir=.
34417 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034419 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34421 break 2
34422 fi
34423done
34424 done
34425IFS=$as_save_IFS
34426
34427 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34428 ;;
34429esac
34430fi
34431RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34432if test -n "$RSVGDecodeDelegate"; then
34433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34434$as_echo "$RSVGDecodeDelegate" >&6; }
34435else
34436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34437$as_echo "no" >&6; }
34438fi
34439
34440
cristy3ed852e2009-09-05 21:47:34 +000034441# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34442set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034444$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034445if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034446 $as_echo_n "(cached) " >&6
34447else
34448 case $SCANDecodeDelegate in
34449 [\\/]* | ?:[\\/]*)
34450 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34451 ;;
34452 *)
34453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34454for as_dir in $PATH
34455do
34456 IFS=$as_save_IFS
34457 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034458 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034460 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034462 break 2
34463 fi
34464done
cristy8b350f62009-11-15 23:12:43 +000034465 done
cristy3ed852e2009-09-05 21:47:34 +000034466IFS=$as_save_IFS
34467
34468 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34469 ;;
34470esac
34471fi
34472SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34473if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034475$as_echo "$SCANDecodeDelegate" >&6; }
34476else
cristy8b350f62009-11-15 23:12:43 +000034477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034478$as_echo "no" >&6; }
34479fi
34480
34481
cristyec6934f2012-08-14 18:38:40 +000034482# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34483set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34485$as_echo_n "checking for $ac_word... " >&6; }
34486if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34487 $as_echo_n "(cached) " >&6
34488else
34489 case $SVGDecodeDelegate in
34490 [\\/]* | ?:[\\/]*)
34491 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34492 ;;
34493 *)
34494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34495for as_dir in $PATH
34496do
34497 IFS=$as_save_IFS
34498 test -z "$as_dir" && as_dir=.
34499 for ac_exec_ext in '' $ac_executable_extensions; do
34500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34501 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34503 break 2
34504 fi
34505done
34506 done
34507IFS=$as_save_IFS
34508
34509 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34510 ;;
34511esac
34512fi
34513SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34514if test -n "$SVGDecodeDelegate"; then
34515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34516$as_echo "$SVGDecodeDelegate" >&6; }
34517else
34518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34519$as_echo "no" >&6; }
34520fi
34521
34522
cristy3ed852e2009-09-05 21:47:34 +000034523# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34524set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034526$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034527if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034528 $as_echo_n "(cached) " >&6
34529else
34530 case $TXTDelegate in
34531 [\\/]* | ?:[\\/]*)
34532 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34533 ;;
34534 *)
34535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34536for as_dir in $PATH
34537do
34538 IFS=$as_save_IFS
34539 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034540 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034542 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034544 break 2
34545 fi
34546done
cristy8b350f62009-11-15 23:12:43 +000034547 done
cristy3ed852e2009-09-05 21:47:34 +000034548IFS=$as_save_IFS
34549
34550 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34551 ;;
34552esac
34553fi
34554TXTDelegate=$ac_cv_path_TXTDelegate
34555if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034557$as_echo "$TXTDelegate" >&6; }
34558else
cristy8b350f62009-11-15 23:12:43 +000034559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034560$as_echo "no" >&6; }
34561fi
34562
34563
cristy5ac9ac82010-07-29 13:24:24 +000034564# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34565set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34567$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034568if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034569 $as_echo_n "(cached) " >&6
34570else
34571 case $UniconvertorDelegate in
34572 [\\/]* | ?:[\\/]*)
34573 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34574 ;;
34575 *)
34576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34577for as_dir in $PATH
34578do
34579 IFS=$as_save_IFS
34580 test -z "$as_dir" && as_dir=.
34581 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034583 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34585 break 2
34586 fi
34587done
34588 done
34589IFS=$as_save_IFS
34590
34591 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34592 ;;
34593esac
34594fi
34595UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34596if test -n "$UniconvertorDelegate"; then
34597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34598$as_echo "$UniconvertorDelegate" >&6; }
34599else
34600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34601$as_echo "no" >&6; }
34602fi
34603
34604
cristy86e86092013-08-04 17:43:57 +000034605# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34606set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34608$as_echo_n "checking for $ac_word... " >&6; }
34609if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34610 $as_echo_n "(cached) " >&6
34611else
34612 case $WebPDecodeDelegate in
34613 [\\/]* | ?:[\\/]*)
34614 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34615 ;;
34616 *)
34617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34618for as_dir in $PATH
34619do
34620 IFS=$as_save_IFS
34621 test -z "$as_dir" && as_dir=.
34622 for ac_exec_ext in '' $ac_executable_extensions; do
34623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34624 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34626 break 2
34627 fi
34628done
34629 done
34630IFS=$as_save_IFS
34631
34632 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34633 ;;
34634esac
34635fi
34636WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34637if test -n "$WebPDecodeDelegate"; then
34638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34639$as_echo "$WebPDecodeDelegate" >&6; }
34640else
34641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34642$as_echo "no" >&6; }
34643fi
34644
34645
34646# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34647set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34649$as_echo_n "checking for $ac_word... " >&6; }
34650if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34651 $as_echo_n "(cached) " >&6
34652else
34653 case $WebPEncodeDelegate in
34654 [\\/]* | ?:[\\/]*)
34655 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34656 ;;
34657 *)
34658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34659for as_dir in $PATH
34660do
34661 IFS=$as_save_IFS
34662 test -z "$as_dir" && as_dir=.
34663 for ac_exec_ext in '' $ac_executable_extensions; do
34664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34665 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34667 break 2
34668 fi
34669done
34670 done
34671IFS=$as_save_IFS
34672
34673 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34674 ;;
34675esac
34676fi
34677WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34678if test -n "$WebPEncodeDelegate"; then
34679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34680$as_echo "$WebPEncodeDelegate" >&6; }
34681else
34682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34683$as_echo "no" >&6; }
34684fi
34685
34686
cristy3ed852e2009-09-05 21:47:34 +000034687# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34688set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034690$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034691if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034692 $as_echo_n "(cached) " >&6
34693else
34694 case $WMFDecodeDelegate in
34695 [\\/]* | ?:[\\/]*)
34696 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34697 ;;
34698 *)
34699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34700for as_dir in $PATH
34701do
34702 IFS=$as_save_IFS
34703 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034704 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034706 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034708 break 2
34709 fi
34710done
cristy8b350f62009-11-15 23:12:43 +000034711 done
cristy3ed852e2009-09-05 21:47:34 +000034712IFS=$as_save_IFS
34713
34714 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34715 ;;
34716esac
34717fi
34718WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34719if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034721$as_echo "$WMFDecodeDelegate" >&6; }
34722else
cristy8b350f62009-11-15 23:12:43 +000034723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034724$as_echo "no" >&6; }
34725fi
34726
34727
34728# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34729set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034731$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034732if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034733 $as_echo_n "(cached) " >&6
34734else
34735 case $WWWDecodeDelegate in
34736 [\\/]* | ?:[\\/]*)
34737 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34738 ;;
34739 *)
34740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34741for as_dir in $PATH
34742do
34743 IFS=$as_save_IFS
34744 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034745 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034747 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034749 break 2
34750 fi
34751done
cristy8b350f62009-11-15 23:12:43 +000034752 done
cristy3ed852e2009-09-05 21:47:34 +000034753IFS=$as_save_IFS
34754
34755 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34756 ;;
34757esac
34758fi
34759WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34760if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034762$as_echo "$WWWDecodeDelegate" >&6; }
34763else
cristy8b350f62009-11-15 23:12:43 +000034764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034765$as_echo "no" >&6; }
34766fi
34767
34768
34769# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34770set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034772$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034773if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034774 $as_echo_n "(cached) " >&6
34775else
34776 case $XPSDelegate in
34777 [\\/]* | ?:[\\/]*)
34778 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34779 ;;
34780 *)
34781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34782for as_dir in $PATH
34783do
34784 IFS=$as_save_IFS
34785 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034786 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034788 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034790 break 2
34791 fi
34792done
cristy8b350f62009-11-15 23:12:43 +000034793 done
cristy3ed852e2009-09-05 21:47:34 +000034794IFS=$as_save_IFS
34795
34796 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34797 ;;
34798esac
34799fi
34800XPSDelegate=$ac_cv_path_XPSDelegate
34801if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034803$as_echo "$XPSDelegate" >&6; }
34804else
cristy8b350f62009-11-15 23:12:43 +000034805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034806$as_echo "no" >&6; }
34807fi
34808
34809
34810# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34811set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034813$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034814if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034815 $as_echo_n "(cached) " >&6
34816else
34817 case $ZipDelegate in
34818 [\\/]* | ?:[\\/]*)
34819 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34820 ;;
34821 *)
34822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34823for as_dir in $PATH
34824do
34825 IFS=$as_save_IFS
34826 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034827 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034829 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034831 break 2
34832 fi
34833done
cristy8b350f62009-11-15 23:12:43 +000034834 done
cristy3ed852e2009-09-05 21:47:34 +000034835IFS=$as_save_IFS
34836
34837 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34838 ;;
34839esac
34840fi
34841ZipDelegate=$ac_cv_path_ZipDelegate
34842if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034844$as_echo "$ZipDelegate" >&6; }
34845else
cristy8b350f62009-11-15 23:12:43 +000034846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034847$as_echo "no" >&6; }
34848fi
34849
34850
34851
34852# Prefer lpr to lp; lp needs options tacked on.
34853if test "$LPRDelegate" != no; then
34854 PrintDelegate="$LPRDelegate"
34855else
34856 PrintDelegate="$LPDelegate -c -s"
34857fi
34858
34859
34860# Installed ImageMagick utiltity paths
34861ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34862DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34863MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34864
34865# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000034866have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034867have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34868have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34869have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034870have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034871have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34872have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034873have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34874
34875#
34876# Test for font directories
34877#
34878type_include_files=''
34879
cristy430a7312010-01-21 20:44:04 +000034880# Dejavu fonts.
34881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34882$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34883dejavu_font_dir=''
34884if test "${with_dejavu_font_dir}" != 'default'; then
34885 dejavu_font_dir="${with_dejavu_font_dir}/"
34886else
34887 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34888 if test -f "${font_dir}DejaVuSerif.ttf"; then
34889 dejavu_font_dir="${font_dir}"
34890 break 1
34891 fi
34892 done
34893fi
34894if test "${dejavu_font_dir}x" != 'x'; then
34895 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34897$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034898else
cristyad38abe2012-12-23 23:03:21 +000034899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34900$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034901fi
34902
34903
cristy3ed852e2009-09-05 21:47:34 +000034904# Windows
34905windows_font_dir=''
34906if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34907 windows_font_dir="${with_windows_font_dir}/"
34908fi
cristy430a7312010-01-21 20:44:04 +000034909if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034910 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34911 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34912 fi
34913 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34914 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34915 fi
34916 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34917 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34918 fi
34919fi
cristy430a7312010-01-21 20:44:04 +000034920if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034921 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34922fi
34923
34924
34925# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034927$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34928ghostscript_font_dir=''
34929if test "${with_gs_font_dir}" != 'default'; then
34930 ghostscript_font_dir="${with_gs_font_dir}/"
34931else
34932 if test "${native_win32_build}" = 'yes'; then
34933 # Native Windows Build
34934 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34935 if test -f "${font_dir}a010013l.pfb"; then
34936 ghostscript_font_dir="$font_dir"
34937 break 1
34938 fi
34939 done
34940 if test "${PSDelegate}" != 'gswin32c'; then
34941 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34942 fi
34943 else
34944 # Linux / Mac OS X / Unix Build
34945 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
34946 if test -f "${font_dir}a010013l.pfb"; then
34947 ghostscript_font_dir="${font_dir}"
34948 break 1
34949 fi
34950 done
34951 if test "${ghostscript_font_dir}x" = 'x'; then
34952 if test "$PSDelegate" != 'gs'; then
34953 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34954 fi
34955 fi
34956 fi
34957fi
34958if test "${ghostscript_font_dir}x" != 'x'; then
34959 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34961$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034962else
cristyad38abe2012-12-23 23:03:21 +000034963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34964$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034965fi
34966
34967case "${build_os}" in
34968 mingw* )
34969 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34970 ;;
34971esac
34972
34973
34974
34975#
34976# Handle case where user doesn't want frozen paths
34977#
34978if test "$with_frozenpaths" != 'yes'; then
34979 # Re-set delegate definitions to default (no paths)
34980 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034981 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34982 BZIPDelegate="$BZIPDelegateDefault"
34983 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034984 CatDelegate="$CatDelegateDefault"
34985 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034986 DisplayDelegate="$DisplayDelegateDefault"
34987 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034988 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34989 EchoDelegate="$EchoDelegateDefault"
34990 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034991 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034992 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034993 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34994 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34995 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34996 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034997 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
34998 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034999 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035000 LaunchDelegate="$LaunchDelegateDefault"
35001 MANDelegate="$MANDelegateDefault"
35002 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
35003 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035004 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000035005 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
35006 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035007 PCLDelegate="$PCLDelegateDefault"
35008 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
35009 POVDelegate="$POVDelegateDefault"
35010 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035011 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
35012 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000035013 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035014 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000035015 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035016 ShowImageDelegate="$ShowImageDelegateDefault"
35017 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000035018 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000035019 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
35020 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035021 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
35022 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
35023 XPSDelegate="$XPSDelegateDefault"
35024 ZipDelegate="$ZipDelegateDefault"
35025fi
35026
35027# Delegate substitutions
35028
35029
35030
35031
35032
35033
35034
35035
35036
35037
35038
35039
35040
35041
35042
35043
35044
35045
35046
35047
35048
35049
35050
35051
35052
35053
35054
35055
35056
35057
35058
35059
35060
35061
35062
35063
35064
35065
35066
35067
cristy71f53d52013-04-27 13:33:59 +000035068
35069
cristy3ed852e2009-09-05 21:47:34 +000035070#
35071# RPM support.
35072#
35073RPM=''
35074for ac_prog in gnutar gtar tar
35075do
35076 # Extract the first word of "$ac_prog", so it can be a program name with args.
35077set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035079$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035080if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035081 $as_echo_n "(cached) " >&6
35082else
35083 if test -n "$TAR"; then
35084 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35085else
35086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35087for as_dir in $PATH
35088do
35089 IFS=$as_save_IFS
35090 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035091 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035093 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035095 break 2
35096 fi
35097done
cristy8b350f62009-11-15 23:12:43 +000035098 done
cristy3ed852e2009-09-05 21:47:34 +000035099IFS=$as_save_IFS
35100
35101fi
35102fi
35103TAR=$ac_cv_prog_TAR
35104if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035106$as_echo "$TAR" >&6; }
35107else
cristy8b350f62009-11-15 23:12:43 +000035108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035109$as_echo "no" >&6; }
35110fi
35111
35112
35113 test -n "$TAR" && break
35114done
35115
35116for ac_prog in perl
35117do
35118 # Extract the first word of "$ac_prog", so it can be a program name with args.
35119set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035121$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035122if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035123 $as_echo_n "(cached) " >&6
35124else
35125 if test -n "$PERL"; then
35126 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35127else
35128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35129for as_dir in $PATH
35130do
35131 IFS=$as_save_IFS
35132 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035133 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035135 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035137 break 2
35138 fi
35139done
cristy8b350f62009-11-15 23:12:43 +000035140 done
cristy3ed852e2009-09-05 21:47:34 +000035141IFS=$as_save_IFS
35142
35143fi
35144fi
35145PERL=$ac_cv_prog_PERL
35146if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035148$as_echo "$PERL" >&6; }
35149else
cristy8b350f62009-11-15 23:12:43 +000035150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035151$as_echo "no" >&6; }
35152fi
35153
35154
35155 test -n "$PERL" && break
35156done
35157
35158for ac_prog in rpmbuild rpm
35159do
35160 # Extract the first word of "$ac_prog", so it can be a program name with args.
35161set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035163$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035164if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035165 $as_echo_n "(cached) " >&6
35166else
35167 if test -n "$RPM"; then
35168 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35169else
35170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35171for as_dir in $PATH
35172do
35173 IFS=$as_save_IFS
35174 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035175 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035177 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035179 break 2
35180 fi
35181done
cristy8b350f62009-11-15 23:12:43 +000035182 done
cristy3ed852e2009-09-05 21:47:34 +000035183IFS=$as_save_IFS
35184
35185fi
35186fi
35187RPM=$ac_cv_prog_RPM
35188if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035190$as_echo "$RPM" >&6; }
35191else
cristy8b350f62009-11-15 23:12:43 +000035192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035193$as_echo "no" >&6; }
35194fi
35195
35196
35197 test -n "$RPM" && break
35198done
35199
35200
cristy73bd4a52010-10-05 11:24:23 +000035201ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35202
35203
35204AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35205
35206
35207AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35208
35209
35210AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35211
35212
35213 if test "x$RPM" != "x" ; then
35214 RPM_DELEGATE_TRUE=
35215 RPM_DELEGATE_FALSE='#'
35216else
35217 RPM_DELEGATE_TRUE='#'
35218 RPM_DELEGATE_FALSE=
35219fi
35220
cristy3ed852e2009-09-05 21:47:34 +000035221
35222#
35223# 7ZIP support (http://p7zip.sourceforge.net/)
35224#
35225P7ZIP=''
35226for ac_prog in 7za
35227do
35228 # Extract the first word of "$ac_prog", so it can be a program name with args.
35229set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035231$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035232if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035233 $as_echo_n "(cached) " >&6
35234else
35235 if test -n "$P7ZIP"; then
35236 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35237else
35238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35239for as_dir in $PATH
35240do
35241 IFS=$as_save_IFS
35242 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035243 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035245 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035247 break 2
35248 fi
35249done
cristy8b350f62009-11-15 23:12:43 +000035250 done
cristy3ed852e2009-09-05 21:47:34 +000035251IFS=$as_save_IFS
35252
35253fi
35254fi
35255P7ZIP=$ac_cv_prog_P7ZIP
35256if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035258$as_echo "$P7ZIP" >&6; }
35259else
cristy8b350f62009-11-15 23:12:43 +000035260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035261$as_echo "no" >&6; }
35262fi
35263
35264
35265 test -n "$P7ZIP" && break
35266done
35267
35268
cristy73bd4a52010-10-05 11:24:23 +000035269 if test "x$P7ZIP" != "x" ; then
35270 P7ZIP_DELEGATE_TRUE=
35271 P7ZIP_DELEGATE_FALSE='#'
35272else
35273 P7ZIP_DELEGATE_TRUE='#'
35274 P7ZIP_DELEGATE_FALSE=
35275fi
35276
cristy3ed852e2009-09-05 21:47:34 +000035277
35278#
35279# ZIP support (http://www.info-zip.org/Zip.html)
35280#
35281ZIP=''
35282for ac_prog in zip
35283do
35284 # Extract the first word of "$ac_prog", so it can be a program name with args.
35285set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035287$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035288if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035289 $as_echo_n "(cached) " >&6
35290else
35291 if test -n "$ZIP"; then
35292 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35293else
35294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35295for as_dir in $PATH
35296do
35297 IFS=$as_save_IFS
35298 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035299 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035301 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035303 break 2
35304 fi
35305done
cristy8b350f62009-11-15 23:12:43 +000035306 done
cristy3ed852e2009-09-05 21:47:34 +000035307IFS=$as_save_IFS
35308
35309fi
35310fi
35311ZIP=$ac_cv_prog_ZIP
35312if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035314$as_echo "$ZIP" >&6; }
35315else
cristy8b350f62009-11-15 23:12:43 +000035316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035317$as_echo "no" >&6; }
35318fi
35319
35320
35321 test -n "$ZIP" && break
35322done
35323
35324
cristy73bd4a52010-10-05 11:24:23 +000035325 if test "x$ZIP" != "x" ; then
35326 ZIP_DELEGATE_TRUE=
35327 ZIP_DELEGATE_FALSE='#'
35328else
35329 ZIP_DELEGATE_TRUE='#'
35330 ZIP_DELEGATE_FALSE=
35331fi
35332
cristy3ed852e2009-09-05 21:47:34 +000035333
35334#
35335# GhostPCL related configuration.
35336#
35337PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035338PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035339PCLMonoDevice=pbmraw
35340if test -z "$PCLVersion"; then
35341 PCLVersion='unknown'
35342fi
35343if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35345$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035347$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35349$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035350 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035352$as_echo_n "checking for pcl color device... " >&6; }
35353 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35354 :
35355 else
35356 PCLColorDevice=ppmraw
35357 fi
cristyad38abe2012-12-23 23:03:21 +000035358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35359$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035360
35361 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035363$as_echo_n "checking for pcl CMYK device... " >&6; }
35364 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35365 :
35366 else
35367 PCLCMYKDevice=$PCLColorDevice
35368 fi
cristyad38abe2012-12-23 23:03:21 +000035369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35370$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035371
35372 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035374$as_echo_n "checking for pcl mono device... " >&6; }
35375 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35376 :
35377 else
35378 PCLMonoDevice=$PCLColorDevice
35379 fi
cristyad38abe2012-12-23 23:03:21 +000035380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35381$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035382fi
35383
35384
35385
35386
35387
35388
35389#
35390# GhostXPS related configuration.
35391#
35392XPSColorDevice=ppmraw
35393XPSCMYKDevice=bmpsep8
35394XPSMonoDevice=pbmraw
35395if test -z "$XPSVersion"; then
35396 XPSVersion='unknown'
35397fi
35398if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35400$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035402$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35404$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035405 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035407$as_echo_n "checking for xps color device... " >&6; }
35408 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35409 :
35410 else
35411 XPSColorDevice=ppmraw
35412 fi
cristyad38abe2012-12-23 23:03:21 +000035413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35414$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035415
35416 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035418$as_echo_n "checking for xps CMYK device... " >&6; }
35419 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35420 :
35421 else
35422 XPSCMYKDevice=$XPSColorDevice
35423 fi
cristyad38abe2012-12-23 23:03:21 +000035424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35425$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035426
35427 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035429$as_echo_n "checking for xps mono device... " >&6; }
35430 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35431 :
35432 else
35433 XPSMonoDevice=$XPSColorDevice
35434 fi
cristyad38abe2012-12-23 23:03:21 +000035435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35436$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035437fi
35438
35439
35440
35441
35442
35443
35444#
35445# Ghostscript related configuration.
35446#
cristya97426c2011-02-04 01:41:27 +000035447GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035448GSColorDevice=pnmraw
35449GSCMYKDevice=pam
35450GSMonoDevice=pbmraw
35451GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035452GSPSDevice=ps2write
cristy3ed852e2009-09-05 21:47:34 +000035453GSEPSDevice=epswrite
35454GSVersion='unknown'
35455if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35457$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035459$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35461$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035463$as_echo_n "checking for Ghostscript version... " >&6; }
35464 if GSVersion=`$PSDelegate --version`; then
35465 :
35466 else
35467 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35468 fi
cristyad38abe2012-12-23 23:03:21 +000035469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35470$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035471
35472 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035474$as_echo_n "checking for gs alpha device... " >&6; }
35475 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35476 :
35477 else
35478 GSAlphaDevice=pnmraw
35479 fi
cristyad38abe2012-12-23 23:03:21 +000035480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35481$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035482
35483 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035485$as_echo_n "checking for gs color device... " >&6; }
35486 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35487 :
35488 else
35489 GSColorDevice=pnmraw
35490 fi
cristyad38abe2012-12-23 23:03:21 +000035491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35492$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035493
35494 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035496$as_echo_n "checking for gs CMYK device... " >&6; }
35497 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35498 :
35499 else
35500 GSCMYKDevice=bmpsep8
35501 fi
cristyad38abe2012-12-23 23:03:21 +000035502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35503$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035504
35505 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035507$as_echo_n "checking for gs mono device... " >&6; }
35508 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35509 :
35510 else
35511 GSMonoDevice=$GSColorDevice
35512 fi
cristyad38abe2012-12-23 23:03:21 +000035513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35514$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035515
35516 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035518$as_echo_n "checking for gs PDF writing device... " >&6; }
35519 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35520 :
35521 else
35522 GSPDFDevice=nodevice
35523 fi
cristyad38abe2012-12-23 23:03:21 +000035524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35525$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035526
35527 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035529$as_echo_n "checking for gs PS writing device... " >&6; }
35530 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35531 :
35532 else
35533 GSPSDevice=nodevice
35534 fi
cristyad38abe2012-12-23 23:03:21 +000035535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35536$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035537
35538 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035540$as_echo_n "checking for gs EPS writing device... " >&6; }
35541 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35542 :
35543 else
35544 GSEPSDevice=nodevice
35545 fi
cristyad38abe2012-12-23 23:03:21 +000035546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35547$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035548fi
35549
35550
35551
35552
35553
35554
35555
35556
35557
35558
35559#
35560# PerlMagick-related configuration
35561#
35562
35563# Look for PERL if PerlMagick requested
35564# If name/path of desired PERL interpreter is specified, look for that one first
35565have_perl='no'
35566if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35568$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035570$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35572$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035573 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035575$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035576if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035577 $as_echo_n "(cached) " >&6
35578else
35579 ac_cv_path_PERL="$with_perl"
35580fi
cristy8b350f62009-11-15 23:12:43 +000035581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035582$as_echo "$ac_cv_path_PERL" >&6; };
35583 PERL=$ac_cv_path_PERL
35584 have_perl="$ac_cv_path_PERL"
35585 else
35586 for ac_prog in perl perl5
35587do
35588 # Extract the first word of "$ac_prog", so it can be a program name with args.
35589set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035591$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035592if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035593 $as_echo_n "(cached) " >&6
35594else
35595 case $PERL in
35596 [\\/]* | ?:[\\/]*)
35597 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35598 ;;
35599 *)
35600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35601for as_dir in $PATH
35602do
35603 IFS=$as_save_IFS
35604 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035605 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035607 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035609 break 2
35610 fi
35611done
cristy8b350f62009-11-15 23:12:43 +000035612 done
cristy3ed852e2009-09-05 21:47:34 +000035613IFS=$as_save_IFS
35614
35615 ;;
35616esac
35617fi
35618PERL=$ac_cv_path_PERL
35619if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035621$as_echo "$PERL" >&6; }
35622else
cristy8b350f62009-11-15 23:12:43 +000035623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035624$as_echo "no" >&6; }
35625fi
35626
35627
35628 test -n "$PERL" && break
35629done
35630 if test "$ac_cv_path_PERL"; then
35631 have_perl="$ac_cv_path_PERL"
35632 fi
35633 fi
35634fi
35635
cristy949301e2010-01-06 01:38:40 +000035636if test "$with_perl" != 'yes' ; then
35637 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35638fi
35639
35640PERL_SUPPORTS_DESTDIR='no'
35641
cristy3ed852e2009-09-05 21:47:34 +000035642with_perl_static='no'
35643with_perl_dynamic='no'
35644if test "$have_perl" != 'no'; then
35645 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35646 with_perl_static='yes'
35647 fi
35648 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35649 with_perl_dynamic='yes'
35650 fi
35651 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035652
35653
35654
35655
35656 if test -n "$PERL"; then :
35657
35658 ax_perl_version="5.8.1"
35659
35660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35661$as_echo_n "checking for perl version... " >&6; }
35662
35663 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35664
35665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35666$as_echo "$perl_version" >&6; }
35667
35668 PERL_VERSION=$perl_version
35669
35670
35671
35672
35673
35674 # Used to indicate true or false condition
35675 ax_compare_version=false
35676
35677 # Convert the two version strings to be compared into a format that
35678 # allows a simple string comparison. The end result is that a version
35679 # string of the form 1.12.5-r617 will be converted to the form
35680 # 0001001200050617. In other words, each number is zero padded to four
35681 # digits, and non digits are removed.
35682
35683 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35684 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35685 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35686 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35687 -e 's/[^0-9]//g'`
35688
35689
35690 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35691 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35692 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35693 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35694 -e 's/[^0-9]//g'`
35695
35696
35697 ax_compare_version=`echo "x$ax_compare_version_A
35698x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35699
35700
35701
35702 if test "$ax_compare_version" = "true" ; then
35703
35704 :
35705 PERL_SUPPORTS_DESTDIR='yes'
35706
35707 else
35708 :
35709 PERL_SUPPORTS_DESTDIR='no'
35710
35711 fi
35712
35713
35714else
35715
35716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35717$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35718 PERL_SUPPORTS_DESTDIR='no'
35719
cristy3ed852e2009-09-05 21:47:34 +000035720fi
cristy73bd4a52010-10-05 11:24:23 +000035721
35722fi
35723 if test "$have_perl" != 'no'; then
35724 WITH_PERL_TRUE=
35725 WITH_PERL_FALSE='#'
35726else
35727 WITH_PERL_TRUE='#'
35728 WITH_PERL_FALSE=
35729fi
35730
35731 if test $with_perl_static = 'yes'; then
35732 WITH_PERL_STATIC_TRUE=
35733 WITH_PERL_STATIC_FALSE='#'
35734else
35735 WITH_PERL_STATIC_TRUE='#'
35736 WITH_PERL_STATIC_FALSE=
35737fi
35738
35739 if test $with_perl_dynamic = 'yes'; then
35740 WITH_PERL_DYNAMIC_TRUE=
35741 WITH_PERL_DYNAMIC_FALSE='#'
35742else
35743 WITH_PERL_DYNAMIC_TRUE='#'
35744 WITH_PERL_DYNAMIC_FALSE=
35745fi
35746
cristy3ed852e2009-09-05 21:47:34 +000035747
35748
35749# Determine path to pick up MagickCore library from for use with building PerlMagick
35750MAGICKCORE_PATH="${LIB_DIR}"
35751if test $with_perl_static = 'yes'; then
35752 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35753 libtool_objdir=$objdir
35754
35755 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035756 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035757fi
35758
35759
cristy2a3eb392012-12-17 13:39:20 +000035760# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035761MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035762if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035763 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035764fi
cristy2a3eb392012-12-17 13:39:20 +000035765if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035766 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035767fi
35768if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035769 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035770fi
35771if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035772 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035773fi
cristy81ab5af2013-10-06 18:28:39 +000035774if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035775 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035776fi
cristy854c9cf2013-08-10 21:03:06 +000035777if test "$have_mupdf" = 'yes' ; then
35778 MAGICK_DELEGATES="$MAGICK_DELEGATES mupdf"
cristyc0884e92013-08-10 17:14:59 +000035779fi
cristy2a3eb392012-12-17 13:39:20 +000035780if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035781 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035782fi
cristy2a3eb392012-12-17 13:39:20 +000035783if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035784 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035785fi
35786if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035787 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035788fi
35789if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035790 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035791fi
35792if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035793 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035794fi
35795if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035796 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035797fi
35798if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035799 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035800fi
35801if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035802 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035803fi
35804if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035805 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035806fi
35807if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035808 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035809fi
35810if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035811 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035812fi
35813if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035814 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035815fi
35816if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035817 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035818fi
cristy3fe09452014-01-01 12:29:14 +000035819if test "$have_openjpeg" = 'yes' ; then
35820 MAGICK_DELEGATES="$MAGICK_DELEGATES openjpeg"
35821fi
cristy2a3eb392012-12-17 13:39:20 +000035822if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035823 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035824fi
35825if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035826 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035827fi
35828have_ps='no'
35829if test "$have_dps" = 'yes' || \
35830 test "$have_gs" = 'yes' || \
35831 test "${native_win32_build}" = 'yes' ; then
35832 have_ps='yes'
35833fi
35834if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035835 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035836fi
cristy2a3eb392012-12-17 13:39:20 +000035837if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035838 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035839fi
35840if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035841 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035842fi
35843if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035844 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035845fi
35846if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035847 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035848fi
cristy3b640ed2013-07-29 00:27:59 +000035849if test "$have_webp" = 'yes' ; then
35850 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35851fi
cristy2a3eb392012-12-17 13:39:20 +000035852if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035853 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035854fi
35855if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035856 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035857fi
35858if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035859 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035860fi
35861if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035862 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035863fi
cristy2a3eb392012-12-17 13:39:20 +000035864# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035865MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035866MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035867
35868
cristyfa161182012-12-19 15:45:28 +000035869
cristy3ed852e2009-09-05 21:47:34 +000035870#
35871# Handle special compiler flags
35872#
35873
35874# Add '-p' if prof source profiling support enabled
35875if test "$enable_prof" = 'yes'; then
35876 CFLAGS="-p $CFLAGS"
35877 CXXFLAGS="-p $CXXFLAGS"
35878 LDFLAGS="-p $LDFLAGS"
35879fi
35880
35881# Add '-pg' if gprof source profiling support enabled
35882if test "$enable_gprof" = 'yes'; then
35883 CFLAGS="-pg $CFLAGS"
35884 CXXFLAGS="-pg $CXXFLAGS"
35885 LDFLAGS="-pg $LDFLAGS"
35886fi
35887
35888# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35889# This is a gcc-specific feature
35890if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035892$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035893if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035894 $as_echo_n "(cached) " >&6
35895else
35896 ac_check_lib_save_LIBS=$LIBS
35897LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035899/* end confdefs.h. */
35900
35901/* Override any GCC internal prototype to avoid an error.
35902 Use char because int might match the return type of a GCC
35903 builtin and then its argument prototype would still apply. */
35904#ifdef __cplusplus
35905extern "C"
35906#endif
35907char _gcov_init ();
35908int
35909main ()
35910{
35911return _gcov_init ();
35912 ;
35913 return 0;
35914}
35915_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035916if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035917 ac_cv_lib_gcov__gcov_init=yes
35918else
cristy8b350f62009-11-15 23:12:43 +000035919 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035920fi
cristy8b350f62009-11-15 23:12:43 +000035921rm -f core conftest.err conftest.$ac_objext \
35922 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035923LIBS=$ac_check_lib_save_LIBS
35924fi
cristy8b350f62009-11-15 23:12:43 +000035925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035926$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035927if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035928 cat >>confdefs.h <<_ACEOF
35929#define HAVE_LIBGCOV 1
35930_ACEOF
35931
35932 LIBS="-lgcov $LIBS"
35933
35934fi
35935
cristy8b350f62009-11-15 23:12:43 +000035936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035937$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035938if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035939 $as_echo_n "(cached) " >&6
35940else
35941 ac_check_lib_save_LIBS=$LIBS
35942LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035944/* end confdefs.h. */
35945
35946/* Override any GCC internal prototype to avoid an error.
35947 Use char because int might match the return type of a GCC
35948 builtin and then its argument prototype would still apply. */
35949#ifdef __cplusplus
35950extern "C"
35951#endif
35952char __gcov_init ();
35953int
35954main ()
35955{
35956return __gcov_init ();
35957 ;
35958 return 0;
35959}
35960_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035961if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035962 ac_cv_lib_gcov___gcov_init=yes
35963else
cristy8b350f62009-11-15 23:12:43 +000035964 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035965fi
cristy8b350f62009-11-15 23:12:43 +000035966rm -f core conftest.err conftest.$ac_objext \
35967 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035968LIBS=$ac_check_lib_save_LIBS
35969fi
cristy8b350f62009-11-15 23:12:43 +000035970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035971$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035972if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035973 cat >>confdefs.h <<_ACEOF
35974#define HAVE_LIBGCOV 1
35975_ACEOF
35976
35977 LIBS="-lgcov $LIBS"
35978
35979fi
35980
35981 case "$target_os" in
35982 darwin*)
35983 OSX_GCOV_LDFLAG="-Wl,-single_module"
35984 ;;
35985 *)
35986 OSX_GCOV_LDFLAG=""
35987 ;;
35988 esac
35989
35990 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35991 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35992 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35993fi
35994
35995#
35996# Build library dependency list for libMagickCore
35997#
35998
cristyc6722092012-10-14 00:19:31 +000035999if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000036000 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 +000036001else
cristy3fe09452014-01-01 12:29:14 +000036002 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 $OPENJPEG_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 +000036003fi
36004
36005
36006#
36007# Remove extraneous spaces from output variables (asthetic)
36008#
36009X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
36010X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
36011X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
36012X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
36013
36014CC=`echo $CC | sed -e 's/ */ /g'`
36015CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
36016CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
36017CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036018DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
36019LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
36020TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36021MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
36022#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36023
36024# Pass only user-provided LIBS as "global" libraries
36025LIBS=$USER_LIBS
36026
36027#AC_SUBST(CPPFLAGS)
36028
36029#AC_SUBST(LDFLAGS)
36030#AC_SUBST(X_PRE_LIBS)
36031#AC_SUBST(X_LIBS)
36032#AC_SUBST(X_EXTRA_LIBS)
36033
36034MAGICK_CFLAGS=$CFLAGS
36035MAGICK_CXXFLAGS="$CXXFLAGS"
36036MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
36037MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
36038MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000036039MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036040
36041
36042
36043
36044
36045
36046
36047
36048# Set configured scripts to executable.
36049ac_config_commands="$ac_config_commands default"
36050
cristy2bd4b6e2012-07-22 15:29:11 +000036051ac_config_commands="$ac_config_commands magick.sh.in"
36052
cristy3ed852e2009-09-05 21:47:34 +000036053ac_config_commands="$ac_config_commands MagickCore-config.in"
36054
cristy3ed852e2009-09-05 21:47:34 +000036055ac_config_commands="$ac_config_commands MagickWand-config.in"
36056
cristy3ed852e2009-09-05 21:47:34 +000036057ac_config_commands="$ac_config_commands Magick++-config.in"
36058
36059ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
36060
36061
cristyad38abe2012-12-23 23:03:21 +000036062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36063$as_echo "-------------------------------------------------------------" >&6; }
36064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
36065$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036066cat >confcache <<\_ACEOF
36067# This file is a shell script that caches the results of configure
36068# tests run on this system so they can be shared between configure
36069# scripts and configure runs, see configure's option --config-cache.
36070# It is not useful on other systems. If it contains results you don't
36071# want to keep, you may remove or edit it.
36072#
36073# config.status only pays attention to the cache file if you give it
36074# the --recheck option to rerun configure.
36075#
36076# `ac_cv_env_foo' variables (set or unset) will be overridden when
36077# loading this file, other *unset* `ac_cv_foo' will be assigned the
36078# following values.
36079
36080_ACEOF
36081
36082# The following way of writing the cache mishandles newlines in values,
36083# but we know of no workaround that is simple, portable, and efficient.
36084# So, we kill variables containing newlines.
36085# Ultrix sh set writes to stderr and can't be redirected directly,
36086# and sets the high bit in the cache file unless we assign to the vars.
36087(
36088 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36089 eval ac_val=\$$ac_var
36090 case $ac_val in #(
36091 *${as_nl}*)
36092 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000036093 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000036094$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36095 esac
36096 case $ac_var in #(
36097 _ | IFS | as_nl) ;; #(
36098 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000036099 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000036100 esac ;;
36101 esac
36102 done
36103
36104 (set) 2>&1 |
36105 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36106 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036107 # `set' does not quote correctly, so add quotes: double-quote
36108 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036109 sed -n \
36110 "s/'/'\\\\''/g;
36111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36112 ;; #(
36113 *)
36114 # `set' quotes correctly as required by POSIX, so do not add quotes.
36115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36116 ;;
36117 esac |
36118 sort
36119) |
36120 sed '
36121 /^ac_cv_env_/b end
36122 t clear
36123 :clear
36124 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36125 t end
36126 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36127 :end' >>confcache
36128if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36129 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036130 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036131 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036132$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036133 if test ! -f "$cache_file" || test -h "$cache_file"; then
36134 cat confcache >"$cache_file"
36135 else
36136 case $cache_file in #(
36137 */* | ?:*)
36138 mv -f confcache "$cache_file"$$ &&
36139 mv -f "$cache_file"$$ "$cache_file" ;; #(
36140 *)
36141 mv -f confcache "$cache_file" ;;
36142 esac
36143 fi
36144 fi
cristy3ed852e2009-09-05 21:47:34 +000036145 else
cristy8b350f62009-11-15 23:12:43 +000036146 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036147$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36148 fi
36149fi
36150rm -f confcache
36151
36152test "x$prefix" = xNONE && prefix=$ac_default_prefix
36153# Let make expand exec_prefix.
36154test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36155
36156DEFS=-DHAVE_CONFIG_H
36157
36158ac_libobjs=
36159ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036160U=
cristy3ed852e2009-09-05 21:47:34 +000036161for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36162 # 1. Remove the extension, and $U if already installed.
36163 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36164 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36165 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36166 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036167 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36168 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036169done
36170LIBOBJS=$ac_libobjs
36171
36172LTLIBOBJS=$ac_ltlibobjs
36173
36174
cristyc0890a62012-07-19 00:18:20 +000036175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36176$as_echo_n "checking that generated files are newer than configure... " >&6; }
36177 if test -n "$am_sleep_pid"; then
36178 # Hide warnings about reused PIDs.
36179 wait $am_sleep_pid 2>/dev/null
36180 fi
36181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36182$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036183 if test -n "$EXEEXT"; then
36184 am__EXEEXT_TRUE=
36185 am__EXEEXT_FALSE='#'
36186else
36187 am__EXEEXT_TRUE='#'
36188 am__EXEEXT_FALSE=
36189fi
cristy3ed852e2009-09-05 21:47:34 +000036190
cristy73bd4a52010-10-05 11:24:23 +000036191if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036192 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036193Usually this means the macro was only invoked conditionally." "$LINENO" 5
36194fi
36195if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036196 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036197Usually this means the macro was only invoked conditionally." "$LINENO" 5
36198fi
36199if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036200 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036201Usually this means the macro was only invoked conditionally." "$LINENO" 5
36202fi
36203if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036204 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036205Usually this means the macro was only invoked conditionally." "$LINENO" 5
36206fi
cristy9b86f202012-11-28 21:55:35 +000036207if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36208 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36209Usually this means the macro was only invoked conditionally." "$LINENO" 5
36210fi
cristy73bd4a52010-10-05 11:24:23 +000036211if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036212 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036213Usually this means the macro was only invoked conditionally." "$LINENO" 5
36214fi
36215if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036216 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036217Usually this means the macro was only invoked conditionally." "$LINENO" 5
36218fi
36219if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036220 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036221Usually this means the macro was only invoked conditionally." "$LINENO" 5
36222fi
36223if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036224 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036225Usually this means the macro was only invoked conditionally." "$LINENO" 5
36226fi
cristy73bd4a52010-10-05 11:24:23 +000036227if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036228 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036229Usually this means the macro was only invoked conditionally." "$LINENO" 5
36230fi
36231if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036232 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036233Usually this means the macro was only invoked conditionally." "$LINENO" 5
36234fi
cristy73bd4a52010-10-05 11:24:23 +000036235if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036236 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036237Usually this means the macro was only invoked conditionally." "$LINENO" 5
36238fi
cristy71d8c202012-03-20 17:05:01 +000036239if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36240 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36241Usually this means the macro was only invoked conditionally." "$LINENO" 5
36242fi
cristy73bd4a52010-10-05 11:24:23 +000036243
36244if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036245 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036246Usually this means the macro was only invoked conditionally." "$LINENO" 5
36247fi
36248if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036249 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036250Usually this means the macro was only invoked conditionally." "$LINENO" 5
36251fi
36252if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036253 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036254Usually this means the macro was only invoked conditionally." "$LINENO" 5
36255fi
36256if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036257 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036258Usually this means the macro was only invoked conditionally." "$LINENO" 5
36259fi
36260if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036261 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036262Usually this means the macro was only invoked conditionally." "$LINENO" 5
36263fi
36264if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036265 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036266Usually this means the macro was only invoked conditionally." "$LINENO" 5
36267fi
cristy5eef09f2012-10-16 12:08:28 +000036268if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36269 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36270Usually this means the macro was only invoked conditionally." "$LINENO" 5
36271fi
cristy73bd4a52010-10-05 11:24:23 +000036272if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036273 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036274Usually this means the macro was only invoked conditionally." "$LINENO" 5
36275fi
36276if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036277 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036278Usually this means the macro was only invoked conditionally." "$LINENO" 5
36279fi
36280if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036281 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036282Usually this means the macro was only invoked conditionally." "$LINENO" 5
36283fi
36284if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036285 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036286Usually this means the macro was only invoked conditionally." "$LINENO" 5
36287fi
36288if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036289 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036290Usually this means the macro was only invoked conditionally." "$LINENO" 5
36291fi
36292if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036293 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036294Usually this means the macro was only invoked conditionally." "$LINENO" 5
36295fi
36296if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036297 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036298Usually this means the macro was only invoked conditionally." "$LINENO" 5
36299fi
36300if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036301 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036302Usually this means the macro was only invoked conditionally." "$LINENO" 5
36303fi
36304if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036305 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036306Usually this means the macro was only invoked conditionally." "$LINENO" 5
36307fi
36308if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036309 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036310Usually this means the macro was only invoked conditionally." "$LINENO" 5
36311fi
36312if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036313 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036314Usually this means the macro was only invoked conditionally." "$LINENO" 5
36315fi
36316if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036317 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036318Usually this means the macro was only invoked conditionally." "$LINENO" 5
36319fi
36320if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036321 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036322Usually this means the macro was only invoked conditionally." "$LINENO" 5
36323fi
36324if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036325 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036326Usually this means the macro was only invoked conditionally." "$LINENO" 5
36327fi
cristyfbb0ef02010-12-19 02:32:11 +000036328if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36329 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36330Usually this means the macro was only invoked conditionally." "$LINENO" 5
36331fi
cristy854c9cf2013-08-10 21:03:06 +000036332if test -z "${MUPDF_DELEGATE_TRUE}" && test -z "${MUPDF_DELEGATE_FALSE}"; then
36333 as_fn_error $? "conditional \"MUPDF_DELEGATE\" was never defined.
36334Usually this means the macro was only invoked conditionally." "$LINENO" 5
36335fi
cristy73bd4a52010-10-05 11:24:23 +000036336if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036337 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036338Usually this means the macro was only invoked conditionally." "$LINENO" 5
36339fi
cristy3fe09452014-01-01 12:29:14 +000036340if test -z "${OPENJPEG_DELEGATE_TRUE}" && test -z "${OPENJPEG_DELEGATE_FALSE}"; then
36341 as_fn_error $? "conditional \"OPENJPEG_DELEGATE\" was never defined.
36342Usually this means the macro was only invoked conditionally." "$LINENO" 5
36343fi
cristy41cbe8a2011-10-27 01:35:18 +000036344if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36345 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36346Usually this means the macro was only invoked conditionally." "$LINENO" 5
36347fi
cristya054b762012-03-26 23:16:00 +000036348if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36349 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036350Usually this means the macro was only invoked conditionally." "$LINENO" 5
36351fi
cristy73bd4a52010-10-05 11:24:23 +000036352if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036353 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036354Usually this means the macro was only invoked conditionally." "$LINENO" 5
36355fi
36356if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036357 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036358Usually this means the macro was only invoked conditionally." "$LINENO" 5
36359fi
36360if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036361 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036362Usually this means the macro was only invoked conditionally." "$LINENO" 5
36363fi
36364if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036365 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036366Usually this means the macro was only invoked conditionally." "$LINENO" 5
36367fi
cristyb1860752011-03-14 00:27:46 +000036368if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36369 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36370Usually this means the macro was only invoked conditionally." "$LINENO" 5
36371fi
cristy73bd4a52010-10-05 11:24:23 +000036372if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036373 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036374Usually this means the macro was only invoked conditionally." "$LINENO" 5
36375fi
36376if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036377 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036378Usually this means the macro was only invoked conditionally." "$LINENO" 5
36379fi
36380if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036381 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036382Usually this means the macro was only invoked conditionally." "$LINENO" 5
36383fi
36384if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036385 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036386Usually this means the macro was only invoked conditionally." "$LINENO" 5
36387fi
36388if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036389 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036390Usually this means the macro was only invoked conditionally." "$LINENO" 5
36391fi
36392if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036393 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036394Usually this means the macro was only invoked conditionally." "$LINENO" 5
36395fi
36396if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036397 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036398Usually this means the macro was only invoked conditionally." "$LINENO" 5
36399fi
36400if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036401 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036402Usually this means the macro was only invoked conditionally." "$LINENO" 5
36403fi
cristy3ed852e2009-09-05 21:47:34 +000036404
cristyda16f162011-02-19 23:52:17 +000036405: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036406ac_write_fail=0
36407ac_clean_files_save=$ac_clean_files
36408ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036409{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036410$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036411as_write_fail=0
36412cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036413#! $SHELL
36414# Generated by $as_me.
36415# Run this file to recreate the current configuration.
36416# Compiler output produced by configure, useful for debugging
36417# configure, is in config.log if it exists.
36418
36419debug=false
36420ac_cs_recheck=false
36421ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036422
cristy8b350f62009-11-15 23:12:43 +000036423SHELL=\${CONFIG_SHELL-$SHELL}
36424export SHELL
36425_ASEOF
36426cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36427## -------------------- ##
36428## M4sh Initialization. ##
36429## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036430
36431# Be more Bourne compatible
36432DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036433if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036434 emulate sh
36435 NULLCMD=:
36436 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36437 # is contrary to our usage. Disable this feature.
36438 alias -g '${1+"$@"}'='"$@"'
36439 setopt NO_GLOB_SUBST
36440else
cristy8b350f62009-11-15 23:12:43 +000036441 case `(set -o) 2>/dev/null` in #(
36442 *posix*) :
36443 set -o posix ;; #(
36444 *) :
36445 ;;
cristy3ed852e2009-09-05 21:47:34 +000036446esac
cristy3ed852e2009-09-05 21:47:34 +000036447fi
36448
36449
cristy3ed852e2009-09-05 21:47:34 +000036450as_nl='
36451'
36452export as_nl
36453# Printing a long string crashes Solaris 7 /usr/bin/printf.
36454as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36455as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36456as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036457# Prefer a ksh shell builtin over an external printf program on Solaris,
36458# but without wasting forks for bash or zsh.
36459if test -z "$BASH_VERSION$ZSH_VERSION" \
36460 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36461 as_echo='print -r --'
36462 as_echo_n='print -rn --'
36463elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036464 as_echo='printf %s\n'
36465 as_echo_n='printf %s'
36466else
36467 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36468 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36469 as_echo_n='/usr/ucb/echo -n'
36470 else
36471 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36472 as_echo_n_body='eval
36473 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036474 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036475 *"$as_nl"*)
36476 expr "X$arg" : "X\\(.*\\)$as_nl";
36477 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36478 esac;
36479 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36480 '
36481 export as_echo_n_body
36482 as_echo_n='sh -c $as_echo_n_body as_echo'
36483 fi
36484 export as_echo_body
36485 as_echo='sh -c $as_echo_body as_echo'
36486fi
36487
36488# The user is always right.
36489if test "${PATH_SEPARATOR+set}" != set; then
36490 PATH_SEPARATOR=:
36491 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36492 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36493 PATH_SEPARATOR=';'
36494 }
36495fi
36496
cristy3ed852e2009-09-05 21:47:34 +000036497
36498# IFS
36499# We need space, tab and new line, in precisely that order. Quoting is
36500# there to prevent editors from complaining about space-tab.
36501# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36502# splitting by setting IFS to empty value.)
36503IFS=" "" $as_nl"
36504
36505# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036506as_myself=
cristy8b350f62009-11-15 23:12:43 +000036507case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036508 *[\\/]* ) as_myself=$0 ;;
36509 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36510for as_dir in $PATH
36511do
36512 IFS=$as_save_IFS
36513 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036514 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36515 done
cristy3ed852e2009-09-05 21:47:34 +000036516IFS=$as_save_IFS
36517
36518 ;;
36519esac
36520# We did not find ourselves, most probably we were run as `sh COMMAND'
36521# in which case we are not to be found in the path.
36522if test "x$as_myself" = x; then
36523 as_myself=$0
36524fi
36525if test ! -f "$as_myself"; then
36526 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036527 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036528fi
36529
cristy8b350f62009-11-15 23:12:43 +000036530# Unset variables that we do not need and which cause bugs (e.g. in
36531# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36532# suppresses any "Segmentation fault" message there. '((' could
36533# trigger a bug in pdksh 5.2.14.
36534for as_var in BASH_ENV ENV MAIL MAILPATH
36535do eval test x\${$as_var+set} = xset \
36536 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036537done
36538PS1='$ '
36539PS2='> '
36540PS4='+ '
36541
36542# NLS nuisances.
36543LC_ALL=C
36544export LC_ALL
36545LANGUAGE=C
36546export LANGUAGE
36547
cristy8b350f62009-11-15 23:12:43 +000036548# CDPATH.
36549(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36550
36551
cristy98dddb52010-11-04 00:30:15 +000036552# as_fn_error STATUS ERROR [LINENO LOG_FD]
36553# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036554# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36555# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036556# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036557as_fn_error ()
36558{
cristy98dddb52010-11-04 00:30:15 +000036559 as_status=$1; test $as_status -eq 0 && as_status=1
36560 if test "$4"; then
36561 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36562 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036563 fi
cristy98dddb52010-11-04 00:30:15 +000036564 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036565 as_fn_exit $as_status
36566} # as_fn_error
36567
36568
36569# as_fn_set_status STATUS
36570# -----------------------
36571# Set $? to STATUS, without forking.
36572as_fn_set_status ()
36573{
36574 return $1
36575} # as_fn_set_status
36576
36577# as_fn_exit STATUS
36578# -----------------
36579# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36580as_fn_exit ()
36581{
36582 set +e
36583 as_fn_set_status $1
36584 exit $1
36585} # as_fn_exit
36586
36587# as_fn_unset VAR
36588# ---------------
36589# Portably unset VAR.
36590as_fn_unset ()
36591{
36592 { eval $1=; unset $1;}
36593}
36594as_unset=as_fn_unset
36595# as_fn_append VAR VALUE
36596# ----------------------
36597# Append the text in VALUE to the end of the definition contained in VAR. Take
36598# advantage of any shell optimizations that allow amortized linear growth over
36599# repeated appends, instead of the typical quadratic growth present in naive
36600# implementations.
36601if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36602 eval 'as_fn_append ()
36603 {
36604 eval $1+=\$2
36605 }'
36606else
36607 as_fn_append ()
36608 {
36609 eval $1=\$$1\$2
36610 }
36611fi # as_fn_append
36612
36613# as_fn_arith ARG...
36614# ------------------
36615# Perform arithmetic evaluation on the ARGs, and store the result in the
36616# global $as_val. Take advantage of shells that can avoid forks. The arguments
36617# must be portable across $(()) and expr.
36618if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36619 eval 'as_fn_arith ()
36620 {
36621 as_val=$(( $* ))
36622 }'
36623else
36624 as_fn_arith ()
36625 {
36626 as_val=`expr "$@" || test $? -eq 1`
36627 }
36628fi # as_fn_arith
36629
36630
cristy3ed852e2009-09-05 21:47:34 +000036631if expr a : '\(a\)' >/dev/null 2>&1 &&
36632 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36633 as_expr=expr
36634else
36635 as_expr=false
36636fi
36637
36638if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36639 as_basename=basename
36640else
36641 as_basename=false
36642fi
36643
cristy8b350f62009-11-15 23:12:43 +000036644if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36645 as_dirname=dirname
36646else
36647 as_dirname=false
36648fi
cristy3ed852e2009-09-05 21:47:34 +000036649
cristy3ed852e2009-09-05 21:47:34 +000036650as_me=`$as_basename -- "$0" ||
36651$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36652 X"$0" : 'X\(//\)$' \| \
36653 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36654$as_echo X/"$0" |
36655 sed '/^.*\/\([^/][^/]*\)\/*$/{
36656 s//\1/
36657 q
36658 }
36659 /^X\/\(\/\/\)$/{
36660 s//\1/
36661 q
36662 }
36663 /^X\/\(\/\).*/{
36664 s//\1/
36665 q
36666 }
36667 s/.*/./; q'`
36668
cristy8b350f62009-11-15 23:12:43 +000036669# Avoid depending upon Character Ranges.
36670as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36671as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36672as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36673as_cr_digits='0123456789'
36674as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036675
36676ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036677case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036678-n*)
cristy8b350f62009-11-15 23:12:43 +000036679 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036680 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036681 xy) ECHO_C='\c';;
36682 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36683 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036684 esac;;
36685*)
36686 ECHO_N='-n';;
36687esac
cristy3ed852e2009-09-05 21:47:34 +000036688
36689rm -f conf$$ conf$$.exe conf$$.file
36690if test -d conf$$.dir; then
36691 rm -f conf$$.dir/conf$$.file
36692else
36693 rm -f conf$$.dir
36694 mkdir conf$$.dir 2>/dev/null
36695fi
36696if (echo >conf$$.file) 2>/dev/null; then
36697 if ln -s conf$$.file conf$$ 2>/dev/null; then
36698 as_ln_s='ln -s'
36699 # ... but there are two gotchas:
36700 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36701 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036702 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036703 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036704 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036705 elif ln conf$$.file conf$$ 2>/dev/null; then
36706 as_ln_s=ln
36707 else
cristy14fefe52012-05-21 00:59:18 +000036708 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036709 fi
36710else
cristy14fefe52012-05-21 00:59:18 +000036711 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036712fi
36713rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36714rmdir conf$$.dir 2>/dev/null
36715
cristy8b350f62009-11-15 23:12:43 +000036716
36717# as_fn_mkdir_p
36718# -------------
36719# Create "$as_dir" as a directory, including parents if necessary.
36720as_fn_mkdir_p ()
36721{
36722
36723 case $as_dir in #(
36724 -*) as_dir=./$as_dir;;
36725 esac
36726 test -d "$as_dir" || eval $as_mkdir_p || {
36727 as_dirs=
36728 while :; do
36729 case $as_dir in #(
36730 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36731 *) as_qdir=$as_dir;;
36732 esac
36733 as_dirs="'$as_qdir' $as_dirs"
36734 as_dir=`$as_dirname -- "$as_dir" ||
36735$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36736 X"$as_dir" : 'X\(//\)[^/]' \| \
36737 X"$as_dir" : 'X\(//\)$' \| \
36738 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36739$as_echo X"$as_dir" |
36740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36741 s//\1/
36742 q
36743 }
36744 /^X\(\/\/\)[^/].*/{
36745 s//\1/
36746 q
36747 }
36748 /^X\(\/\/\)$/{
36749 s//\1/
36750 q
36751 }
36752 /^X\(\/\).*/{
36753 s//\1/
36754 q
36755 }
36756 s/.*/./; q'`
36757 test -d "$as_dir" && break
36758 done
36759 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036760 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036761
36762
36763} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036764if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036765 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036766else
36767 test -d ./-p && rmdir ./-p
36768 as_mkdir_p=false
36769fi
36770
cristy14fefe52012-05-21 00:59:18 +000036771
36772# as_fn_executable_p FILE
36773# -----------------------
36774# Test if FILE is an executable regular file.
36775as_fn_executable_p ()
36776{
36777 test -f "$1" && test -x "$1"
36778} # as_fn_executable_p
36779as_test_x='test -x'
36780as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036781
36782# Sed expression to map a string onto a valid CPP name.
36783as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36784
36785# Sed expression to map a string onto a valid variable name.
36786as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36787
36788
36789exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036790## ----------------------------------- ##
36791## Main body of $CONFIG_STATUS script. ##
36792## ----------------------------------- ##
36793_ASEOF
36794test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036795
cristy8b350f62009-11-15 23:12:43 +000036796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36797# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036798# report actual input values of CONFIG_FILES etc. instead of their
36799# values after options handling.
36800ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036801This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036802generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036803
36804 CONFIG_FILES = $CONFIG_FILES
36805 CONFIG_HEADERS = $CONFIG_HEADERS
36806 CONFIG_LINKS = $CONFIG_LINKS
36807 CONFIG_COMMANDS = $CONFIG_COMMANDS
36808 $ $0 $@
36809
36810on `(hostname || uname -n) 2>/dev/null | sed 1q`
36811"
36812
36813_ACEOF
36814
36815case $ac_config_files in *"
36816"*) set x $ac_config_files; shift; ac_config_files=$*;;
36817esac
36818
36819case $ac_config_headers in *"
36820"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36821esac
36822
36823
36824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36825# Files that config.status was made for.
36826config_files="$ac_config_files"
36827config_headers="$ac_config_headers"
36828config_commands="$ac_config_commands"
36829
36830_ACEOF
36831
36832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36833ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036834\`$as_me' instantiates files and other configuration actions
36835from templates according to the current configuration. Unless the files
36836and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036837
cristy8b350f62009-11-15 23:12:43 +000036838Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036839
36840 -h, --help print this help, then exit
36841 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036842 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036843 -q, --quiet, --silent
36844 do not print progress messages
36845 -d, --debug don't remove temporary files
36846 --recheck update $as_me by reconfiguring in the same conditions
36847 --file=FILE[:TEMPLATE]
36848 instantiate the configuration file FILE
36849 --header=FILE[:TEMPLATE]
36850 instantiate the configuration header FILE
36851
36852Configuration files:
36853$config_files
36854
36855Configuration headers:
36856$config_headers
36857
36858Configuration commands:
36859$config_commands
36860
cristy8b350f62009-11-15 23:12:43 +000036861Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036862
36863_ACEOF
36864cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036865ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036866ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036867ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036868configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036869 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036870
cristy14fefe52012-05-21 00:59:18 +000036871Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036872This config.status script is free software; the Free Software Foundation
36873gives unlimited permission to copy, distribute and modify it."
36874
36875ac_pwd='$ac_pwd'
36876srcdir='$srcdir'
36877INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036878MKDIR_P='$MKDIR_P'
36879AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036880test -n "\$AWK" || AWK=awk
36881_ACEOF
36882
36883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36884# The default lists apply if the user does not specify any file.
36885ac_need_defaults=:
36886while test $# != 0
36887do
36888 case $1 in
cristyda16f162011-02-19 23:52:17 +000036889 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036890 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36891 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36892 ac_shift=:
36893 ;;
cristyda16f162011-02-19 23:52:17 +000036894 --*=)
36895 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36896 ac_optarg=
36897 ac_shift=:
36898 ;;
cristy3ed852e2009-09-05 21:47:34 +000036899 *)
36900 ac_option=$1
36901 ac_optarg=$2
36902 ac_shift=shift
36903 ;;
36904 esac
36905
36906 case $ac_option in
36907 # Handling of the options.
36908 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36909 ac_cs_recheck=: ;;
36910 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36911 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036912 --config | --confi | --conf | --con | --co | --c )
36913 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036914 --debug | --debu | --deb | --de | --d | -d )
36915 debug=: ;;
36916 --file | --fil | --fi | --f )
36917 $ac_shift
36918 case $ac_optarg in
36919 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036920 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036921 esac
cristy8b350f62009-11-15 23:12:43 +000036922 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036923 ac_need_defaults=false;;
36924 --header | --heade | --head | --hea )
36925 $ac_shift
36926 case $ac_optarg in
36927 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36928 esac
cristy8b350f62009-11-15 23:12:43 +000036929 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036930 ac_need_defaults=false;;
36931 --he | --h)
36932 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036933 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036934Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036935 --help | --hel | -h )
36936 $as_echo "$ac_cs_usage"; exit ;;
36937 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36938 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36939 ac_cs_silent=: ;;
36940
36941 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036942 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036943Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036944
cristy8b350f62009-11-15 23:12:43 +000036945 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036946 ac_need_defaults=false ;;
36947
36948 esac
36949 shift
36950done
36951
36952ac_configure_extra_args=
36953
36954if $ac_cs_silent; then
36955 exec 6>/dev/null
36956 ac_configure_extra_args="$ac_configure_extra_args --silent"
36957fi
36958
36959_ACEOF
36960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36961if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036962 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036963 shift
36964 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36965 CONFIG_SHELL='$SHELL'
36966 export CONFIG_SHELL
36967 exec "\$@"
36968fi
36969
36970_ACEOF
36971cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36972exec 5>>config.log
36973{
36974 echo
36975 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36976## Running $as_me. ##
36977_ASBOX
36978 $as_echo "$ac_log"
36979} >&5
36980
36981_ACEOF
36982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036983#
36984# INIT-COMMANDS
36985#
36986PACKAGE="$PACKAGE"
36987AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36988
36989
36990# The HP-UX ksh and POSIX shell print the target directory to stdout
36991# if CDPATH is set.
36992(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36993
36994sed_quote_subst='$sed_quote_subst'
36995double_quote_subst='$double_quote_subst'
36996delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036997SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36998Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36999GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37000EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37001FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37002SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37003ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37004LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37005macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37006macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37007AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37008DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37009OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37010enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37011enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37012pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37013enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000037014PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037015host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37016host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37017host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37018build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37019build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37020build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37021NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37022LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37023max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37024ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37025exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37026lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37027lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37028lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037029lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37030lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037031reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37032reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37033deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37034file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037035file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37036want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37037sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037038AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37039AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037040archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037041STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37042RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37043old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37044old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37045old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37046lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37047CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37048CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37049compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37050GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37051lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37052lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37053lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37054lt_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 +000037055nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37056lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037057objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37058MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37059lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037060lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037061lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037062lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37063lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37064need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037065MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037066DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37067NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37068LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37069OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37070OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37071libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37072shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37073extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37074archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37075enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37076export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37077whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37078compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37079old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37080old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37081archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37082archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37083module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37084module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37085with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37086allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37087no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37088hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037089hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37090hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37091hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37092hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37093hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37094hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37095inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37096link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037097always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37098export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37099exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37100include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37101prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037102postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037103file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37104variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37105need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37106need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37107version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37108runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37109shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37110shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37111libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37112library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37113soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37114install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37115postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37116postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37117finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37118finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37119hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37120sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37121sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37122hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37123enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37124enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37125enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37126old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37127striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37128compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37129predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37130postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37131predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37132postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37133compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37134LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37135reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37136reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37137old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37138compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37139GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37140lt_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 +000037141lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037142lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037143lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37144lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37145archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37146enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37147export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37148whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37149compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37150old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37151old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37152archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37153archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37154module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37155module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37156with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37157allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37158no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37159hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037160hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37161hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37162hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37163hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37164hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37165hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37166inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37167link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037168always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37169export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37170exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37171include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37172prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037173postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037174file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37175hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37176compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37177predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37178postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37179predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37180postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37181compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037182
37183LTCC='$LTCC'
37184LTCFLAGS='$LTCFLAGS'
37185compiler='$compiler_DEFAULT'
37186
cristy0c60a692010-11-04 01:09:47 +000037187# A function that is used when there is no print builtin or printf.
37188func_fallback_echo ()
37189{
37190 eval 'cat <<_LTECHO_EOF
37191\$1
37192_LTECHO_EOF'
37193}
37194
cristy73bd4a52010-10-05 11:24:23 +000037195# Quote evaled strings.
37196for var in SED \
37197GREP \
37198EGREP \
37199FGREP \
cristy0c60a692010-11-04 01:09:47 +000037200SHELL \
37201ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037202LD \
cristy0c60a692010-11-04 01:09:47 +000037203AS \
37204DLLTOOL \
37205OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037206PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037207NM \
37208LN_S \
37209lt_SP2NL \
37210lt_NL2SP \
37211reload_flag \
37212deplibs_check_method \
37213file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037214file_magic_glob \
37215want_nocaseglob \
37216sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037217AR \
37218AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037219archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037220STRIP \
37221RANLIB \
37222CC \
37223CFLAGS \
37224compiler \
37225lt_cv_sys_global_symbol_pipe \
37226lt_cv_sys_global_symbol_to_cdecl \
37227lt_cv_sys_global_symbol_to_c_name_address \
37228lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037229nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037230lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037231lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037232lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037233lt_prog_compiler_static \
37234lt_cv_prog_compiler_c_o \
37235need_locks \
cristyda16f162011-02-19 23:52:17 +000037236MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037237DSYMUTIL \
37238NMEDIT \
37239LIPO \
37240OTOOL \
37241OTOOL64 \
37242shrext_cmds \
37243export_dynamic_flag_spec \
37244whole_archive_flag_spec \
37245compiler_needs_object \
37246with_gnu_ld \
37247allow_undefined_flag \
37248no_undefined_flag \
37249hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037250hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037251exclude_expsyms \
37252include_expsyms \
37253file_list_spec \
37254variables_saved_for_relink \
37255libname_spec \
37256library_names_spec \
37257soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037258install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037259finish_eval \
37260old_striplib \
37261striplib \
37262compiler_lib_search_dirs \
37263predep_objects \
37264postdep_objects \
37265predeps \
37266postdeps \
37267compiler_lib_search_path \
37268LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037269reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037270compiler_CXX \
37271lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037272lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037273lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037274lt_prog_compiler_static_CXX \
37275lt_cv_prog_compiler_c_o_CXX \
37276export_dynamic_flag_spec_CXX \
37277whole_archive_flag_spec_CXX \
37278compiler_needs_object_CXX \
37279with_gnu_ld_CXX \
37280allow_undefined_flag_CXX \
37281no_undefined_flag_CXX \
37282hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037283hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037284exclude_expsyms_CXX \
37285include_expsyms_CXX \
37286file_list_spec_CXX \
37287compiler_lib_search_dirs_CXX \
37288predep_objects_CXX \
37289postdep_objects_CXX \
37290predeps_CXX \
37291postdeps_CXX \
37292compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037293 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037294 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037295 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037296 ;;
37297 *)
37298 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37299 ;;
37300 esac
37301done
37302
37303# Double-quote double-evaled strings.
37304for var in reload_cmds \
37305old_postinstall_cmds \
37306old_postuninstall_cmds \
37307old_archive_cmds \
37308extract_expsyms_cmds \
37309old_archive_from_new_cmds \
37310old_archive_from_expsyms_cmds \
37311archive_cmds \
37312archive_expsym_cmds \
37313module_cmds \
37314module_expsym_cmds \
37315export_symbols_cmds \
37316prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037317postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037318postinstall_cmds \
37319postuninstall_cmds \
37320finish_cmds \
37321sys_lib_search_path_spec \
37322sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037323reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037324old_archive_cmds_CXX \
37325old_archive_from_new_cmds_CXX \
37326old_archive_from_expsyms_cmds_CXX \
37327archive_cmds_CXX \
37328archive_expsym_cmds_CXX \
37329module_cmds_CXX \
37330module_expsym_cmds_CXX \
37331export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037332prelink_cmds_CXX \
37333postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037334 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037335 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037336 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037337 ;;
37338 *)
37339 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37340 ;;
37341 esac
37342done
37343
cristy73bd4a52010-10-05 11:24:23 +000037344ac_aux_dir='$ac_aux_dir'
37345xsi_shell='$xsi_shell'
37346lt_shell_append='$lt_shell_append'
37347
37348# See if we are running on zsh, and set the options which allow our
37349# commands through without removal of \ escapes INIT.
37350if test -n "\${ZSH_VERSION+set}" ; then
37351 setopt NO_GLOB_SUBST
37352fi
37353
37354
37355 PACKAGE='$PACKAGE'
37356 VERSION='$VERSION'
37357 TIMESTAMP='$TIMESTAMP'
37358 RM='$RM'
37359 ofile='$ofile'
37360
37361
37362
37363
37364
37365
cristy3ed852e2009-09-05 21:47:34 +000037366_ACEOF
37367
37368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37369
37370# Handling of arguments.
37371for ac_config_target in $ac_config_targets
37372do
37373 case $ac_config_target in
37374 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037375 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037376 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037377 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37378 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37379 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37380 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37381 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037382 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037383 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037384 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37385 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37386 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37387 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37388 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037389 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037390 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037391 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37392 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37393 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037394 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37395 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037396 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037397 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037398 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037399 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037400 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37401 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37402 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37403 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037404 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37405 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37406 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37407 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37408 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37409 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37410 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37411 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37412 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37413 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37414 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37415 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037416 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37417 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037418 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37419 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037420 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037421 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037422 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037423 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037424 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37425 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37426
cristy98dddb52010-11-04 00:30:15 +000037427 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037428 esac
37429done
37430
37431
37432# If the user did not use the arguments to specify the items to instantiate,
37433# then the envvar interface is used. Set only those that are not.
37434# We use the long form for the default assignment because of an extremely
37435# bizarre bug on SunOS 4.1.3.
37436if $ac_need_defaults; then
37437 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37438 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37439 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37440fi
37441
37442# Have a temporary directory for convenience. Make it in the build tree
37443# simply because there is no reason against having it here, and in addition,
37444# creating and moving files from /tmp can sometimes cause problems.
37445# Hook for its removal unless debugging.
37446# Note that there is a small window in which the directory will not be cleaned:
37447# after its creation but before its name has been assigned to `$tmp'.
37448$debug ||
37449{
cristyda16f162011-02-19 23:52:17 +000037450 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037451 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037452 : "${ac_tmp:=$tmp}"
37453 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037454' 0
cristy8b350f62009-11-15 23:12:43 +000037455 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037456}
37457# Create a (secure) tmp directory for tmp files.
37458
37459{
37460 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037461 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037462} ||
37463{
37464 tmp=./conf$$-$RANDOM
37465 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037466} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037467ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037468
37469# Set up the scripts for CONFIG_FILES section.
37470# No need to generate them if there are no CONFIG_FILES.
37471# This happens for instance with `./config.status config.h'.
37472if test -n "$CONFIG_FILES"; then
37473
37474
cristy8b350f62009-11-15 23:12:43 +000037475ac_cr=`echo X | tr X '\015'`
37476# On cygwin, bash can eat \r inside `` if the user requested igncr.
37477# But we know of no other shell where ac_cr would be empty at this
37478# point, so we can use a bashism as a fallback.
37479if test "x$ac_cr" = x; then
37480 eval ac_cr=\$\'\\r\'
37481fi
cristy3ed852e2009-09-05 21:47:34 +000037482ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37483if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037484 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037485else
37486 ac_cs_awk_cr=$ac_cr
37487fi
37488
cristyda16f162011-02-19 23:52:17 +000037489echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037490_ACEOF
37491
37492
37493{
37494 echo "cat >conf$$subs.awk <<_ACEOF" &&
37495 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37496 echo "_ACEOF"
37497} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037498 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37499ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037500ac_delim='%!_!# '
37501for ac_last_try in false false false false false :; do
37502 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037503 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037504
37505 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37506 if test $ac_delim_n = $ac_delim_num; then
37507 break
37508 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037509 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037510 else
37511 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37512 fi
37513done
37514rm -f conf$$subs.sh
37515
37516cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037517cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037518_ACEOF
37519sed -n '
37520h
37521s/^/S["/; s/!.*/"]=/
37522p
37523g
37524s/^[^!]*!//
37525:repl
37526t repl
37527s/'"$ac_delim"'$//
37528t delim
37529:nl
37530h
cristycd4c5312009-11-22 01:19:08 +000037531s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037532t more1
37533s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37534p
37535n
37536b repl
37537:more1
37538s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37539p
37540g
37541s/.\{148\}//
37542t nl
37543:delim
37544h
cristycd4c5312009-11-22 01:19:08 +000037545s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037546t more2
37547s/["\\]/\\&/g; s/^/"/; s/$/"/
37548p
37549b
37550:more2
37551s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37552p
37553g
37554s/.\{148\}//
37555t delim
37556' <conf$$subs.awk | sed '
37557/^[^""]/{
37558 N
37559 s/\n//
37560}
37561' >>$CONFIG_STATUS || ac_write_fail=1
37562rm -f conf$$subs.awk
37563cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37564_ACAWK
cristyda16f162011-02-19 23:52:17 +000037565cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037566 for (key in S) S_is_set[key] = 1
37567 FS = ""
37568
37569}
37570{
37571 line = $ 0
37572 nfields = split(line, field, "@")
37573 substed = 0
37574 len = length(field[1])
37575 for (i = 2; i < nfields; i++) {
37576 key = field[i]
37577 keylen = length(key)
37578 if (S_is_set[key]) {
37579 value = S[key]
37580 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37581 len += length(value) + length(field[++i])
37582 substed = 1
37583 } else
37584 len += 1 + keylen
37585 }
37586
37587 print line
37588}
37589
37590_ACAWK
37591_ACEOF
37592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37593if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37594 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37595else
37596 cat
cristyda16f162011-02-19 23:52:17 +000037597fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037598 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037599_ACEOF
37600
cristy98dddb52010-11-04 00:30:15 +000037601# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37602# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037603# trailing colons and then remove the whole line if VPATH becomes empty
37604# (actually we leave an empty line to preserve line numbers).
37605if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037606 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37607h
37608s///
37609s/^/:/
37610s/[ ]*$/:/
37611s/:\$(srcdir):/:/g
37612s/:\${srcdir}:/:/g
37613s/:@srcdir@:/:/g
37614s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037615s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037616x
37617s/\(=[ ]*\).*/\1/
37618G
37619s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037620s/^[^=]*=[ ]*$//
37621}'
37622fi
37623
37624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37625fi # test -n "$CONFIG_FILES"
37626
37627# Set up the scripts for CONFIG_HEADERS section.
37628# No need to generate them if there are no CONFIG_HEADERS.
37629# This happens for instance with `./config.status Makefile'.
37630if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037631cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037632BEGIN {
37633_ACEOF
37634
37635# Transform confdefs.h into an awk script `defines.awk', embedded as
37636# here-document in config.status, that substitutes the proper values into
37637# config.h.in to produce config.h.
37638
37639# Create a delimiter string that does not exist in confdefs.h, to ease
37640# handling of long lines.
37641ac_delim='%!_!# '
37642for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037643 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37644 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037645 break
37646 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037647 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037648 else
37649 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37650 fi
37651done
37652
37653# For the awk script, D is an array of macro values keyed by name,
37654# likewise P contains macro parameters if any. Preserve backslash
37655# newline sequences.
37656
37657ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37658sed -n '
37659s/.\{148\}/&'"$ac_delim"'/g
37660t rset
37661:rset
37662s/^[ ]*#[ ]*define[ ][ ]*/ /
37663t def
37664d
37665:def
37666s/\\$//
37667t bsnl
37668s/["\\]/\\&/g
37669s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37670D["\1"]=" \3"/p
37671s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37672d
37673:bsnl
37674s/["\\]/\\&/g
37675s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37676D["\1"]=" \3\\\\\\n"\\/p
37677t cont
37678s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37679t cont
37680d
37681:cont
37682n
37683s/.\{148\}/&'"$ac_delim"'/g
37684t clear
37685:clear
37686s/\\$//
37687t bsnlc
37688s/["\\]/\\&/g; s/^/"/; s/$/"/p
37689d
37690:bsnlc
37691s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37692b cont
37693' <confdefs.h | sed '
37694s/'"$ac_delim"'/"\\\
37695"/g' >>$CONFIG_STATUS || ac_write_fail=1
37696
37697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37698 for (key in D) D_is_set[key] = 1
37699 FS = ""
37700}
37701/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37702 line = \$ 0
37703 split(line, arg, " ")
37704 if (arg[1] == "#") {
37705 defundef = arg[2]
37706 mac1 = arg[3]
37707 } else {
37708 defundef = substr(arg[1], 2)
37709 mac1 = arg[2]
37710 }
37711 split(mac1, mac2, "(") #)
37712 macro = mac2[1]
37713 prefix = substr(line, 1, index(line, defundef) - 1)
37714 if (D_is_set[macro]) {
37715 # Preserve the white space surrounding the "#".
37716 print prefix "define", macro P[macro] D[macro]
37717 next
37718 } else {
37719 # Replace #undef with comments. This is necessary, for example,
37720 # in the case of _POSIX_SOURCE, which is predefined and required
37721 # on some systems where configure will not decide to define it.
37722 if (defundef == "undef") {
37723 print "/*", prefix defundef, macro, "*/"
37724 next
37725 }
37726 }
37727}
37728{ print }
37729_ACAWK
37730_ACEOF
37731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037732 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037733fi # test -n "$CONFIG_HEADERS"
37734
37735
37736eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37737shift
37738for ac_tag
37739do
37740 case $ac_tag in
37741 :[FHLC]) ac_mode=$ac_tag; continue;;
37742 esac
37743 case $ac_mode$ac_tag in
37744 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037745 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037746 :[FH]-) ac_tag=-:-;;
37747 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37748 esac
37749 ac_save_IFS=$IFS
37750 IFS=:
37751 set x $ac_tag
37752 IFS=$ac_save_IFS
37753 shift
37754 ac_file=$1
37755 shift
37756
37757 case $ac_mode in
37758 :L) ac_source=$1;;
37759 :[FH])
37760 ac_file_inputs=
37761 for ac_f
37762 do
37763 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037764 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037765 *) # Look for the file first in the build tree, then in the source tree
37766 # (if the path is not absolute). The absolute path cannot be DOS-style,
37767 # because $ac_f cannot contain `:'.
37768 test -f "$ac_f" ||
37769 case $ac_f in
37770 [\\/$]*) false;;
37771 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37772 esac ||
cristy98dddb52010-11-04 00:30:15 +000037773 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037774 esac
37775 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037776 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037777 done
37778
37779 # Let's still pretend it is `configure' which instantiates (i.e., don't
37780 # use $as_me), people would be surprised to read:
37781 # /* config.h. Generated by config.status. */
37782 configure_input='Generated from '`
37783 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37784 `' by configure.'
37785 if test x"$ac_file" != x-; then
37786 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037787 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037788$as_echo "$as_me: creating $ac_file" >&6;}
37789 fi
37790 # Neutralize special characters interpreted by sed in replacement strings.
37791 case $configure_input in #(
37792 *\&* | *\|* | *\\* )
37793 ac_sed_conf_input=`$as_echo "$configure_input" |
37794 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37795 *) ac_sed_conf_input=$configure_input;;
37796 esac
37797
37798 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037799 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037800 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037801 esac
37802 ;;
37803 esac
37804
37805 ac_dir=`$as_dirname -- "$ac_file" ||
37806$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37807 X"$ac_file" : 'X\(//\)[^/]' \| \
37808 X"$ac_file" : 'X\(//\)$' \| \
37809 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37810$as_echo X"$ac_file" |
37811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37812 s//\1/
37813 q
37814 }
37815 /^X\(\/\/\)[^/].*/{
37816 s//\1/
37817 q
37818 }
37819 /^X\(\/\/\)$/{
37820 s//\1/
37821 q
37822 }
37823 /^X\(\/\).*/{
37824 s//\1/
37825 q
37826 }
37827 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037828 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037829 ac_builddir=.
37830
37831case "$ac_dir" in
37832.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37833*)
37834 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37835 # A ".." for each directory in $ac_dir_suffix.
37836 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37837 case $ac_top_builddir_sub in
37838 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37839 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37840 esac ;;
37841esac
37842ac_abs_top_builddir=$ac_pwd
37843ac_abs_builddir=$ac_pwd$ac_dir_suffix
37844# for backward compatibility:
37845ac_top_builddir=$ac_top_build_prefix
37846
37847case $srcdir in
37848 .) # We are building in place.
37849 ac_srcdir=.
37850 ac_top_srcdir=$ac_top_builddir_sub
37851 ac_abs_top_srcdir=$ac_pwd ;;
37852 [\\/]* | ?:[\\/]* ) # Absolute name.
37853 ac_srcdir=$srcdir$ac_dir_suffix;
37854 ac_top_srcdir=$srcdir
37855 ac_abs_top_srcdir=$srcdir ;;
37856 *) # Relative name.
37857 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37858 ac_top_srcdir=$ac_top_build_prefix$srcdir
37859 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37860esac
37861ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37862
37863
37864 case $ac_mode in
37865 :F)
37866 #
37867 # CONFIG_FILE
37868 #
37869
37870 case $INSTALL in
37871 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37872 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37873 esac
cristy73bd4a52010-10-05 11:24:23 +000037874 ac_MKDIR_P=$MKDIR_P
37875 case $MKDIR_P in
37876 [\\/$]* | ?:[\\/]* ) ;;
37877 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37878 esac
cristy3ed852e2009-09-05 21:47:34 +000037879_ACEOF
37880
37881cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37882# If the template does not know about datarootdir, expand it.
37883# FIXME: This hack should be removed a few years after 2.60.
37884ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037885ac_sed_dataroot='
37886/datarootdir/ {
37887 p
37888 q
37889}
37890/@datadir@/p
37891/@docdir@/p
37892/@infodir@/p
37893/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037894/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037895case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37896*datarootdir*) ac_datarootdir_seen=yes;;
37897*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037899$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37900_ACEOF
37901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37902 ac_datarootdir_hack='
37903 s&@datadir@&$datadir&g
37904 s&@docdir@&$docdir&g
37905 s&@infodir@&$infodir&g
37906 s&@localedir@&$localedir&g
37907 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037908 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037909esac
37910_ACEOF
37911
37912# Neutralize VPATH when `$srcdir' = `.'.
37913# Shell code in configure.ac might set extrasub.
37914# FIXME: do we really want to maintain this feature?
37915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37916ac_sed_extra="$ac_vpsub
37917$extrasub
37918_ACEOF
37919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37920:t
37921/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37922s|@configure_input@|$ac_sed_conf_input|;t t
37923s&@top_builddir@&$ac_top_builddir_sub&;t t
37924s&@top_build_prefix@&$ac_top_build_prefix&;t t
37925s&@srcdir@&$ac_srcdir&;t t
37926s&@abs_srcdir@&$ac_abs_srcdir&;t t
37927s&@top_srcdir@&$ac_top_srcdir&;t t
37928s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37929s&@builddir@&$ac_builddir&;t t
37930s&@abs_builddir@&$ac_abs_builddir&;t t
37931s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37932s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037933s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037934$ac_datarootdir_hack
37935"
cristyda16f162011-02-19 23:52:17 +000037936eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37937 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037938
37939test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037940 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37941 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37942 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037944which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037945$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037946which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037947
cristyda16f162011-02-19 23:52:17 +000037948 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037949 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037950 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37951 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037952 esac \
cristy98dddb52010-11-04 00:30:15 +000037953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037954 ;;
37955 :H)
37956 #
37957 # CONFIG_HEADER
37958 #
37959 if test x"$ac_file" != x-; then
37960 {
37961 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037962 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37963 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037964 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037965 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037966 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037967$as_echo "$as_me: $ac_file is unchanged" >&6;}
37968 else
37969 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037970 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037972 fi
37973 else
37974 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037975 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037976 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037977 fi
cristy73bd4a52010-10-05 11:24:23 +000037978# Compute "$ac_file"'s index in $config_headers.
37979_am_arg="$ac_file"
37980_am_stamp_count=1
37981for _am_header in $config_headers :; do
37982 case $_am_header in
37983 $_am_arg | $_am_arg:* )
37984 break ;;
37985 * )
37986 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37987 esac
37988done
37989echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37990$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37991 X"$_am_arg" : 'X\(//\)[^/]' \| \
37992 X"$_am_arg" : 'X\(//\)$' \| \
37993 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37994$as_echo X"$_am_arg" |
37995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37996 s//\1/
37997 q
37998 }
37999 /^X\(\/\/\)[^/].*/{
38000 s//\1/
38001 q
38002 }
38003 /^X\(\/\/\)$/{
38004 s//\1/
38005 q
38006 }
38007 /^X\(\/\).*/{
38008 s//\1/
38009 q
38010 }
38011 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000038012 ;;
38013
cristy8b350f62009-11-15 23:12:43 +000038014 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000038015$as_echo "$as_me: executing $ac_file commands" >&6;}
38016 ;;
38017 esac
38018
38019
38020 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000038021 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000038022ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
38023ac_prefix_conf_PKG=`echo MagickCore`
38024ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
38025ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
38026ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
38027if test ".$ac_prefix_conf_INP" = "."; then
38028 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
38029 case "$ac_file" in
38030 *.h) ac_prefix_conf_INP=$ac_file ;;
38031 *)
38032 esac
38033 test ".$ac_prefix_conf_INP" != "." && break
38034 done
38035fi
38036if test ".$ac_prefix_conf_INP" = "."; then
38037 case "$ac_prefix_conf_OUT" in
38038 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
38039 ;;
38040 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
38041 ;;
38042 *) ac_prefix_conf_INP=config.h
38043 ;;
38044 esac
38045fi
38046if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000038047 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000038048else
38049 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
38050 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
38051 fi fi
38052 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
38053$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
38054 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000038055 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
38056 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
38057 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
38058 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
38059 $as_echo "#endif/" >> conftest.prefix
38060 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
38061 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
38062 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000038063 # now executing _script on _DEF input to create _OUT output file
38064 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
38065 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
38066 echo ' ' >>$tmp/pconfig.h
38067 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
38068
38069 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
38070 echo ' ' >>$tmp/pconfig.h
38071 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
38072 echo "#endif" >>$tmp/pconfig.h
38073 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38074 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38075$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38076 else
38077 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38078$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38079 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38080 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38081 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38082$as_echo X"$ac_prefix_conf_OUT" |
38083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38084 s//\1/
38085 q
38086 }
38087 /^X\(\/\/\)[^/].*/{
38088 s//\1/
38089 q
38090 }
38091 /^X\(\/\/\)$/{
38092 s//\1/
38093 q
38094 }
38095 /^X\(\/\).*/{
38096 s//\1/
38097 q
38098 }
38099 s/.*/./; q'`
38100 as_dir="$ac_dir"; as_fn_mkdir_p
38101 rm -f "$ac_prefix_conf_OUT"
38102 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38103 fi
38104 cp conftest.prefix _configs.sed
38105 else
cristy98dddb52010-11-04 00:30:15 +000038106 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 +000038107 fi
38108 rm -f conftest.*
38109fi
38110 ;;
38111 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000038112 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000038113 # are listed without --file. Let's play safe and only enable the eval
38114 # if we detect the quoting.
38115 case $CONFIG_FILES in
38116 *\'*) eval set x "$CONFIG_FILES" ;;
38117 *) set x $CONFIG_FILES ;;
38118 esac
38119 shift
38120 for mf
38121 do
38122 # Strip MF so we end up with the name of the file.
38123 mf=`echo "$mf" | sed -e 's/:.*$//'`
38124 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038125 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038126 # some people rename them; so instead we look at the file content.
38127 # Grep'ing the first line is not enough: some people post-process
38128 # each Makefile.in and add a new line on top of each file to say so.
38129 # Grep'ing the whole file is not good either: AIX grep has a line
38130 # limit of 2048, but all sed's we know have understand at least 4000.
38131 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38132 dirpart=`$as_dirname -- "$mf" ||
38133$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38134 X"$mf" : 'X\(//\)[^/]' \| \
38135 X"$mf" : 'X\(//\)$' \| \
38136 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38137$as_echo X"$mf" |
38138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38139 s//\1/
38140 q
38141 }
38142 /^X\(\/\/\)[^/].*/{
38143 s//\1/
38144 q
38145 }
38146 /^X\(\/\/\)$/{
38147 s//\1/
38148 q
38149 }
38150 /^X\(\/\).*/{
38151 s//\1/
38152 q
38153 }
38154 s/.*/./; q'`
38155 else
38156 continue
38157 fi
38158 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038159 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038160 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38161 test -z "$DEPDIR" && continue
38162 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038163 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038164 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038165 # Find all dependency output files, they are included files with
38166 # $(DEPDIR) in their names. We invoke sed twice because it is the
38167 # simplest approach to changing $(DEPDIR) to its actual value in the
38168 # expansion.
38169 for file in `sed -n "
38170 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038171 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038172 # Make sure the directory exists.
38173 test -f "$dirpart/$file" && continue
38174 fdir=`$as_dirname -- "$file" ||
38175$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38176 X"$file" : 'X\(//\)[^/]' \| \
38177 X"$file" : 'X\(//\)$' \| \
38178 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38179$as_echo X"$file" |
38180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38181 s//\1/
38182 q
38183 }
38184 /^X\(\/\/\)[^/].*/{
38185 s//\1/
38186 q
38187 }
38188 /^X\(\/\/\)$/{
38189 s//\1/
38190 q
38191 }
38192 /^X\(\/\).*/{
38193 s//\1/
38194 q
38195 }
38196 s/.*/./; q'`
38197 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38198 # echo "creating $dirpart/$file"
38199 echo '# dummy' > "$dirpart/$file"
38200 done
38201 done
38202}
38203 ;;
38204 "libtool":C)
38205
38206 # See if we are running on zsh, and set the options which allow our
38207 # commands through without removal of \ escapes.
38208 if test -n "${ZSH_VERSION+set}" ; then
38209 setopt NO_GLOB_SUBST
38210 fi
38211
38212 cfgfile="${ofile}T"
38213 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38214 $RM "$cfgfile"
38215
38216 cat <<_LT_EOF >> "$cfgfile"
38217#! $SHELL
38218
38219# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38220# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38221# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38222# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38223#
38224# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038225# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38226# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038227# Written by Gordon Matzigkeit, 1996
38228#
38229# This file is part of GNU Libtool.
38230#
38231# GNU Libtool is free software; you can redistribute it and/or
38232# modify it under the terms of the GNU General Public License as
38233# published by the Free Software Foundation; either version 2 of
38234# the License, or (at your option) any later version.
38235#
38236# As a special exception to the GNU General Public License,
38237# if you distribute this file as part of a program or library that
38238# is built using GNU Libtool, you may include this file under the
38239# same distribution terms that you use for the rest of that program.
38240#
38241# GNU Libtool is distributed in the hope that it will be useful,
38242# but WITHOUT ANY WARRANTY; without even the implied warranty of
38243# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38244# GNU General Public License for more details.
38245#
38246# You should have received a copy of the GNU General Public License
38247# along with GNU Libtool; see the file COPYING. If not, a copy
38248# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38249# obtained by writing to the Free Software Foundation, Inc.,
38250# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38251
38252
38253# The names of the tagged configurations supported by this script.
38254available_tags="CXX "
38255
38256# ### BEGIN LIBTOOL CONFIG
38257
38258# A sed program that does not truncate output.
38259SED=$lt_SED
38260
38261# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38262Xsed="\$SED -e 1s/^X//"
38263
38264# A grep program that handles long lines.
38265GREP=$lt_GREP
38266
38267# An ERE matcher.
38268EGREP=$lt_EGREP
38269
38270# A literal string matcher.
38271FGREP=$lt_FGREP
38272
cristy0c60a692010-11-04 01:09:47 +000038273# Shell to use when invoking shell scripts.
38274SHELL=$lt_SHELL
38275
38276# An echo program that protects backslashes.
38277ECHO=$lt_ECHO
38278
cristy73bd4a52010-10-05 11:24:23 +000038279# Which release of libtool.m4 was used?
38280macro_version=$macro_version
38281macro_revision=$macro_revision
38282
38283# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038284AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038285
38286# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038287DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038288
38289# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038290OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038291
38292# Whether or not to build shared libraries.
38293build_libtool_libs=$enable_shared
38294
38295# Whether or not to build static libraries.
38296build_old_libs=$enable_static
38297
38298# What type of objects to build.
38299pic_mode=$pic_mode
38300
38301# Whether or not to optimize for fast installation.
38302fast_install=$enable_fast_install
38303
cristy99bd5232011-12-07 14:38:20 +000038304# The PATH separator for the build system.
38305PATH_SEPARATOR=$lt_PATH_SEPARATOR
38306
cristy73bd4a52010-10-05 11:24:23 +000038307# The host system.
38308host_alias=$host_alias
38309host=$host
38310host_os=$host_os
38311
38312# The build system.
38313build_alias=$build_alias
38314build=$build
38315build_os=$build_os
38316
38317# A BSD- or MS-compatible name lister.
38318NM=$lt_NM
38319
38320# Whether we need soft or hard links.
38321LN_S=$lt_LN_S
38322
38323# What is the maximum length of a command?
38324max_cmd_len=$max_cmd_len
38325
38326# Object file suffix (normally "o").
38327objext=$ac_objext
38328
38329# Executable file suffix (normally "").
38330exeext=$exeext
38331
38332# whether the shell understands "unset".
38333lt_unset=$lt_unset
38334
38335# turn spaces into newlines.
38336SP2NL=$lt_lt_SP2NL
38337
38338# turn newlines into spaces.
38339NL2SP=$lt_lt_NL2SP
38340
cristyda16f162011-02-19 23:52:17 +000038341# convert \$build file names to \$host format.
38342to_host_file_cmd=$lt_cv_to_host_file_cmd
38343
38344# convert \$build files to toolchain format.
38345to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38346
cristy73bd4a52010-10-05 11:24:23 +000038347# Method to check whether dependent libraries are shared objects.
38348deplibs_check_method=$lt_deplibs_check_method
38349
cristyda16f162011-02-19 23:52:17 +000038350# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038351file_magic_cmd=$lt_file_magic_cmd
38352
cristyda16f162011-02-19 23:52:17 +000038353# How to find potential files when deplibs_check_method = "file_magic".
38354file_magic_glob=$lt_file_magic_glob
38355
38356# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38357want_nocaseglob=$lt_want_nocaseglob
38358
38359# Command to associate shared and link libraries.
38360sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38361
cristy73bd4a52010-10-05 11:24:23 +000038362# The archiver.
38363AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038364
38365# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038366AR_FLAGS=$lt_AR_FLAGS
38367
cristyda16f162011-02-19 23:52:17 +000038368# How to feed a file listing to the archiver.
38369archiver_list_spec=$lt_archiver_list_spec
38370
cristy73bd4a52010-10-05 11:24:23 +000038371# A symbol stripping program.
38372STRIP=$lt_STRIP
38373
38374# Commands used to install an old-style archive.
38375RANLIB=$lt_RANLIB
38376old_postinstall_cmds=$lt_old_postinstall_cmds
38377old_postuninstall_cmds=$lt_old_postuninstall_cmds
38378
cristy0c60a692010-11-04 01:09:47 +000038379# Whether to use a lock for old archive extraction.
38380lock_old_archive_extraction=$lock_old_archive_extraction
38381
cristy73bd4a52010-10-05 11:24:23 +000038382# A C compiler.
38383LTCC=$lt_CC
38384
38385# LTCC compiler flags.
38386LTCFLAGS=$lt_CFLAGS
38387
38388# Take the output of nm and produce a listing of raw symbols and C names.
38389global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38390
38391# Transform the output of nm in a proper C declaration.
38392global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38393
38394# Transform the output of nm in a C name address pair.
38395global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38396
38397# Transform the output of nm in a C name address pair when lib prefix is needed.
38398global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38399
cristyda16f162011-02-19 23:52:17 +000038400# Specify filename containing input files for \$NM.
38401nm_file_list_spec=$lt_nm_file_list_spec
38402
38403# The root where to search for dependent libraries,and in which our libraries should be installed.
38404lt_sysroot=$lt_sysroot
38405
cristy73bd4a52010-10-05 11:24:23 +000038406# The name of the directory that contains temporary libtool files.
38407objdir=$objdir
38408
cristy73bd4a52010-10-05 11:24:23 +000038409# Used to examine libraries when file_magic_cmd begins with "file".
38410MAGIC_CMD=$MAGIC_CMD
38411
38412# Must we lock files when doing compilation?
38413need_locks=$lt_need_locks
38414
cristyda16f162011-02-19 23:52:17 +000038415# Manifest tool.
38416MANIFEST_TOOL=$lt_MANIFEST_TOOL
38417
cristy73bd4a52010-10-05 11:24:23 +000038418# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38419DSYMUTIL=$lt_DSYMUTIL
38420
38421# Tool to change global to local symbols on Mac OS X.
38422NMEDIT=$lt_NMEDIT
38423
38424# Tool to manipulate fat objects and archives on Mac OS X.
38425LIPO=$lt_LIPO
38426
38427# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38428OTOOL=$lt_OTOOL
38429
38430# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38431OTOOL64=$lt_OTOOL64
38432
38433# Old archive suffix (normally "a").
38434libext=$libext
38435
38436# Shared library suffix (normally ".so").
38437shrext_cmds=$lt_shrext_cmds
38438
38439# The commands to extract the exported symbol list from a shared archive.
38440extract_expsyms_cmds=$lt_extract_expsyms_cmds
38441
38442# Variables whose values should be saved in libtool wrapper scripts and
38443# restored at link time.
38444variables_saved_for_relink=$lt_variables_saved_for_relink
38445
38446# Do we need the "lib" prefix for modules?
38447need_lib_prefix=$need_lib_prefix
38448
38449# Do we need a version for libraries?
38450need_version=$need_version
38451
38452# Library versioning type.
38453version_type=$version_type
38454
38455# Shared library runtime path variable.
38456runpath_var=$runpath_var
38457
38458# Shared library path variable.
38459shlibpath_var=$shlibpath_var
38460
38461# Is shlibpath searched before the hard-coded library search path?
38462shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38463
38464# Format of library name prefix.
38465libname_spec=$lt_libname_spec
38466
38467# List of archive names. First name is the real one, the rest are links.
38468# The last name is the one that the linker finds with -lNAME
38469library_names_spec=$lt_library_names_spec
38470
38471# The coded name of the library, if different from the real name.
38472soname_spec=$lt_soname_spec
38473
cristy0c60a692010-11-04 01:09:47 +000038474# Permission mode override for installation of shared libraries.
38475install_override_mode=$lt_install_override_mode
38476
cristy73bd4a52010-10-05 11:24:23 +000038477# Command to use after installation of a shared archive.
38478postinstall_cmds=$lt_postinstall_cmds
38479
38480# Command to use after uninstallation of a shared archive.
38481postuninstall_cmds=$lt_postuninstall_cmds
38482
38483# Commands used to finish a libtool library installation in a directory.
38484finish_cmds=$lt_finish_cmds
38485
38486# As "finish_cmds", except a single script fragment to be evaled but
38487# not shown.
38488finish_eval=$lt_finish_eval
38489
38490# Whether we should hardcode library paths into libraries.
38491hardcode_into_libs=$hardcode_into_libs
38492
38493# Compile-time system search path for libraries.
38494sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38495
38496# Run-time system search path for libraries.
38497sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38498
38499# Whether dlopen is supported.
38500dlopen_support=$enable_dlopen
38501
38502# Whether dlopen of programs is supported.
38503dlopen_self=$enable_dlopen_self
38504
38505# Whether dlopen of statically linked programs is supported.
38506dlopen_self_static=$enable_dlopen_self_static
38507
38508# Commands to strip libraries.
38509old_striplib=$lt_old_striplib
38510striplib=$lt_striplib
38511
38512
38513# The linker used to build libraries.
38514LD=$lt_LD
38515
cristy0c60a692010-11-04 01:09:47 +000038516# How to create reloadable object files.
38517reload_flag=$lt_reload_flag
38518reload_cmds=$lt_reload_cmds
38519
cristy73bd4a52010-10-05 11:24:23 +000038520# Commands used to build an old-style archive.
38521old_archive_cmds=$lt_old_archive_cmds
38522
38523# A language specific compiler.
38524CC=$lt_compiler
38525
38526# Is the compiler the GNU compiler?
38527with_gcc=$GCC
38528
38529# Compiler flag to turn off builtin functions.
38530no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38531
cristy73bd4a52010-10-05 11:24:23 +000038532# Additional compiler flags for building library objects.
38533pic_flag=$lt_lt_prog_compiler_pic
38534
cristyda16f162011-02-19 23:52:17 +000038535# How to pass a linker flag through the compiler.
38536wl=$lt_lt_prog_compiler_wl
38537
cristy73bd4a52010-10-05 11:24:23 +000038538# Compiler flag to prevent dynamic linking.
38539link_static_flag=$lt_lt_prog_compiler_static
38540
38541# Does compiler simultaneously support -c and -o options?
38542compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38543
38544# Whether or not to add -lc for building shared libraries.
38545build_libtool_need_lc=$archive_cmds_need_lc
38546
38547# Whether or not to disallow shared libs when runtime libs are static.
38548allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38549
38550# Compiler flag to allow reflexive dlopens.
38551export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38552
38553# Compiler flag to generate shared objects directly from archives.
38554whole_archive_flag_spec=$lt_whole_archive_flag_spec
38555
38556# Whether the compiler copes with passing no objects directly.
38557compiler_needs_object=$lt_compiler_needs_object
38558
38559# Create an old-style archive from a shared archive.
38560old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38561
38562# Create a temporary old-style archive to link instead of a shared archive.
38563old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38564
38565# Commands used to build a shared archive.
38566archive_cmds=$lt_archive_cmds
38567archive_expsym_cmds=$lt_archive_expsym_cmds
38568
38569# Commands used to build a loadable module if different from building
38570# a shared archive.
38571module_cmds=$lt_module_cmds
38572module_expsym_cmds=$lt_module_expsym_cmds
38573
38574# Whether we are building with GNU ld or not.
38575with_gnu_ld=$lt_with_gnu_ld
38576
38577# Flag that allows shared libraries with undefined symbols to be built.
38578allow_undefined_flag=$lt_allow_undefined_flag
38579
38580# Flag that enforces no undefined symbols.
38581no_undefined_flag=$lt_no_undefined_flag
38582
38583# Flag to hardcode \$libdir into a binary during linking.
38584# This must work even if \$libdir does not exist
38585hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38586
cristy73bd4a52010-10-05 11:24:23 +000038587# Whether we need a single "-rpath" flag with a separated argument.
38588hardcode_libdir_separator=$lt_hardcode_libdir_separator
38589
38590# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38591# DIR into the resulting binary.
38592hardcode_direct=$hardcode_direct
38593
38594# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38595# DIR into the resulting binary and the resulting library dependency is
38596# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38597# library is relocated.
38598hardcode_direct_absolute=$hardcode_direct_absolute
38599
38600# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38601# into the resulting binary.
38602hardcode_minus_L=$hardcode_minus_L
38603
38604# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38605# into the resulting binary.
38606hardcode_shlibpath_var=$hardcode_shlibpath_var
38607
38608# Set to "yes" if building a shared library automatically hardcodes DIR
38609# into the library and all subsequent libraries and executables linked
38610# against it.
38611hardcode_automatic=$hardcode_automatic
38612
38613# Set to yes if linker adds runtime paths of dependent libraries
38614# to runtime path list.
38615inherit_rpath=$inherit_rpath
38616
38617# Whether libtool must link a program against all its dependency libraries.
38618link_all_deplibs=$link_all_deplibs
38619
cristy73bd4a52010-10-05 11:24:23 +000038620# Set to "yes" if exported symbols are required.
38621always_export_symbols=$always_export_symbols
38622
38623# The commands to list exported symbols.
38624export_symbols_cmds=$lt_export_symbols_cmds
38625
38626# Symbols that should not be listed in the preloaded symbols.
38627exclude_expsyms=$lt_exclude_expsyms
38628
38629# Symbols that must always be exported.
38630include_expsyms=$lt_include_expsyms
38631
38632# Commands necessary for linking programs (against libraries) with templates.
38633prelink_cmds=$lt_prelink_cmds
38634
cristyda16f162011-02-19 23:52:17 +000038635# Commands necessary for finishing linking programs.
38636postlink_cmds=$lt_postlink_cmds
38637
cristy73bd4a52010-10-05 11:24:23 +000038638# Specify filename containing input files.
38639file_list_spec=$lt_file_list_spec
38640
38641# How to hardcode a shared library path into an executable.
38642hardcode_action=$hardcode_action
38643
38644# The directories searched by this compiler when creating a shared library.
38645compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38646
38647# Dependencies to place before and after the objects being linked to
38648# create a shared library.
38649predep_objects=$lt_predep_objects
38650postdep_objects=$lt_postdep_objects
38651predeps=$lt_predeps
38652postdeps=$lt_postdeps
38653
38654# The library search path used internally by the compiler when linking
38655# a shared library.
38656compiler_lib_search_path=$lt_compiler_lib_search_path
38657
38658# ### END LIBTOOL CONFIG
38659
38660_LT_EOF
38661
38662 case $host_os in
38663 aix3*)
38664 cat <<\_LT_EOF >> "$cfgfile"
38665# AIX sometimes has problems with the GCC collect2 program. For some
38666# reason, if we set the COLLECT_NAMES environment variable, the problems
38667# vanish in a puff of smoke.
38668if test "X${COLLECT_NAMES+set}" != Xset; then
38669 COLLECT_NAMES=
38670 export COLLECT_NAMES
38671fi
38672_LT_EOF
38673 ;;
38674 esac
38675
38676
38677ltmain="$ac_aux_dir/ltmain.sh"
38678
38679
38680 # We use sed instead of cat because bash on DJGPP gets confused if
38681 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38682 # text mode, it properly converts lines to CR/LF. This bash problem
38683 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038684 sed '$q' "$ltmain" >> "$cfgfile" \
38685 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038686
cristyda16f162011-02-19 23:52:17 +000038687 if test x"$xsi_shell" = xyes; then
38688 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38689func_dirname ()\
38690{\
38691\ case ${1} in\
38692\ */*) func_dirname_result="${1%/*}${2}" ;;\
38693\ * ) func_dirname_result="${3}" ;;\
38694\ esac\
38695} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38696 && mv -f "$cfgfile.tmp" "$cfgfile" \
38697 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38698test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038699
38700
cristyda16f162011-02-19 23:52:17 +000038701 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38702func_basename ()\
38703{\
38704\ func_basename_result="${1##*/}"\
38705} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38706 && mv -f "$cfgfile.tmp" "$cfgfile" \
38707 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38708test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038709
38710
cristyda16f162011-02-19 23:52:17 +000038711 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38712func_dirname_and_basename ()\
38713{\
38714\ case ${1} in\
38715\ */*) func_dirname_result="${1%/*}${2}" ;;\
38716\ * ) func_dirname_result="${3}" ;;\
38717\ esac\
38718\ func_basename_result="${1##*/}"\
38719} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38720 && mv -f "$cfgfile.tmp" "$cfgfile" \
38721 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38722test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038723
cristyda16f162011-02-19 23:52:17 +000038724
38725 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38726func_stripname ()\
38727{\
38728\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38729\ # positional parameters, so assign one to ordinary parameter first.\
38730\ func_stripname_result=${3}\
38731\ func_stripname_result=${func_stripname_result#"${1}"}\
38732\ func_stripname_result=${func_stripname_result%"${2}"}\
38733} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38734 && mv -f "$cfgfile.tmp" "$cfgfile" \
38735 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38736test 0 -eq $? || _lt_function_replace_fail=:
38737
38738
38739 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38740func_split_long_opt ()\
38741{\
38742\ func_split_long_opt_name=${1%%=*}\
38743\ func_split_long_opt_arg=${1#*=}\
38744} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38745 && mv -f "$cfgfile.tmp" "$cfgfile" \
38746 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38747test 0 -eq $? || _lt_function_replace_fail=:
38748
38749
38750 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38751func_split_short_opt ()\
38752{\
38753\ func_split_short_opt_arg=${1#??}\
38754\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38755} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38756 && mv -f "$cfgfile.tmp" "$cfgfile" \
38757 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38758test 0 -eq $? || _lt_function_replace_fail=:
38759
38760
38761 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38762func_lo2o ()\
38763{\
38764\ case ${1} in\
38765\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38766\ *) func_lo2o_result=${1} ;;\
38767\ esac\
38768} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38769 && mv -f "$cfgfile.tmp" "$cfgfile" \
38770 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38771test 0 -eq $? || _lt_function_replace_fail=:
38772
38773
38774 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38775func_xform ()\
38776{\
38777 func_xform_result=${1%.*}.lo\
38778} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38779 && mv -f "$cfgfile.tmp" "$cfgfile" \
38780 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38781test 0 -eq $? || _lt_function_replace_fail=:
38782
38783
38784 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38785func_arith ()\
38786{\
38787 func_arith_result=$(( $* ))\
38788} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38789 && mv -f "$cfgfile.tmp" "$cfgfile" \
38790 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38791test 0 -eq $? || _lt_function_replace_fail=:
38792
38793
38794 sed -e '/^func_len ()$/,/^} # func_len /c\
38795func_len ()\
38796{\
38797 func_len_result=${#1}\
38798} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38799 && mv -f "$cfgfile.tmp" "$cfgfile" \
38800 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38801test 0 -eq $? || _lt_function_replace_fail=:
38802
38803fi
38804
38805if test x"$lt_shell_append" = xyes; then
38806 sed -e '/^func_append ()$/,/^} # func_append /c\
38807func_append ()\
38808{\
38809 eval "${1}+=\\${2}"\
38810} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38811 && mv -f "$cfgfile.tmp" "$cfgfile" \
38812 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38813test 0 -eq $? || _lt_function_replace_fail=:
38814
38815
38816 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38817func_append_quoted ()\
38818{\
38819\ func_quote_for_eval "${2}"\
38820\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38821} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38822 && mv -f "$cfgfile.tmp" "$cfgfile" \
38823 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38824test 0 -eq $? || _lt_function_replace_fail=:
38825
38826
38827 # Save a `func_append' function call where possible by direct use of '+='
38828 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38829 && mv -f "$cfgfile.tmp" "$cfgfile" \
38830 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38831 test 0 -eq $? || _lt_function_replace_fail=:
38832else
38833 # Save a `func_append' function call even when '+=' is not available
38834 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38835 && mv -f "$cfgfile.tmp" "$cfgfile" \
38836 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38837 test 0 -eq $? || _lt_function_replace_fail=:
38838fi
38839
38840if test x"$_lt_function_replace_fail" = x":"; then
38841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38842$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38843fi
38844
38845
38846 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038847 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38848 chmod +x "$ofile"
38849
38850
38851 cat <<_LT_EOF >> "$ofile"
38852
38853# ### BEGIN LIBTOOL TAG CONFIG: CXX
38854
38855# The linker used to build libraries.
38856LD=$lt_LD_CXX
38857
cristy0c60a692010-11-04 01:09:47 +000038858# How to create reloadable object files.
38859reload_flag=$lt_reload_flag_CXX
38860reload_cmds=$lt_reload_cmds_CXX
38861
cristy73bd4a52010-10-05 11:24:23 +000038862# Commands used to build an old-style archive.
38863old_archive_cmds=$lt_old_archive_cmds_CXX
38864
38865# A language specific compiler.
38866CC=$lt_compiler_CXX
38867
38868# Is the compiler the GNU compiler?
38869with_gcc=$GCC_CXX
38870
38871# Compiler flag to turn off builtin functions.
38872no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38873
cristy73bd4a52010-10-05 11:24:23 +000038874# Additional compiler flags for building library objects.
38875pic_flag=$lt_lt_prog_compiler_pic_CXX
38876
cristyda16f162011-02-19 23:52:17 +000038877# How to pass a linker flag through the compiler.
38878wl=$lt_lt_prog_compiler_wl_CXX
38879
cristy73bd4a52010-10-05 11:24:23 +000038880# Compiler flag to prevent dynamic linking.
38881link_static_flag=$lt_lt_prog_compiler_static_CXX
38882
38883# Does compiler simultaneously support -c and -o options?
38884compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38885
38886# Whether or not to add -lc for building shared libraries.
38887build_libtool_need_lc=$archive_cmds_need_lc_CXX
38888
38889# Whether or not to disallow shared libs when runtime libs are static.
38890allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38891
38892# Compiler flag to allow reflexive dlopens.
38893export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38894
38895# Compiler flag to generate shared objects directly from archives.
38896whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38897
38898# Whether the compiler copes with passing no objects directly.
38899compiler_needs_object=$lt_compiler_needs_object_CXX
38900
38901# Create an old-style archive from a shared archive.
38902old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38903
38904# Create a temporary old-style archive to link instead of a shared archive.
38905old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38906
38907# Commands used to build a shared archive.
38908archive_cmds=$lt_archive_cmds_CXX
38909archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38910
38911# Commands used to build a loadable module if different from building
38912# a shared archive.
38913module_cmds=$lt_module_cmds_CXX
38914module_expsym_cmds=$lt_module_expsym_cmds_CXX
38915
38916# Whether we are building with GNU ld or not.
38917with_gnu_ld=$lt_with_gnu_ld_CXX
38918
38919# Flag that allows shared libraries with undefined symbols to be built.
38920allow_undefined_flag=$lt_allow_undefined_flag_CXX
38921
38922# Flag that enforces no undefined symbols.
38923no_undefined_flag=$lt_no_undefined_flag_CXX
38924
38925# Flag to hardcode \$libdir into a binary during linking.
38926# This must work even if \$libdir does not exist
38927hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38928
cristy73bd4a52010-10-05 11:24:23 +000038929# Whether we need a single "-rpath" flag with a separated argument.
38930hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38931
38932# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38933# DIR into the resulting binary.
38934hardcode_direct=$hardcode_direct_CXX
38935
38936# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38937# DIR into the resulting binary and the resulting library dependency is
38938# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38939# library is relocated.
38940hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38941
38942# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38943# into the resulting binary.
38944hardcode_minus_L=$hardcode_minus_L_CXX
38945
38946# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38947# into the resulting binary.
38948hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38949
38950# Set to "yes" if building a shared library automatically hardcodes DIR
38951# into the library and all subsequent libraries and executables linked
38952# against it.
38953hardcode_automatic=$hardcode_automatic_CXX
38954
38955# Set to yes if linker adds runtime paths of dependent libraries
38956# to runtime path list.
38957inherit_rpath=$inherit_rpath_CXX
38958
38959# Whether libtool must link a program against all its dependency libraries.
38960link_all_deplibs=$link_all_deplibs_CXX
38961
cristy73bd4a52010-10-05 11:24:23 +000038962# Set to "yes" if exported symbols are required.
38963always_export_symbols=$always_export_symbols_CXX
38964
38965# The commands to list exported symbols.
38966export_symbols_cmds=$lt_export_symbols_cmds_CXX
38967
38968# Symbols that should not be listed in the preloaded symbols.
38969exclude_expsyms=$lt_exclude_expsyms_CXX
38970
38971# Symbols that must always be exported.
38972include_expsyms=$lt_include_expsyms_CXX
38973
38974# Commands necessary for linking programs (against libraries) with templates.
38975prelink_cmds=$lt_prelink_cmds_CXX
38976
cristyda16f162011-02-19 23:52:17 +000038977# Commands necessary for finishing linking programs.
38978postlink_cmds=$lt_postlink_cmds_CXX
38979
cristy73bd4a52010-10-05 11:24:23 +000038980# Specify filename containing input files.
38981file_list_spec=$lt_file_list_spec_CXX
38982
38983# How to hardcode a shared library path into an executable.
38984hardcode_action=$hardcode_action_CXX
38985
38986# The directories searched by this compiler when creating a shared library.
38987compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38988
38989# Dependencies to place before and after the objects being linked to
38990# create a shared library.
38991predep_objects=$lt_predep_objects_CXX
38992postdep_objects=$lt_postdep_objects_CXX
38993predeps=$lt_predeps_CXX
38994postdeps=$lt_postdeps_CXX
38995
38996# The library search path used internally by the compiler when linking
38997# a shared library.
38998compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38999
39000# ### END LIBTOOL TAG CONFIG: CXX
39001_LT_EOF
39002
39003 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000039004 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000039005 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000039006 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000039007 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
39008 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
39009
39010 esac
39011done # for ac_tag
39012
39013
cristy8b350f62009-11-15 23:12:43 +000039014as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000039015_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000039016ac_clean_files=$ac_clean_files_save
39017
39018test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000039019 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039020
39021
39022# configure is writing to config.log, and then calls config.status.
39023# config.status does its own redirection, appending to config.log.
39024# Unfortunately, on DOS this fails, as config.log is still kept open
39025# by configure, so config.status won't be able to write to it; its
39026# output is simply discarded. So we exec the FD to /dev/null,
39027# effectively closing config.log, so it can be properly (re)opened and
39028# appended to by config.status. When coming back to configure, we
39029# need to make the FD available again.
39030if test "$no_create" != yes; then
39031 ac_cs_success=:
39032 ac_config_status_args=
39033 test "$silent" = yes &&
39034 ac_config_status_args="$ac_config_status_args --quiet"
39035 exec 5>/dev/null
39036 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39037 exec 5>>config.log
39038 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39039 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000039040 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000039041fi
39042if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000039043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000039044$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39045fi
39046
39047
39048rm -f magick-version
39049
cristy430a7312010-01-21 20:44:04 +000039050result_dejavu_font_dir='none'
39051if test "${dejavu_font_dir}x" != 'x'; then
39052 result_dejavu_font_dir=$dejavu_font_dir
39053fi
39054
cristy3ed852e2009-09-05 21:47:34 +000039055result_ghostscript_font_dir='none'
39056if test "${ghostscript_font_dir}x" != 'x'; then
39057 result_ghostscript_font_dir=$ghostscript_font_dir
39058fi
39059
39060result_windows_font_dir='none'
39061if test "${windows_font_dir}x" != 'x'; then
39062 result_windows_font_dir=${windows_font_dir}
39063fi
39064
cristyad38abe2012-12-23 23:03:21 +000039065{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000039066ImageMagick is configured as follows. Please verify that this configuration
39067matches your expectations.
39068
39069Host system type: $host
39070Build system type: $build
39071
39072 Option Value
39073-------------------------------------------------------------------------------
39074Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39075Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039076Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039077GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39078Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39079High Dynamic Range Imagery
39080 --enable-hdri=$enable_hdri $enable_hdri
39081
39082Delegate Configuration:
39083BZLIB --with-bzlib=$with_bzlib $have_bzlib
39084Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000039085Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039086DJVU --with-djvu=$with_djvu $have_djvu
39087DPS --with-dps=$with_dps $have_dps
39088FFTW --with-fftw=$with_fftw $have_fftw
39089FlashPIX --with-fpx=$with_fpx $have_fpx
39090FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39091FreeType --with-freetype=$with_freetype $have_freetype
39092GhostPCL None $PCLDelegate ($PCLVersion)
39093GhostXPS None $XPSDelegate ($XPSVersion)
39094Ghostscript None $PSDelegate ($GSVersion)
39095Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39096Ghostscript lib --with-gslib=$with_gslib $have_gslib
39097Graphviz --with-gvc=$with_gvc $have_gvc
39098JBIG --with-jbig=$with_jbig $have_jbig
39099JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39100JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039101LCMS v1 --with-lcms=$with_lcms $have_lcms
39102LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000039103LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039104LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039105LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039106Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000039107MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000039108OpenEXR --with-openexr=$with_openexr $have_openexr
cristy3fe09452014-01-01 12:29:14 +000039109OpenJPEG --with-openjpeg=$with_openjpeg $have_openjpeg
cristy41cbe8a2011-10-27 01:35:18 +000039110PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039111PERL --with-perl=$with_perl $have_perl
39112PNG --with-png=$with_png $have_png
39113RSVG --with-rsvg=$with_rsvg $have_rsvg
39114TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039115WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039116Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000039117WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039118X11 --with-x=$with_x $have_x
39119XML --with-xml=$with_xml $have_xml
39120ZLIB --with-zlib=$with_zlib $have_zlib
39121
39122X11 Configuration:
39123 X_CFLAGS = $X_CFLAGS
39124 X_PRE_LIBS = $X_PRE_LIBS
39125 X_LIBS = $X_LIBS
39126 X_EXTRA_LIBS = $X_EXTRA_LIBS
39127
39128Options used to compile and link:
39129 PREFIX = $PREFIX_DIR
39130 EXEC-PREFIX = $EXEC_PREFIX_DIR
39131 VERSION = $PACKAGE_VERSION
39132 CC = $CC
39133 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039134 CPPFLAGS = $MAGICK_CPPFLAGS
39135 PCFLAGS = $MAGICK_PCFLAGS
39136 DEFS = $DEFS
39137 LDFLAGS = $LDFLAGS
39138 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39139 LIBS = $MAGICK_LIBS
39140 CXX = $CXX
39141 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039142 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039143 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000039144" >&5
cristyad38abe2012-12-23 23:03:21 +000039145$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000039146ImageMagick is configured as follows. Please verify that this configuration
39147matches your expectations.
39148
39149Host system type: $host
39150Build system type: $build
39151
39152 Option Value
39153-------------------------------------------------------------------------------
39154Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39155Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039156Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039157GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39158Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39159High Dynamic Range Imagery
39160 --enable-hdri=$enable_hdri $enable_hdri
39161
39162Delegate Configuration:
39163BZLIB --with-bzlib=$with_bzlib $have_bzlib
39164Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000039165Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039166DJVU --with-djvu=$with_djvu $have_djvu
39167DPS --with-dps=$with_dps $have_dps
39168FFTW --with-fftw=$with_fftw $have_fftw
39169FlashPIX --with-fpx=$with_fpx $have_fpx
39170FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39171FreeType --with-freetype=$with_freetype $have_freetype
39172GhostPCL None $PCLDelegate ($PCLVersion)
39173GhostXPS None $XPSDelegate ($XPSVersion)
39174Ghostscript None $PSDelegate ($GSVersion)
39175Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39176Ghostscript lib --with-gslib=$with_gslib $have_gslib
39177Graphviz --with-gvc=$with_gvc $have_gvc
39178JBIG --with-jbig=$with_jbig $have_jbig
39179JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39180JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039181LCMS v1 --with-lcms=$with_lcms $have_lcms
39182LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000039183LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039184LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039185LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039186Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000039187MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000039188OpenEXR --with-openexr=$with_openexr $have_openexr
cristy3fe09452014-01-01 12:29:14 +000039189OpenJPEG --with-openjpeg=$with_openjpeg $have_openjpeg
cristy41cbe8a2011-10-27 01:35:18 +000039190PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039191PERL --with-perl=$with_perl $have_perl
39192PNG --with-png=$with_png $have_png
39193RSVG --with-rsvg=$with_rsvg $have_rsvg
39194TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039195WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039196Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000039197WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039198X11 --with-x=$with_x $have_x
39199XML --with-xml=$with_xml $have_xml
39200ZLIB --with-zlib=$with_zlib $have_zlib
39201
39202X11 Configuration:
39203 X_CFLAGS = $X_CFLAGS
39204 X_PRE_LIBS = $X_PRE_LIBS
39205 X_LIBS = $X_LIBS
39206 X_EXTRA_LIBS = $X_EXTRA_LIBS
39207
39208Options used to compile and link:
39209 PREFIX = $PREFIX_DIR
39210 EXEC-PREFIX = $EXEC_PREFIX_DIR
39211 VERSION = $PACKAGE_VERSION
39212 CC = $CC
39213 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039214 CPPFLAGS = $MAGICK_CPPFLAGS
39215 PCFLAGS = $MAGICK_PCFLAGS
39216 DEFS = $DEFS
39217 LDFLAGS = $LDFLAGS
39218 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39219 LIBS = $MAGICK_LIBS
39220 CXX = $CXX
39221 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039222 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039223 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000039224" >&6; }