blob: 4e93fd5242407e54da25980b44ba34afdbbb7897 [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
cristy73bd4a52010-10-05 11:24:23 +0000791OPENEXR_DELEGATE_FALSE
792OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000793OPENEXR_LIBS
794OPENEXR_CFLAGS
cristy854c9cf2013-08-10 21:03:06 +0000795MUPDF_LIBS
796MUPDF_DELEGATE_FALSE
797MUPDF_DELEGATE_TRUE
cristyfbb0ef02010-12-19 02:32:11 +0000798LZMA_DELEGATE_FALSE
799LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000800LZMA_LIBS
801LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000802LQR_DELEGATE_FALSE
803LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000804LQR_LIBS
805LQR_CFLAGS
cristy99db3872014-01-01 15:11:34 +0000806LIBOPENJP2_DELEGATE_FALSE
807LIBOPENJP2_DELEGATE_TRUE
808LIBOPENJP2_LIBS
809LIBOPENJP2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000810LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000811LCMS_DELEGATE_FALSE
812LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000813JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814JP2_DELEGATE_FALSE
815JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000816JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817JPEG_DELEGATE_FALSE
818JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000819JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000820JBIG_DELEGATE_FALSE
821JBIG_DELEGATE_TRUE
822GVC_DELEGATE_FALSE
823GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000824GVC_LIBS
825GVC_CFLAGS
826GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000827GS_DELEGATE_FALSE
828GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000829FREETYPE_DELEGATE_FALSE
830FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000831FREETYPE_LIBS
832FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000833FONTCONFIG_DELEGATE_FALSE
834FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000835FONTCONFIG_LIBS
836FONTCONFIG_CFLAGS
837FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000838FPX_DELEGATE_FALSE
839FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000841FFTW_DELEGATE_FALSE
842FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000844DJVU_DELEGATE_FALSE
845DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000846DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000847DPS_DELEGATE_FALSE
848DPS_DELEGATE_TRUE
849AUTOTRACE_DELEGATE_FALSE
850AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000851AUTOTRACE_LIBS
852AUTOTRACE_CFLAGS
853LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000854WITH_LTDL_FALSE
855WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857ZLIB_DELEGATE_FALSE
858ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000859XEXT_LIBS
860X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000861X11_DELEGATE_FALSE
862X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000863X_EXTRA_LIBS
864X_LIBS
865X_PRE_LIBS
866X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000867XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000868BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000869BZLIB_DELEGATE_FALSE
870BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000871CCMALLOCDelegate
872UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000873HasUMEM_FALSE
874HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000875GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000876WITH_MAGICK_PLUS_PLUS_FALSE
877WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000878OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000879MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000880POW_LIB
881LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000882UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000883UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000884UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000885UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000886UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000887UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000888INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000889INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000890UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000891UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000892INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000893INT32_T
894UINT16_T
895INT16_T
896UINT8_T
897INT8_T
898LIBRARY_EXTRA_CPPFLAGS
899MODULE_EXTRA_CPPFLAGS
900LIBSTDCLDFLAGS
901PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000902MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000903MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000904QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000905LEGACY_SUPPORT_FALSE
906LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000907MAINT
908MAINTAINER_MODE_FALSE
909MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000910MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000911WITH_MODULES_FALSE
912WITH_MODULES_TRUE
913WITH_SHARED_LIBS_FALSE
914WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000915LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000916CXXCPP
917OTOOL64
918OTOOL
919LIPO
920NMEDIT
921DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000922MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000923RANLIB
cristyda16f162011-02-19 23:52:17 +0000924ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000925AR
926NM
927ac_ct_DUMPBIN
928DUMPBIN
929LIBTOOL
930OBJDUMP
931DLLTOOL
932AS
cristy3ed852e2009-09-05 21:47:34 +0000933LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000934CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000935CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000936OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000937THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000938PTHREAD_CFLAGS
939PTHREAD_LIBS
940PTHREAD_CC
941ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000942pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000943SHAREARCH_DIR
944INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000945WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000946USING_CL_FALSE
947USING_CL_TRUE
948CYGWIN_BUILD_FALSE
949CYGWIN_BUILD_TRUE
950WIN32_NATIVE_BUILD_FALSE
951WIN32_NATIVE_BUILD_TRUE
952WINGDI32_DELEGATE_FALSE
953WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000954GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000955HAVE_LD_VERSION_SCRIPT_FALSE
956HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000957PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000958PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000959LN_S
cristy3ed852e2009-09-05 21:47:34 +0000960LD
cristy73bd4a52010-10-05 11:24:23 +0000961FGREP
962SED
963am__fastdepCXX_FALSE
964am__fastdepCXX_TRUE
965CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000966ac_ct_CXX
967CXXFLAGS
968CXX
cristya0b81c32010-01-22 02:54:33 +0000969EGREP
970GREP
971CPP
cristy73bd4a52010-10-05 11:24:23 +0000972am__fastdepCC_FALSE
973am__fastdepCC_TRUE
974CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000975am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000976AMDEPBACKSLASH
977AMDEP_FALSE
978AMDEP_TRUE
979am__quote
980am__include
981DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000982OBJEXT
983EXEEXT
984ac_ct_CC
985CPPFLAGS
986LDFLAGS
987CFLAGS
988CC
989DIRSEP
990MAGICK_FILTER_MODULE_PATH
991MAGICK_CONFIGURE_BUILD_PATH
992MAGICK_CONFIGURE_SRC_PATH
993MAGICK_CODER_MODULE_PATH
994MAN_DIR
995INFO_DIR
996PERSISTINCLUDE_DIR
997INCLUDE_DIR
998LIB_DIR
999LOCALSTATE_DIR
1000SHAREDSTATE_DIR
1001SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001002DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001003DATA_DIR
1004LIBEXEC_DIR
1005SBIN_DIR
1006BIN_DIR
1007EXEC_PREFIX_DIR
1008PREFIX_DIR
1009CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001010MAGICKPP_LIB_VERSION_TEXT
1011MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001012MAGICK_LIB_VERSION_NUMBER
1013MAGICK_LIB_VERSION_TEXT
1014MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001015AM_BACKSLASH
1016AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001017AM_DEFAULT_V
1018AM_V
cristy73bd4a52010-10-05 11:24:23 +00001019am__untar
1020am__tar
1021AMTAR
1022am__leading_dot
1023SET_MAKE
1024AWK
1025mkdir_p
1026MKDIR_P
1027INSTALL_STRIP_PROGRAM
1028STRIP
1029install_sh
1030MAKEINFO
1031AUTOHEADER
1032AUTOMAKE
1033AUTOCONF
1034ACLOCAL
1035VERSION
1036PACKAGE
1037CYGPATH_W
1038am__isrc
1039INSTALL_DATA
1040INSTALL_SCRIPT
1041INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001042PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001043PACKAGE_RELEASE_DATE
1044PACKAGE_LIB_VERSION_NUMBER
1045PACKAGE_LIB_VERSION
1046PACKAGE_CHANGE_DATE
1047PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001048PACKAGE_PERL_VERSION
cristy5ed9c6e2013-07-14 21:20:31 +00001049MAGICKPP_LIBRARY_VERSION_INFO
1050MAGICKPP_LIBRARY_CURRENT_MIN
1051MAGICKPP_LIBRARY_AGE
1052MAGICKPP_LIBRARY_REVISION
1053MAGICKPP_LIBRARY_CURRENT
cristybab87c32010-02-09 20:54:22 +00001054MAGICK_LIBRARY_VERSION_INFO
1055MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001056MAGICK_LIBRARY_AGE
1057MAGICK_LIBRARY_REVISION
1058MAGICK_LIBRARY_CURRENT
cristy37442762013-02-10 21:07:23 +00001059MAGICK_SVN_REVISION
1060MAGICK_VERSION
1061MAGICK_PATCHLEVEL_VERSION
1062MAGICK_MICRO_VERSION
1063MAGICK_MINOR_VERSION
1064MAGICK_MAJOR_VERSION
cristy3225a072010-04-17 01:47:28 +00001065MAGICK_TARGET_OS
1066MAGICK_TARGET_VENDOR
1067MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001068target_os
1069target_vendor
1070target_cpu
1071target
1072host_os
1073host_vendor
1074host_cpu
1075host
1076build_os
1077build_vendor
1078build_cpu
1079build
1080CONFIGURE_ARGS
1081DISTCHECK_CONFIG_FLAGS
1082target_alias
1083host_alias
1084build_alias
1085LIBS
1086ECHO_T
1087ECHO_N
1088ECHO_C
1089DEFS
1090mandir
1091localedir
1092libdir
1093psdir
1094pdfdir
1095dvidir
1096htmldir
1097infodir
1098docdir
1099oldincludedir
1100includedir
1101localstatedir
1102sharedstatedir
1103sysconfdir
1104datadir
1105datarootdir
1106libexecdir
1107sbindir
1108bindir
1109program_transform_name
1110prefix
1111exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001112PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001113PACKAGE_BUGREPORT
1114PACKAGE_STRING
1115PACKAGE_VERSION
1116PACKAGE_TARNAME
1117PACKAGE_NAME
1118PATH_SEPARATOR
1119SHELL'
1120ac_subst_files=''
1121ac_user_opts='
1122enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001123enable_silent_rules
1124enable_dependency_tracking
1125with_gnu_ld
1126with_dmalloc
cristya0459972013-11-03 18:09:35 +00001127with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001128enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001129enable_bounds_checking
1130enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001131with_includearch_dir
1132with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001133with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001134with_threads
1135enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001136enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001137enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001138enable_shared
1139enable_static
1140with_pic
1141enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001142with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001143enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001144with_modules
1145enable_delegate_build
1146enable_deprecated
1147enable_installed
1148enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001149enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001150enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001151enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001152enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001153enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001154enable_ccmalloc
1155enable_efence
1156enable_prof
1157enable_gprof
1158enable_gcov
1159with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001160enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001161with_quantum_depth
1162with_cache
1163with_frozenpaths
1164with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001165with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001166with_perl
1167with_perl_options
1168with_umem
1169with_libstdc
1170with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001171with_x
cristy3ed852e2009-09-05 21:47:34 +00001172with_zlib
1173with_autotrace
1174with_dps
1175with_djvu
cristy430a7312010-01-21 20:44:04 +00001176with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001177with_fftw
1178with_fpx
1179with_fontconfig
1180with_freetype
1181with_gslib
1182with_fontpath
1183with_gs_font_dir
1184with_gvc
1185with_jbig
1186with_jpeg
1187with_jp2
1188with_lcms
cristy71203402010-06-18 13:12:03 +00001189with_lcms2
cristy99db3872014-01-01 15:11:34 +00001190with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001191with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001192with_lzma
cristy854c9cf2013-08-10 21:03:06 +00001193with_mupdf
cristy3ed852e2009-09-05 21:47:34 +00001194with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001195with_pango
cristy3ed852e2009-09-05 21:47:34 +00001196with_png
1197with_rsvg
1198with_tiff
cristyb1860752011-03-14 00:27:46 +00001199with_webp
cristy3ed852e2009-09-05 21:47:34 +00001200with_windows_font_dir
1201with_wmf
1202with_xml
1203'
1204 ac_precious_vars='build_alias
1205host_alias
1206target_alias
1207CC
1208CFLAGS
1209LDFLAGS
1210LIBS
1211CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001212CPP
cristy3ed852e2009-09-05 21:47:34 +00001213CXX
1214CXXFLAGS
1215CCC
cristy73bd4a52010-10-05 11:24:23 +00001216PKG_CONFIG
1217CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001218XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001219AUTOTRACE_CFLAGS
1220AUTOTRACE_LIBS
1221FONTCONFIG_CFLAGS
1222FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001223FREETYPE_CFLAGS
1224FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001225GVC_CFLAGS
1226GVC_LIBS
cristy99db3872014-01-01 15:11:34 +00001227LIBOPENJP2_CFLAGS
1228LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001229LQR_CFLAGS
1230LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001231LZMA_CFLAGS
1232LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001233OPENEXR_CFLAGS
1234OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001235PANGO_CFLAGS
1236PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001237RSVG_CFLAGS
1238RSVG_LIBS
1239CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001240CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001241
1242
1243# Initialize some variables set by options.
1244ac_init_help=
1245ac_init_version=false
1246ac_unrecognized_opts=
1247ac_unrecognized_sep=
1248# The variables have the same names as the options, with
1249# dashes changed to underlines.
1250cache_file=/dev/null
1251exec_prefix=NONE
1252no_create=
1253no_recursion=
1254prefix=NONE
1255program_prefix=NONE
1256program_suffix=NONE
1257program_transform_name=s,x,x,
1258silent=
1259site=
1260srcdir=
1261verbose=
1262x_includes=NONE
1263x_libraries=NONE
1264
1265# Installation directory options.
1266# These are left unexpanded so users can "make install exec_prefix=/foo"
1267# and all the variables that are supposed to be based on exec_prefix
1268# by default will actually change.
1269# Use braces instead of parens because sh, perl, etc. also accept them.
1270# (The list follows the same order as the GNU Coding Standards.)
1271bindir='${exec_prefix}/bin'
1272sbindir='${exec_prefix}/sbin'
1273libexecdir='${exec_prefix}/libexec'
1274datarootdir='${prefix}/share'
1275datadir='${datarootdir}'
1276sysconfdir='${prefix}/etc'
1277sharedstatedir='${prefix}/com'
1278localstatedir='${prefix}/var'
1279includedir='${prefix}/include'
1280oldincludedir='/usr/include'
1281docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1282infodir='${datarootdir}/info'
1283htmldir='${docdir}'
1284dvidir='${docdir}'
1285pdfdir='${docdir}'
1286psdir='${docdir}'
1287libdir='${exec_prefix}/lib'
1288localedir='${datarootdir}/locale'
1289mandir='${datarootdir}/man'
1290
1291ac_prev=
1292ac_dashdash=
1293for ac_option
1294do
1295 # If the previous option needs an argument, assign it.
1296 if test -n "$ac_prev"; then
1297 eval $ac_prev=\$ac_option
1298 ac_prev=
1299 continue
1300 fi
1301
1302 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001303 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1304 *=) ac_optarg= ;;
1305 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001306 esac
1307
1308 # Accept the important Cygnus configure options, so we can diagnose typos.
1309
1310 case $ac_dashdash$ac_option in
1311 --)
1312 ac_dashdash=yes ;;
1313
1314 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1315 ac_prev=bindir ;;
1316 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1317 bindir=$ac_optarg ;;
1318
1319 -build | --build | --buil | --bui | --bu)
1320 ac_prev=build_alias ;;
1321 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1322 build_alias=$ac_optarg ;;
1323
1324 -cache-file | --cache-file | --cache-fil | --cache-fi \
1325 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1326 ac_prev=cache_file ;;
1327 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1328 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1329 cache_file=$ac_optarg ;;
1330
1331 --config-cache | -C)
1332 cache_file=config.cache ;;
1333
1334 -datadir | --datadir | --datadi | --datad)
1335 ac_prev=datadir ;;
1336 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1337 datadir=$ac_optarg ;;
1338
1339 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1340 | --dataroo | --dataro | --datar)
1341 ac_prev=datarootdir ;;
1342 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1343 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1344 datarootdir=$ac_optarg ;;
1345
1346 -disable-* | --disable-*)
1347 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1348 # Reject names that are not valid shell variable names.
1349 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001350 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001351 ac_useropt_orig=$ac_useropt
1352 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1353 case $ac_user_opts in
1354 *"
1355"enable_$ac_useropt"
1356"*) ;;
1357 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1358 ac_unrecognized_sep=', ';;
1359 esac
1360 eval enable_$ac_useropt=no ;;
1361
1362 -docdir | --docdir | --docdi | --doc | --do)
1363 ac_prev=docdir ;;
1364 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1365 docdir=$ac_optarg ;;
1366
1367 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1368 ac_prev=dvidir ;;
1369 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1370 dvidir=$ac_optarg ;;
1371
1372 -enable-* | --enable-*)
1373 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1374 # Reject names that are not valid shell variable names.
1375 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001376 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001377 ac_useropt_orig=$ac_useropt
1378 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1379 case $ac_user_opts in
1380 *"
1381"enable_$ac_useropt"
1382"*) ;;
1383 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1384 ac_unrecognized_sep=', ';;
1385 esac
1386 eval enable_$ac_useropt=\$ac_optarg ;;
1387
1388 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1389 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1390 | --exec | --exe | --ex)
1391 ac_prev=exec_prefix ;;
1392 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1393 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1394 | --exec=* | --exe=* | --ex=*)
1395 exec_prefix=$ac_optarg ;;
1396
1397 -gas | --gas | --ga | --g)
1398 # Obsolete; use --with-gas.
1399 with_gas=yes ;;
1400
1401 -help | --help | --hel | --he | -h)
1402 ac_init_help=long ;;
1403 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1404 ac_init_help=recursive ;;
1405 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1406 ac_init_help=short ;;
1407
1408 -host | --host | --hos | --ho)
1409 ac_prev=host_alias ;;
1410 -host=* | --host=* | --hos=* | --ho=*)
1411 host_alias=$ac_optarg ;;
1412
1413 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1414 ac_prev=htmldir ;;
1415 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1416 | --ht=*)
1417 htmldir=$ac_optarg ;;
1418
1419 -includedir | --includedir | --includedi | --included | --include \
1420 | --includ | --inclu | --incl | --inc)
1421 ac_prev=includedir ;;
1422 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1423 | --includ=* | --inclu=* | --incl=* | --inc=*)
1424 includedir=$ac_optarg ;;
1425
1426 -infodir | --infodir | --infodi | --infod | --info | --inf)
1427 ac_prev=infodir ;;
1428 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1429 infodir=$ac_optarg ;;
1430
1431 -libdir | --libdir | --libdi | --libd)
1432 ac_prev=libdir ;;
1433 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1434 libdir=$ac_optarg ;;
1435
1436 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1437 | --libexe | --libex | --libe)
1438 ac_prev=libexecdir ;;
1439 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1440 | --libexe=* | --libex=* | --libe=*)
1441 libexecdir=$ac_optarg ;;
1442
1443 -localedir | --localedir | --localedi | --localed | --locale)
1444 ac_prev=localedir ;;
1445 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1446 localedir=$ac_optarg ;;
1447
1448 -localstatedir | --localstatedir | --localstatedi | --localstated \
1449 | --localstate | --localstat | --localsta | --localst | --locals)
1450 ac_prev=localstatedir ;;
1451 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1452 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1453 localstatedir=$ac_optarg ;;
1454
1455 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1456 ac_prev=mandir ;;
1457 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1458 mandir=$ac_optarg ;;
1459
1460 -nfp | --nfp | --nf)
1461 # Obsolete; use --without-fp.
1462 with_fp=no ;;
1463
1464 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1465 | --no-cr | --no-c | -n)
1466 no_create=yes ;;
1467
1468 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1469 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1470 no_recursion=yes ;;
1471
1472 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1473 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1474 | --oldin | --oldi | --old | --ol | --o)
1475 ac_prev=oldincludedir ;;
1476 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1477 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1478 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1479 oldincludedir=$ac_optarg ;;
1480
1481 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1482 ac_prev=prefix ;;
1483 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1484 prefix=$ac_optarg ;;
1485
1486 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1487 | --program-pre | --program-pr | --program-p)
1488 ac_prev=program_prefix ;;
1489 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1490 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1491 program_prefix=$ac_optarg ;;
1492
1493 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1494 | --program-suf | --program-su | --program-s)
1495 ac_prev=program_suffix ;;
1496 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1497 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1498 program_suffix=$ac_optarg ;;
1499
1500 -program-transform-name | --program-transform-name \
1501 | --program-transform-nam | --program-transform-na \
1502 | --program-transform-n | --program-transform- \
1503 | --program-transform | --program-transfor \
1504 | --program-transfo | --program-transf \
1505 | --program-trans | --program-tran \
1506 | --progr-tra | --program-tr | --program-t)
1507 ac_prev=program_transform_name ;;
1508 -program-transform-name=* | --program-transform-name=* \
1509 | --program-transform-nam=* | --program-transform-na=* \
1510 | --program-transform-n=* | --program-transform-=* \
1511 | --program-transform=* | --program-transfor=* \
1512 | --program-transfo=* | --program-transf=* \
1513 | --program-trans=* | --program-tran=* \
1514 | --progr-tra=* | --program-tr=* | --program-t=*)
1515 program_transform_name=$ac_optarg ;;
1516
1517 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1518 ac_prev=pdfdir ;;
1519 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1520 pdfdir=$ac_optarg ;;
1521
1522 -psdir | --psdir | --psdi | --psd | --ps)
1523 ac_prev=psdir ;;
1524 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1525 psdir=$ac_optarg ;;
1526
1527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1528 | -silent | --silent | --silen | --sile | --sil)
1529 silent=yes ;;
1530
1531 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1532 ac_prev=sbindir ;;
1533 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1534 | --sbi=* | --sb=*)
1535 sbindir=$ac_optarg ;;
1536
1537 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1538 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1539 | --sharedst | --shareds | --shared | --share | --shar \
1540 | --sha | --sh)
1541 ac_prev=sharedstatedir ;;
1542 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1543 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1544 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1545 | --sha=* | --sh=*)
1546 sharedstatedir=$ac_optarg ;;
1547
1548 -site | --site | --sit)
1549 ac_prev=site ;;
1550 -site=* | --site=* | --sit=*)
1551 site=$ac_optarg ;;
1552
1553 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1554 ac_prev=srcdir ;;
1555 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1556 srcdir=$ac_optarg ;;
1557
1558 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1559 | --syscon | --sysco | --sysc | --sys | --sy)
1560 ac_prev=sysconfdir ;;
1561 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1562 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1563 sysconfdir=$ac_optarg ;;
1564
1565 -target | --target | --targe | --targ | --tar | --ta | --t)
1566 ac_prev=target_alias ;;
1567 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1568 target_alias=$ac_optarg ;;
1569
1570 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1571 verbose=yes ;;
1572
1573 -version | --version | --versio | --versi | --vers | -V)
1574 ac_init_version=: ;;
1575
1576 -with-* | --with-*)
1577 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1578 # Reject names that are not valid shell variable names.
1579 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001580 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001581 ac_useropt_orig=$ac_useropt
1582 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1583 case $ac_user_opts in
1584 *"
1585"with_$ac_useropt"
1586"*) ;;
1587 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1588 ac_unrecognized_sep=', ';;
1589 esac
1590 eval with_$ac_useropt=\$ac_optarg ;;
1591
1592 -without-* | --without-*)
1593 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1594 # Reject names that are not valid shell variable names.
1595 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001596 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001597 ac_useropt_orig=$ac_useropt
1598 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1599 case $ac_user_opts in
1600 *"
1601"with_$ac_useropt"
1602"*) ;;
1603 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1604 ac_unrecognized_sep=', ';;
1605 esac
1606 eval with_$ac_useropt=no ;;
1607
1608 --x)
1609 # Obsolete; use --with-x.
1610 with_x=yes ;;
1611
1612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1613 | --x-incl | --x-inc | --x-in | --x-i)
1614 ac_prev=x_includes ;;
1615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1617 x_includes=$ac_optarg ;;
1618
1619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1621 ac_prev=x_libraries ;;
1622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1624 x_libraries=$ac_optarg ;;
1625
cristy98dddb52010-11-04 00:30:15 +00001626 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1627Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001628 ;;
1629
1630 *=*)
1631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1632 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001633 case $ac_envvar in #(
1634 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001635 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001636 esac
cristy3ed852e2009-09-05 21:47:34 +00001637 eval $ac_envvar=\$ac_optarg
1638 export $ac_envvar ;;
1639
1640 *)
1641 # FIXME: should be removed in autoconf 3.0.
1642 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1644 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001645 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001646 ;;
1647
1648 esac
1649done
1650
1651if test -n "$ac_prev"; then
1652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001653 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001654fi
1655
1656if test -n "$ac_unrecognized_opts"; then
1657 case $enable_option_checking in
1658 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001659 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001660 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1661 esac
1662fi
1663
1664# Check all directory arguments for consistency.
1665for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1666 datadir sysconfdir sharedstatedir localstatedir includedir \
1667 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1668 libdir localedir mandir
1669do
1670 eval ac_val=\$$ac_var
1671 # Remove trailing slashes.
1672 case $ac_val in
1673 */ )
1674 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1675 eval $ac_var=\$ac_val;;
1676 esac
1677 # Be sure to have absolute directory names.
1678 case $ac_val in
1679 [\\/$]* | ?:[\\/]* ) continue;;
1680 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1681 esac
cristy98dddb52010-11-04 00:30:15 +00001682 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001683done
1684
1685# There might be people who depend on the old broken behavior: `$host'
1686# used to hold the argument of --host etc.
1687# FIXME: To remove some day.
1688build=$build_alias
1689host=$host_alias
1690target=$target_alias
1691
1692# FIXME: To remove some day.
1693if test "x$host_alias" != x; then
1694 if test "x$build_alias" = x; then
1695 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001696 elif test "x$build_alias" != "x$host_alias"; then
1697 cross_compiling=yes
1698 fi
1699fi
1700
1701ac_tool_prefix=
1702test -n "$host_alias" && ac_tool_prefix=$host_alias-
1703
1704test "$silent" = yes && exec 6>/dev/null
1705
1706
1707ac_pwd=`pwd` && test -n "$ac_pwd" &&
1708ac_ls_di=`ls -di .` &&
1709ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001710 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001711test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001712 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001713
1714
1715# Find the source files, if location was not specified.
1716if test -z "$srcdir"; then
1717 ac_srcdir_defaulted=yes
1718 # Try the directory containing this script, then the parent directory.
1719 ac_confdir=`$as_dirname -- "$as_myself" ||
1720$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1721 X"$as_myself" : 'X\(//\)[^/]' \| \
1722 X"$as_myself" : 'X\(//\)$' \| \
1723 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1724$as_echo X"$as_myself" |
1725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1726 s//\1/
1727 q
1728 }
1729 /^X\(\/\/\)[^/].*/{
1730 s//\1/
1731 q
1732 }
1733 /^X\(\/\/\)$/{
1734 s//\1/
1735 q
1736 }
1737 /^X\(\/\).*/{
1738 s//\1/
1739 q
1740 }
1741 s/.*/./; q'`
1742 srcdir=$ac_confdir
1743 if test ! -r "$srcdir/$ac_unique_file"; then
1744 srcdir=..
1745 fi
1746else
1747 ac_srcdir_defaulted=no
1748fi
1749if test ! -r "$srcdir/$ac_unique_file"; then
1750 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001751 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001752fi
1753ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1754ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001755 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001756 pwd)`
1757# When building in place, set srcdir=.
1758if test "$ac_abs_confdir" = "$ac_pwd"; then
1759 srcdir=.
1760fi
1761# Remove unnecessary trailing slashes from srcdir.
1762# Double slashes in file names in object file debugging info
1763# mess up M-x gdb in Emacs.
1764case $srcdir in
1765*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1766esac
1767for ac_var in $ac_precious_vars; do
1768 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1769 eval ac_env_${ac_var}_value=\$${ac_var}
1770 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1771 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1772done
1773
1774#
1775# Report the --help message.
1776#
1777if test "$ac_init_help" = "long"; then
1778 # Omit some internal or obsolete options to make the list less imposing.
1779 # This message is too long to be a string in the A/UX 3.1 sh.
1780 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001781\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001782
1783Usage: $0 [OPTION]... [VAR=VALUE]...
1784
1785To assign environment variables (e.g., CC, CFLAGS...), specify them as
1786VAR=VALUE. See below for descriptions of some of the useful variables.
1787
1788Defaults for the options are specified in brackets.
1789
1790Configuration:
1791 -h, --help display this help and exit
1792 --help=short display options specific to this package
1793 --help=recursive display the short help of all the included packages
1794 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001795 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001796 --cache-file=FILE cache test results in FILE [disabled]
1797 -C, --config-cache alias for \`--cache-file=config.cache'
1798 -n, --no-create do not create output files
1799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1800
1801Installation directories:
1802 --prefix=PREFIX install architecture-independent files in PREFIX
1803 [$ac_default_prefix]
1804 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1805 [PREFIX]
1806
1807By default, \`make install' will install all the files in
1808\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1809an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1810for instance \`--prefix=\$HOME'.
1811
1812For better control, use the options below.
1813
1814Fine tuning of the installation directories:
1815 --bindir=DIR user executables [EPREFIX/bin]
1816 --sbindir=DIR system admin executables [EPREFIX/sbin]
1817 --libexecdir=DIR program executables [EPREFIX/libexec]
1818 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1819 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1820 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1821 --libdir=DIR object code libraries [EPREFIX/lib]
1822 --includedir=DIR C header files [PREFIX/include]
1823 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1824 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1825 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1826 --infodir=DIR info documentation [DATAROOTDIR/info]
1827 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1828 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001829 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001830 --htmldir=DIR html documentation [DOCDIR]
1831 --dvidir=DIR dvi documentation [DOCDIR]
1832 --pdfdir=DIR pdf documentation [DOCDIR]
1833 --psdir=DIR ps documentation [DOCDIR]
1834_ACEOF
1835
1836 cat <<\_ACEOF
1837
cristy73bd4a52010-10-05 11:24:23 +00001838Program names:
1839 --program-prefix=PREFIX prepend PREFIX to installed program names
1840 --program-suffix=SUFFIX append SUFFIX to installed program names
1841 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1842
cristy3ed852e2009-09-05 21:47:34 +00001843X features:
1844 --x-includes=DIR X include files are in DIR
1845 --x-libraries=DIR X library files are in DIR
1846
1847System types:
1848 --build=BUILD configure for building on BUILD [guessed]
1849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1850 --target=TARGET configure for building compilers for TARGET [HOST]
1851_ACEOF
1852fi
1853
1854if test -n "$ac_init_help"; then
1855 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001856 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001857 esac
1858 cat <<\_ACEOF
1859
1860Optional Features:
1861 --disable-option-checking ignore unrecognized --enable/--with options
1862 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1863 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001864 --enable-silent-rules less verbose build output (undo: "make V=1")
1865 --disable-silent-rules verbose build output (undo: "make V=0")
1866 --enable-dependency-tracking
1867 do not reject slow dependency extractors
1868 --disable-dependency-tracking
1869 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001870 --enable-ld-version-script
1871 enable linker version script (default is enabled
1872 when possible)
cristya3824692012-03-30 17:22:07 +00001873 --enable-bounds-checking
1874 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001875 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001876 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001877 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001878 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001879 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001880 --enable-shared[=PKGS] build shared libraries [default=yes]
1881 --enable-static[=PKGS] build static libraries [default=yes]
1882 --enable-fast-install[=PKGS]
1883 optimize for fast installation [default=yes]
1884 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001885 --enable-delegate-build look for delegate libraries in build directory
1886 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001887 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001888 --disable-installed Formally install ImageMagick under PREFIX
1889 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001890 --enable-zero-configuration
1891 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001892 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001893 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001894 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001895 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001896 --enable-maintainer-mode
1897 enable make rules and dependencies not useful (and
1898 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001899 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001900 --enable-ccmalloc enable 'ccmalloc' memory debug support
1901 --enable-efence enable 'efence' memory debug support
1902 --enable-prof enable 'prof' profiling support
1903 --enable-gprof enable 'gprof' profiling support
1904 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001905 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001906 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001907
1908Optional Packages:
1909 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1910 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001911 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001912 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001913 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1914 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001915 --includearch-dir=DIR ARCH specific include directory
1916 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001917 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001918 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001919 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001920 both]
cristyda16f162011-02-19 23:52:17 +00001921 --with-sysroot=DIR Search for dependent libraries within DIR
1922 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001923 --with-modules enable building dynamically loadable modules
1924 --with-method-prefix=PREFIX
1925 prefix MagickCore API methods
1926 --with-quantum-depth=DEPTH
1927 number of bits in a pixel quantum (default 16)
1928 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1929 memory)
1930 --with-frozenpaths freeze delegate paths
1931 --without-magick-plus-plus
1932 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001933 --with-package-release-name=NAME
1934 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001935 --with-perl enable build/install of PerlMagick
1936 --with-perl-options=OPTIONS
1937 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001938 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001939 --with-umem enable umem memory allocation library support
1940 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1941 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001942 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001943 --without-zlib disable ZLIB support
1944 --with-autotrace enable autotrace support
1945 --without-dps disable Display Postscript support
1946 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001947 --with-dejavu-font-dir=DIR
1948 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001949 --without-fftw disable FFTW support
1950 --without-fpx disable FlashPIX support
1951 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001952 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001953 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001954 --with-fontpath=DIR prepend to default font search path
1955 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001956 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001957 --without-jbig disable JBIG support
1958 --without-jpeg disable JPEG support
1959 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001960 --without-lcms disable lcms (v1.1X) support
1961 --without-lcms2 disable lcms (v2.X) support
cristy99db3872014-01-01 15:11:34 +00001962 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00001963 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001964 --without-lzma disable LZMA support
cristy854c9cf2013-08-10 21:03:06 +00001965 --with-mupdf enable MUPDF support
cristy3ed852e2009-09-05 21:47:34 +00001966 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001967 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001968 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001969 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001970 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001971 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001972 --with-windows-font-dir=DIR
1973 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001974 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001975 --without-xml disable XML support
1976
1977Some influential environment variables:
1978 CC C compiler command
1979 CFLAGS C compiler flags
1980 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1981 nonstandard directory <lib dir>
1982 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001983 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001984 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001985 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001986 CXX C++ compiler command
1987 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001988 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001989 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001990 XMKMF Path to xmkmf, Makefile generator for X Window System
1991 AUTOTRACE_CFLAGS
1992 C compiler flags for AUTOTRACE, overriding pkg-config
1993 AUTOTRACE_LIBS
1994 linker flags for AUTOTRACE, overriding pkg-config
1995 FONTCONFIG_CFLAGS
1996 C compiler flags for FONTCONFIG, overriding pkg-config
1997 FONTCONFIG_LIBS
1998 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00001999 FREETYPE_CFLAGS
2000 C compiler flags for FREETYPE, overriding pkg-config
2001 FREETYPE_LIBS
2002 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002003 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2004 GVC_LIBS linker flags for GVC, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002005 LIBOPENJP2_CFLAGS
2006 C compiler flags for LIBOPENJP2, overriding pkg-config
2007 LIBOPENJP2_LIBS
2008 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002009 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2010 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002011 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2012 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002013 OPENEXR_CFLAGS
2014 C compiler flags for OPENEXR, overriding pkg-config
2015 OPENEXR_LIBS
2016 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002017 PANGO_CFLAGS
2018 C compiler flags for PANGO, overriding pkg-config
2019 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002020 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2021 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2022 CAIRO_SVG_CFLAGS
2023 C compiler flags for CAIRO_SVG, overriding pkg-config
2024 CAIRO_SVG_LIBS
2025 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002026
2027Use these variables to override the choices made by `configure' or to help
2028it to find libraries and programs with nonstandard names/locations.
2029
2030Report bugs to <http://www.imagemagick.org>.
2031_ACEOF
2032ac_status=$?
2033fi
2034
2035if test "$ac_init_help" = "recursive"; then
2036 # If there are subdirs, report their specific --help.
2037 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2038 test -d "$ac_dir" ||
2039 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2040 continue
2041 ac_builddir=.
2042
2043case "$ac_dir" in
2044.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2045*)
2046 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2047 # A ".." for each directory in $ac_dir_suffix.
2048 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2049 case $ac_top_builddir_sub in
2050 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2051 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2052 esac ;;
2053esac
2054ac_abs_top_builddir=$ac_pwd
2055ac_abs_builddir=$ac_pwd$ac_dir_suffix
2056# for backward compatibility:
2057ac_top_builddir=$ac_top_build_prefix
2058
2059case $srcdir in
2060 .) # We are building in place.
2061 ac_srcdir=.
2062 ac_top_srcdir=$ac_top_builddir_sub
2063 ac_abs_top_srcdir=$ac_pwd ;;
2064 [\\/]* | ?:[\\/]* ) # Absolute name.
2065 ac_srcdir=$srcdir$ac_dir_suffix;
2066 ac_top_srcdir=$srcdir
2067 ac_abs_top_srcdir=$srcdir ;;
2068 *) # Relative name.
2069 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2070 ac_top_srcdir=$ac_top_build_prefix$srcdir
2071 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2072esac
2073ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2074
2075 cd "$ac_dir" || { ac_status=$?; continue; }
2076 # Check for guested configure.
2077 if test -f "$ac_srcdir/configure.gnu"; then
2078 echo &&
2079 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2080 elif test -f "$ac_srcdir/configure"; then
2081 echo &&
2082 $SHELL "$ac_srcdir/configure" --help=recursive
2083 else
2084 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2085 fi || ac_status=$?
2086 cd "$ac_pwd" || { ac_status=$?; break; }
2087 done
2088fi
2089
2090test -n "$ac_init_help" && exit $ac_status
2091if $ac_init_version; then
2092 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002093ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002094generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002095
cristy14fefe52012-05-21 00:59:18 +00002096Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002097This configure script is free software; the Free Software Foundation
2098gives unlimited permission to copy, distribute and modify it.
2099_ACEOF
2100 exit
2101fi
cristy8b350f62009-11-15 23:12:43 +00002102
2103## ------------------------ ##
2104## Autoconf initialization. ##
2105## ------------------------ ##
2106
2107# ac_fn_c_try_compile LINENO
2108# --------------------------
2109# Try to compile conftest.$ac_ext, and return whether this succeeded.
2110ac_fn_c_try_compile ()
2111{
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 rm -f conftest.$ac_objext
2114 if { { ac_try="$ac_compile"
2115case "(($ac_try" in
2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117 *) ac_try_echo=$ac_try;;
2118esac
2119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120$as_echo "$ac_try_echo"; } >&5
2121 (eval "$ac_compile") 2>conftest.err
2122 ac_status=$?
2123 if test -s conftest.err; then
2124 grep -v '^ *+' conftest.err >conftest.er1
2125 cat conftest.er1 >&5
2126 mv -f conftest.er1 conftest.err
2127 fi
2128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129 test $ac_status = 0; } && {
2130 test -z "$ac_c_werror_flag" ||
2131 test ! -s conftest.err
2132 } && test -s conftest.$ac_objext; then :
2133 ac_retval=0
2134else
2135 $as_echo "$as_me: failed program was:" >&5
2136sed 's/^/| /' conftest.$ac_ext >&5
2137
2138 ac_retval=1
2139fi
cristyda16f162011-02-19 23:52:17 +00002140 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002141 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002142
2143} # ac_fn_c_try_compile
2144
cristy95646052009-11-28 23:05:30 +00002145# ac_fn_c_try_cpp LINENO
2146# ----------------------
2147# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2148ac_fn_c_try_cpp ()
2149{
2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151 if { { ac_try="$ac_cpp conftest.$ac_ext"
2152case "(($ac_try" in
2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154 *) ac_try_echo=$ac_try;;
2155esac
2156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2157$as_echo "$ac_try_echo"; } >&5
2158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2159 ac_status=$?
2160 if test -s conftest.err; then
2161 grep -v '^ *+' conftest.err >conftest.er1
2162 cat conftest.er1 >&5
2163 mv -f conftest.er1 conftest.err
2164 fi
2165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002166 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2168 test ! -s conftest.err
2169 }; then :
2170 ac_retval=0
2171else
2172 $as_echo "$as_me: failed program was:" >&5
2173sed 's/^/| /' conftest.$ac_ext >&5
2174
2175 ac_retval=1
2176fi
cristyda16f162011-02-19 23:52:17 +00002177 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002178 as_fn_set_status $ac_retval
2179
2180} # ac_fn_c_try_cpp
2181
cristy8b350f62009-11-15 23:12:43 +00002182# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2183# -------------------------------------------------------
2184# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2185# the include files in INCLUDES and setting the cache variable VAR
2186# accordingly.
2187ac_fn_c_check_header_mongrel ()
2188{
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002190 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002193if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002194 $as_echo_n "(cached) " >&6
2195fi
2196eval ac_res=\$$3
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2198$as_echo "$ac_res" >&6; }
2199else
2200 # Is the header compilable?
2201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2202$as_echo_n "checking $2 usability... " >&6; }
2203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204/* end confdefs.h. */
2205$4
2206#include <$2>
2207_ACEOF
2208if ac_fn_c_try_compile "$LINENO"; then :
2209 ac_header_compiler=yes
2210else
2211 ac_header_compiler=no
2212fi
2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2215$as_echo "$ac_header_compiler" >&6; }
2216
2217# Is the header present?
2218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2219$as_echo_n "checking $2 presence... " >&6; }
2220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221/* end confdefs.h. */
2222#include <$2>
2223_ACEOF
2224if ac_fn_c_try_cpp "$LINENO"; then :
2225 ac_header_preproc=yes
2226else
2227 ac_header_preproc=no
2228fi
cristyda16f162011-02-19 23:52:17 +00002229rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2231$as_echo "$ac_header_preproc" >&6; }
2232
2233# So? What about this header?
2234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2235 yes:no: )
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2237$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2239$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2240 ;;
2241 no:yes:* )
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2243$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2245$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2247$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2249$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2251$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002252( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002253## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002254## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002255 ) | sed "s/^/$as_me: WARNING: /" >&2
2256 ;;
2257esac
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2259$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002260if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002261 $as_echo_n "(cached) " >&6
2262else
2263 eval "$3=\$ac_header_compiler"
2264fi
2265eval ac_res=\$$3
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2267$as_echo "$ac_res" >&6; }
2268fi
cristyda16f162011-02-19 23:52:17 +00002269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002270
2271} # ac_fn_c_check_header_mongrel
2272
2273# ac_fn_c_try_run LINENO
2274# ----------------------
2275# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2276# that executables *can* be run.
2277ac_fn_c_try_run ()
2278{
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 if { { ac_try="$ac_link"
2281case "(($ac_try" in
2282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283 *) ac_try_echo=$ac_try;;
2284esac
2285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286$as_echo "$ac_try_echo"; } >&5
2287 (eval "$ac_link") 2>&5
2288 ac_status=$?
2289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2290 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2291 { { case "(($ac_try" in
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2294esac
2295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2296$as_echo "$ac_try_echo"; } >&5
2297 (eval "$ac_try") 2>&5
2298 ac_status=$?
2299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2300 test $ac_status = 0; }; }; then :
2301 ac_retval=0
2302else
2303 $as_echo "$as_me: program exited with status $ac_status" >&5
2304 $as_echo "$as_me: failed program was:" >&5
2305sed 's/^/| /' conftest.$ac_ext >&5
2306
2307 ac_retval=$ac_status
2308fi
2309 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002310 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002311 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002312
2313} # ac_fn_c_try_run
2314
2315# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2316# -------------------------------------------------------
2317# Tests whether HEADER exists and can be compiled using the include files in
2318# INCLUDES, setting the cache variable VAR accordingly.
2319ac_fn_c_check_header_compile ()
2320{
2321 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2323$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002324if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002325 $as_echo_n "(cached) " >&6
2326else
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328/* end confdefs.h. */
2329$4
2330#include <$2>
2331_ACEOF
2332if ac_fn_c_try_compile "$LINENO"; then :
2333 eval "$3=yes"
2334else
2335 eval "$3=no"
2336fi
2337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338fi
2339eval ac_res=\$$3
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2341$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002342 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002343
2344} # ac_fn_c_check_header_compile
2345
cristya0b81c32010-01-22 02:54:33 +00002346# ac_fn_cxx_try_compile LINENO
2347# ----------------------------
2348# Try to compile conftest.$ac_ext, and return whether this succeeded.
2349ac_fn_cxx_try_compile ()
2350{
2351 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352 rm -f conftest.$ac_objext
2353 if { { ac_try="$ac_compile"
2354case "(($ac_try" in
2355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356 *) ac_try_echo=$ac_try;;
2357esac
2358eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2359$as_echo "$ac_try_echo"; } >&5
2360 (eval "$ac_compile") 2>conftest.err
2361 ac_status=$?
2362 if test -s conftest.err; then
2363 grep -v '^ *+' conftest.err >conftest.er1
2364 cat conftest.er1 >&5
2365 mv -f conftest.er1 conftest.err
2366 fi
2367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2368 test $ac_status = 0; } && {
2369 test -z "$ac_cxx_werror_flag" ||
2370 test ! -s conftest.err
2371 } && test -s conftest.$ac_objext; then :
2372 ac_retval=0
2373else
2374 $as_echo "$as_me: failed program was:" >&5
2375sed 's/^/| /' conftest.$ac_ext >&5
2376
2377 ac_retval=1
2378fi
cristyda16f162011-02-19 23:52:17 +00002379 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002380 as_fn_set_status $ac_retval
2381
2382} # ac_fn_cxx_try_compile
2383
cristyd95b7a52013-10-23 13:12:53 +00002384# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2385# --------------------------------------------
2386# Tries to find the compile-time value of EXPR in a program that includes
2387# INCLUDES, setting VAR accordingly. Returns whether the value could be
2388# computed
2389ac_fn_c_compute_int ()
2390{
2391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2392 if test "$cross_compiling" = yes; then
2393 # Depending upon the size, compute the lo and hi bounds.
2394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395/* end confdefs.h. */
2396$4
2397int
2398main ()
2399{
2400static int test_array [1 - 2 * !(($2) >= 0)];
2401test_array [0] = 0;
2402return test_array [0];
2403
2404 ;
2405 return 0;
2406}
2407_ACEOF
2408if ac_fn_c_try_compile "$LINENO"; then :
2409 ac_lo=0 ac_mid=0
2410 while :; do
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412/* end confdefs.h. */
2413$4
2414int
2415main ()
2416{
2417static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2418test_array [0] = 0;
2419return test_array [0];
2420
2421 ;
2422 return 0;
2423}
2424_ACEOF
2425if ac_fn_c_try_compile "$LINENO"; then :
2426 ac_hi=$ac_mid; break
2427else
2428 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2429 if test $ac_lo -le $ac_mid; then
2430 ac_lo= ac_hi=
2431 break
2432 fi
2433 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2434fi
2435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 done
2437else
2438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439/* end confdefs.h. */
2440$4
2441int
2442main ()
2443{
2444static int test_array [1 - 2 * !(($2) < 0)];
2445test_array [0] = 0;
2446return test_array [0];
2447
2448 ;
2449 return 0;
2450}
2451_ACEOF
2452if ac_fn_c_try_compile "$LINENO"; then :
2453 ac_hi=-1 ac_mid=-1
2454 while :; do
2455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456/* end confdefs.h. */
2457$4
2458int
2459main ()
2460{
2461static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2462test_array [0] = 0;
2463return test_array [0];
2464
2465 ;
2466 return 0;
2467}
2468_ACEOF
2469if ac_fn_c_try_compile "$LINENO"; then :
2470 ac_lo=$ac_mid; break
2471else
2472 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2473 if test $ac_mid -le $ac_hi; then
2474 ac_lo= ac_hi=
2475 break
2476 fi
2477 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2478fi
2479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480 done
2481else
2482 ac_lo= ac_hi=
2483fi
2484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485fi
2486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487# Binary search between lo and hi bounds.
2488while test "x$ac_lo" != "x$ac_hi"; do
2489 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491/* end confdefs.h. */
2492$4
2493int
2494main ()
2495{
2496static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2497test_array [0] = 0;
2498return test_array [0];
2499
2500 ;
2501 return 0;
2502}
2503_ACEOF
2504if ac_fn_c_try_compile "$LINENO"; then :
2505 ac_hi=$ac_mid
2506else
2507 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2508fi
2509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510done
2511case $ac_lo in #((
2512?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2513'') ac_retval=1 ;;
2514esac
2515 else
2516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2517/* end confdefs.h. */
2518$4
2519static long int longval () { return $2; }
2520static unsigned long int ulongval () { return $2; }
2521#include <stdio.h>
2522#include <stdlib.h>
2523int
2524main ()
2525{
2526
2527 FILE *f = fopen ("conftest.val", "w");
2528 if (! f)
2529 return 1;
2530 if (($2) < 0)
2531 {
2532 long int i = longval ();
2533 if (i != ($2))
2534 return 1;
2535 fprintf (f, "%ld", i);
2536 }
2537 else
2538 {
2539 unsigned long int i = ulongval ();
2540 if (i != ($2))
2541 return 1;
2542 fprintf (f, "%lu", i);
2543 }
2544 /* Do not output a trailing newline, as this causes \r\n confusion
2545 on some platforms. */
2546 return ferror (f) || fclose (f) != 0;
2547
2548 ;
2549 return 0;
2550}
2551_ACEOF
2552if ac_fn_c_try_run "$LINENO"; then :
2553 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2554else
2555 ac_retval=1
2556fi
2557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2558 conftest.$ac_objext conftest.beam conftest.$ac_ext
2559rm -f conftest.val
2560
2561 fi
2562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2563 as_fn_set_status $ac_retval
2564
2565} # ac_fn_c_compute_int
2566
cristy8b350f62009-11-15 23:12:43 +00002567# ac_fn_c_try_link LINENO
2568# -----------------------
2569# Try to link conftest.$ac_ext, and return whether this succeeded.
2570ac_fn_c_try_link ()
2571{
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 rm -f conftest.$ac_objext conftest$ac_exeext
2574 if { { ac_try="$ac_link"
2575case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578esac
2579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2580$as_echo "$ac_try_echo"; } >&5
2581 (eval "$ac_link") 2>conftest.err
2582 ac_status=$?
2583 if test -s conftest.err; then
2584 grep -v '^ *+' conftest.err >conftest.er1
2585 cat conftest.er1 >&5
2586 mv -f conftest.er1 conftest.err
2587 fi
2588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2589 test $ac_status = 0; } && {
2590 test -z "$ac_c_werror_flag" ||
2591 test ! -s conftest.err
2592 } && test -s conftest$ac_exeext && {
2593 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002594 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002595 }; then :
2596 ac_retval=0
2597else
2598 $as_echo "$as_me: failed program was:" >&5
2599sed 's/^/| /' conftest.$ac_ext >&5
2600
2601 ac_retval=1
2602fi
2603 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2604 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2605 # interfere with the next link command; also delete a directory that is
2606 # left behind by Apple's compiler. We do this before executing the actions.
2607 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002609 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002610
2611} # ac_fn_c_try_link
2612
cristy73bd4a52010-10-05 11:24:23 +00002613# ac_fn_c_check_func LINENO FUNC VAR
2614# ----------------------------------
2615# Tests whether FUNC exists, setting the cache variable VAR accordingly
2616ac_fn_c_check_func ()
2617{
2618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2620$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002621if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002622 $as_echo_n "(cached) " >&6
2623else
2624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625/* end confdefs.h. */
2626/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2628#define $2 innocuous_$2
2629
2630/* System header to define __stub macros and hopefully few prototypes,
2631 which can conflict with char $2 (); below.
2632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2633 <limits.h> exists even on freestanding compilers. */
2634
2635#ifdef __STDC__
2636# include <limits.h>
2637#else
2638# include <assert.h>
2639#endif
2640
2641#undef $2
2642
2643/* Override any GCC internal prototype to avoid an error.
2644 Use char because int might match the return type of a GCC
2645 builtin and then its argument prototype would still apply. */
2646#ifdef __cplusplus
2647extern "C"
2648#endif
2649char $2 ();
2650/* The GNU C library defines this for functions which it implements
2651 to always fail with ENOSYS. Some functions are actually named
2652 something starting with __ and the normal name is an alias. */
2653#if defined __stub_$2 || defined __stub___$2
2654choke me
2655#endif
2656
2657int
2658main ()
2659{
2660return $2 ();
2661 ;
2662 return 0;
2663}
2664_ACEOF
2665if ac_fn_c_try_link "$LINENO"; then :
2666 eval "$3=yes"
2667else
2668 eval "$3=no"
2669fi
2670rm -f core conftest.err conftest.$ac_objext \
2671 conftest$ac_exeext conftest.$ac_ext
2672fi
2673eval ac_res=\$$3
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2675$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002677
2678} # ac_fn_c_check_func
2679
2680# ac_fn_cxx_try_cpp LINENO
2681# ------------------------
2682# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2683ac_fn_cxx_try_cpp ()
2684{
2685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2686 if { { ac_try="$ac_cpp conftest.$ac_ext"
2687case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690esac
2691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2692$as_echo "$ac_try_echo"; } >&5
2693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2694 ac_status=$?
2695 if test -s conftest.err; then
2696 grep -v '^ *+' conftest.err >conftest.er1
2697 cat conftest.er1 >&5
2698 mv -f conftest.er1 conftest.err
2699 fi
2700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002701 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002702 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2703 test ! -s conftest.err
2704 }; then :
2705 ac_retval=0
2706else
2707 $as_echo "$as_me: failed program was:" >&5
2708sed 's/^/| /' conftest.$ac_ext >&5
2709
2710 ac_retval=1
2711fi
cristyda16f162011-02-19 23:52:17 +00002712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002713 as_fn_set_status $ac_retval
2714
2715} # ac_fn_cxx_try_cpp
2716
2717# ac_fn_cxx_try_link LINENO
2718# -------------------------
2719# Try to link conftest.$ac_ext, and return whether this succeeded.
2720ac_fn_cxx_try_link ()
2721{
2722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2723 rm -f conftest.$ac_objext conftest$ac_exeext
2724 if { { ac_try="$ac_link"
2725case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728esac
2729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2730$as_echo "$ac_try_echo"; } >&5
2731 (eval "$ac_link") 2>conftest.err
2732 ac_status=$?
2733 if test -s conftest.err; then
2734 grep -v '^ *+' conftest.err >conftest.er1
2735 cat conftest.er1 >&5
2736 mv -f conftest.er1 conftest.err
2737 fi
2738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2739 test $ac_status = 0; } && {
2740 test -z "$ac_cxx_werror_flag" ||
2741 test ! -s conftest.err
2742 } && test -s conftest$ac_exeext && {
2743 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002744 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002745 }; then :
2746 ac_retval=0
2747else
2748 $as_echo "$as_me: failed program was:" >&5
2749sed 's/^/| /' conftest.$ac_ext >&5
2750
2751 ac_retval=1
2752fi
2753 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2754 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2755 # interfere with the next link command; also delete a directory that is
2756 # left behind by Apple's compiler. We do this before executing the actions.
2757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002759 as_fn_set_status $ac_retval
2760
2761} # ac_fn_cxx_try_link
2762
cristy8b350f62009-11-15 23:12:43 +00002763# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2764# -------------------------------------------
2765# Tests whether TYPE exists after having included INCLUDES, setting cache
2766# variable VAR accordingly.
2767ac_fn_c_check_type ()
2768{
2769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2771$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002772if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002773 $as_echo_n "(cached) " >&6
2774else
2775 eval "$3=no"
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777/* end confdefs.h. */
2778$4
2779int
2780main ()
2781{
2782if (sizeof ($2))
2783 return 0;
2784 ;
2785 return 0;
2786}
2787_ACEOF
2788if ac_fn_c_try_compile "$LINENO"; then :
2789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2790/* end confdefs.h. */
2791$4
2792int
2793main ()
2794{
2795if (sizeof (($2)))
2796 return 0;
2797 ;
2798 return 0;
2799}
2800_ACEOF
2801if ac_fn_c_try_compile "$LINENO"; then :
2802
2803else
2804 eval "$3=yes"
2805fi
2806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807fi
2808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809fi
2810eval ac_res=\$$3
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2812$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002814
2815} # ac_fn_c_check_type
2816
cristy92703d82010-04-26 00:18:18 +00002817# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2818# ----------------------------------------------------
2819# Tries to find if the field MEMBER exists in type AGGR, after including
2820# INCLUDES, setting cache variable VAR accordingly.
2821ac_fn_c_check_member ()
2822{
2823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2825$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002826if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002827 $as_echo_n "(cached) " >&6
2828else
2829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2830/* end confdefs.h. */
2831$5
2832int
2833main ()
2834{
2835static $2 ac_aggr;
2836if (ac_aggr.$3)
2837return 0;
2838 ;
2839 return 0;
2840}
2841_ACEOF
2842if ac_fn_c_try_compile "$LINENO"; then :
2843 eval "$4=yes"
2844else
2845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2846/* end confdefs.h. */
2847$5
2848int
2849main ()
2850{
2851static $2 ac_aggr;
2852if (sizeof ac_aggr.$3)
2853return 0;
2854 ;
2855 return 0;
2856}
2857_ACEOF
2858if ac_fn_c_try_compile "$LINENO"; then :
2859 eval "$4=yes"
2860else
2861 eval "$4=no"
2862fi
2863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864fi
2865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866fi
2867eval ac_res=\$$4
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2869$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002871
2872} # ac_fn_c_check_member
2873
cristy5eef09f2012-10-16 12:08:28 +00002874# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2875# ---------------------------------------------
2876# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2877# accordingly.
2878ac_fn_c_check_decl ()
2879{
2880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2881 as_decl_name=`echo $2|sed 's/ *(.*//'`
2882 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2884$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2885if eval \${$3+:} false; then :
2886 $as_echo_n "(cached) " >&6
2887else
2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889/* end confdefs.h. */
2890$4
2891int
2892main ()
2893{
2894#ifndef $as_decl_name
2895#ifdef __cplusplus
2896 (void) $as_decl_use;
2897#else
2898 (void) $as_decl_name;
2899#endif
2900#endif
2901
2902 ;
2903 return 0;
2904}
2905_ACEOF
2906if ac_fn_c_try_compile "$LINENO"; then :
2907 eval "$3=yes"
2908else
2909 eval "$3=no"
2910fi
2911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912fi
2913eval ac_res=\$$3
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2915$as_echo "$ac_res" >&6; }
2916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2917
2918} # ac_fn_c_check_decl
2919
cristy501c8042011-05-26 17:46:28 +00002920# ac_fn_c_find_intX_t LINENO BITS VAR
2921# -----------------------------------
2922# Finds a signed integer type with width BITS, setting cache variable VAR
2923# accordingly.
2924ac_fn_c_find_intX_t ()
2925{
2926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2928$as_echo_n "checking for int$2_t... " >&6; }
2929if eval \${$3+:} false; then :
2930 $as_echo_n "(cached) " >&6
2931else
2932 eval "$3=no"
2933 # Order is important - never check a type that is potentially smaller
2934 # than half of the expected target width.
2935 for ac_type in int$2_t 'int' 'long int' \
2936 'long long int' 'short int' 'signed char'; do
2937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938/* end confdefs.h. */
2939$ac_includes_default
2940 enum { N = $2 / 2 - 1 };
2941int
2942main ()
2943{
2944static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002945test_array [0] = 0;
2946return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002947
2948 ;
2949 return 0;
2950}
2951_ACEOF
2952if ac_fn_c_try_compile "$LINENO"; then :
2953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2954/* end confdefs.h. */
2955$ac_includes_default
2956 enum { N = $2 / 2 - 1 };
2957int
2958main ()
2959{
2960static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2961 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002962test_array [0] = 0;
2963return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002964
2965 ;
2966 return 0;
2967}
2968_ACEOF
2969if ac_fn_c_try_compile "$LINENO"; then :
2970
2971else
2972 case $ac_type in #(
2973 int$2_t) :
2974 eval "$3=yes" ;; #(
2975 *) :
2976 eval "$3=\$ac_type" ;;
2977esac
2978fi
2979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980fi
2981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2982 if eval test \"x\$"$3"\" = x"no"; then :
2983
2984else
2985 break
2986fi
2987 done
2988fi
2989eval ac_res=\$$3
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2991$as_echo "$ac_res" >&6; }
2992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2993
2994} # ac_fn_c_find_intX_t
2995
2996# ac_fn_c_find_uintX_t LINENO BITS VAR
2997# ------------------------------------
2998# Finds an unsigned integer type with width BITS, setting cache variable VAR
2999# accordingly.
3000ac_fn_c_find_uintX_t ()
3001{
3002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3004$as_echo_n "checking for uint$2_t... " >&6; }
3005if eval \${$3+:} false; then :
3006 $as_echo_n "(cached) " >&6
3007else
3008 eval "$3=no"
3009 # Order is important - never check a type that is potentially smaller
3010 # than half of the expected target width.
3011 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3012 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3014/* end confdefs.h. */
3015$ac_includes_default
3016int
3017main ()
3018{
3019static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003020test_array [0] = 0;
3021return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003022
3023 ;
3024 return 0;
3025}
3026_ACEOF
3027if ac_fn_c_try_compile "$LINENO"; then :
3028 case $ac_type in #(
3029 uint$2_t) :
3030 eval "$3=yes" ;; #(
3031 *) :
3032 eval "$3=\$ac_type" ;;
3033esac
3034fi
3035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3036 if eval test \"x\$"$3"\" = x"no"; then :
3037
3038else
3039 break
3040fi
3041 done
3042fi
3043eval ac_res=\$$3
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3045$as_echo "$ac_res" >&6; }
3046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3047
3048} # ac_fn_c_find_uintX_t
3049
cristy8b350f62009-11-15 23:12:43 +00003050# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3051# ---------------------------------------------------------
3052# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3053# the include files in INCLUDES and setting the cache variable VAR
3054# accordingly.
3055ac_fn_cxx_check_header_mongrel ()
3056{
3057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003058 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3060$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003061if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003062 $as_echo_n "(cached) " >&6
3063fi
3064eval ac_res=\$$3
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3066$as_echo "$ac_res" >&6; }
3067else
3068 # Is the header compilable?
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3070$as_echo_n "checking $2 usability... " >&6; }
3071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072/* end confdefs.h. */
3073$4
3074#include <$2>
3075_ACEOF
3076if ac_fn_cxx_try_compile "$LINENO"; then :
3077 ac_header_compiler=yes
3078else
3079 ac_header_compiler=no
3080fi
3081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3083$as_echo "$ac_header_compiler" >&6; }
3084
3085# Is the header present?
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3087$as_echo_n "checking $2 presence... " >&6; }
3088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089/* end confdefs.h. */
3090#include <$2>
3091_ACEOF
3092if ac_fn_cxx_try_cpp "$LINENO"; then :
3093 ac_header_preproc=yes
3094else
3095 ac_header_preproc=no
3096fi
cristyda16f162011-02-19 23:52:17 +00003097rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3099$as_echo "$ac_header_preproc" >&6; }
3100
3101# So? What about this header?
3102case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3103 yes:no: )
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3105$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3107$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3108 ;;
3109 no:yes:* )
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3111$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3113$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3115$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3117$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3119$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003120( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003121## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003122## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003123 ) | sed "s/^/$as_me: WARNING: /" >&2
3124 ;;
3125esac
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3127$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003128if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003129 $as_echo_n "(cached) " >&6
3130else
3131 eval "$3=\$ac_header_compiler"
3132fi
3133eval ac_res=\$$3
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3135$as_echo "$ac_res" >&6; }
3136fi
cristyda16f162011-02-19 23:52:17 +00003137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003138
3139} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003140cat >config.log <<_ACEOF
3141This file contains any messages produced by compilers while
3142running configure, to aid debugging if configure makes a mistake.
3143
cristy29eb34e2011-10-16 00:46:08 +00003144It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003145generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003146
3147 $ $0 $@
3148
3149_ACEOF
3150exec 5>>config.log
3151{
3152cat <<_ASUNAME
3153## --------- ##
3154## Platform. ##
3155## --------- ##
3156
3157hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3158uname -m = `(uname -m) 2>/dev/null || echo unknown`
3159uname -r = `(uname -r) 2>/dev/null || echo unknown`
3160uname -s = `(uname -s) 2>/dev/null || echo unknown`
3161uname -v = `(uname -v) 2>/dev/null || echo unknown`
3162
3163/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3164/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3165
3166/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3167/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3168/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3169/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3170/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3171/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3172/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3173
3174_ASUNAME
3175
3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177for as_dir in $PATH
3178do
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003181 $as_echo "PATH: $as_dir"
3182 done
cristy3ed852e2009-09-05 21:47:34 +00003183IFS=$as_save_IFS
3184
3185} >&5
3186
3187cat >&5 <<_ACEOF
3188
3189
3190## ----------- ##
3191## Core tests. ##
3192## ----------- ##
3193
3194_ACEOF
3195
3196
3197# Keep a trace of the command line.
3198# Strip out --no-create and --no-recursion so they do not pile up.
3199# Strip out --silent because we don't want to record it for future runs.
3200# Also quote any args containing shell meta-characters.
3201# Make two passes to allow for proper duplicate-argument suppression.
3202ac_configure_args=
3203ac_configure_args0=
3204ac_configure_args1=
3205ac_must_keep_next=false
3206for ac_pass in 1 2
3207do
3208 for ac_arg
3209 do
3210 case $ac_arg in
3211 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3213 | -silent | --silent | --silen | --sile | --sil)
3214 continue ;;
3215 *\'*)
3216 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3217 esac
3218 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003219 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003220 2)
cristy8b350f62009-11-15 23:12:43 +00003221 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003222 if test $ac_must_keep_next = true; then
3223 ac_must_keep_next=false # Got value, back to normal.
3224 else
3225 case $ac_arg in
3226 *=* | --config-cache | -C | -disable-* | --disable-* \
3227 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3228 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3229 | -with-* | --with-* | -without-* | --without-* | --x)
3230 case "$ac_configure_args0 " in
3231 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3232 esac
3233 ;;
3234 -* ) ac_must_keep_next=true ;;
3235 esac
3236 fi
cristy8b350f62009-11-15 23:12:43 +00003237 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003238 ;;
3239 esac
3240 done
3241done
cristy8b350f62009-11-15 23:12:43 +00003242{ ac_configure_args0=; unset ac_configure_args0;}
3243{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003244
3245# When interrupted or exit'd, cleanup temporary files, and complete
3246# config.log. We remove comments because anyway the quotes in there
3247# would cause problems or look ugly.
3248# WARNING: Use '\'' to represent an apostrophe within the trap.
3249# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3250trap 'exit_status=$?
3251 # Save into config.log some information that might help in debugging.
3252 {
3253 echo
3254
cristy98dddb52010-11-04 00:30:15 +00003255 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003256## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003257## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003258 echo
3259 # The following way of writing the cache mishandles newlines in values,
3260(
3261 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3262 eval ac_val=\$$ac_var
3263 case $ac_val in #(
3264 *${as_nl}*)
3265 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003266 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003267$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3268 esac
3269 case $ac_var in #(
3270 _ | IFS | as_nl) ;; #(
3271 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003272 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003273 esac ;;
3274 esac
3275 done
3276 (set) 2>&1 |
3277 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3278 *${as_nl}ac_space=\ *)
3279 sed -n \
3280 "s/'\''/'\''\\\\'\'''\''/g;
3281 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3282 ;; #(
3283 *)
3284 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3285 ;;
3286 esac |
3287 sort
3288)
3289 echo
3290
cristy98dddb52010-11-04 00:30:15 +00003291 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003292## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003293## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003294 echo
3295 for ac_var in $ac_subst_vars
3296 do
3297 eval ac_val=\$$ac_var
3298 case $ac_val in
3299 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3300 esac
3301 $as_echo "$ac_var='\''$ac_val'\''"
3302 done | sort
3303 echo
3304
3305 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003306 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003307## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003308## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003309 echo
3310 for ac_var in $ac_subst_files
3311 do
3312 eval ac_val=\$$ac_var
3313 case $ac_val in
3314 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3315 esac
3316 $as_echo "$ac_var='\''$ac_val'\''"
3317 done | sort
3318 echo
3319 fi
3320
3321 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003322 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003323## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003324## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003325 echo
3326 cat confdefs.h
3327 echo
3328 fi
3329 test "$ac_signal" != 0 &&
3330 $as_echo "$as_me: caught signal $ac_signal"
3331 $as_echo "$as_me: exit $exit_status"
3332 } >&5
3333 rm -f core *.core core.conftest.* &&
3334 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3335 exit $exit_status
3336' 0
3337for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003338 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003339done
3340ac_signal=0
3341
3342# confdefs.h avoids OS command line length limits that DEFS can exceed.
3343rm -f -r conftest* confdefs.h
3344
cristy8b350f62009-11-15 23:12:43 +00003345$as_echo "/* confdefs.h */" > confdefs.h
3346
cristy3ed852e2009-09-05 21:47:34 +00003347# Predefined preprocessor variables.
3348
3349cat >>confdefs.h <<_ACEOF
3350#define PACKAGE_NAME "$PACKAGE_NAME"
3351_ACEOF
3352
cristy3ed852e2009-09-05 21:47:34 +00003353cat >>confdefs.h <<_ACEOF
3354#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3355_ACEOF
3356
cristy3ed852e2009-09-05 21:47:34 +00003357cat >>confdefs.h <<_ACEOF
3358#define PACKAGE_VERSION "$PACKAGE_VERSION"
3359_ACEOF
3360
cristy3ed852e2009-09-05 21:47:34 +00003361cat >>confdefs.h <<_ACEOF
3362#define PACKAGE_STRING "$PACKAGE_STRING"
3363_ACEOF
3364
cristy3ed852e2009-09-05 21:47:34 +00003365cat >>confdefs.h <<_ACEOF
3366#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3367_ACEOF
3368
cristy8b350f62009-11-15 23:12:43 +00003369cat >>confdefs.h <<_ACEOF
3370#define PACKAGE_URL "$PACKAGE_URL"
3371_ACEOF
3372
cristy3ed852e2009-09-05 21:47:34 +00003373
3374# Let the site file select an alternate cache file if it wants to.
3375# Prefer an explicitly selected file to automatically selected ones.
3376ac_site_file1=NONE
3377ac_site_file2=NONE
3378if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003379 # We do not want a PATH search for config.site.
3380 case $CONFIG_SITE in #((
3381 -*) ac_site_file1=./$CONFIG_SITE;;
3382 */*) ac_site_file1=$CONFIG_SITE;;
3383 *) ac_site_file1=./$CONFIG_SITE;;
3384 esac
cristy3ed852e2009-09-05 21:47:34 +00003385elif test "x$prefix" != xNONE; then
3386 ac_site_file1=$prefix/share/config.site
3387 ac_site_file2=$prefix/etc/config.site
3388else
3389 ac_site_file1=$ac_default_prefix/share/config.site
3390 ac_site_file2=$ac_default_prefix/etc/config.site
3391fi
3392for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3393do
3394 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003395 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003396 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003397$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3398 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003399 . "$ac_site_file" \
3400 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402as_fn_error $? "failed to load site script $ac_site_file
3403See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003404 fi
3405done
3406
3407if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003408 # Some versions of bash will fail to source /dev/null (special files
3409 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3410 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003411 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003412$as_echo "$as_me: loading cache $cache_file" >&6;}
3413 case $cache_file in
3414 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3415 *) . "./$cache_file";;
3416 esac
3417 fi
3418else
cristy8b350f62009-11-15 23:12:43 +00003419 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003420$as_echo "$as_me: creating cache $cache_file" >&6;}
3421 >$cache_file
3422fi
3423
cristycd4c5312009-11-22 01:19:08 +00003424as_fn_append ac_header_list " stdlib.h"
3425as_fn_append ac_header_list " unistd.h"
3426as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003427# Check that the precious variables saved in the cache have kept the same
3428# value.
3429ac_cache_corrupted=false
3430for ac_var in $ac_precious_vars; do
3431 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3432 eval ac_new_set=\$ac_env_${ac_var}_set
3433 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3434 eval ac_new_val=\$ac_env_${ac_var}_value
3435 case $ac_old_set,$ac_new_set in
3436 set,)
cristy8b350f62009-11-15 23:12:43 +00003437 { $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 +00003438$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3439 ac_cache_corrupted=: ;;
3440 ,set)
cristy8b350f62009-11-15 23:12:43 +00003441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003442$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3443 ac_cache_corrupted=: ;;
3444 ,);;
3445 *)
3446 if test "x$ac_old_val" != "x$ac_new_val"; then
3447 # differences in whitespace do not lead to failure.
3448 ac_old_val_w=`echo x $ac_old_val`
3449 ac_new_val_w=`echo x $ac_new_val`
3450 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003452$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3453 ac_cache_corrupted=:
3454 else
cristy8b350f62009-11-15 23:12:43 +00003455 { $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 +00003456$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3457 eval $ac_var=\$ac_old_val
3458 fi
cristy8b350f62009-11-15 23:12:43 +00003459 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003460$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003461 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003462$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3463 fi;;
3464 esac
3465 # Pass precious variables to config.status.
3466 if test "$ac_new_set" = set; then
3467 case $ac_new_val in
3468 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3469 *) ac_arg=$ac_var=$ac_new_val ;;
3470 esac
3471 case " $ac_configure_args " in
3472 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003473 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003474 esac
3475 fi
3476done
3477if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003481$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003482 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003483fi
cristy8b350f62009-11-15 23:12:43 +00003484## -------------------- ##
3485## Main body of script. ##
3486## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003487
3488ac_ext=c
3489ac_cpp='$CPP $CPPFLAGS'
3490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493
3494
3495
3496ac_aux_dir=
3497for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003498 if test -f "$ac_dir/install-sh"; then
3499 ac_aux_dir=$ac_dir
3500 ac_install_sh="$ac_aux_dir/install-sh -c"
3501 break
3502 elif test -f "$ac_dir/install.sh"; then
3503 ac_aux_dir=$ac_dir
3504 ac_install_sh="$ac_aux_dir/install.sh -c"
3505 break
3506 elif test -f "$ac_dir/shtool"; then
3507 ac_aux_dir=$ac_dir
3508 ac_install_sh="$ac_aux_dir/shtool install -c"
3509 break
3510 fi
cristy3ed852e2009-09-05 21:47:34 +00003511done
3512if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003513 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003514fi
3515
3516# These three variables are undocumented and unsupported,
3517# and are intended to be withdrawn in a future Autoconf release.
3518# They can cause serious problems if a builder's source tree is in a directory
3519# whose full name contains unusual characters.
3520ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3521ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3522ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3523
3524
3525
3526
3527ac_config_headers="$ac_config_headers config/config.h"
3528
cristy24fc1fe2010-10-23 21:13:01 +00003529
cristy01ff9f32012-12-01 18:15:29 +00003530ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003531
cristy8d0ff762013-03-10 20:33:28 +00003532ac_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 +00003533
3534
3535#
3536# Save initial user-tunable values
3537#
3538USER_LIBS=$LIBS
3539for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3540 eval isset=\${$var+set}
3541 if test "$isset" = 'set'; then
3542 eval val=$`echo $var`
3543 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3544 fi
3545done
3546
3547
3548CONFIGURE_ARGS="$0 ${ac_configure_args}"
3549
3550
3551# Source file containing package/library versioning information.
3552. ${srcdir}/version.sh
3553
cristy15a88782010-01-31 23:24:49 +00003554echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003555# Make sure we can run config.sub.
3556$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003557 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003558
cristy8b350f62009-11-15 23:12:43 +00003559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003560$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003561if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003562 $as_echo_n "(cached) " >&6
3563else
3564 ac_build_alias=$build_alias
3565test "x$ac_build_alias" = x &&
3566 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3567test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003568 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003569ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003570 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003571
3572fi
cristy8b350f62009-11-15 23:12:43 +00003573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003574$as_echo "$ac_cv_build" >&6; }
3575case $ac_cv_build in
3576*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003577*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003578esac
3579build=$ac_cv_build
3580ac_save_IFS=$IFS; IFS='-'
3581set x $ac_cv_build
3582shift
3583build_cpu=$1
3584build_vendor=$2
3585shift; shift
3586# Remember, the first character of IFS is used to create $*,
3587# except with old shells:
3588build_os=$*
3589IFS=$ac_save_IFS
3590case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3591
3592
cristy8b350f62009-11-15 23:12:43 +00003593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003594$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003595if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003596 $as_echo_n "(cached) " >&6
3597else
3598 if test "x$host_alias" = x; then
3599 ac_cv_host=$ac_cv_build
3600else
3601 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003602 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003603fi
3604
3605fi
cristy8b350f62009-11-15 23:12:43 +00003606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003607$as_echo "$ac_cv_host" >&6; }
3608case $ac_cv_host in
3609*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003610*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003611esac
3612host=$ac_cv_host
3613ac_save_IFS=$IFS; IFS='-'
3614set x $ac_cv_host
3615shift
3616host_cpu=$1
3617host_vendor=$2
3618shift; shift
3619# Remember, the first character of IFS is used to create $*,
3620# except with old shells:
3621host_os=$*
3622IFS=$ac_save_IFS
3623case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3624
3625
cristy8b350f62009-11-15 23:12:43 +00003626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003627$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003628if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003629 $as_echo_n "(cached) " >&6
3630else
3631 if test "x$target_alias" = x; then
3632 ac_cv_target=$ac_cv_host
3633else
3634 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003635 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003636fi
3637
3638fi
cristy8b350f62009-11-15 23:12:43 +00003639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003640$as_echo "$ac_cv_target" >&6; }
3641case $ac_cv_target in
3642*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003643*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003644esac
3645target=$ac_cv_target
3646ac_save_IFS=$IFS; IFS='-'
3647set x $ac_cv_target
3648shift
3649target_cpu=$1
3650target_vendor=$2
3651shift; shift
3652# Remember, the first character of IFS is used to create $*,
3653# except with old shells:
3654target_os=$*
3655IFS=$ac_save_IFS
3656case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3657
3658
3659# The aliases save the names the user supplied, while $host etc.
3660# will get canonicalized.
3661test -n "$target_alias" &&
3662 test "$program_prefix$program_suffix$program_transform_name" = \
3663 NONENONEs,x,x, &&
3664 program_prefix=${target_alias}-
3665
cristy837d6dc2010-02-27 01:16:57 +00003666
3667
3668
cristy8be34142012-06-17 14:07:18 +00003669
cristy19615b82011-04-13 20:02:01 +00003670MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003671
3672
cristy27d53d62012-07-29 23:30:07 +00003673cat >>confdefs.h <<_ACEOF
3674#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3675_ACEOF
3676
3677
cristy19615b82011-04-13 20:02:01 +00003678MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003679
3680
cristy27d53d62012-07-29 23:30:07 +00003681cat >>confdefs.h <<_ACEOF
3682#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3683_ACEOF
3684
3685
cristy19615b82011-04-13 20:02:01 +00003686MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003687
3688
cristy27d53d62012-07-29 23:30:07 +00003689cat >>confdefs.h <<_ACEOF
3690#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3691_ACEOF
3692
3693
cristy37442762013-02-10 21:07:23 +00003694
3695# Substitute versioning
3696MAGICK_MAJOR_VERSION=7
3697
3698MAGICK_MINOR_VERSION=0
3699
3700MAGICK_MICRO_VERSION=0
3701
3702MAGICK_PATCHLEVEL_VERSION=0
3703
3704MAGICK_VERSION=7.0.0-0
3705
cristy99db3872014-01-01 15:11:34 +00003706MAGICK_SVN_REVISION=14085:14096M
cristy37442762013-02-10 21:07:23 +00003707
3708
cristy3ed852e2009-09-05 21:47:34 +00003709# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003710MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3711
3712MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3713
cristy37442762013-02-10 21:07:23 +00003714
cristy5ed9c6e2013-07-14 21:20:31 +00003715MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
3716
3717MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
3718
3719
cristyd694ca32011-03-27 21:42:54 +00003720
cristy3ed852e2009-09-05 21:47:34 +00003721# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3723$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003724# Reject unsafe characters in $srcdir or the absolute working directory
3725# name. Accept space and tab only in the latter.
3726am_lf='
3727'
3728case `pwd` in
3729 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003730 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003731esac
3732case $srcdir in
3733 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003734 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003735esac
cristy3ed852e2009-09-05 21:47:34 +00003736
cristyc0890a62012-07-19 00:18:20 +00003737# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003738# arguments. Must try -L first in case configure is actually a
3739# symlink; some systems play weird games with the mod time of symlinks
3740# (eg FreeBSD returns the mod time of the symlink's containing
3741# directory).
3742if (
cristyc0890a62012-07-19 00:18:20 +00003743 am_has_slept=no
3744 for am_try in 1 2; do
3745 echo "timestamp, slept: $am_has_slept" > conftest.file
3746 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3747 if test "$*" = "X"; then
3748 # -L didn't work.
3749 set X `ls -t "$srcdir/configure" conftest.file`
3750 fi
3751 if test "$*" != "X $srcdir/configure conftest.file" \
3752 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003753
cristyc0890a62012-07-19 00:18:20 +00003754 # If neither matched, then we have a broken ls. This can happen
3755 # if, for instance, CONFIG_SHELL is bash and it inherits a
3756 # broken ls alias from the environment. This has actually
3757 # happened. Such a system could not be considered "sane".
3758 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3759 alias in your environment" "$LINENO" 5
3760 fi
3761 if test "$2" = conftest.file || test $am_try -eq 2; then
3762 break
3763 fi
3764 # Just in case.
3765 sleep 1
3766 am_has_slept=yes
3767 done
cristy73bd4a52010-10-05 11:24:23 +00003768 test "$2" = conftest.file
3769 )
3770then
3771 # Ok.
3772 :
3773else
cristy98dddb52010-11-04 00:30:15 +00003774 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003775Check your system clock" "$LINENO" 5
3776fi
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3778$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003779# If we didn't sleep, we still need to ensure time stamps of config.status and
3780# generated files are strictly newer.
3781am_sleep_pid=
3782if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3783 ( sleep 1 ) &
3784 am_sleep_pid=$!
3785fi
cristy73bd4a52010-10-05 11:24:23 +00003786
cristyc0890a62012-07-19 00:18:20 +00003787rm -f conftest.file
3788
3789
cristya5bda012013-11-03 18:05:38 +00003790am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003791
3792# Find a good install program. We prefer a C program (faster),
3793# so one script is as good as another. But avoid the broken or
3794# incompatible versions:
3795# SysV /etc/install, /usr/sbin/install
3796# SunOS /usr/etc/install
3797# IRIX /sbin/install
3798# AIX /bin/install
3799# AmigaOS /C/install, which installs bootblocks on floppy discs
3800# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3801# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3802# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3803# OS/2's system install, which has a completely different semantic
3804# ./install, which can be erroneously created by make from ./install.sh.
3805# Reject install programs that cannot install multiple files.
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3807$as_echo_n "checking for a BSD-compatible install... " >&6; }
3808if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003809if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003810 $as_echo_n "(cached) " >&6
3811else
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813for as_dir in $PATH
3814do
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 # Account for people who put trailing slashes in PATH elements.
3818case $as_dir/ in #((
3819 ./ | .// | /[cC]/* | \
3820 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3821 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3822 /usr/ucb/* ) ;;
3823 *)
3824 # OSF1 and SCO ODT 3.0 have their own names for install.
3825 # Don't use installbsd from OSF since it installs stuff as root
3826 # by default.
3827 for ac_prog in ginstall scoinst install; do
3828 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003829 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003830 if test $ac_prog = install &&
3831 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3832 # AIX install. It has an incompatible calling convention.
3833 :
3834 elif test $ac_prog = install &&
3835 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3836 # program-specific install script used by HP pwplus--don't use.
3837 :
3838 else
3839 rm -rf conftest.one conftest.two conftest.dir
3840 echo one > conftest.one
3841 echo two > conftest.two
3842 mkdir conftest.dir
3843 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3844 test -s conftest.one && test -s conftest.two &&
3845 test -s conftest.dir/conftest.one &&
3846 test -s conftest.dir/conftest.two
3847 then
3848 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3849 break 3
3850 fi
3851 fi
3852 fi
3853 done
3854 done
3855 ;;
3856esac
3857
3858 done
3859IFS=$as_save_IFS
3860
3861rm -rf conftest.one conftest.two conftest.dir
3862
3863fi
3864 if test "${ac_cv_path_install+set}" = set; then
3865 INSTALL=$ac_cv_path_install
3866 else
3867 # As a last resort, use the slow shell script. Don't cache a
3868 # value for INSTALL within a source directory, because that will
3869 # break other packages using the cache if that directory is
3870 # removed, or if the value is a relative name.
3871 INSTALL=$ac_install_sh
3872 fi
3873fi
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3875$as_echo "$INSTALL" >&6; }
3876
3877# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3878# It thinks the first close brace ends the variable substitution.
3879test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3880
3881test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3882
3883test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3884
3885test "$program_prefix" != NONE &&
3886 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3887# Use a double $ so make ignores it.
3888test "$program_suffix" != NONE &&
3889 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3890# Double any \ or $.
3891# By default was `s,x,x', remove it if useless.
3892ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3893program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3894
3895# expand $ac_aux_dir to an absolute path
3896am_aux_dir=`cd $ac_aux_dir && pwd`
3897
3898if test x"${MISSING+set}" != xset; then
3899 case $am_aux_dir in
3900 *\ * | *\ *)
3901 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3902 *)
3903 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3904 esac
3905fi
3906# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003907if eval "$MISSING --is-lightweight"; then
3908 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003909else
3910 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3912$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003913fi
3914
3915if test x"${install_sh}" != xset; then
3916 case $am_aux_dir in
3917 *\ * | *\ *)
3918 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3919 *)
3920 install_sh="\${SHELL} $am_aux_dir/install-sh"
3921 esac
3922fi
3923
cristyc0890a62012-07-19 00:18:20 +00003924# Installed binaries are usually stripped using 'strip' when the user
3925# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003926# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003927# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003928if test "$cross_compiling" != no; then
3929 if test -n "$ac_tool_prefix"; then
3930 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3931set dummy ${ac_tool_prefix}strip; ac_word=$2
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3933$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003934if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003935 $as_echo_n "(cached) " >&6
3936else
3937 if test -n "$STRIP"; then
3938 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3939else
3940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941for as_dir in $PATH
3942do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003947 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 break 2
3950 fi
3951done
3952 done
3953IFS=$as_save_IFS
3954
3955fi
3956fi
3957STRIP=$ac_cv_prog_STRIP
3958if test -n "$STRIP"; then
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3960$as_echo "$STRIP" >&6; }
3961else
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963$as_echo "no" >&6; }
3964fi
3965
3966
3967fi
3968if test -z "$ac_cv_prog_STRIP"; then
3969 ac_ct_STRIP=$STRIP
3970 # Extract the first word of "strip", so it can be a program name with args.
3971set dummy strip; ac_word=$2
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003974if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003975 $as_echo_n "(cached) " >&6
3976else
3977 if test -n "$ac_ct_STRIP"; then
3978 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3979else
3980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981for as_dir in $PATH
3982do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003987 ac_cv_prog_ac_ct_STRIP="strip"
3988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 break 2
3990 fi
3991done
3992 done
3993IFS=$as_save_IFS
3994
3995fi
3996fi
3997ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3998if test -n "$ac_ct_STRIP"; then
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4000$as_echo "$ac_ct_STRIP" >&6; }
4001else
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003$as_echo "no" >&6; }
4004fi
4005
4006 if test "x$ac_ct_STRIP" = x; then
4007 STRIP=":"
4008 else
4009 case $cross_compiling:$ac_tool_warned in
4010yes:)
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4013ac_tool_warned=yes ;;
4014esac
4015 STRIP=$ac_ct_STRIP
4016 fi
4017else
4018 STRIP="$ac_cv_prog_STRIP"
4019fi
4020
4021fi
4022INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4023
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4025$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4026if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004027 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004028 $as_echo_n "(cached) " >&6
4029else
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4032do
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
4035 for ac_prog in mkdir gmkdir; do
4036 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004037 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004038 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4039 'mkdir (GNU coreutils) '* | \
4040 'mkdir (coreutils) '* | \
4041 'mkdir (fileutils) '4.1*)
4042 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4043 break 3;;
4044 esac
4045 done
4046 done
4047 done
4048IFS=$as_save_IFS
4049
4050fi
4051
4052 test -d ./--version && rmdir ./--version
4053 if test "${ac_cv_path_mkdir+set}" = set; then
4054 MKDIR_P="$ac_cv_path_mkdir -p"
4055 else
4056 # As a last resort, use the slow shell script. Don't cache a
4057 # value for MKDIR_P within a source directory, because that will
4058 # break other packages using the cache if that directory is
4059 # removed, or if the value is a relative name.
4060 MKDIR_P="$ac_install_sh -d"
4061 fi
4062fi
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4064$as_echo "$MKDIR_P" >&6; }
4065
cristy73bd4a52010-10-05 11:24:23 +00004066for ac_prog in gawk mawk nawk awk
4067do
4068 # Extract the first word of "$ac_prog", so it can be a program name with args.
4069set dummy $ac_prog; ac_word=$2
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4071$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004072if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004073 $as_echo_n "(cached) " >&6
4074else
4075 if test -n "$AWK"; then
4076 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4077else
4078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079for as_dir in $PATH
4080do
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004085 ac_cv_prog_AWK="$ac_prog"
4086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 break 2
4088 fi
4089done
4090 done
4091IFS=$as_save_IFS
4092
4093fi
4094fi
4095AWK=$ac_cv_prog_AWK
4096if test -n "$AWK"; then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4098$as_echo "$AWK" >&6; }
4099else
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101$as_echo "no" >&6; }
4102fi
4103
4104
4105 test -n "$AWK" && break
4106done
4107
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4109$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4110set x ${MAKE-make}
4111ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004112if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004113 $as_echo_n "(cached) " >&6
4114else
4115 cat >conftest.make <<\_ACEOF
4116SHELL = /bin/sh
4117all:
4118 @echo '@@@%%%=$(MAKE)=@@@%%%'
4119_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004120# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004121case `${MAKE-make} -f conftest.make 2>/dev/null` in
4122 *@@@%%%=?*=@@@%%%*)
4123 eval ac_cv_prog_make_${ac_make}_set=yes;;
4124 *)
4125 eval ac_cv_prog_make_${ac_make}_set=no;;
4126esac
4127rm -f conftest.make
4128fi
4129if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4131$as_echo "yes" >&6; }
4132 SET_MAKE=
4133else
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135$as_echo "no" >&6; }
4136 SET_MAKE="MAKE=${MAKE-make}"
4137fi
4138
4139rm -rf .tst 2>/dev/null
4140mkdir .tst 2>/dev/null
4141if test -d .tst; then
4142 am__leading_dot=.
4143else
4144 am__leading_dot=_
4145fi
4146rmdir .tst 2>/dev/null
4147
cristya448bd22011-10-14 12:38:13 +00004148# Check whether --enable-silent-rules was given.
4149if test "${enable_silent_rules+set}" = set; then :
4150 enableval=$enable_silent_rules;
4151fi
4152
cristyc0890a62012-07-19 00:18:20 +00004153case $enable_silent_rules in # (((
4154 yes) AM_DEFAULT_VERBOSITY=0;;
4155 no) AM_DEFAULT_VERBOSITY=1;;
4156 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004157esac
cristyc3fb77b2012-02-06 01:49:41 +00004158am_make=${MAKE-make}
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4160$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4161if ${am_cv_make_support_nested_variables+:} false; then :
4162 $as_echo_n "(cached) " >&6
4163else
4164 if $as_echo 'TRUE=$(BAR$(V))
4165BAR0=false
4166BAR1=true
4167V=1
4168am__doit:
4169 @$(TRUE)
4170.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4171 am_cv_make_support_nested_variables=yes
4172else
4173 am_cv_make_support_nested_variables=no
4174fi
4175fi
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4177$as_echo "$am_cv_make_support_nested_variables" >&6; }
4178if test $am_cv_make_support_nested_variables = yes; then
4179 AM_V='$(V)'
4180 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4181else
4182 AM_V=$AM_DEFAULT_VERBOSITY
4183 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4184fi
cristya448bd22011-10-14 12:38:13 +00004185AM_BACKSLASH='\'
4186
cristy73bd4a52010-10-05 11:24:23 +00004187if test "`cd $srcdir && pwd`" != "`pwd`"; then
4188 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4189 # is not polluted with repeated "-I."
4190 am__isrc=' -I$(srcdir)'
4191 # test to see if srcdir already configured
4192 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004193 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004194 fi
4195fi
4196
4197# test whether we have cygpath
4198if test -z "$CYGPATH_W"; then
4199 if (cygpath --version) >/dev/null 2>/dev/null; then
4200 CYGPATH_W='cygpath -w'
4201 else
4202 CYGPATH_W=echo
4203 fi
4204fi
4205
4206
4207# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004208 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004209 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004210
4211
cristya448bd22011-10-14 12:38:13 +00004212cat >>confdefs.h <<_ACEOF
4213#define PACKAGE "$PACKAGE"
4214_ACEOF
4215
4216
4217cat >>confdefs.h <<_ACEOF
4218#define VERSION "$VERSION"
4219_ACEOF
4220
cristy73bd4a52010-10-05 11:24:23 +00004221# Some tools Automake needs.
4222
4223ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4224
4225
4226AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4227
4228
4229AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4230
4231
4232AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4233
4234
4235MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4236
cristyc0890a62012-07-19 00:18:20 +00004237# For better backward compatibility. To be removed once Automake 1.9.x
4238# dies out for good. For more background, see:
4239# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4240# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4241mkdir_p='$(MKDIR_P)'
4242
cristy73bd4a52010-10-05 11:24:23 +00004243# We need awk for the "check" target. The system "awk" is bad on
4244# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004245# Always define AMTAR for backward compatibility. Yes, it's still used
4246# in the wild :-( We should find a proper way to deprecate it ...
4247AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004248
cristye69bdbe2013-05-03 21:40:44 +00004249
4250# We'll loop over all known methods to create a tar archive until one works.
4251_am_tools='gnutar pax cpio none'
4252
cristyc3fb77b2012-02-06 01:49:41 +00004253am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004254
4255
4256
4257
4258
cristy3ed852e2009-09-05 21:47:34 +00004259
cristya5bda012013-11-03 18:05:38 +00004260# POSIX will say in a future version that running "rm -f" with no argument
4261# is OK; and we want to be able to make that assumption in our Makefile
4262# recipes. So use an aggressive probe to check that the usage we want is
4263# actually supported "in the wild" to an acceptable degree.
4264# See automake bug#10828.
4265# To make any issue more visible, cause the running configure to be aborted
4266# by default if the 'rm' program in use doesn't match our expectations; the
4267# user can still override this though.
4268if rm -f && rm -fr && rm -rf; then : OK; else
4269 cat >&2 <<'END'
4270Oops!
4271
4272Your 'rm' program seems unable to run without file operands specified
4273on the command line, even when the '-f' option is present. This is contrary
4274to the behaviour of most rm programs out there, and not conforming with
4275the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4276
4277Please tell bug-automake@gnu.org about your system, including the value
4278of your $PATH and any error possibly output before this message. This
4279can help us improve future automake versions.
4280
4281END
4282 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4283 echo 'Configuration will proceed anyway, since you have set the' >&2
4284 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4285 echo >&2
4286 else
4287 cat >&2 <<'END'
4288Aborting the configuration process, to ensure you take notice of the issue.
4289
4290You can download and install GNU coreutils to get an 'rm' implementation
4291that behaves properly: <http://www.gnu.org/software/coreutils/>.
4292
4293If you want to complete the configuration process using your problematic
4294'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4295to "yes", and re-run configure.
4296
4297END
4298 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4299 fi
4300fi
cristye69bdbe2013-05-03 21:40:44 +00004301
cristy3ed852e2009-09-05 21:47:34 +00004302# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004303# Check whether --enable-silent-rules was given.
4304if test "${enable_silent_rules+set}" = set; then :
4305 enableval=$enable_silent_rules;
4306fi
4307
cristyc0890a62012-07-19 00:18:20 +00004308case $enable_silent_rules in # (((
4309 yes) AM_DEFAULT_VERBOSITY=0;;
4310 no) AM_DEFAULT_VERBOSITY=1;;
4311 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004312esac
cristyc3fb77b2012-02-06 01:49:41 +00004313am_make=${MAKE-make}
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4315$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4316if ${am_cv_make_support_nested_variables+:} false; then :
4317 $as_echo_n "(cached) " >&6
4318else
4319 if $as_echo 'TRUE=$(BAR$(V))
4320BAR0=false
4321BAR1=true
4322V=1
4323am__doit:
4324 @$(TRUE)
4325.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4326 am_cv_make_support_nested_variables=yes
4327else
4328 am_cv_make_support_nested_variables=no
4329fi
4330fi
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4332$as_echo "$am_cv_make_support_nested_variables" >&6; }
4333if test $am_cv_make_support_nested_variables = yes; then
4334 AM_V='$(V)'
4335 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4336else
4337 AM_V=$AM_DEFAULT_VERBOSITY
4338 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4339fi
cristy73bd4a52010-10-05 11:24:23 +00004340AM_BACKSLASH='\'
4341
cristy3ed852e2009-09-05 21:47:34 +00004342
cristy5ed9c6e2013-07-14 21:20:31 +00004343# versionning of library
cristy3ed852e2009-09-05 21:47:34 +00004344MAGICK_LIB_VERSION="0x"
4345if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4346 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4347fi
4348MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4349if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4350 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4351fi
4352MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4353if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4354 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4355fi
4356MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4357
4358
4359# Definition used to define MagickLibVersionText in version.h
4360MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4361
4362
4363# Definition used to define MagickLibVersionNumber in version.h
4364MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4365
4366
cristy5ed9c6e2013-07-14 21:20:31 +00004367MAGICKPP_LIB_VERSION="0x"
4368if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4369 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4370fi
4371MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4372if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4373 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4374fi
4375MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4376if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4377 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4378fi
4379MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4380
4381
4382# Definition used to define MagickLibVersionText in version.h
4383MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4384
4385
4386# Definition used to define MagickLibVersionNumber in version.h
4387MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4388
4389
4390
4391
cristy3ed852e2009-09-05 21:47:34 +00004392# Regenerate config.status if ChangeLog or version.sh is updated.
4393CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4394
4395
4396PERLMAINCC=$CC
4397
4398MAGICK_CFLAGS=''
4399MAGICK_CPPFLAGS=$CPPFLAGS_USER
4400MAGICK_PCFLAGS=$CPPFLAGS_USER
4401MAGICK_LDFLAGS=''
4402MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004403MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004404
4405#
4406# Evaluate shell variable equivalents to Makefile directory variables
4407#
4408if test "x$prefix" = xNONE; then
4409 prefix=$ac_default_prefix
4410fi
4411# Let make expand exec_prefix.
4412if test "x$exec_prefix" = xNONE; then
4413 exec_prefix='${prefix}'
4414fi
4415
4416#
4417eval "eval PREFIX_DIR=${prefix}"
4418
4419eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4420
4421eval "eval BIN_DIR=$bindir"
4422
4423eval "eval SBIN_DIR=$sbindir"
4424
4425eval "eval LIBEXEC_DIR=$libexecdir"
4426
4427eval "eval DATA_DIR=$datadir"
4428
cristy4e65ec22012-04-08 01:33:27 +00004429eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004430
cristy3ed852e2009-09-05 21:47:34 +00004431eval "eval SYSCONF_DIR=$sysconfdir"
4432
4433eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4434
4435eval "eval LOCALSTATE_DIR=$localstatedir"
4436
4437eval "eval LIB_DIR=$libdir"
4438
4439eval "eval INCLUDE_DIR=$includedir"
4440
4441eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4442
4443eval "eval INFO_DIR=$infodir"
4444
4445eval "eval MAN_DIR=$mandir"
4446
4447
4448# Get full paths to source and build directories
4449srcdirfull="`cd $srcdir && pwd`"
4450builddir="`pwd`"
4451
4452#
4453# Compute variables useful for running uninstalled software.
4454#
4455MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4456MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4457MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4458MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4459DIRSEP=':'
4460case "${build_os}" in
4461 mingw* )
4462 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4463 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4464 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4465 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4466 DIRSEP=';'
4467 ;;
4468esac
4469case "${host_os}" in
4470 mingw* )
4471 DIRSEP=';'
4472 ;;
4473esac
4474
4475
4476
4477
4478
4479
cristya0b81c32010-01-22 02:54:33 +00004480
4481#
4482# Enable OS features.
4483#
cristy73bd4a52010-10-05 11:24:23 +00004484DEPDIR="${am__leading_dot}deps"
4485
4486ac_config_commands="$ac_config_commands depfiles"
4487
4488
4489am_make=${MAKE-make}
4490cat > confinc << 'END'
4491am__doit:
4492 @echo this is the am__doit target
4493.PHONY: am__doit
4494END
4495# If we don't find an include directive, just comment out the code.
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4497$as_echo_n "checking for style of include used by $am_make... " >&6; }
4498am__include="#"
4499am__quote=
4500_am_result=none
4501# First try GNU make style include.
4502echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004503# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004504case `$am_make -s -f confmf 2> /dev/null` in #(
4505*the\ am__doit\ target*)
4506 am__include=include
4507 am__quote=
4508 _am_result=GNU
4509 ;;
4510esac
4511# Now try BSD make style include.
4512if test "$am__include" = "#"; then
4513 echo '.include "confinc"' > confmf
4514 case `$am_make -s -f confmf 2> /dev/null` in #(
4515 *the\ am__doit\ target*)
4516 am__include=.include
4517 am__quote="\""
4518 _am_result=BSD
4519 ;;
4520 esac
4521fi
4522
4523
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4525$as_echo "$_am_result" >&6; }
4526rm -f confinc confmf
4527
4528# Check whether --enable-dependency-tracking was given.
4529if test "${enable_dependency_tracking+set}" = set; then :
4530 enableval=$enable_dependency_tracking;
4531fi
4532
4533if test "x$enable_dependency_tracking" != xno; then
4534 am_depcomp="$ac_aux_dir/depcomp"
4535 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004536 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004537fi
4538 if test "x$enable_dependency_tracking" != xno; then
4539 AMDEP_TRUE=
4540 AMDEP_FALSE='#'
4541else
4542 AMDEP_TRUE='#'
4543 AMDEP_FALSE=
4544fi
4545
4546
cristy3ed852e2009-09-05 21:47:34 +00004547ac_ext=c
4548ac_cpp='$CPP $CPPFLAGS'
4549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552if test -n "$ac_tool_prefix"; then
4553 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4554set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004556$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004557if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004558 $as_echo_n "(cached) " >&6
4559else
4560 if test -n "$CC"; then
4561 ac_cv_prog_CC="$CC" # Let the user override the test.
4562else
4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004570 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004572 break 2
4573 fi
4574done
cristy8b350f62009-11-15 23:12:43 +00004575 done
cristy3ed852e2009-09-05 21:47:34 +00004576IFS=$as_save_IFS
4577
4578fi
4579fi
4580CC=$ac_cv_prog_CC
4581if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004583$as_echo "$CC" >&6; }
4584else
cristy8b350f62009-11-15 23:12:43 +00004585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004586$as_echo "no" >&6; }
4587fi
4588
4589
4590fi
4591if test -z "$ac_cv_prog_CC"; then
4592 ac_ct_CC=$CC
4593 # Extract the first word of "gcc", so it can be a program name with args.
4594set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004596$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004597if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004598 $as_echo_n "(cached) " >&6
4599else
4600 if test -n "$ac_ct_CC"; then
4601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4602else
4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604for as_dir in $PATH
4605do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004608 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004610 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004612 break 2
4613 fi
4614done
cristy8b350f62009-11-15 23:12:43 +00004615 done
cristy3ed852e2009-09-05 21:47:34 +00004616IFS=$as_save_IFS
4617
4618fi
4619fi
4620ac_ct_CC=$ac_cv_prog_ac_ct_CC
4621if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004623$as_echo "$ac_ct_CC" >&6; }
4624else
cristy8b350f62009-11-15 23:12:43 +00004625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004626$as_echo "no" >&6; }
4627fi
4628
4629 if test "x$ac_ct_CC" = x; then
4630 CC=""
4631 else
4632 case $cross_compiling:$ac_tool_warned in
4633yes:)
cristy8b350f62009-11-15 23:12:43 +00004634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636ac_tool_warned=yes ;;
4637esac
4638 CC=$ac_ct_CC
4639 fi
4640else
4641 CC="$ac_cv_prog_CC"
4642fi
4643
4644if test -z "$CC"; then
4645 if test -n "$ac_tool_prefix"; then
4646 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4647set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004649$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004650if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004651 $as_echo_n "(cached) " >&6
4652else
4653 if test -n "$CC"; then
4654 ac_cv_prog_CC="$CC" # Let the user override the test.
4655else
4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004661 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004663 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004665 break 2
4666 fi
4667done
cristy8b350f62009-11-15 23:12:43 +00004668 done
cristy3ed852e2009-09-05 21:47:34 +00004669IFS=$as_save_IFS
4670
4671fi
4672fi
4673CC=$ac_cv_prog_CC
4674if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004676$as_echo "$CC" >&6; }
4677else
cristy8b350f62009-11-15 23:12:43 +00004678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004679$as_echo "no" >&6; }
4680fi
4681
4682
4683 fi
4684fi
4685if test -z "$CC"; then
4686 # Extract the first word of "cc", so it can be a program name with args.
4687set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004689$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004690if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004691 $as_echo_n "(cached) " >&6
4692else
4693 if test -n "$CC"; then
4694 ac_cv_prog_CC="$CC" # Let the user override the test.
4695else
4696 ac_prog_rejected=no
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004702 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004704 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4705 ac_prog_rejected=yes
4706 continue
4707 fi
4708 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004710 break 2
4711 fi
4712done
cristy8b350f62009-11-15 23:12:43 +00004713 done
cristy3ed852e2009-09-05 21:47:34 +00004714IFS=$as_save_IFS
4715
4716if test $ac_prog_rejected = yes; then
4717 # We found a bogon in the path, so make sure we never use it.
4718 set dummy $ac_cv_prog_CC
4719 shift
4720 if test $# != 0; then
4721 # We chose a different compiler from the bogus one.
4722 # However, it has the same basename, so the bogon will be chosen
4723 # first if we set CC to just the basename; use the full file name.
4724 shift
4725 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4726 fi
4727fi
4728fi
4729fi
4730CC=$ac_cv_prog_CC
4731if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004733$as_echo "$CC" >&6; }
4734else
cristy8b350f62009-11-15 23:12:43 +00004735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004736$as_echo "no" >&6; }
4737fi
4738
4739
4740fi
4741if test -z "$CC"; then
4742 if test -n "$ac_tool_prefix"; then
4743 for ac_prog in cl.exe
4744 do
4745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4746set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004748$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004749if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004750 $as_echo_n "(cached) " >&6
4751else
4752 if test -n "$CC"; then
4753 ac_cv_prog_CC="$CC" # Let the user override the test.
4754else
4755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756for as_dir in $PATH
4757do
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004760 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004762 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004764 break 2
4765 fi
4766done
cristy8b350f62009-11-15 23:12:43 +00004767 done
cristy3ed852e2009-09-05 21:47:34 +00004768IFS=$as_save_IFS
4769
4770fi
4771fi
4772CC=$ac_cv_prog_CC
4773if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004775$as_echo "$CC" >&6; }
4776else
cristy8b350f62009-11-15 23:12:43 +00004777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004778$as_echo "no" >&6; }
4779fi
4780
4781
4782 test -n "$CC" && break
4783 done
4784fi
4785if test -z "$CC"; then
4786 ac_ct_CC=$CC
4787 for ac_prog in cl.exe
4788do
4789 # Extract the first word of "$ac_prog", so it can be a program name with args.
4790set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004792$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004793if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004794 $as_echo_n "(cached) " >&6
4795else
4796 if test -n "$ac_ct_CC"; then
4797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4798else
4799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800for as_dir in $PATH
4801do
4802 IFS=$as_save_IFS
4803 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004804 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004806 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004808 break 2
4809 fi
4810done
cristy8b350f62009-11-15 23:12:43 +00004811 done
cristy3ed852e2009-09-05 21:47:34 +00004812IFS=$as_save_IFS
4813
4814fi
4815fi
4816ac_ct_CC=$ac_cv_prog_ac_ct_CC
4817if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004819$as_echo "$ac_ct_CC" >&6; }
4820else
cristy8b350f62009-11-15 23:12:43 +00004821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004822$as_echo "no" >&6; }
4823fi
4824
4825
4826 test -n "$ac_ct_CC" && break
4827done
4828
4829 if test "x$ac_ct_CC" = x; then
4830 CC=""
4831 else
4832 case $cross_compiling:$ac_tool_warned in
4833yes:)
cristy8b350f62009-11-15 23:12:43 +00004834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4836ac_tool_warned=yes ;;
4837esac
4838 CC=$ac_ct_CC
4839 fi
4840fi
4841
4842fi
4843
4844
cristy8b350f62009-11-15 23:12:43 +00004845test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004847as_fn_error $? "no acceptable C compiler found in \$PATH
4848See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004849
4850# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004851$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004852set X $ac_compile
4853ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004854for ac_option in --version -v -V -qversion; do
4855 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004856case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4859esac
cristy8b350f62009-11-15 23:12:43 +00004860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4861$as_echo "$ac_try_echo"; } >&5
4862 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004863 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004864 if test -s conftest.err; then
4865 sed '10a\
4866... rest of stderr output deleted ...
4867 10q' conftest.err >conftest.er1
4868 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004869 fi
cristycd4c5312009-11-22 01:19:08 +00004870 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4872 test $ac_status = 0; }
4873done
cristy3ed852e2009-09-05 21:47:34 +00004874
cristy8b350f62009-11-15 23:12:43 +00004875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004876/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004877
cristy3ed852e2009-09-05 21:47:34 +00004878int
4879main ()
4880{
4881
4882 ;
4883 return 0;
4884}
4885_ACEOF
4886ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004887ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004888# Try to create an executable without -o first, disregard a.out.
4889# It will help us diagnose broken compilers, and finding out an intuition
4890# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4892$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004893ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4894
4895# The possible output files:
4896ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4897
4898ac_rmfiles=
4899for ac_file in $ac_files
4900do
4901 case $ac_file in
4902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4903 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4904 esac
4905done
4906rm -f $ac_rmfiles
4907
cristy8b350f62009-11-15 23:12:43 +00004908if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004909case "(($ac_try" in
4910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911 *) ac_try_echo=$ac_try;;
4912esac
cristy8b350f62009-11-15 23:12:43 +00004913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4914$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004915 (eval "$ac_link_default") 2>&5
4916 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004919 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4920# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4921# in a Makefile. We should not override ac_cv_exeext if it was cached,
4922# so that the user can short-circuit this test for compilers unknown to
4923# Autoconf.
4924for ac_file in $ac_files ''
4925do
4926 test -f "$ac_file" || continue
4927 case $ac_file in
4928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4929 ;;
4930 [ab].out )
4931 # We found the default executable, but exeext='' is most
4932 # certainly right.
4933 break;;
4934 *.* )
cristy8b350f62009-11-15 23:12:43 +00004935 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004936 then :; else
4937 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4938 fi
4939 # We set ac_cv_exeext here because the later test for it is not
4940 # safe: cross compilers may not add the suffix if given an `-o'
4941 # argument, so we may need to know it at that point already.
4942 # Even if this section looks crufty: it has the advantage of
4943 # actually working.
4944 break;;
4945 * )
4946 break;;
4947 esac
4948done
4949test "$ac_cv_exeext" = no && ac_cv_exeext=
4950
4951else
4952 ac_file=''
4953fi
cristy8b350f62009-11-15 23:12:43 +00004954if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956$as_echo "no" >&6; }
4957$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004958sed 's/^/| /' conftest.$ac_ext >&5
4959
cristy8b350f62009-11-15 23:12:43 +00004960{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004962as_fn_error 77 "C compiler cannot create executables
4963See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004964else
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4966$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004967fi
cristycd4c5312009-11-22 01:19:08 +00004968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4969$as_echo_n "checking for C compiler default output file name... " >&6; }
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4971$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004972ac_exeext=$ac_cv_exeext
4973
cristycd4c5312009-11-22 01:19:08 +00004974rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004975ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004977$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004978if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004979case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982esac
cristy8b350f62009-11-15 23:12:43 +00004983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4984$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004985 (eval "$ac_link") 2>&5
4986 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4988 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004989 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4990# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4991# work properly (i.e., refer to `conftest.exe'), while it won't with
4992# `rm'.
4993for ac_file in conftest.exe conftest conftest.*; do
4994 test -f "$ac_file" || continue
4995 case $ac_file in
4996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4997 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4998 break;;
4999 * ) break;;
5000 esac
5001done
5002else
cristy8b350f62009-11-15 23:12:43 +00005003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005005as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5006See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005007fi
cristycd4c5312009-11-22 01:19:08 +00005008rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005010$as_echo "$ac_cv_exeext" >&6; }
5011
5012rm -f conftest.$ac_ext
5013EXEEXT=$ac_cv_exeext
5014ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016/* end confdefs.h. */
5017#include <stdio.h>
5018int
5019main ()
5020{
5021FILE *f = fopen ("conftest.out", "w");
5022 return ferror (f) || fclose (f) != 0;
5023
5024 ;
5025 return 0;
5026}
5027_ACEOF
5028ac_clean_files="$ac_clean_files conftest.out"
5029# Check that the compiler produces executables we can run. If not, either
5030# the compiler is broken, or we cross compile.
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5032$as_echo_n "checking whether we are cross compiling... " >&6; }
5033if test "$cross_compiling" != yes; then
5034 { { ac_try="$ac_link"
5035case "(($ac_try" in
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5038esac
5039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5040$as_echo "$ac_try_echo"; } >&5
5041 (eval "$ac_link") 2>&5
5042 ac_status=$?
5043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5044 test $ac_status = 0; }
5045 if { ac_try='./conftest$ac_cv_exeext'
5046 { { case "(($ac_try" in
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5049esac
5050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5051$as_echo "$ac_try_echo"; } >&5
5052 (eval "$ac_try") 2>&5
5053 ac_status=$?
5054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5055 test $ac_status = 0; }; }; then
5056 cross_compiling=no
5057 else
5058 if test "$cross_compiling" = maybe; then
5059 cross_compiling=yes
5060 else
5061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005063as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005064If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005065See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005066 fi
5067 fi
5068fi
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5070$as_echo "$cross_compiling" >&6; }
5071
5072rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5073ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005075$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005076if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005077 $as_echo_n "(cached) " >&6
5078else
cristy8b350f62009-11-15 23:12:43 +00005079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005080/* end confdefs.h. */
5081
5082int
5083main ()
5084{
5085
5086 ;
5087 return 0;
5088}
5089_ACEOF
5090rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005091if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005092case "(($ac_try" in
5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094 *) ac_try_echo=$ac_try;;
5095esac
cristy8b350f62009-11-15 23:12:43 +00005096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5097$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005098 (eval "$ac_compile") 2>&5
5099 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5101 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005102 for ac_file in conftest.o conftest.obj conftest.*; do
5103 test -f "$ac_file" || continue;
5104 case $ac_file in
5105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5106 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5107 break;;
5108 esac
5109done
5110else
5111 $as_echo "$as_me: failed program was:" >&5
5112sed 's/^/| /' conftest.$ac_ext >&5
5113
cristy8b350f62009-11-15 23:12:43 +00005114{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005116as_fn_error $? "cannot compute suffix of object files: cannot compile
5117See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005118fi
cristy3ed852e2009-09-05 21:47:34 +00005119rm -f conftest.$ac_cv_objext conftest.$ac_ext
5120fi
cristy8b350f62009-11-15 23:12:43 +00005121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005122$as_echo "$ac_cv_objext" >&6; }
5123OBJEXT=$ac_cv_objext
5124ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005126$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005127if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005128 $as_echo_n "(cached) " >&6
5129else
cristy8b350f62009-11-15 23:12:43 +00005130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005131/* end confdefs.h. */
5132
5133int
5134main ()
5135{
5136#ifndef __GNUC__
5137 choke me
5138#endif
5139
5140 ;
5141 return 0;
5142}
5143_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005144if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005145 ac_compiler_gnu=yes
5146else
cristy8b350f62009-11-15 23:12:43 +00005147 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005148fi
cristy3ed852e2009-09-05 21:47:34 +00005149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150ac_cv_c_compiler_gnu=$ac_compiler_gnu
5151
5152fi
cristy8b350f62009-11-15 23:12:43 +00005153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005154$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5155if test $ac_compiler_gnu = yes; then
5156 GCC=yes
5157else
5158 GCC=
5159fi
5160ac_test_CFLAGS=${CFLAGS+set}
5161ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005163$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005164if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005165 $as_echo_n "(cached) " >&6
5166else
5167 ac_save_c_werror_flag=$ac_c_werror_flag
5168 ac_c_werror_flag=yes
5169 ac_cv_prog_cc_g=no
5170 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005172/* end confdefs.h. */
5173
5174int
5175main ()
5176{
5177
5178 ;
5179 return 0;
5180}
5181_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005182if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005183 ac_cv_prog_cc_g=yes
5184else
cristy8b350f62009-11-15 23:12:43 +00005185 CFLAGS=""
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005187/* end confdefs.h. */
5188
5189int
5190main ()
5191{
5192
5193 ;
5194 return 0;
5195}
5196_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005197if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005198
cristy8b350f62009-11-15 23:12:43 +00005199else
5200 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005201 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005203/* end confdefs.h. */
5204
5205int
5206main ()
5207{
5208
5209 ;
5210 return 0;
5211}
5212_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005213if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005214 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005215fi
cristy3ed852e2009-09-05 21:47:34 +00005216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5217fi
cristy3ed852e2009-09-05 21:47:34 +00005218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5219fi
cristy3ed852e2009-09-05 21:47:34 +00005220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221 ac_c_werror_flag=$ac_save_c_werror_flag
5222fi
cristy8b350f62009-11-15 23:12:43 +00005223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005224$as_echo "$ac_cv_prog_cc_g" >&6; }
5225if test "$ac_test_CFLAGS" = set; then
5226 CFLAGS=$ac_save_CFLAGS
5227elif test $ac_cv_prog_cc_g = yes; then
5228 if test "$GCC" = yes; then
5229 CFLAGS="-g -O2"
5230 else
5231 CFLAGS="-g"
5232 fi
5233else
5234 if test "$GCC" = yes; then
5235 CFLAGS="-O2"
5236 else
5237 CFLAGS=
5238 fi
5239fi
cristy8b350f62009-11-15 23:12:43 +00005240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005241$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005242if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005243 $as_echo_n "(cached) " >&6
5244else
5245 ac_cv_prog_cc_c89=no
5246ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005248/* end confdefs.h. */
5249#include <stdarg.h>
5250#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005251struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005252/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5253struct buf { int x; };
5254FILE * (*rcsopen) (struct buf *, struct stat *, int);
5255static char *e (p, i)
5256 char **p;
5257 int i;
5258{
5259 return p[i];
5260}
5261static char *f (char * (*g) (char **, int), char **p, ...)
5262{
5263 char *s;
5264 va_list v;
5265 va_start (v,p);
5266 s = g (p, va_arg (v,int));
5267 va_end (v);
5268 return s;
5269}
5270
5271/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5272 function prototypes and stuff, but not '\xHH' hex character constants.
5273 These don't provoke an error unfortunately, instead are silently treated
5274 as 'x'. The following induces an error, until -std is added to get
5275 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5276 array size at least. It's necessary to write '\x00'==0 to get something
5277 that's true only with -std. */
5278int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5279
5280/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5281 inside strings and character constants. */
5282#define FOO(x) 'x'
5283int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5284
5285int test (int i, double x);
5286struct s1 {int (*f) (int a);};
5287struct s2 {int (*f) (double a);};
5288int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5289int argc;
5290char **argv;
5291int
5292main ()
5293{
5294return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5295 ;
5296 return 0;
5297}
5298_ACEOF
5299for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5300 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5301do
5302 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005303 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005304 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005305fi
cristy3ed852e2009-09-05 21:47:34 +00005306rm -f core conftest.err conftest.$ac_objext
5307 test "x$ac_cv_prog_cc_c89" != "xno" && break
5308done
5309rm -f conftest.$ac_ext
5310CC=$ac_save_CC
5311
5312fi
5313# AC_CACHE_VAL
5314case "x$ac_cv_prog_cc_c89" in
5315 x)
cristy8b350f62009-11-15 23:12:43 +00005316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005317$as_echo "none needed" >&6; } ;;
5318 xno)
cristy8b350f62009-11-15 23:12:43 +00005319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005320$as_echo "unsupported" >&6; } ;;
5321 *)
5322 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005324$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5325esac
cristy8b350f62009-11-15 23:12:43 +00005326if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005327
cristy8b350f62009-11-15 23:12:43 +00005328fi
cristy3ed852e2009-09-05 21:47:34 +00005329
5330ac_ext=c
5331ac_cpp='$CPP $CPPFLAGS'
5332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005335
cristya5bda012013-11-03 18:05:38 +00005336ac_ext=c
5337ac_cpp='$CPP $CPPFLAGS'
5338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340ac_compiler_gnu=$ac_cv_c_compiler_gnu
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5342$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5343if ${am_cv_prog_cc_c_o+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345else
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347/* end confdefs.h. */
5348
5349int
5350main ()
5351{
5352
5353 ;
5354 return 0;
5355}
5356_ACEOF
5357 # Make sure it works both with $CC and with simple cc.
5358 # Following AC_PROG_CC_C_O, we do the test twice because some
5359 # compilers refuse to overwrite an existing .o file with -o,
5360 # though they will create one.
5361 am_cv_prog_cc_c_o=yes
5362 for am_i in 1 2; do
5363 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5364 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5365 ac_status=$?
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } \
5368 && test -f conftest2.$ac_objext; then
5369 : OK
5370 else
5371 am_cv_prog_cc_c_o=no
5372 break
5373 fi
5374 done
5375 rm -f core conftest*
5376 unset am_i
5377fi
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5379$as_echo "$am_cv_prog_cc_c_o" >&6; }
5380if test "$am_cv_prog_cc_c_o" != yes; then
5381 # Losing compiler, so override with the script.
5382 # FIXME: It is wrong to rewrite CC.
5383 # But if we don't then we get into trouble of one sort or another.
5384 # A longer-term fix would be to have automake use am__CC in this case,
5385 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5386 CC="$am_aux_dir/compile $CC"
5387fi
5388ac_ext=c
5389ac_cpp='$CPP $CPPFLAGS'
5390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5392ac_compiler_gnu=$ac_cv_c_compiler_gnu
5393
5394
cristy73bd4a52010-10-05 11:24:23 +00005395depcc="$CC" am_compiler_list=
5396
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5398$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005399if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005400 $as_echo_n "(cached) " >&6
5401else
5402 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5403 # We make a subdir and do the tests there. Otherwise we can end up
5404 # making bogus files that we don't know about and never remove. For
5405 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005406 # making a dummy file named 'D' -- because '-MD' means "put the output
5407 # in D".
cristy7247bba2012-02-05 16:37:27 +00005408 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005409 mkdir conftest.dir
5410 # Copy depcomp to subdir because otherwise we won't find it if we're
5411 # using a relative directory.
5412 cp "$am_depcomp" conftest.dir
5413 cd conftest.dir
5414 # We will build objects and dependencies in a subdirectory because
5415 # it helps to detect inapplicable dependency modes. For instance
5416 # both Tru64's cc and ICC support -MD to output dependencies as a
5417 # side effect of compilation, but ICC will put the dependencies in
5418 # the current directory while Tru64 will put them in the object
5419 # directory.
5420 mkdir sub
5421
5422 am_cv_CC_dependencies_compiler_type=none
5423 if test "$am_compiler_list" = ""; then
5424 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5425 fi
5426 am__universal=false
5427 case " $depcc " in #(
5428 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5429 esac
5430
5431 for depmode in $am_compiler_list; do
5432 # Setup a source with many dependencies, because some compilers
5433 # like to wrap large dependency lists on column 80 (with \), and
5434 # we should not choose a depcomp mode which is confused by this.
5435 #
5436 # We need to recreate these files for each test, as the compiler may
5437 # overwrite some of them when testing with obscure command lines.
5438 # This happens at least with the AIX C compiler.
5439 : > sub/conftest.c
5440 for i in 1 2 3 4 5 6; do
5441 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005442 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5443 # Solaris 10 /bin/sh.
5444 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005445 done
5446 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5447
cristyc0890a62012-07-19 00:18:20 +00005448 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005449 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005450 # handle '-M -o', and we need to detect this. Also, some Intel
5451 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005452 am__obj=sub/conftest.${OBJEXT-o}
5453 am__minus_obj="-o $am__obj"
5454 case $depmode in
5455 gcc)
5456 # This depmode causes a compiler race in universal mode.
5457 test "$am__universal" = false || continue
5458 ;;
5459 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005460 # After this tag, mechanisms are not by side-effect, so they'll
5461 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005462 if test "x$enable_dependency_tracking" = xyes; then
5463 continue
5464 else
5465 break
5466 fi
5467 ;;
cristy7247bba2012-02-05 16:37:27 +00005468 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005469 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005470 # not run yet. These depmodes are late enough in the game, and
5471 # so weak that their functioning should not be impacted.
5472 am__obj=conftest.${OBJEXT-o}
5473 am__minus_obj=
5474 ;;
5475 none) break ;;
5476 esac
5477 if depmode=$depmode \
5478 source=sub/conftest.c object=$am__obj \
5479 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5480 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5481 >/dev/null 2>conftest.err &&
5482 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5483 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5484 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5485 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5486 # icc doesn't choke on unknown options, it will just issue warnings
5487 # or remarks (even with -Werror). So we grep stderr for any message
5488 # that says an option was ignored or not supported.
5489 # When given -MP, icc 7.0 and 7.1 complain thusly:
5490 # icc: Command line warning: ignoring option '-M'; no argument required
5491 # The diagnosis changed in icc 8.0:
5492 # icc: Command line remark: option '-MP' not supported
5493 if (grep 'ignoring option' conftest.err ||
5494 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5495 am_cv_CC_dependencies_compiler_type=$depmode
5496 break
5497 fi
5498 fi
5499 done
5500
5501 cd ..
5502 rm -rf conftest.dir
5503else
5504 am_cv_CC_dependencies_compiler_type=none
5505fi
5506
5507fi
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5509$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5510CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5511
5512 if
5513 test "x$enable_dependency_tracking" != xno \
5514 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5515 am__fastdepCC_TRUE=
5516 am__fastdepCC_FALSE='#'
5517else
5518 am__fastdepCC_TRUE='#'
5519 am__fastdepCC_FALSE=
5520fi
5521
5522
cristy3ed852e2009-09-05 21:47:34 +00005523
cristya0b81c32010-01-22 02:54:33 +00005524ac_ext=c
5525ac_cpp='$CPP $CPPFLAGS'
5526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5528ac_compiler_gnu=$ac_cv_c_compiler_gnu
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5530$as_echo_n "checking how to run the C preprocessor... " >&6; }
5531# On Suns, sometimes $CPP names a directory.
5532if test -n "$CPP" && test -d "$CPP"; then
5533 CPP=
5534fi
5535if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005536 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005537 $as_echo_n "(cached) " >&6
5538else
5539 # Double quotes because CPP needs to be expanded
5540 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5541 do
5542 ac_preproc_ok=false
5543for ac_c_preproc_warn_flag in '' yes
5544do
5545 # Use a header file that comes with gcc, so configuring glibc
5546 # with a fresh cross-compiler works.
5547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5548 # <limits.h> exists even on freestanding compilers.
5549 # On the NeXT, cc -E runs the code through the compiler's parser,
5550 # not just through cpp. "Syntax error" is here to catch this case.
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552/* end confdefs.h. */
5553#ifdef __STDC__
5554# include <limits.h>
5555#else
5556# include <assert.h>
5557#endif
5558 Syntax error
5559_ACEOF
5560if ac_fn_c_try_cpp "$LINENO"; then :
5561
5562else
5563 # Broken: fails on valid input.
5564continue
5565fi
cristyda16f162011-02-19 23:52:17 +00005566rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005567
5568 # OK, works on sane cases. Now check whether nonexistent headers
5569 # can be detected and how.
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571/* end confdefs.h. */
5572#include <ac_nonexistent.h>
5573_ACEOF
5574if ac_fn_c_try_cpp "$LINENO"; then :
5575 # Broken: success on invalid input.
5576continue
5577else
5578 # Passes both tests.
5579ac_preproc_ok=:
5580break
5581fi
cristyda16f162011-02-19 23:52:17 +00005582rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005583
5584done
5585# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005586rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005587if $ac_preproc_ok; then :
5588 break
5589fi
5590
5591 done
5592 ac_cv_prog_CPP=$CPP
5593
5594fi
5595 CPP=$ac_cv_prog_CPP
5596else
5597 ac_cv_prog_CPP=$CPP
5598fi
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5600$as_echo "$CPP" >&6; }
5601ac_preproc_ok=false
5602for ac_c_preproc_warn_flag in '' yes
5603do
5604 # Use a header file that comes with gcc, so configuring glibc
5605 # with a fresh cross-compiler works.
5606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5607 # <limits.h> exists even on freestanding compilers.
5608 # On the NeXT, cc -E runs the code through the compiler's parser,
5609 # not just through cpp. "Syntax error" is here to catch this case.
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611/* end confdefs.h. */
5612#ifdef __STDC__
5613# include <limits.h>
5614#else
5615# include <assert.h>
5616#endif
5617 Syntax error
5618_ACEOF
5619if ac_fn_c_try_cpp "$LINENO"; then :
5620
5621else
5622 # Broken: fails on valid input.
5623continue
5624fi
cristyda16f162011-02-19 23:52:17 +00005625rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005626
5627 # OK, works on sane cases. Now check whether nonexistent headers
5628 # can be detected and how.
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630/* end confdefs.h. */
5631#include <ac_nonexistent.h>
5632_ACEOF
5633if ac_fn_c_try_cpp "$LINENO"; then :
5634 # Broken: success on invalid input.
5635continue
5636else
5637 # Passes both tests.
5638ac_preproc_ok=:
5639break
5640fi
cristyda16f162011-02-19 23:52:17 +00005641rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005642
5643done
5644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005645rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005646if $ac_preproc_ok; then :
5647
5648else
5649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005651as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5652See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005653fi
5654
5655ac_ext=c
5656ac_cpp='$CPP $CPPFLAGS'
5657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5659ac_compiler_gnu=$ac_cv_c_compiler_gnu
5660
5661
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5663$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005664if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005665 $as_echo_n "(cached) " >&6
5666else
5667 if test -z "$GREP"; then
5668 ac_path_GREP_found=false
5669 # Loop through the user's path and test for each of PROGNAME-LIST
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5672do
5673 IFS=$as_save_IFS
5674 test -z "$as_dir" && as_dir=.
5675 for ac_prog in grep ggrep; do
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005678 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005679# Check for GNU ac_path_GREP and select it if it is found.
5680 # Check for GNU $ac_path_GREP
5681case `"$ac_path_GREP" --version 2>&1` in
5682*GNU*)
5683 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5684*)
5685 ac_count=0
5686 $as_echo_n 0123456789 >"conftest.in"
5687 while :
5688 do
5689 cat "conftest.in" "conftest.in" >"conftest.tmp"
5690 mv "conftest.tmp" "conftest.in"
5691 cp "conftest.in" "conftest.nl"
5692 $as_echo 'GREP' >> "conftest.nl"
5693 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5695 as_fn_arith $ac_count + 1 && ac_count=$as_val
5696 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5697 # Best one so far, save it but keep looking for a better one
5698 ac_cv_path_GREP="$ac_path_GREP"
5699 ac_path_GREP_max=$ac_count
5700 fi
5701 # 10*(2^10) chars as input seems more than enough
5702 test $ac_count -gt 10 && break
5703 done
5704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5705esac
5706
5707 $ac_path_GREP_found && break 3
5708 done
5709 done
5710 done
5711IFS=$as_save_IFS
5712 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005713 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005714 fi
5715else
5716 ac_cv_path_GREP=$GREP
5717fi
5718
5719fi
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5721$as_echo "$ac_cv_path_GREP" >&6; }
5722 GREP="$ac_cv_path_GREP"
5723
5724
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5726$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005727if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005728 $as_echo_n "(cached) " >&6
5729else
5730 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5731 then ac_cv_path_EGREP="$GREP -E"
5732 else
5733 if test -z "$EGREP"; then
5734 ac_path_EGREP_found=false
5735 # Loop through the user's path and test for each of PROGNAME-LIST
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5738do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_prog in egrep; do
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005744 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005745# Check for GNU ac_path_EGREP and select it if it is found.
5746 # Check for GNU $ac_path_EGREP
5747case `"$ac_path_EGREP" --version 2>&1` in
5748*GNU*)
5749 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5750*)
5751 ac_count=0
5752 $as_echo_n 0123456789 >"conftest.in"
5753 while :
5754 do
5755 cat "conftest.in" "conftest.in" >"conftest.tmp"
5756 mv "conftest.tmp" "conftest.in"
5757 cp "conftest.in" "conftest.nl"
5758 $as_echo 'EGREP' >> "conftest.nl"
5759 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5760 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5761 as_fn_arith $ac_count + 1 && ac_count=$as_val
5762 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5763 # Best one so far, save it but keep looking for a better one
5764 ac_cv_path_EGREP="$ac_path_EGREP"
5765 ac_path_EGREP_max=$ac_count
5766 fi
5767 # 10*(2^10) chars as input seems more than enough
5768 test $ac_count -gt 10 && break
5769 done
5770 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5771esac
5772
5773 $ac_path_EGREP_found && break 3
5774 done
5775 done
5776 done
5777IFS=$as_save_IFS
5778 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005779 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005780 fi
5781else
5782 ac_cv_path_EGREP=$EGREP
5783fi
5784
5785 fi
5786fi
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5788$as_echo "$ac_cv_path_EGREP" >&6; }
5789 EGREP="$ac_cv_path_EGREP"
5790
5791
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5793$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005794if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005795 $as_echo_n "(cached) " >&6
5796else
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798/* end confdefs.h. */
5799#include <stdlib.h>
5800#include <stdarg.h>
5801#include <string.h>
5802#include <float.h>
5803
5804int
5805main ()
5806{
5807
5808 ;
5809 return 0;
5810}
5811_ACEOF
5812if ac_fn_c_try_compile "$LINENO"; then :
5813 ac_cv_header_stdc=yes
5814else
5815 ac_cv_header_stdc=no
5816fi
5817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818
5819if test $ac_cv_header_stdc = yes; then
5820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822/* end confdefs.h. */
5823#include <string.h>
5824
5825_ACEOF
5826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5827 $EGREP "memchr" >/dev/null 2>&1; then :
5828
5829else
5830 ac_cv_header_stdc=no
5831fi
5832rm -f conftest*
5833
5834fi
5835
5836if test $ac_cv_header_stdc = yes; then
5837 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839/* end confdefs.h. */
5840#include <stdlib.h>
5841
5842_ACEOF
5843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5844 $EGREP "free" >/dev/null 2>&1; then :
5845
5846else
5847 ac_cv_header_stdc=no
5848fi
5849rm -f conftest*
5850
5851fi
5852
5853if test $ac_cv_header_stdc = yes; then
5854 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5855 if test "$cross_compiling" = yes; then :
5856 :
5857else
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859/* end confdefs.h. */
5860#include <ctype.h>
5861#include <stdlib.h>
5862#if ((' ' & 0x0FF) == 0x020)
5863# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5864# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5865#else
5866# define ISLOWER(c) \
5867 (('a' <= (c) && (c) <= 'i') \
5868 || ('j' <= (c) && (c) <= 'r') \
5869 || ('s' <= (c) && (c) <= 'z'))
5870# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5871#endif
5872
5873#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5874int
5875main ()
5876{
5877 int i;
5878 for (i = 0; i < 256; i++)
5879 if (XOR (islower (i), ISLOWER (i))
5880 || toupper (i) != TOUPPER (i))
5881 return 2;
5882 return 0;
5883}
5884_ACEOF
5885if ac_fn_c_try_run "$LINENO"; then :
5886
5887else
5888 ac_cv_header_stdc=no
5889fi
5890rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5891 conftest.$ac_objext conftest.beam conftest.$ac_ext
5892fi
5893
5894fi
5895fi
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5897$as_echo "$ac_cv_header_stdc" >&6; }
5898if test $ac_cv_header_stdc = yes; then
5899
5900$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5901
5902fi
5903
5904# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5905for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5906 inttypes.h stdint.h unistd.h
5907do :
5908 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5909ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5910"
cristy98dddb52010-11-04 00:30:15 +00005911if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005912 cat >>confdefs.h <<_ACEOF
5913#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5914_ACEOF
5915
5916fi
5917
5918done
5919
5920
5921
5922 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 +00005923if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005924 MINIX=yes
5925else
5926 MINIX=
5927fi
5928
5929
5930 if test "$MINIX" = yes; then
5931
5932$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5933
5934
5935$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5936
5937
5938$as_echo "#define _MINIX 1" >>confdefs.h
5939
5940 fi
5941
5942
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5944$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005945if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005946 $as_echo_n "(cached) " >&6
5947else
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949/* end confdefs.h. */
5950
cristy14fefe52012-05-21 00:59:18 +00005951# define __EXTENSIONS__ 1
5952 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005953int
5954main ()
5955{
5956
5957 ;
5958 return 0;
5959}
5960_ACEOF
5961if ac_fn_c_try_compile "$LINENO"; then :
5962 ac_cv_safe_to_define___extensions__=yes
5963else
5964 ac_cv_safe_to_define___extensions__=no
5965fi
5966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967fi
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5969$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5970 test $ac_cv_safe_to_define___extensions__ = yes &&
5971 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5972
5973 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5974
5975 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5976
5977 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5978
5979 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5980
5981
5982
5983# Check for programs
5984ac_ext=c
5985ac_cpp='$CPP $CPPFLAGS'
5986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988ac_compiler_gnu=$ac_cv_c_compiler_gnu
5989if test -n "$ac_tool_prefix"; then
5990 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5991set dummy ${ac_tool_prefix}gcc; ac_word=$2
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5993$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005994if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005995 $as_echo_n "(cached) " >&6
5996else
5997 if test -n "$CC"; then
5998 ac_cv_prog_CC="$CC" # Let the user override the test.
5999else
6000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001for as_dir in $PATH
6002do
6003 IFS=$as_save_IFS
6004 test -z "$as_dir" && as_dir=.
6005 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006007 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 break 2
6010 fi
6011done
6012 done
6013IFS=$as_save_IFS
6014
6015fi
6016fi
6017CC=$ac_cv_prog_CC
6018if test -n "$CC"; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6020$as_echo "$CC" >&6; }
6021else
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023$as_echo "no" >&6; }
6024fi
6025
6026
6027fi
6028if test -z "$ac_cv_prog_CC"; then
6029 ac_ct_CC=$CC
6030 # Extract the first word of "gcc", so it can be a program name with args.
6031set dummy gcc; ac_word=$2
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006034if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006035 $as_echo_n "(cached) " >&6
6036else
6037 if test -n "$ac_ct_CC"; then
6038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6039else
6040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041for as_dir in $PATH
6042do
6043 IFS=$as_save_IFS
6044 test -z "$as_dir" && as_dir=.
6045 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006047 ac_cv_prog_ac_ct_CC="gcc"
6048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049 break 2
6050 fi
6051done
6052 done
6053IFS=$as_save_IFS
6054
6055fi
6056fi
6057ac_ct_CC=$ac_cv_prog_ac_ct_CC
6058if test -n "$ac_ct_CC"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6060$as_echo "$ac_ct_CC" >&6; }
6061else
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063$as_echo "no" >&6; }
6064fi
6065
6066 if test "x$ac_ct_CC" = x; then
6067 CC=""
6068 else
6069 case $cross_compiling:$ac_tool_warned in
6070yes:)
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6073ac_tool_warned=yes ;;
6074esac
6075 CC=$ac_ct_CC
6076 fi
6077else
6078 CC="$ac_cv_prog_CC"
6079fi
6080
6081if test -z "$CC"; then
6082 if test -n "$ac_tool_prefix"; then
6083 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6084set dummy ${ac_tool_prefix}cc; ac_word=$2
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006087if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006088 $as_echo_n "(cached) " >&6
6089else
6090 if test -n "$CC"; then
6091 ac_cv_prog_CC="$CC" # Let the user override the test.
6092else
6093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094for as_dir in $PATH
6095do
6096 IFS=$as_save_IFS
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006100 ac_cv_prog_CC="${ac_tool_prefix}cc"
6101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 break 2
6103 fi
6104done
6105 done
6106IFS=$as_save_IFS
6107
6108fi
6109fi
6110CC=$ac_cv_prog_CC
6111if test -n "$CC"; then
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6113$as_echo "$CC" >&6; }
6114else
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116$as_echo "no" >&6; }
6117fi
6118
6119
6120 fi
6121fi
6122if test -z "$CC"; then
6123 # Extract the first word of "cc", so it can be a program name with args.
6124set dummy cc; ac_word=$2
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006127if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006128 $as_echo_n "(cached) " >&6
6129else
6130 if test -n "$CC"; then
6131 ac_cv_prog_CC="$CC" # Let the user override the test.
6132else
6133 ac_prog_rejected=no
6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH
6136do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006141 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6142 ac_prog_rejected=yes
6143 continue
6144 fi
6145 ac_cv_prog_CC="cc"
6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 break 2
6148 fi
6149done
6150 done
6151IFS=$as_save_IFS
6152
6153if test $ac_prog_rejected = yes; then
6154 # We found a bogon in the path, so make sure we never use it.
6155 set dummy $ac_cv_prog_CC
6156 shift
6157 if test $# != 0; then
6158 # We chose a different compiler from the bogus one.
6159 # However, it has the same basename, so the bogon will be chosen
6160 # first if we set CC to just the basename; use the full file name.
6161 shift
6162 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6163 fi
6164fi
6165fi
6166fi
6167CC=$ac_cv_prog_CC
6168if test -n "$CC"; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6170$as_echo "$CC" >&6; }
6171else
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173$as_echo "no" >&6; }
6174fi
6175
6176
6177fi
6178if test -z "$CC"; then
6179 if test -n "$ac_tool_prefix"; then
6180 for ac_prog in cl.exe
6181 do
6182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6183set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006186if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006187 $as_echo_n "(cached) " >&6
6188else
6189 if test -n "$CC"; then
6190 ac_cv_prog_CC="$CC" # Let the user override the test.
6191else
6192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193for as_dir in $PATH
6194do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006199 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6202 fi
6203done
6204 done
6205IFS=$as_save_IFS
6206
6207fi
6208fi
6209CC=$ac_cv_prog_CC
6210if test -n "$CC"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6212$as_echo "$CC" >&6; }
6213else
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215$as_echo "no" >&6; }
6216fi
6217
6218
6219 test -n "$CC" && break
6220 done
6221fi
6222if test -z "$CC"; then
6223 ac_ct_CC=$CC
6224 for ac_prog in cl.exe
6225do
6226 # Extract the first word of "$ac_prog", so it can be a program name with args.
6227set dummy $ac_prog; ac_word=$2
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006230if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006231 $as_echo_n "(cached) " >&6
6232else
6233 if test -n "$ac_ct_CC"; then
6234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6235else
6236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237for as_dir in $PATH
6238do
6239 IFS=$as_save_IFS
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006243 ac_cv_prog_ac_ct_CC="$ac_prog"
6244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6245 break 2
6246 fi
6247done
6248 done
6249IFS=$as_save_IFS
6250
6251fi
6252fi
6253ac_ct_CC=$ac_cv_prog_ac_ct_CC
6254if test -n "$ac_ct_CC"; then
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6256$as_echo "$ac_ct_CC" >&6; }
6257else
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259$as_echo "no" >&6; }
6260fi
6261
6262
6263 test -n "$ac_ct_CC" && break
6264done
6265
6266 if test "x$ac_ct_CC" = x; then
6267 CC=""
6268 else
6269 case $cross_compiling:$ac_tool_warned in
6270yes:)
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6273ac_tool_warned=yes ;;
6274esac
6275 CC=$ac_ct_CC
6276 fi
6277fi
6278
6279fi
6280
6281
6282test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006284as_fn_error $? "no acceptable C compiler found in \$PATH
6285See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006286
6287# Provide some information about the compiler.
6288$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6289set X $ac_compile
6290ac_compiler=$2
6291for ac_option in --version -v -V -qversion; do
6292 { { ac_try="$ac_compiler $ac_option >&5"
6293case "(($ac_try" in
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6296esac
6297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6298$as_echo "$ac_try_echo"; } >&5
6299 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6300 ac_status=$?
6301 if test -s conftest.err; then
6302 sed '10a\
6303... rest of stderr output deleted ...
6304 10q' conftest.err >conftest.er1
6305 cat conftest.er1 >&5
6306 fi
6307 rm -f conftest.er1 conftest.err
6308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6309 test $ac_status = 0; }
6310done
6311
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6313$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006314if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006315 $as_echo_n "(cached) " >&6
6316else
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318/* end confdefs.h. */
6319
6320int
6321main ()
6322{
6323#ifndef __GNUC__
6324 choke me
6325#endif
6326
6327 ;
6328 return 0;
6329}
6330_ACEOF
6331if ac_fn_c_try_compile "$LINENO"; then :
6332 ac_compiler_gnu=yes
6333else
6334 ac_compiler_gnu=no
6335fi
6336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337ac_cv_c_compiler_gnu=$ac_compiler_gnu
6338
6339fi
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6341$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6342if test $ac_compiler_gnu = yes; then
6343 GCC=yes
6344else
6345 GCC=
6346fi
6347ac_test_CFLAGS=${CFLAGS+set}
6348ac_save_CFLAGS=$CFLAGS
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6350$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006351if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006352 $as_echo_n "(cached) " >&6
6353else
6354 ac_save_c_werror_flag=$ac_c_werror_flag
6355 ac_c_werror_flag=yes
6356 ac_cv_prog_cc_g=no
6357 CFLAGS="-g"
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359/* end confdefs.h. */
6360
6361int
6362main ()
6363{
6364
6365 ;
6366 return 0;
6367}
6368_ACEOF
6369if ac_fn_c_try_compile "$LINENO"; then :
6370 ac_cv_prog_cc_g=yes
6371else
6372 CFLAGS=""
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374/* end confdefs.h. */
6375
6376int
6377main ()
6378{
6379
6380 ;
6381 return 0;
6382}
6383_ACEOF
6384if ac_fn_c_try_compile "$LINENO"; then :
6385
6386else
6387 ac_c_werror_flag=$ac_save_c_werror_flag
6388 CFLAGS="-g"
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390/* end confdefs.h. */
6391
6392int
6393main ()
6394{
6395
6396 ;
6397 return 0;
6398}
6399_ACEOF
6400if ac_fn_c_try_compile "$LINENO"; then :
6401 ac_cv_prog_cc_g=yes
6402fi
6403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404fi
6405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406fi
6407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6408 ac_c_werror_flag=$ac_save_c_werror_flag
6409fi
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6411$as_echo "$ac_cv_prog_cc_g" >&6; }
6412if test "$ac_test_CFLAGS" = set; then
6413 CFLAGS=$ac_save_CFLAGS
6414elif test $ac_cv_prog_cc_g = yes; then
6415 if test "$GCC" = yes; then
6416 CFLAGS="-g -O2"
6417 else
6418 CFLAGS="-g"
6419 fi
6420else
6421 if test "$GCC" = yes; then
6422 CFLAGS="-O2"
6423 else
6424 CFLAGS=
6425 fi
6426fi
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6428$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006429if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006430 $as_echo_n "(cached) " >&6
6431else
6432 ac_cv_prog_cc_c89=no
6433ac_save_CC=$CC
6434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435/* end confdefs.h. */
6436#include <stdarg.h>
6437#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006438struct stat;
cristya0b81c32010-01-22 02:54:33 +00006439/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6440struct buf { int x; };
6441FILE * (*rcsopen) (struct buf *, struct stat *, int);
6442static char *e (p, i)
6443 char **p;
6444 int i;
6445{
6446 return p[i];
6447}
6448static char *f (char * (*g) (char **, int), char **p, ...)
6449{
6450 char *s;
6451 va_list v;
6452 va_start (v,p);
6453 s = g (p, va_arg (v,int));
6454 va_end (v);
6455 return s;
6456}
6457
6458/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6459 function prototypes and stuff, but not '\xHH' hex character constants.
6460 These don't provoke an error unfortunately, instead are silently treated
6461 as 'x'. The following induces an error, until -std is added to get
6462 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6463 array size at least. It's necessary to write '\x00'==0 to get something
6464 that's true only with -std. */
6465int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6466
6467/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6468 inside strings and character constants. */
6469#define FOO(x) 'x'
6470int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6471
6472int test (int i, double x);
6473struct s1 {int (*f) (int a);};
6474struct s2 {int (*f) (double a);};
6475int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6476int argc;
6477char **argv;
6478int
6479main ()
6480{
6481return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6482 ;
6483 return 0;
6484}
6485_ACEOF
6486for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6487 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6488do
6489 CC="$ac_save_CC $ac_arg"
6490 if ac_fn_c_try_compile "$LINENO"; then :
6491 ac_cv_prog_cc_c89=$ac_arg
6492fi
6493rm -f core conftest.err conftest.$ac_objext
6494 test "x$ac_cv_prog_cc_c89" != "xno" && break
6495done
6496rm -f conftest.$ac_ext
6497CC=$ac_save_CC
6498
6499fi
6500# AC_CACHE_VAL
6501case "x$ac_cv_prog_cc_c89" in
6502 x)
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6504$as_echo "none needed" >&6; } ;;
6505 xno)
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6507$as_echo "unsupported" >&6; } ;;
6508 *)
6509 CC="$CC $ac_cv_prog_cc_c89"
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6511$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6512esac
6513if test "x$ac_cv_prog_cc_c89" != xno; then :
6514
6515fi
6516
6517ac_ext=c
6518ac_cpp='$CPP $CPPFLAGS'
6519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6521ac_compiler_gnu=$ac_cv_c_compiler_gnu
6522
cristya5bda012013-11-03 18:05:38 +00006523ac_ext=c
6524ac_cpp='$CPP $CPPFLAGS'
6525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6527ac_compiler_gnu=$ac_cv_c_compiler_gnu
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6529$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6530if ${am_cv_prog_cc_c_o+:} false; then :
6531 $as_echo_n "(cached) " >&6
6532else
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534/* end confdefs.h. */
6535
6536int
6537main ()
6538{
6539
6540 ;
6541 return 0;
6542}
6543_ACEOF
6544 # Make sure it works both with $CC and with simple cc.
6545 # Following AC_PROG_CC_C_O, we do the test twice because some
6546 # compilers refuse to overwrite an existing .o file with -o,
6547 # though they will create one.
6548 am_cv_prog_cc_c_o=yes
6549 for am_i in 1 2; do
6550 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6551 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6552 ac_status=$?
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } \
6555 && test -f conftest2.$ac_objext; then
6556 : OK
6557 else
6558 am_cv_prog_cc_c_o=no
6559 break
6560 fi
6561 done
6562 rm -f core conftest*
6563 unset am_i
6564fi
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6566$as_echo "$am_cv_prog_cc_c_o" >&6; }
6567if test "$am_cv_prog_cc_c_o" != yes; then
6568 # Losing compiler, so override with the script.
6569 # FIXME: It is wrong to rewrite CC.
6570 # But if we don't then we get into trouble of one sort or another.
6571 # A longer-term fix would be to have automake use am__CC in this case,
6572 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6573 CC="$am_aux_dir/compile $CC"
6574fi
6575ac_ext=c
6576ac_cpp='$CPP $CPPFLAGS'
6577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6579ac_compiler_gnu=$ac_cv_c_compiler_gnu
6580
6581
cristy73bd4a52010-10-05 11:24:23 +00006582depcc="$CC" am_compiler_list=
6583
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6585$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006586if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006587 $as_echo_n "(cached) " >&6
6588else
6589 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6590 # We make a subdir and do the tests there. Otherwise we can end up
6591 # making bogus files that we don't know about and never remove. For
6592 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006593 # making a dummy file named 'D' -- because '-MD' means "put the output
6594 # in D".
cristy7247bba2012-02-05 16:37:27 +00006595 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006596 mkdir conftest.dir
6597 # Copy depcomp to subdir because otherwise we won't find it if we're
6598 # using a relative directory.
6599 cp "$am_depcomp" conftest.dir
6600 cd conftest.dir
6601 # We will build objects and dependencies in a subdirectory because
6602 # it helps to detect inapplicable dependency modes. For instance
6603 # both Tru64's cc and ICC support -MD to output dependencies as a
6604 # side effect of compilation, but ICC will put the dependencies in
6605 # the current directory while Tru64 will put them in the object
6606 # directory.
6607 mkdir sub
6608
6609 am_cv_CC_dependencies_compiler_type=none
6610 if test "$am_compiler_list" = ""; then
6611 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6612 fi
6613 am__universal=false
6614 case " $depcc " in #(
6615 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6616 esac
6617
6618 for depmode in $am_compiler_list; do
6619 # Setup a source with many dependencies, because some compilers
6620 # like to wrap large dependency lists on column 80 (with \), and
6621 # we should not choose a depcomp mode which is confused by this.
6622 #
6623 # We need to recreate these files for each test, as the compiler may
6624 # overwrite some of them when testing with obscure command lines.
6625 # This happens at least with the AIX C compiler.
6626 : > sub/conftest.c
6627 for i in 1 2 3 4 5 6; do
6628 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006629 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6630 # Solaris 10 /bin/sh.
6631 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006632 done
6633 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6634
cristyc0890a62012-07-19 00:18:20 +00006635 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006636 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006637 # handle '-M -o', and we need to detect this. Also, some Intel
6638 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006639 am__obj=sub/conftest.${OBJEXT-o}
6640 am__minus_obj="-o $am__obj"
6641 case $depmode in
6642 gcc)
6643 # This depmode causes a compiler race in universal mode.
6644 test "$am__universal" = false || continue
6645 ;;
6646 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006647 # After this tag, mechanisms are not by side-effect, so they'll
6648 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006649 if test "x$enable_dependency_tracking" = xyes; then
6650 continue
6651 else
6652 break
6653 fi
6654 ;;
cristy7247bba2012-02-05 16:37:27 +00006655 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006656 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006657 # not run yet. These depmodes are late enough in the game, and
6658 # so weak that their functioning should not be impacted.
6659 am__obj=conftest.${OBJEXT-o}
6660 am__minus_obj=
6661 ;;
6662 none) break ;;
6663 esac
6664 if depmode=$depmode \
6665 source=sub/conftest.c object=$am__obj \
6666 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6667 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6668 >/dev/null 2>conftest.err &&
6669 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6670 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6671 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6672 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6673 # icc doesn't choke on unknown options, it will just issue warnings
6674 # or remarks (even with -Werror). So we grep stderr for any message
6675 # that says an option was ignored or not supported.
6676 # When given -MP, icc 7.0 and 7.1 complain thusly:
6677 # icc: Command line warning: ignoring option '-M'; no argument required
6678 # The diagnosis changed in icc 8.0:
6679 # icc: Command line remark: option '-MP' not supported
6680 if (grep 'ignoring option' conftest.err ||
6681 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6682 am_cv_CC_dependencies_compiler_type=$depmode
6683 break
6684 fi
6685 fi
6686 done
6687
6688 cd ..
6689 rm -rf conftest.dir
6690else
6691 am_cv_CC_dependencies_compiler_type=none
6692fi
6693
6694fi
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6696$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6697CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6698
6699 if
6700 test "x$enable_dependency_tracking" != xno \
6701 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6702 am__fastdepCC_TRUE=
6703 am__fastdepCC_FALSE='#'
6704else
6705 am__fastdepCC_TRUE='#'
6706 am__fastdepCC_FALSE=
6707fi
6708
6709
cristy95646052009-11-28 23:05:30 +00006710ac_ext=cpp
6711ac_cpp='$CXXCPP $CPPFLAGS'
6712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6715if test -z "$CXX"; then
6716 if test -n "$CCC"; then
6717 CXX=$CCC
6718 else
6719 if test -n "$ac_tool_prefix"; then
6720 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6721 do
6722 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6723set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006726if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006727 $as_echo_n "(cached) " >&6
6728else
6729 if test -n "$CXX"; then
6730 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6731else
6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733for as_dir in $PATH
6734do
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006739 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6742 fi
6743done
6744 done
6745IFS=$as_save_IFS
6746
6747fi
6748fi
6749CXX=$ac_cv_prog_CXX
6750if test -n "$CXX"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6752$as_echo "$CXX" >&6; }
6753else
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755$as_echo "no" >&6; }
6756fi
6757
6758
6759 test -n "$CXX" && break
6760 done
6761fi
6762if test -z "$CXX"; then
6763 ac_ct_CXX=$CXX
6764 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6765do
6766 # Extract the first word of "$ac_prog", so it can be a program name with args.
6767set dummy $ac_prog; ac_word=$2
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006770if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006771 $as_echo_n "(cached) " >&6
6772else
6773 if test -n "$ac_ct_CXX"; then
6774 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6775else
6776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777for as_dir in $PATH
6778do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006783 ac_cv_prog_ac_ct_CXX="$ac_prog"
6784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787done
6788 done
6789IFS=$as_save_IFS
6790
6791fi
6792fi
6793ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6794if test -n "$ac_ct_CXX"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6796$as_echo "$ac_ct_CXX" >&6; }
6797else
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799$as_echo "no" >&6; }
6800fi
6801
6802
6803 test -n "$ac_ct_CXX" && break
6804done
6805
6806 if test "x$ac_ct_CXX" = x; then
6807 CXX="g++"
6808 else
6809 case $cross_compiling:$ac_tool_warned in
6810yes:)
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813ac_tool_warned=yes ;;
6814esac
6815 CXX=$ac_ct_CXX
6816 fi
6817fi
6818
6819 fi
6820fi
6821# Provide some information about the compiler.
6822$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6823set X $ac_compile
6824ac_compiler=$2
6825for ac_option in --version -v -V -qversion; do
6826 { { ac_try="$ac_compiler $ac_option >&5"
6827case "(($ac_try" in
6828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6829 *) ac_try_echo=$ac_try;;
6830esac
6831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6832$as_echo "$ac_try_echo"; } >&5
6833 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6834 ac_status=$?
6835 if test -s conftest.err; then
6836 sed '10a\
6837... rest of stderr output deleted ...
6838 10q' conftest.err >conftest.er1
6839 cat conftest.er1 >&5
6840 fi
6841 rm -f conftest.er1 conftest.err
6842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6843 test $ac_status = 0; }
6844done
6845
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6847$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006848if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006849 $as_echo_n "(cached) " >&6
6850else
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852/* end confdefs.h. */
6853
6854int
6855main ()
6856{
6857#ifndef __GNUC__
6858 choke me
6859#endif
6860
6861 ;
6862 return 0;
6863}
6864_ACEOF
6865if ac_fn_cxx_try_compile "$LINENO"; then :
6866 ac_compiler_gnu=yes
6867else
6868 ac_compiler_gnu=no
6869fi
6870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6872
6873fi
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6875$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6876if test $ac_compiler_gnu = yes; then
6877 GXX=yes
6878else
6879 GXX=
6880fi
6881ac_test_CXXFLAGS=${CXXFLAGS+set}
6882ac_save_CXXFLAGS=$CXXFLAGS
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6884$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006885if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006886 $as_echo_n "(cached) " >&6
6887else
6888 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6889 ac_cxx_werror_flag=yes
6890 ac_cv_prog_cxx_g=no
6891 CXXFLAGS="-g"
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893/* end confdefs.h. */
6894
6895int
6896main ()
6897{
6898
6899 ;
6900 return 0;
6901}
6902_ACEOF
6903if ac_fn_cxx_try_compile "$LINENO"; then :
6904 ac_cv_prog_cxx_g=yes
6905else
6906 CXXFLAGS=""
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908/* end confdefs.h. */
6909
6910int
6911main ()
6912{
6913
6914 ;
6915 return 0;
6916}
6917_ACEOF
6918if ac_fn_cxx_try_compile "$LINENO"; then :
6919
6920else
6921 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6922 CXXFLAGS="-g"
6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924/* end confdefs.h. */
6925
6926int
6927main ()
6928{
6929
6930 ;
6931 return 0;
6932}
6933_ACEOF
6934if ac_fn_cxx_try_compile "$LINENO"; then :
6935 ac_cv_prog_cxx_g=yes
6936fi
6937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6938fi
6939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6940fi
6941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6942 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6943fi
6944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6945$as_echo "$ac_cv_prog_cxx_g" >&6; }
6946if test "$ac_test_CXXFLAGS" = set; then
6947 CXXFLAGS=$ac_save_CXXFLAGS
6948elif test $ac_cv_prog_cxx_g = yes; then
6949 if test "$GXX" = yes; then
6950 CXXFLAGS="-g -O2"
6951 else
6952 CXXFLAGS="-g"
6953 fi
6954else
6955 if test "$GXX" = yes; then
6956 CXXFLAGS="-O2"
6957 else
6958 CXXFLAGS=
6959 fi
6960fi
6961ac_ext=c
6962ac_cpp='$CPP $CPPFLAGS'
6963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6965ac_compiler_gnu=$ac_cv_c_compiler_gnu
6966
cristy73bd4a52010-10-05 11:24:23 +00006967depcc="$CXX" am_compiler_list=
6968
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6970$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006971if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006972 $as_echo_n "(cached) " >&6
6973else
6974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6975 # We make a subdir and do the tests there. Otherwise we can end up
6976 # making bogus files that we don't know about and never remove. For
6977 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006978 # making a dummy file named 'D' -- because '-MD' means "put the output
6979 # in D".
cristy7247bba2012-02-05 16:37:27 +00006980 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006981 mkdir conftest.dir
6982 # Copy depcomp to subdir because otherwise we won't find it if we're
6983 # using a relative directory.
6984 cp "$am_depcomp" conftest.dir
6985 cd conftest.dir
6986 # We will build objects and dependencies in a subdirectory because
6987 # it helps to detect inapplicable dependency modes. For instance
6988 # both Tru64's cc and ICC support -MD to output dependencies as a
6989 # side effect of compilation, but ICC will put the dependencies in
6990 # the current directory while Tru64 will put them in the object
6991 # directory.
6992 mkdir sub
6993
6994 am_cv_CXX_dependencies_compiler_type=none
6995 if test "$am_compiler_list" = ""; then
6996 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6997 fi
6998 am__universal=false
6999 case " $depcc " in #(
7000 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7001 esac
7002
7003 for depmode in $am_compiler_list; do
7004 # Setup a source with many dependencies, because some compilers
7005 # like to wrap large dependency lists on column 80 (with \), and
7006 # we should not choose a depcomp mode which is confused by this.
7007 #
7008 # We need to recreate these files for each test, as the compiler may
7009 # overwrite some of them when testing with obscure command lines.
7010 # This happens at least with the AIX C compiler.
7011 : > sub/conftest.c
7012 for i in 1 2 3 4 5 6; do
7013 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007014 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7015 # Solaris 10 /bin/sh.
7016 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007017 done
7018 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7019
cristyc0890a62012-07-19 00:18:20 +00007020 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007021 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007022 # handle '-M -o', and we need to detect this. Also, some Intel
7023 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007024 am__obj=sub/conftest.${OBJEXT-o}
7025 am__minus_obj="-o $am__obj"
7026 case $depmode in
7027 gcc)
7028 # This depmode causes a compiler race in universal mode.
7029 test "$am__universal" = false || continue
7030 ;;
7031 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007032 # After this tag, mechanisms are not by side-effect, so they'll
7033 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007034 if test "x$enable_dependency_tracking" = xyes; then
7035 continue
7036 else
7037 break
7038 fi
7039 ;;
cristy7247bba2012-02-05 16:37:27 +00007040 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007041 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007042 # not run yet. These depmodes are late enough in the game, and
7043 # so weak that their functioning should not be impacted.
7044 am__obj=conftest.${OBJEXT-o}
7045 am__minus_obj=
7046 ;;
7047 none) break ;;
7048 esac
7049 if depmode=$depmode \
7050 source=sub/conftest.c object=$am__obj \
7051 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7052 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7053 >/dev/null 2>conftest.err &&
7054 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7055 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7056 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7057 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7058 # icc doesn't choke on unknown options, it will just issue warnings
7059 # or remarks (even with -Werror). So we grep stderr for any message
7060 # that says an option was ignored or not supported.
7061 # When given -MP, icc 7.0 and 7.1 complain thusly:
7062 # icc: Command line warning: ignoring option '-M'; no argument required
7063 # The diagnosis changed in icc 8.0:
7064 # icc: Command line remark: option '-MP' not supported
7065 if (grep 'ignoring option' conftest.err ||
7066 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7067 am_cv_CXX_dependencies_compiler_type=$depmode
7068 break
7069 fi
7070 fi
7071 done
7072
7073 cd ..
7074 rm -rf conftest.dir
7075else
7076 am_cv_CXX_dependencies_compiler_type=none
7077fi
7078
7079fi
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7081$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7082CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7083
7084 if
7085 test "x$enable_dependency_tracking" != xno \
7086 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7087 am__fastdepCXX_TRUE=
7088 am__fastdepCXX_FALSE='#'
7089else
7090 am__fastdepCXX_TRUE='#'
7091 am__fastdepCXX_FALSE=
7092fi
7093
7094
cristy8b350f62009-11-15 23:12:43 +00007095 case $ac_cv_prog_cc_stdc in #(
7096 no) :
7097 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7098 *) :
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007100$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007101if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007102 $as_echo_n "(cached) " >&6
7103else
7104 ac_cv_prog_cc_c99=no
7105ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007107/* end confdefs.h. */
7108#include <stdarg.h>
7109#include <stdbool.h>
7110#include <stdlib.h>
7111#include <wchar.h>
7112#include <stdio.h>
7113
7114// Check varargs macros. These examples are taken from C99 6.10.3.5.
7115#define debug(...) fprintf (stderr, __VA_ARGS__)
7116#define showlist(...) puts (#__VA_ARGS__)
7117#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7118static void
7119test_varargs_macros (void)
7120{
7121 int x = 1234;
7122 int y = 5678;
7123 debug ("Flag");
7124 debug ("X = %d\n", x);
7125 showlist (The first, second, and third items.);
7126 report (x>y, "x is %d but y is %d", x, y);
7127}
7128
7129// Check long long types.
7130#define BIG64 18446744073709551615ull
7131#define BIG32 4294967295ul
7132#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7133#if !BIG_OK
7134 your preprocessor is broken;
7135#endif
7136#if BIG_OK
7137#else
7138 your preprocessor is broken;
7139#endif
7140static long long int bignum = -9223372036854775807LL;
7141static unsigned long long int ubignum = BIG64;
7142
7143struct incomplete_array
7144{
7145 int datasize;
7146 double data[];
7147};
7148
7149struct named_init {
7150 int number;
7151 const wchar_t *name;
7152 double average;
7153};
7154
7155typedef const char *ccp;
7156
7157static inline int
7158test_restrict (ccp restrict text)
7159{
7160 // See if C++-style comments work.
7161 // Iterate through items via the restricted pointer.
7162 // Also check for declarations in for loops.
7163 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7164 continue;
7165 return 0;
7166}
7167
7168// Check varargs and va_copy.
7169static void
7170test_varargs (const char *format, ...)
7171{
7172 va_list args;
7173 va_start (args, format);
7174 va_list args_copy;
7175 va_copy (args_copy, args);
7176
7177 const char *str;
7178 int number;
7179 float fnumber;
7180
7181 while (*format)
7182 {
7183 switch (*format++)
7184 {
7185 case 's': // string
7186 str = va_arg (args_copy, const char *);
7187 break;
7188 case 'd': // int
7189 number = va_arg (args_copy, int);
7190 break;
7191 case 'f': // float
7192 fnumber = va_arg (args_copy, double);
7193 break;
7194 default:
7195 break;
7196 }
7197 }
7198 va_end (args_copy);
7199 va_end (args);
7200}
7201
7202int
7203main ()
7204{
7205
7206 // Check bool.
7207 _Bool success = false;
7208
7209 // Check restrict.
7210 if (test_restrict ("String literal") == 0)
7211 success = true;
7212 char *restrict newvar = "Another string";
7213
7214 // Check varargs.
7215 test_varargs ("s, d' f .", "string", 65, 34.234);
7216 test_varargs_macros ();
7217
7218 // Check flexible array members.
7219 struct incomplete_array *ia =
7220 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7221 ia->datasize = 10;
7222 for (int i = 0; i < ia->datasize; ++i)
7223 ia->data[i] = i * 1.234;
7224
7225 // Check named initializers.
7226 struct named_init ni = {
7227 .number = 34,
7228 .name = L"Test wide string",
7229 .average = 543.34343,
7230 };
7231
7232 ni.number = 58;
7233
7234 int dynamic_array[ni.number];
7235 dynamic_array[ni.number - 1] = 543;
7236
7237 // work around unused variable warnings
7238 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7239 || dynamic_array[ni.number - 1] != 543);
7240
7241 ;
7242 return 0;
7243}
7244_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007245for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007246do
7247 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007248 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007249 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007250fi
cristy3ed852e2009-09-05 21:47:34 +00007251rm -f core conftest.err conftest.$ac_objext
7252 test "x$ac_cv_prog_cc_c99" != "xno" && break
7253done
7254rm -f conftest.$ac_ext
7255CC=$ac_save_CC
7256
7257fi
7258# AC_CACHE_VAL
7259case "x$ac_cv_prog_cc_c99" in
7260 x)
cristy8b350f62009-11-15 23:12:43 +00007261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007262$as_echo "none needed" >&6; } ;;
7263 xno)
cristy8b350f62009-11-15 23:12:43 +00007264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007265$as_echo "unsupported" >&6; } ;;
7266 *)
7267 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007269$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7270esac
cristy8b350f62009-11-15 23:12:43 +00007271if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007272 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7273else
cristy8b350f62009-11-15 23:12:43 +00007274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007275$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007276if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007277 $as_echo_n "(cached) " >&6
7278else
7279 ac_cv_prog_cc_c89=no
7280ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007282/* end confdefs.h. */
7283#include <stdarg.h>
7284#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007285struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007286/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7287struct buf { int x; };
7288FILE * (*rcsopen) (struct buf *, struct stat *, int);
7289static char *e (p, i)
7290 char **p;
7291 int i;
7292{
7293 return p[i];
7294}
7295static char *f (char * (*g) (char **, int), char **p, ...)
7296{
7297 char *s;
7298 va_list v;
7299 va_start (v,p);
7300 s = g (p, va_arg (v,int));
7301 va_end (v);
7302 return s;
7303}
7304
7305/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7306 function prototypes and stuff, but not '\xHH' hex character constants.
7307 These don't provoke an error unfortunately, instead are silently treated
7308 as 'x'. The following induces an error, until -std is added to get
7309 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7310 array size at least. It's necessary to write '\x00'==0 to get something
7311 that's true only with -std. */
7312int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7313
7314/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7315 inside strings and character constants. */
7316#define FOO(x) 'x'
7317int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7318
7319int test (int i, double x);
7320struct s1 {int (*f) (int a);};
7321struct s2 {int (*f) (double a);};
7322int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7323int argc;
7324char **argv;
7325int
7326main ()
7327{
7328return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7329 ;
7330 return 0;
7331}
7332_ACEOF
7333for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7334 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7335do
7336 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007337 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007338 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007339fi
cristy3ed852e2009-09-05 21:47:34 +00007340rm -f core conftest.err conftest.$ac_objext
7341 test "x$ac_cv_prog_cc_c89" != "xno" && break
7342done
7343rm -f conftest.$ac_ext
7344CC=$ac_save_CC
7345
7346fi
7347# AC_CACHE_VAL
7348case "x$ac_cv_prog_cc_c89" in
7349 x)
cristy8b350f62009-11-15 23:12:43 +00007350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007351$as_echo "none needed" >&6; } ;;
7352 xno)
cristy8b350f62009-11-15 23:12:43 +00007353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007354$as_echo "unsupported" >&6; } ;;
7355 *)
7356 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007358$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7359esac
cristy8b350f62009-11-15 23:12:43 +00007360if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007361 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7362else
7363 ac_cv_prog_cc_stdc=no
7364fi
7365
cristy3ed852e2009-09-05 21:47:34 +00007366fi
cristy3ed852e2009-09-05 21:47:34 +00007367 ;;
7368esac
cristy8b350f62009-11-15 23:12:43 +00007369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007370$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007371 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007372 $as_echo_n "(cached) " >&6
7373fi
7374
cristy8b350f62009-11-15 23:12:43 +00007375 case $ac_cv_prog_cc_stdc in #(
7376 no) :
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7378$as_echo "unsupported" >&6; } ;; #(
7379 '') :
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7381$as_echo "none needed" >&6; } ;; #(
7382 *) :
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007384$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7385esac
7386
cristy3ed852e2009-09-05 21:47:34 +00007387ac_ext=c
7388ac_cpp='$CPP $CPPFLAGS'
7389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7391ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007393$as_echo_n "checking how to run the C preprocessor... " >&6; }
7394# On Suns, sometimes $CPP names a directory.
7395if test -n "$CPP" && test -d "$CPP"; then
7396 CPP=
7397fi
7398if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007399 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007400 $as_echo_n "(cached) " >&6
7401else
7402 # Double quotes because CPP needs to be expanded
7403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7404 do
7405 ac_preproc_ok=false
7406for ac_c_preproc_warn_flag in '' yes
7407do
7408 # Use a header file that comes with gcc, so configuring glibc
7409 # with a fresh cross-compiler works.
7410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7411 # <limits.h> exists even on freestanding compilers.
7412 # On the NeXT, cc -E runs the code through the compiler's parser,
7413 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007415/* end confdefs.h. */
7416#ifdef __STDC__
7417# include <limits.h>
7418#else
7419# include <assert.h>
7420#endif
7421 Syntax error
7422_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007423if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007424
cristy8b350f62009-11-15 23:12:43 +00007425else
cristy3ed852e2009-09-05 21:47:34 +00007426 # Broken: fails on valid input.
7427continue
7428fi
cristyda16f162011-02-19 23:52:17 +00007429rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007430
7431 # OK, works on sane cases. Now check whether nonexistent headers
7432 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007434/* end confdefs.h. */
7435#include <ac_nonexistent.h>
7436_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007437if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007438 # Broken: success on invalid input.
7439continue
7440else
cristy3ed852e2009-09-05 21:47:34 +00007441 # Passes both tests.
7442ac_preproc_ok=:
7443break
7444fi
cristyda16f162011-02-19 23:52:17 +00007445rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007446
7447done
7448# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007449rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007450if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007451 break
7452fi
7453
7454 done
7455 ac_cv_prog_CPP=$CPP
7456
7457fi
7458 CPP=$ac_cv_prog_CPP
7459else
7460 ac_cv_prog_CPP=$CPP
7461fi
cristy8b350f62009-11-15 23:12:43 +00007462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007463$as_echo "$CPP" >&6; }
7464ac_preproc_ok=false
7465for ac_c_preproc_warn_flag in '' yes
7466do
7467 # Use a header file that comes with gcc, so configuring glibc
7468 # with a fresh cross-compiler works.
7469 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7470 # <limits.h> exists even on freestanding compilers.
7471 # On the NeXT, cc -E runs the code through the compiler's parser,
7472 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007474/* end confdefs.h. */
7475#ifdef __STDC__
7476# include <limits.h>
7477#else
7478# include <assert.h>
7479#endif
7480 Syntax error
7481_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007482if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007483
cristy8b350f62009-11-15 23:12:43 +00007484else
cristy3ed852e2009-09-05 21:47:34 +00007485 # Broken: fails on valid input.
7486continue
7487fi
cristyda16f162011-02-19 23:52:17 +00007488rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007489
7490 # OK, works on sane cases. Now check whether nonexistent headers
7491 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007493/* end confdefs.h. */
7494#include <ac_nonexistent.h>
7495_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007496if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007497 # Broken: success on invalid input.
7498continue
7499else
cristy3ed852e2009-09-05 21:47:34 +00007500 # Passes both tests.
7501ac_preproc_ok=:
7502break
7503fi
cristyda16f162011-02-19 23:52:17 +00007504rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007505
7506done
7507# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007508rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007509if $ac_preproc_ok; then :
7510
cristy3ed852e2009-09-05 21:47:34 +00007511else
cristy8b350f62009-11-15 23:12:43 +00007512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007514as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7515See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007516fi
7517
7518ac_ext=c
7519ac_cpp='$CPP $CPPFLAGS'
7520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7522ac_compiler_gnu=$ac_cv_c_compiler_gnu
7523
cristy73bd4a52010-10-05 11:24:23 +00007524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7525$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007526if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007527 $as_echo_n "(cached) " >&6
7528else
7529 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7530 for ac_i in 1 2 3 4 5 6 7; do
7531 ac_script="$ac_script$as_nl$ac_script"
7532 done
7533 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7534 { ac_script=; unset ac_script;}
7535 if test -z "$SED"; then
7536 ac_path_SED_found=false
7537 # Loop through the user's path and test for each of PROGNAME-LIST
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539for as_dir in $PATH
7540do
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
7543 for ac_prog in sed gsed; do
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007546 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007547# Check for GNU ac_path_SED and select it if it is found.
7548 # Check for GNU $ac_path_SED
7549case `"$ac_path_SED" --version 2>&1` in
7550*GNU*)
7551 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7552*)
7553 ac_count=0
7554 $as_echo_n 0123456789 >"conftest.in"
7555 while :
7556 do
7557 cat "conftest.in" "conftest.in" >"conftest.tmp"
7558 mv "conftest.tmp" "conftest.in"
7559 cp "conftest.in" "conftest.nl"
7560 $as_echo '' >> "conftest.nl"
7561 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7562 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7563 as_fn_arith $ac_count + 1 && ac_count=$as_val
7564 if test $ac_count -gt ${ac_path_SED_max-0}; then
7565 # Best one so far, save it but keep looking for a better one
7566 ac_cv_path_SED="$ac_path_SED"
7567 ac_path_SED_max=$ac_count
7568 fi
7569 # 10*(2^10) chars as input seems more than enough
7570 test $ac_count -gt 10 && break
7571 done
7572 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7573esac
7574
7575 $ac_path_SED_found && break 3
7576 done
7577 done
7578 done
7579IFS=$as_save_IFS
7580 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007581 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007582 fi
7583else
7584 ac_cv_path_SED=$SED
7585fi
7586
7587fi
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7589$as_echo "$ac_cv_path_SED" >&6; }
7590 SED="$ac_cv_path_SED"
7591 rm -f conftest.sed
7592
7593test -z "$SED" && SED=sed
7594Xsed="$SED -e 1s/^X//"
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7607$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007608if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007609 $as_echo_n "(cached) " >&6
7610else
7611 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7612 then ac_cv_path_FGREP="$GREP -F"
7613 else
7614 if test -z "$FGREP"; then
7615 ac_path_FGREP_found=false
7616 # Loop through the user's path and test for each of PROGNAME-LIST
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7619do
7620 IFS=$as_save_IFS
7621 test -z "$as_dir" && as_dir=.
7622 for ac_prog in fgrep; do
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007625 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007626# Check for GNU ac_path_FGREP and select it if it is found.
7627 # Check for GNU $ac_path_FGREP
7628case `"$ac_path_FGREP" --version 2>&1` in
7629*GNU*)
7630 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7631*)
7632 ac_count=0
7633 $as_echo_n 0123456789 >"conftest.in"
7634 while :
7635 do
7636 cat "conftest.in" "conftest.in" >"conftest.tmp"
7637 mv "conftest.tmp" "conftest.in"
7638 cp "conftest.in" "conftest.nl"
7639 $as_echo 'FGREP' >> "conftest.nl"
7640 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7642 as_fn_arith $ac_count + 1 && ac_count=$as_val
7643 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7644 # Best one so far, save it but keep looking for a better one
7645 ac_cv_path_FGREP="$ac_path_FGREP"
7646 ac_path_FGREP_max=$ac_count
7647 fi
7648 # 10*(2^10) chars as input seems more than enough
7649 test $ac_count -gt 10 && break
7650 done
7651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7652esac
7653
7654 $ac_path_FGREP_found && break 3
7655 done
7656 done
7657 done
7658IFS=$as_save_IFS
7659 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007660 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007661 fi
7662else
7663 ac_cv_path_FGREP=$FGREP
7664fi
7665
7666 fi
7667fi
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7669$as_echo "$ac_cv_path_FGREP" >&6; }
7670 FGREP="$ac_cv_path_FGREP"
7671
7672
7673test -z "$GREP" && GREP=grep
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
cristy0c60a692010-11-04 01:09:47 +00007691ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7692ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7693ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7694
7695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7696$as_echo_n "checking how to print strings... " >&6; }
7697# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007698if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007699 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7700 ECHO='print -r --'
7701elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7702 ECHO='printf %s\n'
7703else
7704 # Use this function as a fallback that always works.
7705 func_fallback_echo ()
7706 {
7707 eval 'cat <<_LTECHO_EOF
7708$1
7709_LTECHO_EOF'
7710 }
7711 ECHO='func_fallback_echo'
7712fi
7713
7714# func_echo_all arg...
7715# Invoke $ECHO with all args, space-separated.
7716func_echo_all ()
7717{
7718 $ECHO ""
7719}
7720
7721case "$ECHO" in
7722 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7723$as_echo "printf" >&6; } ;;
7724 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7725$as_echo "print -r" >&6; } ;;
7726 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7727$as_echo "cat" >&6; } ;;
7728esac
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
cristy73bd4a52010-10-05 11:24:23 +00007743
7744
7745# Check whether --with-gnu-ld was given.
7746if test "${with_gnu_ld+set}" = set; then :
7747 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7748else
7749 with_gnu_ld=no
7750fi
7751
7752ac_prog=ld
7753if test "$GCC" = yes; then
7754 # Check if gcc -print-prog-name=ld gives a path.
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7756$as_echo_n "checking for ld used by $CC... " >&6; }
7757 case $host in
7758 *-*-mingw*)
7759 # gcc leaves a trailing carriage return which upsets mingw
7760 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7761 *)
7762 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7763 esac
7764 case $ac_prog in
7765 # Accept absolute paths.
7766 [\\/]* | ?:[\\/]*)
7767 re_direlt='/[^/][^/]*/\.\./'
7768 # Canonicalize the pathname of ld
7769 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7770 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7771 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7772 done
7773 test -z "$LD" && LD="$ac_prog"
7774 ;;
7775 "")
7776 # If it fails, then pretend we aren't using GCC.
7777 ac_prog=ld
7778 ;;
7779 *)
7780 # If it is relative, then search for the first ld in PATH.
7781 with_gnu_ld=unknown
7782 ;;
7783 esac
7784elif test "$with_gnu_ld" = yes; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7786$as_echo_n "checking for GNU ld... " >&6; }
7787else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7789$as_echo_n "checking for non-GNU ld... " >&6; }
7790fi
cristyda16f162011-02-19 23:52:17 +00007791if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007792 $as_echo_n "(cached) " >&6
7793else
7794 if test -z "$LD"; then
7795 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7796 for ac_dir in $PATH; do
7797 IFS="$lt_save_ifs"
7798 test -z "$ac_dir" && ac_dir=.
7799 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7800 lt_cv_path_LD="$ac_dir/$ac_prog"
7801 # Check to see if the program is GNU ld. I'd rather use --version,
7802 # but apparently some variants of GNU ld only accept -v.
7803 # Break only if it was the GNU/non-GNU ld that we prefer.
7804 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7805 *GNU* | *'with BFD'*)
7806 test "$with_gnu_ld" != no && break
7807 ;;
7808 *)
7809 test "$with_gnu_ld" != yes && break
7810 ;;
7811 esac
7812 fi
7813 done
7814 IFS="$lt_save_ifs"
7815else
7816 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7817fi
7818fi
7819
7820LD="$lt_cv_path_LD"
7821if test -n "$LD"; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7823$as_echo "$LD" >&6; }
7824else
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826$as_echo "no" >&6; }
7827fi
cristy98dddb52010-11-04 00:30:15 +00007828test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7830$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007831if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007832 $as_echo_n "(cached) " >&6
7833else
7834 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7835case `$LD -v 2>&1 </dev/null` in
7836*GNU* | *'with BFD'*)
7837 lt_cv_prog_gnu_ld=yes
7838 ;;
7839*)
7840 lt_cv_prog_gnu_ld=no
7841 ;;
7842esac
7843fi
7844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7845$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7846with_gnu_ld=$lt_cv_prog_gnu_ld
7847
7848
7849
7850
7851
7852
7853
7854
7855
cristy3ed852e2009-09-05 21:47:34 +00007856
cristy837d6dc2010-02-27 01:16:57 +00007857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7858$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007859if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007860 $as_echo_n "(cached) " >&6
7861else
7862 ac_cv_prog_cc_c99=no
7863ac_save_CC=$CC
7864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865/* end confdefs.h. */
7866#include <stdarg.h>
7867#include <stdbool.h>
7868#include <stdlib.h>
7869#include <wchar.h>
7870#include <stdio.h>
7871
7872// Check varargs macros. These examples are taken from C99 6.10.3.5.
7873#define debug(...) fprintf (stderr, __VA_ARGS__)
7874#define showlist(...) puts (#__VA_ARGS__)
7875#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7876static void
7877test_varargs_macros (void)
7878{
7879 int x = 1234;
7880 int y = 5678;
7881 debug ("Flag");
7882 debug ("X = %d\n", x);
7883 showlist (The first, second, and third items.);
7884 report (x>y, "x is %d but y is %d", x, y);
7885}
7886
7887// Check long long types.
7888#define BIG64 18446744073709551615ull
7889#define BIG32 4294967295ul
7890#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7891#if !BIG_OK
7892 your preprocessor is broken;
7893#endif
7894#if BIG_OK
7895#else
7896 your preprocessor is broken;
7897#endif
7898static long long int bignum = -9223372036854775807LL;
7899static unsigned long long int ubignum = BIG64;
7900
7901struct incomplete_array
7902{
7903 int datasize;
7904 double data[];
7905};
7906
7907struct named_init {
7908 int number;
7909 const wchar_t *name;
7910 double average;
7911};
7912
7913typedef const char *ccp;
7914
7915static inline int
7916test_restrict (ccp restrict text)
7917{
7918 // See if C++-style comments work.
7919 // Iterate through items via the restricted pointer.
7920 // Also check for declarations in for loops.
7921 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7922 continue;
7923 return 0;
7924}
7925
7926// Check varargs and va_copy.
7927static void
7928test_varargs (const char *format, ...)
7929{
7930 va_list args;
7931 va_start (args, format);
7932 va_list args_copy;
7933 va_copy (args_copy, args);
7934
7935 const char *str;
7936 int number;
7937 float fnumber;
7938
7939 while (*format)
7940 {
7941 switch (*format++)
7942 {
7943 case 's': // string
7944 str = va_arg (args_copy, const char *);
7945 break;
7946 case 'd': // int
7947 number = va_arg (args_copy, int);
7948 break;
7949 case 'f': // float
7950 fnumber = va_arg (args_copy, double);
7951 break;
7952 default:
7953 break;
7954 }
7955 }
7956 va_end (args_copy);
7957 va_end (args);
7958}
7959
7960int
7961main ()
7962{
7963
7964 // Check bool.
7965 _Bool success = false;
7966
7967 // Check restrict.
7968 if (test_restrict ("String literal") == 0)
7969 success = true;
7970 char *restrict newvar = "Another string";
7971
7972 // Check varargs.
7973 test_varargs ("s, d' f .", "string", 65, 34.234);
7974 test_varargs_macros ();
7975
7976 // Check flexible array members.
7977 struct incomplete_array *ia =
7978 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7979 ia->datasize = 10;
7980 for (int i = 0; i < ia->datasize; ++i)
7981 ia->data[i] = i * 1.234;
7982
7983 // Check named initializers.
7984 struct named_init ni = {
7985 .number = 34,
7986 .name = L"Test wide string",
7987 .average = 543.34343,
7988 };
7989
7990 ni.number = 58;
7991
7992 int dynamic_array[ni.number];
7993 dynamic_array[ni.number - 1] = 543;
7994
7995 // work around unused variable warnings
7996 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7997 || dynamic_array[ni.number - 1] != 543);
7998
7999 ;
8000 return 0;
8001}
8002_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008003for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008004do
8005 CC="$ac_save_CC $ac_arg"
8006 if ac_fn_c_try_compile "$LINENO"; then :
8007 ac_cv_prog_cc_c99=$ac_arg
8008fi
8009rm -f core conftest.err conftest.$ac_objext
8010 test "x$ac_cv_prog_cc_c99" != "xno" && break
8011done
8012rm -f conftest.$ac_ext
8013CC=$ac_save_CC
8014
8015fi
8016# AC_CACHE_VAL
8017case "x$ac_cv_prog_cc_c99" in
8018 x)
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8020$as_echo "none needed" >&6; } ;;
8021 xno)
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8023$as_echo "unsupported" >&6; } ;;
8024 *)
8025 CC="$CC $ac_cv_prog_cc_c99"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8027$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8028esac
8029if test "x$ac_cv_prog_cc_c99" != xno; then :
8030
8031fi
8032
8033
cristy73bd4a52010-10-05 11:24:23 +00008034
8035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8036$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008037if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008038 $as_echo_n "(cached) " >&6
8039else
8040 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00008041 ac_ext=c
8042ac_cpp='$CPP $CPPFLAGS'
8043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8045ac_compiler_gnu=$ac_cv_c_compiler_gnu
8046
8047 ac_save_CFLAGS="$CFLAGS"
8048for 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" #
8049do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051/* end confdefs.h. */
8052
8053int
8054main ()
8055{
cristy24fc1fe2010-10-23 21:13:01 +00008056
cristy73bd4a52010-10-05 11:24:23 +00008057 ;
8058 return 0;
8059}
8060_ACEOF
8061if ac_fn_c_try_compile "$LINENO"; then :
8062 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8063fi
8064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065done
8066 CFLAGS="$ac_save_CFLAGS"
8067 ac_ext=c
8068ac_cpp='$CPP $CPPFLAGS'
8069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8071ac_compiler_gnu=$ac_cv_c_compiler_gnu
8072
8073
8074fi
8075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8076$as_echo "$ac_cv_cflags_warn_all" >&6; }
8077case ".$ac_cv_cflags_warn_all" in
8078 .ok|.ok,*) ;;
8079 .|.no|.no,*)
8080 ;;
8081 *)
8082 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8083 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8084 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8085 ac_status=$?
8086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8087 test $ac_status = 0; }
8088 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8089 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8090 ac_status=$?
8091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8092 test $ac_status = 0; }
8093 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8094 fi
8095 ;;
nicolas6237c462010-10-05 06:11:49 +00008096esac
cristy3ed852e2009-09-05 21:47:34 +00008097
cristya0b81c32010-01-22 02:54:33 +00008098
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8100$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8101set x ${MAKE-make}
8102ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008103if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008104 $as_echo_n "(cached) " >&6
8105else
8106 cat >conftest.make <<\_ACEOF
8107SHELL = /bin/sh
8108all:
8109 @echo '@@@%%%=$(MAKE)=@@@%%%'
8110_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008111# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008112case `${MAKE-make} -f conftest.make 2>/dev/null` in
8113 *@@@%%%=?*=@@@%%%*)
8114 eval ac_cv_prog_make_${ac_make}_set=yes;;
8115 *)
8116 eval ac_cv_prog_make_${ac_make}_set=no;;
8117esac
8118rm -f conftest.make
8119fi
8120if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8122$as_echo "yes" >&6; }
8123 SET_MAKE=
8124else
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126$as_echo "no" >&6; }
8127 SET_MAKE="MAKE=${MAKE-make}"
8128fi
8129
cristy8b350f62009-11-15 23:12:43 +00008130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008131$as_echo_n "checking whether ln -s works... " >&6; }
8132LN_S=$as_ln_s
8133if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008135$as_echo "yes" >&6; }
8136else
cristy8b350f62009-11-15 23:12:43 +00008137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008138$as_echo "no, using $LN_S" >&6; }
8139fi
8140
cristy8d0ff762013-03-10 20:33:28 +00008141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8142$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8143if ${ac_cv_path_SED+:} false; then :
8144 $as_echo_n "(cached) " >&6
8145else
8146 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8147 for ac_i in 1 2 3 4 5 6 7; do
8148 ac_script="$ac_script$as_nl$ac_script"
8149 done
8150 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8151 { ac_script=; unset ac_script;}
8152 if test -z "$SED"; then
8153 ac_path_SED_found=false
8154 # Loop through the user's path and test for each of PROGNAME-LIST
8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156for as_dir in $PATH
8157do
8158 IFS=$as_save_IFS
8159 test -z "$as_dir" && as_dir=.
8160 for ac_prog in sed gsed; do
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8163 as_fn_executable_p "$ac_path_SED" || continue
8164# Check for GNU ac_path_SED and select it if it is found.
8165 # Check for GNU $ac_path_SED
8166case `"$ac_path_SED" --version 2>&1` in
8167*GNU*)
8168 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8169*)
8170 ac_count=0
8171 $as_echo_n 0123456789 >"conftest.in"
8172 while :
8173 do
8174 cat "conftest.in" "conftest.in" >"conftest.tmp"
8175 mv "conftest.tmp" "conftest.in"
8176 cp "conftest.in" "conftest.nl"
8177 $as_echo '' >> "conftest.nl"
8178 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8180 as_fn_arith $ac_count + 1 && ac_count=$as_val
8181 if test $ac_count -gt ${ac_path_SED_max-0}; then
8182 # Best one so far, save it but keep looking for a better one
8183 ac_cv_path_SED="$ac_path_SED"
8184 ac_path_SED_max=$ac_count
8185 fi
8186 # 10*(2^10) chars as input seems more than enough
8187 test $ac_count -gt 10 && break
8188 done
8189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8190esac
8191
8192 $ac_path_SED_found && break 3
8193 done
8194 done
8195 done
8196IFS=$as_save_IFS
8197 if test -z "$ac_cv_path_SED"; then
8198 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8199 fi
8200else
8201 ac_cv_path_SED=$SED
8202fi
8203
8204fi
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8206$as_echo "$ac_cv_path_SED" >&6; }
8207 SED="$ac_cv_path_SED"
8208 rm -f conftest.sed
8209
cristybc556452012-08-17 19:44:03 +00008210for ac_prog in gawk mawk nawk awk
8211do
8212 # Extract the first word of "$ac_prog", so it can be a program name with args.
8213set dummy $ac_prog; ac_word=$2
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8215$as_echo_n "checking for $ac_word... " >&6; }
8216if ${ac_cv_prog_AWK+:} false; then :
8217 $as_echo_n "(cached) " >&6
8218else
8219 if test -n "$AWK"; then
8220 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8221else
8222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223for as_dir in $PATH
8224do
8225 IFS=$as_save_IFS
8226 test -z "$as_dir" && as_dir=.
8227 for ac_exec_ext in '' $ac_executable_extensions; do
8228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8229 ac_cv_prog_AWK="$ac_prog"
8230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 break 2
8232 fi
8233done
8234 done
8235IFS=$as_save_IFS
8236
8237fi
8238fi
8239AWK=$ac_cv_prog_AWK
8240if test -n "$AWK"; then
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8242$as_echo "$AWK" >&6; }
8243else
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8245$as_echo "no" >&6; }
8246fi
8247
8248
8249 test -n "$AWK" && break
8250done
8251
cristy73bd4a52010-10-05 11:24:23 +00008252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8253$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8254
8255# Check whether --with-dmalloc was given.
8256if test "${with_dmalloc+set}" = set; then :
8257 withval=$with_dmalloc; if test "$withval" = yes; then
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8259$as_echo "yes" >&6; }
8260
8261$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8262
8263 LIBS="$LIBS -ldmalloc"
8264 LDFLAGS="$LDFLAGS -g"
8265else
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267$as_echo "no" >&6; }
8268fi
8269else
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271$as_echo "no" >&6; }
8272fi
8273
8274
8275
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8277$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008278if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008279 $as_echo_n "(cached) " >&6
8280else
8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282/* end confdefs.h. */
8283#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008284 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008285 static void
8286 foo(void) {
8287 exit(1);
8288 }
8289
8290int
8291main ()
8292{
8293
8294 ;
8295 return 0;
8296}
8297_ACEOF
8298if ac_fn_c_try_compile "$LINENO"; then :
8299 ax_cv___attribute__=yes
8300else
8301 ax_cv___attribute__=no
8302
8303fi
8304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305
8306fi
8307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8308$as_echo "$ax_cv___attribute__" >&6; }
8309 if test "$ax_cv___attribute__" = "yes"; then
8310
8311$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8312
8313 fi
8314
8315
8316
cristya0459972013-11-03 18:09:35 +00008317
8318
8319# Check whether --with-gcc-arch was given.
8320if test "${with_gcc_arch+set}" = set; then :
8321 withval=$with_gcc_arch; ax_gcc_arch=$withval
8322else
8323 ax_gcc_arch=no
8324fi
8325
8326
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8328$as_echo_n "checking for gcc architecture flag... " >&6; }
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8330$as_echo "" >&6; }
8331if ${ax_cv_gcc_archflag+:} false; then :
8332 $as_echo_n "(cached) " >&6
8333else
8334
8335ax_cv_gcc_archflag="unknown"
8336
8337if test "$GCC" = yes; then
8338
8339if test "x$ax_gcc_arch" = xyes; then
8340ax_gcc_arch=""
8341if test "$cross_compiling" = no; then
8342case $host_cpu in
8343 i[3456]86*|x86_64*) # use cpuid codes
8344
8345ac_ext=c
8346ac_cpp='$CPP $CPPFLAGS'
8347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8349ac_compiler_gnu=$ac_cv_c_compiler_gnu
8350
8351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8352$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8353if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8354 $as_echo_n "(cached) " >&6
8355else
8356 if test "$cross_compiling" = yes; then :
8357 ax_cv_gcc_x86_cpuid_0=unknown
8358else
8359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360/* end confdefs.h. */
8361#include <stdio.h>
8362int
8363main ()
8364{
8365
8366 int op = 0, eax, ebx, ecx, edx;
8367 FILE *f;
8368 __asm__("cpuid"
8369 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8370 : "a" (op));
8371 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8372 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8373 fclose(f);
8374 return 0;
8375
8376 ;
8377 return 0;
8378}
8379_ACEOF
8380if ac_fn_c_try_run "$LINENO"; then :
8381 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8382else
8383 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8384fi
8385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8386 conftest.$ac_objext conftest.beam conftest.$ac_ext
8387fi
8388
8389fi
8390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8391$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8392ac_ext=c
8393ac_cpp='$CPP $CPPFLAGS'
8394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8396ac_compiler_gnu=$ac_cv_c_compiler_gnu
8397
8398
8399
8400ac_ext=c
8401ac_cpp='$CPP $CPPFLAGS'
8402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8404ac_compiler_gnu=$ac_cv_c_compiler_gnu
8405
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8407$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8408if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410else
8411 if test "$cross_compiling" = yes; then :
8412 ax_cv_gcc_x86_cpuid_1=unknown
8413else
8414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415/* end confdefs.h. */
8416#include <stdio.h>
8417int
8418main ()
8419{
8420
8421 int op = 1, eax, ebx, ecx, edx;
8422 FILE *f;
8423 __asm__("cpuid"
8424 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8425 : "a" (op));
8426 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8427 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8428 fclose(f);
8429 return 0;
8430
8431 ;
8432 return 0;
8433}
8434_ACEOF
8435if ac_fn_c_try_run "$LINENO"; then :
8436 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8437else
8438 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8439fi
8440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8441 conftest.$ac_objext conftest.beam conftest.$ac_ext
8442fi
8443
8444fi
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8446$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8447ac_ext=c
8448ac_cpp='$CPP $CPPFLAGS'
8449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8451ac_compiler_gnu=$ac_cv_c_compiler_gnu
8452
8453
8454 case $ax_cv_gcc_x86_cpuid_0 in
8455 *:756e6547:*:*) # Intel
8456 case $ax_cv_gcc_x86_cpuid_1 in
8457 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8458 *5??:*:*:*) ax_gcc_arch=pentium ;;
8459 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8460 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8461 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8462 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8463 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8464 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8465 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8466 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8467 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8468 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8469 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8470 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8471 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8472 case $host_cpu in
8473 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8474 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8475 esac ;;
8476 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8477 esac ;;
8478 *:68747541:*:*) # AMD
8479 case $ax_cv_gcc_x86_cpuid_1 in
8480 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8481 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8482 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8483 *60?:*:*:*) ax_gcc_arch=k7 ;;
8484 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8485 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8486 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8487 *6[68a]?:*:*:*)
8488
8489ac_ext=c
8490ac_cpp='$CPP $CPPFLAGS'
8491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8493ac_compiler_gnu=$ac_cv_c_compiler_gnu
8494
8495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8496$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8497if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8498 $as_echo_n "(cached) " >&6
8499else
8500 if test "$cross_compiling" = yes; then :
8501 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8502else
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504/* end confdefs.h. */
8505#include <stdio.h>
8506int
8507main ()
8508{
8509
8510 int op = 0x80000006, eax, ebx, ecx, edx;
8511 FILE *f;
8512 __asm__("cpuid"
8513 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8514 : "a" (op));
8515 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8516 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8517 fclose(f);
8518 return 0;
8519
8520 ;
8521 return 0;
8522}
8523_ACEOF
8524if ac_fn_c_try_run "$LINENO"; then :
8525 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8526else
8527 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8528fi
8529rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8530 conftest.$ac_objext conftest.beam conftest.$ac_ext
8531fi
8532
8533fi
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8535$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8536ac_ext=c
8537ac_cpp='$CPP $CPPFLAGS'
8538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8540ac_compiler_gnu=$ac_cv_c_compiler_gnu
8541
8542 # L2 cache size
8543 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8544 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8545 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8546 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8547 esac ;;
8548 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8549 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8550 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8551 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8552 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8553 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8554 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8555 esac ;;
8556 *:746e6543:*:*) # IDT
8557 case $ax_cv_gcc_x86_cpuid_1 in
8558 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8559 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8560 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8561 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8562 esac ;;
8563 esac
8564 if test x"$ax_gcc_arch" = x; then # fallback
8565 case $host_cpu in
8566 i586*) ax_gcc_arch=pentium ;;
8567 i686*) ax_gcc_arch=pentiumpro ;;
8568 esac
8569 fi
8570 ;;
8571
8572 sparc*)
8573 # Extract the first word of "prtdiag", so it can be a program name with args.
8574set dummy prtdiag; ac_word=$2
8575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576$as_echo_n "checking for $ac_word... " >&6; }
8577if ${ac_cv_path_PRTDIAG+:} false; then :
8578 $as_echo_n "(cached) " >&6
8579else
8580 case $PRTDIAG in
8581 [\\/]* | ?:[\\/]*)
8582 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8583 ;;
8584 *)
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8587for as_dir in $as_dummy
8588do
8589 IFS=$as_save_IFS
8590 test -z "$as_dir" && as_dir=.
8591 for ac_exec_ext in '' $ac_executable_extensions; do
8592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8593 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8595 break 2
8596 fi
8597done
8598 done
8599IFS=$as_save_IFS
8600
8601 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8602 ;;
8603esac
8604fi
8605PRTDIAG=$ac_cv_path_PRTDIAG
8606if test -n "$PRTDIAG"; then
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8608$as_echo "$PRTDIAG" >&6; }
8609else
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611$as_echo "no" >&6; }
8612fi
8613
8614
8615 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`
8616 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8617 case $cputype in
8618 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8619 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8620 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8621 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8622 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8623 *cypress*) ax_gcc_arch=cypress ;;
8624 esac ;;
8625
8626 alphaev5) ax_gcc_arch=ev5 ;;
8627 alphaev56) ax_gcc_arch=ev56 ;;
8628 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8629 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8630 alphaev6) ax_gcc_arch=ev6 ;;
8631 alphaev67) ax_gcc_arch=ev67 ;;
8632 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8633 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8634 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8635 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8636
8637 powerpc*)
8638 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`
8639 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8640 case $cputype in
8641 *750*) ax_gcc_arch="750 G3" ;;
8642 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8643 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8644 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8645 *970*) ax_gcc_arch="970 G5 power4";;
8646 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8647 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8648 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8649 *) ax_gcc_arch=$cputype ;;
8650 esac
8651 ax_gcc_arch="$ax_gcc_arch powerpc"
8652 ;;
8653esac
8654fi # not cross-compiling
8655fi # guess arch
8656
8657if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8658for arch in $ax_gcc_arch; do
8659 if test "xno" = xyes; then # if we require portable code
8660 flags="-mtune=$arch"
8661 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8662 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8663 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8664 else
8665 flags="-march=$arch -mcpu=$arch -m$arch"
8666 fi
8667 for flag in $flags; do
8668 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8670$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8671if eval \${$as_CACHEVAR+:} false; then :
8672 $as_echo_n "(cached) " >&6
8673else
8674
8675 ax_check_save_flags=$CFLAGS
8676 CFLAGS="$CFLAGS $flag"
8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678/* end confdefs.h. */
8679
8680int
8681main ()
8682{
8683
8684 ;
8685 return 0;
8686}
8687_ACEOF
8688if ac_fn_c_try_compile "$LINENO"; then :
8689 eval "$as_CACHEVAR=yes"
8690else
8691 eval "$as_CACHEVAR=no"
8692fi
8693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8694 CFLAGS=$ax_check_save_flags
8695fi
8696eval ac_res=\$$as_CACHEVAR
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8698$as_echo "$ac_res" >&6; }
8699if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8700 ax_cv_gcc_archflag=$flag; break
8701else
8702 :
8703fi
8704
8705 done
8706 test "x$ax_cv_gcc_archflag" = xunknown || break
8707done
8708fi
8709
8710fi # $GCC=yes
8711
8712fi
8713
8714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8715$as_echo_n "checking for gcc architecture flag... " >&6; }
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8717$as_echo "$ax_cv_gcc_archflag" >&6; }
8718if test "x$ax_cv_gcc_archflag" = xunknown; then
8719 :
8720else
8721 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8722fi
8723
8724
8725
cristy73bd4a52010-10-05 11:24:23 +00008726if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8727 if test -n "$ac_tool_prefix"; then
8728 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8729set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8731$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008732if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008733 $as_echo_n "(cached) " >&6
8734else
8735 case $PKG_CONFIG in
8736 [\\/]* | ?:[\\/]*)
8737 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8738 ;;
8739 *)
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741for as_dir in $PATH
8742do
8743 IFS=$as_save_IFS
8744 test -z "$as_dir" && as_dir=.
8745 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008747 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749 break 2
8750 fi
8751done
8752 done
8753IFS=$as_save_IFS
8754
8755 ;;
8756esac
8757fi
8758PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8759if test -n "$PKG_CONFIG"; then
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8761$as_echo "$PKG_CONFIG" >&6; }
8762else
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8764$as_echo "no" >&6; }
8765fi
8766
8767
8768fi
8769if test -z "$ac_cv_path_PKG_CONFIG"; then
8770 ac_pt_PKG_CONFIG=$PKG_CONFIG
8771 # Extract the first word of "pkg-config", so it can be a program name with args.
8772set dummy pkg-config; ac_word=$2
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8774$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008775if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008776 $as_echo_n "(cached) " >&6
8777else
8778 case $ac_pt_PKG_CONFIG in
8779 [\\/]* | ?:[\\/]*)
8780 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8781 ;;
8782 *)
8783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8784for as_dir in $PATH
8785do
8786 IFS=$as_save_IFS
8787 test -z "$as_dir" && as_dir=.
8788 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008790 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8792 break 2
8793 fi
8794done
8795 done
8796IFS=$as_save_IFS
8797
8798 ;;
8799esac
8800fi
8801ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8802if test -n "$ac_pt_PKG_CONFIG"; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8804$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8805else
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807$as_echo "no" >&6; }
8808fi
8809
8810 if test "x$ac_pt_PKG_CONFIG" = x; then
8811 PKG_CONFIG=""
8812 else
8813 case $cross_compiling:$ac_tool_warned in
8814yes:)
8815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8817ac_tool_warned=yes ;;
8818esac
8819 PKG_CONFIG=$ac_pt_PKG_CONFIG
8820 fi
8821else
8822 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8823fi
8824
8825fi
8826if test -n "$PKG_CONFIG"; then
8827 _pkg_min_version=0.9.0
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8829$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8830 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8832$as_echo "yes" >&6; }
8833 else
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835$as_echo "no" >&6; }
8836 PKG_CONFIG=""
8837 fi
8838
8839fi
cristy3ed852e2009-09-05 21:47:34 +00008840
cristyd95b7a52013-10-23 13:12:53 +00008841# Test for 64-bit build.
8842# The cast to long int works around a bug in the HP C Compiler
8843# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8844# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8845# This bug is HP SR number 8606223364.
8846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
8847$as_echo_n "checking size of size_t... " >&6; }
8848if ${ac_cv_sizeof_size_t+:} false; then :
8849 $as_echo_n "(cached) " >&6
8850else
8851 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
8852
8853else
8854 if test "$ac_cv_type_size_t" = yes; then
8855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8857as_fn_error 77 "cannot compute sizeof (size_t)
8858See \`config.log' for more details" "$LINENO" 5; }
8859 else
8860 ac_cv_sizeof_size_t=0
8861 fi
8862fi
8863
8864fi
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
8866$as_echo "$ac_cv_sizeof_size_t" >&6; }
8867
8868
8869
8870cat >>confdefs.h <<_ACEOF
8871#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
8872_ACEOF
8873
8874
8875
8876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8877$as_echo_n "checking for C compiler vendor... " >&6; }
8878if ${ax_cv_c_compiler_vendor+:} false; then :
8879 $as_echo_n "(cached) " >&6
8880else
8881 # note: don't check for gcc first since some other compilers define __GNUC__
8882 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8883 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8884 pathscale: __PATHCC__,__PATHSCALE__
8885 clang: __clang__
8886 gnu: __GNUC__
8887 sun: __SUNPRO_C,__SUNPRO_CC
8888 hp: __HP_cc,__HP_aCC
8889 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8890 borland: __BORLANDC__,__TURBOC__
8891 comeau: __COMO__
8892 cray: _CRAYC
8893 kai: __KCC
8894 lcc: __LCC__
8895 sgi: __sgi,sgi
8896 microsoft: _MSC_VER
8897 metrowerks: __MWERKS__
8898 watcom: __WATCOMC__
8899 portland: __PGI
8900 unknown: UNKNOWN"
8901 for ventest in $vendors; do
8902 case $ventest in
8903 *:) vendor=$ventest; continue ;;
8904 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8905 esac
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907/* end confdefs.h. */
8908
8909int
8910main ()
8911{
8912
8913 #if !($vencpp)
8914 thisisanerror;
8915 #endif
8916
8917 ;
8918 return 0;
8919}
8920_ACEOF
8921if ac_fn_c_try_compile "$LINENO"; then :
8922 break
8923fi
8924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8925 done
8926 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8927
8928fi
8929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8930$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8931
cristyd95b7a52013-10-23 13:12:53 +00008932# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
8933# compiler.
8934if test "$ax_cv_c_compiler_vendor" != "sun"; then
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8936$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8937if ${ac_cv_cflags_warn_all+:} false; then :
8938 $as_echo_n "(cached) " >&6
8939else
8940 ac_cv_cflags_warn_all="no, unknown"
8941 ac_ext=c
8942ac_cpp='$CPP $CPPFLAGS'
8943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8945ac_compiler_gnu=$ac_cv_c_compiler_gnu
8946
8947 ac_save_CFLAGS="$CFLAGS"
8948for 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" #
8949do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8951/* end confdefs.h. */
8952
8953int
8954main ()
8955{
8956
8957 ;
8958 return 0;
8959}
8960_ACEOF
8961if ac_fn_c_try_compile "$LINENO"; then :
8962 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8963fi
8964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965done
8966 CFLAGS="$ac_save_CFLAGS"
8967 ac_ext=c
8968ac_cpp='$CPP $CPPFLAGS'
8969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8971ac_compiler_gnu=$ac_cv_c_compiler_gnu
8972
8973
8974fi
8975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8976$as_echo "$ac_cv_cflags_warn_all" >&6; }
8977case ".$ac_cv_cflags_warn_all" in
8978 .ok|.ok,*) ;;
8979 .|.no|.no,*)
8980 ;;
8981 *)
8982 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
8983 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
8984 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
8985 ac_status=$?
8986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8987 test $ac_status = 0; }
8988 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
8989 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
8990 ac_status=$?
8991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8992 test $ac_status = 0; }
8993 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
8994 fi
8995 ;;
8996esac
8997
8998fi
8999
9000if test "x$GCC" = "xyes"; then
9001 CFLAGS="$CFLAGS -fexceptions"
9002 touch local.exp
9003else
9004 cat > local.exp <<EOF
9005set CC_FOR_TARGET "$CC"
9006EOF
9007fi
9008
cristy9b86f202012-11-28 21:55:35 +00009009# Check for linker script support
9010
9011 # Check whether --enable-ld-version-script was given.
9012if test "${enable_ld_version_script+set}" = set; then :
9013 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9014fi
9015
9016 if test -z "$have_ld_version_script"; then
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9018$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9019 save_LDFLAGS="$LDFLAGS"
9020 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9021 cat > conftest.map <<EOF
9022foo
9023EOF
9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025/* end confdefs.h. */
9026
9027int
9028main ()
9029{
9030
9031 ;
9032 return 0;
9033}
9034_ACEOF
9035if ac_fn_c_try_link "$LINENO"; then :
9036 accepts_syntax_errors=yes
9037else
9038 accepts_syntax_errors=no
9039fi
9040rm -f core conftest.err conftest.$ac_objext \
9041 conftest$ac_exeext conftest.$ac_ext
9042 if test "$accepts_syntax_errors" = no; then
9043 cat > conftest.map <<EOF
9044VERS_1 {
9045 global: sym;
9046};
9047
9048VERS_2 {
9049 global: sym;
9050} VERS_1;
9051EOF
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053/* end confdefs.h. */
9054
9055int
9056main ()
9057{
9058
9059 ;
9060 return 0;
9061}
9062_ACEOF
9063if ac_fn_c_try_link "$LINENO"; then :
9064 have_ld_version_script=yes
9065else
9066 have_ld_version_script=no
9067fi
9068rm -f core conftest.err conftest.$ac_objext \
9069 conftest$ac_exeext conftest.$ac_ext
9070 else
9071 have_ld_version_script=no
9072 fi
9073 rm -f conftest.map
9074 LDFLAGS="$save_LDFLAGS"
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9076$as_echo "$have_ld_version_script" >&6; }
9077 fi
9078 if test "$have_ld_version_script" = "yes"; then
9079 HAVE_LD_VERSION_SCRIPT_TRUE=
9080 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9081else
9082 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9083 HAVE_LD_VERSION_SCRIPT_FALSE=
9084fi
9085
9086
9087
cristy3ed852e2009-09-05 21:47:34 +00009088#
cristy3ed852e2009-09-05 21:47:34 +00009089# Enable run-time checking.
9090#
9091# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009092if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009093 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9094else
9095 enable_bounds_checking='no'
9096fi
9097
9098
9099if test "$enable_bounds_checking" = yes; then
9100
cristy8b350f62009-11-15 23:12:43 +00009101$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009102
9103fi
9104
9105#
9106# Tests for Windows
9107#
9108
9109
9110
9111GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009112native_win32_build='no'
9113cygwin_build='no'
9114case "${host_os}" in
9115 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009116 cygwin_build='yes'
9117 GDI32_LIBS='-lgdi32'
9118 ;;
9119 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009120 native_win32_build='yes'
9121 GDI32_LIBS='-lgdi32'
9122 ;;
9123esac
9124if test "${GDI32_LIBS}x" != 'x'; then
9125
cristy8b350f62009-11-15 23:12:43 +00009126$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009127
9128fi
9129
cristy73bd4a52010-10-05 11:24:23 +00009130 if test "${GDI32_LIBS}x" != 'x' ; then
9131 WINGDI32_DELEGATE_TRUE=
9132 WINGDI32_DELEGATE_FALSE='#'
9133else
9134 WINGDI32_DELEGATE_TRUE='#'
9135 WINGDI32_DELEGATE_FALSE=
9136fi
9137
9138 if test "${native_win32_build}" = 'yes' ; then
9139 WIN32_NATIVE_BUILD_TRUE=
9140 WIN32_NATIVE_BUILD_FALSE='#'
9141else
9142 WIN32_NATIVE_BUILD_TRUE='#'
9143 WIN32_NATIVE_BUILD_FALSE=
9144fi
9145
9146 if test "${cygwin_build}" = 'yes' ; then
9147 CYGWIN_BUILD_TRUE=
9148 CYGWIN_BUILD_FALSE='#'
9149else
9150 CYGWIN_BUILD_TRUE='#'
9151 CYGWIN_BUILD_FALSE=
9152fi
9153
9154 if test "x${CC}" = 'xcl.exe' ; then
9155 USING_CL_TRUE=
9156 USING_CL_FALSE='#'
9157else
9158 USING_CL_TRUE='#'
9159 USING_CL_FALSE=
9160fi
9161
cristy3ed852e2009-09-05 21:47:34 +00009162
9163WinPathScript="${srcdirfull}/winpath.sh"
9164
9165
9166#
9167# Compiler flags tweaks
9168#
9169if test "${GCC}" != "yes"; then
9170 case "${host}" in
9171 *-*-hpux* )
9172 # aCC: HP ANSI C++ B3910B A.03.34
9173 CFLAGS="${CFLAGS} -Wp,-H30000"
9174 if test -n "${CXXFLAGS}"; then
9175 CXXFLAGS='-AA'
9176 else
9177 CXXFLAGS="${CXXFLAGS} -AA"
9178 fi
9179 ;;
9180 *-dec-osf5.* )
9181 # Compaq alphaev68-dec-osf5.1 compiler
9182 if test -n "${CXXFLAGS}"; then
9183 CXXFLAGS='-std strict_ansi -noimplicit_include'
9184 else
9185 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9186 fi
9187 esac
9188fi
9189
9190# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009192$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009193if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009194 $as_echo_n "(cached) " >&6
9195else
9196
9197im_cv_ld_lazyload='none'
9198case "${host}" in
9199 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9200 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9201 im_cv_ld_lazyload='-Wl,-zlazyload'
9202 fi
9203 ;;
9204esac
9205
9206fi
cristy8b350f62009-11-15 23:12:43 +00009207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009208$as_echo "$im_cv_ld_lazyload" >&6; }
9209if test "${im_cv_ld_lazyload}" != 'none' ; then
9210 if test -z "${LDFLAGS}" ; then
9211 LDFLAGS="${im_cv_ld_lazyload}"
9212 else
9213 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9214 fi
9215fi
9216
9217case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009218 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009219 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009220 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009221if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009222 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9223else
9224 build_osxuniversal=no
9225fi
9226
9227
cristyc37574e2013-02-16 01:04:55 +00009228 if test "${build_osxuniversal}" != no ; then
9229 if test "$enable_dependency_tracking" != no ; then
9230 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009231Please re-run configure with these options:
9232 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009233 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009234 fi
9235 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9236 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9237 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009238 fi
9239 ;;
9240esac
9241
cristy0151ae12011-10-28 16:32:29 +00009242#
9243# ARCH specific include directory
9244#
9245
cristy670aa3c2011-11-03 00:54:00 +00009246# Check whether --with-includearch-dir was given.
9247if test "${with_includearch_dir+set}" = set; then :
9248 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009249else
cristy670aa3c2011-11-03 00:54:00 +00009250 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009251fi
9252
9253
cristyd286fd72013-02-24 19:25:33 +00009254eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009255
cristy0151ae12011-10-28 16:32:29 +00009256
9257#
9258# ARCH specific configuration directory
9259#
9260
cristy670aa3c2011-11-03 00:54:00 +00009261# Check whether --with-sharearch-dir was given.
9262if test "${with_sharearch_dir+set}" = set; then :
9263 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009264else
cristy408ebcd2011-11-14 01:36:57 +00009265 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009266fi
9267
9268
cristy670aa3c2011-11-03 00:54:00 +00009269eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009270
cristy0151ae12011-10-28 16:32:29 +00009271
cristy2ec87cc2013-02-18 17:46:50 +00009272# Path to the pkgconfig folder
9273
9274# Check whether --with-pkgconfigdir was given.
9275if test "${with_pkgconfigdir+set}" = set; then :
9276 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9277else
9278 pkgconfigdir='${libdir}/pkgconfig'
9279fi
9280
9281
9282
cristy0151ae12011-10-28 16:32:29 +00009283#
cristy3ed852e2009-09-05 21:47:34 +00009284# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009285#
9286# Find Posix threads library
9287#
cristy3ed852e2009-09-05 21:47:34 +00009288
9289# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009290if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009291 withval=$with_threads; with_threads=$withval
9292else
9293 with_threads='yes'
9294fi
9295
9296
cristy1ae5c992013-07-30 14:55:07 +00009297THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009298have_threads=no
9299if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009300
9301
cristy73bd4a52010-10-05 11:24:23 +00009302ac_ext=c
9303ac_cpp='$CPP $CPPFLAGS'
9304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9306ac_compiler_gnu=$ac_cv_c_compiler_gnu
9307
9308ax_pthread_ok=no
9309
9310# We used to check for pthread.h first, but this fails if pthread.h
9311# requires special compiler flags (e.g. on True64 or Sequent).
9312# It gets checked for in the link test anyway.
9313
9314# First of all, check if the user has set any of the PTHREAD_LIBS,
9315# etcetera environment variables, and if threads linking works using
9316# them:
9317if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9318 save_CFLAGS="$CFLAGS"
9319 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9320 save_LIBS="$LIBS"
9321 LIBS="$PTHREAD_LIBS $LIBS"
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9323$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325/* end confdefs.h. */
9326
9327/* Override any GCC internal prototype to avoid an error.
9328 Use char because int might match the return type of a GCC
9329 builtin and then its argument prototype would still apply. */
9330#ifdef __cplusplus
9331extern "C"
9332#endif
9333char pthread_join ();
9334int
9335main ()
9336{
9337return pthread_join ();
9338 ;
9339 return 0;
9340}
9341_ACEOF
9342if ac_fn_c_try_link "$LINENO"; then :
9343 ax_pthread_ok=yes
9344fi
9345rm -f core conftest.err conftest.$ac_objext \
9346 conftest$ac_exeext conftest.$ac_ext
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9348$as_echo "$ax_pthread_ok" >&6; }
9349 if test x"$ax_pthread_ok" = xno; then
9350 PTHREAD_LIBS=""
9351 PTHREAD_CFLAGS=""
9352 fi
9353 LIBS="$save_LIBS"
9354 CFLAGS="$save_CFLAGS"
9355fi
9356
9357# We must check for the threads library under a number of different
9358# names; the ordering is very important because some systems
9359# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9360# libraries is broken (non-POSIX).
9361
9362# Create a list of thread flags to try. Items starting with a "-" are
9363# C compiler flags, and other items are library names, except for "none"
9364# which indicates that we try without any flags at all, and "pthread-config"
9365# which is a program returning the flags for the Pth emulation library.
9366
cristy2ec87cc2013-02-18 17:46:50 +00009367ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009368
9369# The ordering *is* (sometimes) important. Some notes on the
9370# individual items follow:
9371
9372# pthreads: AIX (must check this before -lpthread)
9373# none: in case threads are in libc; should be tried before -Kthread and
9374# other compiler flags to prevent continual compiler warnings
9375# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9376# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9377# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9378# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9379# -pthreads: Solaris/gcc
9380# -mthreads: Mingw32/gcc, Lynx/gcc
9381# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9382# doesn't hurt to check since this sometimes defines pthreads too;
9383# also defines -D_REENTRANT)
9384# ... -mt is also the pthreads flag for HP/aCC
9385# pthread: Linux, etcetera
9386# --thread-safe: KAI C++
9387# pthread-config: use pthread-config program (for GNU Pth library)
9388
cristy2ec87cc2013-02-18 17:46:50 +00009389case ${host_os} in
9390 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009391
9392 # On Solaris (at least, for some versions), libc contains stubbed
9393 # (non-functional) versions of the pthreads routines, so link-based
9394 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9395 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9396 # a function called by this macro, so we could check for that, but
9397 # who knows whether they'll stub that too in a future libc.) So,
9398 # we'll just look for -pthreads and -lpthread first:
9399
9400 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9401 ;;
9402
cristy2ec87cc2013-02-18 17:46:50 +00009403 darwin*)
cristya316db12011-10-24 00:49:45 +00009404 ax_pthread_flags="-pthread $ax_pthread_flags"
9405 ;;
cristy73bd4a52010-10-05 11:24:23 +00009406esac
9407
9408if test x"$ax_pthread_ok" = xno; then
9409for flag in $ax_pthread_flags; do
9410
9411 case $flag in
9412 none)
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9414$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9415 ;;
9416
9417 -*)
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9419$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9420 PTHREAD_CFLAGS="$flag"
9421 ;;
9422
cristya316db12011-10-24 00:49:45 +00009423 pthread-config)
9424 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009425set dummy pthread-config; ac_word=$2
9426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9427$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009428if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009429 $as_echo_n "(cached) " >&6
9430else
9431 if test -n "$ax_pthread_config"; then
9432 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9433else
9434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9435for as_dir in $PATH
9436do
9437 IFS=$as_save_IFS
9438 test -z "$as_dir" && as_dir=.
9439 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009441 ac_cv_prog_ax_pthread_config="yes"
9442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9443 break 2
9444 fi
9445done
9446 done
9447IFS=$as_save_IFS
9448
9449 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9450fi
9451fi
9452ax_pthread_config=$ac_cv_prog_ax_pthread_config
9453if test -n "$ax_pthread_config"; then
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9455$as_echo "$ax_pthread_config" >&6; }
9456else
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458$as_echo "no" >&6; }
9459fi
9460
9461
cristya316db12011-10-24 00:49:45 +00009462 if test x"$ax_pthread_config" = xno; then continue; fi
9463 PTHREAD_CFLAGS="`pthread-config --cflags`"
9464 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9465 ;;
cristy73bd4a52010-10-05 11:24:23 +00009466
9467 *)
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9469$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9470 PTHREAD_LIBS="-l$flag"
9471 ;;
9472 esac
9473
9474 save_LIBS="$LIBS"
9475 save_CFLAGS="$CFLAGS"
9476 LIBS="$PTHREAD_LIBS $LIBS"
9477 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9478
9479 # Check for various functions. We must include pthread.h,
9480 # since some functions may be macros. (On the Sequent, we
9481 # need a special flag -Kthread to make this header compile.)
9482 # We check for pthread_join because it is in -lpthread on IRIX
9483 # while pthread_create is in libc. We check for pthread_attr_init
9484 # due to DEC craziness with -lpthreads. We check for
9485 # pthread_cleanup_push because it is one of the few pthread
9486 # functions on Solaris that doesn't have a non-functional libc stub.
9487 # We try pthread_create on general principles.
9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489/* end confdefs.h. */
9490#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009491 static void routine(void *a) { a = 0; }
9492 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009493int
9494main ()
9495{
9496pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009497 pthread_create(&th, 0, start_routine, 0);
9498 pthread_join(th, 0);
9499 pthread_attr_init(&attr);
9500 pthread_cleanup_push(routine, 0);
9501 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009502 ;
9503 return 0;
9504}
9505_ACEOF
9506if ac_fn_c_try_link "$LINENO"; then :
9507 ax_pthread_ok=yes
9508fi
9509rm -f core conftest.err conftest.$ac_objext \
9510 conftest$ac_exeext conftest.$ac_ext
9511
9512 LIBS="$save_LIBS"
9513 CFLAGS="$save_CFLAGS"
9514
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9516$as_echo "$ax_pthread_ok" >&6; }
9517 if test "x$ax_pthread_ok" = xyes; then
9518 break;
9519 fi
9520
9521 PTHREAD_LIBS=""
9522 PTHREAD_CFLAGS=""
9523done
9524fi
9525
9526# Various other checks:
9527if test "x$ax_pthread_ok" = xyes; then
9528 save_LIBS="$LIBS"
9529 LIBS="$PTHREAD_LIBS $LIBS"
9530 save_CFLAGS="$CFLAGS"
9531 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9532
9533 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009535$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009536 attr_name=unknown
9537 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009539/* end confdefs.h. */
9540#include <pthread.h>
9541int
9542main ()
9543{
cristya316db12011-10-24 00:49:45 +00009544int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009545 ;
9546 return 0;
9547}
9548_ACEOF
9549if ac_fn_c_try_link "$LINENO"; then :
9550 attr_name=$attr; break
9551fi
9552rm -f core conftest.err conftest.$ac_objext \
9553 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009554 done
cristy73bd4a52010-10-05 11:24:23 +00009555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9556$as_echo "$attr_name" >&6; }
9557 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9558
9559cat >>confdefs.h <<_ACEOF
9560#define PTHREAD_CREATE_JOINABLE $attr_name
9561_ACEOF
9562
9563 fi
9564
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9566$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9567 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009568 case ${host_os} in
9569 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9570 osf* | hpux*) flag="-D_REENTRANT";;
9571 solaris*)
9572 if test "$GCC" = "yes"; then
9573 flag="-D_REENTRANT"
9574 else
9575 flag="-mt -D_REENTRANT"
9576 fi
9577 ;;
cristy73bd4a52010-10-05 11:24:23 +00009578 esac
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9580$as_echo "${flag}" >&6; }
9581 if test "x$flag" != xno; then
9582 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9583 fi
9584
cristya316db12011-10-24 00:49:45 +00009585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9586$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9587if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9588 $as_echo_n "(cached) " >&6
9589else
9590
9591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592/* end confdefs.h. */
9593
9594 #include <pthread.h>
9595int
9596main ()
9597{
9598int i = PTHREAD_PRIO_INHERIT;
9599 ;
9600 return 0;
9601}
9602_ACEOF
9603if ac_fn_c_try_link "$LINENO"; then :
9604 ax_cv_PTHREAD_PRIO_INHERIT=yes
9605else
9606 ax_cv_PTHREAD_PRIO_INHERIT=no
9607fi
9608rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
9610
9611fi
9612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9613$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9614 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9615
9616$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9617
9618fi
9619
cristy73bd4a52010-10-05 11:24:23 +00009620 LIBS="$save_LIBS"
9621 CFLAGS="$save_CFLAGS"
9622
cristy23493c42013-04-11 16:04:59 +00009623 # More AIX lossage: compile with *_r variant
9624 if test "x$GCC" != xyes; then
9625 case $host_os in
9626 aix*)
9627 case "x/$CC" in #(
9628 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9629 #handle absolute path differently from PATH based program lookup
9630 case "x$CC" in #(
9631 x/*) :
9632 if as_fn_executable_p ${CC}_r; then :
9633 PTHREAD_CC="${CC}_r"
9634fi ;; #(
9635 *) :
9636 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009637do
9638 # Extract the first word of "$ac_prog", so it can be a program name with args.
9639set dummy $ac_prog; ac_word=$2
9640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9641$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009642if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009643 $as_echo_n "(cached) " >&6
9644else
9645 if test -n "$PTHREAD_CC"; then
9646 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9647else
9648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9649for as_dir in $PATH
9650do
9651 IFS=$as_save_IFS
9652 test -z "$as_dir" && as_dir=.
9653 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009655 ac_cv_prog_PTHREAD_CC="$ac_prog"
9656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9657 break 2
9658 fi
9659done
9660 done
9661IFS=$as_save_IFS
9662
9663fi
9664fi
9665PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9666if test -n "$PTHREAD_CC"; then
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9668$as_echo "$PTHREAD_CC" >&6; }
9669else
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671$as_echo "no" >&6; }
9672fi
9673
9674
9675 test -n "$PTHREAD_CC" && break
9676done
cristy23493c42013-04-11 16:04:59 +00009677test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9678 ;;
9679esac ;; #(
9680 *) :
9681 ;;
9682esac
9683 ;;
9684 esac
cristya316db12011-10-24 00:49:45 +00009685 fi
cristy73bd4a52010-10-05 11:24:23 +00009686fi
9687
cristy23493c42013-04-11 16:04:59 +00009688test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9689
cristy73bd4a52010-10-05 11:24:23 +00009690
9691
9692
9693
9694# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9695if test x"$ax_pthread_ok" = xyes; then
9696
9697$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9698
9699 :
9700else
9701 ax_pthread_ok=no
9702
9703fi
9704ac_ext=c
9705ac_cpp='$CPP $CPPFLAGS'
9706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9708ac_compiler_gnu=$ac_cv_c_compiler_gnu
9709
9710
cristy7acf8fb2010-09-23 19:58:53 +00009711 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009712 have_threads=yes
9713 DEF_THREAD="$PTHREAD_CFLAGS"
9714 CFLAGS="$CFLAGS $DEF_THREAD"
9715 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +00009716 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +00009717 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009718 { $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 +00009719$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9720 CC="$PTHREAD_CC"
9721 fi
cristy55bf91c2010-09-24 00:29:41 +00009722
9723$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9724
cristy3ed852e2009-09-05 21:47:34 +00009725 fi
9726fi
cristy1ae5c992013-07-30 14:55:07 +00009727LIBS="$LIBS $THREAD_LIBS"
9728
cristy3ed852e2009-09-05 21:47:34 +00009729
9730# Enable support for OpenMP
9731if test "$have_threads" != 'yes'; then
9732 ac_cv_prog_c_openmp=unsupported
9733fi
9734
9735 OPENMP_CFLAGS=
9736 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009737if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009738 enableval=$enable_openmp;
9739fi
9740
9741 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009743$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009744if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009745 $as_echo_n "(cached) " >&6
9746else
cristy8b350f62009-11-15 23:12:43 +00009747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009749
9750#ifndef _OPENMP
9751 choke me
9752#endif
9753#include <omp.h>
9754int main () { return omp_get_num_threads (); }
9755
9756_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009757if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009758 ac_cv_prog_c_openmp='none needed'
9759else
cristy8b350f62009-11-15 23:12:43 +00009760 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009761 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9762 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009763 ac_save_CFLAGS=$CFLAGS
9764 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009767
9768#ifndef _OPENMP
9769 choke me
9770#endif
9771#include <omp.h>
9772int main () { return omp_get_num_threads (); }
9773
9774_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009775if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009776 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009777fi
cristy8b350f62009-11-15 23:12:43 +00009778rm -f core conftest.err conftest.$ac_objext \
9779 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009780 CFLAGS=$ac_save_CFLAGS
9781 if test "$ac_cv_prog_c_openmp" != unsupported; then
9782 break
9783 fi
9784 done
9785fi
cristy8b350f62009-11-15 23:12:43 +00009786rm -f core conftest.err conftest.$ac_objext \
9787 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009788fi
cristy8b350f62009-11-15 23:12:43 +00009789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009790$as_echo "$ac_cv_prog_c_openmp" >&6; }
9791 case $ac_cv_prog_c_openmp in #(
9792 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009793 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009794 *)
cristy8b350f62009-11-15 23:12:43 +00009795 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009796 esac
9797 fi
9798
9799
9800CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9801MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9802
cristy391f1ce2010-09-09 17:23:28 +00009803if test "$enable_openmp" != no; then
9804 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9805 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9806 fi
9807fi
cristy3ed852e2009-09-05 21:47:34 +00009808
cristy736173a2009-09-20 21:18:22 +00009809# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009810
9811
cristy73bd4a52010-10-05 11:24:23 +00009812ac_ext=c
9813ac_cpp='$CPP $CPPFLAGS'
9814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9816ac_compiler_gnu=$ac_cv_c_compiler_gnu
9817
9818ax_pthread_ok=no
9819
9820# We used to check for pthread.h first, but this fails if pthread.h
9821# requires special compiler flags (e.g. on True64 or Sequent).
9822# It gets checked for in the link test anyway.
9823
9824# First of all, check if the user has set any of the PTHREAD_LIBS,
9825# etcetera environment variables, and if threads linking works using
9826# them:
9827if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9828 save_CFLAGS="$CFLAGS"
9829 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9830 save_LIBS="$LIBS"
9831 LIBS="$PTHREAD_LIBS $LIBS"
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9833$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835/* end confdefs.h. */
9836
9837/* Override any GCC internal prototype to avoid an error.
9838 Use char because int might match the return type of a GCC
9839 builtin and then its argument prototype would still apply. */
9840#ifdef __cplusplus
9841extern "C"
9842#endif
9843char pthread_join ();
9844int
9845main ()
9846{
9847return pthread_join ();
9848 ;
9849 return 0;
9850}
9851_ACEOF
9852if ac_fn_c_try_link "$LINENO"; then :
9853 ax_pthread_ok=yes
9854fi
9855rm -f core conftest.err conftest.$ac_objext \
9856 conftest$ac_exeext conftest.$ac_ext
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9858$as_echo "$ax_pthread_ok" >&6; }
9859 if test x"$ax_pthread_ok" = xno; then
9860 PTHREAD_LIBS=""
9861 PTHREAD_CFLAGS=""
9862 fi
9863 LIBS="$save_LIBS"
9864 CFLAGS="$save_CFLAGS"
9865fi
9866
9867# We must check for the threads library under a number of different
9868# names; the ordering is very important because some systems
9869# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9870# libraries is broken (non-POSIX).
9871
9872# Create a list of thread flags to try. Items starting with a "-" are
9873# C compiler flags, and other items are library names, except for "none"
9874# which indicates that we try without any flags at all, and "pthread-config"
9875# which is a program returning the flags for the Pth emulation library.
9876
cristy2ec87cc2013-02-18 17:46:50 +00009877ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009878
9879# The ordering *is* (sometimes) important. Some notes on the
9880# individual items follow:
9881
9882# pthreads: AIX (must check this before -lpthread)
9883# none: in case threads are in libc; should be tried before -Kthread and
9884# other compiler flags to prevent continual compiler warnings
9885# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9886# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9887# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9888# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9889# -pthreads: Solaris/gcc
9890# -mthreads: Mingw32/gcc, Lynx/gcc
9891# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9892# doesn't hurt to check since this sometimes defines pthreads too;
9893# also defines -D_REENTRANT)
9894# ... -mt is also the pthreads flag for HP/aCC
9895# pthread: Linux, etcetera
9896# --thread-safe: KAI C++
9897# pthread-config: use pthread-config program (for GNU Pth library)
9898
cristy2ec87cc2013-02-18 17:46:50 +00009899case ${host_os} in
9900 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009901
9902 # On Solaris (at least, for some versions), libc contains stubbed
9903 # (non-functional) versions of the pthreads routines, so link-based
9904 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9905 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9906 # a function called by this macro, so we could check for that, but
9907 # who knows whether they'll stub that too in a future libc.) So,
9908 # we'll just look for -pthreads and -lpthread first:
9909
9910 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9911 ;;
9912
cristy2ec87cc2013-02-18 17:46:50 +00009913 darwin*)
cristya316db12011-10-24 00:49:45 +00009914 ax_pthread_flags="-pthread $ax_pthread_flags"
9915 ;;
cristy73bd4a52010-10-05 11:24:23 +00009916esac
9917
9918if test x"$ax_pthread_ok" = xno; then
9919for flag in $ax_pthread_flags; do
9920
9921 case $flag in
9922 none)
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9924$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9925 ;;
9926
9927 -*)
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9929$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9930 PTHREAD_CFLAGS="$flag"
9931 ;;
9932
cristya316db12011-10-24 00:49:45 +00009933 pthread-config)
9934 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009935set dummy pthread-config; ac_word=$2
9936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9937$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009938if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009939 $as_echo_n "(cached) " >&6
9940else
9941 if test -n "$ax_pthread_config"; then
9942 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9943else
9944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9945for as_dir in $PATH
9946do
9947 IFS=$as_save_IFS
9948 test -z "$as_dir" && as_dir=.
9949 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009951 ac_cv_prog_ax_pthread_config="yes"
9952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9953 break 2
9954 fi
9955done
9956 done
9957IFS=$as_save_IFS
9958
9959 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9960fi
9961fi
9962ax_pthread_config=$ac_cv_prog_ax_pthread_config
9963if test -n "$ax_pthread_config"; then
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9965$as_echo "$ax_pthread_config" >&6; }
9966else
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968$as_echo "no" >&6; }
9969fi
9970
9971
cristya316db12011-10-24 00:49:45 +00009972 if test x"$ax_pthread_config" = xno; then continue; fi
9973 PTHREAD_CFLAGS="`pthread-config --cflags`"
9974 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9975 ;;
cristy73bd4a52010-10-05 11:24:23 +00009976
9977 *)
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9979$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9980 PTHREAD_LIBS="-l$flag"
9981 ;;
9982 esac
9983
9984 save_LIBS="$LIBS"
9985 save_CFLAGS="$CFLAGS"
9986 LIBS="$PTHREAD_LIBS $LIBS"
9987 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9988
9989 # Check for various functions. We must include pthread.h,
9990 # since some functions may be macros. (On the Sequent, we
9991 # need a special flag -Kthread to make this header compile.)
9992 # We check for pthread_join because it is in -lpthread on IRIX
9993 # while pthread_create is in libc. We check for pthread_attr_init
9994 # due to DEC craziness with -lpthreads. We check for
9995 # pthread_cleanup_push because it is one of the few pthread
9996 # functions on Solaris that doesn't have a non-functional libc stub.
9997 # We try pthread_create on general principles.
9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999/* end confdefs.h. */
10000#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010001 static void routine(void *a) { a = 0; }
10002 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010003int
10004main ()
10005{
10006pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010007 pthread_create(&th, 0, start_routine, 0);
10008 pthread_join(th, 0);
10009 pthread_attr_init(&attr);
10010 pthread_cleanup_push(routine, 0);
10011 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010012 ;
10013 return 0;
10014}
10015_ACEOF
10016if ac_fn_c_try_link "$LINENO"; then :
10017 ax_pthread_ok=yes
10018fi
10019rm -f core conftest.err conftest.$ac_objext \
10020 conftest$ac_exeext conftest.$ac_ext
10021
10022 LIBS="$save_LIBS"
10023 CFLAGS="$save_CFLAGS"
10024
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10026$as_echo "$ax_pthread_ok" >&6; }
10027 if test "x$ax_pthread_ok" = xyes; then
10028 break;
10029 fi
10030
10031 PTHREAD_LIBS=""
10032 PTHREAD_CFLAGS=""
10033done
10034fi
10035
10036# Various other checks:
10037if test "x$ax_pthread_ok" = xyes; then
10038 save_LIBS="$LIBS"
10039 LIBS="$PTHREAD_LIBS $LIBS"
10040 save_CFLAGS="$CFLAGS"
10041 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10042
10043 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010045$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010046 attr_name=unknown
10047 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010049/* end confdefs.h. */
10050#include <pthread.h>
10051int
10052main ()
10053{
cristya316db12011-10-24 00:49:45 +000010054int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010055 ;
10056 return 0;
10057}
10058_ACEOF
10059if ac_fn_c_try_link "$LINENO"; then :
10060 attr_name=$attr; break
10061fi
10062rm -f core conftest.err conftest.$ac_objext \
10063 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010064 done
cristy73bd4a52010-10-05 11:24:23 +000010065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10066$as_echo "$attr_name" >&6; }
10067 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10068
10069cat >>confdefs.h <<_ACEOF
10070#define PTHREAD_CREATE_JOINABLE $attr_name
10071_ACEOF
10072
10073 fi
10074
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10076$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10077 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010078 case ${host_os} in
10079 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10080 osf* | hpux*) flag="-D_REENTRANT";;
10081 solaris*)
10082 if test "$GCC" = "yes"; then
10083 flag="-D_REENTRANT"
10084 else
10085 flag="-mt -D_REENTRANT"
10086 fi
10087 ;;
cristy73bd4a52010-10-05 11:24:23 +000010088 esac
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
10090$as_echo "${flag}" >&6; }
10091 if test "x$flag" != xno; then
10092 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10093 fi
10094
cristya316db12011-10-24 00:49:45 +000010095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10096$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10097if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10098 $as_echo_n "(cached) " >&6
10099else
10100
10101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102/* end confdefs.h. */
10103
10104 #include <pthread.h>
10105int
10106main ()
10107{
10108int i = PTHREAD_PRIO_INHERIT;
10109 ;
10110 return 0;
10111}
10112_ACEOF
10113if ac_fn_c_try_link "$LINENO"; then :
10114 ax_cv_PTHREAD_PRIO_INHERIT=yes
10115else
10116 ax_cv_PTHREAD_PRIO_INHERIT=no
10117fi
10118rm -f core conftest.err conftest.$ac_objext \
10119 conftest$ac_exeext conftest.$ac_ext
10120
10121fi
10122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10123$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10124 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10125
10126$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10127
10128fi
10129
cristy73bd4a52010-10-05 11:24:23 +000010130 LIBS="$save_LIBS"
10131 CFLAGS="$save_CFLAGS"
10132
cristy23493c42013-04-11 16:04:59 +000010133 # More AIX lossage: compile with *_r variant
10134 if test "x$GCC" != xyes; then
10135 case $host_os in
10136 aix*)
10137 case "x/$CC" in #(
10138 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10139 #handle absolute path differently from PATH based program lookup
10140 case "x$CC" in #(
10141 x/*) :
10142 if as_fn_executable_p ${CC}_r; then :
10143 PTHREAD_CC="${CC}_r"
10144fi ;; #(
10145 *) :
10146 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010147do
10148 # Extract the first word of "$ac_prog", so it can be a program name with args.
10149set dummy $ac_prog; ac_word=$2
10150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10151$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010152if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010153 $as_echo_n "(cached) " >&6
10154else
10155 if test -n "$PTHREAD_CC"; then
10156 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10157else
10158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10159for as_dir in $PATH
10160do
10161 IFS=$as_save_IFS
10162 test -z "$as_dir" && as_dir=.
10163 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010165 ac_cv_prog_PTHREAD_CC="$ac_prog"
10166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10167 break 2
10168 fi
10169done
10170 done
10171IFS=$as_save_IFS
10172
10173fi
10174fi
10175PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10176if test -n "$PTHREAD_CC"; then
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10178$as_echo "$PTHREAD_CC" >&6; }
10179else
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10181$as_echo "no" >&6; }
10182fi
10183
10184
10185 test -n "$PTHREAD_CC" && break
10186done
cristy23493c42013-04-11 16:04:59 +000010187test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10188 ;;
10189esac ;; #(
10190 *) :
10191 ;;
10192esac
10193 ;;
10194 esac
cristya316db12011-10-24 00:49:45 +000010195 fi
cristy73bd4a52010-10-05 11:24:23 +000010196fi
10197
cristy23493c42013-04-11 16:04:59 +000010198test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10199
cristy73bd4a52010-10-05 11:24:23 +000010200
10201
10202
10203
10204# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10205if test x"$ax_pthread_ok" = xyes; then
10206
10207$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10208
10209 :
10210else
10211 ax_pthread_ok=no
10212
10213fi
10214ac_ext=c
10215ac_cpp='$CPP $CPPFLAGS'
10216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10218ac_compiler_gnu=$ac_cv_c_compiler_gnu
10219
10220
10221
10222# Check whether --enable-opencl was given.
10223if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010224 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010225else
cristy48794642012-09-02 15:19:08 +000010226 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010227fi
10228
10229
cristy48794642012-09-02 15:19:08 +000010230if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010231 ac_ext=c
10232ac_cpp='$CPP $CPPFLAGS'
10233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10235ac_compiler_gnu=$ac_cv_c_compiler_gnu
10236
cristy75314cc2012-09-15 23:08:29 +000010237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10238$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10239if ${ax_cv_c_compiler_ms+:} false; then :
10240 $as_echo_n "(cached) " >&6
10241else
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243/* end confdefs.h. */
10244
10245int
10246main ()
10247{
10248#ifndef _MSC_VER
10249 choke me
10250#endif
10251
10252 ;
10253 return 0;
10254}
10255_ACEOF
10256if ac_fn_c_try_compile "$LINENO"; then :
10257 ax_compiler_ms=yes
10258else
10259 ax_compiler_ms=no
10260fi
10261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10262ax_cv_c_compiler_ms=$ax_compiler_ms
10263
10264fi
10265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10266$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010267 if test X$ax_compiler_ms = Xno; then :
10268 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10269fi
10270
10271 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010272 ax_save_CL_CFLAGS=$CL_CFLAGS
10273
10274 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010275 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10276 for ac_header in CL/cl.h OpenCL/cl.h
10277do :
10278 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10279ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010280if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010281 cat >>confdefs.h <<_ACEOF
10282#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10283_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010284 found_opencl_header='yes'
10285 break;
10286else
10287 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010288fi
10289
10290done
10291
cristyfdc7d122013-08-17 20:46:45 +000010292
10293 if test X$found_opencl_header = Xno; then :
10294 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10295 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10296 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10297 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10298 for ac_header in CL/cl.h OpenCL/cl.h
10299do :
10300 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10301ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10302if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10303 cat >>confdefs.h <<_ACEOF
10304#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10305_ACEOF
10306 found_opencl_header='yes'
10307 break;
10308else
10309 found_opencl_header='no'
10310fi
10311
10312done
10313
10314
10315fi
10316
10317 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010318
10319 for ac_header in windows.h
10320do :
10321 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010322if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010323 cat >>confdefs.h <<_ACEOF
10324#define HAVE_WINDOWS_H 1
10325_ACEOF
10326
10327fi
10328
10329done
10330
10331
10332
10333
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10335$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010336if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010337 $as_echo_n "(cached) " >&6
10338else
10339 ax_cv_check_cl_libcl=no
10340 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010341 x86_64) ax_check_cl_libdir=lib64
10342 ax_check_cl_amd_libdir=x86_64
10343 ;;
10344 *) ax_check_cl_libdir=lib
10345 ax_check_cl_amd_libdir=x86
10346 ;;
cristy73bd4a52010-10-05 11:24:23 +000010347 esac
10348 ax_save_CPPFLAGS=$CPPFLAGS
10349 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10350 ax_save_LIBS=$LIBS
10351 LIBS=""
10352 ax_check_libs="-lOpenCL -lCL -lclparser"
10353 for ax_lib in $ax_check_libs; do
10354 if test X$ax_compiler_ms = Xyes; then :
10355 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10356else
10357 ax_try_lib=$ax_lib
10358fi
10359 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361/* end confdefs.h. */
10362
10363 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10364 # include <windows.h>
10365 # endif
10366 # ifdef HAVE_CL_CL_H
10367 # include <CL/cl.h>
10368 # elif defined(HAVE_OPENCL_CL_H)
10369 # include <OpenCL/cl.h>
10370 # else
10371 # error no CL.h
10372 # endif
10373int
10374main ()
10375{
10376clCreateContextFromType(0,0,0,0,0)
10377 ;
10378 return 0;
10379}
10380_ACEOF
10381if ac_fn_c_try_link "$LINENO"; then :
10382 ax_cv_check_cl_libcl=$ax_try_lib; break
10383else
10384 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"
10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386/* end confdefs.h. */
10387
10388 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10389 # include <windows.h>
10390 # endif
10391 # ifdef HAVE_CL_CL_H
10392 # include <CL/cl.h>
10393 # elif defined(HAVE_OPENCL_CL_H)
10394 # include <OpenCL/cl.h>
10395 # else
10396 # error no CL.h
10397 # endif
10398int
10399main ()
10400{
10401clCreateContextFromType(0,0,0,0,0)
10402 ;
10403 return 0;
10404}
10405_ACEOF
10406if ac_fn_c_try_link "$LINENO"; then :
10407 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10408else
cristy78c5a0c2010-12-04 20:00:59 +000010409 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 +000010410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10411/* end confdefs.h. */
10412
10413 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10414 # include <windows.h>
10415 # endif
10416 # ifdef HAVE_CL_CL_H
10417 # include <CL/cl.h>
10418 # elif defined(HAVE_OPENCL_CL_H)
10419 # include <OpenCL/cl.h>
10420 # else
10421 # error no CL.h
10422 # endif
10423int
10424main ()
10425{
10426clCreateContextFromType(0,0,0,0,0)
10427 ;
10428 return 0;
10429}
10430_ACEOF
10431if ac_fn_c_try_link "$LINENO"; then :
10432 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010433else
10434 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"
10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436/* end confdefs.h. */
10437
10438 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10439 # include <windows.h>
10440 # endif
10441 # ifdef HAVE_CL_CL_H
10442 # include <CL/cl.h>
10443 # elif defined(HAVE_OPENCL_CL_H)
10444 # include <OpenCL/cl.h>
10445 # else
10446 # error no CL.h
10447 # endif
10448int
10449main ()
10450{
10451clCreateContextFromType(0,0,0,0,0)
10452 ;
10453 return 0;
10454}
10455_ACEOF
10456if ac_fn_c_try_link "$LINENO"; then :
10457 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10458
10459fi
10460rm -f core conftest.err conftest.$ac_objext \
10461 conftest$ac_exeext conftest.$ac_ext
10462
10463
cristy73bd4a52010-10-05 11:24:23 +000010464fi
10465rm -f core conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
10467fi
10468rm -f core conftest.err conftest.$ac_objext \
10469 conftest$ac_exeext conftest.$ac_ext
10470fi
10471rm -f core conftest.err conftest.$ac_objext \
10472 conftest$ac_exeext conftest.$ac_ext
10473 done
10474
cristyc3f8b8e2011-12-22 14:55:16 +000010475 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010476 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478/* end confdefs.h. */
10479
10480 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10481 # include <windows.h>
10482 # endif
10483 # ifdef HAVE_CL_CL_H
10484 # include <CL/cl.h>
10485 # elif defined(HAVE_OPENCL_CL_H)
10486 # include <OpenCL/cl.h>
10487 # else
10488 # error no CL.h
10489 # endif
10490int
10491main ()
10492{
10493clCreateContextFromType(0,0,0,0,0)
10494 ;
10495 return 0;
10496}
10497_ACEOF
10498if ac_fn_c_try_link "$LINENO"; then :
10499 ax_cv_check_cl_libcl=$LIBS
10500fi
10501rm -f core conftest.err conftest.$ac_objext \
10502 conftest$ac_exeext conftest.$ac_ext
10503fi
10504
10505 LIBS=$ax_save_LIBS
10506 CPPFLAGS=$ax_save_CPPFLAGS
10507fi
10508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10509$as_echo "$ax_cv_check_cl_libcl" >&6; }
10510
10511 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10512 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10513else
10514 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10515$as_echo "#define _OPENCL 1" >>confdefs.h
10516
10517fi
10518 ac_ext=c
10519ac_cpp='$CPP $CPPFLAGS'
10520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10522ac_compiler_gnu=$ac_cv_c_compiler_gnu
10523
10524fi
10525
10526
10527
10528
cristyc7083c12009-10-14 03:16:55 +000010529CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010530CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010531LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010532
cristy391f1ce2010-09-09 17:23:28 +000010533if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010534 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010535 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10536 fi
cristyfd9dcd42010-08-08 18:07:02 +000010537fi
cristy2e8b51d2009-10-17 18:26:15 +000010538
cristy3ed852e2009-09-05 21:47:34 +000010539########
10540#
10541# Check for large file support
10542#
10543########
10544# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010545if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010546 enableval=$enable_largefile;
10547fi
10548
10549if test "$enable_largefile" != no; then
10550
cristy8b350f62009-11-15 23:12:43 +000010551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010552$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010553if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010554 $as_echo_n "(cached) " >&6
10555else
10556 ac_cv_sys_largefile_CC=no
10557 if test "$GCC" != yes; then
10558 ac_save_CC=$CC
10559 while :; do
10560 # IRIX 6.2 and later do not support large files by default,
10561 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010563/* end confdefs.h. */
10564#include <sys/types.h>
10565 /* Check that off_t can represent 2**63 - 1 correctly.
10566 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10567 since some C++ compilers masquerading as C compilers
10568 incorrectly reject 9223372036854775807. */
10569#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10570 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10571 && LARGE_OFF_T % 2147483647 == 1)
10572 ? 1 : -1];
10573int
10574main ()
10575{
10576
10577 ;
10578 return 0;
10579}
10580_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010581 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010582 break
cristy3ed852e2009-09-05 21:47:34 +000010583fi
cristy3ed852e2009-09-05 21:47:34 +000010584rm -f core conftest.err conftest.$ac_objext
10585 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010586 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010587 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010588fi
cristy3ed852e2009-09-05 21:47:34 +000010589rm -f core conftest.err conftest.$ac_objext
10590 break
10591 done
10592 CC=$ac_save_CC
10593 rm -f conftest.$ac_ext
10594 fi
10595fi
cristy8b350f62009-11-15 23:12:43 +000010596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010597$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10598 if test "$ac_cv_sys_largefile_CC" != no; then
10599 CC=$CC$ac_cv_sys_largefile_CC
10600 fi
10601
cristy8b350f62009-11-15 23:12:43 +000010602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010603$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010604if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010605 $as_echo_n "(cached) " >&6
10606else
10607 while :; do
cristy8b350f62009-11-15 23:12:43 +000010608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010609/* end confdefs.h. */
10610#include <sys/types.h>
10611 /* Check that off_t can represent 2**63 - 1 correctly.
10612 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10613 since some C++ compilers masquerading as C compilers
10614 incorrectly reject 9223372036854775807. */
10615#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10616 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10617 && LARGE_OFF_T % 2147483647 == 1)
10618 ? 1 : -1];
10619int
10620main ()
10621{
10622
10623 ;
10624 return 0;
10625}
10626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010627if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010628 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010629fi
cristy3ed852e2009-09-05 21:47:34 +000010630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010632/* end confdefs.h. */
10633#define _FILE_OFFSET_BITS 64
10634#include <sys/types.h>
10635 /* Check that off_t can represent 2**63 - 1 correctly.
10636 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10637 since some C++ compilers masquerading as C compilers
10638 incorrectly reject 9223372036854775807. */
10639#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10640 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10641 && LARGE_OFF_T % 2147483647 == 1)
10642 ? 1 : -1];
10643int
10644main ()
10645{
10646
10647 ;
10648 return 0;
10649}
10650_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010651if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010652 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010653fi
cristy3ed852e2009-09-05 21:47:34 +000010654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10655 ac_cv_sys_file_offset_bits=unknown
10656 break
10657done
10658fi
cristy8b350f62009-11-15 23:12:43 +000010659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010660$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10661case $ac_cv_sys_file_offset_bits in #(
10662 no | unknown) ;;
10663 *)
10664cat >>confdefs.h <<_ACEOF
10665#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10666_ACEOF
10667;;
10668esac
10669rm -rf conftest*
10670 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010672$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010673if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010674 $as_echo_n "(cached) " >&6
10675else
10676 while :; do
cristy8b350f62009-11-15 23:12:43 +000010677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010678/* end confdefs.h. */
10679#include <sys/types.h>
10680 /* Check that off_t can represent 2**63 - 1 correctly.
10681 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10682 since some C++ compilers masquerading as C compilers
10683 incorrectly reject 9223372036854775807. */
10684#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10685 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10686 && LARGE_OFF_T % 2147483647 == 1)
10687 ? 1 : -1];
10688int
10689main ()
10690{
10691
10692 ;
10693 return 0;
10694}
10695_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010696if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010697 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010698fi
cristy3ed852e2009-09-05 21:47:34 +000010699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010701/* end confdefs.h. */
10702#define _LARGE_FILES 1
10703#include <sys/types.h>
10704 /* Check that off_t can represent 2**63 - 1 correctly.
10705 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10706 since some C++ compilers masquerading as C compilers
10707 incorrectly reject 9223372036854775807. */
10708#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10709 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10710 && LARGE_OFF_T % 2147483647 == 1)
10711 ? 1 : -1];
10712int
10713main ()
10714{
10715
10716 ;
10717 return 0;
10718}
10719_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010720if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010721 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010722fi
cristy3ed852e2009-09-05 21:47:34 +000010723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10724 ac_cv_sys_large_files=unknown
10725 break
10726done
10727fi
cristy8b350f62009-11-15 23:12:43 +000010728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010729$as_echo "$ac_cv_sys_large_files" >&6; }
10730case $ac_cv_sys_large_files in #(
10731 no | unknown) ;;
10732 *)
10733cat >>confdefs.h <<_ACEOF
10734#define _LARGE_FILES $ac_cv_sys_large_files
10735_ACEOF
10736;;
10737esac
10738rm -rf conftest*
10739 fi
cristy14fefe52012-05-21 00:59:18 +000010740
10741
cristy3ed852e2009-09-05 21:47:34 +000010742fi
10743
cristy8b350f62009-11-15 23:12:43 +000010744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010745$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010746if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010747 $as_echo_n "(cached) " >&6
10748else
10749 while :; do
cristy8b350f62009-11-15 23:12:43 +000010750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010751/* end confdefs.h. */
10752#include <sys/types.h> /* for off_t */
10753 #include <stdio.h>
10754int
10755main ()
10756{
10757int (*fp) (FILE *, off_t, int) = fseeko;
10758 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10759 ;
10760 return 0;
10761}
10762_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010763if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010764 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010765fi
cristy8b350f62009-11-15 23:12:43 +000010766rm -f core conftest.err conftest.$ac_objext \
10767 conftest$ac_exeext conftest.$ac_ext
10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010769/* end confdefs.h. */
10770#define _LARGEFILE_SOURCE 1
10771#include <sys/types.h> /* for off_t */
10772 #include <stdio.h>
10773int
10774main ()
10775{
10776int (*fp) (FILE *, off_t, int) = fseeko;
10777 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10778 ;
10779 return 0;
10780}
10781_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010782if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010783 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010784fi
cristy8b350f62009-11-15 23:12:43 +000010785rm -f core conftest.err conftest.$ac_objext \
10786 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010787 ac_cv_sys_largefile_source=unknown
10788 break
10789done
10790fi
cristy8b350f62009-11-15 23:12:43 +000010791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010792$as_echo "$ac_cv_sys_largefile_source" >&6; }
10793case $ac_cv_sys_largefile_source in #(
10794 no | unknown) ;;
10795 *)
10796cat >>confdefs.h <<_ACEOF
10797#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10798_ACEOF
10799;;
10800esac
10801rm -rf conftest*
10802
10803# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10804# in glibc 2.1.3, but that breaks too many other things.
10805# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10806if test $ac_cv_sys_largefile_source != unknown; then
10807
cristy8b350f62009-11-15 23:12:43 +000010808$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010809
10810fi
10811
10812LFS_CPPFLAGS=''
10813if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010814 case $ac_cv_sys_file_offset_bits in
10815 no)
10816 # nothing to do here as the host supports LFS fine
10817 ;;
10818 unknown)
cristy8b350f62009-11-15 23:12:43 +000010819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010820$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010821 if test "$cross_compiling" = yes; then :
10822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010824as_fn_error $? "cannot run test program while cross compiling
10825See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010826else
cristy8b350f62009-11-15 23:12:43 +000010827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010829#include <unistd.h>
10830 main () {
10831 exit(!(sizeof(off_t) == 8));
10832 }
cristyda16f162011-02-19 23:52:17 +000010833int
10834main ()
10835{
10836
10837 ;
10838 return 0;
10839}
cristy3ed852e2009-09-05 21:47:34 +000010840_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010841if ac_fn_c_try_run "$LINENO"; then :
10842 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010843
cristyad38abe2012-12-23 23:03:21 +000010844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10845$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010846else
cristyad38abe2012-12-23 23:03:21 +000010847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10848$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000010849fi
cristy8b350f62009-11-15 23:12:43 +000010850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10851 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010852fi
10853
cristyc1e0cc12011-09-21 16:41:16 +000010854 ;;
10855 *)
10856 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10857 ;;
10858 esac
cristy3ed852e2009-09-05 21:47:34 +000010859 if test "$ac_cv_sys_large_files" != 'no'; then
10860 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10861 fi
10862 if test "$ac_cv_sys_largefile_source" != 'no'; then
10863 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10864 fi
10865fi
10866
10867
cristy3ed852e2009-09-05 21:47:34 +000010868# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010869enable_dlopen=yes
10870
10871
10872
10873case `pwd` in
10874 *\ * | *\ *)
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10876$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10877esac
10878
10879
10880
cristy99bd5232011-12-07 14:38:20 +000010881macro_version='2.4.2'
10882macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896ltmain="$ac_aux_dir/ltmain.sh"
10897
cristy0c60a692010-11-04 01:09:47 +000010898# Backslashify metacharacters that are still active within
10899# double-quoted strings.
10900sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10901
10902# Same as above, but do not quote variable references.
10903double_quote_subst='s/\(["`\\]\)/\\\1/g'
10904
10905# Sed substitution to delay expansion of an escaped shell variable in a
10906# double_quote_subst'ed string.
10907delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10908
10909# Sed substitution to delay expansion of an escaped single quote.
10910delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10911
10912# Sed substitution to avoid accidental globbing in evaled expressions
10913no_glob_subst='s/\*/\\\*/g'
10914
cristy73bd4a52010-10-05 11:24:23 +000010915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10916$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010917if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010918 $as_echo_n "(cached) " >&6
10919else
10920 if test -n "$NM"; then
10921 # Let the user override the test.
10922 lt_cv_path_NM="$NM"
10923else
10924 lt_nm_to_check="${ac_tool_prefix}nm"
10925 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10926 lt_nm_to_check="$lt_nm_to_check nm"
10927 fi
10928 for lt_tmp_nm in $lt_nm_to_check; do
10929 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10930 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10931 IFS="$lt_save_ifs"
10932 test -z "$ac_dir" && ac_dir=.
10933 tmp_nm="$ac_dir/$lt_tmp_nm"
10934 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10935 # Check to see if the nm accepts a BSD-compat flag.
10936 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10937 # nm: unknown option "B" ignored
10938 # Tru64's nm complains that /dev/null is an invalid object file
10939 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10940 */dev/null* | *'Invalid file or object type'*)
10941 lt_cv_path_NM="$tmp_nm -B"
10942 break
10943 ;;
10944 *)
10945 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10946 */dev/null*)
10947 lt_cv_path_NM="$tmp_nm -p"
10948 break
10949 ;;
10950 *)
10951 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10952 continue # so that we can try to find one that supports BSD flags
10953 ;;
10954 esac
10955 ;;
10956 esac
10957 fi
10958 done
10959 IFS="$lt_save_ifs"
10960 done
10961 : ${lt_cv_path_NM=no}
10962fi
10963fi
10964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10965$as_echo "$lt_cv_path_NM" >&6; }
10966if test "$lt_cv_path_NM" != "no"; then
10967 NM="$lt_cv_path_NM"
10968else
10969 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010970 if test -n "$DUMPBIN"; then :
10971 # Let the user override the test.
10972 else
10973 if test -n "$ac_tool_prefix"; then
10974 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010975 do
10976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10977set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10979$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010980if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010981 $as_echo_n "(cached) " >&6
10982else
10983 if test -n "$DUMPBIN"; then
10984 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10985else
10986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10987for as_dir in $PATH
10988do
10989 IFS=$as_save_IFS
10990 test -z "$as_dir" && as_dir=.
10991 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010993 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10995 break 2
10996 fi
10997done
10998 done
10999IFS=$as_save_IFS
11000
11001fi
11002fi
11003DUMPBIN=$ac_cv_prog_DUMPBIN
11004if test -n "$DUMPBIN"; then
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11006$as_echo "$DUMPBIN" >&6; }
11007else
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009$as_echo "no" >&6; }
11010fi
11011
11012
11013 test -n "$DUMPBIN" && break
11014 done
11015fi
11016if test -z "$DUMPBIN"; then
11017 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011018 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011019do
11020 # Extract the first word of "$ac_prog", so it can be a program name with args.
11021set dummy $ac_prog; ac_word=$2
11022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11023$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011024if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011025 $as_echo_n "(cached) " >&6
11026else
11027 if test -n "$ac_ct_DUMPBIN"; then
11028 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11029else
11030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11031for as_dir in $PATH
11032do
11033 IFS=$as_save_IFS
11034 test -z "$as_dir" && as_dir=.
11035 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011037 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11039 break 2
11040 fi
11041done
11042 done
11043IFS=$as_save_IFS
11044
11045fi
11046fi
11047ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11048if test -n "$ac_ct_DUMPBIN"; then
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11050$as_echo "$ac_ct_DUMPBIN" >&6; }
11051else
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053$as_echo "no" >&6; }
11054fi
11055
11056
11057 test -n "$ac_ct_DUMPBIN" && break
11058done
11059
11060 if test "x$ac_ct_DUMPBIN" = x; then
11061 DUMPBIN=":"
11062 else
11063 case $cross_compiling:$ac_tool_warned in
11064yes:)
11065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11067ac_tool_warned=yes ;;
11068esac
11069 DUMPBIN=$ac_ct_DUMPBIN
11070 fi
11071fi
11072
cristy0c60a692010-11-04 01:09:47 +000011073 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11074 *COFF*)
11075 DUMPBIN="$DUMPBIN -symbols"
11076 ;;
11077 *)
11078 DUMPBIN=:
11079 ;;
11080 esac
11081 fi
cristy73bd4a52010-10-05 11:24:23 +000011082
11083 if test "$DUMPBIN" != ":"; then
11084 NM="$DUMPBIN"
11085 fi
11086fi
11087test -z "$NM" && NM=nm
11088
11089
11090
11091
11092
11093
11094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11095$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011096if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011097 $as_echo_n "(cached) " >&6
11098else
11099 lt_cv_nm_interface="BSD nm"
11100 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011101 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011102 (eval "$ac_compile" 2>conftest.err)
11103 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011104 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011105 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11106 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011107 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011108 cat conftest.out >&5
11109 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11110 lt_cv_nm_interface="MS dumpbin"
11111 fi
11112 rm -f conftest*
11113fi
11114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11115$as_echo "$lt_cv_nm_interface" >&6; }
11116
11117# find the maximum length of command line arguments
11118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11119$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011120if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011121 $as_echo_n "(cached) " >&6
11122else
11123 i=0
11124 teststring="ABCD"
11125
11126 case $build_os in
11127 msdosdjgpp*)
11128 # On DJGPP, this test can blow up pretty badly due to problems in libc
11129 # (any single argument exceeding 2000 bytes causes a buffer overrun
11130 # during glob expansion). Even if it were fixed, the result of this
11131 # check would be larger than it should be.
11132 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11133 ;;
11134
11135 gnu*)
11136 # Under GNU Hurd, this test is not required because there is
11137 # no limit to the length of command line arguments.
11138 # Libtool will interpret -1 as no limit whatsoever
11139 lt_cv_sys_max_cmd_len=-1;
11140 ;;
11141
11142 cygwin* | mingw* | cegcc*)
11143 # On Win9x/ME, this test blows up -- it succeeds, but takes
11144 # about 5 minutes as the teststring grows exponentially.
11145 # Worse, since 9x/ME are not pre-emptively multitasking,
11146 # you end up with a "frozen" computer, even though with patience
11147 # the test eventually succeeds (with a max line length of 256k).
11148 # Instead, let's just punt: use the minimum linelength reported by
11149 # all of the supported platforms: 8192 (on NT/2K/XP).
11150 lt_cv_sys_max_cmd_len=8192;
11151 ;;
11152
cristy0c60a692010-11-04 01:09:47 +000011153 mint*)
11154 # On MiNT this can take a long time and run out of memory.
11155 lt_cv_sys_max_cmd_len=8192;
11156 ;;
11157
cristy73bd4a52010-10-05 11:24:23 +000011158 amigaos*)
11159 # On AmigaOS with pdksh, this test takes hours, literally.
11160 # So we just punt and use a minimum line length of 8192.
11161 lt_cv_sys_max_cmd_len=8192;
11162 ;;
11163
11164 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11165 # This has been around since 386BSD, at least. Likely further.
11166 if test -x /sbin/sysctl; then
11167 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11168 elif test -x /usr/sbin/sysctl; then
11169 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11170 else
11171 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11172 fi
11173 # And add a safety zone
11174 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11175 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11176 ;;
11177
11178 interix*)
11179 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11180 lt_cv_sys_max_cmd_len=196608
11181 ;;
11182
cristy99bd5232011-12-07 14:38:20 +000011183 os2*)
11184 # The test takes a long time on OS/2.
11185 lt_cv_sys_max_cmd_len=8192
11186 ;;
11187
cristy73bd4a52010-10-05 11:24:23 +000011188 osf*)
11189 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11190 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11191 # nice to cause kernel panics so lets avoid the loop below.
11192 # First set a reasonable default.
11193 lt_cv_sys_max_cmd_len=16384
11194 #
11195 if test -x /sbin/sysconfig; then
11196 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11197 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11198 esac
11199 fi
11200 ;;
11201 sco3.2v5*)
11202 lt_cv_sys_max_cmd_len=102400
11203 ;;
11204 sysv5* | sco5v6* | sysv4.2uw2*)
11205 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11206 if test -n "$kargmax"; then
11207 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11208 else
11209 lt_cv_sys_max_cmd_len=32768
11210 fi
11211 ;;
11212 *)
11213 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11214 if test -n "$lt_cv_sys_max_cmd_len"; then
11215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11217 else
11218 # Make teststring a little bigger before we do anything with it.
11219 # a 1K string should be a reasonable start.
11220 for i in 1 2 3 4 5 6 7 8 ; do
11221 teststring=$teststring$teststring
11222 done
11223 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11224 # If test is not a shell built-in, we'll probably end up computing a
11225 # maximum length that is only half of the actual maximum length, but
11226 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011227 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011228 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011229 test $i != 17 # 1/2 MB should be enough
11230 do
11231 i=`expr $i + 1`
11232 teststring=$teststring$teststring
11233 done
11234 # Only check the string length outside the loop.
11235 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11236 teststring=
11237 # Add a significant safety factor because C++ compilers can tack on
11238 # massive amounts of additional arguments before passing them to the
11239 # linker. It appears as though 1/2 is a usable value.
11240 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11241 fi
11242 ;;
11243 esac
11244
11245fi
11246
11247if test -n $lt_cv_sys_max_cmd_len ; then
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11249$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11250else
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11252$as_echo "none" >&6; }
11253fi
11254max_cmd_len=$lt_cv_sys_max_cmd_len
11255
11256
11257
11258
11259
11260
11261: ${CP="cp -f"}
11262: ${MV="mv -f"}
11263: ${RM="rm -f"}
11264
11265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11266$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11267# Try some XSI features
11268xsi_shell=no
11269( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011270 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11271 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011272 && eval 'test $(( 1 + 1 )) -eq 2 \
11273 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11274 && xsi_shell=yes
11275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11276$as_echo "$xsi_shell" >&6; }
11277
11278
11279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11280$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11281lt_shell_append=no
11282( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11283 >/dev/null 2>&1 \
11284 && lt_shell_append=yes
11285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11286$as_echo "$lt_shell_append" >&6; }
11287
11288
11289if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11290 lt_unset=unset
11291else
11292 lt_unset=false
11293fi
11294
11295
11296
11297
11298
11299# test EBCDIC or ASCII
11300case `echo X|tr X '\101'` in
11301 A) # ASCII based system
11302 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11303 lt_SP2NL='tr \040 \012'
11304 lt_NL2SP='tr \015\012 \040\040'
11305 ;;
11306 *) # EBCDIC based system
11307 lt_SP2NL='tr \100 \n'
11308 lt_NL2SP='tr \r\n \100\100'
11309 ;;
11310esac
11311
11312
11313
11314
11315
11316
11317
11318
11319
cristyda16f162011-02-19 23:52:17 +000011320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11321$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11322if ${lt_cv_to_host_file_cmd+:} false; then :
11323 $as_echo_n "(cached) " >&6
11324else
11325 case $host in
11326 *-*-mingw* )
11327 case $build in
11328 *-*-mingw* ) # actually msys
11329 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11330 ;;
11331 *-*-cygwin* )
11332 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11333 ;;
11334 * ) # otherwise, assume *nix
11335 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11336 ;;
11337 esac
11338 ;;
11339 *-*-cygwin* )
11340 case $build in
11341 *-*-mingw* ) # actually msys
11342 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11343 ;;
11344 *-*-cygwin* )
11345 lt_cv_to_host_file_cmd=func_convert_file_noop
11346 ;;
11347 * ) # otherwise, assume *nix
11348 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11349 ;;
11350 esac
11351 ;;
11352 * ) # unhandled hosts (and "normal" native builds)
11353 lt_cv_to_host_file_cmd=func_convert_file_noop
11354 ;;
11355esac
11356
11357fi
11358
11359to_host_file_cmd=$lt_cv_to_host_file_cmd
11360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11361$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11362
11363
11364
11365
11366
11367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11368$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11369if ${lt_cv_to_tool_file_cmd+:} false; then :
11370 $as_echo_n "(cached) " >&6
11371else
11372 #assume ordinary cross tools, or native build.
11373lt_cv_to_tool_file_cmd=func_convert_file_noop
11374case $host in
11375 *-*-mingw* )
11376 case $build in
11377 *-*-mingw* ) # actually msys
11378 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11379 ;;
11380 esac
11381 ;;
11382esac
11383
11384fi
11385
11386to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11388$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11389
11390
11391
11392
11393
cristy73bd4a52010-10-05 11:24:23 +000011394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11395$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011396if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011397 $as_echo_n "(cached) " >&6
11398else
11399 lt_cv_ld_reload_flag='-r'
11400fi
11401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11402$as_echo "$lt_cv_ld_reload_flag" >&6; }
11403reload_flag=$lt_cv_ld_reload_flag
11404case $reload_flag in
11405"" | " "*) ;;
11406*) reload_flag=" $reload_flag" ;;
11407esac
11408reload_cmds='$LD$reload_flag -o $output$reload_objs'
11409case $host_os in
cristyda16f162011-02-19 23:52:17 +000011410 cygwin* | mingw* | pw32* | cegcc*)
11411 if test "$GCC" != yes; then
11412 reload_cmds=false
11413 fi
11414 ;;
cristy73bd4a52010-10-05 11:24:23 +000011415 darwin*)
11416 if test "$GCC" = yes; then
11417 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11418 else
11419 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11420 fi
11421 ;;
11422esac
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432if test -n "$ac_tool_prefix"; then
11433 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11434set dummy ${ac_tool_prefix}objdump; ac_word=$2
11435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11436$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011437if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011438 $as_echo_n "(cached) " >&6
11439else
11440 if test -n "$OBJDUMP"; then
11441 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11442else
11443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444for as_dir in $PATH
11445do
11446 IFS=$as_save_IFS
11447 test -z "$as_dir" && as_dir=.
11448 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011450 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11452 break 2
11453 fi
11454done
11455 done
11456IFS=$as_save_IFS
11457
11458fi
11459fi
11460OBJDUMP=$ac_cv_prog_OBJDUMP
11461if test -n "$OBJDUMP"; then
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11463$as_echo "$OBJDUMP" >&6; }
11464else
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466$as_echo "no" >&6; }
11467fi
11468
11469
11470fi
11471if test -z "$ac_cv_prog_OBJDUMP"; then
11472 ac_ct_OBJDUMP=$OBJDUMP
11473 # Extract the first word of "objdump", so it can be a program name with args.
11474set dummy objdump; ac_word=$2
11475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11476$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011477if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011478 $as_echo_n "(cached) " >&6
11479else
11480 if test -n "$ac_ct_OBJDUMP"; then
11481 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11482else
11483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484for as_dir in $PATH
11485do
11486 IFS=$as_save_IFS
11487 test -z "$as_dir" && as_dir=.
11488 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011490 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11492 break 2
11493 fi
11494done
11495 done
11496IFS=$as_save_IFS
11497
11498fi
11499fi
11500ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11501if test -n "$ac_ct_OBJDUMP"; then
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11503$as_echo "$ac_ct_OBJDUMP" >&6; }
11504else
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506$as_echo "no" >&6; }
11507fi
11508
11509 if test "x$ac_ct_OBJDUMP" = x; then
11510 OBJDUMP="false"
11511 else
11512 case $cross_compiling:$ac_tool_warned in
11513yes:)
11514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11516ac_tool_warned=yes ;;
11517esac
11518 OBJDUMP=$ac_ct_OBJDUMP
11519 fi
11520else
11521 OBJDUMP="$ac_cv_prog_OBJDUMP"
11522fi
11523
11524test -z "$OBJDUMP" && OBJDUMP=objdump
11525
11526
11527
11528
11529
11530
11531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11532$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011533if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011534 $as_echo_n "(cached) " >&6
11535else
11536 lt_cv_file_magic_cmd='$MAGIC_CMD'
11537lt_cv_file_magic_test_file=
11538lt_cv_deplibs_check_method='unknown'
11539# Need to set the preceding variable on all platforms that support
11540# interlibrary dependencies.
11541# 'none' -- dependencies not supported.
11542# `unknown' -- same as none, but documents that we really don't know.
11543# 'pass_all' -- all dependencies passed with no checks.
11544# 'test_compile' -- check by making test program.
11545# 'file_magic [[regex]]' -- check by looking for files in library path
11546# which responds to the $file_magic_cmd with a given extended regex.
11547# If you have `file' or equivalent on your system and you're not sure
11548# whether `pass_all' will *always* work, you probably want this one.
11549
11550case $host_os in
11551aix[4-9]*)
11552 lt_cv_deplibs_check_method=pass_all
11553 ;;
11554
11555beos*)
11556 lt_cv_deplibs_check_method=pass_all
11557 ;;
11558
11559bsdi[45]*)
11560 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11561 lt_cv_file_magic_cmd='/usr/bin/file -L'
11562 lt_cv_file_magic_test_file=/shlib/libc.so
11563 ;;
11564
11565cygwin*)
11566 # func_win32_libid is a shell function defined in ltmain.sh
11567 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11568 lt_cv_file_magic_cmd='func_win32_libid'
11569 ;;
11570
11571mingw* | pw32*)
11572 # Base MSYS/MinGW do not provide the 'file' command needed by
11573 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11574 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011575 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11576 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011577 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11578 lt_cv_file_magic_cmd='func_win32_libid'
11579 else
cristy0c60a692010-11-04 01:09:47 +000011580 # Keep this pattern in sync with the one in func_win32_libid.
11581 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 +000011582 lt_cv_file_magic_cmd='$OBJDUMP -f'
11583 fi
11584 ;;
11585
cristy0c60a692010-11-04 01:09:47 +000011586cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011587 # use the weaker test based on 'objdump'. See mingw*.
11588 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11589 lt_cv_file_magic_cmd='$OBJDUMP -f'
11590 ;;
11591
11592darwin* | rhapsody*)
11593 lt_cv_deplibs_check_method=pass_all
11594 ;;
11595
11596freebsd* | dragonfly*)
11597 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11598 case $host_cpu in
11599 i*86 )
11600 # Not sure whether the presence of OpenBSD here was a mistake.
11601 # Let's accept both of them until this is cleared up.
11602 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11603 lt_cv_file_magic_cmd=/usr/bin/file
11604 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11605 ;;
11606 esac
11607 else
11608 lt_cv_deplibs_check_method=pass_all
11609 fi
11610 ;;
11611
11612gnu*)
11613 lt_cv_deplibs_check_method=pass_all
11614 ;;
11615
cristy0c60a692010-11-04 01:09:47 +000011616haiku*)
11617 lt_cv_deplibs_check_method=pass_all
11618 ;;
11619
cristy73bd4a52010-10-05 11:24:23 +000011620hpux10.20* | hpux11*)
11621 lt_cv_file_magic_cmd=/usr/bin/file
11622 case $host_cpu in
11623 ia64*)
11624 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11625 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11626 ;;
11627 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011628 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 +000011629 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11630 ;;
11631 *)
cristy0c60a692010-11-04 01:09:47 +000011632 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 +000011633 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11634 ;;
11635 esac
11636 ;;
11637
11638interix[3-9]*)
11639 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11641 ;;
11642
11643irix5* | irix6* | nonstopux*)
11644 case $LD in
11645 *-32|*"-32 ") libmagic=32-bit;;
11646 *-n32|*"-n32 ") libmagic=N32;;
11647 *-64|*"-64 ") libmagic=64-bit;;
11648 *) libmagic=never-match;;
11649 esac
11650 lt_cv_deplibs_check_method=pass_all
11651 ;;
11652
cristy99bd5232011-12-07 14:38:20 +000011653# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011654linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011655 lt_cv_deplibs_check_method=pass_all
11656 ;;
11657
11658netbsd*)
11659 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11661 else
11662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11663 fi
11664 ;;
11665
11666newos6*)
11667 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11668 lt_cv_file_magic_cmd=/usr/bin/file
11669 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11670 ;;
11671
11672*nto* | *qnx*)
11673 lt_cv_deplibs_check_method=pass_all
11674 ;;
11675
11676openbsd*)
11677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11679 else
11680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11681 fi
11682 ;;
11683
11684osf3* | osf4* | osf5*)
11685 lt_cv_deplibs_check_method=pass_all
11686 ;;
11687
11688rdos*)
11689 lt_cv_deplibs_check_method=pass_all
11690 ;;
11691
11692solaris*)
11693 lt_cv_deplibs_check_method=pass_all
11694 ;;
11695
11696sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11697 lt_cv_deplibs_check_method=pass_all
11698 ;;
11699
11700sysv4 | sysv4.3*)
11701 case $host_vendor in
11702 motorola)
11703 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]'
11704 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11705 ;;
11706 ncr)
11707 lt_cv_deplibs_check_method=pass_all
11708 ;;
11709 sequent)
11710 lt_cv_file_magic_cmd='/bin/file'
11711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11712 ;;
11713 sni)
11714 lt_cv_file_magic_cmd='/bin/file'
11715 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11716 lt_cv_file_magic_test_file=/lib/libc.so
11717 ;;
11718 siemens)
11719 lt_cv_deplibs_check_method=pass_all
11720 ;;
11721 pc)
11722 lt_cv_deplibs_check_method=pass_all
11723 ;;
11724 esac
11725 ;;
11726
11727tpf*)
11728 lt_cv_deplibs_check_method=pass_all
11729 ;;
11730esac
11731
11732fi
11733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11734$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011735
11736file_magic_glob=
11737want_nocaseglob=no
11738if test "$build" = "$host"; then
11739 case $host_os in
11740 mingw* | pw32*)
11741 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11742 want_nocaseglob=yes
11743 else
11744 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11745 fi
11746 ;;
11747 esac
11748fi
11749
cristy73bd4a52010-10-05 11:24:23 +000011750file_magic_cmd=$lt_cv_file_magic_cmd
11751deplibs_check_method=$lt_cv_deplibs_check_method
11752test -z "$deplibs_check_method" && deplibs_check_method=unknown
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
cristyda16f162011-02-19 23:52:17 +000011765
11766
11767
11768
11769
11770
11771
11772
11773
11774
cristy73bd4a52010-10-05 11:24:23 +000011775if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011776 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11777set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011780if ${ac_cv_prog_DLLTOOL+:} false; then :
11781 $as_echo_n "(cached) " >&6
11782else
11783 if test -n "$DLLTOOL"; then
11784 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11785else
11786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787for as_dir in $PATH
11788do
11789 IFS=$as_save_IFS
11790 test -z "$as_dir" && as_dir=.
11791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011793 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11795 break 2
11796 fi
11797done
11798 done
11799IFS=$as_save_IFS
11800
11801fi
11802fi
11803DLLTOOL=$ac_cv_prog_DLLTOOL
11804if test -n "$DLLTOOL"; then
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11806$as_echo "$DLLTOOL" >&6; }
11807else
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809$as_echo "no" >&6; }
11810fi
11811
11812
11813fi
11814if test -z "$ac_cv_prog_DLLTOOL"; then
11815 ac_ct_DLLTOOL=$DLLTOOL
11816 # Extract the first word of "dlltool", so it can be a program name with args.
11817set dummy dlltool; ac_word=$2
11818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11819$as_echo_n "checking for $ac_word... " >&6; }
11820if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11821 $as_echo_n "(cached) " >&6
11822else
11823 if test -n "$ac_ct_DLLTOOL"; then
11824 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11825else
11826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827for as_dir in $PATH
11828do
11829 IFS=$as_save_IFS
11830 test -z "$as_dir" && as_dir=.
11831 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011833 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11835 break 2
11836 fi
11837done
11838 done
11839IFS=$as_save_IFS
11840
11841fi
11842fi
11843ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11844if test -n "$ac_ct_DLLTOOL"; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11846$as_echo "$ac_ct_DLLTOOL" >&6; }
11847else
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849$as_echo "no" >&6; }
11850fi
11851
11852 if test "x$ac_ct_DLLTOOL" = x; then
11853 DLLTOOL="false"
11854 else
11855 case $cross_compiling:$ac_tool_warned in
11856yes:)
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11859ac_tool_warned=yes ;;
11860esac
11861 DLLTOOL=$ac_ct_DLLTOOL
11862 fi
11863else
11864 DLLTOOL="$ac_cv_prog_DLLTOOL"
11865fi
11866
11867test -z "$DLLTOOL" && DLLTOOL=dlltool
11868
11869
11870
11871
11872
11873
11874
11875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11876$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11877if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11878 $as_echo_n "(cached) " >&6
11879else
11880 lt_cv_sharedlib_from_linklib_cmd='unknown'
11881
11882case $host_os in
11883cygwin* | mingw* | pw32* | cegcc*)
11884 # two different shell functions defined in ltmain.sh
11885 # decide which to use based on capabilities of $DLLTOOL
11886 case `$DLLTOOL --help 2>&1` in
11887 *--identify-strict*)
11888 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11889 ;;
11890 *)
11891 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11892 ;;
11893 esac
11894 ;;
11895*)
11896 # fallback: assume linklib IS sharedlib
11897 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11898 ;;
11899esac
11900
11901fi
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11903$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11904sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11905test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11906
11907
11908
11909
11910
11911
11912
11913if test -n "$ac_tool_prefix"; then
11914 for ac_prog in ar
11915 do
11916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11917set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11919$as_echo_n "checking for $ac_word... " >&6; }
11920if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011921 $as_echo_n "(cached) " >&6
11922else
11923 if test -n "$AR"; then
11924 ac_cv_prog_AR="$AR" # Let the user override the test.
11925else
11926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11927for as_dir in $PATH
11928do
11929 IFS=$as_save_IFS
11930 test -z "$as_dir" && as_dir=.
11931 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011933 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11935 break 2
11936 fi
11937done
11938 done
11939IFS=$as_save_IFS
11940
11941fi
11942fi
11943AR=$ac_cv_prog_AR
11944if test -n "$AR"; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11946$as_echo "$AR" >&6; }
11947else
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949$as_echo "no" >&6; }
11950fi
11951
11952
cristyda16f162011-02-19 23:52:17 +000011953 test -n "$AR" && break
11954 done
cristy73bd4a52010-10-05 11:24:23 +000011955fi
cristyda16f162011-02-19 23:52:17 +000011956if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011957 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011958 for ac_prog in ar
11959do
11960 # Extract the first word of "$ac_prog", so it can be a program name with args.
11961set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11963$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011964if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011965 $as_echo_n "(cached) " >&6
11966else
11967 if test -n "$ac_ct_AR"; then
11968 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11969else
11970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11971for as_dir in $PATH
11972do
11973 IFS=$as_save_IFS
11974 test -z "$as_dir" && as_dir=.
11975 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011977 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11979 break 2
11980 fi
11981done
11982 done
11983IFS=$as_save_IFS
11984
11985fi
11986fi
11987ac_ct_AR=$ac_cv_prog_ac_ct_AR
11988if test -n "$ac_ct_AR"; then
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11990$as_echo "$ac_ct_AR" >&6; }
11991else
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993$as_echo "no" >&6; }
11994fi
11995
cristyda16f162011-02-19 23:52:17 +000011996
11997 test -n "$ac_ct_AR" && break
11998done
11999
cristy73bd4a52010-10-05 11:24:23 +000012000 if test "x$ac_ct_AR" = x; then
12001 AR="false"
12002 else
12003 case $cross_compiling:$ac_tool_warned in
12004yes:)
12005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12007ac_tool_warned=yes ;;
12008esac
12009 AR=$ac_ct_AR
12010 fi
cristy73bd4a52010-10-05 11:24:23 +000012011fi
12012
cristyda16f162011-02-19 23:52:17 +000012013: ${AR=ar}
12014: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
cristyda16f162011-02-19 23:52:17 +000012026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12027$as_echo_n "checking for archiver @FILE support... " >&6; }
12028if ${lt_cv_ar_at_file+:} false; then :
12029 $as_echo_n "(cached) " >&6
12030else
12031 lt_cv_ar_at_file=no
12032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12033/* end confdefs.h. */
12034
12035int
12036main ()
12037{
12038
12039 ;
12040 return 0;
12041}
12042_ACEOF
12043if ac_fn_c_try_compile "$LINENO"; then :
12044 echo conftest.$ac_objext > conftest.lst
12045 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12047 (eval $lt_ar_try) 2>&5
12048 ac_status=$?
12049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12050 test $ac_status = 0; }
12051 if test "$ac_status" -eq 0; then
12052 # Ensure the archiver fails upon bogus file names.
12053 rm -f conftest.$ac_objext libconftest.a
12054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12055 (eval $lt_ar_try) 2>&5
12056 ac_status=$?
12057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12058 test $ac_status = 0; }
12059 if test "$ac_status" -ne 0; then
12060 lt_cv_ar_at_file=@
12061 fi
12062 fi
12063 rm -f conftest.* libconftest.a
12064
12065fi
12066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12067
12068fi
12069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12070$as_echo "$lt_cv_ar_at_file" >&6; }
12071
12072if test "x$lt_cv_ar_at_file" = xno; then
12073 archiver_list_spec=
12074else
12075 archiver_list_spec=$lt_cv_ar_at_file
12076fi
12077
12078
12079
12080
12081
12082
12083
cristy73bd4a52010-10-05 11:24:23 +000012084if test -n "$ac_tool_prefix"; then
12085 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12086set dummy ${ac_tool_prefix}strip; ac_word=$2
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012089if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012090 $as_echo_n "(cached) " >&6
12091else
12092 if test -n "$STRIP"; then
12093 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12094else
12095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096for as_dir in $PATH
12097do
12098 IFS=$as_save_IFS
12099 test -z "$as_dir" && as_dir=.
12100 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012102 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104 break 2
12105 fi
12106done
12107 done
12108IFS=$as_save_IFS
12109
12110fi
12111fi
12112STRIP=$ac_cv_prog_STRIP
12113if test -n "$STRIP"; then
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12115$as_echo "$STRIP" >&6; }
12116else
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118$as_echo "no" >&6; }
12119fi
12120
12121
12122fi
12123if test -z "$ac_cv_prog_STRIP"; then
12124 ac_ct_STRIP=$STRIP
12125 # Extract the first word of "strip", so it can be a program name with args.
12126set dummy strip; ac_word=$2
12127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12128$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012129if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012130 $as_echo_n "(cached) " >&6
12131else
12132 if test -n "$ac_ct_STRIP"; then
12133 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12134else
12135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136for as_dir in $PATH
12137do
12138 IFS=$as_save_IFS
12139 test -z "$as_dir" && as_dir=.
12140 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012142 ac_cv_prog_ac_ct_STRIP="strip"
12143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12144 break 2
12145 fi
12146done
12147 done
12148IFS=$as_save_IFS
12149
12150fi
12151fi
12152ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12153if test -n "$ac_ct_STRIP"; then
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12155$as_echo "$ac_ct_STRIP" >&6; }
12156else
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158$as_echo "no" >&6; }
12159fi
12160
12161 if test "x$ac_ct_STRIP" = x; then
12162 STRIP=":"
12163 else
12164 case $cross_compiling:$ac_tool_warned in
12165yes:)
12166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12168ac_tool_warned=yes ;;
12169esac
12170 STRIP=$ac_ct_STRIP
12171 fi
12172else
12173 STRIP="$ac_cv_prog_STRIP"
12174fi
12175
12176test -z "$STRIP" && STRIP=:
12177
12178
12179
12180
12181
12182
12183if test -n "$ac_tool_prefix"; then
12184 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12185set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12187$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012188if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012189 $as_echo_n "(cached) " >&6
12190else
12191 if test -n "$RANLIB"; then
12192 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12193else
12194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12195for as_dir in $PATH
12196do
12197 IFS=$as_save_IFS
12198 test -z "$as_dir" && as_dir=.
12199 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012201 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12203 break 2
12204 fi
12205done
12206 done
12207IFS=$as_save_IFS
12208
12209fi
12210fi
12211RANLIB=$ac_cv_prog_RANLIB
12212if test -n "$RANLIB"; then
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12214$as_echo "$RANLIB" >&6; }
12215else
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12217$as_echo "no" >&6; }
12218fi
12219
12220
12221fi
12222if test -z "$ac_cv_prog_RANLIB"; then
12223 ac_ct_RANLIB=$RANLIB
12224 # Extract the first word of "ranlib", so it can be a program name with args.
12225set dummy ranlib; ac_word=$2
12226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12227$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012228if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012229 $as_echo_n "(cached) " >&6
12230else
12231 if test -n "$ac_ct_RANLIB"; then
12232 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12233else
12234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12235for as_dir in $PATH
12236do
12237 IFS=$as_save_IFS
12238 test -z "$as_dir" && as_dir=.
12239 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012241 ac_cv_prog_ac_ct_RANLIB="ranlib"
12242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12243 break 2
12244 fi
12245done
12246 done
12247IFS=$as_save_IFS
12248
12249fi
12250fi
12251ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12252if test -n "$ac_ct_RANLIB"; then
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12254$as_echo "$ac_ct_RANLIB" >&6; }
12255else
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257$as_echo "no" >&6; }
12258fi
12259
12260 if test "x$ac_ct_RANLIB" = x; then
12261 RANLIB=":"
12262 else
12263 case $cross_compiling:$ac_tool_warned in
12264yes:)
12265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12267ac_tool_warned=yes ;;
12268esac
12269 RANLIB=$ac_ct_RANLIB
12270 fi
12271else
12272 RANLIB="$ac_cv_prog_RANLIB"
12273fi
12274
12275test -z "$RANLIB" && RANLIB=:
12276
12277
12278
12279
12280
12281
12282# Determine commands to create old-style static archives.
12283old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12284old_postinstall_cmds='chmod 644 $oldlib'
12285old_postuninstall_cmds=
12286
12287if test -n "$RANLIB"; then
12288 case $host_os in
12289 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012290 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012291 ;;
12292 *)
cristy99bd5232011-12-07 14:38:20 +000012293 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012294 ;;
12295 esac
cristy99bd5232011-12-07 14:38:20 +000012296 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012297fi
12298
cristy0c60a692010-11-04 01:09:47 +000012299case $host_os in
12300 darwin*)
12301 lock_old_archive_extraction=yes ;;
12302 *)
12303 lock_old_archive_extraction=no ;;
12304esac
12305
12306
12307
12308
12309
12310
cristy73bd4a52010-10-05 11:24:23 +000012311
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
12338
12339
12340
12341
12342
12343
12344# If no C compiler was specified, use CC.
12345LTCC=${LTCC-"$CC"}
12346
12347# If no C compiler flags were specified, use CFLAGS.
12348LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12349
12350# Allow CC to be a program name with arguments.
12351compiler=$CC
12352
12353
12354# Check for command to grab the raw symbol name followed by C symbol from nm.
12355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12356$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012357if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012358 $as_echo_n "(cached) " >&6
12359else
12360
12361# These are sane defaults that work on at least a few old systems.
12362# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12363
12364# Character class describing NM global symbol codes.
12365symcode='[BCDEGRST]'
12366
12367# Regexp to match symbols that can be accessed directly from C.
12368sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12369
12370# Define system-specific variables.
12371case $host_os in
12372aix*)
12373 symcode='[BCDT]'
12374 ;;
12375cygwin* | mingw* | pw32* | cegcc*)
12376 symcode='[ABCDGISTW]'
12377 ;;
12378hpux*)
12379 if test "$host_cpu" = ia64; then
12380 symcode='[ABCDEGRST]'
12381 fi
12382 ;;
12383irix* | nonstopux*)
12384 symcode='[BCDEGRST]'
12385 ;;
12386osf*)
12387 symcode='[BCDEGQRST]'
12388 ;;
12389solaris*)
12390 symcode='[BDRT]'
12391 ;;
12392sco3.2v5*)
12393 symcode='[DT]'
12394 ;;
12395sysv4.2uw2*)
12396 symcode='[DT]'
12397 ;;
12398sysv5* | sco5v6* | unixware* | OpenUNIX*)
12399 symcode='[ABDT]'
12400 ;;
12401sysv4)
12402 symcode='[DFNSTU]'
12403 ;;
12404esac
12405
12406# If we're using GNU nm, then use its standard symbol codes.
12407case `$NM -V 2>&1` in
12408*GNU* | *'with BFD'*)
12409 symcode='[ABCDGIRSTW]' ;;
12410esac
12411
12412# Transform an extracted symbol line into a proper C declaration.
12413# Some systems (esp. on ia64) link data and code symbols differently,
12414# so use this general approach.
12415lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12416
12417# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012418lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12419lt_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 +000012420
12421# Handle CRLF in mingw tool chain
12422opt_cr=
12423case $build_os in
12424mingw*)
12425 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12426 ;;
12427esac
12428
12429# Try without a prefix underscore, then with it.
12430for ac_symprfx in "" "_"; do
12431
12432 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12433 symxfrm="\\1 $ac_symprfx\\2 \\2"
12434
12435 # Write the raw and C identifiers.
12436 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12437 # Fake it for dumpbin and say T for any non-static function
12438 # and D for any global variable.
12439 # Also find C++ and __fastcall symbols from MSVC++,
12440 # which start with @ or ?.
12441 lt_cv_sys_global_symbol_pipe="$AWK '"\
12442" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012443" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012444" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12445" \$ 0!~/External *\|/{next};"\
12446" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12447" {if(hide[section]) next};"\
12448" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12449" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12450" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12451" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12452" ' prfx=^$ac_symprfx"
12453 else
12454 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12455 fi
cristyda16f162011-02-19 23:52:17 +000012456 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012457
12458 # Check to see that the pipe works correctly.
12459 pipe_works=no
12460
12461 rm -f conftest*
12462 cat > conftest.$ac_ext <<_LT_EOF
12463#ifdef __cplusplus
12464extern "C" {
12465#endif
12466char nm_test_var;
12467void nm_test_func(void);
12468void nm_test_func(void){}
12469#ifdef __cplusplus
12470}
12471#endif
12472int main(){nm_test_var='a';nm_test_func();return(0);}
12473_LT_EOF
12474
12475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12476 (eval $ac_compile) 2>&5
12477 ac_status=$?
12478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12479 test $ac_status = 0; }; then
12480 # Now try to grab the symbols.
12481 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12483 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012484 ac_status=$?
12485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12486 test $ac_status = 0; } && test -s "$nlist"; then
12487 # Try sorting and uniquifying the output.
12488 if sort "$nlist" | uniq > "$nlist"T; then
12489 mv -f "$nlist"T "$nlist"
12490 else
12491 rm -f "$nlist"T
12492 fi
12493
12494 # Make sure that we snagged all the symbols we need.
12495 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12496 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12497 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012498/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12499#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12500/* DATA imports from DLLs on WIN32 con't be const, because runtime
12501 relocations are performed -- see ld's documentation on pseudo-relocs. */
12502# define LT_DLSYM_CONST
12503#elif defined(__osf__)
12504/* This system does not cope well with relocations in const data. */
12505# define LT_DLSYM_CONST
12506#else
12507# define LT_DLSYM_CONST const
12508#endif
12509
cristy73bd4a52010-10-05 11:24:23 +000012510#ifdef __cplusplus
12511extern "C" {
12512#endif
12513
12514_LT_EOF
12515 # Now generate the symbol file.
12516 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12517
12518 cat <<_LT_EOF >> conftest.$ac_ext
12519
12520/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012521LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012522 const char *name;
12523 void *address;
12524}
12525lt__PROGRAM__LTX_preloaded_symbols[] =
12526{
12527 { "@PROGRAM@", (void *) 0 },
12528_LT_EOF
12529 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12530 cat <<\_LT_EOF >> conftest.$ac_ext
12531 {0, (void *) 0}
12532};
12533
12534/* This works around a problem in FreeBSD linker */
12535#ifdef FREEBSD_WORKAROUND
12536static const void *lt_preloaded_setup() {
12537 return lt__PROGRAM__LTX_preloaded_symbols;
12538}
12539#endif
12540
12541#ifdef __cplusplus
12542}
12543#endif
12544_LT_EOF
12545 # Now try linking the two files.
12546 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012547 lt_globsym_save_LIBS=$LIBS
12548 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012549 LIBS="conftstm.$ac_objext"
12550 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12552 (eval $ac_link) 2>&5
12553 ac_status=$?
12554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12555 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12556 pipe_works=yes
12557 fi
cristyda16f162011-02-19 23:52:17 +000012558 LIBS=$lt_globsym_save_LIBS
12559 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012560 else
12561 echo "cannot find nm_test_func in $nlist" >&5
12562 fi
12563 else
12564 echo "cannot find nm_test_var in $nlist" >&5
12565 fi
12566 else
12567 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12568 fi
12569 else
12570 echo "$progname: failed program was:" >&5
12571 cat conftest.$ac_ext >&5
12572 fi
12573 rm -rf conftest* conftst*
12574
12575 # Do not use the global_symbol_pipe unless it works.
12576 if test "$pipe_works" = yes; then
12577 break
12578 else
12579 lt_cv_sys_global_symbol_pipe=
12580 fi
12581done
12582
12583fi
12584
12585if test -z "$lt_cv_sys_global_symbol_pipe"; then
12586 lt_cv_sys_global_symbol_to_cdecl=
12587fi
12588if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12590$as_echo "failed" >&6; }
12591else
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12593$as_echo "ok" >&6; }
12594fi
12595
cristyda16f162011-02-19 23:52:17 +000012596# Response file support.
12597if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12598 nm_file_list_spec='@'
12599elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12600 nm_file_list_spec='@'
12601fi
cristy73bd4a52010-10-05 11:24:23 +000012602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
cristyda16f162011-02-19 23:52:17 +000012623
12624
12625
12626
12627
12628
12629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12630$as_echo_n "checking for sysroot... " >&6; }
12631
12632# Check whether --with-sysroot was given.
12633if test "${with_sysroot+set}" = set; then :
12634 withval=$with_sysroot;
12635else
12636 with_sysroot=no
12637fi
12638
12639
12640lt_sysroot=
12641case ${with_sysroot} in #(
12642 yes)
12643 if test "$GCC" = yes; then
12644 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12645 fi
12646 ;; #(
12647 /*)
12648 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12649 ;; #(
12650 no|'')
12651 ;; #(
12652 *)
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12654$as_echo "${with_sysroot}" >&6; }
12655 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12656 ;;
12657esac
12658
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12660$as_echo "${lt_sysroot:-no}" >&6; }
12661
12662
12663
12664
12665
cristy73bd4a52010-10-05 11:24:23 +000012666# Check whether --enable-libtool-lock was given.
12667if test "${enable_libtool_lock+set}" = set; then :
12668 enableval=$enable_libtool_lock;
12669fi
12670
12671test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12672
12673# Some flags need to be propagated to the compiler or linker for good
12674# libtool support.
12675case $host in
12676ia64-*-hpux*)
12677 # Find out which ABI we are using.
12678 echo 'int i;' > conftest.$ac_ext
12679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12680 (eval $ac_compile) 2>&5
12681 ac_status=$?
12682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12683 test $ac_status = 0; }; then
12684 case `/usr/bin/file conftest.$ac_objext` in
12685 *ELF-32*)
12686 HPUX_IA64_MODE="32"
12687 ;;
12688 *ELF-64*)
12689 HPUX_IA64_MODE="64"
12690 ;;
12691 esac
12692 fi
12693 rm -rf conftest*
12694 ;;
12695*-*-irix6*)
12696 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012697 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12699 (eval $ac_compile) 2>&5
12700 ac_status=$?
12701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12702 test $ac_status = 0; }; then
12703 if test "$lt_cv_prog_gnu_ld" = yes; then
12704 case `/usr/bin/file conftest.$ac_objext` in
12705 *32-bit*)
12706 LD="${LD-ld} -melf32bsmip"
12707 ;;
12708 *N32*)
12709 LD="${LD-ld} -melf32bmipn32"
12710 ;;
12711 *64-bit*)
12712 LD="${LD-ld} -melf64bmip"
12713 ;;
12714 esac
12715 else
12716 case `/usr/bin/file conftest.$ac_objext` in
12717 *32-bit*)
12718 LD="${LD-ld} -32"
12719 ;;
12720 *N32*)
12721 LD="${LD-ld} -n32"
12722 ;;
12723 *64-bit*)
12724 LD="${LD-ld} -64"
12725 ;;
12726 esac
12727 fi
12728 fi
12729 rm -rf conftest*
12730 ;;
12731
cristyd95b7a52013-10-23 13:12:53 +000012732x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000012733s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12734 # Find out which ABI we are using.
12735 echo 'int i;' > conftest.$ac_ext
12736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12737 (eval $ac_compile) 2>&5
12738 ac_status=$?
12739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12740 test $ac_status = 0; }; then
12741 case `/usr/bin/file conftest.o` in
12742 *32-bit*)
12743 case $host in
12744 x86_64-*kfreebsd*-gnu)
12745 LD="${LD-ld} -m elf_i386_fbsd"
12746 ;;
12747 x86_64-*linux*)
12748 LD="${LD-ld} -m elf_i386"
12749 ;;
cristya5bda012013-11-03 18:05:38 +000012750 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000012751 LD="${LD-ld} -m elf32lppclinux"
12752 ;;
cristya5bda012013-11-03 18:05:38 +000012753 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012754 LD="${LD-ld} -m elf32ppclinux"
12755 ;;
12756 s390x-*linux*)
12757 LD="${LD-ld} -m elf_s390"
12758 ;;
12759 sparc64-*linux*)
12760 LD="${LD-ld} -m elf32_sparc"
12761 ;;
12762 esac
12763 ;;
12764 *64-bit*)
12765 case $host in
12766 x86_64-*kfreebsd*-gnu)
12767 LD="${LD-ld} -m elf_x86_64_fbsd"
12768 ;;
12769 x86_64-*linux*)
12770 LD="${LD-ld} -m elf_x86_64"
12771 ;;
cristyd95b7a52013-10-23 13:12:53 +000012772 powerpcle-*linux*)
12773 LD="${LD-ld} -m elf64lppc"
12774 ;;
12775 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000012776 LD="${LD-ld} -m elf64ppc"
12777 ;;
12778 s390*-*linux*|s390*-*tpf*)
12779 LD="${LD-ld} -m elf64_s390"
12780 ;;
12781 sparc*-*linux*)
12782 LD="${LD-ld} -m elf64_sparc"
12783 ;;
12784 esac
12785 ;;
12786 esac
12787 fi
12788 rm -rf conftest*
12789 ;;
12790
12791*-*-sco3.2v5*)
12792 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12793 SAVE_CFLAGS="$CFLAGS"
12794 CFLAGS="$CFLAGS -belf"
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12796$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012797if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012798 $as_echo_n "(cached) " >&6
12799else
12800 ac_ext=c
12801ac_cpp='$CPP $CPPFLAGS'
12802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12804ac_compiler_gnu=$ac_cv_c_compiler_gnu
12805
12806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12807/* end confdefs.h. */
12808
12809int
12810main ()
12811{
12812
12813 ;
12814 return 0;
12815}
12816_ACEOF
12817if ac_fn_c_try_link "$LINENO"; then :
12818 lt_cv_cc_needs_belf=yes
12819else
12820 lt_cv_cc_needs_belf=no
12821fi
12822rm -f core conftest.err conftest.$ac_objext \
12823 conftest$ac_exeext conftest.$ac_ext
12824 ac_ext=c
12825ac_cpp='$CPP $CPPFLAGS'
12826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12828ac_compiler_gnu=$ac_cv_c_compiler_gnu
12829
12830fi
12831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12832$as_echo "$lt_cv_cc_needs_belf" >&6; }
12833 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12834 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12835 CFLAGS="$SAVE_CFLAGS"
12836 fi
12837 ;;
cristy99bd5232011-12-07 14:38:20 +000012838*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012839 # Find out which ABI we are using.
12840 echo 'int i;' > conftest.$ac_ext
12841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12842 (eval $ac_compile) 2>&5
12843 ac_status=$?
12844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12845 test $ac_status = 0; }; then
12846 case `/usr/bin/file conftest.o` in
12847 *64-bit*)
12848 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012849 yes*)
12850 case $host in
12851 i?86-*-solaris*)
12852 LD="${LD-ld} -m elf_x86_64"
12853 ;;
12854 sparc*-*-solaris*)
12855 LD="${LD-ld} -m elf64_sparc"
12856 ;;
12857 esac
12858 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12859 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12860 LD="${LD-ld}_sol2"
12861 fi
12862 ;;
cristy73bd4a52010-10-05 11:24:23 +000012863 *)
12864 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12865 LD="${LD-ld} -64"
12866 fi
12867 ;;
12868 esac
12869 ;;
12870 esac
12871 fi
12872 rm -rf conftest*
12873 ;;
12874esac
12875
12876need_locks="$enable_libtool_lock"
12877
cristyda16f162011-02-19 23:52:17 +000012878if test -n "$ac_tool_prefix"; then
12879 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12880set dummy ${ac_tool_prefix}mt; ac_word=$2
12881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12882$as_echo_n "checking for $ac_word... " >&6; }
12883if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12884 $as_echo_n "(cached) " >&6
12885else
12886 if test -n "$MANIFEST_TOOL"; then
12887 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12888else
12889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12890for as_dir in $PATH
12891do
12892 IFS=$as_save_IFS
12893 test -z "$as_dir" && as_dir=.
12894 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012896 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12898 break 2
12899 fi
12900done
12901 done
12902IFS=$as_save_IFS
12903
12904fi
12905fi
12906MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12907if test -n "$MANIFEST_TOOL"; then
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12909$as_echo "$MANIFEST_TOOL" >&6; }
12910else
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12912$as_echo "no" >&6; }
12913fi
12914
12915
12916fi
12917if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12918 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12919 # Extract the first word of "mt", so it can be a program name with args.
12920set dummy mt; ac_word=$2
12921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12922$as_echo_n "checking for $ac_word... " >&6; }
12923if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12924 $as_echo_n "(cached) " >&6
12925else
12926 if test -n "$ac_ct_MANIFEST_TOOL"; then
12927 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12928else
12929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12930for as_dir in $PATH
12931do
12932 IFS=$as_save_IFS
12933 test -z "$as_dir" && as_dir=.
12934 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012936 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12938 break 2
12939 fi
12940done
12941 done
12942IFS=$as_save_IFS
12943
12944fi
12945fi
12946ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12947if test -n "$ac_ct_MANIFEST_TOOL"; then
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12949$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12950else
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12952$as_echo "no" >&6; }
12953fi
12954
12955 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12956 MANIFEST_TOOL=":"
12957 else
12958 case $cross_compiling:$ac_tool_warned in
12959yes:)
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12962ac_tool_warned=yes ;;
12963esac
12964 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12965 fi
12966else
12967 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12968fi
12969
12970test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12972$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12973if ${lt_cv_path_mainfest_tool+:} false; then :
12974 $as_echo_n "(cached) " >&6
12975else
12976 lt_cv_path_mainfest_tool=no
12977 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12978 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12979 cat conftest.err >&5
12980 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12981 lt_cv_path_mainfest_tool=yes
12982 fi
12983 rm -f conftest*
12984fi
12985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12986$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12987if test "x$lt_cv_path_mainfest_tool" != xyes; then
12988 MANIFEST_TOOL=:
12989fi
12990
12991
12992
12993
12994
cristy73bd4a52010-10-05 11:24:23 +000012995
12996 case $host_os in
12997 rhapsody* | darwin*)
12998 if test -n "$ac_tool_prefix"; then
12999 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13000set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13002$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013003if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013004 $as_echo_n "(cached) " >&6
13005else
13006 if test -n "$DSYMUTIL"; then
13007 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13008else
13009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010for as_dir in $PATH
13011do
13012 IFS=$as_save_IFS
13013 test -z "$as_dir" && as_dir=.
13014 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013016 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13018 break 2
13019 fi
13020done
13021 done
13022IFS=$as_save_IFS
13023
13024fi
13025fi
13026DSYMUTIL=$ac_cv_prog_DSYMUTIL
13027if test -n "$DSYMUTIL"; then
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13029$as_echo "$DSYMUTIL" >&6; }
13030else
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13032$as_echo "no" >&6; }
13033fi
13034
13035
13036fi
13037if test -z "$ac_cv_prog_DSYMUTIL"; then
13038 ac_ct_DSYMUTIL=$DSYMUTIL
13039 # Extract the first word of "dsymutil", so it can be a program name with args.
13040set dummy dsymutil; ac_word=$2
13041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13042$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013043if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013044 $as_echo_n "(cached) " >&6
13045else
13046 if test -n "$ac_ct_DSYMUTIL"; then
13047 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13048else
13049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13050for as_dir in $PATH
13051do
13052 IFS=$as_save_IFS
13053 test -z "$as_dir" && as_dir=.
13054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013056 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13058 break 2
13059 fi
13060done
13061 done
13062IFS=$as_save_IFS
13063
13064fi
13065fi
13066ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13067if test -n "$ac_ct_DSYMUTIL"; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13069$as_echo "$ac_ct_DSYMUTIL" >&6; }
13070else
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072$as_echo "no" >&6; }
13073fi
13074
13075 if test "x$ac_ct_DSYMUTIL" = x; then
13076 DSYMUTIL=":"
13077 else
13078 case $cross_compiling:$ac_tool_warned in
13079yes:)
13080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13082ac_tool_warned=yes ;;
13083esac
13084 DSYMUTIL=$ac_ct_DSYMUTIL
13085 fi
13086else
13087 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13088fi
13089
13090 if test -n "$ac_tool_prefix"; then
13091 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13092set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13094$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013095if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013096 $as_echo_n "(cached) " >&6
13097else
13098 if test -n "$NMEDIT"; then
13099 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13100else
13101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13102for as_dir in $PATH
13103do
13104 IFS=$as_save_IFS
13105 test -z "$as_dir" && as_dir=.
13106 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013108 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13110 break 2
13111 fi
13112done
13113 done
13114IFS=$as_save_IFS
13115
13116fi
13117fi
13118NMEDIT=$ac_cv_prog_NMEDIT
13119if test -n "$NMEDIT"; then
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13121$as_echo "$NMEDIT" >&6; }
13122else
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13124$as_echo "no" >&6; }
13125fi
13126
13127
13128fi
13129if test -z "$ac_cv_prog_NMEDIT"; then
13130 ac_ct_NMEDIT=$NMEDIT
13131 # Extract the first word of "nmedit", so it can be a program name with args.
13132set dummy nmedit; ac_word=$2
13133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13134$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013135if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013136 $as_echo_n "(cached) " >&6
13137else
13138 if test -n "$ac_ct_NMEDIT"; then
13139 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13140else
13141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13142for as_dir in $PATH
13143do
13144 IFS=$as_save_IFS
13145 test -z "$as_dir" && as_dir=.
13146 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013148 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13150 break 2
13151 fi
13152done
13153 done
13154IFS=$as_save_IFS
13155
13156fi
13157fi
13158ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13159if test -n "$ac_ct_NMEDIT"; then
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13161$as_echo "$ac_ct_NMEDIT" >&6; }
13162else
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164$as_echo "no" >&6; }
13165fi
13166
13167 if test "x$ac_ct_NMEDIT" = x; then
13168 NMEDIT=":"
13169 else
13170 case $cross_compiling:$ac_tool_warned in
13171yes:)
13172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13174ac_tool_warned=yes ;;
13175esac
13176 NMEDIT=$ac_ct_NMEDIT
13177 fi
13178else
13179 NMEDIT="$ac_cv_prog_NMEDIT"
13180fi
13181
13182 if test -n "$ac_tool_prefix"; then
13183 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13184set dummy ${ac_tool_prefix}lipo; ac_word=$2
13185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13186$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013187if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013188 $as_echo_n "(cached) " >&6
13189else
13190 if test -n "$LIPO"; then
13191 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13192else
13193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194for as_dir in $PATH
13195do
13196 IFS=$as_save_IFS
13197 test -z "$as_dir" && as_dir=.
13198 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013200 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13202 break 2
13203 fi
13204done
13205 done
13206IFS=$as_save_IFS
13207
13208fi
13209fi
13210LIPO=$ac_cv_prog_LIPO
13211if test -n "$LIPO"; then
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13213$as_echo "$LIPO" >&6; }
13214else
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216$as_echo "no" >&6; }
13217fi
13218
13219
13220fi
13221if test -z "$ac_cv_prog_LIPO"; then
13222 ac_ct_LIPO=$LIPO
13223 # Extract the first word of "lipo", so it can be a program name with args.
13224set dummy lipo; ac_word=$2
13225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13226$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013227if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013228 $as_echo_n "(cached) " >&6
13229else
13230 if test -n "$ac_ct_LIPO"; then
13231 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13232else
13233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13234for as_dir in $PATH
13235do
13236 IFS=$as_save_IFS
13237 test -z "$as_dir" && as_dir=.
13238 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013240 ac_cv_prog_ac_ct_LIPO="lipo"
13241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13242 break 2
13243 fi
13244done
13245 done
13246IFS=$as_save_IFS
13247
13248fi
13249fi
13250ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13251if test -n "$ac_ct_LIPO"; then
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13253$as_echo "$ac_ct_LIPO" >&6; }
13254else
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256$as_echo "no" >&6; }
13257fi
13258
13259 if test "x$ac_ct_LIPO" = x; then
13260 LIPO=":"
13261 else
13262 case $cross_compiling:$ac_tool_warned in
13263yes:)
13264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13266ac_tool_warned=yes ;;
13267esac
13268 LIPO=$ac_ct_LIPO
13269 fi
13270else
13271 LIPO="$ac_cv_prog_LIPO"
13272fi
13273
13274 if test -n "$ac_tool_prefix"; then
13275 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13276set dummy ${ac_tool_prefix}otool; ac_word=$2
13277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13278$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013279if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013280 $as_echo_n "(cached) " >&6
13281else
13282 if test -n "$OTOOL"; then
13283 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13284else
13285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286for as_dir in $PATH
13287do
13288 IFS=$as_save_IFS
13289 test -z "$as_dir" && as_dir=.
13290 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013292 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13294 break 2
13295 fi
13296done
13297 done
13298IFS=$as_save_IFS
13299
13300fi
13301fi
13302OTOOL=$ac_cv_prog_OTOOL
13303if test -n "$OTOOL"; then
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13305$as_echo "$OTOOL" >&6; }
13306else
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308$as_echo "no" >&6; }
13309fi
13310
13311
13312fi
13313if test -z "$ac_cv_prog_OTOOL"; then
13314 ac_ct_OTOOL=$OTOOL
13315 # Extract the first word of "otool", so it can be a program name with args.
13316set dummy otool; ac_word=$2
13317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13318$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013319if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013320 $as_echo_n "(cached) " >&6
13321else
13322 if test -n "$ac_ct_OTOOL"; then
13323 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13324else
13325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13326for as_dir in $PATH
13327do
13328 IFS=$as_save_IFS
13329 test -z "$as_dir" && as_dir=.
13330 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013332 ac_cv_prog_ac_ct_OTOOL="otool"
13333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13334 break 2
13335 fi
13336done
13337 done
13338IFS=$as_save_IFS
13339
13340fi
13341fi
13342ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13343if test -n "$ac_ct_OTOOL"; then
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13345$as_echo "$ac_ct_OTOOL" >&6; }
13346else
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348$as_echo "no" >&6; }
13349fi
13350
13351 if test "x$ac_ct_OTOOL" = x; then
13352 OTOOL=":"
13353 else
13354 case $cross_compiling:$ac_tool_warned in
13355yes:)
13356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13358ac_tool_warned=yes ;;
13359esac
13360 OTOOL=$ac_ct_OTOOL
13361 fi
13362else
13363 OTOOL="$ac_cv_prog_OTOOL"
13364fi
13365
13366 if test -n "$ac_tool_prefix"; then
13367 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13368set dummy ${ac_tool_prefix}otool64; ac_word=$2
13369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13370$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013371if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013372 $as_echo_n "(cached) " >&6
13373else
13374 if test -n "$OTOOL64"; then
13375 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13376else
13377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13378for as_dir in $PATH
13379do
13380 IFS=$as_save_IFS
13381 test -z "$as_dir" && as_dir=.
13382 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013384 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13386 break 2
13387 fi
13388done
13389 done
13390IFS=$as_save_IFS
13391
13392fi
13393fi
13394OTOOL64=$ac_cv_prog_OTOOL64
13395if test -n "$OTOOL64"; then
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13397$as_echo "$OTOOL64" >&6; }
13398else
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400$as_echo "no" >&6; }
13401fi
13402
13403
13404fi
13405if test -z "$ac_cv_prog_OTOOL64"; then
13406 ac_ct_OTOOL64=$OTOOL64
13407 # Extract the first word of "otool64", so it can be a program name with args.
13408set dummy otool64; ac_word=$2
13409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13410$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013411if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013412 $as_echo_n "(cached) " >&6
13413else
13414 if test -n "$ac_ct_OTOOL64"; then
13415 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13416else
13417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13418for as_dir in $PATH
13419do
13420 IFS=$as_save_IFS
13421 test -z "$as_dir" && as_dir=.
13422 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013424 ac_cv_prog_ac_ct_OTOOL64="otool64"
13425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13426 break 2
13427 fi
13428done
13429 done
13430IFS=$as_save_IFS
13431
13432fi
13433fi
13434ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13435if test -n "$ac_ct_OTOOL64"; then
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13437$as_echo "$ac_ct_OTOOL64" >&6; }
13438else
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13440$as_echo "no" >&6; }
13441fi
13442
13443 if test "x$ac_ct_OTOOL64" = x; then
13444 OTOOL64=":"
13445 else
13446 case $cross_compiling:$ac_tool_warned in
13447yes:)
13448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13450ac_tool_warned=yes ;;
13451esac
13452 OTOOL64=$ac_ct_OTOOL64
13453 fi
13454else
13455 OTOOL64="$ac_cv_prog_OTOOL64"
13456fi
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13485$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013486if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013487 $as_echo_n "(cached) " >&6
13488else
13489 lt_cv_apple_cc_single_mod=no
13490 if test -z "${LT_MULTI_MODULE}"; then
13491 # By default we will add the -single_module flag. You can override
13492 # by either setting the environment variable LT_MULTI_MODULE
13493 # non-empty at configure time, or by adding -multi_module to the
13494 # link flags.
13495 rm -rf libconftest.dylib*
13496 echo "int foo(void){return 1;}" > conftest.c
13497 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13498-dynamiclib -Wl,-single_module conftest.c" >&5
13499 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13500 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13501 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013502 # If there is a non-empty error log, and "single_module"
13503 # appears in it, assume the flag caused a linker warning
13504 if test -s conftest.err && $GREP single_module conftest.err; then
13505 cat conftest.err >&5
13506 # Otherwise, if the output was created with a 0 exit code from
13507 # the compiler, it worked.
13508 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013509 lt_cv_apple_cc_single_mod=yes
13510 else
13511 cat conftest.err >&5
13512 fi
13513 rm -rf libconftest.dylib*
13514 rm -f conftest.*
13515 fi
13516fi
13517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13518$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013519
cristy73bd4a52010-10-05 11:24:23 +000013520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13521$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013522if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013523 $as_echo_n "(cached) " >&6
13524else
13525 lt_cv_ld_exported_symbols_list=no
13526 save_LDFLAGS=$LDFLAGS
13527 echo "_main" > conftest.sym
13528 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530/* end confdefs.h. */
13531
13532int
13533main ()
13534{
13535
13536 ;
13537 return 0;
13538}
13539_ACEOF
13540if ac_fn_c_try_link "$LINENO"; then :
13541 lt_cv_ld_exported_symbols_list=yes
13542else
13543 lt_cv_ld_exported_symbols_list=no
13544fi
13545rm -f core conftest.err conftest.$ac_objext \
13546 conftest$ac_exeext conftest.$ac_ext
13547 LDFLAGS="$save_LDFLAGS"
13548
13549fi
13550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13551$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013552
cristy0c60a692010-11-04 01:09:47 +000013553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13554$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013555if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013556 $as_echo_n "(cached) " >&6
13557else
13558 lt_cv_ld_force_load=no
13559 cat > conftest.c << _LT_EOF
13560int forced_loaded() { return 2;}
13561_LT_EOF
13562 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13563 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13564 echo "$AR cru libconftest.a conftest.o" >&5
13565 $AR cru libconftest.a conftest.o 2>&5
13566 echo "$RANLIB libconftest.a" >&5
13567 $RANLIB libconftest.a 2>&5
13568 cat > conftest.c << _LT_EOF
13569int main() { return 0;}
13570_LT_EOF
13571 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13572 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13573 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013574 if test -s conftest.err && $GREP force_load conftest.err; then
13575 cat conftest.err >&5
13576 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013577 lt_cv_ld_force_load=yes
13578 else
13579 cat conftest.err >&5
13580 fi
13581 rm -f conftest.err libconftest.a conftest conftest.c
13582 rm -rf conftest.dSYM
13583
13584fi
13585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13586$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013587 case $host_os in
13588 rhapsody* | darwin1.[012])
13589 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13590 darwin1.*)
13591 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13592 darwin*) # darwin 5.x on
13593 # if running on 10.5 or later, the deployment target defaults
13594 # to the OS version, if on x86, and 10.4, the deployment
13595 # target defaults to 10.4. Don't you love it?
13596 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13597 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13598 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13599 10.[012]*)
13600 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13601 10.*)
13602 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13603 esac
13604 ;;
13605 esac
13606 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13607 _lt_dar_single_mod='$single_module'
13608 fi
13609 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13610 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13611 else
13612 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13613 fi
cristy0c60a692010-11-04 01:09:47 +000013614 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013615 _lt_dsymutil='~$DSYMUTIL $lib || :'
13616 else
13617 _lt_dsymutil=
13618 fi
13619 ;;
13620 esac
13621
13622for ac_header in dlfcn.h
13623do :
13624 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13625"
cristyda16f162011-02-19 23:52:17 +000013626if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013627 cat >>confdefs.h <<_ACEOF
13628#define HAVE_DLFCN_H 1
13629_ACEOF
13630
13631fi
13632
13633done
13634
13635
13636
cristy73bd4a52010-10-05 11:24:23 +000013637
cristyda16f162011-02-19 23:52:17 +000013638func_stripname_cnf ()
13639{
13640 case ${2} in
13641 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13642 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13643 esac
13644} # func_stripname_cnf
13645
13646
13647
cristy73bd4a52010-10-05 11:24:23 +000013648
13649
13650# Set options
13651enable_win32_dll=yes
13652
13653case $host in
cristy0c60a692010-11-04 01:09:47 +000013654*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013655 if test -n "$ac_tool_prefix"; then
13656 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13657set dummy ${ac_tool_prefix}as; ac_word=$2
13658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13659$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013660if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013661 $as_echo_n "(cached) " >&6
13662else
13663 if test -n "$AS"; then
13664 ac_cv_prog_AS="$AS" # Let the user override the test.
13665else
13666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13667for as_dir in $PATH
13668do
13669 IFS=$as_save_IFS
13670 test -z "$as_dir" && as_dir=.
13671 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013673 ac_cv_prog_AS="${ac_tool_prefix}as"
13674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13675 break 2
13676 fi
13677done
13678 done
13679IFS=$as_save_IFS
13680
13681fi
13682fi
13683AS=$ac_cv_prog_AS
13684if test -n "$AS"; then
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13686$as_echo "$AS" >&6; }
13687else
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13689$as_echo "no" >&6; }
13690fi
13691
13692
13693fi
13694if test -z "$ac_cv_prog_AS"; then
13695 ac_ct_AS=$AS
13696 # Extract the first word of "as", so it can be a program name with args.
13697set dummy as; ac_word=$2
13698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13699$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013700if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013701 $as_echo_n "(cached) " >&6
13702else
13703 if test -n "$ac_ct_AS"; then
13704 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13705else
13706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13707for as_dir in $PATH
13708do
13709 IFS=$as_save_IFS
13710 test -z "$as_dir" && as_dir=.
13711 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013713 ac_cv_prog_ac_ct_AS="as"
13714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13715 break 2
13716 fi
13717done
13718 done
13719IFS=$as_save_IFS
13720
13721fi
13722fi
13723ac_ct_AS=$ac_cv_prog_ac_ct_AS
13724if test -n "$ac_ct_AS"; then
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13726$as_echo "$ac_ct_AS" >&6; }
13727else
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13729$as_echo "no" >&6; }
13730fi
13731
13732 if test "x$ac_ct_AS" = x; then
13733 AS="false"
13734 else
13735 case $cross_compiling:$ac_tool_warned in
13736yes:)
13737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13739ac_tool_warned=yes ;;
13740esac
13741 AS=$ac_ct_AS
13742 fi
13743else
13744 AS="$ac_cv_prog_AS"
13745fi
13746
13747 if test -n "$ac_tool_prefix"; then
13748 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13749set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13751$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013752if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013753 $as_echo_n "(cached) " >&6
13754else
13755 if test -n "$DLLTOOL"; then
13756 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13757else
13758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13759for as_dir in $PATH
13760do
13761 IFS=$as_save_IFS
13762 test -z "$as_dir" && as_dir=.
13763 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013765 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13767 break 2
13768 fi
13769done
13770 done
13771IFS=$as_save_IFS
13772
13773fi
13774fi
13775DLLTOOL=$ac_cv_prog_DLLTOOL
13776if test -n "$DLLTOOL"; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13778$as_echo "$DLLTOOL" >&6; }
13779else
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781$as_echo "no" >&6; }
13782fi
13783
13784
13785fi
13786if test -z "$ac_cv_prog_DLLTOOL"; then
13787 ac_ct_DLLTOOL=$DLLTOOL
13788 # Extract the first word of "dlltool", so it can be a program name with args.
13789set dummy dlltool; ac_word=$2
13790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13791$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013792if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013793 $as_echo_n "(cached) " >&6
13794else
13795 if test -n "$ac_ct_DLLTOOL"; then
13796 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13797else
13798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13799for as_dir in $PATH
13800do
13801 IFS=$as_save_IFS
13802 test -z "$as_dir" && as_dir=.
13803 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013805 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13807 break 2
13808 fi
13809done
13810 done
13811IFS=$as_save_IFS
13812
13813fi
13814fi
13815ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13816if test -n "$ac_ct_DLLTOOL"; then
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13818$as_echo "$ac_ct_DLLTOOL" >&6; }
13819else
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13821$as_echo "no" >&6; }
13822fi
13823
13824 if test "x$ac_ct_DLLTOOL" = x; then
13825 DLLTOOL="false"
13826 else
13827 case $cross_compiling:$ac_tool_warned in
13828yes:)
13829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13831ac_tool_warned=yes ;;
13832esac
13833 DLLTOOL=$ac_ct_DLLTOOL
13834 fi
13835else
13836 DLLTOOL="$ac_cv_prog_DLLTOOL"
13837fi
13838
13839 if test -n "$ac_tool_prefix"; then
13840 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13841set dummy ${ac_tool_prefix}objdump; ac_word=$2
13842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13843$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013844if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013845 $as_echo_n "(cached) " >&6
13846else
13847 if test -n "$OBJDUMP"; then
13848 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13849else
13850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13851for as_dir in $PATH
13852do
13853 IFS=$as_save_IFS
13854 test -z "$as_dir" && as_dir=.
13855 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013857 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13859 break 2
13860 fi
13861done
13862 done
13863IFS=$as_save_IFS
13864
13865fi
13866fi
13867OBJDUMP=$ac_cv_prog_OBJDUMP
13868if test -n "$OBJDUMP"; then
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13870$as_echo "$OBJDUMP" >&6; }
13871else
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13873$as_echo "no" >&6; }
13874fi
13875
13876
13877fi
13878if test -z "$ac_cv_prog_OBJDUMP"; then
13879 ac_ct_OBJDUMP=$OBJDUMP
13880 # Extract the first word of "objdump", so it can be a program name with args.
13881set dummy objdump; ac_word=$2
13882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13883$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013884if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013885 $as_echo_n "(cached) " >&6
13886else
13887 if test -n "$ac_ct_OBJDUMP"; then
13888 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13889else
13890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13891for as_dir in $PATH
13892do
13893 IFS=$as_save_IFS
13894 test -z "$as_dir" && as_dir=.
13895 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013897 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13899 break 2
13900 fi
13901done
13902 done
13903IFS=$as_save_IFS
13904
13905fi
13906fi
13907ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13908if test -n "$ac_ct_OBJDUMP"; then
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13910$as_echo "$ac_ct_OBJDUMP" >&6; }
13911else
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13913$as_echo "no" >&6; }
13914fi
13915
13916 if test "x$ac_ct_OBJDUMP" = x; then
13917 OBJDUMP="false"
13918 else
13919 case $cross_compiling:$ac_tool_warned in
13920yes:)
13921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13923ac_tool_warned=yes ;;
13924esac
13925 OBJDUMP=$ac_ct_OBJDUMP
13926 fi
13927else
13928 OBJDUMP="$ac_cv_prog_OBJDUMP"
13929fi
13930
13931 ;;
13932esac
13933
13934test -z "$AS" && AS=as
13935
13936
13937
13938
13939
13940test -z "$DLLTOOL" && DLLTOOL=dlltool
13941
13942
13943
13944
13945
13946test -z "$OBJDUMP" && OBJDUMP=objdump
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956 # Check whether --enable-shared was given.
13957if test "${enable_shared+set}" = set; then :
13958 enableval=$enable_shared; p=${PACKAGE-default}
13959 case $enableval in
13960 yes) enable_shared=yes ;;
13961 no) enable_shared=no ;;
13962 *)
13963 enable_shared=no
13964 # Look at the argument we got. We use all the common list separators.
13965 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13966 for pkg in $enableval; do
13967 IFS="$lt_save_ifs"
13968 if test "X$pkg" = "X$p"; then
13969 enable_shared=yes
13970 fi
13971 done
13972 IFS="$lt_save_ifs"
13973 ;;
13974 esac
13975else
13976 enable_shared=yes
13977fi
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987 # Check whether --enable-static was given.
13988if test "${enable_static+set}" = set; then :
13989 enableval=$enable_static; p=${PACKAGE-default}
13990 case $enableval in
13991 yes) enable_static=yes ;;
13992 no) enable_static=no ;;
13993 *)
13994 enable_static=no
13995 # Look at the argument we got. We use all the common list separators.
13996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13997 for pkg in $enableval; do
13998 IFS="$lt_save_ifs"
13999 if test "X$pkg" = "X$p"; then
14000 enable_static=yes
14001 fi
14002 done
14003 IFS="$lt_save_ifs"
14004 ;;
14005 esac
14006else
14007 enable_static=yes
14008fi
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019# Check whether --with-pic was given.
14020if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014021 withval=$with_pic; lt_p=${PACKAGE-default}
14022 case $withval in
14023 yes|no) pic_mode=$withval ;;
14024 *)
14025 pic_mode=default
14026 # Look at the argument we got. We use all the common list separators.
14027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14028 for lt_pkg in $withval; do
14029 IFS="$lt_save_ifs"
14030 if test "X$lt_pkg" = "X$lt_p"; then
14031 pic_mode=yes
14032 fi
14033 done
14034 IFS="$lt_save_ifs"
14035 ;;
14036 esac
cristy73bd4a52010-10-05 11:24:23 +000014037else
14038 pic_mode=default
14039fi
14040
14041
14042test -z "$pic_mode" && pic_mode=default
14043
14044
14045
14046
14047
14048
14049
14050 # Check whether --enable-fast-install was given.
14051if test "${enable_fast_install+set}" = set; then :
14052 enableval=$enable_fast_install; p=${PACKAGE-default}
14053 case $enableval in
14054 yes) enable_fast_install=yes ;;
14055 no) enable_fast_install=no ;;
14056 *)
14057 enable_fast_install=no
14058 # Look at the argument we got. We use all the common list separators.
14059 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14060 for pkg in $enableval; do
14061 IFS="$lt_save_ifs"
14062 if test "X$pkg" = "X$p"; then
14063 enable_fast_install=yes
14064 fi
14065 done
14066 IFS="$lt_save_ifs"
14067 ;;
14068 esac
14069else
14070 enable_fast_install=yes
14071fi
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083# This can be used to rebuild libtool when needed
14084LIBTOOL_DEPS="$ltmain"
14085
14086# Always use our own libtool.
14087LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
cristy0c60a692010-11-04 01:09:47 +000014113
cristy99bd5232011-12-07 14:38:20 +000014114
14115
14116
14117
cristy73bd4a52010-10-05 11:24:23 +000014118test -z "$LN_S" && LN_S="ln -s"
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133if test -n "${ZSH_VERSION+set}" ; then
14134 setopt NO_GLOB_SUBST
14135fi
14136
14137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14138$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014139if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014140 $as_echo_n "(cached) " >&6
14141else
14142 rm -f .libs 2>/dev/null
14143mkdir .libs 2>/dev/null
14144if test -d .libs; then
14145 lt_cv_objdir=.libs
14146else
14147 # MS-DOS does not allow filenames that begin with a dot.
14148 lt_cv_objdir=_libs
14149fi
14150rmdir .libs 2>/dev/null
14151fi
14152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14153$as_echo "$lt_cv_objdir" >&6; }
14154objdir=$lt_cv_objdir
14155
14156
14157
14158
14159
14160cat >>confdefs.h <<_ACEOF
14161#define LT_OBJDIR "$lt_cv_objdir/"
14162_ACEOF
14163
14164
14165
14166
cristy73bd4a52010-10-05 11:24:23 +000014167case $host_os in
14168aix3*)
14169 # AIX sometimes has problems with the GCC collect2 program. For some
14170 # reason, if we set the COLLECT_NAMES environment variable, the problems
14171 # vanish in a puff of smoke.
14172 if test "X${COLLECT_NAMES+set}" != Xset; then
14173 COLLECT_NAMES=
14174 export COLLECT_NAMES
14175 fi
14176 ;;
14177esac
14178
cristy73bd4a52010-10-05 11:24:23 +000014179# Global variables:
14180ofile=libtool
14181can_build_shared=yes
14182
14183# All known linkers require a `.a' archive for static linking (except MSVC,
14184# which needs '.lib').
14185libext=a
14186
14187with_gnu_ld="$lt_cv_prog_gnu_ld"
14188
14189old_CC="$CC"
14190old_CFLAGS="$CFLAGS"
14191
14192# Set sane defaults for various variables
14193test -z "$CC" && CC=cc
14194test -z "$LTCC" && LTCC=$CC
14195test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14196test -z "$LD" && LD=ld
14197test -z "$ac_objext" && ac_objext=o
14198
14199for cc_temp in $compiler""; do
14200 case $cc_temp in
14201 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14202 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14203 \-*) ;;
14204 *) break;;
14205 esac
14206done
cristy0c60a692010-11-04 01:09:47 +000014207cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014208
14209
14210# Only perform the check for file, if the check method requires it
14211test -z "$MAGIC_CMD" && MAGIC_CMD=file
14212case $deplibs_check_method in
14213file_magic*)
14214 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14216$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014217if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014218 $as_echo_n "(cached) " >&6
14219else
14220 case $MAGIC_CMD in
14221[\\/*] | ?:[\\/]*)
14222 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14223 ;;
14224*)
14225 lt_save_MAGIC_CMD="$MAGIC_CMD"
14226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14227 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14228 for ac_dir in $ac_dummy; do
14229 IFS="$lt_save_ifs"
14230 test -z "$ac_dir" && ac_dir=.
14231 if test -f $ac_dir/${ac_tool_prefix}file; then
14232 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14233 if test -n "$file_magic_test_file"; then
14234 case $deplibs_check_method in
14235 "file_magic "*)
14236 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14238 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14239 $EGREP "$file_magic_regex" > /dev/null; then
14240 :
14241 else
14242 cat <<_LT_EOF 1>&2
14243
14244*** Warning: the command libtool uses to detect shared libraries,
14245*** $file_magic_cmd, produces output that libtool cannot recognize.
14246*** The result is that libtool may fail to recognize shared libraries
14247*** as such. This will affect the creation of libtool libraries that
14248*** depend on shared libraries, but programs linked with such libtool
14249*** libraries will work regardless of this problem. Nevertheless, you
14250*** may want to report the problem to your system manager and/or to
14251*** bug-libtool@gnu.org
14252
14253_LT_EOF
14254 fi ;;
14255 esac
14256 fi
14257 break
14258 fi
14259 done
14260 IFS="$lt_save_ifs"
14261 MAGIC_CMD="$lt_save_MAGIC_CMD"
14262 ;;
14263esac
14264fi
14265
14266MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14267if test -n "$MAGIC_CMD"; then
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14269$as_echo "$MAGIC_CMD" >&6; }
14270else
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14272$as_echo "no" >&6; }
14273fi
14274
14275
14276
14277
14278
14279if test -z "$lt_cv_path_MAGIC_CMD"; then
14280 if test -n "$ac_tool_prefix"; then
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14282$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014283if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014284 $as_echo_n "(cached) " >&6
14285else
14286 case $MAGIC_CMD in
14287[\\/*] | ?:[\\/]*)
14288 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14289 ;;
14290*)
14291 lt_save_MAGIC_CMD="$MAGIC_CMD"
14292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14293 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14294 for ac_dir in $ac_dummy; do
14295 IFS="$lt_save_ifs"
14296 test -z "$ac_dir" && ac_dir=.
14297 if test -f $ac_dir/file; then
14298 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14299 if test -n "$file_magic_test_file"; then
14300 case $deplibs_check_method in
14301 "file_magic "*)
14302 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14304 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14305 $EGREP "$file_magic_regex" > /dev/null; then
14306 :
14307 else
14308 cat <<_LT_EOF 1>&2
14309
14310*** Warning: the command libtool uses to detect shared libraries,
14311*** $file_magic_cmd, produces output that libtool cannot recognize.
14312*** The result is that libtool may fail to recognize shared libraries
14313*** as such. This will affect the creation of libtool libraries that
14314*** depend on shared libraries, but programs linked with such libtool
14315*** libraries will work regardless of this problem. Nevertheless, you
14316*** may want to report the problem to your system manager and/or to
14317*** bug-libtool@gnu.org
14318
14319_LT_EOF
14320 fi ;;
14321 esac
14322 fi
14323 break
14324 fi
14325 done
14326 IFS="$lt_save_ifs"
14327 MAGIC_CMD="$lt_save_MAGIC_CMD"
14328 ;;
14329esac
14330fi
14331
14332MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14333if test -n "$MAGIC_CMD"; then
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14335$as_echo "$MAGIC_CMD" >&6; }
14336else
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14338$as_echo "no" >&6; }
14339fi
14340
14341
14342 else
14343 MAGIC_CMD=:
14344 fi
14345fi
14346
14347 fi
14348 ;;
14349esac
14350
14351# Use C for the default configuration in the libtool script
14352
14353lt_save_CC="$CC"
14354ac_ext=c
14355ac_cpp='$CPP $CPPFLAGS'
14356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14358ac_compiler_gnu=$ac_cv_c_compiler_gnu
14359
14360
14361# Source file extension for C test sources.
14362ac_ext=c
14363
14364# Object file extension for compiled C test sources.
14365objext=o
14366objext=$objext
14367
14368# Code to be used in simple compile tests
14369lt_simple_compile_test_code="int some_variable = 0;"
14370
14371# Code to be used in simple link tests
14372lt_simple_link_test_code='int main(){return(0);}'
14373
14374
14375
14376
14377
14378
14379
14380# If no C compiler was specified, use CC.
14381LTCC=${LTCC-"$CC"}
14382
14383# If no C compiler flags were specified, use CFLAGS.
14384LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14385
14386# Allow CC to be a program name with arguments.
14387compiler=$CC
14388
14389# Save the default compiler, since it gets overwritten when the other
14390# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14391compiler_DEFAULT=$CC
14392
14393# save warnings/boilerplate of simple test code
14394ac_outfile=conftest.$ac_objext
14395echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14396eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14397_lt_compiler_boilerplate=`cat conftest.err`
14398$RM conftest*
14399
14400ac_outfile=conftest.$ac_objext
14401echo "$lt_simple_link_test_code" >conftest.$ac_ext
14402eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14403_lt_linker_boilerplate=`cat conftest.err`
14404$RM -r conftest*
14405
14406
14407## CAVEAT EMPTOR:
14408## There is no encapsulation within the following macros, do not change
14409## the running order or otherwise move them around unless you know exactly
14410## what you are doing...
14411if test -n "$compiler"; then
14412
14413lt_prog_compiler_no_builtin_flag=
14414
14415if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014416 case $cc_basename in
14417 nvcc*)
14418 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14419 *)
14420 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14421 esac
cristy73bd4a52010-10-05 11:24:23 +000014422
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14424$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014425if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014426 $as_echo_n "(cached) " >&6
14427else
14428 lt_cv_prog_compiler_rtti_exceptions=no
14429 ac_outfile=conftest.$ac_objext
14430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14431 lt_compiler_flag="-fno-rtti -fno-exceptions"
14432 # Insert the option either (1) after the last *FLAGS variable, or
14433 # (2) before a word containing "conftest.", or (3) at the end.
14434 # Note that $ac_compile itself does not contain backslashes and begins
14435 # with a dollar sign (not a hyphen), so the echo should work correctly.
14436 # The option is referenced via a variable to avoid confusing sed.
14437 lt_compile=`echo "$ac_compile" | $SED \
14438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14440 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014441 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014442 (eval "$lt_compile" 2>conftest.err)
14443 ac_status=$?
14444 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014446 if (exit $ac_status) && test -s "$ac_outfile"; then
14447 # The compiler can only warn and ignore the option if not recognized
14448 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014449 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14451 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14452 lt_cv_prog_compiler_rtti_exceptions=yes
14453 fi
14454 fi
14455 $RM conftest*
14456
14457fi
14458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14459$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14460
14461if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14462 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14463else
14464 :
14465fi
14466
14467fi
14468
14469
14470
14471
14472
14473
14474 lt_prog_compiler_wl=
14475lt_prog_compiler_pic=
14476lt_prog_compiler_static=
14477
cristy73bd4a52010-10-05 11:24:23 +000014478
14479 if test "$GCC" = yes; then
14480 lt_prog_compiler_wl='-Wl,'
14481 lt_prog_compiler_static='-static'
14482
14483 case $host_os in
14484 aix*)
14485 # All AIX code is PIC.
14486 if test "$host_cpu" = ia64; then
14487 # AIX 5 now supports IA64 processor
14488 lt_prog_compiler_static='-Bstatic'
14489 fi
14490 ;;
14491
14492 amigaos*)
14493 case $host_cpu in
14494 powerpc)
14495 # see comment about AmigaOS4 .so support
14496 lt_prog_compiler_pic='-fPIC'
14497 ;;
14498 m68k)
14499 # FIXME: we need at least 68020 code to build shared libraries, but
14500 # adding the `-m68020' flag to GCC prevents building anything better,
14501 # like `-m68040'.
14502 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14503 ;;
14504 esac
14505 ;;
14506
14507 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14508 # PIC is the default for these OSes.
14509 ;;
14510
14511 mingw* | cygwin* | pw32* | os2* | cegcc*)
14512 # This hack is so that the source file can tell whether it is being
14513 # built for inclusion in a dll (and should export symbols for example).
14514 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14515 # (--disable-auto-import) libraries
14516 lt_prog_compiler_pic='-DDLL_EXPORT'
14517 ;;
14518
14519 darwin* | rhapsody*)
14520 # PIC is the default on this platform
14521 # Common symbols not allowed in MH_DYLIB files
14522 lt_prog_compiler_pic='-fno-common'
14523 ;;
14524
cristy0c60a692010-11-04 01:09:47 +000014525 haiku*)
14526 # PIC is the default for Haiku.
14527 # The "-static" flag exists, but is broken.
14528 lt_prog_compiler_static=
14529 ;;
14530
cristy73bd4a52010-10-05 11:24:23 +000014531 hpux*)
14532 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14533 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14534 # sets the default TLS model and affects inlining.
14535 case $host_cpu in
14536 hppa*64*)
14537 # +Z the default
14538 ;;
14539 *)
14540 lt_prog_compiler_pic='-fPIC'
14541 ;;
14542 esac
14543 ;;
14544
14545 interix[3-9]*)
14546 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14547 # Instead, we relocate shared libraries at runtime.
14548 ;;
14549
14550 msdosdjgpp*)
14551 # Just because we use GCC doesn't mean we suddenly get shared libraries
14552 # on systems that don't support them.
14553 lt_prog_compiler_can_build_shared=no
14554 enable_shared=no
14555 ;;
14556
14557 *nto* | *qnx*)
14558 # QNX uses GNU C++, but need to define -shared option too, otherwise
14559 # it will coredump.
14560 lt_prog_compiler_pic='-fPIC -shared'
14561 ;;
14562
14563 sysv4*MP*)
14564 if test -d /usr/nec; then
14565 lt_prog_compiler_pic=-Kconform_pic
14566 fi
14567 ;;
14568
14569 *)
14570 lt_prog_compiler_pic='-fPIC'
14571 ;;
14572 esac
cristy0c60a692010-11-04 01:09:47 +000014573
14574 case $cc_basename in
14575 nvcc*) # Cuda Compiler Driver 2.2
14576 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014577 if test -n "$lt_prog_compiler_pic"; then
14578 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14579 fi
cristy0c60a692010-11-04 01:09:47 +000014580 ;;
14581 esac
cristy73bd4a52010-10-05 11:24:23 +000014582 else
14583 # PORTME Check for flag to pass linker flags through the system compiler.
14584 case $host_os in
14585 aix*)
14586 lt_prog_compiler_wl='-Wl,'
14587 if test "$host_cpu" = ia64; then
14588 # AIX 5 now supports IA64 processor
14589 lt_prog_compiler_static='-Bstatic'
14590 else
14591 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14592 fi
14593 ;;
14594
14595 mingw* | cygwin* | pw32* | os2* | cegcc*)
14596 # This hack is so that the source file can tell whether it is being
14597 # built for inclusion in a dll (and should export symbols for example).
14598 lt_prog_compiler_pic='-DDLL_EXPORT'
14599 ;;
14600
14601 hpux9* | hpux10* | hpux11*)
14602 lt_prog_compiler_wl='-Wl,'
14603 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14604 # not for PA HP-UX.
14605 case $host_cpu in
14606 hppa*64*|ia64*)
14607 # +Z the default
14608 ;;
14609 *)
14610 lt_prog_compiler_pic='+Z'
14611 ;;
14612 esac
14613 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14614 lt_prog_compiler_static='${wl}-a ${wl}archive'
14615 ;;
14616
14617 irix5* | irix6* | nonstopux*)
14618 lt_prog_compiler_wl='-Wl,'
14619 # PIC (with -KPIC) is the default.
14620 lt_prog_compiler_static='-non_shared'
14621 ;;
14622
cristy0c60a692010-11-04 01:09:47 +000014623 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014624 case $cc_basename in
14625 # old Intel for x86_64 which still supported -KPIC.
14626 ecc*)
14627 lt_prog_compiler_wl='-Wl,'
14628 lt_prog_compiler_pic='-KPIC'
14629 lt_prog_compiler_static='-static'
14630 ;;
14631 # icc used to be incompatible with GCC.
14632 # ICC 10 doesn't accept -KPIC any more.
14633 icc* | ifort*)
14634 lt_prog_compiler_wl='-Wl,'
14635 lt_prog_compiler_pic='-fPIC'
14636 lt_prog_compiler_static='-static'
14637 ;;
14638 # Lahey Fortran 8.1.
14639 lf95*)
14640 lt_prog_compiler_wl='-Wl,'
14641 lt_prog_compiler_pic='--shared'
14642 lt_prog_compiler_static='--static'
14643 ;;
cristyda16f162011-02-19 23:52:17 +000014644 nagfor*)
14645 # NAG Fortran compiler
14646 lt_prog_compiler_wl='-Wl,-Wl,,'
14647 lt_prog_compiler_pic='-PIC'
14648 lt_prog_compiler_static='-Bstatic'
14649 ;;
cristy0c60a692010-11-04 01:09:47 +000014650 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014651 # Portland Group compilers (*not* the Pentium gcc compiler,
14652 # which looks to be a dead project)
14653 lt_prog_compiler_wl='-Wl,'
14654 lt_prog_compiler_pic='-fpic'
14655 lt_prog_compiler_static='-Bstatic'
14656 ;;
14657 ccc*)
14658 lt_prog_compiler_wl='-Wl,'
14659 # All Alpha code is PIC.
14660 lt_prog_compiler_static='-non_shared'
14661 ;;
cristy0c60a692010-11-04 01:09:47 +000014662 xl* | bgxl* | bgf* | mpixl*)
14663 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014664 lt_prog_compiler_wl='-Wl,'
14665 lt_prog_compiler_pic='-qpic'
14666 lt_prog_compiler_static='-qstaticlink'
14667 ;;
14668 *)
14669 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014670 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014671 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14672 lt_prog_compiler_pic='-KPIC'
14673 lt_prog_compiler_static='-Bstatic'
14674 lt_prog_compiler_wl=''
14675 ;;
cristy99bd5232011-12-07 14:38:20 +000014676 *Sun\ F* | *Sun*Fortran*)
14677 lt_prog_compiler_pic='-KPIC'
14678 lt_prog_compiler_static='-Bstatic'
14679 lt_prog_compiler_wl='-Qoption ld '
14680 ;;
cristy73bd4a52010-10-05 11:24:23 +000014681 *Sun\ C*)
14682 # Sun C 5.9
14683 lt_prog_compiler_pic='-KPIC'
14684 lt_prog_compiler_static='-Bstatic'
14685 lt_prog_compiler_wl='-Wl,'
14686 ;;
cristy99bd5232011-12-07 14:38:20 +000014687 *Intel*\ [CF]*Compiler*)
14688 lt_prog_compiler_wl='-Wl,'
14689 lt_prog_compiler_pic='-fPIC'
14690 lt_prog_compiler_static='-static'
14691 ;;
14692 *Portland\ Group*)
14693 lt_prog_compiler_wl='-Wl,'
14694 lt_prog_compiler_pic='-fpic'
14695 lt_prog_compiler_static='-Bstatic'
14696 ;;
cristy73bd4a52010-10-05 11:24:23 +000014697 esac
14698 ;;
14699 esac
14700 ;;
14701
14702 newsos6)
14703 lt_prog_compiler_pic='-KPIC'
14704 lt_prog_compiler_static='-Bstatic'
14705 ;;
14706
14707 *nto* | *qnx*)
14708 # QNX uses GNU C++, but need to define -shared option too, otherwise
14709 # it will coredump.
14710 lt_prog_compiler_pic='-fPIC -shared'
14711 ;;
14712
14713 osf3* | osf4* | osf5*)
14714 lt_prog_compiler_wl='-Wl,'
14715 # All OSF/1 code is PIC.
14716 lt_prog_compiler_static='-non_shared'
14717 ;;
14718
14719 rdos*)
14720 lt_prog_compiler_static='-non_shared'
14721 ;;
14722
14723 solaris*)
14724 lt_prog_compiler_pic='-KPIC'
14725 lt_prog_compiler_static='-Bstatic'
14726 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014727 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014728 lt_prog_compiler_wl='-Qoption ld ';;
14729 *)
14730 lt_prog_compiler_wl='-Wl,';;
14731 esac
14732 ;;
14733
14734 sunos4*)
14735 lt_prog_compiler_wl='-Qoption ld '
14736 lt_prog_compiler_pic='-PIC'
14737 lt_prog_compiler_static='-Bstatic'
14738 ;;
14739
14740 sysv4 | sysv4.2uw2* | sysv4.3*)
14741 lt_prog_compiler_wl='-Wl,'
14742 lt_prog_compiler_pic='-KPIC'
14743 lt_prog_compiler_static='-Bstatic'
14744 ;;
14745
14746 sysv4*MP*)
14747 if test -d /usr/nec ;then
14748 lt_prog_compiler_pic='-Kconform_pic'
14749 lt_prog_compiler_static='-Bstatic'
14750 fi
14751 ;;
14752
14753 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14754 lt_prog_compiler_wl='-Wl,'
14755 lt_prog_compiler_pic='-KPIC'
14756 lt_prog_compiler_static='-Bstatic'
14757 ;;
14758
14759 unicos*)
14760 lt_prog_compiler_wl='-Wl,'
14761 lt_prog_compiler_can_build_shared=no
14762 ;;
14763
14764 uts4*)
14765 lt_prog_compiler_pic='-pic'
14766 lt_prog_compiler_static='-Bstatic'
14767 ;;
14768
14769 *)
14770 lt_prog_compiler_can_build_shared=no
14771 ;;
14772 esac
14773 fi
14774
14775case $host_os in
14776 # For platforms which do not support PIC, -DPIC is meaningless:
14777 *djgpp*)
14778 lt_prog_compiler_pic=
14779 ;;
14780 *)
14781 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14782 ;;
14783esac
cristy73bd4a52010-10-05 11:24:23 +000014784
cristyda16f162011-02-19 23:52:17 +000014785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14786$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14787if ${lt_cv_prog_compiler_pic+:} false; then :
14788 $as_echo_n "(cached) " >&6
14789else
14790 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14791fi
14792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14793$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14794lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014795
14796#
14797# Check to make sure the PIC flag actually works.
14798#
14799if test -n "$lt_prog_compiler_pic"; then
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14801$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014802if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014803 $as_echo_n "(cached) " >&6
14804else
14805 lt_cv_prog_compiler_pic_works=no
14806 ac_outfile=conftest.$ac_objext
14807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14808 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14809 # Insert the option either (1) after the last *FLAGS variable, or
14810 # (2) before a word containing "conftest.", or (3) at the end.
14811 # Note that $ac_compile itself does not contain backslashes and begins
14812 # with a dollar sign (not a hyphen), so the echo should work correctly.
14813 # The option is referenced via a variable to avoid confusing sed.
14814 lt_compile=`echo "$ac_compile" | $SED \
14815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14817 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014818 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014819 (eval "$lt_compile" 2>conftest.err)
14820 ac_status=$?
14821 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014823 if (exit $ac_status) && test -s "$ac_outfile"; then
14824 # The compiler can only warn and ignore the option if not recognized
14825 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014826 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14828 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14829 lt_cv_prog_compiler_pic_works=yes
14830 fi
14831 fi
14832 $RM conftest*
14833
14834fi
14835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14836$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14837
14838if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14839 case $lt_prog_compiler_pic in
14840 "" | " "*) ;;
14841 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14842 esac
14843else
14844 lt_prog_compiler_pic=
14845 lt_prog_compiler_can_build_shared=no
14846fi
14847
14848fi
14849
14850
14851
14852
14853
14854
cristyda16f162011-02-19 23:52:17 +000014855
14856
14857
14858
14859
cristy73bd4a52010-10-05 11:24:23 +000014860#
14861# Check to make sure the static flag actually works.
14862#
14863wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14865$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014866if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014867 $as_echo_n "(cached) " >&6
14868else
14869 lt_cv_prog_compiler_static_works=no
14870 save_LDFLAGS="$LDFLAGS"
14871 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14872 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14873 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14874 # The linker can only warn and ignore the option if not recognized
14875 # So say no if there are warnings
14876 if test -s conftest.err; then
14877 # Append any errors to the config.log.
14878 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014879 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14881 if diff conftest.exp conftest.er2 >/dev/null; then
14882 lt_cv_prog_compiler_static_works=yes
14883 fi
14884 else
14885 lt_cv_prog_compiler_static_works=yes
14886 fi
14887 fi
14888 $RM -r conftest*
14889 LDFLAGS="$save_LDFLAGS"
14890
14891fi
14892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14893$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14894
14895if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14896 :
14897else
14898 lt_prog_compiler_static=
14899fi
14900
14901
14902
14903
14904
14905
14906
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14908$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014909if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014910 $as_echo_n "(cached) " >&6
14911else
14912 lt_cv_prog_compiler_c_o=no
14913 $RM -r conftest 2>/dev/null
14914 mkdir conftest
14915 cd conftest
14916 mkdir out
14917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14918
14919 lt_compiler_flag="-o out/conftest2.$ac_objext"
14920 # Insert the option either (1) after the last *FLAGS variable, or
14921 # (2) before a word containing "conftest.", or (3) at the end.
14922 # Note that $ac_compile itself does not contain backslashes and begins
14923 # with a dollar sign (not a hyphen), so the echo should work correctly.
14924 lt_compile=`echo "$ac_compile" | $SED \
14925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14927 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014928 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014929 (eval "$lt_compile" 2>out/conftest.err)
14930 ac_status=$?
14931 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014933 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14934 then
14935 # The compiler can only warn and ignore the option if not recognized
14936 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014937 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014938 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14939 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14940 lt_cv_prog_compiler_c_o=yes
14941 fi
14942 fi
14943 chmod u+w . 2>&5
14944 $RM conftest*
14945 # SGI C++ compiler will create directory out/ii_files/ for
14946 # template instantiation
14947 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14948 $RM out/* && rmdir out
14949 cd ..
14950 $RM -r conftest
14951 $RM conftest*
14952
14953fi
14954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14955$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14956
14957
14958
14959
14960
14961
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14963$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014964if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014965 $as_echo_n "(cached) " >&6
14966else
14967 lt_cv_prog_compiler_c_o=no
14968 $RM -r conftest 2>/dev/null
14969 mkdir conftest
14970 cd conftest
14971 mkdir out
14972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14973
14974 lt_compiler_flag="-o out/conftest2.$ac_objext"
14975 # Insert the option either (1) after the last *FLAGS variable, or
14976 # (2) before a word containing "conftest.", or (3) at the end.
14977 # Note that $ac_compile itself does not contain backslashes and begins
14978 # with a dollar sign (not a hyphen), so the echo should work correctly.
14979 lt_compile=`echo "$ac_compile" | $SED \
14980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14982 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014983 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014984 (eval "$lt_compile" 2>out/conftest.err)
14985 ac_status=$?
14986 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014988 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14989 then
14990 # The compiler can only warn and ignore the option if not recognized
14991 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014992 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014993 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14994 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14995 lt_cv_prog_compiler_c_o=yes
14996 fi
14997 fi
14998 chmod u+w . 2>&5
14999 $RM conftest*
15000 # SGI C++ compiler will create directory out/ii_files/ for
15001 # template instantiation
15002 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15003 $RM out/* && rmdir out
15004 cd ..
15005 $RM -r conftest
15006 $RM conftest*
15007
15008fi
15009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15010$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15011
15012
15013
15014
15015hard_links="nottested"
15016if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15017 # do not overwrite the value of need_locks provided by the user
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15019$as_echo_n "checking if we can lock with hard links... " >&6; }
15020 hard_links=yes
15021 $RM conftest*
15022 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15023 touch conftest.a
15024 ln conftest.a conftest.b 2>&5 || hard_links=no
15025 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15027$as_echo "$hard_links" >&6; }
15028 if test "$hard_links" = no; then
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15030$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15031 need_locks=warn
15032 fi
15033else
15034 need_locks=no
15035fi
15036
15037
15038
15039
15040
15041
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15043$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15044
15045 runpath_var=
15046 allow_undefined_flag=
15047 always_export_symbols=no
15048 archive_cmds=
15049 archive_expsym_cmds=
15050 compiler_needs_object=no
15051 enable_shared_with_static_runtimes=no
15052 export_dynamic_flag_spec=
15053 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15054 hardcode_automatic=no
15055 hardcode_direct=no
15056 hardcode_direct_absolute=no
15057 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015058 hardcode_libdir_separator=
15059 hardcode_minus_L=no
15060 hardcode_shlibpath_var=unsupported
15061 inherit_rpath=no
15062 link_all_deplibs=unknown
15063 module_cmds=
15064 module_expsym_cmds=
15065 old_archive_from_new_cmds=
15066 old_archive_from_expsyms_cmds=
15067 thread_safe_flag_spec=
15068 whole_archive_flag_spec=
15069 # include_expsyms should be a list of space-separated symbols to be *always*
15070 # included in the symbol list
15071 include_expsyms=
15072 # exclude_expsyms can be an extended regexp of symbols to exclude
15073 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15074 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15075 # as well as any symbol that contains `d'.
15076 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15077 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15078 # platforms (ab)use it in PIC code, but their linkers get confused if
15079 # the symbol is explicitly referenced. Since portable code cannot
15080 # rely on this symbol name, it's probably fine to never include it in
15081 # preloaded symbol tables.
15082 # Exclude shared library initialization/finalization symbols.
15083 extract_expsyms_cmds=
15084
15085 case $host_os in
15086 cygwin* | mingw* | pw32* | cegcc*)
15087 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15088 # When not using gcc, we currently assume that we are using
15089 # Microsoft Visual C++.
15090 if test "$GCC" != yes; then
15091 with_gnu_ld=no
15092 fi
15093 ;;
15094 interix*)
15095 # we just hope/assume this is gcc and not c89 (= MSVC++)
15096 with_gnu_ld=yes
15097 ;;
15098 openbsd*)
15099 with_gnu_ld=no
15100 ;;
15101 esac
15102
15103 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015104
15105 # On some targets, GNU ld is compatible enough with the native linker
15106 # that we're better off using the native interface for both.
15107 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015108 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015109 case $host_os in
15110 aix*)
15111 # The AIX port of GNU ld has always aspired to compatibility
15112 # with the native linker. However, as the warning in the GNU ld
15113 # block says, versions before 2.19.5* couldn't really create working
15114 # shared libraries, regardless of the interface used.
15115 case `$LD -v 2>&1` in
15116 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15117 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15118 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15119 *)
15120 lt_use_gnu_ld_interface=yes
15121 ;;
15122 esac
15123 ;;
15124 *)
15125 lt_use_gnu_ld_interface=yes
15126 ;;
15127 esac
15128 fi
15129
15130 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015131 # If archive_cmds runs LD, not CC, wlarc should be empty
15132 wlarc='${wl}'
15133
15134 # Set some defaults for GNU ld with shared library support. These
15135 # are reset later if shared libraries are not supported. Putting them
15136 # here allows them to be overridden if necessary.
15137 runpath_var=LD_RUN_PATH
15138 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15139 export_dynamic_flag_spec='${wl}--export-dynamic'
15140 # ancient GNU ld didn't support --whole-archive et. al.
15141 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15142 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15143 else
15144 whole_archive_flag_spec=
15145 fi
15146 supports_anon_versioning=no
15147 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015148 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015149 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15150 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15151 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15152 *\ 2.11.*) ;; # other 2.11 versions
15153 *) supports_anon_versioning=yes ;;
15154 esac
15155
15156 # See if GNU ld supports shared libraries.
15157 case $host_os in
15158 aix[3-9]*)
15159 # On AIX/PPC, the GNU linker is very broken
15160 if test "$host_cpu" != ia64; then
15161 ld_shlibs=no
15162 cat <<_LT_EOF 1>&2
15163
cristy0c60a692010-11-04 01:09:47 +000015164*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015165*** to be unable to reliably create shared libraries on AIX.
15166*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015167*** really care for shared libraries, you may want to install binutils
15168*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15169*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015170
15171_LT_EOF
15172 fi
15173 ;;
15174
15175 amigaos*)
15176 case $host_cpu in
15177 powerpc)
15178 # see comment about AmigaOS4 .so support
15179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15180 archive_expsym_cmds=''
15181 ;;
15182 m68k)
15183 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)'
15184 hardcode_libdir_flag_spec='-L$libdir'
15185 hardcode_minus_L=yes
15186 ;;
15187 esac
15188 ;;
15189
15190 beos*)
15191 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15192 allow_undefined_flag=unsupported
15193 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15194 # support --undefined. This deserves some investigation. FIXME
15195 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15196 else
15197 ld_shlibs=no
15198 fi
15199 ;;
15200
15201 cygwin* | mingw* | pw32* | cegcc*)
15202 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15203 # as there is no search path for DLLs.
15204 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015205 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015206 allow_undefined_flag=unsupported
15207 always_export_symbols=no
15208 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015209 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'
15210 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 +000015211
15212 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15214 # If the export-symbols file already is a .def file (1st line
15215 # is EXPORTS), use it as is; otherwise, prepend...
15216 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15217 cp $export_symbols $output_objdir/$soname.def;
15218 else
15219 echo EXPORTS > $output_objdir/$soname.def;
15220 cat $export_symbols >> $output_objdir/$soname.def;
15221 fi~
15222 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15223 else
15224 ld_shlibs=no
15225 fi
15226 ;;
15227
cristy0c60a692010-11-04 01:09:47 +000015228 haiku*)
15229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15230 link_all_deplibs=yes
15231 ;;
15232
cristy73bd4a52010-10-05 11:24:23 +000015233 interix[3-9]*)
15234 hardcode_direct=no
15235 hardcode_shlibpath_var=no
15236 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15237 export_dynamic_flag_spec='${wl}-E'
15238 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15239 # Instead, shared libraries are loaded at an image base (0x10000000 by
15240 # default) and relocated if they conflict, which is a slow very memory
15241 # consuming and fragmenting process. To avoid this, we pick a random,
15242 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15243 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15244 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15245 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'
15246 ;;
15247
cristy0c60a692010-11-04 01:09:47 +000015248 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015249 tmp_diet=no
15250 if test "$host_os" = linux-dietlibc; then
15251 case $cc_basename in
15252 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15253 esac
15254 fi
15255 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15256 && test "$tmp_diet" = no
15257 then
cristyda16f162011-02-19 23:52:17 +000015258 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015259 tmp_sharedflag='-shared'
15260 case $cc_basename,$host_cpu in
15261 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015262 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 +000015263 tmp_addflag=' $pic_flag'
15264 ;;
cristy0c60a692010-11-04 01:09:47 +000015265 pgf77* | pgf90* | pgf95* | pgfortran*)
15266 # Portland Group f77 and f90 compilers
15267 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 +000015268 tmp_addflag=' $pic_flag -Mnomain' ;;
15269 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15270 tmp_addflag=' -i_dynamic' ;;
15271 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15272 tmp_addflag=' -i_dynamic -nofor_main' ;;
15273 ifc* | ifort*) # Intel Fortran compiler
15274 tmp_addflag=' -nofor_main' ;;
15275 lf95*) # Lahey Fortran 8.1
15276 whole_archive_flag_spec=
15277 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015278 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015279 tmp_sharedflag='-qmkshrobj'
15280 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015281 nvcc*) # Cuda Compiler Driver 2.2
15282 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'
15283 compiler_needs_object=yes
15284 ;;
cristy73bd4a52010-10-05 11:24:23 +000015285 esac
15286 case `$CC -V 2>&1 | sed 5q` in
15287 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015288 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 +000015289 compiler_needs_object=yes
15290 tmp_sharedflag='-G' ;;
15291 *Sun\ F*) # Sun Fortran 8.3
15292 tmp_sharedflag='-G' ;;
15293 esac
15294 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15295
15296 if test "x$supports_anon_versioning" = xyes; then
15297 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15298 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15299 echo "local: *; };" >> $output_objdir/$libname.ver~
15300 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15301 fi
15302
15303 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015304 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015305 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15306 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015307 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015308 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015309 if test "x$supports_anon_versioning" = xyes; then
15310 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15311 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15312 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015313 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015314 fi
15315 ;;
15316 esac
15317 else
15318 ld_shlibs=no
15319 fi
15320 ;;
15321
15322 netbsd*)
15323 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15324 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15325 wlarc=
15326 else
cristyda16f162011-02-19 23:52:17 +000015327 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15328 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 +000015329 fi
15330 ;;
15331
15332 solaris*)
15333 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15334 ld_shlibs=no
15335 cat <<_LT_EOF 1>&2
15336
15337*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15338*** create shared libraries on Solaris systems. Therefore, libtool
15339*** is disabling shared libraries support. We urge you to upgrade GNU
15340*** binutils to release 2.9.1 or newer. Another option is to modify
15341*** your PATH or compiler configuration so that the native linker is
15342*** used, and then restart.
15343
15344_LT_EOF
15345 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015346 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15347 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 +000015348 else
15349 ld_shlibs=no
15350 fi
15351 ;;
15352
15353 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15354 case `$LD -v 2>&1` in
15355 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15356 ld_shlibs=no
15357 cat <<_LT_EOF 1>&2
15358
15359*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15360*** reliably create shared libraries on SCO systems. Therefore, libtool
15361*** is disabling shared libraries support. We urge you to upgrade GNU
15362*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15363*** your PATH or compiler configuration so that the native linker is
15364*** used, and then restart.
15365
15366_LT_EOF
15367 ;;
15368 *)
15369 # For security reasons, it is highly recommended that you always
15370 # use absolute paths for naming shared libraries, and exclude the
15371 # DT_RUNPATH tag from executables and libraries. But doing so
15372 # requires that you compile everything twice, which is a pain.
15373 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15374 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15376 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15377 else
15378 ld_shlibs=no
15379 fi
15380 ;;
15381 esac
15382 ;;
15383
15384 sunos4*)
15385 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15386 wlarc=
15387 hardcode_direct=yes
15388 hardcode_shlibpath_var=no
15389 ;;
15390
15391 *)
15392 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015393 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15394 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 +000015395 else
15396 ld_shlibs=no
15397 fi
15398 ;;
15399 esac
15400
15401 if test "$ld_shlibs" = no; then
15402 runpath_var=
15403 hardcode_libdir_flag_spec=
15404 export_dynamic_flag_spec=
15405 whole_archive_flag_spec=
15406 fi
15407 else
15408 # PORTME fill in a description of your system's linker (not GNU ld)
15409 case $host_os in
15410 aix3*)
15411 allow_undefined_flag=unsupported
15412 always_export_symbols=yes
15413 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'
15414 # Note: this linker hardcodes the directories in LIBPATH if there
15415 # are no directories specified by -L.
15416 hardcode_minus_L=yes
15417 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15418 # Neither direct hardcoding nor static linking is supported with a
15419 # broken collect2.
15420 hardcode_direct=unsupported
15421 fi
15422 ;;
15423
15424 aix[4-9]*)
15425 if test "$host_cpu" = ia64; then
15426 # On IA64, the linker does run time linking by default, so we don't
15427 # have to do anything special.
15428 aix_use_runtimelinking=no
15429 exp_sym_flag='-Bexport'
15430 no_entry_flag=""
15431 else
15432 # If we're using GNU nm, then we don't want the "-C" option.
15433 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015434 # Also, AIX nm treats weak defined symbols like other global
15435 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015436 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015437 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 +000015438 else
15439 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'
15440 fi
15441 aix_use_runtimelinking=no
15442
15443 # Test if we are trying to use run time linking or normal
15444 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15445 # need to do runtime linking.
15446 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15447 for ld_flag in $LDFLAGS; do
15448 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15449 aix_use_runtimelinking=yes
15450 break
15451 fi
15452 done
15453 ;;
15454 esac
15455
15456 exp_sym_flag='-bexport'
15457 no_entry_flag='-bnoentry'
15458 fi
15459
15460 # When large executables or shared objects are built, AIX ld can
15461 # have problems creating the table of contents. If linking a library
15462 # or program results in "error TOC overflow" add -mminimal-toc to
15463 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15464 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15465
15466 archive_cmds=''
15467 hardcode_direct=yes
15468 hardcode_direct_absolute=yes
15469 hardcode_libdir_separator=':'
15470 link_all_deplibs=yes
15471 file_list_spec='${wl}-f,'
15472
15473 if test "$GCC" = yes; then
15474 case $host_os in aix4.[012]|aix4.[012].*)
15475 # We only want to do this on AIX 4.2 and lower, the check
15476 # below for broken collect2 doesn't work under 4.3+
15477 collect2name=`${CC} -print-prog-name=collect2`
15478 if test -f "$collect2name" &&
15479 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15480 then
15481 # We have reworked collect2
15482 :
15483 else
15484 # We have old collect2
15485 hardcode_direct=unsupported
15486 # It fails to find uninstalled libraries when the uninstalled
15487 # path is not listed in the libpath. Setting hardcode_minus_L
15488 # to unsupported forces relinking
15489 hardcode_minus_L=yes
15490 hardcode_libdir_flag_spec='-L$libdir'
15491 hardcode_libdir_separator=
15492 fi
15493 ;;
15494 esac
15495 shared_flag='-shared'
15496 if test "$aix_use_runtimelinking" = yes; then
15497 shared_flag="$shared_flag "'${wl}-G'
15498 fi
15499 else
15500 # not using gcc
15501 if test "$host_cpu" = ia64; then
15502 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15503 # chokes on -Wl,-G. The following line is correct:
15504 shared_flag='-G'
15505 else
15506 if test "$aix_use_runtimelinking" = yes; then
15507 shared_flag='${wl}-G'
15508 else
15509 shared_flag='${wl}-bM:SRE'
15510 fi
15511 fi
15512 fi
15513
15514 export_dynamic_flag_spec='${wl}-bexpall'
15515 # It seems that -bexpall does not export symbols beginning with
15516 # underscore (_), so it is better to generate a list of symbols to export.
15517 always_export_symbols=yes
15518 if test "$aix_use_runtimelinking" = yes; then
15519 # Warning - without using the other runtime loading flags (-brtl),
15520 # -berok will link without error, but may produce a broken library.
15521 allow_undefined_flag='-berok'
15522 # Determine the default libpath from the value encoded in an
15523 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015524 if test "${lt_cv_aix_libpath+set}" = set; then
15525 aix_libpath=$lt_cv_aix_libpath
15526else
15527 if ${lt_cv_aix_libpath_+:} false; then :
15528 $as_echo_n "(cached) " >&6
15529else
15530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015531/* end confdefs.h. */
15532
15533int
15534main ()
15535{
15536
15537 ;
15538 return 0;
15539}
15540_ACEOF
15541if ac_fn_c_try_link "$LINENO"; then :
15542
cristyda16f162011-02-19 23:52:17 +000015543 lt_aix_libpath_sed='
15544 /Import File Strings/,/^$/ {
15545 /^0/ {
15546 s/^0 *\([^ ]*\) *$/\1/
15547 p
15548 }
15549 }'
15550 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15551 # Check for a 64-bit object if we didn't find anything.
15552 if test -z "$lt_cv_aix_libpath_"; then
15553 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15554 fi
cristy73bd4a52010-10-05 11:24:23 +000015555fi
15556rm -f core conftest.err conftest.$ac_objext \
15557 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015558 if test -z "$lt_cv_aix_libpath_"; then
15559 lt_cv_aix_libpath_="/usr/lib:/lib"
15560 fi
15561
15562fi
15563
15564 aix_libpath=$lt_cv_aix_libpath_
15565fi
cristy73bd4a52010-10-05 11:24:23 +000015566
15567 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015568 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 +000015569 else
15570 if test "$host_cpu" = ia64; then
15571 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15572 allow_undefined_flag="-z nodefs"
15573 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"
15574 else
15575 # Determine the default libpath from the value encoded in an
15576 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015577 if test "${lt_cv_aix_libpath+set}" = set; then
15578 aix_libpath=$lt_cv_aix_libpath
15579else
15580 if ${lt_cv_aix_libpath_+:} false; then :
15581 $as_echo_n "(cached) " >&6
15582else
15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015584/* end confdefs.h. */
15585
15586int
15587main ()
15588{
15589
15590 ;
15591 return 0;
15592}
15593_ACEOF
15594if ac_fn_c_try_link "$LINENO"; then :
15595
cristyda16f162011-02-19 23:52:17 +000015596 lt_aix_libpath_sed='
15597 /Import File Strings/,/^$/ {
15598 /^0/ {
15599 s/^0 *\([^ ]*\) *$/\1/
15600 p
15601 }
15602 }'
15603 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15604 # Check for a 64-bit object if we didn't find anything.
15605 if test -z "$lt_cv_aix_libpath_"; then
15606 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15607 fi
cristy73bd4a52010-10-05 11:24:23 +000015608fi
15609rm -f core conftest.err conftest.$ac_objext \
15610 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015611 if test -z "$lt_cv_aix_libpath_"; then
15612 lt_cv_aix_libpath_="/usr/lib:/lib"
15613 fi
15614
15615fi
15616
15617 aix_libpath=$lt_cv_aix_libpath_
15618fi
cristy73bd4a52010-10-05 11:24:23 +000015619
15620 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15621 # Warning - without using the other run time loading flags,
15622 # -berok will link without error, but may produce a broken library.
15623 no_undefined_flag=' ${wl}-bernotok'
15624 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015625 if test "$with_gnu_ld" = yes; then
15626 # We only use this code for GNU lds that support --whole-archive.
15627 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15628 else
15629 # Exported symbols can be pulled into shared objects from archives
15630 whole_archive_flag_spec='$convenience'
15631 fi
cristy73bd4a52010-10-05 11:24:23 +000015632 archive_cmds_need_lc=yes
15633 # This is similar to how AIX traditionally builds its shared libraries.
15634 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'
15635 fi
15636 fi
15637 ;;
15638
15639 amigaos*)
15640 case $host_cpu in
15641 powerpc)
15642 # see comment about AmigaOS4 .so support
15643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15644 archive_expsym_cmds=''
15645 ;;
15646 m68k)
15647 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)'
15648 hardcode_libdir_flag_spec='-L$libdir'
15649 hardcode_minus_L=yes
15650 ;;
15651 esac
15652 ;;
15653
15654 bsdi[45]*)
15655 export_dynamic_flag_spec=-rdynamic
15656 ;;
15657
15658 cygwin* | mingw* | pw32* | cegcc*)
15659 # When not using gcc, we currently assume that we are using
15660 # Microsoft Visual C++.
15661 # hardcode_libdir_flag_spec is actually meaningless, as there is
15662 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015663 case $cc_basename in
15664 cl*)
15665 # Native MSVC
15666 hardcode_libdir_flag_spec=' '
15667 allow_undefined_flag=unsupported
15668 always_export_symbols=yes
15669 file_list_spec='@'
15670 # Tell ltmain to make .lib files, not .a files.
15671 libext=lib
15672 # Tell ltmain to make .dll files, not .so files.
15673 shrext_cmds=".dll"
15674 # FIXME: Setting linknames here is a bad hack.
15675 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15676 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15677 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15678 else
15679 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15680 fi~
15681 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15682 linknames='
15683 # The linker will not automatically build a static lib if we build a DLL.
15684 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15685 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015686 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15688 # Don't use ranlib
15689 old_postinstall_cmds='chmod 644 $oldlib'
15690 postlink_cmds='lt_outputfile="@OUTPUT@"~
15691 lt_tool_outputfile="@TOOL_OUTPUT@"~
15692 case $lt_outputfile in
15693 *.exe|*.EXE) ;;
15694 *)
15695 lt_outputfile="$lt_outputfile.exe"
15696 lt_tool_outputfile="$lt_tool_outputfile.exe"
15697 ;;
15698 esac~
15699 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15700 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15701 $RM "$lt_outputfile.manifest";
15702 fi'
15703 ;;
15704 *)
15705 # Assume MSVC wrapper
15706 hardcode_libdir_flag_spec=' '
15707 allow_undefined_flag=unsupported
15708 # Tell ltmain to make .lib files, not .a files.
15709 libext=lib
15710 # Tell ltmain to make .dll files, not .so files.
15711 shrext_cmds=".dll"
15712 # FIXME: Setting linknames here is a bad hack.
15713 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15714 # The linker will automatically build a .lib file if we build a DLL.
15715 old_archive_from_new_cmds='true'
15716 # FIXME: Should let the user specify the lib program.
15717 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15718 enable_shared_with_static_runtimes=yes
15719 ;;
15720 esac
cristy73bd4a52010-10-05 11:24:23 +000015721 ;;
15722
15723 darwin* | rhapsody*)
15724
15725
15726 archive_cmds_need_lc=no
15727 hardcode_direct=no
15728 hardcode_automatic=yes
15729 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015730 if test "$lt_cv_ld_force_load" = "yes"; then
15731 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 +000015732
cristy0c60a692010-11-04 01:09:47 +000015733 else
15734 whole_archive_flag_spec=''
15735 fi
cristy73bd4a52010-10-05 11:24:23 +000015736 link_all_deplibs=yes
15737 allow_undefined_flag="$_lt_dar_allow_undefined"
15738 case $cc_basename in
15739 ifort*) _lt_dar_can_shared=yes ;;
15740 *) _lt_dar_can_shared=$GCC ;;
15741 esac
15742 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015743 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015744 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15745 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15746 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}"
15747 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}"
15748
15749 else
15750 ld_shlibs=no
15751 fi
15752
15753 ;;
15754
15755 dgux*)
15756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15757 hardcode_libdir_flag_spec='-L$libdir'
15758 hardcode_shlibpath_var=no
15759 ;;
15760
cristy73bd4a52010-10-05 11:24:23 +000015761 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15762 # support. Future versions do this automatically, but an explicit c++rt0.o
15763 # does not break anything, and helps significantly (at the cost of a little
15764 # extra space).
15765 freebsd2.2*)
15766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15767 hardcode_libdir_flag_spec='-R$libdir'
15768 hardcode_direct=yes
15769 hardcode_shlibpath_var=no
15770 ;;
15771
15772 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015773 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15775 hardcode_direct=yes
15776 hardcode_minus_L=yes
15777 hardcode_shlibpath_var=no
15778 ;;
15779
15780 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15781 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015782 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015783 hardcode_libdir_flag_spec='-R$libdir'
15784 hardcode_direct=yes
15785 hardcode_shlibpath_var=no
15786 ;;
15787
15788 hpux9*)
15789 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015790 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 +000015791 else
15792 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'
15793 fi
15794 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15795 hardcode_libdir_separator=:
15796 hardcode_direct=yes
15797
15798 # hardcode_minus_L: Not really in the search PATH,
15799 # but as the default location of the library.
15800 hardcode_minus_L=yes
15801 export_dynamic_flag_spec='${wl}-E'
15802 ;;
15803
15804 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015805 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015806 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 +000015807 else
15808 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15809 fi
15810 if test "$with_gnu_ld" = no; then
15811 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015812 hardcode_libdir_separator=:
15813 hardcode_direct=yes
15814 hardcode_direct_absolute=yes
15815 export_dynamic_flag_spec='${wl}-E'
15816 # hardcode_minus_L: Not really in the search PATH,
15817 # but as the default location of the library.
15818 hardcode_minus_L=yes
15819 fi
15820 ;;
15821
15822 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015823 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015824 case $host_cpu in
15825 hppa*64*)
15826 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15827 ;;
15828 ia64*)
cristyda16f162011-02-19 23:52:17 +000015829 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015830 ;;
15831 *)
cristyda16f162011-02-19 23:52:17 +000015832 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 +000015833 ;;
15834 esac
15835 else
15836 case $host_cpu in
15837 hppa*64*)
15838 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15839 ;;
15840 ia64*)
15841 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15842 ;;
15843 *)
cristy0c60a692010-11-04 01:09:47 +000015844
15845 # Older versions of the 11.00 compiler do not understand -b yet
15846 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15848$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015849if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015850 $as_echo_n "(cached) " >&6
15851else
15852 lt_cv_prog_compiler__b=no
15853 save_LDFLAGS="$LDFLAGS"
15854 LDFLAGS="$LDFLAGS -b"
15855 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15856 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15857 # The linker can only warn and ignore the option if not recognized
15858 # So say no if there are warnings
15859 if test -s conftest.err; then
15860 # Append any errors to the config.log.
15861 cat conftest.err 1>&5
15862 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15863 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15864 if diff conftest.exp conftest.er2 >/dev/null; then
15865 lt_cv_prog_compiler__b=yes
15866 fi
15867 else
15868 lt_cv_prog_compiler__b=yes
15869 fi
15870 fi
15871 $RM -r conftest*
15872 LDFLAGS="$save_LDFLAGS"
15873
15874fi
15875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15876$as_echo "$lt_cv_prog_compiler__b" >&6; }
15877
15878if test x"$lt_cv_prog_compiler__b" = xyes; then
15879 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15880else
15881 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15882fi
15883
cristy73bd4a52010-10-05 11:24:23 +000015884 ;;
15885 esac
15886 fi
15887 if test "$with_gnu_ld" = no; then
15888 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15889 hardcode_libdir_separator=:
15890
15891 case $host_cpu in
15892 hppa*64*|ia64*)
15893 hardcode_direct=no
15894 hardcode_shlibpath_var=no
15895 ;;
15896 *)
15897 hardcode_direct=yes
15898 hardcode_direct_absolute=yes
15899 export_dynamic_flag_spec='${wl}-E'
15900
15901 # hardcode_minus_L: Not really in the search PATH,
15902 # but as the default location of the library.
15903 hardcode_minus_L=yes
15904 ;;
15905 esac
15906 fi
15907 ;;
15908
15909 irix5* | irix6* | nonstopux*)
15910 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015911 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 +000015912 # Try to use the -exported_symbol ld option, if it does not
15913 # work, assume that -exports_file does not work either and
15914 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015915 # This should be the same for all languages, so no per-tag cache variable.
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15917$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15918if ${lt_cv_irix_exported_symbol+:} false; then :
15919 $as_echo_n "(cached) " >&6
15920else
15921 save_LDFLAGS="$LDFLAGS"
15922 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015924/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015925int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015926_ACEOF
15927if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015928 lt_cv_irix_exported_symbol=yes
15929else
15930 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015931fi
15932rm -f core conftest.err conftest.$ac_objext \
15933 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015934 LDFLAGS="$save_LDFLAGS"
15935fi
15936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15937$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15938 if test "$lt_cv_irix_exported_symbol" = yes; then
15939 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'
15940 fi
cristy73bd4a52010-10-05 11:24:23 +000015941 else
cristy0c60a692010-11-04 01:09:47 +000015942 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'
15943 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 +000015944 fi
15945 archive_cmds_need_lc='no'
15946 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15947 hardcode_libdir_separator=:
15948 inherit_rpath=yes
15949 link_all_deplibs=yes
15950 ;;
15951
15952 netbsd*)
15953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15955 else
15956 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15957 fi
15958 hardcode_libdir_flag_spec='-R$libdir'
15959 hardcode_direct=yes
15960 hardcode_shlibpath_var=no
15961 ;;
15962
15963 newsos6)
15964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15965 hardcode_direct=yes
15966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15967 hardcode_libdir_separator=:
15968 hardcode_shlibpath_var=no
15969 ;;
15970
15971 *nto* | *qnx*)
15972 ;;
15973
15974 openbsd*)
15975 if test -f /usr/libexec/ld.so; then
15976 hardcode_direct=yes
15977 hardcode_shlibpath_var=no
15978 hardcode_direct_absolute=yes
15979 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15981 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15982 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15983 export_dynamic_flag_spec='${wl}-E'
15984 else
15985 case $host_os in
15986 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15988 hardcode_libdir_flag_spec='-R$libdir'
15989 ;;
15990 *)
15991 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15992 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15993 ;;
15994 esac
15995 fi
15996 else
15997 ld_shlibs=no
15998 fi
15999 ;;
16000
16001 os2*)
16002 hardcode_libdir_flag_spec='-L$libdir'
16003 hardcode_minus_L=yes
16004 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016005 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 +000016006 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16007 ;;
16008
16009 osf3*)
16010 if test "$GCC" = yes; then
16011 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016012 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 +000016013 else
16014 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016015 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 +000016016 fi
16017 archive_cmds_need_lc='no'
16018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16019 hardcode_libdir_separator=:
16020 ;;
16021
16022 osf4* | osf5*) # as osf3* with the addition of -msym flag
16023 if test "$GCC" = yes; then
16024 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016025 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 +000016026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16027 else
16028 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016029 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 +000016030 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 +000016031 $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 +000016032
16033 # Both c and cxx compiler support -rpath directly
16034 hardcode_libdir_flag_spec='-rpath $libdir'
16035 fi
16036 archive_cmds_need_lc='no'
16037 hardcode_libdir_separator=:
16038 ;;
16039
16040 solaris*)
16041 no_undefined_flag=' -z defs'
16042 if test "$GCC" = yes; then
16043 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016044 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 +000016045 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 +000016046 $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 +000016047 else
16048 case `$CC -V 2>&1` in
16049 *"Compilers 5.0"*)
16050 wlarc=''
16051 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16052 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16053 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16054 ;;
16055 *)
16056 wlarc='${wl}'
16057 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16058 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16059 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16060 ;;
16061 esac
16062 fi
16063 hardcode_libdir_flag_spec='-R$libdir'
16064 hardcode_shlibpath_var=no
16065 case $host_os in
16066 solaris2.[0-5] | solaris2.[0-5].*) ;;
16067 *)
16068 # The compiler driver will combine and reorder linker options,
16069 # but understands `-z linker_flag'. GCC discards it without `$wl',
16070 # but is careful enough not to reorder.
16071 # Supported since Solaris 2.6 (maybe 2.5.1?)
16072 if test "$GCC" = yes; then
16073 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16074 else
16075 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16076 fi
16077 ;;
16078 esac
16079 link_all_deplibs=yes
16080 ;;
16081
16082 sunos4*)
16083 if test "x$host_vendor" = xsequent; then
16084 # Use $CC to link under sequent, because it throws in some extra .o
16085 # files that make .init and .fini sections work.
16086 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16087 else
16088 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16089 fi
16090 hardcode_libdir_flag_spec='-L$libdir'
16091 hardcode_direct=yes
16092 hardcode_minus_L=yes
16093 hardcode_shlibpath_var=no
16094 ;;
16095
16096 sysv4)
16097 case $host_vendor in
16098 sni)
16099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16100 hardcode_direct=yes # is this really true???
16101 ;;
16102 siemens)
16103 ## LD is ld it makes a PLAMLIB
16104 ## CC just makes a GrossModule.
16105 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16106 reload_cmds='$CC -r -o $output$reload_objs'
16107 hardcode_direct=no
16108 ;;
16109 motorola)
16110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16111 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16112 ;;
16113 esac
16114 runpath_var='LD_RUN_PATH'
16115 hardcode_shlibpath_var=no
16116 ;;
16117
16118 sysv4.3*)
16119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16120 hardcode_shlibpath_var=no
16121 export_dynamic_flag_spec='-Bexport'
16122 ;;
16123
16124 sysv4*MP*)
16125 if test -d /usr/nec; then
16126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16127 hardcode_shlibpath_var=no
16128 runpath_var=LD_RUN_PATH
16129 hardcode_runpath_var=yes
16130 ld_shlibs=yes
16131 fi
16132 ;;
16133
16134 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16135 no_undefined_flag='${wl}-z,text'
16136 archive_cmds_need_lc=no
16137 hardcode_shlibpath_var=no
16138 runpath_var='LD_RUN_PATH'
16139
16140 if test "$GCC" = yes; then
16141 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16142 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16143 else
16144 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16145 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16146 fi
16147 ;;
16148
16149 sysv5* | sco3.2v5* | sco5v6*)
16150 # Note: We can NOT use -z defs as we might desire, because we do not
16151 # link with -lc, and that would cause any symbols used from libc to
16152 # always be unresolved, which means just about no library would
16153 # ever link correctly. If we're not using GNU ld we use -z text
16154 # though, which does catch some bad symbols but isn't as heavy-handed
16155 # as -z defs.
16156 no_undefined_flag='${wl}-z,text'
16157 allow_undefined_flag='${wl}-z,nodefs'
16158 archive_cmds_need_lc=no
16159 hardcode_shlibpath_var=no
16160 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16161 hardcode_libdir_separator=':'
16162 link_all_deplibs=yes
16163 export_dynamic_flag_spec='${wl}-Bexport'
16164 runpath_var='LD_RUN_PATH'
16165
16166 if test "$GCC" = yes; then
16167 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16168 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16169 else
16170 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16171 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16172 fi
16173 ;;
16174
16175 uts4*)
16176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16177 hardcode_libdir_flag_spec='-L$libdir'
16178 hardcode_shlibpath_var=no
16179 ;;
16180
16181 *)
16182 ld_shlibs=no
16183 ;;
16184 esac
16185
16186 if test x$host_vendor = xsni; then
16187 case $host in
16188 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16189 export_dynamic_flag_spec='${wl}-Blargedynsym'
16190 ;;
16191 esac
16192 fi
16193 fi
16194
16195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16196$as_echo "$ld_shlibs" >&6; }
16197test "$ld_shlibs" = no && can_build_shared=no
16198
16199with_gnu_ld=$with_gnu_ld
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215#
16216# Do we need to explicitly link libc?
16217#
16218case "x$archive_cmds_need_lc" in
16219x|xyes)
16220 # Assume -lc should be added
16221 archive_cmds_need_lc=yes
16222
16223 if test "$enable_shared" = yes && test "$GCC" = yes; then
16224 case $archive_cmds in
16225 *'~'*)
16226 # FIXME: we may have to deal with multi-command sequences.
16227 ;;
16228 '$CC '*)
16229 # Test whether the compiler implicitly links with -lc since on some
16230 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16231 # to ld, don't add -lc before -lgcc.
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16233$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016234if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016235 $as_echo_n "(cached) " >&6
16236else
16237 $RM conftest*
16238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016239
cristy0c60a692010-11-04 01:09:47 +000016240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016241 (eval $ac_compile) 2>&5
16242 ac_status=$?
16243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16244 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016245 soname=conftest
16246 lib=conftest
16247 libobjs=conftest.$ac_objext
16248 deplibs=
16249 wl=$lt_prog_compiler_wl
16250 pic_flag=$lt_prog_compiler_pic
16251 compiler_flags=-v
16252 linker_flags=-v
16253 verstring=
16254 output_objdir=.
16255 libname=conftest
16256 lt_save_allow_undefined_flag=$allow_undefined_flag
16257 allow_undefined_flag=
16258 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 +000016259 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16260 ac_status=$?
16261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16262 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016263 then
16264 lt_cv_archive_cmds_need_lc=no
16265 else
16266 lt_cv_archive_cmds_need_lc=yes
16267 fi
16268 allow_undefined_flag=$lt_save_allow_undefined_flag
16269 else
16270 cat conftest.err 1>&5
16271 fi
16272 $RM conftest*
16273
16274fi
16275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16276$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16277 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016278 ;;
16279 esac
16280 fi
16281 ;;
16282esac
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
16428
16429
16430
16431
16432
16433
16434
cristy73bd4a52010-10-05 11:24:23 +000016435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16436$as_echo_n "checking dynamic linker characteristics... " >&6; }
16437
16438if test "$GCC" = yes; then
16439 case $host_os in
16440 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16441 *) lt_awk_arg="/^libraries:/" ;;
16442 esac
cristy0c60a692010-11-04 01:09:47 +000016443 case $host_os in
16444 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16445 *) lt_sed_strip_eq="s,=/,/,g" ;;
16446 esac
16447 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16448 case $lt_search_path_spec in
16449 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016450 # if the path contains ";" then we assume it to be the separator
16451 # otherwise default to the standard path separator (i.e. ":") - it is
16452 # assumed that no part of a normal pathname contains ";" but that should
16453 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016454 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16455 ;;
16456 *)
16457 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16458 ;;
16459 esac
cristy73bd4a52010-10-05 11:24:23 +000016460 # Ok, now we have the path, separated by spaces, we can step through it
16461 # and add multilib dir if necessary.
16462 lt_tmp_lt_search_path_spec=
16463 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16464 for lt_sys_path in $lt_search_path_spec; do
16465 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16466 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16467 else
16468 test -d "$lt_sys_path" && \
16469 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16470 fi
16471 done
cristy0c60a692010-11-04 01:09:47 +000016472 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016473BEGIN {RS=" "; FS="/|\n";} {
16474 lt_foo="";
16475 lt_count=0;
16476 for (lt_i = NF; lt_i > 0; lt_i--) {
16477 if ($lt_i != "" && $lt_i != ".") {
16478 if ($lt_i == "..") {
16479 lt_count++;
16480 } else {
16481 if (lt_count == 0) {
16482 lt_foo="/" $lt_i lt_foo;
16483 } else {
16484 lt_count--;
16485 }
16486 }
16487 }
16488 }
16489 if (lt_foo != "") { lt_freq[lt_foo]++; }
16490 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16491}'`
cristy0c60a692010-11-04 01:09:47 +000016492 # AWK program above erroneously prepends '/' to C:/dos/paths
16493 # for these hosts.
16494 case $host_os in
16495 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16496 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16497 esac
16498 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016499else
16500 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16501fi
16502library_names_spec=
16503libname_spec='lib$name'
16504soname_spec=
16505shrext_cmds=".so"
16506postinstall_cmds=
16507postuninstall_cmds=
16508finish_cmds=
16509finish_eval=
16510shlibpath_var=
16511shlibpath_overrides_runpath=unknown
16512version_type=none
16513dynamic_linker="$host_os ld.so"
16514sys_lib_dlsearch_path_spec="/lib /usr/lib"
16515need_lib_prefix=unknown
16516hardcode_into_libs=no
16517
16518# when you set need_version to no, make sure it does not cause -set_version
16519# flags to be left without arguments
16520need_version=unknown
16521
16522case $host_os in
16523aix3*)
cristy99bd5232011-12-07 14:38:20 +000016524 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016525 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16526 shlibpath_var=LIBPATH
16527
16528 # AIX 3 has no versioning support, so we append a major version to the name.
16529 soname_spec='${libname}${release}${shared_ext}$major'
16530 ;;
16531
16532aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016533 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016534 need_lib_prefix=no
16535 need_version=no
16536 hardcode_into_libs=yes
16537 if test "$host_cpu" = ia64; then
16538 # AIX 5 supports IA64
16539 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16540 shlibpath_var=LD_LIBRARY_PATH
16541 else
16542 # With GCC up to 2.95.x, collect2 would create an import file
16543 # for dependence libraries. The import file would start with
16544 # the line `#! .'. This would cause the generated library to
16545 # depend on `.', always an invalid library. This was fixed in
16546 # development snapshots of GCC prior to 3.0.
16547 case $host_os in
16548 aix4 | aix4.[01] | aix4.[01].*)
16549 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16550 echo ' yes '
16551 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16552 :
16553 else
16554 can_build_shared=no
16555 fi
16556 ;;
16557 esac
16558 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16559 # soname into executable. Probably we can add versioning support to
16560 # collect2, so additional links can be useful in future.
16561 if test "$aix_use_runtimelinking" = yes; then
16562 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16563 # instead of lib<name>.a to let people know that these are not
16564 # typical AIX shared libraries.
16565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16566 else
16567 # We preserve .a as extension for shared libraries through AIX4.2
16568 # and later when we are not doing run time linking.
16569 library_names_spec='${libname}${release}.a $libname.a'
16570 soname_spec='${libname}${release}${shared_ext}$major'
16571 fi
16572 shlibpath_var=LIBPATH
16573 fi
16574 ;;
16575
16576amigaos*)
16577 case $host_cpu in
16578 powerpc)
16579 # Since July 2007 AmigaOS4 officially supports .so libraries.
16580 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16582 ;;
16583 m68k)
16584 library_names_spec='$libname.ixlibrary $libname.a'
16585 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016586 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 +000016587 ;;
16588 esac
16589 ;;
16590
16591beos*)
16592 library_names_spec='${libname}${shared_ext}'
16593 dynamic_linker="$host_os ld.so"
16594 shlibpath_var=LIBRARY_PATH
16595 ;;
16596
16597bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016598 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016599 need_version=no
16600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16601 soname_spec='${libname}${release}${shared_ext}$major'
16602 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16603 shlibpath_var=LD_LIBRARY_PATH
16604 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16605 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16606 # the default ld.so.conf also contains /usr/contrib/lib and
16607 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16608 # libtool to hard-code these into programs
16609 ;;
16610
16611cygwin* | mingw* | pw32* | cegcc*)
16612 version_type=windows
16613 shrext_cmds=".dll"
16614 need_version=no
16615 need_lib_prefix=no
16616
cristyda16f162011-02-19 23:52:17 +000016617 case $GCC,$cc_basename in
16618 yes,*)
16619 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016620 library_names_spec='$libname.dll.a'
16621 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16622 postinstall_cmds='base_file=`basename \${file}`~
16623 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16624 dldir=$destdir/`dirname \$dlpath`~
16625 test -d \$dldir || mkdir -p \$dldir~
16626 $install_prog $dir/$dlname \$dldir/$dlname~
16627 chmod a+x \$dldir/$dlname~
16628 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16629 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16630 fi'
16631 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16632 dlpath=$dir/\$dldll~
16633 $RM \$dlpath'
16634 shlibpath_overrides_runpath=yes
16635
16636 case $host_os in
16637 cygwin*)
16638 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16639 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016640
16641 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016642 ;;
16643 mingw* | cegcc*)
16644 # MinGW DLLs use traditional 'lib' prefix
16645 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016646 ;;
16647 pw32*)
16648 # pw32 DLLs use 'pw' prefix rather than 'lib'
16649 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16650 ;;
16651 esac
cristyda16f162011-02-19 23:52:17 +000016652 dynamic_linker='Win32 ld.exe'
16653 ;;
16654
16655 *,cl*)
16656 # Native MSVC
16657 libname_spec='$name'
16658 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16659 library_names_spec='${libname}.dll.lib'
16660
16661 case $build_os in
16662 mingw*)
16663 sys_lib_search_path_spec=
16664 lt_save_ifs=$IFS
16665 IFS=';'
16666 for lt_path in $LIB
16667 do
16668 IFS=$lt_save_ifs
16669 # Let DOS variable expansion print the short 8.3 style file name.
16670 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16671 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16672 done
16673 IFS=$lt_save_ifs
16674 # Convert to MSYS style.
16675 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16676 ;;
16677 cygwin*)
16678 # Convert to unix form, then to dos form, then back to unix form
16679 # but this time dos style (no spaces!) so that the unix form looks
16680 # like /cygdrive/c/PROGRA~1:/cygdr...
16681 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16682 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16683 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16684 ;;
16685 *)
16686 sys_lib_search_path_spec="$LIB"
16687 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16688 # It is most probably a Windows format PATH.
16689 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16690 else
16691 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16692 fi
16693 # FIXME: find the short name or the path components, as spaces are
16694 # common. (e.g. "Program Files" -> "PROGRA~1")
16695 ;;
16696 esac
16697
16698 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16699 postinstall_cmds='base_file=`basename \${file}`~
16700 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16701 dldir=$destdir/`dirname \$dlpath`~
16702 test -d \$dldir || mkdir -p \$dldir~
16703 $install_prog $dir/$dlname \$dldir/$dlname'
16704 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16705 dlpath=$dir/\$dldll~
16706 $RM \$dlpath'
16707 shlibpath_overrides_runpath=yes
16708 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016709 ;;
16710
16711 *)
cristyda16f162011-02-19 23:52:17 +000016712 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016713 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016714 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016715 ;;
16716 esac
cristy73bd4a52010-10-05 11:24:23 +000016717 # FIXME: first we should search . and the directory the executable is in
16718 shlibpath_var=PATH
16719 ;;
16720
16721darwin* | rhapsody*)
16722 dynamic_linker="$host_os dyld"
16723 version_type=darwin
16724 need_lib_prefix=no
16725 need_version=no
16726 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16727 soname_spec='${libname}${release}${major}$shared_ext'
16728 shlibpath_overrides_runpath=yes
16729 shlibpath_var=DYLD_LIBRARY_PATH
16730 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16731
16732 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16733 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16734 ;;
16735
16736dgux*)
cristy99bd5232011-12-07 14:38:20 +000016737 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016738 need_lib_prefix=no
16739 need_version=no
16740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16741 soname_spec='${libname}${release}${shared_ext}$major'
16742 shlibpath_var=LD_LIBRARY_PATH
16743 ;;
16744
cristy73bd4a52010-10-05 11:24:23 +000016745freebsd* | dragonfly*)
16746 # DragonFly does not have aout. When/if they implement a new
16747 # versioning mechanism, adjust this.
16748 if test -x /usr/bin/objformat; then
16749 objformat=`/usr/bin/objformat`
16750 else
16751 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016752 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016753 *) objformat=elf ;;
16754 esac
16755 fi
16756 version_type=freebsd-$objformat
16757 case $version_type in
16758 freebsd-elf*)
16759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16760 need_version=no
16761 need_lib_prefix=no
16762 ;;
16763 freebsd-*)
16764 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16765 need_version=yes
16766 ;;
16767 esac
16768 shlibpath_var=LD_LIBRARY_PATH
16769 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016770 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016771 shlibpath_overrides_runpath=yes
16772 ;;
16773 freebsd3.[01]* | freebsdelf3.[01]*)
16774 shlibpath_overrides_runpath=yes
16775 hardcode_into_libs=yes
16776 ;;
16777 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16778 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16779 shlibpath_overrides_runpath=no
16780 hardcode_into_libs=yes
16781 ;;
16782 *) # from 4.6 on, and DragonFly
16783 shlibpath_overrides_runpath=yes
16784 hardcode_into_libs=yes
16785 ;;
16786 esac
16787 ;;
16788
16789gnu*)
cristy99bd5232011-12-07 14:38:20 +000016790 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016791 need_lib_prefix=no
16792 need_version=no
16793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16794 soname_spec='${libname}${release}${shared_ext}$major'
16795 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016796 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016797 hardcode_into_libs=yes
16798 ;;
16799
cristy0c60a692010-11-04 01:09:47 +000016800haiku*)
cristy99bd5232011-12-07 14:38:20 +000016801 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016802 need_lib_prefix=no
16803 need_version=no
16804 dynamic_linker="$host_os runtime_loader"
16805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16806 soname_spec='${libname}${release}${shared_ext}$major'
16807 shlibpath_var=LIBRARY_PATH
16808 shlibpath_overrides_runpath=yes
16809 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16810 hardcode_into_libs=yes
16811 ;;
16812
cristy73bd4a52010-10-05 11:24:23 +000016813hpux9* | hpux10* | hpux11*)
16814 # Give a soname corresponding to the major version so that dld.sl refuses to
16815 # link against other versions.
16816 version_type=sunos
16817 need_lib_prefix=no
16818 need_version=no
16819 case $host_cpu in
16820 ia64*)
16821 shrext_cmds='.so'
16822 hardcode_into_libs=yes
16823 dynamic_linker="$host_os dld.so"
16824 shlibpath_var=LD_LIBRARY_PATH
16825 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827 soname_spec='${libname}${release}${shared_ext}$major'
16828 if test "X$HPUX_IA64_MODE" = X32; then
16829 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16830 else
16831 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16832 fi
16833 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16834 ;;
16835 hppa*64*)
16836 shrext_cmds='.sl'
16837 hardcode_into_libs=yes
16838 dynamic_linker="$host_os dld.sl"
16839 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16840 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16842 soname_spec='${libname}${release}${shared_ext}$major'
16843 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16844 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16845 ;;
16846 *)
16847 shrext_cmds='.sl'
16848 dynamic_linker="$host_os dld.sl"
16849 shlibpath_var=SHLIB_PATH
16850 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16852 soname_spec='${libname}${release}${shared_ext}$major'
16853 ;;
16854 esac
cristy0c60a692010-11-04 01:09:47 +000016855 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016856 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016857 # or fails outright, so override atomically:
16858 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016859 ;;
16860
16861interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016862 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016863 need_lib_prefix=no
16864 need_version=no
16865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16866 soname_spec='${libname}${release}${shared_ext}$major'
16867 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16868 shlibpath_var=LD_LIBRARY_PATH
16869 shlibpath_overrides_runpath=no
16870 hardcode_into_libs=yes
16871 ;;
16872
16873irix5* | irix6* | nonstopux*)
16874 case $host_os in
16875 nonstopux*) version_type=nonstopux ;;
16876 *)
16877 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016878 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016879 else
16880 version_type=irix
16881 fi ;;
16882 esac
16883 need_lib_prefix=no
16884 need_version=no
16885 soname_spec='${libname}${release}${shared_ext}$major'
16886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16887 case $host_os in
16888 irix5* | nonstopux*)
16889 libsuff= shlibsuff=
16890 ;;
16891 *)
16892 case $LD in # libtool.m4 will add one of these switches to LD
16893 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16894 libsuff= shlibsuff= libmagic=32-bit;;
16895 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16896 libsuff=32 shlibsuff=N32 libmagic=N32;;
16897 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16898 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16899 *) libsuff= shlibsuff= libmagic=never-match;;
16900 esac
16901 ;;
16902 esac
16903 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16904 shlibpath_overrides_runpath=no
16905 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16906 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16907 hardcode_into_libs=yes
16908 ;;
16909
16910# No shared lib support for Linux oldld, aout, or coff.
16911linux*oldld* | linux*aout* | linux*coff*)
16912 dynamic_linker=no
16913 ;;
16914
cristy99bd5232011-12-07 14:38:20 +000016915# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016916linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016917 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016918 need_lib_prefix=no
16919 need_version=no
16920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16921 soname_spec='${libname}${release}${shared_ext}$major'
16922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16923 shlibpath_var=LD_LIBRARY_PATH
16924 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016925
cristy73bd4a52010-10-05 11:24:23 +000016926 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016927 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016928 $as_echo_n "(cached) " >&6
16929else
16930 lt_cv_shlibpath_overrides_runpath=no
16931 save_LDFLAGS=$LDFLAGS
16932 save_libdir=$libdir
16933 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16934 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016936/* end confdefs.h. */
16937
16938int
16939main ()
16940{
16941
16942 ;
16943 return 0;
16944}
16945_ACEOF
16946if ac_fn_c_try_link "$LINENO"; then :
16947 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016948 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016949fi
16950fi
16951rm -f core conftest.err conftest.$ac_objext \
16952 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016953 LDFLAGS=$save_LDFLAGS
16954 libdir=$save_libdir
16955
16956fi
16957
16958 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016959
16960 # This implies no fast_install, which is unacceptable.
16961 # Some rework will be needed to allow for fast_install
16962 # before this can be enabled.
16963 hardcode_into_libs=yes
16964
16965 # Add ABI-specific directories to the system library path.
16966 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16967
16968 # Append ld.so.conf contents to the search path
16969 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016970 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 +000016971 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016972
cristy73bd4a52010-10-05 11:24:23 +000016973 fi
16974
16975 # We used to test for /lib/ld.so.1 and disable shared libraries on
16976 # powerpc, because MkLinux only supported shared libraries with the
16977 # GNU dynamic linker. Since this was broken with cross compilers,
16978 # most powerpc-linux boxes support dynamic linking these days and
16979 # people can always --disable-shared, the test was removed, and we
16980 # assume the GNU/Linux dynamic linker is in use.
16981 dynamic_linker='GNU/Linux ld.so'
16982 ;;
16983
16984netbsd*)
16985 version_type=sunos
16986 need_lib_prefix=no
16987 need_version=no
16988 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16991 dynamic_linker='NetBSD (a.out) ld.so'
16992 else
16993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16994 soname_spec='${libname}${release}${shared_ext}$major'
16995 dynamic_linker='NetBSD ld.elf_so'
16996 fi
16997 shlibpath_var=LD_LIBRARY_PATH
16998 shlibpath_overrides_runpath=yes
16999 hardcode_into_libs=yes
17000 ;;
17001
17002newsos6)
cristy99bd5232011-12-07 14:38:20 +000017003 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005 shlibpath_var=LD_LIBRARY_PATH
17006 shlibpath_overrides_runpath=yes
17007 ;;
17008
17009*nto* | *qnx*)
17010 version_type=qnx
17011 need_lib_prefix=no
17012 need_version=no
17013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17014 soname_spec='${libname}${release}${shared_ext}$major'
17015 shlibpath_var=LD_LIBRARY_PATH
17016 shlibpath_overrides_runpath=no
17017 hardcode_into_libs=yes
17018 dynamic_linker='ldqnx.so'
17019 ;;
17020
17021openbsd*)
17022 version_type=sunos
17023 sys_lib_dlsearch_path_spec="/usr/lib"
17024 need_lib_prefix=no
17025 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17026 case $host_os in
17027 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17028 *) need_version=no ;;
17029 esac
17030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17032 shlibpath_var=LD_LIBRARY_PATH
17033 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17034 case $host_os in
17035 openbsd2.[89] | openbsd2.[89].*)
17036 shlibpath_overrides_runpath=no
17037 ;;
17038 *)
17039 shlibpath_overrides_runpath=yes
17040 ;;
17041 esac
17042 else
17043 shlibpath_overrides_runpath=yes
17044 fi
17045 ;;
17046
17047os2*)
17048 libname_spec='$name'
17049 shrext_cmds=".dll"
17050 need_lib_prefix=no
17051 library_names_spec='$libname${shared_ext} $libname.a'
17052 dynamic_linker='OS/2 ld.exe'
17053 shlibpath_var=LIBPATH
17054 ;;
17055
17056osf3* | osf4* | osf5*)
17057 version_type=osf
17058 need_lib_prefix=no
17059 need_version=no
17060 soname_spec='${libname}${release}${shared_ext}$major'
17061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17062 shlibpath_var=LD_LIBRARY_PATH
17063 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17064 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17065 ;;
17066
17067rdos*)
17068 dynamic_linker=no
17069 ;;
17070
17071solaris*)
cristy99bd5232011-12-07 14:38:20 +000017072 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017073 need_lib_prefix=no
17074 need_version=no
17075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17076 soname_spec='${libname}${release}${shared_ext}$major'
17077 shlibpath_var=LD_LIBRARY_PATH
17078 shlibpath_overrides_runpath=yes
17079 hardcode_into_libs=yes
17080 # ldd complains unless libraries are executable
17081 postinstall_cmds='chmod +x $lib'
17082 ;;
17083
17084sunos4*)
17085 version_type=sunos
17086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17087 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17088 shlibpath_var=LD_LIBRARY_PATH
17089 shlibpath_overrides_runpath=yes
17090 if test "$with_gnu_ld" = yes; then
17091 need_lib_prefix=no
17092 fi
17093 need_version=yes
17094 ;;
17095
17096sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017097 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099 soname_spec='${libname}${release}${shared_ext}$major'
17100 shlibpath_var=LD_LIBRARY_PATH
17101 case $host_vendor in
17102 sni)
17103 shlibpath_overrides_runpath=no
17104 need_lib_prefix=no
17105 runpath_var=LD_RUN_PATH
17106 ;;
17107 siemens)
17108 need_lib_prefix=no
17109 ;;
17110 motorola)
17111 need_lib_prefix=no
17112 need_version=no
17113 shlibpath_overrides_runpath=no
17114 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17115 ;;
17116 esac
17117 ;;
17118
17119sysv4*MP*)
17120 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017121 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017122 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17123 soname_spec='$libname${shared_ext}.$major'
17124 shlibpath_var=LD_LIBRARY_PATH
17125 fi
17126 ;;
17127
17128sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17129 version_type=freebsd-elf
17130 need_lib_prefix=no
17131 need_version=no
17132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17133 soname_spec='${libname}${release}${shared_ext}$major'
17134 shlibpath_var=LD_LIBRARY_PATH
17135 shlibpath_overrides_runpath=yes
17136 hardcode_into_libs=yes
17137 if test "$with_gnu_ld" = yes; then
17138 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17139 else
17140 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17141 case $host_os in
17142 sco3.2v5*)
17143 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17144 ;;
17145 esac
17146 fi
17147 sys_lib_dlsearch_path_spec='/usr/lib'
17148 ;;
17149
17150tpf*)
17151 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017152 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017153 need_lib_prefix=no
17154 need_version=no
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156 shlibpath_var=LD_LIBRARY_PATH
17157 shlibpath_overrides_runpath=no
17158 hardcode_into_libs=yes
17159 ;;
17160
17161uts4*)
cristy99bd5232011-12-07 14:38:20 +000017162 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17164 soname_spec='${libname}${release}${shared_ext}$major'
17165 shlibpath_var=LD_LIBRARY_PATH
17166 ;;
17167
17168*)
17169 dynamic_linker=no
17170 ;;
17171esac
17172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17173$as_echo "$dynamic_linker" >&6; }
17174test "$dynamic_linker" = no && can_build_shared=no
17175
17176variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17177if test "$GCC" = yes; then
17178 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17179fi
17180
17181if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17182 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17183fi
17184if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17185 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17186fi
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
17267
17268
17269
17270
17271
17272
17273
cristy0c60a692010-11-04 01:09:47 +000017274
17275
17276
17277
17278
cristy73bd4a52010-10-05 11:24:23 +000017279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17280$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17281hardcode_action=
17282if test -n "$hardcode_libdir_flag_spec" ||
17283 test -n "$runpath_var" ||
17284 test "X$hardcode_automatic" = "Xyes" ; then
17285
17286 # We can hardcode non-existent directories.
17287 if test "$hardcode_direct" != no &&
17288 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17289 # have to relink, otherwise we might link with an installed library
17290 # when we should be linking with a yet-to-be-installed one
17291 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17292 test "$hardcode_minus_L" != no; then
17293 # Linking always hardcodes the temporary library directory.
17294 hardcode_action=relink
17295 else
17296 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17297 hardcode_action=immediate
17298 fi
17299else
17300 # We cannot hardcode anything, or else we can only hardcode existing
17301 # directories.
17302 hardcode_action=unsupported
17303fi
17304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17305$as_echo "$hardcode_action" >&6; }
17306
17307if test "$hardcode_action" = relink ||
17308 test "$inherit_rpath" = yes; then
17309 # Fast installation is not supported
17310 enable_fast_install=no
17311elif test "$shlibpath_overrides_runpath" = yes ||
17312 test "$enable_shared" = no; then
17313 # Fast installation is not necessary
17314 enable_fast_install=needless
17315fi
17316
17317
17318
17319
17320
17321
17322 if test "x$enable_dlopen" != xyes; then
17323 enable_dlopen=unknown
17324 enable_dlopen_self=unknown
17325 enable_dlopen_self_static=unknown
17326else
17327 lt_cv_dlopen=no
17328 lt_cv_dlopen_libs=
17329
17330 case $host_os in
17331 beos*)
17332 lt_cv_dlopen="load_add_on"
17333 lt_cv_dlopen_libs=
17334 lt_cv_dlopen_self=yes
17335 ;;
17336
17337 mingw* | pw32* | cegcc*)
17338 lt_cv_dlopen="LoadLibrary"
17339 lt_cv_dlopen_libs=
17340 ;;
17341
17342 cygwin*)
17343 lt_cv_dlopen="dlopen"
17344 lt_cv_dlopen_libs=
17345 ;;
17346
17347 darwin*)
17348 # if libdl is installed we need to link against it
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17350$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017351if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017352 $as_echo_n "(cached) " >&6
17353else
17354 ac_check_lib_save_LIBS=$LIBS
17355LIBS="-ldl $LIBS"
17356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17357/* end confdefs.h. */
17358
17359/* Override any GCC internal prototype to avoid an error.
17360 Use char because int might match the return type of a GCC
17361 builtin and then its argument prototype would still apply. */
17362#ifdef __cplusplus
17363extern "C"
17364#endif
17365char dlopen ();
17366int
17367main ()
17368{
17369return dlopen ();
17370 ;
17371 return 0;
17372}
17373_ACEOF
17374if ac_fn_c_try_link "$LINENO"; then :
17375 ac_cv_lib_dl_dlopen=yes
17376else
17377 ac_cv_lib_dl_dlopen=no
17378fi
17379rm -f core conftest.err conftest.$ac_objext \
17380 conftest$ac_exeext conftest.$ac_ext
17381LIBS=$ac_check_lib_save_LIBS
17382fi
17383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17384$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017385if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017386 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17387else
17388
17389 lt_cv_dlopen="dyld"
17390 lt_cv_dlopen_libs=
17391 lt_cv_dlopen_self=yes
17392
17393fi
17394
17395 ;;
17396
17397 *)
17398 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017399if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017400 lt_cv_dlopen="shl_load"
17401else
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17403$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017404if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017405 $as_echo_n "(cached) " >&6
17406else
17407 ac_check_lib_save_LIBS=$LIBS
17408LIBS="-ldld $LIBS"
17409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410/* end confdefs.h. */
17411
17412/* Override any GCC internal prototype to avoid an error.
17413 Use char because int might match the return type of a GCC
17414 builtin and then its argument prototype would still apply. */
17415#ifdef __cplusplus
17416extern "C"
17417#endif
17418char shl_load ();
17419int
17420main ()
17421{
17422return shl_load ();
17423 ;
17424 return 0;
17425}
17426_ACEOF
17427if ac_fn_c_try_link "$LINENO"; then :
17428 ac_cv_lib_dld_shl_load=yes
17429else
17430 ac_cv_lib_dld_shl_load=no
17431fi
17432rm -f core conftest.err conftest.$ac_objext \
17433 conftest$ac_exeext conftest.$ac_ext
17434LIBS=$ac_check_lib_save_LIBS
17435fi
17436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17437$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017438if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017439 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17440else
17441 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017442if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017443 lt_cv_dlopen="dlopen"
17444else
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17446$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017447if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017448 $as_echo_n "(cached) " >&6
17449else
17450 ac_check_lib_save_LIBS=$LIBS
17451LIBS="-ldl $LIBS"
17452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17453/* end confdefs.h. */
17454
17455/* Override any GCC internal prototype to avoid an error.
17456 Use char because int might match the return type of a GCC
17457 builtin and then its argument prototype would still apply. */
17458#ifdef __cplusplus
17459extern "C"
17460#endif
17461char dlopen ();
17462int
17463main ()
17464{
17465return dlopen ();
17466 ;
17467 return 0;
17468}
17469_ACEOF
17470if ac_fn_c_try_link "$LINENO"; then :
17471 ac_cv_lib_dl_dlopen=yes
17472else
17473 ac_cv_lib_dl_dlopen=no
17474fi
17475rm -f core conftest.err conftest.$ac_objext \
17476 conftest$ac_exeext conftest.$ac_ext
17477LIBS=$ac_check_lib_save_LIBS
17478fi
17479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17480$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017481if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017482 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17483else
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17485$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017486if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017487 $as_echo_n "(cached) " >&6
17488else
17489 ac_check_lib_save_LIBS=$LIBS
17490LIBS="-lsvld $LIBS"
17491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492/* end confdefs.h. */
17493
17494/* Override any GCC internal prototype to avoid an error.
17495 Use char because int might match the return type of a GCC
17496 builtin and then its argument prototype would still apply. */
17497#ifdef __cplusplus
17498extern "C"
17499#endif
17500char dlopen ();
17501int
17502main ()
17503{
17504return dlopen ();
17505 ;
17506 return 0;
17507}
17508_ACEOF
17509if ac_fn_c_try_link "$LINENO"; then :
17510 ac_cv_lib_svld_dlopen=yes
17511else
17512 ac_cv_lib_svld_dlopen=no
17513fi
17514rm -f core conftest.err conftest.$ac_objext \
17515 conftest$ac_exeext conftest.$ac_ext
17516LIBS=$ac_check_lib_save_LIBS
17517fi
17518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17519$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017520if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017521 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17522else
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17524$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017525if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017526 $as_echo_n "(cached) " >&6
17527else
17528 ac_check_lib_save_LIBS=$LIBS
17529LIBS="-ldld $LIBS"
17530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531/* end confdefs.h. */
17532
17533/* Override any GCC internal prototype to avoid an error.
17534 Use char because int might match the return type of a GCC
17535 builtin and then its argument prototype would still apply. */
17536#ifdef __cplusplus
17537extern "C"
17538#endif
17539char dld_link ();
17540int
17541main ()
17542{
17543return dld_link ();
17544 ;
17545 return 0;
17546}
17547_ACEOF
17548if ac_fn_c_try_link "$LINENO"; then :
17549 ac_cv_lib_dld_dld_link=yes
17550else
17551 ac_cv_lib_dld_dld_link=no
17552fi
17553rm -f core conftest.err conftest.$ac_objext \
17554 conftest$ac_exeext conftest.$ac_ext
17555LIBS=$ac_check_lib_save_LIBS
17556fi
17557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17558$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017559if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017560 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17561fi
17562
17563
17564fi
17565
17566
17567fi
17568
17569
17570fi
17571
17572
17573fi
17574
17575
17576fi
17577
17578 ;;
17579 esac
17580
17581 if test "x$lt_cv_dlopen" != xno; then
17582 enable_dlopen=yes
17583 else
17584 enable_dlopen=no
17585 fi
17586
17587 case $lt_cv_dlopen in
17588 dlopen)
17589 save_CPPFLAGS="$CPPFLAGS"
17590 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17591
17592 save_LDFLAGS="$LDFLAGS"
17593 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17594
17595 save_LIBS="$LIBS"
17596 LIBS="$lt_cv_dlopen_libs $LIBS"
17597
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17599$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017600if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017601 $as_echo_n "(cached) " >&6
17602else
17603 if test "$cross_compiling" = yes; then :
17604 lt_cv_dlopen_self=cross
17605else
17606 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17607 lt_status=$lt_dlunknown
17608 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017609#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017610#include "confdefs.h"
17611
17612#if HAVE_DLFCN_H
17613#include <dlfcn.h>
17614#endif
17615
17616#include <stdio.h>
17617
17618#ifdef RTLD_GLOBAL
17619# define LT_DLGLOBAL RTLD_GLOBAL
17620#else
17621# ifdef DL_GLOBAL
17622# define LT_DLGLOBAL DL_GLOBAL
17623# else
17624# define LT_DLGLOBAL 0
17625# endif
17626#endif
17627
17628/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17629 find out it does not work in some platform. */
17630#ifndef LT_DLLAZY_OR_NOW
17631# ifdef RTLD_LAZY
17632# define LT_DLLAZY_OR_NOW RTLD_LAZY
17633# else
17634# ifdef DL_LAZY
17635# define LT_DLLAZY_OR_NOW DL_LAZY
17636# else
17637# ifdef RTLD_NOW
17638# define LT_DLLAZY_OR_NOW RTLD_NOW
17639# else
17640# ifdef DL_NOW
17641# define LT_DLLAZY_OR_NOW DL_NOW
17642# else
17643# define LT_DLLAZY_OR_NOW 0
17644# endif
17645# endif
17646# endif
17647# endif
17648#endif
17649
cristy0c60a692010-11-04 01:09:47 +000017650/* When -fvisbility=hidden is used, assume the code has been annotated
17651 correspondingly for the symbols needed. */
17652#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017653int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017654#endif
17655
cristyda16f162011-02-19 23:52:17 +000017656int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017657int main ()
17658{
17659 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17660 int status = $lt_dlunknown;
17661
17662 if (self)
17663 {
17664 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017665 else
17666 {
17667 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17668 else puts (dlerror ());
17669 }
cristy73bd4a52010-10-05 11:24:23 +000017670 /* dlclose (self); */
17671 }
17672 else
17673 puts (dlerror ());
17674
17675 return status;
17676}
17677_LT_EOF
17678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17679 (eval $ac_link) 2>&5
17680 ac_status=$?
17681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17682 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17683 (./conftest; exit; ) >&5 2>/dev/null
17684 lt_status=$?
17685 case x$lt_status in
17686 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17687 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17688 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17689 esac
17690 else :
17691 # compilation failed
17692 lt_cv_dlopen_self=no
17693 fi
17694fi
17695rm -fr conftest*
17696
17697
17698fi
17699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17700$as_echo "$lt_cv_dlopen_self" >&6; }
17701
17702 if test "x$lt_cv_dlopen_self" = xyes; then
17703 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17705$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017706if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017707 $as_echo_n "(cached) " >&6
17708else
17709 if test "$cross_compiling" = yes; then :
17710 lt_cv_dlopen_self_static=cross
17711else
17712 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17713 lt_status=$lt_dlunknown
17714 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017715#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017716#include "confdefs.h"
17717
17718#if HAVE_DLFCN_H
17719#include <dlfcn.h>
17720#endif
17721
17722#include <stdio.h>
17723
17724#ifdef RTLD_GLOBAL
17725# define LT_DLGLOBAL RTLD_GLOBAL
17726#else
17727# ifdef DL_GLOBAL
17728# define LT_DLGLOBAL DL_GLOBAL
17729# else
17730# define LT_DLGLOBAL 0
17731# endif
17732#endif
17733
17734/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17735 find out it does not work in some platform. */
17736#ifndef LT_DLLAZY_OR_NOW
17737# ifdef RTLD_LAZY
17738# define LT_DLLAZY_OR_NOW RTLD_LAZY
17739# else
17740# ifdef DL_LAZY
17741# define LT_DLLAZY_OR_NOW DL_LAZY
17742# else
17743# ifdef RTLD_NOW
17744# define LT_DLLAZY_OR_NOW RTLD_NOW
17745# else
17746# ifdef DL_NOW
17747# define LT_DLLAZY_OR_NOW DL_NOW
17748# else
17749# define LT_DLLAZY_OR_NOW 0
17750# endif
17751# endif
17752# endif
17753# endif
17754#endif
17755
cristy0c60a692010-11-04 01:09:47 +000017756/* When -fvisbility=hidden is used, assume the code has been annotated
17757 correspondingly for the symbols needed. */
17758#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017759int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017760#endif
17761
cristyda16f162011-02-19 23:52:17 +000017762int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017763int main ()
17764{
17765 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17766 int status = $lt_dlunknown;
17767
17768 if (self)
17769 {
17770 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017771 else
17772 {
17773 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17774 else puts (dlerror ());
17775 }
cristy73bd4a52010-10-05 11:24:23 +000017776 /* dlclose (self); */
17777 }
17778 else
17779 puts (dlerror ());
17780
17781 return status;
17782}
17783_LT_EOF
17784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17785 (eval $ac_link) 2>&5
17786 ac_status=$?
17787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17788 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17789 (./conftest; exit; ) >&5 2>/dev/null
17790 lt_status=$?
17791 case x$lt_status in
17792 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17793 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17794 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17795 esac
17796 else :
17797 # compilation failed
17798 lt_cv_dlopen_self_static=no
17799 fi
17800fi
17801rm -fr conftest*
17802
17803
17804fi
17805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17806$as_echo "$lt_cv_dlopen_self_static" >&6; }
17807 fi
17808
17809 CPPFLAGS="$save_CPPFLAGS"
17810 LDFLAGS="$save_LDFLAGS"
17811 LIBS="$save_LIBS"
17812 ;;
17813 esac
17814
17815 case $lt_cv_dlopen_self in
17816 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17817 *) enable_dlopen_self=unknown ;;
17818 esac
17819
17820 case $lt_cv_dlopen_self_static in
17821 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17822 *) enable_dlopen_self_static=unknown ;;
17823 esac
17824fi
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842striplib=
17843old_striplib=
17844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17845$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17846if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17847 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17848 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17850$as_echo "yes" >&6; }
17851else
17852# FIXME - insert some real tests, host_os isn't really good enough
17853 case $host_os in
17854 darwin*)
17855 if test -n "$STRIP" ; then
17856 striplib="$STRIP -x"
17857 old_striplib="$STRIP -S"
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17859$as_echo "yes" >&6; }
17860 else
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17862$as_echo "no" >&6; }
17863 fi
17864 ;;
17865 *)
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17867$as_echo "no" >&6; }
17868 ;;
17869 esac
17870fi
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883 # Report which library types will actually be built
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17885$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17887$as_echo "$can_build_shared" >&6; }
17888
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17890$as_echo_n "checking whether to build shared libraries... " >&6; }
17891 test "$can_build_shared" = "no" && enable_shared=no
17892
17893 # On AIX, shared libraries and static libraries use the same namespace, and
17894 # are all built from PIC.
17895 case $host_os in
17896 aix3*)
17897 test "$enable_shared" = yes && enable_static=no
17898 if test -n "$RANLIB"; then
17899 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17900 postinstall_cmds='$RANLIB $lib'
17901 fi
17902 ;;
17903
17904 aix[4-9]*)
17905 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17906 test "$enable_shared" = yes && enable_static=no
17907 fi
17908 ;;
17909 esac
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17911$as_echo "$enable_shared" >&6; }
17912
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17914$as_echo_n "checking whether to build static libraries... " >&6; }
17915 # Make sure either enable_shared or enable_static is yes.
17916 test "$enable_shared" = yes || enable_static=yes
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17918$as_echo "$enable_static" >&6; }
17919
17920
17921
17922
17923fi
17924ac_ext=c
17925ac_cpp='$CPP $CPPFLAGS'
17926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17928ac_compiler_gnu=$ac_cv_c_compiler_gnu
17929
17930CC="$lt_save_CC"
17931
cristy0c60a692010-11-04 01:09:47 +000017932 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17933 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17934 (test "X$CXX" != "Xg++"))) ; then
17935 ac_ext=cpp
17936ac_cpp='$CXXCPP $CPPFLAGS'
17937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17941$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17942if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017943 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017944 $as_echo_n "(cached) " >&6
17945else
17946 # Double quotes because CXXCPP needs to be expanded
17947 for CXXCPP in "$CXX -E" "/lib/cpp"
17948 do
17949 ac_preproc_ok=false
17950for ac_cxx_preproc_warn_flag in '' yes
17951do
17952 # Use a header file that comes with gcc, so configuring glibc
17953 # with a fresh cross-compiler works.
17954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17955 # <limits.h> exists even on freestanding compilers.
17956 # On the NeXT, cc -E runs the code through the compiler's parser,
17957 # not just through cpp. "Syntax error" is here to catch this case.
17958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17959/* end confdefs.h. */
17960#ifdef __STDC__
17961# include <limits.h>
17962#else
17963# include <assert.h>
17964#endif
17965 Syntax error
17966_ACEOF
17967if ac_fn_cxx_try_cpp "$LINENO"; then :
17968
17969else
17970 # Broken: fails on valid input.
17971continue
17972fi
cristyda16f162011-02-19 23:52:17 +000017973rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017974
17975 # OK, works on sane cases. Now check whether nonexistent headers
17976 # can be detected and how.
17977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17978/* end confdefs.h. */
17979#include <ac_nonexistent.h>
17980_ACEOF
17981if ac_fn_cxx_try_cpp "$LINENO"; then :
17982 # Broken: success on invalid input.
17983continue
17984else
17985 # Passes both tests.
17986ac_preproc_ok=:
17987break
17988fi
cristyda16f162011-02-19 23:52:17 +000017989rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017990
17991done
17992# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017993rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017994if $ac_preproc_ok; then :
17995 break
17996fi
17997
17998 done
17999 ac_cv_prog_CXXCPP=$CXXCPP
18000
18001fi
18002 CXXCPP=$ac_cv_prog_CXXCPP
18003else
18004 ac_cv_prog_CXXCPP=$CXXCPP
18005fi
18006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18007$as_echo "$CXXCPP" >&6; }
18008ac_preproc_ok=false
18009for ac_cxx_preproc_warn_flag in '' yes
18010do
18011 # Use a header file that comes with gcc, so configuring glibc
18012 # with a fresh cross-compiler works.
18013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18014 # <limits.h> exists even on freestanding compilers.
18015 # On the NeXT, cc -E runs the code through the compiler's parser,
18016 # not just through cpp. "Syntax error" is here to catch this case.
18017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18018/* end confdefs.h. */
18019#ifdef __STDC__
18020# include <limits.h>
18021#else
18022# include <assert.h>
18023#endif
18024 Syntax error
18025_ACEOF
18026if ac_fn_cxx_try_cpp "$LINENO"; then :
18027
18028else
18029 # Broken: fails on valid input.
18030continue
18031fi
cristyda16f162011-02-19 23:52:17 +000018032rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018033
18034 # OK, works on sane cases. Now check whether nonexistent headers
18035 # can be detected and how.
18036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18037/* end confdefs.h. */
18038#include <ac_nonexistent.h>
18039_ACEOF
18040if ac_fn_cxx_try_cpp "$LINENO"; then :
18041 # Broken: success on invalid input.
18042continue
18043else
18044 # Passes both tests.
18045ac_preproc_ok=:
18046break
18047fi
cristyda16f162011-02-19 23:52:17 +000018048rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018049
18050done
18051# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018052rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018053if $ac_preproc_ok; then :
18054
18055else
18056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18058as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18059See \`config.log' for more details" "$LINENO" 5; }
18060fi
18061
18062ac_ext=c
18063ac_cpp='$CPP $CPPFLAGS'
18064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18066ac_compiler_gnu=$ac_cv_c_compiler_gnu
18067
18068else
18069 _lt_caught_CXX_error=yes
18070fi
cristy73bd4a52010-10-05 11:24:23 +000018071
18072ac_ext=cpp
18073ac_cpp='$CXXCPP $CPPFLAGS'
18074ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18075ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18076ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18077
18078archive_cmds_need_lc_CXX=no
18079allow_undefined_flag_CXX=
18080always_export_symbols_CXX=no
18081archive_expsym_cmds_CXX=
18082compiler_needs_object_CXX=no
18083export_dynamic_flag_spec_CXX=
18084hardcode_direct_CXX=no
18085hardcode_direct_absolute_CXX=no
18086hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018087hardcode_libdir_separator_CXX=
18088hardcode_minus_L_CXX=no
18089hardcode_shlibpath_var_CXX=unsupported
18090hardcode_automatic_CXX=no
18091inherit_rpath_CXX=no
18092module_cmds_CXX=
18093module_expsym_cmds_CXX=
18094link_all_deplibs_CXX=unknown
18095old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018096reload_flag_CXX=$reload_flag
18097reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018098no_undefined_flag_CXX=
18099whole_archive_flag_spec_CXX=
18100enable_shared_with_static_runtimes_CXX=no
18101
18102# Source file extension for C++ test sources.
18103ac_ext=cpp
18104
18105# Object file extension for compiled C++ test sources.
18106objext=o
18107objext_CXX=$objext
18108
18109# No sense in running all these tests if we already determined that
18110# the CXX compiler isn't working. Some variables (like enable_shared)
18111# are currently assumed to apply to all compilers on this platform,
18112# and will be corrupted by setting them based on a non-working compiler.
18113if test "$_lt_caught_CXX_error" != yes; then
18114 # Code to be used in simple compile tests
18115 lt_simple_compile_test_code="int some_variable = 0;"
18116
18117 # Code to be used in simple link tests
18118 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18119
18120 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18121
18122
18123
18124
18125
18126
18127# If no C compiler was specified, use CC.
18128LTCC=${LTCC-"$CC"}
18129
18130# If no C compiler flags were specified, use CFLAGS.
18131LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18132
18133# Allow CC to be a program name with arguments.
18134compiler=$CC
18135
18136
18137 # save warnings/boilerplate of simple test code
18138 ac_outfile=conftest.$ac_objext
18139echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18140eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18141_lt_compiler_boilerplate=`cat conftest.err`
18142$RM conftest*
18143
18144 ac_outfile=conftest.$ac_objext
18145echo "$lt_simple_link_test_code" >conftest.$ac_ext
18146eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18147_lt_linker_boilerplate=`cat conftest.err`
18148$RM -r conftest*
18149
18150
18151 # Allow CC to be a program name with arguments.
18152 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018153 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018154 lt_save_LD=$LD
18155 lt_save_GCC=$GCC
18156 GCC=$GXX
18157 lt_save_with_gnu_ld=$with_gnu_ld
18158 lt_save_path_LD=$lt_cv_path_LD
18159 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18160 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18161 else
18162 $as_unset lt_cv_prog_gnu_ld
18163 fi
18164 if test -n "${lt_cv_path_LDCXX+set}"; then
18165 lt_cv_path_LD=$lt_cv_path_LDCXX
18166 else
18167 $as_unset lt_cv_path_LD
18168 fi
18169 test -z "${LDCXX+set}" || LD=$LDCXX
18170 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018171 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018172 compiler=$CC
18173 compiler_CXX=$CC
18174 for cc_temp in $compiler""; do
18175 case $cc_temp in
18176 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18177 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18178 \-*) ;;
18179 *) break;;
18180 esac
18181done
cristy0c60a692010-11-04 01:09:47 +000018182cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018183
18184
18185 if test -n "$compiler"; then
18186 # We don't want -fno-exception when compiling C++ code, so set the
18187 # no_builtin_flag separately
18188 if test "$GXX" = yes; then
18189 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18190 else
18191 lt_prog_compiler_no_builtin_flag_CXX=
18192 fi
18193
18194 if test "$GXX" = yes; then
18195 # Set up default GNU C++ configuration
18196
18197
18198
18199# Check whether --with-gnu-ld was given.
18200if test "${with_gnu_ld+set}" = set; then :
18201 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18202else
18203 with_gnu_ld=no
18204fi
18205
18206ac_prog=ld
18207if test "$GCC" = yes; then
18208 # Check if gcc -print-prog-name=ld gives a path.
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18210$as_echo_n "checking for ld used by $CC... " >&6; }
18211 case $host in
18212 *-*-mingw*)
18213 # gcc leaves a trailing carriage return which upsets mingw
18214 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18215 *)
18216 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18217 esac
18218 case $ac_prog in
18219 # Accept absolute paths.
18220 [\\/]* | ?:[\\/]*)
18221 re_direlt='/[^/][^/]*/\.\./'
18222 # Canonicalize the pathname of ld
18223 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18224 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18225 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18226 done
18227 test -z "$LD" && LD="$ac_prog"
18228 ;;
18229 "")
18230 # If it fails, then pretend we aren't using GCC.
18231 ac_prog=ld
18232 ;;
18233 *)
18234 # If it is relative, then search for the first ld in PATH.
18235 with_gnu_ld=unknown
18236 ;;
18237 esac
18238elif test "$with_gnu_ld" = yes; then
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18240$as_echo_n "checking for GNU ld... " >&6; }
18241else
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18243$as_echo_n "checking for non-GNU ld... " >&6; }
18244fi
cristyda16f162011-02-19 23:52:17 +000018245if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018246 $as_echo_n "(cached) " >&6
18247else
18248 if test -z "$LD"; then
18249 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18250 for ac_dir in $PATH; do
18251 IFS="$lt_save_ifs"
18252 test -z "$ac_dir" && ac_dir=.
18253 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18254 lt_cv_path_LD="$ac_dir/$ac_prog"
18255 # Check to see if the program is GNU ld. I'd rather use --version,
18256 # but apparently some variants of GNU ld only accept -v.
18257 # Break only if it was the GNU/non-GNU ld that we prefer.
18258 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18259 *GNU* | *'with BFD'*)
18260 test "$with_gnu_ld" != no && break
18261 ;;
18262 *)
18263 test "$with_gnu_ld" != yes && break
18264 ;;
18265 esac
18266 fi
18267 done
18268 IFS="$lt_save_ifs"
18269else
18270 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18271fi
18272fi
18273
18274LD="$lt_cv_path_LD"
18275if test -n "$LD"; then
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18277$as_echo "$LD" >&6; }
18278else
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18280$as_echo "no" >&6; }
18281fi
cristy98dddb52010-11-04 00:30:15 +000018282test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18284$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018285if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018286 $as_echo_n "(cached) " >&6
18287else
18288 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18289case `$LD -v 2>&1 </dev/null` in
18290*GNU* | *'with BFD'*)
18291 lt_cv_prog_gnu_ld=yes
18292 ;;
18293*)
18294 lt_cv_prog_gnu_ld=no
18295 ;;
18296esac
18297fi
18298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18299$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18300with_gnu_ld=$lt_cv_prog_gnu_ld
18301
18302
18303
18304
18305
18306
18307
18308 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18309 # archiving commands below assume that GNU ld is being used.
18310 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018311 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18312 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 +000018313
18314 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18315 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18316
18317 # If archive_cmds runs LD, not CC, wlarc should be empty
18318 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18319 # investigate it a little bit more. (MM)
18320 wlarc='${wl}'
18321
18322 # ancient GNU ld didn't support --whole-archive et. al.
18323 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18324 $GREP 'no-whole-archive' > /dev/null; then
18325 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18326 else
18327 whole_archive_flag_spec_CXX=
18328 fi
18329 else
18330 with_gnu_ld=no
18331 wlarc=
18332
18333 # A generic and very simple default shared library creation
18334 # command for GNU C++ for the case where it uses the native
18335 # linker, instead of GNU ld. If possible, this setting should
18336 # overridden to take advantage of the native linker features on
18337 # the platform it is being used on.
18338 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18339 fi
18340
18341 # Commands to make compiler produce verbose output that lists
18342 # what "hidden" libraries, object files and flags are used when
18343 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018344 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018345
18346 else
18347 GXX=no
18348 with_gnu_ld=no
18349 wlarc=
18350 fi
18351
18352 # PORTME: fill in a description of your system's C++ link characteristics
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18354$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18355 ld_shlibs_CXX=yes
18356 case $host_os in
18357 aix3*)
18358 # FIXME: insert proper C++ library support
18359 ld_shlibs_CXX=no
18360 ;;
18361 aix[4-9]*)
18362 if test "$host_cpu" = ia64; then
18363 # On IA64, the linker does run time linking by default, so we don't
18364 # have to do anything special.
18365 aix_use_runtimelinking=no
18366 exp_sym_flag='-Bexport'
18367 no_entry_flag=""
18368 else
18369 aix_use_runtimelinking=no
18370
18371 # Test if we are trying to use run time linking or normal
18372 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18373 # need to do runtime linking.
18374 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18375 for ld_flag in $LDFLAGS; do
18376 case $ld_flag in
18377 *-brtl*)
18378 aix_use_runtimelinking=yes
18379 break
18380 ;;
18381 esac
18382 done
18383 ;;
18384 esac
18385
18386 exp_sym_flag='-bexport'
18387 no_entry_flag='-bnoentry'
18388 fi
18389
18390 # When large executables or shared objects are built, AIX ld can
18391 # have problems creating the table of contents. If linking a library
18392 # or program results in "error TOC overflow" add -mminimal-toc to
18393 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18394 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18395
18396 archive_cmds_CXX=''
18397 hardcode_direct_CXX=yes
18398 hardcode_direct_absolute_CXX=yes
18399 hardcode_libdir_separator_CXX=':'
18400 link_all_deplibs_CXX=yes
18401 file_list_spec_CXX='${wl}-f,'
18402
18403 if test "$GXX" = yes; then
18404 case $host_os in aix4.[012]|aix4.[012].*)
18405 # We only want to do this on AIX 4.2 and lower, the check
18406 # below for broken collect2 doesn't work under 4.3+
18407 collect2name=`${CC} -print-prog-name=collect2`
18408 if test -f "$collect2name" &&
18409 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18410 then
18411 # We have reworked collect2
18412 :
18413 else
18414 # We have old collect2
18415 hardcode_direct_CXX=unsupported
18416 # It fails to find uninstalled libraries when the uninstalled
18417 # path is not listed in the libpath. Setting hardcode_minus_L
18418 # to unsupported forces relinking
18419 hardcode_minus_L_CXX=yes
18420 hardcode_libdir_flag_spec_CXX='-L$libdir'
18421 hardcode_libdir_separator_CXX=
18422 fi
18423 esac
18424 shared_flag='-shared'
18425 if test "$aix_use_runtimelinking" = yes; then
18426 shared_flag="$shared_flag "'${wl}-G'
18427 fi
18428 else
18429 # not using gcc
18430 if test "$host_cpu" = ia64; then
18431 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18432 # chokes on -Wl,-G. The following line is correct:
18433 shared_flag='-G'
18434 else
18435 if test "$aix_use_runtimelinking" = yes; then
18436 shared_flag='${wl}-G'
18437 else
18438 shared_flag='${wl}-bM:SRE'
18439 fi
18440 fi
18441 fi
18442
18443 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18444 # It seems that -bexpall does not export symbols beginning with
18445 # underscore (_), so it is better to generate a list of symbols to
18446 # export.
18447 always_export_symbols_CXX=yes
18448 if test "$aix_use_runtimelinking" = yes; then
18449 # Warning - without using the other runtime loading flags (-brtl),
18450 # -berok will link without error, but may produce a broken library.
18451 allow_undefined_flag_CXX='-berok'
18452 # Determine the default libpath from the value encoded in an empty
18453 # executable.
cristyda16f162011-02-19 23:52:17 +000018454 if test "${lt_cv_aix_libpath+set}" = set; then
18455 aix_libpath=$lt_cv_aix_libpath
18456else
18457 if ${lt_cv_aix_libpath__CXX+:} false; then :
18458 $as_echo_n "(cached) " >&6
18459else
18460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018461/* end confdefs.h. */
18462
18463int
18464main ()
18465{
18466
18467 ;
18468 return 0;
18469}
18470_ACEOF
18471if ac_fn_cxx_try_link "$LINENO"; then :
18472
cristyda16f162011-02-19 23:52:17 +000018473 lt_aix_libpath_sed='
18474 /Import File Strings/,/^$/ {
18475 /^0/ {
18476 s/^0 *\([^ ]*\) *$/\1/
18477 p
18478 }
18479 }'
18480 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18481 # Check for a 64-bit object if we didn't find anything.
18482 if test -z "$lt_cv_aix_libpath__CXX"; then
18483 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18484 fi
cristy73bd4a52010-10-05 11:24:23 +000018485fi
18486rm -f core conftest.err conftest.$ac_objext \
18487 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018488 if test -z "$lt_cv_aix_libpath__CXX"; then
18489 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18490 fi
18491
18492fi
18493
18494 aix_libpath=$lt_cv_aix_libpath__CXX
18495fi
cristy73bd4a52010-10-05 11:24:23 +000018496
18497 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18498
cristy0c60a692010-11-04 01:09:47 +000018499 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 +000018500 else
18501 if test "$host_cpu" = ia64; then
18502 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18503 allow_undefined_flag_CXX="-z nodefs"
18504 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"
18505 else
18506 # Determine the default libpath from the value encoded in an
18507 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018508 if test "${lt_cv_aix_libpath+set}" = set; then
18509 aix_libpath=$lt_cv_aix_libpath
18510else
18511 if ${lt_cv_aix_libpath__CXX+:} false; then :
18512 $as_echo_n "(cached) " >&6
18513else
18514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018515/* end confdefs.h. */
18516
18517int
18518main ()
18519{
18520
18521 ;
18522 return 0;
18523}
18524_ACEOF
18525if ac_fn_cxx_try_link "$LINENO"; then :
18526
cristyda16f162011-02-19 23:52:17 +000018527 lt_aix_libpath_sed='
18528 /Import File Strings/,/^$/ {
18529 /^0/ {
18530 s/^0 *\([^ ]*\) *$/\1/
18531 p
18532 }
18533 }'
18534 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18535 # Check for a 64-bit object if we didn't find anything.
18536 if test -z "$lt_cv_aix_libpath__CXX"; then
18537 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18538 fi
cristy73bd4a52010-10-05 11:24:23 +000018539fi
18540rm -f core conftest.err conftest.$ac_objext \
18541 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018542 if test -z "$lt_cv_aix_libpath__CXX"; then
18543 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18544 fi
18545
18546fi
18547
18548 aix_libpath=$lt_cv_aix_libpath__CXX
18549fi
cristy73bd4a52010-10-05 11:24:23 +000018550
18551 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18552 # Warning - without using the other run time loading flags,
18553 # -berok will link without error, but may produce a broken library.
18554 no_undefined_flag_CXX=' ${wl}-bernotok'
18555 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018556 if test "$with_gnu_ld" = yes; then
18557 # We only use this code for GNU lds that support --whole-archive.
18558 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18559 else
18560 # Exported symbols can be pulled into shared objects from archives
18561 whole_archive_flag_spec_CXX='$convenience'
18562 fi
cristy73bd4a52010-10-05 11:24:23 +000018563 archive_cmds_need_lc_CXX=yes
18564 # This is similar to how AIX traditionally builds its shared
18565 # libraries.
18566 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'
18567 fi
18568 fi
18569 ;;
18570
18571 beos*)
18572 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18573 allow_undefined_flag_CXX=unsupported
18574 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18575 # support --undefined. This deserves some investigation. FIXME
18576 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18577 else
18578 ld_shlibs_CXX=no
18579 fi
18580 ;;
18581
18582 chorus*)
18583 case $cc_basename in
18584 *)
18585 # FIXME: insert proper C++ library support
18586 ld_shlibs_CXX=no
18587 ;;
18588 esac
18589 ;;
18590
18591 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018592 case $GXX,$cc_basename in
18593 ,cl* | no,cl*)
18594 # Native MSVC
18595 # hardcode_libdir_flag_spec is actually meaningless, as there is
18596 # no search path for DLLs.
18597 hardcode_libdir_flag_spec_CXX=' '
18598 allow_undefined_flag_CXX=unsupported
18599 always_export_symbols_CXX=yes
18600 file_list_spec_CXX='@'
18601 # Tell ltmain to make .lib files, not .a files.
18602 libext=lib
18603 # Tell ltmain to make .dll files, not .so files.
18604 shrext_cmds=".dll"
18605 # FIXME: Setting linknames here is a bad hack.
18606 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18607 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18608 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18609 else
18610 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18611 fi~
18612 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18613 linknames='
18614 # The linker will not automatically build a static lib if we build a DLL.
18615 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18616 enable_shared_with_static_runtimes_CXX=yes
18617 # Don't use ranlib
18618 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18619 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18620 lt_tool_outputfile="@TOOL_OUTPUT@"~
18621 case $lt_outputfile in
18622 *.exe|*.EXE) ;;
18623 *)
18624 lt_outputfile="$lt_outputfile.exe"
18625 lt_tool_outputfile="$lt_tool_outputfile.exe"
18626 ;;
18627 esac~
18628 func_to_tool_file "$lt_outputfile"~
18629 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18630 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18631 $RM "$lt_outputfile.manifest";
18632 fi'
18633 ;;
18634 *)
18635 # g++
18636 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18637 # as there is no search path for DLLs.
18638 hardcode_libdir_flag_spec_CXX='-L$libdir'
18639 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18640 allow_undefined_flag_CXX=unsupported
18641 always_export_symbols_CXX=no
18642 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018643
cristyda16f162011-02-19 23:52:17 +000018644 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18645 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'
18646 # If the export-symbols file already is a .def file (1st line
18647 # is EXPORTS), use it as is; otherwise, prepend...
18648 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18649 cp $export_symbols $output_objdir/$soname.def;
18650 else
18651 echo EXPORTS > $output_objdir/$soname.def;
18652 cat $export_symbols >> $output_objdir/$soname.def;
18653 fi~
18654 $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'
18655 else
18656 ld_shlibs_CXX=no
18657 fi
18658 ;;
18659 esac
18660 ;;
cristy73bd4a52010-10-05 11:24:23 +000018661 darwin* | rhapsody*)
18662
18663
18664 archive_cmds_need_lc_CXX=no
18665 hardcode_direct_CXX=no
18666 hardcode_automatic_CXX=yes
18667 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018668 if test "$lt_cv_ld_force_load" = "yes"; then
18669 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 +000018670
cristy0c60a692010-11-04 01:09:47 +000018671 else
18672 whole_archive_flag_spec_CXX=''
18673 fi
cristy73bd4a52010-10-05 11:24:23 +000018674 link_all_deplibs_CXX=yes
18675 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18676 case $cc_basename in
18677 ifort*) _lt_dar_can_shared=yes ;;
18678 *) _lt_dar_can_shared=$GCC ;;
18679 esac
18680 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018681 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018682 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}"
18683 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18684 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}"
18685 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}"
18686 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18687 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}"
18688 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}"
18689 fi
18690
18691 else
18692 ld_shlibs_CXX=no
18693 fi
18694
18695 ;;
18696
18697 dgux*)
18698 case $cc_basename in
18699 ec++*)
18700 # FIXME: insert proper C++ library support
18701 ld_shlibs_CXX=no
18702 ;;
18703 ghcx*)
18704 # Green Hills C++ Compiler
18705 # FIXME: insert proper C++ library support
18706 ld_shlibs_CXX=no
18707 ;;
18708 *)
18709 # FIXME: insert proper C++ library support
18710 ld_shlibs_CXX=no
18711 ;;
18712 esac
18713 ;;
18714
cristy99bd5232011-12-07 14:38:20 +000018715 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018716 # C++ shared libraries reported to be fairly broken before
18717 # switch to ELF
18718 ld_shlibs_CXX=no
18719 ;;
18720
18721 freebsd-elf*)
18722 archive_cmds_need_lc_CXX=no
18723 ;;
18724
18725 freebsd* | dragonfly*)
18726 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18727 # conventions
18728 ld_shlibs_CXX=yes
18729 ;;
18730
18731 gnu*)
18732 ;;
18733
cristy0c60a692010-11-04 01:09:47 +000018734 haiku*)
18735 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18736 link_all_deplibs_CXX=yes
18737 ;;
18738
cristy73bd4a52010-10-05 11:24:23 +000018739 hpux9*)
18740 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18741 hardcode_libdir_separator_CXX=:
18742 export_dynamic_flag_spec_CXX='${wl}-E'
18743 hardcode_direct_CXX=yes
18744 hardcode_minus_L_CXX=yes # Not in the search PATH,
18745 # but as the default
18746 # location of the library.
18747
18748 case $cc_basename in
18749 CC*)
18750 # FIXME: insert proper C++ library support
18751 ld_shlibs_CXX=no
18752 ;;
18753 aCC*)
18754 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'
18755 # Commands to make compiler produce verbose output that lists
18756 # what "hidden" libraries, object files and flags are used when
18757 # linking a shared library.
18758 #
18759 # There doesn't appear to be a way to prevent this compiler from
18760 # explicitly linking system object files so we need to strip them
18761 # from the output so that they don't get included in the library
18762 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018763 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 +000018764 ;;
18765 *)
18766 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018767 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 +000018768 else
18769 # FIXME: insert proper C++ library support
18770 ld_shlibs_CXX=no
18771 fi
18772 ;;
18773 esac
18774 ;;
18775
18776 hpux10*|hpux11*)
18777 if test $with_gnu_ld = no; then
18778 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18779 hardcode_libdir_separator_CXX=:
18780
18781 case $host_cpu in
18782 hppa*64*|ia64*)
18783 ;;
18784 *)
18785 export_dynamic_flag_spec_CXX='${wl}-E'
18786 ;;
18787 esac
18788 fi
18789 case $host_cpu in
18790 hppa*64*|ia64*)
18791 hardcode_direct_CXX=no
18792 hardcode_shlibpath_var_CXX=no
18793 ;;
18794 *)
18795 hardcode_direct_CXX=yes
18796 hardcode_direct_absolute_CXX=yes
18797 hardcode_minus_L_CXX=yes # Not in the search PATH,
18798 # but as the default
18799 # location of the library.
18800 ;;
18801 esac
18802
18803 case $cc_basename in
18804 CC*)
18805 # FIXME: insert proper C++ library support
18806 ld_shlibs_CXX=no
18807 ;;
18808 aCC*)
18809 case $host_cpu in
18810 hppa*64*)
18811 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18812 ;;
18813 ia64*)
18814 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18815 ;;
18816 *)
18817 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18818 ;;
18819 esac
18820 # Commands to make compiler produce verbose output that lists
18821 # what "hidden" libraries, object files and flags are used when
18822 # linking a shared library.
18823 #
18824 # There doesn't appear to be a way to prevent this compiler from
18825 # explicitly linking system object files so we need to strip them
18826 # from the output so that they don't get included in the library
18827 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018828 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 +000018829 ;;
18830 *)
18831 if test "$GXX" = yes; then
18832 if test $with_gnu_ld = no; then
18833 case $host_cpu in
18834 hppa*64*)
18835 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18836 ;;
18837 ia64*)
cristyda16f162011-02-19 23:52:17 +000018838 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 +000018839 ;;
18840 *)
cristyda16f162011-02-19 23:52:17 +000018841 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 +000018842 ;;
18843 esac
18844 fi
18845 else
18846 # FIXME: insert proper C++ library support
18847 ld_shlibs_CXX=no
18848 fi
18849 ;;
18850 esac
18851 ;;
18852
18853 interix[3-9]*)
18854 hardcode_direct_CXX=no
18855 hardcode_shlibpath_var_CXX=no
18856 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18857 export_dynamic_flag_spec_CXX='${wl}-E'
18858 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18859 # Instead, shared libraries are loaded at an image base (0x10000000 by
18860 # default) and relocated if they conflict, which is a slow very memory
18861 # consuming and fragmenting process. To avoid this, we pick a random,
18862 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18863 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18864 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'
18865 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'
18866 ;;
18867 irix5* | irix6*)
18868 case $cc_basename in
18869 CC*)
18870 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018871 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 +000018872
18873 # Archives containing C++ object files must be created using
18874 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18875 # necessary to make sure instantiated templates are included
18876 # in the archive.
18877 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18878 ;;
18879 *)
18880 if test "$GXX" = yes; then
18881 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018882 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 +000018883 else
cristyda16f162011-02-19 23:52:17 +000018884 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 +000018885 fi
18886 fi
18887 link_all_deplibs_CXX=yes
18888 ;;
18889 esac
18890 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18891 hardcode_libdir_separator_CXX=:
18892 inherit_rpath_CXX=yes
18893 ;;
18894
cristy0c60a692010-11-04 01:09:47 +000018895 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018896 case $cc_basename in
18897 KCC*)
18898 # Kuck and Associates, Inc. (KAI) C++ Compiler
18899
18900 # KCC will only create a shared library if the output file
18901 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18902 # to its proper name (with version) after linking.
18903 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'
18904 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'
18905 # Commands to make compiler produce verbose output that lists
18906 # what "hidden" libraries, object files and flags are used when
18907 # linking a shared library.
18908 #
18909 # There doesn't appear to be a way to prevent this compiler from
18910 # explicitly linking system object files so we need to strip them
18911 # from the output so that they don't get included in the library
18912 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018913 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 +000018914
18915 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18916 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18917
18918 # Archives containing C++ object files must be created using
18919 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18920 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18921 ;;
18922 icpc* | ecpc* )
18923 # Intel C++
18924 with_gnu_ld=yes
18925 # version 8.0 and above of icpc choke on multiply defined symbols
18926 # if we add $predep_objects and $postdep_objects, however 7.1 and
18927 # earlier do not add the objects themselves.
18928 case `$CC -V 2>&1` in
18929 *"Version 7."*)
18930 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18931 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'
18932 ;;
18933 *) # Version 8.0 or newer
18934 tmp_idyn=
18935 case $host_cpu in
18936 ia64*) tmp_idyn=' -i_dynamic';;
18937 esac
18938 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18939 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'
18940 ;;
18941 esac
18942 archive_cmds_need_lc_CXX=no
18943 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18944 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18945 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18946 ;;
18947 pgCC* | pgcpp*)
18948 # Portland Group C++ compiler
18949 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018950 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018951 prelink_cmds_CXX='tpldir=Template.dir~
18952 rm -rf $tpldir~
18953 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018954 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018955 old_archive_cmds_CXX='tpldir=Template.dir~
18956 rm -rf $tpldir~
18957 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018958 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018959 $RANLIB $oldlib'
18960 archive_cmds_CXX='tpldir=Template.dir~
18961 rm -rf $tpldir~
18962 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018963 $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 +000018964 archive_expsym_cmds_CXX='tpldir=Template.dir~
18965 rm -rf $tpldir~
18966 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018967 $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 +000018968 ;;
cristy0c60a692010-11-04 01:09:47 +000018969 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018970 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18971 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'
18972 ;;
18973 esac
18974
18975 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18976 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018977 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 +000018978 ;;
18979 cxx*)
18980 # Compaq C++
18981 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18982 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'
18983
18984 runpath_var=LD_RUN_PATH
18985 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18986 hardcode_libdir_separator_CXX=:
18987
18988 # Commands to make compiler produce verbose output that lists
18989 # what "hidden" libraries, object files and flags are used when
18990 # linking a shared library.
18991 #
18992 # There doesn't appear to be a way to prevent this compiler from
18993 # explicitly linking system object files so we need to strip them
18994 # from the output so that they don't get included in the library
18995 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018996 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 +000018997 ;;
cristy0c60a692010-11-04 01:09:47 +000018998 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018999 # IBM XL 8.0 on PPC, with GNU ld
19000 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19001 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19002 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19003 if test "x$supports_anon_versioning" = xyes; then
19004 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19005 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19006 echo "local: *; };" >> $output_objdir/$libname.ver~
19007 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19008 fi
19009 ;;
19010 *)
19011 case `$CC -V 2>&1 | sed 5q` in
19012 *Sun\ C*)
19013 # Sun C++ 5.9
19014 no_undefined_flag_CXX=' -zdefs'
19015 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19016 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'
19017 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019018 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 +000019019 compiler_needs_object_CXX=yes
19020
19021 # Not sure whether something based on
19022 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19023 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019024 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019025
19026 # Archives containing C++ object files must be created using
19027 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19028 # necessary to make sure instantiated templates are included
19029 # in the archive.
19030 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19031 ;;
19032 esac
19033 ;;
19034 esac
19035 ;;
19036
19037 lynxos*)
19038 # FIXME: insert proper C++ library support
19039 ld_shlibs_CXX=no
19040 ;;
19041
19042 m88k*)
19043 # FIXME: insert proper C++ library support
19044 ld_shlibs_CXX=no
19045 ;;
19046
19047 mvs*)
19048 case $cc_basename in
19049 cxx*)
19050 # FIXME: insert proper C++ library support
19051 ld_shlibs_CXX=no
19052 ;;
19053 *)
19054 # FIXME: insert proper C++ library support
19055 ld_shlibs_CXX=no
19056 ;;
19057 esac
19058 ;;
19059
19060 netbsd*)
19061 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19062 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19063 wlarc=
19064 hardcode_libdir_flag_spec_CXX='-R$libdir'
19065 hardcode_direct_CXX=yes
19066 hardcode_shlibpath_var_CXX=no
19067 fi
19068 # Workaround some broken pre-1.5 toolchains
19069 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19070 ;;
19071
19072 *nto* | *qnx*)
19073 ld_shlibs_CXX=yes
19074 ;;
19075
19076 openbsd2*)
19077 # C++ shared libraries are fairly broken
19078 ld_shlibs_CXX=no
19079 ;;
19080
19081 openbsd*)
19082 if test -f /usr/libexec/ld.so; then
19083 hardcode_direct_CXX=yes
19084 hardcode_shlibpath_var_CXX=no
19085 hardcode_direct_absolute_CXX=yes
19086 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19087 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19088 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19089 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19090 export_dynamic_flag_spec_CXX='${wl}-E'
19091 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19092 fi
cristy0c60a692010-11-04 01:09:47 +000019093 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019094 else
19095 ld_shlibs_CXX=no
19096 fi
19097 ;;
19098
19099 osf3* | osf4* | osf5*)
19100 case $cc_basename in
19101 KCC*)
19102 # Kuck and Associates, Inc. (KAI) C++ Compiler
19103
19104 # KCC will only create a shared library if the output file
19105 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19106 # to its proper name (with version) after linking.
19107 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'
19108
19109 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19110 hardcode_libdir_separator_CXX=:
19111
19112 # Archives containing C++ object files must be created using
19113 # the KAI C++ compiler.
19114 case $host in
19115 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19116 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19117 esac
19118 ;;
19119 RCC*)
19120 # Rational C++ 2.4.1
19121 # FIXME: insert proper C++ library support
19122 ld_shlibs_CXX=no
19123 ;;
19124 cxx*)
19125 case $host in
19126 osf3*)
19127 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019128 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 +000019129 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19130 ;;
19131 *)
19132 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019133 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 +000019134 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19135 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019136 $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 +000019137 $RM $lib.exp'
19138 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19139 ;;
19140 esac
19141
19142 hardcode_libdir_separator_CXX=:
19143
19144 # Commands to make compiler produce verbose output that lists
19145 # what "hidden" libraries, object files and flags are used when
19146 # linking a shared library.
19147 #
19148 # There doesn't appear to be a way to prevent this compiler from
19149 # explicitly linking system object files so we need to strip them
19150 # from the output so that they don't get included in the library
19151 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019152 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 +000019153 ;;
19154 *)
19155 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19156 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19157 case $host in
19158 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019159 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 +000019160 ;;
19161 *)
cristyda16f162011-02-19 23:52:17 +000019162 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 +000019163 ;;
19164 esac
19165
19166 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19167 hardcode_libdir_separator_CXX=:
19168
19169 # Commands to make compiler produce verbose output that lists
19170 # what "hidden" libraries, object files and flags are used when
19171 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019172 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019173
19174 else
19175 # FIXME: insert proper C++ library support
19176 ld_shlibs_CXX=no
19177 fi
19178 ;;
19179 esac
19180 ;;
19181
19182 psos*)
19183 # FIXME: insert proper C++ library support
19184 ld_shlibs_CXX=no
19185 ;;
19186
19187 sunos4*)
19188 case $cc_basename in
19189 CC*)
19190 # Sun C++ 4.x
19191 # FIXME: insert proper C++ library support
19192 ld_shlibs_CXX=no
19193 ;;
19194 lcc*)
19195 # Lucid
19196 # FIXME: insert proper C++ library support
19197 ld_shlibs_CXX=no
19198 ;;
19199 *)
19200 # FIXME: insert proper C++ library support
19201 ld_shlibs_CXX=no
19202 ;;
19203 esac
19204 ;;
19205
19206 solaris*)
19207 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019208 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019209 # Sun C++ 4.2, 5.x and Centerline C++
19210 archive_cmds_need_lc_CXX=yes
19211 no_undefined_flag_CXX=' -zdefs'
19212 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19213 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19214 $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'
19215
19216 hardcode_libdir_flag_spec_CXX='-R$libdir'
19217 hardcode_shlibpath_var_CXX=no
19218 case $host_os in
19219 solaris2.[0-5] | solaris2.[0-5].*) ;;
19220 *)
19221 # The compiler driver will combine and reorder linker options,
19222 # but understands `-z linker_flag'.
19223 # Supported since Solaris 2.6 (maybe 2.5.1?)
19224 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19225 ;;
19226 esac
19227 link_all_deplibs_CXX=yes
19228
cristy0c60a692010-11-04 01:09:47 +000019229 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019230
19231 # Archives containing C++ object files must be created using
19232 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19233 # necessary to make sure instantiated templates are included
19234 # in the archive.
19235 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19236 ;;
19237 gcx*)
19238 # Green Hills C++ Compiler
19239 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19240
19241 # The C++ compiler must be used to create the archive.
19242 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19243 ;;
19244 *)
19245 # GNU C++ compiler with Solaris linker
19246 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19247 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19248 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019249 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 +000019250 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 +000019251 $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 +000019252
19253 # Commands to make compiler produce verbose output that lists
19254 # what "hidden" libraries, object files and flags are used when
19255 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019256 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019257 else
19258 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19259 # platform.
19260 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19261 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19262 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19263
19264 # Commands to make compiler produce verbose output that lists
19265 # what "hidden" libraries, object files and flags are used when
19266 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019267 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019268 fi
19269
19270 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19271 case $host_os in
19272 solaris2.[0-5] | solaris2.[0-5].*) ;;
19273 *)
19274 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19275 ;;
19276 esac
19277 fi
19278 ;;
19279 esac
19280 ;;
19281
19282 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19283 no_undefined_flag_CXX='${wl}-z,text'
19284 archive_cmds_need_lc_CXX=no
19285 hardcode_shlibpath_var_CXX=no
19286 runpath_var='LD_RUN_PATH'
19287
19288 case $cc_basename in
19289 CC*)
19290 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19291 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19292 ;;
19293 *)
19294 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19295 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19296 ;;
19297 esac
19298 ;;
19299
19300 sysv5* | sco3.2v5* | sco5v6*)
19301 # Note: We can NOT use -z defs as we might desire, because we do not
19302 # link with -lc, and that would cause any symbols used from libc to
19303 # always be unresolved, which means just about no library would
19304 # ever link correctly. If we're not using GNU ld we use -z text
19305 # though, which does catch some bad symbols but isn't as heavy-handed
19306 # as -z defs.
19307 no_undefined_flag_CXX='${wl}-z,text'
19308 allow_undefined_flag_CXX='${wl}-z,nodefs'
19309 archive_cmds_need_lc_CXX=no
19310 hardcode_shlibpath_var_CXX=no
19311 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19312 hardcode_libdir_separator_CXX=':'
19313 link_all_deplibs_CXX=yes
19314 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19315 runpath_var='LD_RUN_PATH'
19316
19317 case $cc_basename in
19318 CC*)
19319 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19320 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 +000019321 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19322 '"$old_archive_cmds_CXX"
19323 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19324 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019325 ;;
19326 *)
19327 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19328 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19329 ;;
19330 esac
19331 ;;
19332
19333 tandem*)
19334 case $cc_basename in
19335 NCC*)
19336 # NonStop-UX NCC 3.20
19337 # FIXME: insert proper C++ library support
19338 ld_shlibs_CXX=no
19339 ;;
19340 *)
19341 # FIXME: insert proper C++ library support
19342 ld_shlibs_CXX=no
19343 ;;
19344 esac
19345 ;;
19346
19347 vxworks*)
19348 # FIXME: insert proper C++ library support
19349 ld_shlibs_CXX=no
19350 ;;
19351
19352 *)
19353 # FIXME: insert proper C++ library support
19354 ld_shlibs_CXX=no
19355 ;;
19356 esac
19357
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19359$as_echo "$ld_shlibs_CXX" >&6; }
19360 test "$ld_shlibs_CXX" = no && can_build_shared=no
19361
19362 GCC_CXX="$GXX"
19363 LD_CXX="$LD"
19364
19365 ## CAVEAT EMPTOR:
19366 ## There is no encapsulation within the following macros, do not change
19367 ## the running order or otherwise move them around unless you know exactly
19368 ## what you are doing...
19369 # Dependencies to place before and after the object being linked:
19370predep_objects_CXX=
19371postdep_objects_CXX=
19372predeps_CXX=
19373postdeps_CXX=
19374compiler_lib_search_path_CXX=
19375
19376cat > conftest.$ac_ext <<_LT_EOF
19377class Foo
19378{
19379public:
19380 Foo (void) { a = 0; }
19381private:
19382 int a;
19383};
19384_LT_EOF
19385
cristyda16f162011-02-19 23:52:17 +000019386
19387_lt_libdeps_save_CFLAGS=$CFLAGS
19388case "$CC $CFLAGS " in #(
19389*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19390*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019391*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019392esac
19393
cristy73bd4a52010-10-05 11:24:23 +000019394if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19395 (eval $ac_compile) 2>&5
19396 ac_status=$?
19397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19398 test $ac_status = 0; }; then
19399 # Parse the compiler output and extract the necessary
19400 # objects, libraries and library flags.
19401
19402 # Sentinel used to keep track of whether or not we are before
19403 # the conftest object file.
19404 pre_test_object_deps_done=no
19405
19406 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019407 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019408
19409 -L* | -R* | -l*)
19410 # Some compilers place space between "-{L,R}" and the path.
19411 # Remove the space.
19412 if test $p = "-L" ||
19413 test $p = "-R"; then
19414 prev=$p
19415 continue
cristy73bd4a52010-10-05 11:24:23 +000019416 fi
19417
cristyda16f162011-02-19 23:52:17 +000019418 # Expand the sysroot to ease extracting the directories later.
19419 if test -z "$prev"; then
19420 case $p in
19421 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19422 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19423 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19424 esac
19425 fi
19426 case $p in
19427 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19428 esac
cristy73bd4a52010-10-05 11:24:23 +000019429 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019430 case ${prev} in
19431 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019432 # Internal compiler library paths should come after those
19433 # provided the user. The postdeps already come after the
19434 # user supplied libs so there is no need to process them.
19435 if test -z "$compiler_lib_search_path_CXX"; then
19436 compiler_lib_search_path_CXX="${prev}${p}"
19437 else
19438 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19439 fi
19440 ;;
19441 # The "-l" case would never come before the object being
19442 # linked, so don't bother handling this case.
19443 esac
19444 else
19445 if test -z "$postdeps_CXX"; then
19446 postdeps_CXX="${prev}${p}"
19447 else
19448 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19449 fi
19450 fi
cristyda16f162011-02-19 23:52:17 +000019451 prev=
cristy73bd4a52010-10-05 11:24:23 +000019452 ;;
19453
cristyda16f162011-02-19 23:52:17 +000019454 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019455 *.$objext)
19456 # This assumes that the test object file only shows up
19457 # once in the compiler output.
19458 if test "$p" = "conftest.$objext"; then
19459 pre_test_object_deps_done=yes
19460 continue
19461 fi
19462
19463 if test "$pre_test_object_deps_done" = no; then
19464 if test -z "$predep_objects_CXX"; then
19465 predep_objects_CXX="$p"
19466 else
19467 predep_objects_CXX="$predep_objects_CXX $p"
19468 fi
19469 else
19470 if test -z "$postdep_objects_CXX"; then
19471 postdep_objects_CXX="$p"
19472 else
19473 postdep_objects_CXX="$postdep_objects_CXX $p"
19474 fi
19475 fi
19476 ;;
19477
19478 *) ;; # Ignore the rest.
19479
19480 esac
19481 done
19482
19483 # Clean up.
19484 rm -f a.out a.exe
19485else
19486 echo "libtool.m4: error: problem compiling CXX test program"
19487fi
19488
19489$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019490CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019491
19492# PORTME: override above test on systems where it is broken
19493case $host_os in
19494interix[3-9]*)
19495 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19496 # hack all around it, let's just trust "g++" to DTRT.
19497 predep_objects_CXX=
19498 postdep_objects_CXX=
19499 postdeps_CXX=
19500 ;;
19501
19502linux*)
19503 case `$CC -V 2>&1 | sed 5q` in
19504 *Sun\ C*)
19505 # Sun C++ 5.9
19506
19507 # The more standards-conforming stlport4 library is
19508 # incompatible with the Cstd library. Avoid specifying
19509 # it if it's in CXXFLAGS. Ignore libCrun as
19510 # -library=stlport4 depends on it.
19511 case " $CXX $CXXFLAGS " in
19512 *" -library=stlport4 "*)
19513 solaris_use_stlport4=yes
19514 ;;
19515 esac
19516
19517 if test "$solaris_use_stlport4" != yes; then
19518 postdeps_CXX='-library=Cstd -library=Crun'
19519 fi
19520 ;;
19521 esac
19522 ;;
19523
19524solaris*)
19525 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019526 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019527 # The more standards-conforming stlport4 library is
19528 # incompatible with the Cstd library. Avoid specifying
19529 # it if it's in CXXFLAGS. Ignore libCrun as
19530 # -library=stlport4 depends on it.
19531 case " $CXX $CXXFLAGS " in
19532 *" -library=stlport4 "*)
19533 solaris_use_stlport4=yes
19534 ;;
19535 esac
19536
19537 # Adding this requires a known-good setup of shared libraries for
19538 # Sun compiler versions before 5.6, else PIC objects from an old
19539 # archive will be linked into the output, leading to subtle bugs.
19540 if test "$solaris_use_stlport4" != yes; then
19541 postdeps_CXX='-library=Cstd -library=Crun'
19542 fi
19543 ;;
19544 esac
19545 ;;
19546esac
19547
19548
19549case " $postdeps_CXX " in
19550*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19551esac
19552 compiler_lib_search_dirs_CXX=
19553if test -n "${compiler_lib_search_path_CXX}"; then
19554 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19555fi
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
19581
19582
19583
19584
19585
19586
19587 lt_prog_compiler_wl_CXX=
19588lt_prog_compiler_pic_CXX=
19589lt_prog_compiler_static_CXX=
19590
cristy73bd4a52010-10-05 11:24:23 +000019591
19592 # C++ specific cases for pic, static, wl, etc.
19593 if test "$GXX" = yes; then
19594 lt_prog_compiler_wl_CXX='-Wl,'
19595 lt_prog_compiler_static_CXX='-static'
19596
19597 case $host_os in
19598 aix*)
19599 # All AIX code is PIC.
19600 if test "$host_cpu" = ia64; then
19601 # AIX 5 now supports IA64 processor
19602 lt_prog_compiler_static_CXX='-Bstatic'
19603 fi
19604 ;;
19605
19606 amigaos*)
19607 case $host_cpu in
19608 powerpc)
19609 # see comment about AmigaOS4 .so support
19610 lt_prog_compiler_pic_CXX='-fPIC'
19611 ;;
19612 m68k)
19613 # FIXME: we need at least 68020 code to build shared libraries, but
19614 # adding the `-m68020' flag to GCC prevents building anything better,
19615 # like `-m68040'.
19616 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19617 ;;
19618 esac
19619 ;;
19620
19621 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19622 # PIC is the default for these OSes.
19623 ;;
19624 mingw* | cygwin* | os2* | pw32* | cegcc*)
19625 # This hack is so that the source file can tell whether it is being
19626 # built for inclusion in a dll (and should export symbols for example).
19627 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19628 # (--disable-auto-import) libraries
19629 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19630 ;;
19631 darwin* | rhapsody*)
19632 # PIC is the default on this platform
19633 # Common symbols not allowed in MH_DYLIB files
19634 lt_prog_compiler_pic_CXX='-fno-common'
19635 ;;
19636 *djgpp*)
19637 # DJGPP does not support shared libraries at all
19638 lt_prog_compiler_pic_CXX=
19639 ;;
cristy0c60a692010-11-04 01:09:47 +000019640 haiku*)
19641 # PIC is the default for Haiku.
19642 # The "-static" flag exists, but is broken.
19643 lt_prog_compiler_static_CXX=
19644 ;;
cristy73bd4a52010-10-05 11:24:23 +000019645 interix[3-9]*)
19646 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19647 # Instead, we relocate shared libraries at runtime.
19648 ;;
19649 sysv4*MP*)
19650 if test -d /usr/nec; then
19651 lt_prog_compiler_pic_CXX=-Kconform_pic
19652 fi
19653 ;;
19654 hpux*)
19655 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19656 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19657 # sets the default TLS model and affects inlining.
19658 case $host_cpu in
19659 hppa*64*)
19660 ;;
19661 *)
19662 lt_prog_compiler_pic_CXX='-fPIC'
19663 ;;
19664 esac
19665 ;;
19666 *qnx* | *nto*)
19667 # QNX uses GNU C++, but need to define -shared option too, otherwise
19668 # it will coredump.
19669 lt_prog_compiler_pic_CXX='-fPIC -shared'
19670 ;;
19671 *)
19672 lt_prog_compiler_pic_CXX='-fPIC'
19673 ;;
19674 esac
19675 else
19676 case $host_os in
19677 aix[4-9]*)
19678 # All AIX code is PIC.
19679 if test "$host_cpu" = ia64; then
19680 # AIX 5 now supports IA64 processor
19681 lt_prog_compiler_static_CXX='-Bstatic'
19682 else
19683 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19684 fi
19685 ;;
19686 chorus*)
19687 case $cc_basename in
19688 cxch68*)
19689 # Green Hills C++ Compiler
19690 # _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"
19691 ;;
19692 esac
19693 ;;
cristyda16f162011-02-19 23:52:17 +000019694 mingw* | cygwin* | os2* | pw32* | cegcc*)
19695 # This hack is so that the source file can tell whether it is being
19696 # built for inclusion in a dll (and should export symbols for example).
19697 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19698 ;;
cristy73bd4a52010-10-05 11:24:23 +000019699 dgux*)
19700 case $cc_basename in
19701 ec++*)
19702 lt_prog_compiler_pic_CXX='-KPIC'
19703 ;;
19704 ghcx*)
19705 # Green Hills C++ Compiler
19706 lt_prog_compiler_pic_CXX='-pic'
19707 ;;
19708 *)
19709 ;;
19710 esac
19711 ;;
19712 freebsd* | dragonfly*)
19713 # FreeBSD uses GNU C++
19714 ;;
19715 hpux9* | hpux10* | hpux11*)
19716 case $cc_basename in
19717 CC*)
19718 lt_prog_compiler_wl_CXX='-Wl,'
19719 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19720 if test "$host_cpu" != ia64; then
19721 lt_prog_compiler_pic_CXX='+Z'
19722 fi
19723 ;;
19724 aCC*)
19725 lt_prog_compiler_wl_CXX='-Wl,'
19726 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19727 case $host_cpu in
19728 hppa*64*|ia64*)
19729 # +Z the default
19730 ;;
19731 *)
19732 lt_prog_compiler_pic_CXX='+Z'
19733 ;;
19734 esac
19735 ;;
19736 *)
19737 ;;
19738 esac
19739 ;;
19740 interix*)
19741 # This is c89, which is MS Visual C++ (no shared libs)
19742 # Anyone wants to do a port?
19743 ;;
19744 irix5* | irix6* | nonstopux*)
19745 case $cc_basename in
19746 CC*)
19747 lt_prog_compiler_wl_CXX='-Wl,'
19748 lt_prog_compiler_static_CXX='-non_shared'
19749 # CC pic flag -KPIC is the default.
19750 ;;
19751 *)
19752 ;;
19753 esac
19754 ;;
cristy0c60a692010-11-04 01:09:47 +000019755 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019756 case $cc_basename in
19757 KCC*)
19758 # KAI C++ Compiler
19759 lt_prog_compiler_wl_CXX='--backend -Wl,'
19760 lt_prog_compiler_pic_CXX='-fPIC'
19761 ;;
19762 ecpc* )
19763 # old Intel C++ for x86_64 which still supported -KPIC.
19764 lt_prog_compiler_wl_CXX='-Wl,'
19765 lt_prog_compiler_pic_CXX='-KPIC'
19766 lt_prog_compiler_static_CXX='-static'
19767 ;;
19768 icpc* )
19769 # Intel C++, used to be incompatible with GCC.
19770 # ICC 10 doesn't accept -KPIC any more.
19771 lt_prog_compiler_wl_CXX='-Wl,'
19772 lt_prog_compiler_pic_CXX='-fPIC'
19773 lt_prog_compiler_static_CXX='-static'
19774 ;;
19775 pgCC* | pgcpp*)
19776 # Portland Group C++ compiler
19777 lt_prog_compiler_wl_CXX='-Wl,'
19778 lt_prog_compiler_pic_CXX='-fpic'
19779 lt_prog_compiler_static_CXX='-Bstatic'
19780 ;;
19781 cxx*)
19782 # Compaq C++
19783 # Make sure the PIC flag is empty. It appears that all Alpha
19784 # Linux and Compaq Tru64 Unix objects are PIC.
19785 lt_prog_compiler_pic_CXX=
19786 lt_prog_compiler_static_CXX='-non_shared'
19787 ;;
cristy0c60a692010-11-04 01:09:47 +000019788 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19789 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019790 lt_prog_compiler_wl_CXX='-Wl,'
19791 lt_prog_compiler_pic_CXX='-qpic'
19792 lt_prog_compiler_static_CXX='-qstaticlink'
19793 ;;
19794 *)
19795 case `$CC -V 2>&1 | sed 5q` in
19796 *Sun\ C*)
19797 # Sun C++ 5.9
19798 lt_prog_compiler_pic_CXX='-KPIC'
19799 lt_prog_compiler_static_CXX='-Bstatic'
19800 lt_prog_compiler_wl_CXX='-Qoption ld '
19801 ;;
19802 esac
19803 ;;
19804 esac
19805 ;;
19806 lynxos*)
19807 ;;
19808 m88k*)
19809 ;;
19810 mvs*)
19811 case $cc_basename in
19812 cxx*)
19813 lt_prog_compiler_pic_CXX='-W c,exportall'
19814 ;;
19815 *)
19816 ;;
19817 esac
19818 ;;
19819 netbsd*)
19820 ;;
19821 *qnx* | *nto*)
19822 # QNX uses GNU C++, but need to define -shared option too, otherwise
19823 # it will coredump.
19824 lt_prog_compiler_pic_CXX='-fPIC -shared'
19825 ;;
19826 osf3* | osf4* | osf5*)
19827 case $cc_basename in
19828 KCC*)
19829 lt_prog_compiler_wl_CXX='--backend -Wl,'
19830 ;;
19831 RCC*)
19832 # Rational C++ 2.4.1
19833 lt_prog_compiler_pic_CXX='-pic'
19834 ;;
19835 cxx*)
19836 # Digital/Compaq C++
19837 lt_prog_compiler_wl_CXX='-Wl,'
19838 # Make sure the PIC flag is empty. It appears that all Alpha
19839 # Linux and Compaq Tru64 Unix objects are PIC.
19840 lt_prog_compiler_pic_CXX=
19841 lt_prog_compiler_static_CXX='-non_shared'
19842 ;;
19843 *)
19844 ;;
19845 esac
19846 ;;
19847 psos*)
19848 ;;
19849 solaris*)
19850 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019851 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019852 # Sun C++ 4.2, 5.x and Centerline C++
19853 lt_prog_compiler_pic_CXX='-KPIC'
19854 lt_prog_compiler_static_CXX='-Bstatic'
19855 lt_prog_compiler_wl_CXX='-Qoption ld '
19856 ;;
19857 gcx*)
19858 # Green Hills C++ Compiler
19859 lt_prog_compiler_pic_CXX='-PIC'
19860 ;;
19861 *)
19862 ;;
19863 esac
19864 ;;
19865 sunos4*)
19866 case $cc_basename in
19867 CC*)
19868 # Sun C++ 4.x
19869 lt_prog_compiler_pic_CXX='-pic'
19870 lt_prog_compiler_static_CXX='-Bstatic'
19871 ;;
19872 lcc*)
19873 # Lucid
19874 lt_prog_compiler_pic_CXX='-pic'
19875 ;;
19876 *)
19877 ;;
19878 esac
19879 ;;
19880 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19881 case $cc_basename in
19882 CC*)
19883 lt_prog_compiler_wl_CXX='-Wl,'
19884 lt_prog_compiler_pic_CXX='-KPIC'
19885 lt_prog_compiler_static_CXX='-Bstatic'
19886 ;;
19887 esac
19888 ;;
19889 tandem*)
19890 case $cc_basename in
19891 NCC*)
19892 # NonStop-UX NCC 3.20
19893 lt_prog_compiler_pic_CXX='-KPIC'
19894 ;;
19895 *)
19896 ;;
19897 esac
19898 ;;
19899 vxworks*)
19900 ;;
19901 *)
19902 lt_prog_compiler_can_build_shared_CXX=no
19903 ;;
19904 esac
19905 fi
19906
19907case $host_os in
19908 # For platforms which do not support PIC, -DPIC is meaningless:
19909 *djgpp*)
19910 lt_prog_compiler_pic_CXX=
19911 ;;
19912 *)
19913 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19914 ;;
19915esac
cristy73bd4a52010-10-05 11:24:23 +000019916
cristyda16f162011-02-19 23:52:17 +000019917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19918$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19919if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19920 $as_echo_n "(cached) " >&6
19921else
19922 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19923fi
19924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19925$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19926lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019927
19928#
19929# Check to make sure the PIC flag actually works.
19930#
19931if test -n "$lt_prog_compiler_pic_CXX"; then
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19933$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019934if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019935 $as_echo_n "(cached) " >&6
19936else
19937 lt_cv_prog_compiler_pic_works_CXX=no
19938 ac_outfile=conftest.$ac_objext
19939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19940 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19941 # Insert the option either (1) after the last *FLAGS variable, or
19942 # (2) before a word containing "conftest.", or (3) at the end.
19943 # Note that $ac_compile itself does not contain backslashes and begins
19944 # with a dollar sign (not a hyphen), so the echo should work correctly.
19945 # The option is referenced via a variable to avoid confusing sed.
19946 lt_compile=`echo "$ac_compile" | $SED \
19947 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19948 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19949 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019950 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019951 (eval "$lt_compile" 2>conftest.err)
19952 ac_status=$?
19953 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019955 if (exit $ac_status) && test -s "$ac_outfile"; then
19956 # The compiler can only warn and ignore the option if not recognized
19957 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019958 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19960 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19961 lt_cv_prog_compiler_pic_works_CXX=yes
19962 fi
19963 fi
19964 $RM conftest*
19965
19966fi
19967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19968$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19969
19970if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19971 case $lt_prog_compiler_pic_CXX in
19972 "" | " "*) ;;
19973 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19974 esac
19975else
19976 lt_prog_compiler_pic_CXX=
19977 lt_prog_compiler_can_build_shared_CXX=no
19978fi
19979
19980fi
19981
19982
19983
cristyda16f162011-02-19 23:52:17 +000019984
19985
cristy73bd4a52010-10-05 11:24:23 +000019986#
19987# Check to make sure the static flag actually works.
19988#
19989wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19991$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019992if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019993 $as_echo_n "(cached) " >&6
19994else
19995 lt_cv_prog_compiler_static_works_CXX=no
19996 save_LDFLAGS="$LDFLAGS"
19997 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19998 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19999 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20000 # The linker can only warn and ignore the option if not recognized
20001 # So say no if there are warnings
20002 if test -s conftest.err; then
20003 # Append any errors to the config.log.
20004 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020005 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20007 if diff conftest.exp conftest.er2 >/dev/null; then
20008 lt_cv_prog_compiler_static_works_CXX=yes
20009 fi
20010 else
20011 lt_cv_prog_compiler_static_works_CXX=yes
20012 fi
20013 fi
20014 $RM -r conftest*
20015 LDFLAGS="$save_LDFLAGS"
20016
20017fi
20018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20019$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20020
20021if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20022 :
20023else
20024 lt_prog_compiler_static_CXX=
20025fi
20026
20027
20028
20029
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20031$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020032if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020033 $as_echo_n "(cached) " >&6
20034else
20035 lt_cv_prog_compiler_c_o_CXX=no
20036 $RM -r conftest 2>/dev/null
20037 mkdir conftest
20038 cd conftest
20039 mkdir out
20040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20041
20042 lt_compiler_flag="-o out/conftest2.$ac_objext"
20043 # Insert the option either (1) after the last *FLAGS variable, or
20044 # (2) before a word containing "conftest.", or (3) at the end.
20045 # Note that $ac_compile itself does not contain backslashes and begins
20046 # with a dollar sign (not a hyphen), so the echo should work correctly.
20047 lt_compile=`echo "$ac_compile" | $SED \
20048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20050 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020051 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020052 (eval "$lt_compile" 2>out/conftest.err)
20053 ac_status=$?
20054 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020056 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20057 then
20058 # The compiler can only warn and ignore the option if not recognized
20059 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020060 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020061 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20062 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20063 lt_cv_prog_compiler_c_o_CXX=yes
20064 fi
20065 fi
20066 chmod u+w . 2>&5
20067 $RM conftest*
20068 # SGI C++ compiler will create directory out/ii_files/ for
20069 # template instantiation
20070 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20071 $RM out/* && rmdir out
20072 cd ..
20073 $RM -r conftest
20074 $RM conftest*
20075
20076fi
20077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20078$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20079
20080
20081
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20083$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020084if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020085 $as_echo_n "(cached) " >&6
20086else
20087 lt_cv_prog_compiler_c_o_CXX=no
20088 $RM -r conftest 2>/dev/null
20089 mkdir conftest
20090 cd conftest
20091 mkdir out
20092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20093
20094 lt_compiler_flag="-o out/conftest2.$ac_objext"
20095 # Insert the option either (1) after the last *FLAGS variable, or
20096 # (2) before a word containing "conftest.", or (3) at the end.
20097 # Note that $ac_compile itself does not contain backslashes and begins
20098 # with a dollar sign (not a hyphen), so the echo should work correctly.
20099 lt_compile=`echo "$ac_compile" | $SED \
20100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20102 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020103 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020104 (eval "$lt_compile" 2>out/conftest.err)
20105 ac_status=$?
20106 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020108 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20109 then
20110 # The compiler can only warn and ignore the option if not recognized
20111 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020112 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020113 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20114 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20115 lt_cv_prog_compiler_c_o_CXX=yes
20116 fi
20117 fi
20118 chmod u+w . 2>&5
20119 $RM conftest*
20120 # SGI C++ compiler will create directory out/ii_files/ for
20121 # template instantiation
20122 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20123 $RM out/* && rmdir out
20124 cd ..
20125 $RM -r conftest
20126 $RM conftest*
20127
20128fi
20129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20130$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20131
20132
20133
20134
20135hard_links="nottested"
20136if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20137 # do not overwrite the value of need_locks provided by the user
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20139$as_echo_n "checking if we can lock with hard links... " >&6; }
20140 hard_links=yes
20141 $RM conftest*
20142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20143 touch conftest.a
20144 ln conftest.a conftest.b 2>&5 || hard_links=no
20145 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20147$as_echo "$hard_links" >&6; }
20148 if test "$hard_links" = no; then
20149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20150$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20151 need_locks=warn
20152 fi
20153else
20154 need_locks=no
20155fi
20156
20157
20158
20159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20160$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20161
20162 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020163 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020164 case $host_os in
20165 aix[4-9]*)
20166 # If we're using GNU nm, then we don't want the "-C" option.
20167 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020168 # Also, AIX nm treats weak defined symbols like other global defined
20169 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020170 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020171 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 +000020172 else
20173 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'
20174 fi
20175 ;;
20176 pw32*)
20177 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020178 ;;
cristy73bd4a52010-10-05 11:24:23 +000020179 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020180 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020181 cl*)
20182 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20183 ;;
cristyda16f162011-02-19 23:52:17 +000020184 *)
20185 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'
20186 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20187 ;;
20188 esac
20189 ;;
cristy73bd4a52010-10-05 11:24:23 +000020190 *)
20191 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020192 ;;
cristy73bd4a52010-10-05 11:24:23 +000020193 esac
cristy73bd4a52010-10-05 11:24:23 +000020194
20195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20196$as_echo "$ld_shlibs_CXX" >&6; }
20197test "$ld_shlibs_CXX" = no && can_build_shared=no
20198
20199with_gnu_ld_CXX=$with_gnu_ld
20200
20201
20202
20203
20204
20205
20206#
20207# Do we need to explicitly link libc?
20208#
20209case "x$archive_cmds_need_lc_CXX" in
20210x|xyes)
20211 # Assume -lc should be added
20212 archive_cmds_need_lc_CXX=yes
20213
20214 if test "$enable_shared" = yes && test "$GCC" = yes; then
20215 case $archive_cmds_CXX in
20216 *'~'*)
20217 # FIXME: we may have to deal with multi-command sequences.
20218 ;;
20219 '$CC '*)
20220 # Test whether the compiler implicitly links with -lc since on some
20221 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20222 # to ld, don't add -lc before -lgcc.
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20224$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020225if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020226 $as_echo_n "(cached) " >&6
20227else
20228 $RM conftest*
20229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020230
cristy0c60a692010-11-04 01:09:47 +000020231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020232 (eval $ac_compile) 2>&5
20233 ac_status=$?
20234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20235 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020236 soname=conftest
20237 lib=conftest
20238 libobjs=conftest.$ac_objext
20239 deplibs=
20240 wl=$lt_prog_compiler_wl_CXX
20241 pic_flag=$lt_prog_compiler_pic_CXX
20242 compiler_flags=-v
20243 linker_flags=-v
20244 verstring=
20245 output_objdir=.
20246 libname=conftest
20247 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20248 allow_undefined_flag_CXX=
20249 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 +000020250 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20251 ac_status=$?
20252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20253 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020254 then
20255 lt_cv_archive_cmds_need_lc_CXX=no
20256 else
20257 lt_cv_archive_cmds_need_lc_CXX=yes
20258 fi
20259 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20260 else
20261 cat conftest.err 1>&5
20262 fi
20263 $RM conftest*
20264
20265fi
20266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20267$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20268 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020269 ;;
20270 esac
20271 fi
20272 ;;
20273esac
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
20329
20330
20331
20332
20333
20334
20335
cristy73bd4a52010-10-05 11:24:23 +000020336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20337$as_echo_n "checking dynamic linker characteristics... " >&6; }
20338
20339library_names_spec=
20340libname_spec='lib$name'
20341soname_spec=
20342shrext_cmds=".so"
20343postinstall_cmds=
20344postuninstall_cmds=
20345finish_cmds=
20346finish_eval=
20347shlibpath_var=
20348shlibpath_overrides_runpath=unknown
20349version_type=none
20350dynamic_linker="$host_os ld.so"
20351sys_lib_dlsearch_path_spec="/lib /usr/lib"
20352need_lib_prefix=unknown
20353hardcode_into_libs=no
20354
20355# when you set need_version to no, make sure it does not cause -set_version
20356# flags to be left without arguments
20357need_version=unknown
20358
20359case $host_os in
20360aix3*)
cristy99bd5232011-12-07 14:38:20 +000020361 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020362 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20363 shlibpath_var=LIBPATH
20364
20365 # AIX 3 has no versioning support, so we append a major version to the name.
20366 soname_spec='${libname}${release}${shared_ext}$major'
20367 ;;
20368
20369aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020370 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020371 need_lib_prefix=no
20372 need_version=no
20373 hardcode_into_libs=yes
20374 if test "$host_cpu" = ia64; then
20375 # AIX 5 supports IA64
20376 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20377 shlibpath_var=LD_LIBRARY_PATH
20378 else
20379 # With GCC up to 2.95.x, collect2 would create an import file
20380 # for dependence libraries. The import file would start with
20381 # the line `#! .'. This would cause the generated library to
20382 # depend on `.', always an invalid library. This was fixed in
20383 # development snapshots of GCC prior to 3.0.
20384 case $host_os in
20385 aix4 | aix4.[01] | aix4.[01].*)
20386 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20387 echo ' yes '
20388 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20389 :
20390 else
20391 can_build_shared=no
20392 fi
20393 ;;
20394 esac
20395 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20396 # soname into executable. Probably we can add versioning support to
20397 # collect2, so additional links can be useful in future.
20398 if test "$aix_use_runtimelinking" = yes; then
20399 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20400 # instead of lib<name>.a to let people know that these are not
20401 # typical AIX shared libraries.
20402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20403 else
20404 # We preserve .a as extension for shared libraries through AIX4.2
20405 # and later when we are not doing run time linking.
20406 library_names_spec='${libname}${release}.a $libname.a'
20407 soname_spec='${libname}${release}${shared_ext}$major'
20408 fi
20409 shlibpath_var=LIBPATH
20410 fi
20411 ;;
20412
20413amigaos*)
20414 case $host_cpu in
20415 powerpc)
20416 # Since July 2007 AmigaOS4 officially supports .so libraries.
20417 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20419 ;;
20420 m68k)
20421 library_names_spec='$libname.ixlibrary $libname.a'
20422 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020423 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 +000020424 ;;
20425 esac
20426 ;;
20427
20428beos*)
20429 library_names_spec='${libname}${shared_ext}'
20430 dynamic_linker="$host_os ld.so"
20431 shlibpath_var=LIBRARY_PATH
20432 ;;
20433
20434bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020435 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020436 need_version=no
20437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20438 soname_spec='${libname}${release}${shared_ext}$major'
20439 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20440 shlibpath_var=LD_LIBRARY_PATH
20441 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20442 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20443 # the default ld.so.conf also contains /usr/contrib/lib and
20444 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20445 # libtool to hard-code these into programs
20446 ;;
20447
20448cygwin* | mingw* | pw32* | cegcc*)
20449 version_type=windows
20450 shrext_cmds=".dll"
20451 need_version=no
20452 need_lib_prefix=no
20453
cristyda16f162011-02-19 23:52:17 +000020454 case $GCC,$cc_basename in
20455 yes,*)
20456 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020457 library_names_spec='$libname.dll.a'
20458 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20459 postinstall_cmds='base_file=`basename \${file}`~
20460 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20461 dldir=$destdir/`dirname \$dlpath`~
20462 test -d \$dldir || mkdir -p \$dldir~
20463 $install_prog $dir/$dlname \$dldir/$dlname~
20464 chmod a+x \$dldir/$dlname~
20465 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20466 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20467 fi'
20468 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20469 dlpath=$dir/\$dldll~
20470 $RM \$dlpath'
20471 shlibpath_overrides_runpath=yes
20472
20473 case $host_os in
20474 cygwin*)
20475 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20476 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020477
cristy73bd4a52010-10-05 11:24:23 +000020478 ;;
20479 mingw* | cegcc*)
20480 # MinGW DLLs use traditional 'lib' prefix
20481 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020482 ;;
20483 pw32*)
20484 # pw32 DLLs use 'pw' prefix rather than 'lib'
20485 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20486 ;;
20487 esac
cristyda16f162011-02-19 23:52:17 +000020488 dynamic_linker='Win32 ld.exe'
20489 ;;
20490
20491 *,cl*)
20492 # Native MSVC
20493 libname_spec='$name'
20494 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20495 library_names_spec='${libname}.dll.lib'
20496
20497 case $build_os in
20498 mingw*)
20499 sys_lib_search_path_spec=
20500 lt_save_ifs=$IFS
20501 IFS=';'
20502 for lt_path in $LIB
20503 do
20504 IFS=$lt_save_ifs
20505 # Let DOS variable expansion print the short 8.3 style file name.
20506 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20507 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20508 done
20509 IFS=$lt_save_ifs
20510 # Convert to MSYS style.
20511 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20512 ;;
20513 cygwin*)
20514 # Convert to unix form, then to dos form, then back to unix form
20515 # but this time dos style (no spaces!) so that the unix form looks
20516 # like /cygdrive/c/PROGRA~1:/cygdr...
20517 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20518 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20519 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20520 ;;
20521 *)
20522 sys_lib_search_path_spec="$LIB"
20523 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20524 # It is most probably a Windows format PATH.
20525 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20526 else
20527 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20528 fi
20529 # FIXME: find the short name or the path components, as spaces are
20530 # common. (e.g. "Program Files" -> "PROGRA~1")
20531 ;;
20532 esac
20533
20534 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20535 postinstall_cmds='base_file=`basename \${file}`~
20536 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20537 dldir=$destdir/`dirname \$dlpath`~
20538 test -d \$dldir || mkdir -p \$dldir~
20539 $install_prog $dir/$dlname \$dldir/$dlname'
20540 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20541 dlpath=$dir/\$dldll~
20542 $RM \$dlpath'
20543 shlibpath_overrides_runpath=yes
20544 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020545 ;;
20546
20547 *)
cristyda16f162011-02-19 23:52:17 +000020548 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020549 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020550 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020551 ;;
20552 esac
cristy73bd4a52010-10-05 11:24:23 +000020553 # FIXME: first we should search . and the directory the executable is in
20554 shlibpath_var=PATH
20555 ;;
20556
20557darwin* | rhapsody*)
20558 dynamic_linker="$host_os dyld"
20559 version_type=darwin
20560 need_lib_prefix=no
20561 need_version=no
20562 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20563 soname_spec='${libname}${release}${major}$shared_ext'
20564 shlibpath_overrides_runpath=yes
20565 shlibpath_var=DYLD_LIBRARY_PATH
20566 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20567
20568 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20569 ;;
20570
20571dgux*)
cristy99bd5232011-12-07 14:38:20 +000020572 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020573 need_lib_prefix=no
20574 need_version=no
20575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20576 soname_spec='${libname}${release}${shared_ext}$major'
20577 shlibpath_var=LD_LIBRARY_PATH
20578 ;;
20579
cristy73bd4a52010-10-05 11:24:23 +000020580freebsd* | dragonfly*)
20581 # DragonFly does not have aout. When/if they implement a new
20582 # versioning mechanism, adjust this.
20583 if test -x /usr/bin/objformat; then
20584 objformat=`/usr/bin/objformat`
20585 else
20586 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020587 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020588 *) objformat=elf ;;
20589 esac
20590 fi
20591 version_type=freebsd-$objformat
20592 case $version_type in
20593 freebsd-elf*)
20594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20595 need_version=no
20596 need_lib_prefix=no
20597 ;;
20598 freebsd-*)
20599 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20600 need_version=yes
20601 ;;
20602 esac
20603 shlibpath_var=LD_LIBRARY_PATH
20604 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020605 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020606 shlibpath_overrides_runpath=yes
20607 ;;
20608 freebsd3.[01]* | freebsdelf3.[01]*)
20609 shlibpath_overrides_runpath=yes
20610 hardcode_into_libs=yes
20611 ;;
20612 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20613 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20614 shlibpath_overrides_runpath=no
20615 hardcode_into_libs=yes
20616 ;;
20617 *) # from 4.6 on, and DragonFly
20618 shlibpath_overrides_runpath=yes
20619 hardcode_into_libs=yes
20620 ;;
20621 esac
20622 ;;
20623
20624gnu*)
cristy99bd5232011-12-07 14:38:20 +000020625 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020626 need_lib_prefix=no
20627 need_version=no
20628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20629 soname_spec='${libname}${release}${shared_ext}$major'
20630 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020631 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020632 hardcode_into_libs=yes
20633 ;;
20634
cristy0c60a692010-11-04 01:09:47 +000020635haiku*)
cristy99bd5232011-12-07 14:38:20 +000020636 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020637 need_lib_prefix=no
20638 need_version=no
20639 dynamic_linker="$host_os runtime_loader"
20640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20641 soname_spec='${libname}${release}${shared_ext}$major'
20642 shlibpath_var=LIBRARY_PATH
20643 shlibpath_overrides_runpath=yes
20644 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20645 hardcode_into_libs=yes
20646 ;;
20647
cristy73bd4a52010-10-05 11:24:23 +000020648hpux9* | hpux10* | hpux11*)
20649 # Give a soname corresponding to the major version so that dld.sl refuses to
20650 # link against other versions.
20651 version_type=sunos
20652 need_lib_prefix=no
20653 need_version=no
20654 case $host_cpu in
20655 ia64*)
20656 shrext_cmds='.so'
20657 hardcode_into_libs=yes
20658 dynamic_linker="$host_os dld.so"
20659 shlibpath_var=LD_LIBRARY_PATH
20660 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20662 soname_spec='${libname}${release}${shared_ext}$major'
20663 if test "X$HPUX_IA64_MODE" = X32; then
20664 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20665 else
20666 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20667 fi
20668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20669 ;;
20670 hppa*64*)
20671 shrext_cmds='.sl'
20672 hardcode_into_libs=yes
20673 dynamic_linker="$host_os dld.sl"
20674 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20675 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20677 soname_spec='${libname}${release}${shared_ext}$major'
20678 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20680 ;;
20681 *)
20682 shrext_cmds='.sl'
20683 dynamic_linker="$host_os dld.sl"
20684 shlibpath_var=SHLIB_PATH
20685 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20687 soname_spec='${libname}${release}${shared_ext}$major'
20688 ;;
20689 esac
cristy0c60a692010-11-04 01:09:47 +000020690 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020691 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020692 # or fails outright, so override atomically:
20693 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020694 ;;
20695
20696interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020697 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020698 need_lib_prefix=no
20699 need_version=no
20700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20701 soname_spec='${libname}${release}${shared_ext}$major'
20702 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20703 shlibpath_var=LD_LIBRARY_PATH
20704 shlibpath_overrides_runpath=no
20705 hardcode_into_libs=yes
20706 ;;
20707
20708irix5* | irix6* | nonstopux*)
20709 case $host_os in
20710 nonstopux*) version_type=nonstopux ;;
20711 *)
20712 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020713 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020714 else
20715 version_type=irix
20716 fi ;;
20717 esac
20718 need_lib_prefix=no
20719 need_version=no
20720 soname_spec='${libname}${release}${shared_ext}$major'
20721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20722 case $host_os in
20723 irix5* | nonstopux*)
20724 libsuff= shlibsuff=
20725 ;;
20726 *)
20727 case $LD in # libtool.m4 will add one of these switches to LD
20728 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20729 libsuff= shlibsuff= libmagic=32-bit;;
20730 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20731 libsuff=32 shlibsuff=N32 libmagic=N32;;
20732 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20733 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20734 *) libsuff= shlibsuff= libmagic=never-match;;
20735 esac
20736 ;;
20737 esac
20738 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20739 shlibpath_overrides_runpath=no
20740 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20741 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20742 hardcode_into_libs=yes
20743 ;;
20744
20745# No shared lib support for Linux oldld, aout, or coff.
20746linux*oldld* | linux*aout* | linux*coff*)
20747 dynamic_linker=no
20748 ;;
20749
cristy99bd5232011-12-07 14:38:20 +000020750# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020751linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020752 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020753 need_lib_prefix=no
20754 need_version=no
20755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20756 soname_spec='${libname}${release}${shared_ext}$major'
20757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20758 shlibpath_var=LD_LIBRARY_PATH
20759 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020760
cristy73bd4a52010-10-05 11:24:23 +000020761 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020762 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020763 $as_echo_n "(cached) " >&6
20764else
20765 lt_cv_shlibpath_overrides_runpath=no
20766 save_LDFLAGS=$LDFLAGS
20767 save_libdir=$libdir
20768 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20769 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020771/* end confdefs.h. */
20772
20773int
20774main ()
20775{
20776
20777 ;
20778 return 0;
20779}
20780_ACEOF
20781if ac_fn_cxx_try_link "$LINENO"; then :
20782 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020783 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020784fi
20785fi
20786rm -f core conftest.err conftest.$ac_objext \
20787 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020788 LDFLAGS=$save_LDFLAGS
20789 libdir=$save_libdir
20790
20791fi
20792
20793 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020794
20795 # This implies no fast_install, which is unacceptable.
20796 # Some rework will be needed to allow for fast_install
20797 # before this can be enabled.
20798 hardcode_into_libs=yes
20799
20800 # Add ABI-specific directories to the system library path.
20801 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20802
20803 # Append ld.so.conf contents to the search path
20804 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020805 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 +000020806 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020807
cristy73bd4a52010-10-05 11:24:23 +000020808 fi
20809
20810 # We used to test for /lib/ld.so.1 and disable shared libraries on
20811 # powerpc, because MkLinux only supported shared libraries with the
20812 # GNU dynamic linker. Since this was broken with cross compilers,
20813 # most powerpc-linux boxes support dynamic linking these days and
20814 # people can always --disable-shared, the test was removed, and we
20815 # assume the GNU/Linux dynamic linker is in use.
20816 dynamic_linker='GNU/Linux ld.so'
20817 ;;
20818
20819netbsd*)
20820 version_type=sunos
20821 need_lib_prefix=no
20822 need_version=no
20823 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20826 dynamic_linker='NetBSD (a.out) ld.so'
20827 else
20828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20829 soname_spec='${libname}${release}${shared_ext}$major'
20830 dynamic_linker='NetBSD ld.elf_so'
20831 fi
20832 shlibpath_var=LD_LIBRARY_PATH
20833 shlibpath_overrides_runpath=yes
20834 hardcode_into_libs=yes
20835 ;;
20836
20837newsos6)
cristy99bd5232011-12-07 14:38:20 +000020838 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20840 shlibpath_var=LD_LIBRARY_PATH
20841 shlibpath_overrides_runpath=yes
20842 ;;
20843
20844*nto* | *qnx*)
20845 version_type=qnx
20846 need_lib_prefix=no
20847 need_version=no
20848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20849 soname_spec='${libname}${release}${shared_ext}$major'
20850 shlibpath_var=LD_LIBRARY_PATH
20851 shlibpath_overrides_runpath=no
20852 hardcode_into_libs=yes
20853 dynamic_linker='ldqnx.so'
20854 ;;
20855
20856openbsd*)
20857 version_type=sunos
20858 sys_lib_dlsearch_path_spec="/usr/lib"
20859 need_lib_prefix=no
20860 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20861 case $host_os in
20862 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20863 *) need_version=no ;;
20864 esac
20865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20867 shlibpath_var=LD_LIBRARY_PATH
20868 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20869 case $host_os in
20870 openbsd2.[89] | openbsd2.[89].*)
20871 shlibpath_overrides_runpath=no
20872 ;;
20873 *)
20874 shlibpath_overrides_runpath=yes
20875 ;;
20876 esac
20877 else
20878 shlibpath_overrides_runpath=yes
20879 fi
20880 ;;
20881
20882os2*)
20883 libname_spec='$name'
20884 shrext_cmds=".dll"
20885 need_lib_prefix=no
20886 library_names_spec='$libname${shared_ext} $libname.a'
20887 dynamic_linker='OS/2 ld.exe'
20888 shlibpath_var=LIBPATH
20889 ;;
20890
20891osf3* | osf4* | osf5*)
20892 version_type=osf
20893 need_lib_prefix=no
20894 need_version=no
20895 soname_spec='${libname}${release}${shared_ext}$major'
20896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20897 shlibpath_var=LD_LIBRARY_PATH
20898 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20899 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20900 ;;
20901
20902rdos*)
20903 dynamic_linker=no
20904 ;;
20905
20906solaris*)
cristy99bd5232011-12-07 14:38:20 +000020907 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020908 need_lib_prefix=no
20909 need_version=no
20910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20911 soname_spec='${libname}${release}${shared_ext}$major'
20912 shlibpath_var=LD_LIBRARY_PATH
20913 shlibpath_overrides_runpath=yes
20914 hardcode_into_libs=yes
20915 # ldd complains unless libraries are executable
20916 postinstall_cmds='chmod +x $lib'
20917 ;;
20918
20919sunos4*)
20920 version_type=sunos
20921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20922 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20923 shlibpath_var=LD_LIBRARY_PATH
20924 shlibpath_overrides_runpath=yes
20925 if test "$with_gnu_ld" = yes; then
20926 need_lib_prefix=no
20927 fi
20928 need_version=yes
20929 ;;
20930
20931sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020932 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20934 soname_spec='${libname}${release}${shared_ext}$major'
20935 shlibpath_var=LD_LIBRARY_PATH
20936 case $host_vendor in
20937 sni)
20938 shlibpath_overrides_runpath=no
20939 need_lib_prefix=no
20940 runpath_var=LD_RUN_PATH
20941 ;;
20942 siemens)
20943 need_lib_prefix=no
20944 ;;
20945 motorola)
20946 need_lib_prefix=no
20947 need_version=no
20948 shlibpath_overrides_runpath=no
20949 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20950 ;;
20951 esac
20952 ;;
20953
20954sysv4*MP*)
20955 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020956 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020957 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20958 soname_spec='$libname${shared_ext}.$major'
20959 shlibpath_var=LD_LIBRARY_PATH
20960 fi
20961 ;;
20962
20963sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20964 version_type=freebsd-elf
20965 need_lib_prefix=no
20966 need_version=no
20967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20968 soname_spec='${libname}${release}${shared_ext}$major'
20969 shlibpath_var=LD_LIBRARY_PATH
20970 shlibpath_overrides_runpath=yes
20971 hardcode_into_libs=yes
20972 if test "$with_gnu_ld" = yes; then
20973 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20974 else
20975 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20976 case $host_os in
20977 sco3.2v5*)
20978 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20979 ;;
20980 esac
20981 fi
20982 sys_lib_dlsearch_path_spec='/usr/lib'
20983 ;;
20984
20985tpf*)
20986 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020987 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020988 need_lib_prefix=no
20989 need_version=no
20990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20991 shlibpath_var=LD_LIBRARY_PATH
20992 shlibpath_overrides_runpath=no
20993 hardcode_into_libs=yes
20994 ;;
20995
20996uts4*)
cristy99bd5232011-12-07 14:38:20 +000020997 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20999 soname_spec='${libname}${release}${shared_ext}$major'
21000 shlibpath_var=LD_LIBRARY_PATH
21001 ;;
21002
21003*)
21004 dynamic_linker=no
21005 ;;
21006esac
21007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21008$as_echo "$dynamic_linker" >&6; }
21009test "$dynamic_linker" = no && can_build_shared=no
21010
21011variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21012if test "$GCC" = yes; then
21013 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21014fi
21015
21016if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21017 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21018fi
21019if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21020 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21021fi
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
21051
21052
21053
21054
21055
21056
21057
cristy0c60a692010-11-04 01:09:47 +000021058
21059
cristy73bd4a52010-10-05 11:24:23 +000021060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21061$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21062hardcode_action_CXX=
21063if test -n "$hardcode_libdir_flag_spec_CXX" ||
21064 test -n "$runpath_var_CXX" ||
21065 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21066
21067 # We can hardcode non-existent directories.
21068 if test "$hardcode_direct_CXX" != no &&
21069 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21070 # have to relink, otherwise we might link with an installed library
21071 # when we should be linking with a yet-to-be-installed one
21072 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21073 test "$hardcode_minus_L_CXX" != no; then
21074 # Linking always hardcodes the temporary library directory.
21075 hardcode_action_CXX=relink
21076 else
21077 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21078 hardcode_action_CXX=immediate
21079 fi
21080else
21081 # We cannot hardcode anything, or else we can only hardcode existing
21082 # directories.
21083 hardcode_action_CXX=unsupported
21084fi
21085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21086$as_echo "$hardcode_action_CXX" >&6; }
21087
21088if test "$hardcode_action_CXX" = relink ||
21089 test "$inherit_rpath_CXX" = yes; then
21090 # Fast installation is not supported
21091 enable_fast_install=no
21092elif test "$shlibpath_overrides_runpath" = yes ||
21093 test "$enable_shared" = no; then
21094 # Fast installation is not necessary
21095 enable_fast_install=needless
21096fi
21097
21098
21099
21100
21101
21102
21103
21104 fi # test -n "$compiler"
21105
21106 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021107 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021108 LDCXX=$LD
21109 LD=$lt_save_LD
21110 GCC=$lt_save_GCC
21111 with_gnu_ld=$lt_save_with_gnu_ld
21112 lt_cv_path_LDCXX=$lt_cv_path_LD
21113 lt_cv_path_LD=$lt_save_path_LD
21114 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21115 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21116fi # test "$_lt_caught_CXX_error" != yes
21117
21118ac_ext=c
21119ac_cpp='$CPP $CPPFLAGS'
21120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21122ac_compiler_gnu=$ac_cv_c_compiler_gnu
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
cristy99bd5232011-12-07 14:38:20 +000021136
21137
cristy73bd4a52010-10-05 11:24:23 +000021138 ac_config_commands="$ac_config_commands libtool"
21139
21140
21141
21142
21143# Only expand once:
21144
21145
21146
cristy3ed852e2009-09-05 21:47:34 +000021147
21148
cristy3ed852e2009-09-05 21:47:34 +000021149# Check to see if building shared libraries
21150libtool_build_shared_libs='no'
21151if test "$enable_shared" = 'yes'; then
21152 libtool_build_shared_libs='yes'
21153fi
21154
21155# Check to see if building static libraries
21156libtool_build_static_libs='no'
21157if test "$enable_static" = 'yes'; then
21158 libtool_build_static_libs='yes'
21159fi
21160
cristy73bd4a52010-10-05 11:24:23 +000021161 if test "${libtool_build_shared_libs}" = 'yes'; then
21162 WITH_SHARED_LIBS_TRUE=
21163 WITH_SHARED_LIBS_FALSE='#'
21164else
21165 WITH_SHARED_LIBS_TRUE='#'
21166 WITH_SHARED_LIBS_FALSE=
21167fi
21168
cristy3ed852e2009-09-05 21:47:34 +000021169#
21170# Enable support for building loadable modules
21171#
cristyaf4cbf32012-10-16 23:47:41 +000021172build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021173
21174# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021175if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021176 withval=$with_modules; with_modules=$withval
21177else
cristy5a1cefd2010-01-06 20:42:35 +000021178 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021179fi
21180
21181
21182# Only allow building loadable modules if we are building shared libraries
21183if test "$with_modules" != 'no' ; then
21184 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021185 { $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 +000021186$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021187 build_modules='no'
21188 else
21189 build_modules='yes'
21190 fi
cristy3ed852e2009-09-05 21:47:34 +000021191fi
cristyc6722092012-10-14 00:19:31 +000021192if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021193
cristy8b350f62009-11-15 23:12:43 +000021194$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021195
cristyfa161182012-12-19 15:45:28 +000021196 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021197fi
cristyc6722092012-10-14 00:19:31 +000021198 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021199 WITH_MODULES_TRUE=
21200 WITH_MODULES_FALSE='#'
21201else
21202 WITH_MODULES_TRUE='#'
21203 WITH_MODULES_FALSE=
21204fi
21205
cristy3ed852e2009-09-05 21:47:34 +000021206
cristy3ed852e2009-09-05 21:47:34 +000021207# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021208# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021209# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021210if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021211 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21212else
21213 enable_delegate_build='no'
21214fi
21215
21216
21217# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021218if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021219 enableval=$enable_deprecated; enable_deprecated=$enableval
21220else
21221 enable_deprecated='no'
21222fi
21223
21224
21225if test "$enable_deprecated" = 'yes'; then
21226
cristy8b350f62009-11-15 23:12:43 +000021227$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021228
21229else
21230 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21231fi
21232
21233# Build a version of ImageMagick which operates uninstalled.
21234# Used to build distributions located via MAGICK_HOME / executable path
21235# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021236if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021237 enableval=$enable_installed; enable_installed=$enableval
21238else
21239 enable_installed='yes'
21240fi
21241
21242
21243if test "$enable_installed" = 'yes'; then
21244
cristy8b350f62009-11-15 23:12:43 +000021245$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021246
21247else
21248 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21249fi
21250
21251# Permit enciphering and deciphering image pixels.
21252# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021253if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021254 enableval=$enable_cipher; enable_cipher=$enableval
21255else
21256 enable_cipher='yes'
21257fi
21258
21259
21260if test "$enable_cipher" = 'yes'; then
21261
cristy8b350f62009-11-15 23:12:43 +000021262$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021263
21264fi
21265
cristy6e3607c2011-09-13 13:59:17 +000021266# Build a zero-configuration version of ImageMagick.
21267# Check whether --enable-zero-configuration was given.
21268if test "${enable_zero_configuration+set}" = set; then :
21269 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021270else
cristy6e3607c2011-09-13 13:59:17 +000021271 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021272fi
21273
21274
cristy6e3607c2011-09-13 13:59:17 +000021275if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021276
cristy6e3607c2011-09-13 13:59:17 +000021277$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021278
cristy81af5702011-09-13 14:20:58 +000021279 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021280fi
21281
21282# Build a high dynamic range version of ImageMagick.
21283# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021284if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021285 enableval=$enable_hdri; enable_hdri=$enableval
21286else
cristy191c0b72012-08-12 16:29:52 +000021287 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021288fi
21289
21290
21291MAGICK_HDRI=""
21292if test "$enable_hdri" = 'yes'; then
21293 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021294 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021295 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021296else
21297 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021298fi
21299
cristye52f12f2012-12-31 15:32:36 +000021300cat >>confdefs.h <<_ACEOF
21301#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21302_ACEOF
21303
21304MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21305CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021306CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021307
cristy3ed852e2009-09-05 21:47:34 +000021308# Build a version of ImageMagick with assert statements.
21309# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021310if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021311 enableval=$enable_assert; enable_assert=$enableval
21312else
21313 enable_assert='yes'
21314fi
21315
21316
21317if test "$enable_assert" = 'no'; then
21318
cristy8b350f62009-11-15 23:12:43 +000021319$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021320
21321fi
21322
cristya448bd22011-10-14 12:38:13 +000021323# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021324
21325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21326$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21327 # Check whether --enable-maintainer-mode was given.
21328if test "${enable_maintainer_mode+set}" = set; then :
21329 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21330else
21331 USE_MAINTAINER_MODE=no
21332fi
21333
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21335$as_echo "$USE_MAINTAINER_MODE" >&6; }
21336 if test $USE_MAINTAINER_MODE = yes; then
21337 MAINTAINER_MODE_TRUE=
21338 MAINTAINER_MODE_FALSE='#'
21339else
21340 MAINTAINER_MODE_TRUE='#'
21341 MAINTAINER_MODE_FALSE=
21342fi
21343
21344 MAINT=$MAINTAINER_MODE_TRUE
21345
21346
cristy3ed852e2009-09-05 21:47:34 +000021347
cristy944e51f2013-04-16 18:45:02 +000021348# Enable hugepages support
21349# Check whether --enable-hugepages was given.
21350if test "${enable_hugepages+set}" = set; then :
21351 enableval=$enable_hugepages; enable_hugepages=$enableval
21352else
21353 enable_hugepages='no'
21354fi
21355
21356
cristy3ed852e2009-09-05 21:47:34 +000021357# Enable ccmalloc memory debugging support
21358# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021359if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021360 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21361else
21362 enable_ccmalloc='no'
21363fi
21364
21365
21366# Enable Electric Fence memory debugging support
21367# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021368if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021369 enableval=$enable_efence; enable_efence=$enableval
21370else
21371 enable_efence='no'
21372fi
21373
21374
21375# Enable prof-based profiling support
21376# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021377if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021378 enableval=$enable_prof; enable_prof=$enableval
21379else
21380 enable_prof='no'
21381fi
21382
21383
21384# Enable gprof-based profiling support
21385# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021386if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021387 enableval=$enable_gprof; enable_gprof=$enableval
21388else
21389 enable_gprof='no'
21390fi
21391
21392
21393# Enable gcov-based profiling support
21394# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021395if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021396 enableval=$enable_gcov; enable_gcov=$enableval
21397else
21398 enable_gcov='no'
21399fi
21400
21401
21402enable_profiling='no'
21403if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21404 enable_profiling='yes'
21405 if test "$libtool_build_shared_libs" = 'yes'; then
21406 echo "Warning: Can not profile code using shared libraries"
21407 fi
21408fi
21409
21410# Magick API method prefix
21411
21412# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021413if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021414 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021415else
cristyfc3d0222012-02-07 15:05:57 +000021416 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021417fi
21418
21419
cristyfc3d0222012-02-07 15:05:57 +000021420if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021421
21422cat >>confdefs.h <<_ACEOF
21423#define NAMESPACE_PREFIX $with_method_prefix
21424_ACEOF
21425
cristyfc3d0222012-02-07 15:05:57 +000021426 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021427fi
21428
cristy71d8c202012-03-20 17:05:01 +000021429# Enable legacy support (default no)
21430# Check whether --enable-legacy-support was given.
21431if test "${enable_legacy_support+set}" = set; then :
21432 enableval=$enable_legacy_support; with_legacy_support=$enableval
21433else
21434 with_legacy_support='no'
21435fi
21436
21437 if test "$with_legacy_support" != 'no'; then
21438 LEGACY_SUPPORT_TRUE=
21439 LEGACY_SUPPORT_FALSE='#'
21440else
21441 LEGACY_SUPPORT_TRUE='#'
21442 LEGACY_SUPPORT_FALSE=
21443fi
21444
21445
cristy3ed852e2009-09-05 21:47:34 +000021446# Number of bits in a Quantum
21447
21448# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021449if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021450 withval=$with_quantum_depth; with_quantum_depth=$withval
21451else
21452 with_quantum_depth=16
21453fi
21454
21455
21456if test "$with_quantum_depth" != '8'; then
21457 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21458fi
21459
21460case "${with_quantum_depth}" in
21461 8 ) ;;
21462 16 ) ;;
21463 32 ) ;;
21464 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021465 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021466esac
21467QUANTUM_DEPTH="$with_quantum_depth"
21468
21469cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021470#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021471_ACEOF
21472
cristya371edf2013-02-06 13:42:17 +000021473MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021474CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021475CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021476
cristy01ff9f32012-12-01 18:15:29 +000021477# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021478MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021479if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021480 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021481fi
cristy01ff9f32012-12-01 18:15:29 +000021482
21483
cristy3ed852e2009-09-05 21:47:34 +000021484# Set pixel cache threshold
21485
21486# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021487if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021488 withval=$with_cache; with_cache=$withval
21489else
21490 with_cache=''
21491fi
21492
21493
21494if test "$with_cache" != ''; then
21495
21496cat >>confdefs.h <<_ACEOF
21497#define PixelCacheThreshold $with_cache
21498_ACEOF
21499
21500 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21501fi
21502
21503# Disable/Enable support for full delegate paths
21504
21505# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021506if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021507 withval=$with_frozenpaths; with_frozenpaths=$withval
21508else
21509 with_frozenpaths='no'
21510fi
21511
21512
21513# Enable build/install of Magick++
21514
21515# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021516if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021517 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21518else
21519 with_magick_plus_plus='yes'
21520fi
21521
21522
cristy3a75f062012-09-08 23:29:40 +000021523# Encode the this name into the shared library.
21524
21525# Check whether --with-package-release-name was given.
21526if test "${with_package_release_name+set}" = set; then :
21527 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21528fi
21529
21530
21531
cristy3ed852e2009-09-05 21:47:34 +000021532# Disable build/install of PerlMagick.
21533
21534# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021535if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021536 withval=$with_perl; with_perl=$withval
21537else
cristyb5f4e2f2010-04-25 00:49:11 +000021538 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021539fi
21540
21541
21542# Options to pass when configuring PerlMagick
21543
21544# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021545if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021546 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021547fi
21548
21549
cristy3ed852e2009-09-05 21:47:34 +000021550
21551# Enable umem, object-caching memory allocation library.
21552
21553# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021554if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021555 withval=$with_umem; with_umem=$withval
21556else
21557 with_umem='no'
21558fi
21559
21560if test "$with_umem" != 'yes' ; then
21561 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21562fi
21563
21564#
21565# Specify path to shared libstdc++ if not in normal location
21566#
21567
21568# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021569if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021570 withval=$with_libstdc; with_libstdc=$withval
21571else
21572 with_libstdc=''
21573fi
21574
21575
21576if test "$with_libstdc" != ''; then
21577 if test -d "$with_libstdc"; then
21578 LIBSTDCLDFLAGS="-L$with_libstdc"
21579 fi
21580fi
21581
21582
21583# Does gcc required -traditional?
21584if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021586$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021587if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021588 $as_echo_n "(cached) " >&6
21589else
21590 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021592/* end confdefs.h. */
21593#include <sgtty.h>
21594Autoconf TIOCGETP
21595_ACEOF
21596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021597 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021598 ac_cv_prog_gcc_traditional=yes
21599else
21600 ac_cv_prog_gcc_traditional=no
21601fi
21602rm -f conftest*
21603
21604
21605 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021607/* end confdefs.h. */
21608#include <termio.h>
21609Autoconf TCGETA
21610_ACEOF
21611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021612 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021613 ac_cv_prog_gcc_traditional=yes
21614fi
21615rm -f conftest*
21616
21617 fi
21618fi
cristy8b350f62009-11-15 23:12:43 +000021619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021620$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21621 if test $ac_cv_prog_gcc_traditional = yes; then
21622 CC="$CC -traditional"
21623 fi
21624fi
21625
21626
21627########
21628#
21629# Set defines required to build DLLs and modules using MinGW
21630#
21631########
21632# These options are set for multi-thread DLL module build
21633# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21634# module: _DLL
21635# executable/Magick++: _DLL _MAGICKMOD_
21636MODULE_EXTRA_CPPFLAGS=''
21637LIBRARY_EXTRA_CPPFLAGS=''
21638if test "${native_win32_build}" = 'yes'; then
21639 if test "${libtool_build_shared_libs}" = 'yes'; then
21640 CPPFLAGS="$CPPFLAGS -D_DLL"
21641 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21642 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21643 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021644 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021645 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21646 else
21647 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21648 fi
21649 else
21650 CPPFLAGS="$CPPFLAGS -D_LIB"
21651 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21652 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21653 fi
21654 if test "$with_threads" = 'yes'; then
21655 CPPFLAGS="$CPPFLAGS -D_MT"
21656 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21657 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21658 fi
21659fi
21660
21661
21662
21663# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021665$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021666if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021667 $as_echo_n "(cached) " >&6
21668else
cristy8b350f62009-11-15 23:12:43 +000021669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021670/* end confdefs.h. */
21671#include <stdlib.h>
21672#include <stdarg.h>
21673#include <string.h>
21674#include <float.h>
21675
21676int
21677main ()
21678{
21679
21680 ;
21681 return 0;
21682}
21683_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021684if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021685 ac_cv_header_stdc=yes
21686else
cristy8b350f62009-11-15 23:12:43 +000021687 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021688fi
cristy3ed852e2009-09-05 21:47:34 +000021689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21690
21691if test $ac_cv_header_stdc = yes; then
21692 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021694/* end confdefs.h. */
21695#include <string.h>
21696
21697_ACEOF
21698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021699 $EGREP "memchr" >/dev/null 2>&1; then :
21700
cristy3ed852e2009-09-05 21:47:34 +000021701else
21702 ac_cv_header_stdc=no
21703fi
21704rm -f conftest*
21705
21706fi
21707
21708if test $ac_cv_header_stdc = yes; then
21709 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021711/* end confdefs.h. */
21712#include <stdlib.h>
21713
21714_ACEOF
21715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021716 $EGREP "free" >/dev/null 2>&1; then :
21717
cristy3ed852e2009-09-05 21:47:34 +000021718else
21719 ac_cv_header_stdc=no
21720fi
21721rm -f conftest*
21722
21723fi
21724
21725if test $ac_cv_header_stdc = yes; then
21726 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021727 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021728 :
21729else
cristy8b350f62009-11-15 23:12:43 +000021730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021731/* end confdefs.h. */
21732#include <ctype.h>
21733#include <stdlib.h>
21734#if ((' ' & 0x0FF) == 0x020)
21735# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21736# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21737#else
21738# define ISLOWER(c) \
21739 (('a' <= (c) && (c) <= 'i') \
21740 || ('j' <= (c) && (c) <= 'r') \
21741 || ('s' <= (c) && (c) <= 'z'))
21742# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21743#endif
21744
21745#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21746int
21747main ()
21748{
21749 int i;
21750 for (i = 0; i < 256; i++)
21751 if (XOR (islower (i), ISLOWER (i))
21752 || toupper (i) != TOUPPER (i))
21753 return 2;
21754 return 0;
21755}
21756_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021757if ac_fn_c_try_run "$LINENO"; then :
21758
cristy3ed852e2009-09-05 21:47:34 +000021759else
cristy8b350f62009-11-15 23:12:43 +000021760 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021761fi
cristy8b350f62009-11-15 23:12:43 +000021762rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21763 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021764fi
21765
cristy3ed852e2009-09-05 21:47:34 +000021766fi
21767fi
cristy8b350f62009-11-15 23:12:43 +000021768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021769$as_echo "$ac_cv_header_stdc" >&6; }
21770if test $ac_cv_header_stdc = yes; then
21771
cristy8b350f62009-11-15 23:12:43 +000021772$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021773
21774fi
21775
21776if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021777 { $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 +000021778 header files. Compilation cannot proceed. Please install the ANSI C
21779 headers and rerun this script." >&5
21780$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21781 header files. Compilation cannot proceed. Please install the ANSI C
21782 headers and rerun this script." >&2;};
21783fi
cristya0b81c32010-01-22 02:54:33 +000021784
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21786$as_echo_n "checking whether to enable assertions... " >&6; }
21787 # Check whether --enable-assert was given.
21788if test "${enable_assert+set}" = set; then :
21789 enableval=$enable_assert; ac_enable_assert=$enableval
21790 if test "x$enableval" = xno; then :
21791
21792$as_echo "#define NDEBUG 1" >>confdefs.h
21793
21794elif test "x$enableval" != xyes; then :
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21796$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21797 ac_enable_assert=yes
21798fi
21799else
21800 ac_enable_assert=yes
21801fi
21802
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21804$as_echo "$ac_enable_assert" >&6; }
21805
cristy3ed852e2009-09-05 21:47:34 +000021806ac_header_dirent=no
21807for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21808 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021810$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021811if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021812 $as_echo_n "(cached) " >&6
21813else
cristy8b350f62009-11-15 23:12:43 +000021814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021815/* end confdefs.h. */
21816#include <sys/types.h>
21817#include <$ac_hdr>
21818
21819int
21820main ()
21821{
21822if ((DIR *) 0)
21823return 0;
21824 ;
21825 return 0;
21826}
21827_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021828if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021829 eval "$as_ac_Header=yes"
21830else
cristy8b350f62009-11-15 23:12:43 +000021831 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021832fi
cristy3ed852e2009-09-05 21:47:34 +000021833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21834fi
cristy8b350f62009-11-15 23:12:43 +000021835eval ac_res=\$$as_ac_Header
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021837$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021838if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021839 cat >>confdefs.h <<_ACEOF
21840#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21841_ACEOF
21842
21843ac_header_dirent=$ac_hdr; break
21844fi
21845
21846done
21847# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21848if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021850$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021851if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021852 $as_echo_n "(cached) " >&6
21853else
21854 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021856/* end confdefs.h. */
21857
21858/* Override any GCC internal prototype to avoid an error.
21859 Use char because int might match the return type of a GCC
21860 builtin and then its argument prototype would still apply. */
21861#ifdef __cplusplus
21862extern "C"
21863#endif
21864char opendir ();
21865int
21866main ()
21867{
21868return opendir ();
21869 ;
21870 return 0;
21871}
21872_ACEOF
21873for ac_lib in '' dir; do
21874 if test -z "$ac_lib"; then
21875 ac_res="none required"
21876 else
21877 ac_res=-l$ac_lib
21878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21879 fi
cristy8b350f62009-11-15 23:12:43 +000021880 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021881 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021882fi
cristy8b350f62009-11-15 23:12:43 +000021883rm -f core conftest.err conftest.$ac_objext \
21884 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021885 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021886 break
21887fi
21888done
cristyda16f162011-02-19 23:52:17 +000021889if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021890
cristy3ed852e2009-09-05 21:47:34 +000021891else
21892 ac_cv_search_opendir=no
21893fi
21894rm conftest.$ac_ext
21895LIBS=$ac_func_search_save_LIBS
21896fi
cristy8b350f62009-11-15 23:12:43 +000021897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021898$as_echo "$ac_cv_search_opendir" >&6; }
21899ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021900if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021901 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21902
21903fi
21904
21905else
cristy8b350f62009-11-15 23:12:43 +000021906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021907$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021908if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021909 $as_echo_n "(cached) " >&6
21910else
21911 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021913/* end confdefs.h. */
21914
21915/* Override any GCC internal prototype to avoid an error.
21916 Use char because int might match the return type of a GCC
21917 builtin and then its argument prototype would still apply. */
21918#ifdef __cplusplus
21919extern "C"
21920#endif
21921char opendir ();
21922int
21923main ()
21924{
21925return opendir ();
21926 ;
21927 return 0;
21928}
21929_ACEOF
21930for ac_lib in '' x; do
21931 if test -z "$ac_lib"; then
21932 ac_res="none required"
21933 else
21934 ac_res=-l$ac_lib
21935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21936 fi
cristy8b350f62009-11-15 23:12:43 +000021937 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021938 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021939fi
cristy8b350f62009-11-15 23:12:43 +000021940rm -f core conftest.err conftest.$ac_objext \
21941 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021942 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021943 break
21944fi
21945done
cristyda16f162011-02-19 23:52:17 +000021946if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021947
cristy3ed852e2009-09-05 21:47:34 +000021948else
21949 ac_cv_search_opendir=no
21950fi
21951rm conftest.$ac_ext
21952LIBS=$ac_func_search_save_LIBS
21953fi
cristy8b350f62009-11-15 23:12:43 +000021954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021955$as_echo "$ac_cv_search_opendir" >&6; }
21956ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021957if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021958 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21959
21960fi
21961
21962fi
21963
21964
21965# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000021966for 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 +000021967do :
21968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21969ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021970if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021971 cat >>confdefs.h <<_ACEOF
21972#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21973_ACEOF
21974
21975fi
21976
21977done
21978
21979
21980########
21981#
21982# Checks for typedefs, structures, and compiler characteristics.
21983#
21984########
21985
cristy8b350f62009-11-15 23:12:43 +000021986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021987$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021988if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021989 $as_echo_n "(cached) " >&6
21990else
cristy8b350f62009-11-15 23:12:43 +000021991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021992/* end confdefs.h. */
21993
cristy14fefe52012-05-21 00:59:18 +000021994 #include <stdbool.h>
21995 #ifndef bool
21996 "error: bool is not defined"
21997 #endif
21998 #ifndef false
21999 "error: false is not defined"
22000 #endif
22001 #if false
22002 "error: false is not 0"
22003 #endif
22004 #ifndef true
22005 "error: true is not defined"
22006 #endif
22007 #if true != 1
22008 "error: true is not 1"
22009 #endif
22010 #ifndef __bool_true_false_are_defined
22011 "error: __bool_true_false_are_defined is not defined"
22012 #endif
cristy3ed852e2009-09-05 21:47:34 +000022013
cristy14fefe52012-05-21 00:59:18 +000022014 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022015
cristy14fefe52012-05-21 00:59:18 +000022016 char a[true == 1 ? 1 : -1];
22017 char b[false == 0 ? 1 : -1];
22018 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22019 char d[(bool) 0.5 == true ? 1 : -1];
22020 /* See body of main program for 'e'. */
22021 char f[(_Bool) 0.0 == false ? 1 : -1];
22022 char g[true];
22023 char h[sizeof (_Bool)];
22024 char i[sizeof s.t];
22025 enum { j = false, k = true, l = false * true, m = true * 256 };
22026 /* The following fails for
22027 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22028 _Bool n[m];
22029 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22030 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22031 /* Catch a bug in an HP-UX C compiler. See
22032 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22033 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22034 */
22035 _Bool q = true;
22036 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022037
22038int
22039main ()
22040{
22041
cristy14fefe52012-05-21 00:59:18 +000022042 bool e = &s;
22043 *pq |= q;
22044 *pq |= ! q;
22045 /* Refer to every declared value, to avoid compiler optimizations. */
22046 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22047 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022048
22049 ;
22050 return 0;
22051}
22052_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022053if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022054 ac_cv_header_stdbool_h=yes
22055else
cristy8b350f62009-11-15 23:12:43 +000022056 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022057fi
cristy3ed852e2009-09-05 21:47:34 +000022058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22059fi
cristy8b350f62009-11-15 23:12:43 +000022060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022061$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022062 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022063if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022064
22065cat >>confdefs.h <<_ACEOF
22066#define HAVE__BOOL 1
22067_ACEOF
22068
22069
22070fi
22071
cristy14fefe52012-05-21 00:59:18 +000022072
cristy3ed852e2009-09-05 21:47:34 +000022073if test $ac_cv_header_stdbool_h = yes; then
22074
cristy8b350f62009-11-15 23:12:43 +000022075$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022076
22077fi
22078
cristy8b350f62009-11-15 23:12:43 +000022079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022080$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022081if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022082 $as_echo_n "(cached) " >&6
22083else
cristy8b350f62009-11-15 23:12:43 +000022084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022085/* end confdefs.h. */
22086
22087int
22088main ()
22089{
22090
22091volatile int x;
22092int * volatile y = (int *) 0;
22093return !x && !y;
22094 ;
22095 return 0;
22096}
22097_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022098if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022099 ac_cv_c_volatile=yes
22100else
cristy8b350f62009-11-15 23:12:43 +000022101 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022102fi
cristy3ed852e2009-09-05 21:47:34 +000022103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22104fi
cristy8b350f62009-11-15 23:12:43 +000022105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022106$as_echo "$ac_cv_c_volatile" >&6; }
22107if test $ac_cv_c_volatile = no; then
22108
cristy8b350f62009-11-15 23:12:43 +000022109$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022110
22111fi
22112
cristy8b350f62009-11-15 23:12:43 +000022113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022114$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022115if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022116 $as_echo_n "(cached) " >&6
22117else
cristy8b350f62009-11-15 23:12:43 +000022118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022119/* end confdefs.h. */
22120#define x(y) #y
22121
22122char *s = x(teststring);
22123_ACEOF
22124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022125 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022126 ac_cv_c_stringize=no
22127else
22128 ac_cv_c_stringize=yes
22129fi
22130rm -f conftest*
22131
22132fi
cristy8b350f62009-11-15 23:12:43 +000022133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022134$as_echo "$ac_cv_c_stringize" >&6; }
22135if test $ac_cv_c_stringize = yes; then
22136
cristy8b350f62009-11-15 23:12:43 +000022137$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022138
22139fi
22140
cristy8b350f62009-11-15 23:12:43 +000022141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022142$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022143if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022144 $as_echo_n "(cached) " >&6
22145else
cristy8b350f62009-11-15 23:12:43 +000022146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022147/* end confdefs.h. */
22148#include <sys/types.h>
22149#include <sys/stat.h>
22150
22151#if defined S_ISBLK && defined S_IFDIR
22152extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22153#endif
22154
22155#if defined S_ISBLK && defined S_IFCHR
22156extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22157#endif
22158
22159#if defined S_ISLNK && defined S_IFREG
22160extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22161#endif
22162
22163#if defined S_ISSOCK && defined S_IFREG
22164extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22165#endif
22166
22167_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022168if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022169 ac_cv_header_stat_broken=no
22170else
cristy8b350f62009-11-15 23:12:43 +000022171 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022172fi
cristy3ed852e2009-09-05 21:47:34 +000022173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22174fi
cristy8b350f62009-11-15 23:12:43 +000022175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022176$as_echo "$ac_cv_header_stat_broken" >&6; }
22177if test $ac_cv_header_stat_broken = yes; then
22178
cristy8b350f62009-11-15 23:12:43 +000022179$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022180
22181fi
22182
cristy8b350f62009-11-15 23:12:43 +000022183{ $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 +000022184$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022185if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022186 $as_echo_n "(cached) " >&6
22187else
cristy8b350f62009-11-15 23:12:43 +000022188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022189/* end confdefs.h. */
22190#include <sys/types.h>
22191#include <sys/time.h>
22192#include <time.h>
22193
22194int
22195main ()
22196{
22197if ((struct tm *) 0)
22198return 0;
22199 ;
22200 return 0;
22201}
22202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022203if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022204 ac_cv_header_time=yes
22205else
cristy8b350f62009-11-15 23:12:43 +000022206 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022207fi
cristy3ed852e2009-09-05 21:47:34 +000022208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22209fi
cristy8b350f62009-11-15 23:12:43 +000022210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022211$as_echo "$ac_cv_header_time" >&6; }
22212if test $ac_cv_header_time = yes; then
22213
cristy8b350f62009-11-15 23:12:43 +000022214$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022215
22216fi
22217
cristy8b350f62009-11-15 23:12:43 +000022218{ $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 +000022219$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022220if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022221 $as_echo_n "(cached) " >&6
22222else
cristy8b350f62009-11-15 23:12:43 +000022223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022224/* end confdefs.h. */
22225#include <sys/types.h>
22226#include <time.h>
22227
22228int
22229main ()
22230{
22231struct tm tm;
22232 int *p = &tm.tm_sec;
22233 return !p;
22234 ;
22235 return 0;
22236}
22237_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022238if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022239 ac_cv_struct_tm=time.h
22240else
cristy8b350f62009-11-15 23:12:43 +000022241 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022242fi
cristy3ed852e2009-09-05 21:47:34 +000022243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22244fi
cristy8b350f62009-11-15 23:12:43 +000022245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022246$as_echo "$ac_cv_struct_tm" >&6; }
22247if test $ac_cv_struct_tm = sys/time.h; then
22248
cristy8b350f62009-11-15 23:12:43 +000022249$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022250
22251fi
22252
cristy92703d82010-04-26 00:18:18 +000022253ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22254#include <$ac_cv_struct_tm>
22255
22256"
cristyda16f162011-02-19 23:52:17 +000022257if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022258
22259cat >>confdefs.h <<_ACEOF
22260#define HAVE_STRUCT_TM_TM_ZONE 1
22261_ACEOF
22262
22263
22264fi
22265
22266if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22267
22268$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22269
22270else
22271 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22272"
cristyda16f162011-02-19 23:52:17 +000022273if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022274 ac_have_decl=1
22275else
22276 ac_have_decl=0
22277fi
22278
22279cat >>confdefs.h <<_ACEOF
22280#define HAVE_DECL_TZNAME $ac_have_decl
22281_ACEOF
22282
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22284$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022285if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022286 $as_echo_n "(cached) " >&6
22287else
22288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22289/* end confdefs.h. */
22290#include <time.h>
22291#if !HAVE_DECL_TZNAME
22292extern char *tzname[];
22293#endif
22294
22295int
22296main ()
22297{
22298return tzname[0][0];
22299 ;
22300 return 0;
22301}
22302_ACEOF
22303if ac_fn_c_try_link "$LINENO"; then :
22304 ac_cv_var_tzname=yes
22305else
22306 ac_cv_var_tzname=no
22307fi
22308rm -f core conftest.err conftest.$ac_objext \
22309 conftest$ac_exeext conftest.$ac_ext
22310fi
22311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22312$as_echo "$ac_cv_var_tzname" >&6; }
22313 if test $ac_cv_var_tzname = yes; then
22314
22315$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22316
22317 fi
22318fi
22319
cristy8b350f62009-11-15 23:12:43 +000022320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022321$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022322if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022323 $as_echo_n "(cached) " >&6
22324else
22325 echo '#! /bin/cat
22326exit 69
22327' >conftest
22328chmod u+x conftest
22329(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22330if test $? -ne 69; then
22331 ac_cv_sys_interpreter=yes
22332else
22333 ac_cv_sys_interpreter=no
22334fi
22335rm -f conftest
22336fi
cristy8b350f62009-11-15 23:12:43 +000022337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022338$as_echo "$ac_cv_sys_interpreter" >&6; }
22339interpval=$ac_cv_sys_interpreter
22340
22341
cristye80f9cb2013-01-09 01:09:31 +000022342#
22343# Checks for language qualifiers and semantics.
22344#
22345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22346$as_echo_n "checking whether char is unsigned... " >&6; }
22347if ${ac_cv_c_char_unsigned+:} false; then :
22348 $as_echo_n "(cached) " >&6
22349else
22350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22351/* end confdefs.h. */
22352$ac_includes_default
22353int
22354main ()
22355{
22356static int test_array [1 - 2 * !(((char) -1) < 0)];
22357test_array [0] = 0;
22358return test_array [0];
22359
22360 ;
22361 return 0;
22362}
22363_ACEOF
22364if ac_fn_c_try_compile "$LINENO"; then :
22365 ac_cv_c_char_unsigned=no
22366else
22367 ac_cv_c_char_unsigned=yes
22368fi
22369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22370fi
22371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22372$as_echo "$ac_cv_c_char_unsigned" >&6; }
22373if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22374 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22375
22376fi
22377
22378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22379$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22380if ${ac_cv_c_const+:} false; then :
22381 $as_echo_n "(cached) " >&6
22382else
22383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22384/* end confdefs.h. */
22385
22386int
22387main ()
22388{
22389
22390#ifndef __cplusplus
22391 /* Ultrix mips cc rejects this sort of thing. */
22392 typedef int charset[2];
22393 const charset cs = { 0, 0 };
22394 /* SunOS 4.1.1 cc rejects this. */
22395 char const *const *pcpcc;
22396 char **ppc;
22397 /* NEC SVR4.0.2 mips cc rejects this. */
22398 struct point {int x, y;};
22399 static struct point const zero = {0,0};
22400 /* AIX XL C 1.02.0.0 rejects this.
22401 It does not let you subtract one const X* pointer from another in
22402 an arm of an if-expression whose if-part is not a constant
22403 expression */
22404 const char *g = "string";
22405 pcpcc = &g + (g ? g-g : 0);
22406 /* HPUX 7.0 cc rejects these. */
22407 ++pcpcc;
22408 ppc = (char**) pcpcc;
22409 pcpcc = (char const *const *) ppc;
22410 { /* SCO 3.2v4 cc rejects this sort of thing. */
22411 char tx;
22412 char *t = &tx;
22413 char const *s = 0 ? (char *) 0 : (char const *) 0;
22414
22415 *t++ = 0;
22416 if (s) return 0;
22417 }
22418 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22419 int x[] = {25, 17};
22420 const int *foo = &x[0];
22421 ++foo;
22422 }
22423 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22424 typedef const int *iptr;
22425 iptr p = 0;
22426 ++p;
22427 }
22428 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22429 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22430 struct s { int j; const int *ap[3]; } bx;
22431 struct s *b = &bx; b->j = 5;
22432 }
22433 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22434 const int foo = 10;
22435 if (!foo) return 0;
22436 }
22437 return !cs[0] && !zero.x;
22438#endif
22439
22440 ;
22441 return 0;
22442}
22443_ACEOF
22444if ac_fn_c_try_compile "$LINENO"; then :
22445 ac_cv_c_const=yes
22446else
22447 ac_cv_c_const=no
22448fi
22449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22450fi
22451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22452$as_echo "$ac_cv_c_const" >&6; }
22453if test $ac_cv_c_const = no; then
22454
22455$as_echo "#define const /**/" >>confdefs.h
22456
22457fi
22458
cristy8b350f62009-11-15 23:12:43 +000022459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022460$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022461if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022462 $as_echo_n "(cached) " >&6
22463else
22464 ac_cv_c_inline=no
22465for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022467/* end confdefs.h. */
22468#ifndef __cplusplus
22469typedef int foo_t;
22470static $ac_kw foo_t static_foo () {return 0; }
22471$ac_kw foo_t foo () {return 0; }
22472#endif
22473
22474_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022475if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022476 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022477fi
cristy3ed852e2009-09-05 21:47:34 +000022478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22479 test "$ac_cv_c_inline" != no && break
22480done
22481
22482fi
cristy8b350f62009-11-15 23:12:43 +000022483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022484$as_echo "$ac_cv_c_inline" >&6; }
22485
cristy3ed852e2009-09-05 21:47:34 +000022486case $ac_cv_c_inline in
22487 inline | yes) ;;
22488 *)
22489 case $ac_cv_c_inline in
22490 no) ac_val=;;
22491 *) ac_val=$ac_cv_c_inline;;
22492 esac
22493 cat >>confdefs.h <<_ACEOF
22494#ifndef __cplusplus
22495#define inline $ac_val
22496#endif
22497_ACEOF
22498 ;;
22499esac
22500
cristy8b350f62009-11-15 23:12:43 +000022501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022502$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022503if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022504 $as_echo_n "(cached) " >&6
22505else
22506 ac_cv_c_restrict=no
22507 # The order here caters to the fact that C++ does not require restrict.
22508 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022510/* end confdefs.h. */
22511typedef int * int_ptr;
22512 int foo (int_ptr $ac_kw ip) {
22513 return ip[0];
22514 }
22515int
22516main ()
22517{
22518int s[1];
22519 int * $ac_kw t = s;
22520 t[0] = 0;
22521 return foo(t)
22522 ;
22523 return 0;
22524}
22525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022526if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022527 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022528fi
cristy3ed852e2009-09-05 21:47:34 +000022529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22530 test "$ac_cv_c_restrict" != no && break
22531 done
22532
22533fi
cristy8b350f62009-11-15 23:12:43 +000022534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022535$as_echo "$ac_cv_c_restrict" >&6; }
22536
cristy3ed852e2009-09-05 21:47:34 +000022537 case $ac_cv_c_restrict in
22538 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022539 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022540 ;;
22541 *) cat >>confdefs.h <<_ACEOF
22542#define restrict $ac_cv_c_restrict
22543_ACEOF
22544 ;;
22545 esac
22546
cristye80f9cb2013-01-09 01:09:31 +000022547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22548$as_echo_n "checking for working volatile... " >&6; }
22549if ${ac_cv_c_volatile+:} false; then :
22550 $as_echo_n "(cached) " >&6
22551else
22552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22553/* end confdefs.h. */
22554
22555int
22556main ()
22557{
22558
22559volatile int x;
22560int * volatile y = (int *) 0;
22561return !x && !y;
22562 ;
22563 return 0;
22564}
22565_ACEOF
22566if ac_fn_c_try_compile "$LINENO"; then :
22567 ac_cv_c_volatile=yes
22568else
22569 ac_cv_c_volatile=no
22570fi
22571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22572fi
22573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22574$as_echo "$ac_cv_c_volatile" >&6; }
22575if test $ac_cv_c_volatile = no; then
22576
22577$as_echo "#define volatile /**/" >>confdefs.h
22578
22579fi
22580
cristy3ed852e2009-09-05 21:47:34 +000022581
22582# If words are stored with the most significant byte first (like
22583# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022585$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022586if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022587 $as_echo_n "(cached) " >&6
22588else
22589 ac_cv_c_bigendian=unknown
22590 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022592/* end confdefs.h. */
22593#ifndef __APPLE_CC__
22594 not a universal capable compiler
22595 #endif
22596 typedef int dummy;
22597
22598_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022599if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022600
22601 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022602 # there are at least two -arch flags with different values.
22603 ac_arch=
22604 ac_prev=
22605 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22606 if test -n "$ac_prev"; then
22607 case $ac_word in
22608 i?86 | x86_64 | ppc | ppc64)
22609 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22610 ac_arch=$ac_word
22611 else
22612 ac_cv_c_bigendian=universal
22613 break
22614 fi
22615 ;;
22616 esac
22617 ac_prev=
22618 elif test "x$ac_word" = "x-arch"; then
22619 ac_prev=arch
22620 fi
22621 done
cristy3ed852e2009-09-05 21:47:34 +000022622fi
cristy3ed852e2009-09-05 21:47:34 +000022623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624 if test $ac_cv_c_bigendian = unknown; then
22625 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022627/* end confdefs.h. */
22628#include <sys/types.h>
22629 #include <sys/param.h>
22630
22631int
22632main ()
22633{
22634#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22635 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22636 && LITTLE_ENDIAN)
22637 bogus endian macros
22638 #endif
22639
22640 ;
22641 return 0;
22642}
22643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022644if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022645 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022647/* end confdefs.h. */
22648#include <sys/types.h>
22649 #include <sys/param.h>
22650
22651int
22652main ()
22653{
22654#if BYTE_ORDER != BIG_ENDIAN
22655 not big endian
22656 #endif
22657
22658 ;
22659 return 0;
22660}
22661_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022662if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022663 ac_cv_c_bigendian=yes
22664else
cristy8b350f62009-11-15 23:12:43 +000022665 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022666fi
cristy3ed852e2009-09-05 21:47:34 +000022667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022668fi
cristy3ed852e2009-09-05 21:47:34 +000022669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22670 fi
22671 if test $ac_cv_c_bigendian = unknown; then
22672 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022674/* end confdefs.h. */
22675#include <limits.h>
22676
22677int
22678main ()
22679{
22680#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22681 bogus endian macros
22682 #endif
22683
22684 ;
22685 return 0;
22686}
22687_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022688if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022689 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022691/* end confdefs.h. */
22692#include <limits.h>
22693
22694int
22695main ()
22696{
22697#ifndef _BIG_ENDIAN
22698 not big endian
22699 #endif
22700
22701 ;
22702 return 0;
22703}
22704_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022705if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022706 ac_cv_c_bigendian=yes
22707else
cristy8b350f62009-11-15 23:12:43 +000022708 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022709fi
cristy3ed852e2009-09-05 21:47:34 +000022710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022711fi
cristy3ed852e2009-09-05 21:47:34 +000022712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22713 fi
22714 if test $ac_cv_c_bigendian = unknown; then
22715 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022716 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022717 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022719/* end confdefs.h. */
22720short int ascii_mm[] =
22721 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22722 short int ascii_ii[] =
22723 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22724 int use_ascii (int i) {
22725 return ascii_mm[i] + ascii_ii[i];
22726 }
22727 short int ebcdic_ii[] =
22728 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22729 short int ebcdic_mm[] =
22730 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22731 int use_ebcdic (int i) {
22732 return ebcdic_mm[i] + ebcdic_ii[i];
22733 }
22734 extern int foo;
22735
22736int
22737main ()
22738{
22739return use_ascii (foo) == use_ebcdic (foo);
22740 ;
22741 return 0;
22742}
22743_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022744if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022745 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22746 ac_cv_c_bigendian=yes
22747 fi
22748 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22749 if test "$ac_cv_c_bigendian" = unknown; then
22750 ac_cv_c_bigendian=no
22751 else
22752 # finding both strings is unlikely to happen, but who knows?
22753 ac_cv_c_bigendian=unknown
22754 fi
22755 fi
cristy3ed852e2009-09-05 21:47:34 +000022756fi
cristy3ed852e2009-09-05 21:47:34 +000022757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22758else
cristy8b350f62009-11-15 23:12:43 +000022759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022760/* end confdefs.h. */
22761$ac_includes_default
22762int
22763main ()
22764{
22765
22766 /* Are we little or big endian? From Harbison&Steele. */
22767 union
22768 {
22769 long int l;
22770 char c[sizeof (long int)];
22771 } u;
22772 u.l = 1;
22773 return u.c[sizeof (long int) - 1] == 1;
22774
22775 ;
22776 return 0;
22777}
22778_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022779if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022780 ac_cv_c_bigendian=no
22781else
cristy8b350f62009-11-15 23:12:43 +000022782 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022783fi
cristy8b350f62009-11-15 23:12:43 +000022784rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22785 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022786fi
22787
cristy3ed852e2009-09-05 21:47:34 +000022788 fi
22789fi
cristy8b350f62009-11-15 23:12:43 +000022790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022791$as_echo "$ac_cv_c_bigendian" >&6; }
22792 case $ac_cv_c_bigendian in #(
22793 yes)
cristy8b350f62009-11-15 23:12:43 +000022794 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022795;; #(
22796 no)
22797 ;; #(
22798 universal)
22799
cristy8b350f62009-11-15 23:12:43 +000022800$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022801
22802 ;; #(
22803 *)
cristy98dddb52010-11-04 00:30:15 +000022804 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022805 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022806 esac
22807
22808
cristy501c8042011-05-26 17:46:28 +000022809# Define to a suitable type, if standard headers do not define it.
22810ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22811case $ac_cv_c_int8_t in #(
22812 no|yes) ;; #(
22813 *)
cristy3ed852e2009-09-05 21:47:34 +000022814
22815cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022816#define int8_t $ac_cv_c_int8_t
22817_ACEOF
22818;;
22819esac
22820
22821ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22822case $ac_cv_c_int16_t in #(
22823 no|yes) ;; #(
22824 *)
22825
22826cat >>confdefs.h <<_ACEOF
22827#define int16_t $ac_cv_c_int16_t
22828_ACEOF
22829;;
22830esac
22831
22832ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22833case $ac_cv_c_int32_t in #(
22834 no|yes) ;; #(
22835 *)
22836
22837cat >>confdefs.h <<_ACEOF
22838#define int32_t $ac_cv_c_int32_t
22839_ACEOF
22840;;
22841esac
22842
22843ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22844case $ac_cv_c_int64_t in #(
22845 no|yes) ;; #(
22846 *)
22847
22848cat >>confdefs.h <<_ACEOF
22849#define int64_t $ac_cv_c_int64_t
22850_ACEOF
22851;;
22852esac
22853
22854
cristy045228a2013-06-23 11:00:16 +000022855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22856$as_echo_n "checking for unsigned long long int... " >&6; }
22857if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000022858 $as_echo_n "(cached) " >&6
22859else
cristy045228a2013-06-23 11:00:16 +000022860 ac_cv_type_unsigned_long_long_int=yes
22861 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
22862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000022863/* end confdefs.h. */
22864
22865 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000022866 implementations with broken preprocessors. Perhaps this can
22867 be revisited in 2012. In the meantime, code should not expect
22868 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000022869 /* Test literals. */
22870 long long int ll = 9223372036854775807ll;
22871 long long int nll = -9223372036854775807LL;
22872 unsigned long long int ull = 18446744073709551615ULL;
22873 /* Test constant expressions. */
22874 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000022875 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022876 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000022877 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000022878 int i = 63;
22879int
22880main ()
22881{
22882/* Test availability of runtime routines for shift and division. */
22883 long long int llmax = 9223372036854775807ll;
22884 unsigned long long int ullmax = 18446744073709551615ull;
22885 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000022886 | (llmax / ll) | (llmax % ll)
22887 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22888 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000022889 ;
22890 return 0;
22891}
22892
22893_ACEOF
22894if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022895
22896else
22897 ac_cv_type_unsigned_long_long_int=no
22898fi
22899rm -f core conftest.err conftest.$ac_objext \
22900 conftest$ac_exeext conftest.$ac_ext
22901 fi
22902fi
22903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22904$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22905 if test $ac_cv_type_unsigned_long_long_int = yes; then
22906
22907$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22908
22909 fi
22910
22911
22912
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22914$as_echo_n "checking for long long int... " >&6; }
22915if ${ac_cv_type_long_long_int+:} false; then :
22916 $as_echo_n "(cached) " >&6
22917else
cristy501c8042011-05-26 17:46:28 +000022918 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000022919 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000022920 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22921 if test $ac_cv_type_long_long_int = yes; then
22922 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000022923 :
cristy501c8042011-05-26 17:46:28 +000022924else
22925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22926/* end confdefs.h. */
22927#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000022928 #ifndef LLONG_MAX
22929 # define HALF \
22930 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22931 # define LLONG_MAX (HALF - 1 + HALF)
22932 #endif
cristy501c8042011-05-26 17:46:28 +000022933int
22934main ()
22935{
22936long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000022937 int i;
22938 for (i = 0; ; i++)
22939 {
22940 long long int m = n << i;
22941 if (m >> i != n)
22942 return 1;
22943 if (LLONG_MAX / 2 < m)
22944 break;
22945 }
22946 return 0;
cristy501c8042011-05-26 17:46:28 +000022947 ;
22948 return 0;
22949}
22950_ACEOF
22951if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000022952
cristy501c8042011-05-26 17:46:28 +000022953else
22954 ac_cv_type_long_long_int=no
22955fi
22956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22957 conftest.$ac_objext conftest.beam conftest.$ac_ext
22958fi
22959
cristy5ed9c6e2013-07-14 21:20:31 +000022960 fi
cristy045228a2013-06-23 11:00:16 +000022961 fi
cristy501c8042011-05-26 17:46:28 +000022962fi
22963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22964$as_echo "$ac_cv_type_long_long_int" >&6; }
22965 if test $ac_cv_type_long_long_int = yes; then
22966
22967$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22968
22969 fi
22970
22971
22972
22973 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22974if test "x$ac_cv_type_intmax_t" = xyes; then :
22975
22976$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22977
22978else
22979 test $ac_cv_type_long_long_int = yes \
22980 && ac_type='long long int' \
22981 || ac_type='long int'
22982
22983cat >>confdefs.h <<_ACEOF
22984#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022985_ACEOF
22986
22987fi
22988
22989
cristy501c8042011-05-26 17:46:28 +000022990
22991 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22992if test "x$ac_cv_type_intptr_t" = xyes; then :
22993
22994$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022995
cristy3ed852e2009-09-05 21:47:34 +000022996else
cristy501c8042011-05-26 17:46:28 +000022997 for ac_type in 'int' 'long int' 'long long int'; do
22998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22999/* end confdefs.h. */
23000$ac_includes_default
23001int
23002main ()
23003{
23004static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023005test_array [0] = 0;
23006return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023007
23008 ;
23009 return 0;
23010}
23011_ACEOF
23012if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023013
23014cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023015#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023016_ACEOF
23017
cristy501c8042011-05-26 17:46:28 +000023018 ac_type=
23019fi
23020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23021 test -z "$ac_type" && break
23022 done
cristy3ed852e2009-09-05 21:47:34 +000023023fi
23024
23025
cristy3ed852e2009-09-05 21:47:34 +000023026
cristy501c8042011-05-26 17:46:28 +000023027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23028$as_echo_n "checking for long double... " >&6; }
23029if ${ac_cv_type_long_double+:} false; then :
23030 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023031else
cristy501c8042011-05-26 17:46:28 +000023032 if test "$GCC" = yes; then
23033 ac_cv_type_long_double=yes
23034 else
23035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23036/* end confdefs.h. */
23037/* The Stardent Vistra knows sizeof (long double), but does
23038 not support it. */
23039 long double foo = 0.0L;
23040int
23041main ()
23042{
23043static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23044 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023045test_array [0] = 0;
23046return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023047
cristy501c8042011-05-26 17:46:28 +000023048 ;
23049 return 0;
23050}
cristy3ed852e2009-09-05 21:47:34 +000023051_ACEOF
cristy501c8042011-05-26 17:46:28 +000023052if ac_fn_c_try_compile "$LINENO"; then :
23053 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023054else
cristy501c8042011-05-26 17:46:28 +000023055 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023056fi
cristy501c8042011-05-26 17:46:28 +000023057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23058 fi
cristy3ed852e2009-09-05 21:47:34 +000023059fi
cristy501c8042011-05-26 17:46:28 +000023060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23061$as_echo "$ac_cv_type_long_double" >&6; }
23062 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023063
cristy501c8042011-05-26 17:46:28 +000023064$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023065
cristy501c8042011-05-26 17:46:28 +000023066 fi
23067
cristy3ed852e2009-09-05 21:47:34 +000023068
cristy8b350f62009-11-15 23:12:43 +000023069 { $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 +000023070$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023071if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023072 $as_echo_n "(cached) " >&6
23073else
cristy8b350f62009-11-15 23:12:43 +000023074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023075/* end confdefs.h. */
23076#include <float.h>
23077 long double const a[] =
23078 {
23079 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23080 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23081 };
23082 long double
23083 f (long double x)
23084 {
23085 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23086 + (x ? f (x) : 'c'));
23087 }
23088
23089int
23090main ()
23091{
23092static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23093 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23094 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23095 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23096 && (int) LDBL_EPSILON == 0
23097 )];
cristy14fefe52012-05-21 00:59:18 +000023098test_array [0] = 0;
23099return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023100
23101 ;
23102 return 0;
23103}
23104_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023105if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023106 ac_cv_type_long_double_wider=yes
23107else
cristy8b350f62009-11-15 23:12:43 +000023108 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023109fi
cristy3ed852e2009-09-05 21:47:34 +000023110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23111fi
cristy8b350f62009-11-15 23:12:43 +000023112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023113$as_echo "$ac_cv_type_long_double_wider" >&6; }
23114 if test $ac_cv_type_long_double_wider = yes; then
23115
cristy8b350f62009-11-15 23:12:43 +000023116$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023117
23118 fi
23119
23120
cristy045228a2013-06-23 11:00:16 +000023121
cristy501c8042011-05-26 17:46:28 +000023122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23123$as_echo_n "checking for long long int... " >&6; }
23124if ${ac_cv_type_long_long_int+:} false; then :
23125 $as_echo_n "(cached) " >&6
23126else
cristy501c8042011-05-26 17:46:28 +000023127 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023128 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023129 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23130 if test $ac_cv_type_long_long_int = yes; then
23131 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023132 :
cristy501c8042011-05-26 17:46:28 +000023133else
23134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23135/* end confdefs.h. */
23136#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023137 #ifndef LLONG_MAX
23138 # define HALF \
23139 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23140 # define LLONG_MAX (HALF - 1 + HALF)
23141 #endif
cristy501c8042011-05-26 17:46:28 +000023142int
23143main ()
23144{
23145long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023146 int i;
23147 for (i = 0; ; i++)
23148 {
23149 long long int m = n << i;
23150 if (m >> i != n)
23151 return 1;
23152 if (LLONG_MAX / 2 < m)
23153 break;
23154 }
23155 return 0;
cristy501c8042011-05-26 17:46:28 +000023156 ;
23157 return 0;
23158}
23159_ACEOF
23160if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023161
cristy501c8042011-05-26 17:46:28 +000023162else
23163 ac_cv_type_long_long_int=no
23164fi
23165rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23166 conftest.$ac_objext conftest.beam conftest.$ac_ext
23167fi
23168
cristy5ed9c6e2013-07-14 21:20:31 +000023169 fi
cristy045228a2013-06-23 11:00:16 +000023170 fi
cristy501c8042011-05-26 17:46:28 +000023171fi
23172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23173$as_echo "$ac_cv_type_long_long_int" >&6; }
23174 if test $ac_cv_type_long_long_int = yes; then
23175
23176$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23177
23178 fi
23179
23180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23181$as_echo_n "checking for mbstate_t... " >&6; }
23182if ${ac_cv_type_mbstate_t+:} false; then :
23183 $as_echo_n "(cached) " >&6
23184else
23185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23186/* end confdefs.h. */
23187$ac_includes_default
23188# include <wchar.h>
23189int
23190main ()
23191{
23192mbstate_t x; return sizeof x;
23193 ;
23194 return 0;
23195}
23196_ACEOF
23197if ac_fn_c_try_compile "$LINENO"; then :
23198 ac_cv_type_mbstate_t=yes
23199else
23200 ac_cv_type_mbstate_t=no
23201fi
23202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23203fi
23204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23205$as_echo "$ac_cv_type_mbstate_t" >&6; }
23206 if test $ac_cv_type_mbstate_t = yes; then
23207
23208$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23209
23210 else
23211
23212$as_echo "#define mbstate_t int" >>confdefs.h
23213
23214 fi
23215ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23216if test "x$ac_cv_type_mode_t" = xyes; then :
23217
23218else
23219
23220cat >>confdefs.h <<_ACEOF
23221#define mode_t int
23222_ACEOF
23223
23224fi
23225
23226ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23227if test "x$ac_cv_type_off_t" = xyes; then :
23228
23229else
23230
23231cat >>confdefs.h <<_ACEOF
23232#define off_t long int
23233_ACEOF
23234
23235fi
23236
23237ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23238if test "x$ac_cv_type_pid_t" = xyes; then :
23239
23240else
23241
23242cat >>confdefs.h <<_ACEOF
23243#define pid_t int
23244_ACEOF
23245
23246fi
23247
23248ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23249if test "x$ac_cv_type_size_t" = xyes; then :
23250
23251else
23252
23253cat >>confdefs.h <<_ACEOF
23254#define size_t unsigned int
23255_ACEOF
23256
23257fi
23258
23259ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23260if test "x$ac_cv_type_ssize_t" = xyes; then :
23261
23262else
23263
23264cat >>confdefs.h <<_ACEOF
23265#define ssize_t int
23266_ACEOF
23267
23268fi
23269
23270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23271$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23272if ${ac_cv_type_uid_t+:} false; then :
23273 $as_echo_n "(cached) " >&6
23274else
23275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23276/* end confdefs.h. */
23277#include <sys/types.h>
23278
23279_ACEOF
23280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23281 $EGREP "uid_t" >/dev/null 2>&1; then :
23282 ac_cv_type_uid_t=yes
23283else
23284 ac_cv_type_uid_t=no
23285fi
23286rm -f conftest*
23287
23288fi
23289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23290$as_echo "$ac_cv_type_uid_t" >&6; }
23291if test $ac_cv_type_uid_t = no; then
23292
23293$as_echo "#define uid_t int" >>confdefs.h
23294
23295
23296$as_echo "#define gid_t int" >>confdefs.h
23297
23298fi
23299
23300ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23301case $ac_cv_c_uint8_t in #(
23302 no|yes) ;; #(
23303 *)
23304
23305$as_echo "#define _UINT8_T 1" >>confdefs.h
23306
23307
23308cat >>confdefs.h <<_ACEOF
23309#define uint8_t $ac_cv_c_uint8_t
23310_ACEOF
23311;;
23312 esac
23313
23314ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23315case $ac_cv_c_uint16_t in #(
23316 no|yes) ;; #(
23317 *)
23318
23319
23320cat >>confdefs.h <<_ACEOF
23321#define uint16_t $ac_cv_c_uint16_t
23322_ACEOF
23323;;
23324 esac
23325
23326ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23327case $ac_cv_c_uint32_t in #(
23328 no|yes) ;; #(
23329 *)
23330
23331$as_echo "#define _UINT32_T 1" >>confdefs.h
23332
23333
23334cat >>confdefs.h <<_ACEOF
23335#define uint32_t $ac_cv_c_uint32_t
23336_ACEOF
23337;;
23338 esac
23339
23340ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23341case $ac_cv_c_uint64_t in #(
23342 no|yes) ;; #(
23343 *)
23344
23345$as_echo "#define _UINT64_T 1" >>confdefs.h
23346
23347
23348cat >>confdefs.h <<_ACEOF
23349#define uint64_t $ac_cv_c_uint64_t
23350_ACEOF
23351;;
23352 esac
23353
23354
cristy501c8042011-05-26 17:46:28 +000023355
23356 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23357if test "x$ac_cv_type_uintmax_t" = xyes; then :
23358
23359$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23360
23361else
23362 test $ac_cv_type_unsigned_long_long_int = yes \
23363 && ac_type='unsigned long long int' \
23364 || ac_type='unsigned long int'
23365
23366cat >>confdefs.h <<_ACEOF
23367#define uintmax_t $ac_type
23368_ACEOF
23369
23370fi
23371
23372
23373
23374 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23375if test "x$ac_cv_type_uintptr_t" = xyes; then :
23376
23377$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23378
23379else
23380 for ac_type in 'unsigned int' 'unsigned long int' \
23381 'unsigned long long int'; do
23382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23383/* end confdefs.h. */
23384$ac_includes_default
23385int
23386main ()
23387{
23388static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023389test_array [0] = 0;
23390return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023391
23392 ;
23393 return 0;
23394}
23395_ACEOF
23396if ac_fn_c_try_compile "$LINENO"; then :
23397
23398cat >>confdefs.h <<_ACEOF
23399#define uintptr_t $ac_type
23400_ACEOF
23401
23402 ac_type=
23403fi
23404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23405 test -z "$ac_type" && break
23406 done
23407fi
23408
23409
23410
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23412$as_echo_n "checking for unsigned long long int... " >&6; }
23413if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23414 $as_echo_n "(cached) " >&6
23415else
cristy045228a2013-06-23 11:00:16 +000023416 ac_cv_type_unsigned_long_long_int=yes
23417 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023419/* end confdefs.h. */
23420
23421 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023422 implementations with broken preprocessors. Perhaps this can
23423 be revisited in 2012. In the meantime, code should not expect
23424 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023425 /* Test literals. */
23426 long long int ll = 9223372036854775807ll;
23427 long long int nll = -9223372036854775807LL;
23428 unsigned long long int ull = 18446744073709551615ULL;
23429 /* Test constant expressions. */
23430 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023431 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023432 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023433 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023434 int i = 63;
23435int
23436main ()
23437{
23438/* Test availability of runtime routines for shift and division. */
23439 long long int llmax = 9223372036854775807ll;
23440 unsigned long long int ullmax = 18446744073709551615ull;
23441 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023442 | (llmax / ll) | (llmax % ll)
23443 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23444 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023445 ;
23446 return 0;
23447}
23448
23449_ACEOF
23450if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023451
cristy501c8042011-05-26 17:46:28 +000023452else
23453 ac_cv_type_unsigned_long_long_int=no
23454fi
23455rm -f core conftest.err conftest.$ac_objext \
23456 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023457 fi
cristy501c8042011-05-26 17:46:28 +000023458fi
23459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23460$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23461 if test $ac_cv_type_unsigned_long_long_int = yes; then
23462
23463$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23464
23465 fi
23466
23467
cristyfec31822013-05-23 12:32:12 +000023468# Float_t and double_t are intended to be the the most efficient type.
23469ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23470"
23471if test "x$ac_cv_type_float_t" = xyes; then :
23472
23473cat >>confdefs.h <<_ACEOF
23474#define HAVE_FLOAT_T 1
23475_ACEOF
23476
23477
23478fi
23479
23480ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23481"
23482if test "x$ac_cv_type_double_t" = xyes; then :
23483
23484cat >>confdefs.h <<_ACEOF
23485#define HAVE_DOUBLE_T 1
23486_ACEOF
23487
23488
23489fi
23490
23491# The cast to long int works around a bug in the HP C Compiler
23492# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23493# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23494# This bug is HP SR number 8606223364.
23495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23496$as_echo_n "checking size of float_t... " >&6; }
23497if ${ac_cv_sizeof_float_t+:} false; then :
23498 $as_echo_n "(cached) " >&6
23499else
23500 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23501"; then :
23502
23503else
23504 if test "$ac_cv_type_float_t" = yes; then
23505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23507as_fn_error 77 "cannot compute sizeof (float_t)
23508See \`config.log' for more details" "$LINENO" 5; }
23509 else
23510 ac_cv_sizeof_float_t=0
23511 fi
23512fi
23513
23514fi
23515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23516$as_echo "$ac_cv_sizeof_float_t" >&6; }
23517
23518
23519
23520cat >>confdefs.h <<_ACEOF
23521#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23522_ACEOF
23523
23524
23525# The cast to long int works around a bug in the HP C Compiler
23526# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23527# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23528# This bug is HP SR number 8606223364.
23529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23530$as_echo_n "checking size of double_t... " >&6; }
23531if ${ac_cv_sizeof_double_t+:} false; then :
23532 $as_echo_n "(cached) " >&6
23533else
23534 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23535"; then :
23536
23537else
23538 if test "$ac_cv_type_double_t" = yes; then
23539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23541as_fn_error 77 "cannot compute sizeof (double_t)
23542See \`config.log' for more details" "$LINENO" 5; }
23543 else
23544 ac_cv_sizeof_double_t=0
23545 fi
23546fi
23547
23548fi
23549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23550$as_echo "$ac_cv_sizeof_double_t" >&6; }
23551
23552
23553
23554cat >>confdefs.h <<_ACEOF
23555#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23556_ACEOF
23557
23558
23559
cristy9b86f202012-11-28 21:55:35 +000023560# Get size of float, double and long double for comparaison.
23561# The cast to long int works around a bug in the HP C Compiler
23562# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23563# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23564# This bug is HP SR number 8606223364.
23565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23566$as_echo_n "checking size of float... " >&6; }
23567if ${ac_cv_sizeof_float+:} false; then :
23568 $as_echo_n "(cached) " >&6
23569else
23570 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23571
23572else
23573 if test "$ac_cv_type_float" = yes; then
23574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23576as_fn_error 77 "cannot compute sizeof (float)
23577See \`config.log' for more details" "$LINENO" 5; }
23578 else
23579 ac_cv_sizeof_float=0
23580 fi
23581fi
23582
23583fi
23584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23585$as_echo "$ac_cv_sizeof_float" >&6; }
23586
23587
23588
23589cat >>confdefs.h <<_ACEOF
23590#define SIZEOF_FLOAT $ac_cv_sizeof_float
23591_ACEOF
23592
23593
23594# The cast to long int works around a bug in the HP C Compiler
23595# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23596# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23597# This bug is HP SR number 8606223364.
23598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23599$as_echo_n "checking size of double... " >&6; }
23600if ${ac_cv_sizeof_double+:} false; then :
23601 $as_echo_n "(cached) " >&6
23602else
23603 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23604
23605else
23606 if test "$ac_cv_type_double" = yes; then
23607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23609as_fn_error 77 "cannot compute sizeof (double)
23610See \`config.log' for more details" "$LINENO" 5; }
23611 else
23612 ac_cv_sizeof_double=0
23613 fi
23614fi
23615
23616fi
23617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23618$as_echo "$ac_cv_sizeof_double" >&6; }
23619
23620
23621
23622cat >>confdefs.h <<_ACEOF
23623#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23624_ACEOF
23625
23626
cristyfec31822013-05-23 12:32:12 +000023627# The cast to long int works around a bug in the HP C Compiler
23628# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23629# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23630# This bug is HP SR number 8606223364.
23631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23632$as_echo_n "checking size of long double... " >&6; }
23633if ${ac_cv_sizeof_long_double+:} false; then :
23634 $as_echo_n "(cached) " >&6
23635else
23636 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23637
23638else
23639 if test "$ac_cv_type_long_double" = yes; then
23640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23642as_fn_error 77 "cannot compute sizeof (long double)
23643See \`config.log' for more details" "$LINENO" 5; }
23644 else
23645 ac_cv_sizeof_long_double=0
23646 fi
23647fi
23648
23649fi
23650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23651$as_echo "$ac_cv_sizeof_long_double" >&6; }
23652
23653
23654
23655cat >>confdefs.h <<_ACEOF
23656#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23657_ACEOF
23658
23659
cristyf0cf9a22012-10-24 12:05:01 +000023660
cristy3ed852e2009-09-05 21:47:34 +000023661# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23662# The cast to long int works around a bug in the HP C Compiler
23663# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23664# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23665# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023667$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023668if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023669 $as_echo_n "(cached) " >&6
23670else
cristy8b350f62009-11-15 23:12:43 +000023671 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 +000023672
cristy3ed852e2009-09-05 21:47:34 +000023673else
cristy8b350f62009-11-15 23:12:43 +000023674 if test "$ac_cv_type_signed_short" = yes; then
23675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023677as_fn_error 77 "cannot compute sizeof (signed short)
23678See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023679 else
23680 ac_cv_sizeof_signed_short=0
23681 fi
23682fi
cristy8b350f62009-11-15 23:12:43 +000023683
cristy3ed852e2009-09-05 21:47:34 +000023684fi
cristy8b350f62009-11-15 23:12:43 +000023685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023686$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23687
23688
23689
23690cat >>confdefs.h <<_ACEOF
23691#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23692_ACEOF
23693
23694
23695
23696# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23697# The cast to long int works around a bug in the HP C Compiler
23698# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23699# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23700# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023702$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023703if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023704 $as_echo_n "(cached) " >&6
23705else
cristy8b350f62009-11-15 23:12:43 +000023706 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 +000023707
cristy3ed852e2009-09-05 21:47:34 +000023708else
cristy8b350f62009-11-15 23:12:43 +000023709 if test "$ac_cv_type_unsigned_short" = yes; then
23710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023712as_fn_error 77 "cannot compute sizeof (unsigned short)
23713See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023714 else
23715 ac_cv_sizeof_unsigned_short=0
23716 fi
23717fi
cristy8b350f62009-11-15 23:12:43 +000023718
cristy3ed852e2009-09-05 21:47:34 +000023719fi
cristy8b350f62009-11-15 23:12:43 +000023720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023721$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23722
23723
23724
23725cat >>confdefs.h <<_ACEOF
23726#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23727_ACEOF
23728
23729
23730
23731# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23732# The cast to long int works around a bug in the HP C Compiler
23733# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23734# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23735# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023737$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023738if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023739 $as_echo_n "(cached) " >&6
23740else
cristy8b350f62009-11-15 23:12:43 +000023741 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 +000023742
cristy3ed852e2009-09-05 21:47:34 +000023743else
cristy8b350f62009-11-15 23:12:43 +000023744 if test "$ac_cv_type_signed_int" = yes; then
23745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023747as_fn_error 77 "cannot compute sizeof (signed int)
23748See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023749 else
23750 ac_cv_sizeof_signed_int=0
23751 fi
23752fi
cristy8b350f62009-11-15 23:12:43 +000023753
cristy3ed852e2009-09-05 21:47:34 +000023754fi
cristy8b350f62009-11-15 23:12:43 +000023755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023756$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23757
23758
23759
23760cat >>confdefs.h <<_ACEOF
23761#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23762_ACEOF
23763
23764
23765
23766# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23767# The cast to long int works around a bug in the HP C Compiler
23768# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23769# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23770# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023772$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023773if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023774 $as_echo_n "(cached) " >&6
23775else
cristy8b350f62009-11-15 23:12:43 +000023776 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 +000023777
cristy3ed852e2009-09-05 21:47:34 +000023778else
cristy8b350f62009-11-15 23:12:43 +000023779 if test "$ac_cv_type_unsigned_int" = yes; then
23780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023782as_fn_error 77 "cannot compute sizeof (unsigned int)
23783See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023784 else
23785 ac_cv_sizeof_unsigned_int=0
23786 fi
23787fi
cristy8b350f62009-11-15 23:12:43 +000023788
cristy3ed852e2009-09-05 21:47:34 +000023789fi
cristy8b350f62009-11-15 23:12:43 +000023790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023791$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23792
23793
23794
23795cat >>confdefs.h <<_ACEOF
23796#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23797_ACEOF
23798
23799
23800
23801# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23802# The cast to long int works around a bug in the HP C Compiler
23803# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23804# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23805# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023807$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023808if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023809 $as_echo_n "(cached) " >&6
23810else
cristy8b350f62009-11-15 23:12:43 +000023811 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 +000023812
cristy3ed852e2009-09-05 21:47:34 +000023813else
cristy8b350f62009-11-15 23:12:43 +000023814 if test "$ac_cv_type_signed_long" = yes; then
23815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023817as_fn_error 77 "cannot compute sizeof (signed long)
23818See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023819 else
23820 ac_cv_sizeof_signed_long=0
23821 fi
23822fi
cristy8b350f62009-11-15 23:12:43 +000023823
cristy3ed852e2009-09-05 21:47:34 +000023824fi
cristy8b350f62009-11-15 23:12:43 +000023825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023826$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23827
23828
23829
23830cat >>confdefs.h <<_ACEOF
23831#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23832_ACEOF
23833
23834
23835
23836# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23837# The cast to long int works around a bug in the HP C Compiler
23838# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23839# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23840# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023842$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023843if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023844 $as_echo_n "(cached) " >&6
23845else
cristy8b350f62009-11-15 23:12:43 +000023846 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 +000023847
cristy3ed852e2009-09-05 21:47:34 +000023848else
cristy8b350f62009-11-15 23:12:43 +000023849 if test "$ac_cv_type_unsigned_long" = yes; then
23850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023852as_fn_error 77 "cannot compute sizeof (unsigned long)
23853See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023854 else
23855 ac_cv_sizeof_unsigned_long=0
23856 fi
23857fi
cristy8b350f62009-11-15 23:12:43 +000023858
cristy3ed852e2009-09-05 21:47:34 +000023859fi
cristy8b350f62009-11-15 23:12:43 +000023860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023861$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23862
23863
23864
23865cat >>confdefs.h <<_ACEOF
23866#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23867_ACEOF
23868
23869
23870
23871# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23872# 'signed long long' is not supported then the value defined is zero.
23873# The cast to long int works around a bug in the HP C Compiler
23874# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23875# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23876# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023878$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023879if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023880 $as_echo_n "(cached) " >&6
23881else
cristy8b350f62009-11-15 23:12:43 +000023882 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 +000023883
cristy3ed852e2009-09-05 21:47:34 +000023884else
cristy8b350f62009-11-15 23:12:43 +000023885 if test "$ac_cv_type_signed_long_long" = yes; then
23886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023888as_fn_error 77 "cannot compute sizeof (signed long long)
23889See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023890 else
23891 ac_cv_sizeof_signed_long_long=0
23892 fi
23893fi
cristy8b350f62009-11-15 23:12:43 +000023894
cristy3ed852e2009-09-05 21:47:34 +000023895fi
cristy8b350f62009-11-15 23:12:43 +000023896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023897$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23898
23899
23900
23901cat >>confdefs.h <<_ACEOF
23902#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23903_ACEOF
23904
23905
23906
23907# Obtain size of a 'unsigned long long' and define as
23908# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23909# supported then the value defined is zero.
23910# The cast to long int works around a bug in the HP C Compiler
23911# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23912# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23913# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023915$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023916if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023917 $as_echo_n "(cached) " >&6
23918else
cristy8b350f62009-11-15 23:12:43 +000023919 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 +000023920
cristy3ed852e2009-09-05 21:47:34 +000023921else
cristy8b350f62009-11-15 23:12:43 +000023922 if test "$ac_cv_type_unsigned_long_long" = yes; then
23923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023925as_fn_error 77 "cannot compute sizeof (unsigned long long)
23926See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023927 else
23928 ac_cv_sizeof_unsigned_long_long=0
23929 fi
23930fi
cristy8b350f62009-11-15 23:12:43 +000023931
cristy3ed852e2009-09-05 21:47:34 +000023932fi
cristy8b350f62009-11-15 23:12:43 +000023933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023934$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23935
23936
23937
23938cat >>confdefs.h <<_ACEOF
23939#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23940_ACEOF
23941
23942
23943
cristyfec31822013-05-23 12:32:12 +000023944# Obtain size of off_t and define as SIZEOF_OFF_T
23945# The cast to long int works around a bug in the HP C Compiler
23946# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23947# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23948# This bug is HP SR number 8606223364.
23949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23950$as_echo_n "checking size of off_t... " >&6; }
23951if ${ac_cv_sizeof_off_t+:} false; then :
23952 $as_echo_n "(cached) " >&6
23953else
23954 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
23955
23956else
23957 if test "$ac_cv_type_off_t" = yes; then
23958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23959$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23960as_fn_error 77 "cannot compute sizeof (off_t)
23961See \`config.log' for more details" "$LINENO" 5; }
23962 else
23963 ac_cv_sizeof_off_t=0
23964 fi
23965fi
23966
23967fi
23968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23969$as_echo "$ac_cv_sizeof_off_t" >&6; }
23970
23971
23972
23973cat >>confdefs.h <<_ACEOF
23974#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23975_ACEOF
23976
23977
23978
23979# Obtain size of size_t and define as SIZEOF_SIZE_T
23980# The cast to long int works around a bug in the HP C Compiler
23981# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23982# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23983# This bug is HP SR number 8606223364.
23984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23985$as_echo_n "checking size of size_t... " >&6; }
23986if ${ac_cv_sizeof_size_t+:} false; then :
23987 $as_echo_n "(cached) " >&6
23988else
23989 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23990
23991else
23992 if test "$ac_cv_type_size_t" = yes; then
23993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23995as_fn_error 77 "cannot compute sizeof (size_t)
23996See \`config.log' for more details" "$LINENO" 5; }
23997 else
23998 ac_cv_sizeof_size_t=0
23999 fi
24000fi
24001
24002fi
24003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24004$as_echo "$ac_cv_sizeof_size_t" >&6; }
24005
24006
24007
24008cat >>confdefs.h <<_ACEOF
24009#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24010_ACEOF
24011
24012
24013
24014# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24015# The cast to long int works around a bug in the HP C Compiler
24016# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24017# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24018# This bug is HP SR number 8606223364.
24019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24020$as_echo_n "checking size of ssize_t... " >&6; }
24021if ${ac_cv_sizeof_ssize_t+:} false; then :
24022 $as_echo_n "(cached) " >&6
24023else
24024 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24025
24026else
24027 if test "$ac_cv_type_ssize_t" = yes; then
24028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24030as_fn_error 77 "cannot compute sizeof (ssize_t)
24031See \`config.log' for more details" "$LINENO" 5; }
24032 else
24033 ac_cv_sizeof_ssize_t=0
24034 fi
24035fi
24036
24037fi
24038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24039$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24040
24041
24042
24043cat >>confdefs.h <<_ACEOF
24044#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24045_ACEOF
24046
24047
24048
cristy3ed852e2009-09-05 21:47:34 +000024049# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24050# The cast to long int works around a bug in the HP C Compiler
24051# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24052# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24053# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024055$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024056if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024057 $as_echo_n "(cached) " >&6
24058else
cristy8b350f62009-11-15 23:12:43 +000024059 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 +000024060
cristy3ed852e2009-09-05 21:47:34 +000024061else
cristy8b350f62009-11-15 23:12:43 +000024062 if test "$ac_cv_type_unsigned_intp" = yes; then
24063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024065as_fn_error 77 "cannot compute sizeof (unsigned int*)
24066See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024067 else
24068 ac_cv_sizeof_unsigned_intp=0
24069 fi
24070fi
cristy8b350f62009-11-15 23:12:43 +000024071
cristy3ed852e2009-09-05 21:47:34 +000024072fi
cristy8b350f62009-11-15 23:12:43 +000024073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024074$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24075
24076
24077
24078cat >>confdefs.h <<_ACEOF
24079#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24080_ACEOF
24081
24082
24083
24084#
24085# Compute sized types for current CPU and compiler options.
24086#
24087
cristy8b350f62009-11-15 23:12:43 +000024088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024089$as_echo_n "checking for signed 8-bit type... " >&6; }
24090INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24092$as_echo "$INT8_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 unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024096$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24097UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24099$as_echo "$UINT8_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 signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024103$as_echo_n "checking for signed 16-bit type... " >&6; }
24104INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24106$as_echo "$INT16_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 unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024110$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24111UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24113$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024114
24115
cristy8b350f62009-11-15 23:12:43 +000024116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024117$as_echo_n "checking for signed 32-bit type... " >&6; }
24118INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024119INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024120if test $ac_cv_sizeof_signed_int -eq 4; then
24121 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024122 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024123elif test $ac_cv_sizeof_signed_long -eq 4; then
24124 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024125 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024126fi
cristyad38abe2012-12-23 23:03:21 +000024127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24128$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024129
24130
cristy6d5e20f2011-04-25 13:48:54 +000024131
cristy8b350f62009-11-15 23:12:43 +000024132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024133$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24134UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024135UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024136if test $ac_cv_sizeof_unsigned_int -eq 4; then
24137 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024138 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024139elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24140 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024141 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024142fi
cristyad38abe2012-12-23 23:03:21 +000024143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24144$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024145
24146
cristy6d5e20f2011-04-25 13:48:54 +000024147
cristy8b350f62009-11-15 23:12:43 +000024148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024149$as_echo_n "checking for signed 64-bit type... " >&6; }
24150INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024151INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024152if test $ac_cv_sizeof_signed_long -eq 8; then
24153 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024154 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024155elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24156 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024157 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024158fi
cristy3a99dcf2011-12-17 01:29:40 +000024159case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024160 mingw* )
24161 INT64_F='"I64"'
24162 ;;
24163esac
cristyad38abe2012-12-23 23:03:21 +000024164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24165$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024166
24167
cristy6d5e20f2011-04-25 13:48:54 +000024168
cristy8b350f62009-11-15 23:12:43 +000024169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024170$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24171UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024172UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024173if test $ac_cv_sizeof_unsigned_long -eq 8; then
24174 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024175 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024176elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24177 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024178 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024179fi
cristy3a99dcf2011-12-17 01:29:40 +000024180case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024181 mingw* )
24182 UINT64_F='"I64"'
24183 ;;
24184esac
cristyad38abe2012-12-23 23:03:21 +000024185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24186$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024187
24188
cristy6d5e20f2011-04-25 13:48:54 +000024189
cristy8b350f62009-11-15 23:12:43 +000024190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024191$as_echo_n "checking for unsigned maximum type... " >&6; }
24192UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024193UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024194if test "$UINT64_T" != 'none'; then
24195 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024196 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024197elif test "$UINT32_T" != 'none'; then
24198 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024199 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024200fi
cristyad38abe2012-12-23 23:03:21 +000024201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24202$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024203
24204
cristy6d5e20f2011-04-25 13:48:54 +000024205
cristy8b350f62009-11-15 23:12:43 +000024206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024207$as_echo_n "checking for pointer difference type... " >&6; }
24208UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024209UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024210if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24211 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024212 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024213elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24214 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024215 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024216fi
cristyad38abe2012-12-23 23:03:21 +000024217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24218$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024219
24220
cristy6d5e20f2011-04-25 13:48:54 +000024221
cristy8b350f62009-11-15 23:12:43 +000024222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024223$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024225/* end confdefs.h. */
24226
24227int
24228main ()
24229{
24230{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24231 ;
24232 return 0;
24233}
24234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024235if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24237$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024238else
cristyad38abe2012-12-23 23:03:21 +000024239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24240$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024242$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024244/* end confdefs.h. */
24245
24246int
24247main ()
24248{
24249{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24250 ;
24251 return 0;
24252}
24253_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024254if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24256$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024257
cristy8b350f62009-11-15 23:12:43 +000024258$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024259
24260else
cristyad38abe2012-12-23 23:03:21 +000024261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24262$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024263
cristy8b350f62009-11-15 23:12:43 +000024264$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024265
24266fi
cristy3ed852e2009-09-05 21:47:34 +000024267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24268fi
cristy3ed852e2009-09-05 21:47:34 +000024269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24270
24271########
24272#
24273# Check for functions
24274#
24275########
cristy8b350f62009-11-15 23:12:43 +000024276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024277$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024278if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024279 $as_echo_n "(cached) " >&6
24280else
cristy8b350f62009-11-15 23:12:43 +000024281 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024282 ac_cv_func_closedir_void=yes
24283else
cristy8b350f62009-11-15 23:12:43 +000024284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024285/* end confdefs.h. */
24286$ac_includes_default
24287#include <$ac_header_dirent>
24288#ifndef __cplusplus
24289int closedir ();
24290#endif
24291
24292int
24293main ()
24294{
24295return closedir (opendir (".")) != 0;
24296 ;
24297 return 0;
24298}
24299_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024300if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024301 ac_cv_func_closedir_void=no
24302else
cristy8b350f62009-11-15 23:12:43 +000024303 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024304fi
cristy8b350f62009-11-15 23:12:43 +000024305rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24306 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024307fi
24308
cristy3ed852e2009-09-05 21:47:34 +000024309fi
cristy8b350f62009-11-15 23:12:43 +000024310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024311$as_echo "$ac_cv_func_closedir_void" >&6; }
24312if test $ac_cv_func_closedir_void = yes; then
24313
cristy8b350f62009-11-15 23:12:43 +000024314$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024315
24316fi
24317
cristycd4c5312009-11-22 01:19:08 +000024318
24319
24320
24321 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024322do :
24323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024324ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24325"
cristy98dddb52010-11-04 00:30:15 +000024326if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024327 cat >>confdefs.h <<_ACEOF
24328#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24329_ACEOF
24330
24331fi
24332
24333done
24334
cristycd4c5312009-11-22 01:19:08 +000024335
24336
24337
24338
24339
24340
24341
cristy3ed852e2009-09-05 21:47:34 +000024342for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024343do :
24344 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024345if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024346 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024347#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024348_ACEOF
24349
24350fi
24351done
24352
cristy8b350f62009-11-15 23:12:43 +000024353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024354$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024355if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024356 $as_echo_n "(cached) " >&6
24357else
cristy8b350f62009-11-15 23:12:43 +000024358 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024359 ac_cv_func_mmap_fixed_mapped=no
24360else
cristy8b350f62009-11-15 23:12:43 +000024361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024362/* end confdefs.h. */
24363$ac_includes_default
24364/* malloc might have been renamed as rpl_malloc. */
24365#undef malloc
24366
24367/* Thanks to Mike Haertel and Jim Avera for this test.
24368 Here is a matrix of mmap possibilities:
24369 mmap private not fixed
24370 mmap private fixed at somewhere currently unmapped
24371 mmap private fixed at somewhere already mapped
24372 mmap shared not fixed
24373 mmap shared fixed at somewhere currently unmapped
24374 mmap shared fixed at somewhere already mapped
24375 For private mappings, we should verify that changes cannot be read()
24376 back from the file, nor mmap's back from the file at a different
24377 address. (There have been systems where private was not correctly
24378 implemented like the infamous i386 svr4.0, and systems where the
24379 VM page cache was not coherent with the file system buffer cache
24380 like early versions of FreeBSD and possibly contemporary NetBSD.)
24381 For shared mappings, we should conversely verify that changes get
24382 propagated back to all the places they're supposed to be.
24383
24384 Grep wants private fixed already mapped.
24385 The main things grep needs to know about mmap are:
24386 * does it exist and is it safe to write into the mmap'd area
24387 * how to use it (BSD variants) */
24388
24389#include <fcntl.h>
24390#include <sys/mman.h>
24391
24392#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24393char *malloc ();
24394#endif
24395
24396/* This mess was copied from the GNU getpagesize.h. */
24397#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024398# ifdef _SC_PAGESIZE
24399# define getpagesize() sysconf(_SC_PAGESIZE)
24400# else /* no _SC_PAGESIZE */
24401# ifdef HAVE_SYS_PARAM_H
24402# include <sys/param.h>
24403# ifdef EXEC_PAGESIZE
24404# define getpagesize() EXEC_PAGESIZE
24405# else /* no EXEC_PAGESIZE */
24406# ifdef NBPG
24407# define getpagesize() NBPG * CLSIZE
24408# ifndef CLSIZE
24409# define CLSIZE 1
24410# endif /* no CLSIZE */
24411# else /* no NBPG */
24412# ifdef NBPC
24413# define getpagesize() NBPC
24414# else /* no NBPC */
24415# ifdef PAGESIZE
24416# define getpagesize() PAGESIZE
24417# endif /* PAGESIZE */
24418# endif /* no NBPC */
24419# endif /* no NBPG */
24420# endif /* no EXEC_PAGESIZE */
24421# else /* no HAVE_SYS_PARAM_H */
24422# define getpagesize() 8192 /* punt totally */
24423# endif /* no HAVE_SYS_PARAM_H */
24424# endif /* no _SC_PAGESIZE */
24425
24426#endif /* no HAVE_GETPAGESIZE */
24427
24428int
24429main ()
24430{
24431 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024432 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024433 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024434 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024435
24436 pagesize = getpagesize ();
24437
24438 /* First, make a file with some known garbage in it. */
24439 data = (char *) malloc (pagesize);
24440 if (!data)
24441 return 1;
24442 for (i = 0; i < pagesize; ++i)
24443 *(data + i) = rand ();
24444 umask (0);
24445 fd = creat ("conftest.mmap", 0600);
24446 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024447 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024448 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024449 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024450 close (fd);
24451
cristycd4c5312009-11-22 01:19:08 +000024452 /* Next, check that the tail of a page is zero-filled. File must have
24453 non-zero length, otherwise we risk SIGBUS for entire page. */
24454 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24455 if (fd2 < 0)
24456 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024457 cdata2 = "";
24458 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024459 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024460 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024461 if (data2 == MAP_FAILED)
24462 return 6;
24463 for (i = 0; i < pagesize; ++i)
24464 if (*(data2 + i))
24465 return 7;
24466 close (fd2);
24467 if (munmap (data2, pagesize))
24468 return 8;
24469
cristy3ed852e2009-09-05 21:47:34 +000024470 /* Next, try to mmap the file at a fixed address which already has
24471 something else allocated at it. If we can, also make sure that
24472 we see the same garbage. */
24473 fd = open ("conftest.mmap", O_RDWR);
24474 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024475 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024476 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24477 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024478 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024479 for (i = 0; i < pagesize; ++i)
24480 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024481 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024482
24483 /* Finally, make sure that changes to the mapped area do not
24484 percolate back to the file as seen by read(). (This is a bug on
24485 some variants of i386 svr4.0.) */
24486 for (i = 0; i < pagesize; ++i)
24487 *(data2 + i) = *(data2 + i) + 1;
24488 data3 = (char *) malloc (pagesize);
24489 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024490 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024491 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024492 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024493 for (i = 0; i < pagesize; ++i)
24494 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024495 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024496 close (fd);
24497 return 0;
24498}
24499_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024500if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024501 ac_cv_func_mmap_fixed_mapped=yes
24502else
cristy8b350f62009-11-15 23:12:43 +000024503 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024504fi
cristy8b350f62009-11-15 23:12:43 +000024505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24506 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024507fi
24508
cristy3ed852e2009-09-05 21:47:34 +000024509fi
cristy8b350f62009-11-15 23:12:43 +000024510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024511$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24512if test $ac_cv_func_mmap_fixed_mapped = yes; then
24513
cristy8b350f62009-11-15 23:12:43 +000024514$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024515
24516fi
cristycd4c5312009-11-22 01:19:08 +000024517rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024518
cristy3ed852e2009-09-05 21:47:34 +000024519for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024520do :
24521 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024522if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024523 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024524#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024525_ACEOF
24526
24527fi
24528
24529done
24530
cristy3ed852e2009-09-05 21:47:34 +000024531for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024532do :
24533 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24534ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024535if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024536 cat >>confdefs.h <<_ACEOF
24537#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24538_ACEOF
24539
24540fi
24541done
24542
24543if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024545$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024546if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024547 $as_echo_n "(cached) " >&6
24548else
cristy8b350f62009-11-15 23:12:43 +000024549 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024550 ac_cv_func_fork_works=cross
24551else
cristy8b350f62009-11-15 23:12:43 +000024552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024553/* end confdefs.h. */
24554$ac_includes_default
24555int
24556main ()
24557{
24558
24559 /* By Ruediger Kuhlmann. */
24560 return fork () < 0;
24561
24562 ;
24563 return 0;
24564}
24565_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024566if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024567 ac_cv_func_fork_works=yes
24568else
cristy8b350f62009-11-15 23:12:43 +000024569 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024570fi
cristy8b350f62009-11-15 23:12:43 +000024571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24572 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024573fi
24574
cristy3ed852e2009-09-05 21:47:34 +000024575fi
cristy8b350f62009-11-15 23:12:43 +000024576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024577$as_echo "$ac_cv_func_fork_works" >&6; }
24578
24579else
24580 ac_cv_func_fork_works=$ac_cv_func_fork
24581fi
24582if test "x$ac_cv_func_fork_works" = xcross; then
24583 case $host in
24584 *-*-amigaos* | *-*-msdosdjgpp*)
24585 # Override, as these systems have only a dummy fork() stub
24586 ac_cv_func_fork_works=no
24587 ;;
24588 *)
24589 ac_cv_func_fork_works=yes
24590 ;;
24591 esac
cristy8b350f62009-11-15 23:12:43 +000024592 { $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 +000024593$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24594fi
24595ac_cv_func_vfork_works=$ac_cv_func_vfork
24596if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024598$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024599if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024600 $as_echo_n "(cached) " >&6
24601else
cristy8b350f62009-11-15 23:12:43 +000024602 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024603 ac_cv_func_vfork_works=cross
24604else
cristy8b350f62009-11-15 23:12:43 +000024605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024606/* end confdefs.h. */
24607/* Thanks to Paul Eggert for this test. */
24608$ac_includes_default
24609#include <sys/wait.h>
24610#ifdef HAVE_VFORK_H
24611# include <vfork.h>
24612#endif
24613/* On some sparc systems, changes by the child to local and incoming
24614 argument registers are propagated back to the parent. The compiler
24615 is told about this with #include <vfork.h>, but some compilers
24616 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24617 static variable whose address is put into a register that is
24618 clobbered by the vfork. */
24619static void
24620#ifdef __cplusplus
24621sparc_address_test (int arg)
24622# else
24623sparc_address_test (arg) int arg;
24624#endif
24625{
24626 static pid_t child;
24627 if (!child) {
24628 child = vfork ();
24629 if (child < 0) {
24630 perror ("vfork");
24631 _exit(2);
24632 }
24633 if (!child) {
24634 arg = getpid();
24635 write(-1, "", 0);
24636 _exit (arg);
24637 }
24638 }
24639}
24640
24641int
24642main ()
24643{
24644 pid_t parent = getpid ();
24645 pid_t child;
24646
24647 sparc_address_test (0);
24648
24649 child = vfork ();
24650
24651 if (child == 0) {
24652 /* Here is another test for sparc vfork register problems. This
24653 test uses lots of local variables, at least as many local
24654 variables as main has allocated so far including compiler
24655 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24656 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24657 reuse the register of parent for one of the local variables,
24658 since it will think that parent can't possibly be used any more
24659 in this routine. Assigning to the local variable will thus
24660 munge parent in the parent process. */
24661 pid_t
24662 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24663 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24664 /* Convince the compiler that p..p7 are live; otherwise, it might
24665 use the same hardware register for all 8 local variables. */
24666 if (p != p1 || p != p2 || p != p3 || p != p4
24667 || p != p5 || p != p6 || p != p7)
24668 _exit(1);
24669
24670 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24671 from child file descriptors. If the child closes a descriptor
24672 before it execs or exits, this munges the parent's descriptor
24673 as well. Test for this by closing stdout in the child. */
24674 _exit(close(fileno(stdout)) != 0);
24675 } else {
24676 int status;
24677 struct stat st;
24678
24679 while (wait(&status) != child)
24680 ;
24681 return (
24682 /* Was there some problem with vforking? */
24683 child < 0
24684
24685 /* Did the child fail? (This shouldn't happen.) */
24686 || status
24687
24688 /* Did the vfork/compiler bug occur? */
24689 || parent != getpid()
24690
24691 /* Did the file descriptor bug occur? */
24692 || fstat(fileno(stdout), &st) != 0
24693 );
24694 }
24695}
24696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024697if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024698 ac_cv_func_vfork_works=yes
24699else
cristy8b350f62009-11-15 23:12:43 +000024700 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024701fi
cristy8b350f62009-11-15 23:12:43 +000024702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24703 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024704fi
24705
cristy3ed852e2009-09-05 21:47:34 +000024706fi
cristy8b350f62009-11-15 23:12:43 +000024707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024708$as_echo "$ac_cv_func_vfork_works" >&6; }
24709
24710fi;
24711if test "x$ac_cv_func_fork_works" = xcross; then
24712 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024713 { $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 +000024714$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24715fi
24716
24717if test "x$ac_cv_func_vfork_works" = xyes; then
24718
cristy8b350f62009-11-15 23:12:43 +000024719$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024720
24721else
24722
cristy8b350f62009-11-15 23:12:43 +000024723$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024724
24725fi
24726if test "x$ac_cv_func_fork_works" = xyes; then
24727
cristy8b350f62009-11-15 23:12:43 +000024728$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024729
24730fi
24731
cristy8b350f62009-11-15 23:12:43 +000024732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024733$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024734if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024735 $as_echo_n "(cached) " >&6
24736else
cristy8b350f62009-11-15 23:12:43 +000024737 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024738 ac_cv_func_memcmp_working=no
24739else
cristy8b350f62009-11-15 23:12:43 +000024740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024741/* end confdefs.h. */
24742$ac_includes_default
24743int
24744main ()
24745{
24746
24747 /* Some versions of memcmp are not 8-bit clean. */
24748 char c0 = '\100', c1 = '\200', c2 = '\201';
24749 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24750 return 1;
24751
24752 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24753 or more and with at least one buffer not starting on a 4-byte boundary.
24754 William Lewis provided this test program. */
24755 {
24756 char foo[21];
24757 char bar[21];
24758 int i;
24759 for (i = 0; i < 4; i++)
24760 {
24761 char *a = foo + i;
24762 char *b = bar + i;
24763 strcpy (a, "--------01111111");
24764 strcpy (b, "--------10000000");
24765 if (memcmp (a, b, 16) >= 0)
24766 return 1;
24767 }
24768 return 0;
24769 }
24770
24771 ;
24772 return 0;
24773}
24774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024775if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024776 ac_cv_func_memcmp_working=yes
24777else
cristy8b350f62009-11-15 23:12:43 +000024778 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024779fi
cristy8b350f62009-11-15 23:12:43 +000024780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24781 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024782fi
24783
cristy3ed852e2009-09-05 21:47:34 +000024784fi
cristy8b350f62009-11-15 23:12:43 +000024785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024786$as_echo "$ac_cv_func_memcmp_working" >&6; }
24787test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24788 *" memcmp.$ac_objext "* ) ;;
24789 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24790 ;;
24791esac
24792
24793
cristy3ed852e2009-09-05 21:47:34 +000024794for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024795do :
24796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24797ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024798if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024799 cat >>confdefs.h <<_ACEOF
24800#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24801_ACEOF
24802
24803fi
24804
24805done
24806
cristy8b350f62009-11-15 23:12:43 +000024807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024808$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024809if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024810 $as_echo_n "(cached) " >&6
24811else
24812 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24813 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24814 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024816/* end confdefs.h. */
24817$ac_includes_default
24818#ifdef HAVE_SYS_SELECT_H
24819# include <sys/select.h>
24820#endif
24821#ifdef HAVE_SYS_SOCKET_H
24822# include <sys/socket.h>
24823#endif
24824
24825int
24826main ()
24827{
24828extern int select ($ac_arg1,
24829 $ac_arg234, $ac_arg234, $ac_arg234,
24830 $ac_arg5);
24831 ;
24832 return 0;
24833}
24834_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024835if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024836 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024837fi
cristy3ed852e2009-09-05 21:47:34 +000024838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24839 done
24840 done
24841done
24842# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024843: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024844
24845fi
cristy8b350f62009-11-15 23:12:43 +000024846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024847$as_echo "$ac_cv_func_select_args" >&6; }
24848ac_save_IFS=$IFS; IFS=','
24849set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24850IFS=$ac_save_IFS
24851shift
24852
24853cat >>confdefs.h <<_ACEOF
24854#define SELECT_TYPE_ARG1 $1
24855_ACEOF
24856
24857
24858cat >>confdefs.h <<_ACEOF
24859#define SELECT_TYPE_ARG234 ($2)
24860_ACEOF
24861
24862
24863cat >>confdefs.h <<_ACEOF
24864#define SELECT_TYPE_ARG5 ($3)
24865_ACEOF
24866
24867rm -f conftest*
24868
cristyda16f162011-02-19 23:52:17 +000024869if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024870 $as_echo_n "(cached) " >&6
24871else
24872 ac_cv_func_setvbuf_reversed=no
24873fi
24874
24875
cristy8b350f62009-11-15 23:12:43 +000024876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024877$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024878if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024879 $as_echo_n "(cached) " >&6
24880else
cristy8b350f62009-11-15 23:12:43 +000024881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024882/* end confdefs.h. */
24883#include <sys/types.h>
24884#include <signal.h>
24885
24886int
24887main ()
24888{
24889return *(signal (0, 0)) (0) == 1;
24890 ;
24891 return 0;
24892}
24893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024894if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024895 ac_cv_type_signal=int
24896else
cristy8b350f62009-11-15 23:12:43 +000024897 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024898fi
cristy3ed852e2009-09-05 21:47:34 +000024899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24900fi
cristy8b350f62009-11-15 23:12:43 +000024901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024902$as_echo "$ac_cv_type_signal" >&6; }
24903
24904cat >>confdefs.h <<_ACEOF
24905#define RETSIGTYPE $ac_cv_type_signal
24906_ACEOF
24907
24908
cristy8b350f62009-11-15 23:12:43 +000024909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024910$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024911if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024912 $as_echo_n "(cached) " >&6
24913else
cristy8b350f62009-11-15 23:12:43 +000024914 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024915 ac_cv_func_strtod=no
24916else
cristy8b350f62009-11-15 23:12:43 +000024917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024918/* end confdefs.h. */
24919
24920$ac_includes_default
24921#ifndef strtod
24922double strtod ();
24923#endif
24924int
24925main()
24926{
24927 {
24928 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24929 char *string = " +69";
24930 char *term;
24931 double value;
24932 value = strtod (string, &term);
24933 if (value != 69 || term != (string + 4))
24934 return 1;
24935 }
24936
24937 {
24938 /* Under Solaris 2.4, strtod returns the wrong value for the
24939 terminating character under some conditions. */
24940 char *string = "NaN";
24941 char *term;
24942 strtod (string, &term);
24943 if (term != string && *(term - 1) == 0)
24944 return 1;
24945 }
24946 return 0;
24947}
24948
24949_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024950if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024951 ac_cv_func_strtod=yes
24952else
cristy8b350f62009-11-15 23:12:43 +000024953 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024954fi
cristy8b350f62009-11-15 23:12:43 +000024955rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24956 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024957fi
24958
cristy3ed852e2009-09-05 21:47:34 +000024959fi
cristy8b350f62009-11-15 23:12:43 +000024960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024961$as_echo "$ac_cv_func_strtod" >&6; }
24962if test $ac_cv_func_strtod = no; then
24963 case " $LIBOBJS " in
24964 *" strtod.$ac_objext "* ) ;;
24965 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24966 ;;
24967esac
24968
cristy8b350f62009-11-15 23:12:43 +000024969ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024970if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024971
cristy3ed852e2009-09-05 21:47:34 +000024972fi
24973
cristy3ed852e2009-09-05 21:47:34 +000024974if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024976$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024977if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024978 $as_echo_n "(cached) " >&6
24979else
24980 ac_check_lib_save_LIBS=$LIBS
24981LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024983/* end confdefs.h. */
24984
24985/* Override any GCC internal prototype to avoid an error.
24986 Use char because int might match the return type of a GCC
24987 builtin and then its argument prototype would still apply. */
24988#ifdef __cplusplus
24989extern "C"
24990#endif
24991char pow ();
24992int
24993main ()
24994{
24995return pow ();
24996 ;
24997 return 0;
24998}
24999_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025000if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025001 ac_cv_lib_m_pow=yes
25002else
cristy8b350f62009-11-15 23:12:43 +000025003 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025004fi
cristy8b350f62009-11-15 23:12:43 +000025005rm -f core conftest.err conftest.$ac_objext \
25006 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025007LIBS=$ac_check_lib_save_LIBS
25008fi
cristy8b350f62009-11-15 23:12:43 +000025009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025010$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025011if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025012 POW_LIB=-lm
25013else
cristy8b350f62009-11-15 23:12:43 +000025014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025015$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25016fi
25017
25018fi
25019
25020fi
25021
cristy7d4a1d62011-10-13 15:54:12 +000025022ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25023if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25024 ac_have_decl=1
25025else
25026 ac_have_decl=0
25027fi
25028
25029cat >>confdefs.h <<_ACEOF
25030#define HAVE_DECL_STRERROR_R $ac_have_decl
25031_ACEOF
25032
25033for ac_func in strerror_r
25034do :
25035 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25036if test "x$ac_cv_func_strerror_r" = xyes; then :
25037 cat >>confdefs.h <<_ACEOF
25038#define HAVE_STRERROR_R 1
25039_ACEOF
25040
25041fi
25042done
25043
25044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25045$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25046if ${ac_cv_func_strerror_r_char_p+:} false; then :
25047 $as_echo_n "(cached) " >&6
25048else
25049
25050 ac_cv_func_strerror_r_char_p=no
25051 if test $ac_cv_have_decl_strerror_r = yes; then
25052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25053/* end confdefs.h. */
25054$ac_includes_default
25055int
25056main ()
25057{
25058
25059 char buf[100];
25060 char x = *strerror_r (0, buf, sizeof buf);
25061 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025062 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025063
25064 ;
25065 return 0;
25066}
25067_ACEOF
25068if ac_fn_c_try_compile "$LINENO"; then :
25069 ac_cv_func_strerror_r_char_p=yes
25070fi
25071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25072 else
25073 # strerror_r is not declared. Choose between
25074 # systems that have relatively inaccessible declarations for the
25075 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25076 # former has a strerror_r that returns char*, while the latter
25077 # has a strerror_r that returns `int'.
25078 # This test should segfault on the DEC system.
25079 if test "$cross_compiling" = yes; then :
25080 :
25081else
25082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25083/* end confdefs.h. */
25084$ac_includes_default
25085 extern char *strerror_r ();
25086int
25087main ()
25088{
25089char buf[100];
25090 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025091 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025092 ;
25093 return 0;
25094}
25095_ACEOF
25096if ac_fn_c_try_run "$LINENO"; then :
25097 ac_cv_func_strerror_r_char_p=yes
25098fi
25099rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25100 conftest.$ac_objext conftest.beam conftest.$ac_ext
25101fi
25102
25103 fi
25104
25105fi
25106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25107$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25108if test $ac_cv_func_strerror_r_char_p = yes; then
25109
25110$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25111
25112fi
25113
cristy3ed852e2009-09-05 21:47:34 +000025114for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025115do :
25116 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025117if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025118 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025119#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025120_ACEOF
25121
cristy8b350f62009-11-15 23:12:43 +000025122ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025123if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025124
cristy8b350f62009-11-15 23:12:43 +000025125$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025126
25127fi
25128
25129fi
25130done
25131
25132
25133
cristy161b9262010-03-20 19:34:32 +000025134#
25135# Find math library
25136#
25137MATH_LIBS=''
25138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25139$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025140if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025141 $as_echo_n "(cached) " >&6
25142else
25143 ac_check_lib_save_LIBS=$LIBS
25144LIBS="-lm $LIBS"
25145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25146/* end confdefs.h. */
25147
25148/* Override any GCC internal prototype to avoid an error.
25149 Use char because int might match the return type of a GCC
25150 builtin and then its argument prototype would still apply. */
25151#ifdef __cplusplus
25152extern "C"
25153#endif
25154char sqrt ();
25155int
25156main ()
25157{
25158return sqrt ();
25159 ;
25160 return 0;
25161}
25162_ACEOF
25163if ac_fn_c_try_link "$LINENO"; then :
25164 ac_cv_lib_m_sqrt=yes
25165else
25166 ac_cv_lib_m_sqrt=no
25167fi
25168rm -f core conftest.err conftest.$ac_objext \
25169 conftest$ac_exeext conftest.$ac_ext
25170LIBS=$ac_check_lib_save_LIBS
25171fi
25172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25173$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025174if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025175 MATH_LIBS="-lm"
25176fi
25177
25178LIBS="$MATH_LIBS $LIBS"
25179
25180
cristy85572162013-01-04 19:19:32 +000025181#
25182# Find socket library
25183#
cristy8a5d7f42013-01-06 15:24:33 +000025184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25185$as_echo_n "checking for library containing gethostbyname... " >&6; }
25186if ${ac_cv_search_gethostbyname+:} false; then :
25187 $as_echo_n "(cached) " >&6
25188else
25189 ac_func_search_save_LIBS=$LIBS
25190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25191/* end confdefs.h. */
25192
25193/* Override any GCC internal prototype to avoid an error.
25194 Use char because int might match the return type of a GCC
25195 builtin and then its argument prototype would still apply. */
25196#ifdef __cplusplus
25197extern "C"
25198#endif
25199char gethostbyname ();
25200int
25201main ()
25202{
25203return gethostbyname ();
25204 ;
25205 return 0;
25206}
25207_ACEOF
25208for ac_lib in '' resolv nsl; do
25209 if test -z "$ac_lib"; then
25210 ac_res="none required"
25211 else
25212 ac_res=-l$ac_lib
25213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25214 fi
25215 if ac_fn_c_try_link "$LINENO"; then :
25216 ac_cv_search_gethostbyname=$ac_res
25217fi
25218rm -f core conftest.err conftest.$ac_objext \
25219 conftest$ac_exeext
25220 if ${ac_cv_search_gethostbyname+:} false; then :
25221 break
25222fi
25223done
25224if ${ac_cv_search_gethostbyname+:} false; then :
25225
25226else
25227 ac_cv_search_gethostbyname=no
25228fi
25229rm conftest.$ac_ext
25230LIBS=$ac_func_search_save_LIBS
25231fi
25232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25233$as_echo "$ac_cv_search_gethostbyname" >&6; }
25234ac_res=$ac_cv_search_gethostbyname
25235if test "$ac_res" != no; then :
25236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25237
25238fi
25239
cristy85572162013-01-04 19:19:32 +000025240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25241$as_echo_n "checking for library containing socket... " >&6; }
25242if ${ac_cv_search_socket+:} false; then :
25243 $as_echo_n "(cached) " >&6
25244else
25245 ac_func_search_save_LIBS=$LIBS
25246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25247/* end confdefs.h. */
25248
25249/* Override any GCC internal prototype to avoid an error.
25250 Use char because int might match the return type of a GCC
25251 builtin and then its argument prototype would still apply. */
25252#ifdef __cplusplus
25253extern "C"
25254#endif
25255char socket ();
25256int
25257main ()
25258{
25259return socket ();
25260 ;
25261 return 0;
25262}
25263_ACEOF
25264for ac_lib in '' socket; do
25265 if test -z "$ac_lib"; then
25266 ac_res="none required"
25267 else
25268 ac_res=-l$ac_lib
25269 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25270 fi
25271 if ac_fn_c_try_link "$LINENO"; then :
25272 ac_cv_search_socket=$ac_res
25273fi
25274rm -f core conftest.err conftest.$ac_objext \
25275 conftest$ac_exeext
25276 if ${ac_cv_search_socket+:} false; then :
25277 break
25278fi
25279done
25280if ${ac_cv_search_socket+:} false; then :
25281
25282else
25283 ac_cv_search_socket=no
25284fi
25285rm conftest.$ac_ext
25286LIBS=$ac_func_search_save_LIBS
25287fi
25288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25289$as_echo "$ac_cv_search_socket" >&6; }
25290ac_res=$ac_cv_search_socket
25291if test "$ac_res" != no; then :
25292 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25293
cristy85572162013-01-04 19:19:32 +000025294
cristy8a5d7f42013-01-06 15:24:33 +000025295$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025296
cristy03f187e2013-01-24 00:22:19 +000025297 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025298
25299fi
25300
25301
25302for 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 +000025303do :
25304 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25305ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025306if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025307 cat >>confdefs.h <<_ACEOF
25308#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25309_ACEOF
25310
25311fi
25312done
25313
25314
cristye43a45e2009-09-28 14:49:00 +000025315#
25316# Check for clock_gettime().
25317#
cristy8b350f62009-11-15 23:12:43 +000025318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025319$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025320if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025321 $as_echo_n "(cached) " >&6
25322else
25323 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025325/* end confdefs.h. */
25326
25327/* Override any GCC internal prototype to avoid an error.
25328 Use char because int might match the return type of a GCC
25329 builtin and then its argument prototype would still apply. */
25330#ifdef __cplusplus
25331extern "C"
25332#endif
25333char clock_gettime ();
25334int
25335main ()
25336{
25337return clock_gettime ();
25338 ;
25339 return 0;
25340}
25341_ACEOF
25342for ac_lib in '' rt; do
25343 if test -z "$ac_lib"; then
25344 ac_res="none required"
25345 else
25346 ac_res=-l$ac_lib
25347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25348 fi
cristy8b350f62009-11-15 23:12:43 +000025349 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025350 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025351fi
cristy8b350f62009-11-15 23:12:43 +000025352rm -f core conftest.err conftest.$ac_objext \
25353 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025354 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025355 break
25356fi
25357done
cristyda16f162011-02-19 23:52:17 +000025358if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025359
cristye43a45e2009-09-28 14:49:00 +000025360else
25361 ac_cv_search_clock_gettime=no
25362fi
25363rm conftest.$ac_ext
25364LIBS=$ac_func_search_save_LIBS
25365fi
cristy8b350f62009-11-15 23:12:43 +000025366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025367$as_echo "$ac_cv_search_clock_gettime" >&6; }
25368ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025369if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025370 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25371
25372
cristy8b350f62009-11-15 23:12:43 +000025373$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025374
cristy8b350f62009-11-15 23:12:43 +000025375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025376$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025378/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025379
25380 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025381int
25382main ()
25383{
25384clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025385 ;
25386 return 0;
25387}
25388_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025389if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025390
cristyad38abe2012-12-23 23:03:21 +000025391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25392$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025393
cristy8b350f62009-11-15 23:12:43 +000025394$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025395
25396
25397else
cristyad38abe2012-12-23 23:03:21 +000025398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25399$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025400
25401fi
cristye43a45e2009-09-28 14:49:00 +000025402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25403
25404else
25405
cristy8b350f62009-11-15 23:12:43 +000025406 for ac_func in gettimeofday ftime
25407do :
25408 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25409ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025410if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025411 cat >>confdefs.h <<_ACEOF
25412#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25413_ACEOF
25414 break
25415fi
25416done
25417
25418
25419
25420fi
25421
25422
cristy3ed852e2009-09-05 21:47:34 +000025423########
25424#
25425# Check for function prototypes
25426#
25427########
25428
cristy8b350f62009-11-15 23:12:43 +000025429ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025430#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025431"
cristyda16f162011-02-19 23:52:17 +000025432if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025433 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025434else
cristy8b350f62009-11-15 23:12:43 +000025435 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025436fi
25437
cristy3ed852e2009-09-05 21:47:34 +000025438cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025439#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025440_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025441ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025442#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025443"
cristyda16f162011-02-19 23:52:17 +000025444if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025445 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025446else
cristy8b350f62009-11-15 23:12:43 +000025447 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025448fi
25449
cristy3ed852e2009-09-05 21:47:34 +000025450cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025451#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025452_ACEOF
25453
25454
cristy8b350f62009-11-15 23:12:43 +000025455ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025456#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025457"
cristyda16f162011-02-19 23:52:17 +000025458if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025459 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025460else
cristy8b350f62009-11-15 23:12:43 +000025461 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025462fi
25463
cristy3ed852e2009-09-05 21:47:34 +000025464cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025465#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025466_ACEOF
25467
25468
cristy8b350f62009-11-15 23:12:43 +000025469ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025470#include <stdio.h>
25471#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025472"
cristyda16f162011-02-19 23:52:17 +000025473if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025474 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025475else
cristy8b350f62009-11-15 23:12:43 +000025476 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025477fi
25478
cristy3ed852e2009-09-05 21:47:34 +000025479cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025480#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025481_ACEOF
25482
25483
cristy3ed852e2009-09-05 21:47:34 +000025484########
25485#
25486# C++ Support Tests (For Magick++)
25487#
25488########
25489have_magick_plus_plus='no'
25490if test "$with_magick_plus_plus" = 'yes'; then
25491 OLIBS="$LIBS"
25492 LIBS=''
25493 ac_ext=cpp
25494ac_cpp='$CXXCPP $CPPFLAGS'
25495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25498
25499
25500 # Full set of headers used...
25501 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25502 # functional iomanip iosfwd iostream iterator list string strstream utility
25503 ac_ext=cpp
25504ac_cpp='$CXXCPP $CPPFLAGS'
25505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25508
25509 ac_ext=cpp
25510ac_cpp='$CXXCPP $CPPFLAGS'
25511ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25512ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25513ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25514if test -z "$CXX"; then
25515 if test -n "$CCC"; then
25516 CXX=$CCC
25517 else
25518 if test -n "$ac_tool_prefix"; then
25519 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25520 do
25521 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25522set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025524$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025525if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025526 $as_echo_n "(cached) " >&6
25527else
25528 if test -n "$CXX"; then
25529 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25530else
25531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25532for as_dir in $PATH
25533do
25534 IFS=$as_save_IFS
25535 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025536 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025538 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025540 break 2
25541 fi
25542done
cristy8b350f62009-11-15 23:12:43 +000025543 done
cristy3ed852e2009-09-05 21:47:34 +000025544IFS=$as_save_IFS
25545
25546fi
25547fi
25548CXX=$ac_cv_prog_CXX
25549if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025551$as_echo "$CXX" >&6; }
25552else
cristy8b350f62009-11-15 23:12:43 +000025553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025554$as_echo "no" >&6; }
25555fi
25556
25557
25558 test -n "$CXX" && break
25559 done
25560fi
25561if test -z "$CXX"; then
25562 ac_ct_CXX=$CXX
25563 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25564do
25565 # Extract the first word of "$ac_prog", so it can be a program name with args.
25566set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025568$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025569if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025570 $as_echo_n "(cached) " >&6
25571else
25572 if test -n "$ac_ct_CXX"; then
25573 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25574else
25575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25576for as_dir in $PATH
25577do
25578 IFS=$as_save_IFS
25579 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025580 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025582 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025584 break 2
25585 fi
25586done
cristy8b350f62009-11-15 23:12:43 +000025587 done
cristy3ed852e2009-09-05 21:47:34 +000025588IFS=$as_save_IFS
25589
25590fi
25591fi
25592ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25593if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025595$as_echo "$ac_ct_CXX" >&6; }
25596else
cristy8b350f62009-11-15 23:12:43 +000025597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025598$as_echo "no" >&6; }
25599fi
25600
25601
25602 test -n "$ac_ct_CXX" && break
25603done
25604
25605 if test "x$ac_ct_CXX" = x; then
25606 CXX="g++"
25607 else
25608 case $cross_compiling:$ac_tool_warned in
25609yes:)
cristy8b350f62009-11-15 23:12:43 +000025610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25612ac_tool_warned=yes ;;
25613esac
25614 CXX=$ac_ct_CXX
25615 fi
25616fi
25617
25618 fi
25619fi
25620# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025621$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025622set X $ac_compile
25623ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025624for ac_option in --version -v -V -qversion; do
25625 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025626case "(($ac_try" in
25627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25628 *) ac_try_echo=$ac_try;;
25629esac
cristy8b350f62009-11-15 23:12:43 +000025630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25631$as_echo "$ac_try_echo"; } >&5
25632 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025633 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025634 if test -s conftest.err; then
25635 sed '10a\
25636... rest of stderr output deleted ...
25637 10q' conftest.err >conftest.er1
25638 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025639 fi
cristycd4c5312009-11-22 01:19:08 +000025640 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25642 test $ac_status = 0; }
25643done
cristy3ed852e2009-09-05 21:47:34 +000025644
cristy8b350f62009-11-15 23:12:43 +000025645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025646$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025647if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025648 $as_echo_n "(cached) " >&6
25649else
cristy8b350f62009-11-15 23:12:43 +000025650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025651/* end confdefs.h. */
25652
25653int
25654main ()
25655{
25656#ifndef __GNUC__
25657 choke me
25658#endif
25659
25660 ;
25661 return 0;
25662}
25663_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025664if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025665 ac_compiler_gnu=yes
25666else
cristy8b350f62009-11-15 23:12:43 +000025667 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025668fi
cristy3ed852e2009-09-05 21:47:34 +000025669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25670ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25671
25672fi
cristy8b350f62009-11-15 23:12:43 +000025673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025674$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25675if test $ac_compiler_gnu = yes; then
25676 GXX=yes
25677else
25678 GXX=
25679fi
25680ac_test_CXXFLAGS=${CXXFLAGS+set}
25681ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025683$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025684if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025685 $as_echo_n "(cached) " >&6
25686else
25687 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25688 ac_cxx_werror_flag=yes
25689 ac_cv_prog_cxx_g=no
25690 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025692/* end confdefs.h. */
25693
25694int
25695main ()
25696{
25697
25698 ;
25699 return 0;
25700}
25701_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025702if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025703 ac_cv_prog_cxx_g=yes
25704else
cristy8b350f62009-11-15 23:12:43 +000025705 CXXFLAGS=""
25706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025707/* end confdefs.h. */
25708
25709int
25710main ()
25711{
25712
25713 ;
25714 return 0;
25715}
25716_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025717if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025718
cristy8b350f62009-11-15 23:12:43 +000025719else
25720 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025721 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025723/* end confdefs.h. */
25724
25725int
25726main ()
25727{
25728
25729 ;
25730 return 0;
25731}
25732_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025733if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025734 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025735fi
cristy3ed852e2009-09-05 21:47:34 +000025736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25737fi
cristy3ed852e2009-09-05 21:47:34 +000025738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25739fi
cristy3ed852e2009-09-05 21:47:34 +000025740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25741 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25742fi
cristy8b350f62009-11-15 23:12:43 +000025743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025744$as_echo "$ac_cv_prog_cxx_g" >&6; }
25745if test "$ac_test_CXXFLAGS" = set; then
25746 CXXFLAGS=$ac_save_CXXFLAGS
25747elif test $ac_cv_prog_cxx_g = yes; then
25748 if test "$GXX" = yes; then
25749 CXXFLAGS="-g -O2"
25750 else
25751 CXXFLAGS="-g"
25752 fi
25753else
25754 if test "$GXX" = yes; then
25755 CXXFLAGS="-O2"
25756 else
25757 CXXFLAGS=
25758 fi
25759fi
25760ac_ext=cpp
25761ac_cpp='$CXXCPP $CPPFLAGS'
25762ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25763ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25764ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25765
cristy73bd4a52010-10-05 11:24:23 +000025766depcc="$CXX" am_compiler_list=
25767
25768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25769$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025770if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025771 $as_echo_n "(cached) " >&6
25772else
25773 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25774 # We make a subdir and do the tests there. Otherwise we can end up
25775 # making bogus files that we don't know about and never remove. For
25776 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025777 # making a dummy file named 'D' -- because '-MD' means "put the output
25778 # in D".
cristy7247bba2012-02-05 16:37:27 +000025779 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025780 mkdir conftest.dir
25781 # Copy depcomp to subdir because otherwise we won't find it if we're
25782 # using a relative directory.
25783 cp "$am_depcomp" conftest.dir
25784 cd conftest.dir
25785 # We will build objects and dependencies in a subdirectory because
25786 # it helps to detect inapplicable dependency modes. For instance
25787 # both Tru64's cc and ICC support -MD to output dependencies as a
25788 # side effect of compilation, but ICC will put the dependencies in
25789 # the current directory while Tru64 will put them in the object
25790 # directory.
25791 mkdir sub
25792
25793 am_cv_CXX_dependencies_compiler_type=none
25794 if test "$am_compiler_list" = ""; then
25795 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25796 fi
25797 am__universal=false
25798 case " $depcc " in #(
25799 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25800 esac
25801
25802 for depmode in $am_compiler_list; do
25803 # Setup a source with many dependencies, because some compilers
25804 # like to wrap large dependency lists on column 80 (with \), and
25805 # we should not choose a depcomp mode which is confused by this.
25806 #
25807 # We need to recreate these files for each test, as the compiler may
25808 # overwrite some of them when testing with obscure command lines.
25809 # This happens at least with the AIX C compiler.
25810 : > sub/conftest.c
25811 for i in 1 2 3 4 5 6; do
25812 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025813 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25814 # Solaris 10 /bin/sh.
25815 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025816 done
25817 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25818
cristyc0890a62012-07-19 00:18:20 +000025819 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025820 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025821 # handle '-M -o', and we need to detect this. Also, some Intel
25822 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025823 am__obj=sub/conftest.${OBJEXT-o}
25824 am__minus_obj="-o $am__obj"
25825 case $depmode in
25826 gcc)
25827 # This depmode causes a compiler race in universal mode.
25828 test "$am__universal" = false || continue
25829 ;;
25830 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025831 # After this tag, mechanisms are not by side-effect, so they'll
25832 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025833 if test "x$enable_dependency_tracking" = xyes; then
25834 continue
25835 else
25836 break
25837 fi
25838 ;;
cristy7247bba2012-02-05 16:37:27 +000025839 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025840 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025841 # not run yet. These depmodes are late enough in the game, and
25842 # so weak that their functioning should not be impacted.
25843 am__obj=conftest.${OBJEXT-o}
25844 am__minus_obj=
25845 ;;
25846 none) break ;;
25847 esac
25848 if depmode=$depmode \
25849 source=sub/conftest.c object=$am__obj \
25850 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25851 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25852 >/dev/null 2>conftest.err &&
25853 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25854 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25855 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25856 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25857 # icc doesn't choke on unknown options, it will just issue warnings
25858 # or remarks (even with -Werror). So we grep stderr for any message
25859 # that says an option was ignored or not supported.
25860 # When given -MP, icc 7.0 and 7.1 complain thusly:
25861 # icc: Command line warning: ignoring option '-M'; no argument required
25862 # The diagnosis changed in icc 8.0:
25863 # icc: Command line remark: option '-MP' not supported
25864 if (grep 'ignoring option' conftest.err ||
25865 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25866 am_cv_CXX_dependencies_compiler_type=$depmode
25867 break
25868 fi
25869 fi
25870 done
25871
25872 cd ..
25873 rm -rf conftest.dir
25874else
25875 am_cv_CXX_dependencies_compiler_type=none
25876fi
25877
25878fi
25879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25880$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25881CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25882
25883 if
25884 test "x$enable_dependency_tracking" != xno \
25885 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25886 am__fastdepCXX_TRUE=
25887 am__fastdepCXX_FALSE='#'
25888else
25889 am__fastdepCXX_TRUE='#'
25890 am__fastdepCXX_FALSE=
25891fi
25892
25893
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25895$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025896if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025897 $as_echo_n "(cached) " >&6
25898else
25899
25900 ac_ext=cpp
25901ac_cpp='$CXXCPP $CPPFLAGS'
25902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25905
25906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25907/* end confdefs.h. */
25908
25909int f(int x){return 1;}
25910int f(char x){return 1;}
25911int f(bool x){return 1;}
25912
25913int
25914main ()
25915{
25916bool b = true; return f(b);
25917 ;
25918 return 0;
25919}
25920_ACEOF
25921if ac_fn_cxx_try_compile "$LINENO"; then :
25922 ax_cv_cxx_bool=yes
25923else
25924 ax_cv_cxx_bool=no
25925fi
25926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25927 ac_ext=cpp
25928ac_cpp='$CXXCPP $CPPFLAGS'
25929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25932
25933
25934fi
25935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25936$as_echo "$ax_cv_cxx_bool" >&6; }
25937if test "$ax_cv_cxx_bool" = yes; then
25938
25939$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25940
25941fi
25942
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25944$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025945if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025946 $as_echo_n "(cached) " >&6
25947else
25948
25949 ac_ext=cpp
25950ac_cpp='$CXXCPP $CPPFLAGS'
25951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25954
25955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25956/* end confdefs.h. */
25957namespace Outer { namespace Inner { int i = 0; }}
25958int
25959main ()
25960{
25961using namespace Outer::Inner; return i;
25962 ;
25963 return 0;
25964}
25965_ACEOF
25966if ac_fn_cxx_try_compile "$LINENO"; then :
25967 ax_cv_cxx_namespaces=yes
25968else
25969 ax_cv_cxx_namespaces=no
25970fi
25971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25972 ac_ext=cpp
25973ac_cpp='$CXXCPP $CPPFLAGS'
25974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25977
25978
25979fi
25980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25981$as_echo "$ax_cv_cxx_namespaces" >&6; }
25982if test "$ax_cv_cxx_namespaces" = yes; then
25983
25984$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25985
25986fi
25987
25988
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25990$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025991if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025992 $as_echo_n "(cached) " >&6
25993else
25994
25995 ac_ext=cpp
25996ac_cpp='$CXXCPP $CPPFLAGS'
25997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26000
26001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26002/* end confdefs.h. */
26003#include <iostream>
26004 std::istream& is = std::cin;
26005int
26006main ()
26007{
26008
26009 ;
26010 return 0;
26011}
26012_ACEOF
26013if ac_fn_cxx_try_compile "$LINENO"; then :
26014 ax_cv_cxx_have_std_namespace=yes
26015else
26016 ax_cv_cxx_have_std_namespace=no
26017fi
26018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26019 ac_ext=cpp
26020ac_cpp='$CXXCPP $CPPFLAGS'
26021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26022ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26023ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26024
26025
26026fi
26027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26028$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26029 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26030
26031$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26032
26033 fi
26034
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26036$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026037if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026038 $as_echo_n "(cached) " >&6
26039else
26040
26041
26042 ac_ext=cpp
26043ac_cpp='$CXXCPP $CPPFLAGS'
26044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26047
26048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26049/* end confdefs.h. */
26050#include <iostream>
26051#include <map>
26052#include <iomanip>
26053#include <cmath>
26054#ifdef HAVE_NAMESPACES
26055using namespace std;
26056#endif
26057int
26058main ()
26059{
26060return 0;
26061 ;
26062 return 0;
26063}
26064_ACEOF
26065if ac_fn_cxx_try_compile "$LINENO"; then :
26066 ac_cv_cxx_have_std_libs=yes
26067else
26068 ac_cv_cxx_have_std_libs=no
26069fi
26070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26071 ac_ext=cpp
26072ac_cpp='$CXXCPP $CPPFLAGS'
26073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26076
26077
26078fi
26079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26080$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26081if test "$ac_cv_cxx_have_std_libs" = yes; then
26082
26083$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26084
26085fi
26086
cristy3ed852e2009-09-05 21:47:34 +000026087
26088 OPENMP_CXXFLAGS=
26089 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026090if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026091 enableval=$enable_openmp;
26092fi
26093
26094 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26096$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026097if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026098 $as_echo_n "(cached) " >&6
26099else
cristy8b350f62009-11-15 23:12:43 +000026100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26101/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026102
26103#ifndef _OPENMP
26104 choke me
26105#endif
26106#include <omp.h>
26107int main () { return omp_get_num_threads (); }
26108
26109_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026110if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026111 ac_cv_prog_cxx_openmp='none needed'
26112else
cristy8b350f62009-11-15 23:12:43 +000026113 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026114 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26115 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026116 ac_save_CXXFLAGS=$CXXFLAGS
26117 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26119/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026120
26121#ifndef _OPENMP
26122 choke me
26123#endif
26124#include <omp.h>
26125int main () { return omp_get_num_threads (); }
26126
26127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026128if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026129 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026130fi
cristy8b350f62009-11-15 23:12:43 +000026131rm -f core conftest.err conftest.$ac_objext \
26132 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026133 CXXFLAGS=$ac_save_CXXFLAGS
26134 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26135 break
26136 fi
26137 done
26138fi
cristy8b350f62009-11-15 23:12:43 +000026139rm -f core conftest.err conftest.$ac_objext \
26140 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026141fi
cristy8b350f62009-11-15 23:12:43 +000026142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026143$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26144 case $ac_cv_prog_cxx_openmp in #(
26145 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026146 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026147 *)
cristy8b350f62009-11-15 23:12:43 +000026148 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026149 esac
26150 fi
26151
26152
26153 ac_ext=c
26154ac_cpp='$CPP $CPPFLAGS'
26155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26157ac_compiler_gnu=$ac_cv_c_compiler_gnu
26158
26159
cristy8b350f62009-11-15 23:12:43 +000026160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026161$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26162 if \
cristy964cb7f2010-04-25 23:18:00 +000026163 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026164 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026165 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026166 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026167 have_magick_plus_plus='yes'
26168 else
26169 have_magick_plus_plus='no (failed tests)'
26170 fi
cristyad38abe2012-12-23 23:03:21 +000026171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26172$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026173 LIBS="$OLIBS"
26174fi
cristy73bd4a52010-10-05 11:24:23 +000026175 if test "$have_magick_plus_plus" = 'yes'; then
26176 WITH_MAGICK_PLUS_PLUS_TRUE=
26177 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26178else
26179 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26180 WITH_MAGICK_PLUS_PLUS_FALSE=
26181fi
26182
cristy3ed852e2009-09-05 21:47:34 +000026183
26184# Only check for delegate libraries in subdirectories if requested.
26185if test "$enable_delegate_build" != 'no'; then
26186 # Check for delegate sub-directories and add -I & -L options as required.
26187 # This presumes that delegates are installed as detailed in the ImageMagick
26188 # README. If delegates are installed in a standard location where the
26189 # compiler will automatically find them then these options should not be
26190 # required.
26191
26192 #
26193 # Most delegates have includes in the same directory as the library, but not all...
26194 #
26195 # Includes
cristyfdc7d122013-08-17 20:46:45 +000026196 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 +000026197 if test -d "$builddir/$dir"; then
26198 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26199 else
26200 if test -d "$srcdirfull/$dir"; then
26201 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26202 fi
26203 fi
26204 done
26205
26206 # Libraries
cristyfdc7d122013-08-17 20:46:45 +000026207 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 +000026208 if test -d "$builddir/$dir/.libs"; then
26209 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26210 else
26211 if test -d "$srcdirfull/$dir/.libs"; then
26212 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26213 fi
26214 fi
26215 if test -d "$builddir/$dir"; then
26216 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26217 else
26218 if test -d "$srcdirfull/$dir"; then
26219 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26220 fi
26221 fi
26222 done
26223fi
26224
26225# Assume that delegate headers reside under same directory as ImageMagick
26226# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026227MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026228
26229#
26230# Find the X11 RGB database
26231#
cristy8b350f62009-11-15 23:12:43 +000026232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026233$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026234if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026235 $as_echo_n "(cached) " >&6
26236else
26237 # Look for the header file in a standard set of common directories.
26238# Check X11 before X11Rn because it is often a symlink to the current release.
26239 for ac_dir in \
26240 /lib/usr/lib/X11 \
26241 /usr/X11/lib \
26242 /usr/X11R4/lib \
26243 /usr/X11R5/lib \
26244 /usr/X11R6/lib \
26245 /usr/X11R7/lib \
26246 /usr/X386/lib \
26247 /usr/XFree86/lib/X11 \
26248 /usr/athena/lib \
26249 /usr/lib \
26250 /usr/lib/X11 \
26251 /usr/lib/X11R4 \
26252 /usr/lib/X11R5 \
26253 /usr/lib/X11R6 \
26254 /usr/lib/X11R7 \
26255 /usr/local/X11/lib \
26256 /usr/local/X11R4/lib \
26257 /usr/local/X11R5/lib \
26258 /usr/local/X11R6/lib \
26259 /usr/local/lib \
26260 /usr/local/lib/X11 \
26261 /usr/local/lib/X11R4 \
26262 /usr/local/lib/X11R5 \
26263 /usr/local/lib/X11R6 \
26264 /usr/local/lib/X11R7 \
26265 /usr/local/x11r5/lib \
26266 /usr/lpp/Xamples/lib \
26267 /usr/openwin/lib \
26268 /usr/openwin/share/lib \
26269 /usr/unsupported/lib \
26270 /usr/x386/lib \
26271 ; do
26272 if test -f "$ac_dir/X11/rgb.txt"; then
26273 im_cv_x_configure="$ac_dir/X11/"
26274 break
26275 elif test -f "$ac_dir/rgb.txt"; then
26276 im_cv_x_configure="$ac_dir/"
26277 break
26278 fi
26279
26280 done
26281fi
cristy8b350f62009-11-15 23:12:43 +000026282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026283$as_echo "$im_cv_x_configure" >&6; }
26284X11_CONFIGURE_PATH="$im_cv_x_configure"
26285case "${build_os}" in
26286 mingw* )
26287 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26288 ;;
26289esac
26290
26291cat >>confdefs.h <<_ACEOF
26292#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26293_ACEOF
26294
26295
26296#
26297# Find OpenMP library
26298#
26299GOMP_LIBS=''
26300if test "$enable_openmp" != 'no'; then
26301 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026302 # Open64 (passes for GCC but uses different OpenMP implementation)
26303 if test "x$GOMP_LIBS" = x ; then
26304 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26306$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26307if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26308 $as_echo_n "(cached) " >&6
26309else
26310 ac_check_lib_save_LIBS=$LIBS
26311LIBS="-lopenmp $LIBS"
26312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26313/* end confdefs.h. */
26314
26315/* Override any GCC internal prototype to avoid an error.
26316 Use char because int might match the return type of a GCC
26317 builtin and then its argument prototype would still apply. */
26318#ifdef __cplusplus
26319extern "C"
26320#endif
26321char omp_get_num_procs ();
26322int
26323main ()
26324{
26325return omp_get_num_procs ();
26326 ;
26327 return 0;
26328}
26329_ACEOF
26330if ac_fn_c_try_link "$LINENO"; then :
26331 ac_cv_lib_openmp_omp_get_num_procs=yes
26332else
26333 ac_cv_lib_openmp_omp_get_num_procs=no
26334fi
26335rm -f core conftest.err conftest.$ac_objext \
26336 conftest$ac_exeext conftest.$ac_ext
26337LIBS=$ac_check_lib_save_LIBS
26338fi
26339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26340$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26341if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26342 GOMP_LIBS="-lopenmp"
26343fi
26344
26345 fi
26346 fi
26347 # GCC
26348 if test "x$GOMP_LIBS" = x ; then
26349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026350$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026351if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026352 $as_echo_n "(cached) " >&6
26353else
26354 ac_check_lib_save_LIBS=$LIBS
26355LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026357/* end confdefs.h. */
26358
26359/* Override any GCC internal prototype to avoid an error.
26360 Use char because int might match the return type of a GCC
26361 builtin and then its argument prototype would still apply. */
26362#ifdef __cplusplus
26363extern "C"
26364#endif
26365char GOMP_parallel_start ();
26366int
26367main ()
26368{
26369return GOMP_parallel_start ();
26370 ;
26371 return 0;
26372}
26373_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026374if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026375 ac_cv_lib_gomp_GOMP_parallel_start=yes
26376else
cristy8b350f62009-11-15 23:12:43 +000026377 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026378fi
cristy8b350f62009-11-15 23:12:43 +000026379rm -f core conftest.err conftest.$ac_objext \
26380 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026381LIBS=$ac_check_lib_save_LIBS
26382fi
cristy8b350f62009-11-15 23:12:43 +000026383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026384$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026385if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026386 GOMP_LIBS="-lgomp"
26387fi
cristy18307f12011-12-30 01:20:16 +000026388
26389 fi
cristy3ed852e2009-09-05 21:47:34 +000026390 else
cristy18307f12011-12-30 01:20:16 +000026391 # Sun CC
26392 if test "x$GOMP_LIBS" = x ; then
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026394$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026395if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026396 $as_echo_n "(cached) " >&6
26397else
26398 ac_check_lib_save_LIBS=$LIBS
26399LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026401/* end confdefs.h. */
26402
26403/* Override any GCC internal prototype to avoid an error.
26404 Use char because int might match the return type of a GCC
26405 builtin and then its argument prototype would still apply. */
26406#ifdef __cplusplus
26407extern "C"
26408#endif
26409char sunw_mp_register_warn ();
26410int
26411main ()
26412{
26413return sunw_mp_register_warn ();
26414 ;
26415 return 0;
26416}
26417_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026418if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026419 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26420else
cristy8b350f62009-11-15 23:12:43 +000026421 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026422fi
cristy8b350f62009-11-15 23:12:43 +000026423rm -f core conftest.err conftest.$ac_objext \
26424 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026425LIBS=$ac_check_lib_save_LIBS
26426fi
cristy8b350f62009-11-15 23:12:43 +000026427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026428$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026429if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026430 GOMP_LIBS="-lmtsk"
26431fi
cristy18307f12011-12-30 01:20:16 +000026432
26433 fi
26434 # AIX xlc
26435 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026437$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026438if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026439 $as_echo_n "(cached) " >&6
26440else
26441 ac_check_lib_save_LIBS=$LIBS
26442LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026444/* end confdefs.h. */
26445
26446/* Override any GCC internal prototype to avoid an error.
26447 Use char because int might match the return type of a GCC
26448 builtin and then its argument prototype would still apply. */
26449#ifdef __cplusplus
26450extern "C"
26451#endif
26452char _xlsmpFlush ();
26453int
26454main ()
26455{
26456return _xlsmpFlush ();
26457 ;
26458 return 0;
26459}
26460_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026461if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026462 ac_cv_lib_xlsmp__xlsmpFlush=yes
26463else
cristy8b350f62009-11-15 23:12:43 +000026464 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026465fi
cristy8b350f62009-11-15 23:12:43 +000026466rm -f core conftest.err conftest.$ac_objext \
26467 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026468LIBS=$ac_check_lib_save_LIBS
26469fi
cristy8b350f62009-11-15 23:12:43 +000026470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026471$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026472if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026473 GOMP_LIBS="-lxlsmp"
26474fi
cristy18307f12011-12-30 01:20:16 +000026475
26476 fi
26477 # SGI IRIX 6.5 MIPSpro C/C++
26478 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026480$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026481if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026482 $as_echo_n "(cached) " >&6
26483else
26484 ac_check_lib_save_LIBS=$LIBS
26485LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026487/* end confdefs.h. */
26488
26489/* Override any GCC internal prototype to avoid an error.
26490 Use char because int might match the return type of a GCC
26491 builtin and then its argument prototype would still apply. */
26492#ifdef __cplusplus
26493extern "C"
26494#endif
26495char mp_destroy ();
26496int
26497main ()
26498{
26499return mp_destroy ();
26500 ;
26501 return 0;
26502}
26503_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026504if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026505 ac_cv_lib_mp_mp_destroy=yes
26506else
cristy8b350f62009-11-15 23:12:43 +000026507 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026508fi
cristy8b350f62009-11-15 23:12:43 +000026509rm -f core conftest.err conftest.$ac_objext \
26510 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026511LIBS=$ac_check_lib_save_LIBS
26512fi
cristy8b350f62009-11-15 23:12:43 +000026513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026514$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026515if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026516 GOMP_LIBS="-lmp"
26517fi
cristy18307f12011-12-30 01:20:16 +000026518
26519 fi
cristy3ed852e2009-09-05 21:47:34 +000026520 fi
26521 LIBS="$GOMP_LIBS $LIBS"
26522fi
26523
26524
cristy3ed852e2009-09-05 21:47:34 +000026525
26526
26527#
26528# Check for umem.
26529#
26530have_umem='no'
26531UMEM_LIBS=''
26532if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026534$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26536$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026537 failed=0
26538 passed=0
cristy8b350f62009-11-15 23:12:43 +000026539 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026540if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026541 passed=`expr $passed + 1`
26542else
26543 failed=`expr $failed + 1`
26544fi
26545
26546
cristy8b350f62009-11-15 23:12:43 +000026547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026548$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026549if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026550 $as_echo_n "(cached) " >&6
26551else
26552 ac_check_lib_save_LIBS=$LIBS
26553LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026555/* end confdefs.h. */
26556
26557/* Override any GCC internal prototype to avoid an error.
26558 Use char because int might match the return type of a GCC
26559 builtin and then its argument prototype would still apply. */
26560#ifdef __cplusplus
26561extern "C"
26562#endif
26563char umem_alloc ();
26564int
26565main ()
26566{
26567return umem_alloc ();
26568 ;
26569 return 0;
26570}
26571_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026572if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026573 ac_cv_lib_umem_umem_alloc=yes
26574else
cristy8b350f62009-11-15 23:12:43 +000026575 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026576fi
cristy8b350f62009-11-15 23:12:43 +000026577rm -f core conftest.err conftest.$ac_objext \
26578 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026579LIBS=$ac_check_lib_save_LIBS
26580fi
cristy8b350f62009-11-15 23:12:43 +000026581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026582$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026583if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026584 passed=`expr $passed + 1`
26585else
26586 failed=`expr $failed + 1`
26587fi
26588
cristy8b350f62009-11-15 23:12:43 +000026589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026590$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026591if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026592 $as_echo_n "(cached) " >&6
26593else
26594 ac_check_lib_save_LIBS=$LIBS
26595LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026597/* end confdefs.h. */
26598
26599/* Override any GCC internal prototype to avoid an error.
26600 Use char because int might match the return type of a GCC
26601 builtin and then its argument prototype would still apply. */
26602#ifdef __cplusplus
26603extern "C"
26604#endif
26605char umem_free ();
26606int
26607main ()
26608{
26609return umem_free ();
26610 ;
26611 return 0;
26612}
26613_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026614if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026615 ac_cv_lib_umem_umem_free=yes
26616else
cristy8b350f62009-11-15 23:12:43 +000026617 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026618fi
cristy8b350f62009-11-15 23:12:43 +000026619rm -f core conftest.err conftest.$ac_objext \
26620 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026621LIBS=$ac_check_lib_save_LIBS
26622fi
cristy8b350f62009-11-15 23:12:43 +000026623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026624$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026625if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026626 passed=`expr $passed + 1`
26627else
26628 failed=`expr $failed + 1`
26629fi
26630
cristy8b350f62009-11-15 23:12:43 +000026631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026632$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26633 if test $passed -gt 0; then
26634 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26636$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026637 have_umem='no (failed tests)'
26638 else
26639 UMEM_LIBS='-lumem'
26640 LIBS="$UMEM_LIBS $LIBS"
26641
cristy8b350f62009-11-15 23:12:43 +000026642$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026643
cristyad38abe2012-12-23 23:03:21 +000026644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26645$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026646 have_umem='yes'
26647 fi
26648 else
cristyad38abe2012-12-23 23:03:21 +000026649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26650$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026651 fi
26652fi
cristy73bd4a52010-10-05 11:24:23 +000026653 if test "$have_umem" = 'yes'; then
26654 HasUMEM_TRUE=
26655 HasUMEM_FALSE='#'
26656else
26657 HasUMEM_TRUE='#'
26658 HasUMEM_FALSE=
26659fi
26660
cristy3ed852e2009-09-05 21:47:34 +000026661
26662
26663#
26664# Add support for ccmalloc memory debugging library if requested
26665#
26666have_ccmalloc='no'
26667CCMALLOC_LIBS=''
26668if test "$enable_ccmalloc" = 'yes'; then
26669 # Extract the first word of "ccmalloc", so it can be a program name with args.
26670set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026672$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026673if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026674 $as_echo_n "(cached) " >&6
26675else
26676 case $CCMALLOCDelegate in
26677 [\\/]* | ?:[\\/]*)
26678 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26679 ;;
26680 *)
26681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26682for as_dir in $PATH
26683do
26684 IFS=$as_save_IFS
26685 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026686 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026688 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026690 break 2
26691 fi
26692done
cristy8b350f62009-11-15 23:12:43 +000026693 done
cristy3ed852e2009-09-05 21:47:34 +000026694IFS=$as_save_IFS
26695
26696 ;;
26697esac
26698fi
26699CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26700if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026702$as_echo "$CCMALLOCDelegate" >&6; }
26703else
cristy8b350f62009-11-15 23:12:43 +000026704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026705$as_echo "no" >&6; }
26706fi
26707
26708
26709 if test -n "$CCMALLOCDelegate"; then
26710 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26711 OLIBS="$LIBS"
26712 # Assume that gcc is used with ccmalloc.
26713 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026715$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026716if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026717 $as_echo_n "(cached) " >&6
26718else
26719 ac_check_lib_save_LIBS=$LIBS
26720LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026722/* end confdefs.h. */
26723
26724/* Override any GCC internal prototype to avoid an error.
26725 Use char because int might match the return type of a GCC
26726 builtin and then its argument prototype would still apply. */
26727#ifdef __cplusplus
26728extern "C"
26729#endif
26730char ccmalloc_malloc ();
26731int
26732main ()
26733{
26734return ccmalloc_malloc ();
26735 ;
26736 return 0;
26737}
26738_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026739if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026740 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26741else
cristy8b350f62009-11-15 23:12:43 +000026742 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026743fi
cristy8b350f62009-11-15 23:12:43 +000026744rm -f core conftest.err conftest.$ac_objext \
26745 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026746LIBS=$ac_check_lib_save_LIBS
26747fi
cristy8b350f62009-11-15 23:12:43 +000026748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026749$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026750if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026751 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26752fi
26753
26754 if test -n "$CCMALLOC_LIBS"; then
26755 LIBS="$OLIBS"
26756 LIBS="$LIBS $CCMALLOC_LIBS"
26757 have_ccmalloc='yes'
26758 else
26759 LIBS="$OLIBS"
26760 fi
26761 fi
26762fi
26763
26764#
cristy944e51f2013-04-16 18:45:02 +000026765# Add support for 'huge pages' if requested
26766#
26767if test "x$enable_hugepages" != "xno"; then :
26768
26769
26770$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
26771
26772
26773fi
26774
26775#
cristy3ed852e2009-09-05 21:47:34 +000026776# Add support for efence memory debugging library if requested
26777#
26778if test "$enable_efence" = 'yes'; then
26779 EFENCE_LIBS='-lefence'
26780 LIBS="$EFENCE_LIBS $LIBS"
26781fi
26782
cristy3ed852e2009-09-05 21:47:34 +000026783
26784#
26785# Check for BZLIB
26786#
26787
26788
26789# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026790if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026791 withval=$with_bzlib; with_bzlib=$withval
26792else
26793 with_bzlib='yes'
26794fi
26795
26796
26797if test "$with_bzlib" != 'yes'; then
26798 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26799fi
26800
26801have_bzlib='no'
26802if test "$with_bzlib" != 'no'; then
26803 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000026804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26805$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026807$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000026808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26809$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026810 failed=0
26811 passed=0
26812 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026813 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026814if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026815 passed=`expr $passed + 1`
26816else
26817 failed=`expr $failed + 1`
26818fi
26819
26820
cristy8b350f62009-11-15 23:12:43 +000026821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026822$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026823if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026824 $as_echo_n "(cached) " >&6
26825else
26826 ac_check_lib_save_LIBS=$LIBS
26827LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026829/* end confdefs.h. */
26830
26831/* Override any GCC internal prototype to avoid an error.
26832 Use char because int might match the return type of a GCC
26833 builtin and then its argument prototype would still apply. */
26834#ifdef __cplusplus
26835extern "C"
26836#endif
26837char BZ2_bzDecompress ();
26838int
26839main ()
26840{
26841return BZ2_bzDecompress ();
26842 ;
26843 return 0;
26844}
26845_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026846if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026847 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26848else
cristy8b350f62009-11-15 23:12:43 +000026849 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026850fi
cristy8b350f62009-11-15 23:12:43 +000026851rm -f core conftest.err conftest.$ac_objext \
26852 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026853LIBS=$ac_check_lib_save_LIBS
26854fi
cristy8b350f62009-11-15 23:12:43 +000026855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026856$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026857if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026858 found_libbz=`expr $found_libbz + 1`
26859fi
26860
26861 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026863$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026864if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026865 $as_echo_n "(cached) " >&6
26866else
26867 ac_check_lib_save_LIBS=$LIBS
26868LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026870/* end confdefs.h. */
26871
26872/* Override any GCC internal prototype to avoid an error.
26873 Use char because int might match the return type of a GCC
26874 builtin and then its argument prototype would still apply. */
26875#ifdef __cplusplus
26876extern "C"
26877#endif
26878char _imp__BZ2_decompress ();
26879int
26880main ()
26881{
26882return _imp__BZ2_decompress ();
26883 ;
26884 return 0;
26885}
26886_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026887if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026888 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26889else
cristy8b350f62009-11-15 23:12:43 +000026890 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026891fi
cristy8b350f62009-11-15 23:12:43 +000026892rm -f core conftest.err conftest.$ac_objext \
26893 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026894LIBS=$ac_check_lib_save_LIBS
26895fi
cristy8b350f62009-11-15 23:12:43 +000026896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026897$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026898if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026899 found_libbz=`expr $found_libbz + 1`
26900fi
26901
26902 fi
26903 if test $found_libbz -gt 0; then
26904 passed=`expr $passed + 1`
26905 else
26906 failed=`expr $failed + 1`
26907 fi
cristy8b350f62009-11-15 23:12:43 +000026908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026909$as_echo_n "checking if BZLIB package is complete... " >&6; }
26910 if test $passed -gt 0; then
26911 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000026912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26913$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026914 have_bzlib='no (failed tests)'
26915 else
26916 BZLIB_LIBS='-lbz2'
26917 LIBS="$BZLIB_LIBS $LIBS"
26918
cristy8b350f62009-11-15 23:12:43 +000026919$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026920
cristyad38abe2012-12-23 23:03:21 +000026921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26922$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026923 have_bzlib='yes'
26924 fi
26925 else
cristyad38abe2012-12-23 23:03:21 +000026926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26927$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026928 fi
26929fi
cristy73bd4a52010-10-05 11:24:23 +000026930 if test "$have_bzlib" = 'yes'; then
26931 BZLIB_DELEGATE_TRUE=
26932 BZLIB_DELEGATE_FALSE='#'
26933else
26934 BZLIB_DELEGATE_TRUE='#'
26935 BZLIB_DELEGATE_FALSE=
26936fi
26937
cristy3ed852e2009-09-05 21:47:34 +000026938
26939
26940#
26941# Find the X11 include and library directories.
26942#
26943IPC_LIBS=''
26944X11_LIBS=''
26945XEXT_LIBS=''
26946XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026948$as_echo_n "checking for X... " >&6; }
26949
26950
26951# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026952if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026953 withval=$with_x;
26954fi
26955
26956# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26957if test "x$with_x" = xno; then
26958 # The user explicitly disabled X.
26959 have_x=disabled
26960else
26961 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026962 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026963 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026964 $as_echo_n "(cached) " >&6
26965else
26966 # One or both of the vars are not set, and there is no cached value.
26967ac_x_includes=no ac_x_libraries=no
26968rm -f -r conftest.dir
26969if mkdir conftest.dir; then
26970 cd conftest.dir
26971 cat >Imakefile <<'_ACEOF'
26972incroot:
26973 @echo incroot='${INCROOT}'
26974usrlibdir:
26975 @echo usrlibdir='${USRLIBDIR}'
26976libdir:
26977 @echo libdir='${LIBDIR}'
26978_ACEOF
26979 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026980 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026981 for ac_var in incroot usrlibdir libdir; do
26982 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26983 done
26984 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26985 for ac_extension in a so sl dylib la dll; do
26986 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26987 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26988 ac_im_usrlibdir=$ac_im_libdir; break
26989 fi
26990 done
26991 # Screen out bogus values from the imake configuration. They are
26992 # bogus both because they are the default anyway, and because
26993 # using them would break gcc on systems where it needs fixed includes.
26994 case $ac_im_incroot in
26995 /usr/include) ac_x_includes= ;;
26996 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26997 esac
26998 case $ac_im_usrlibdir in
26999 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27000 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27001 esac
27002 fi
27003 cd ..
27004 rm -f -r conftest.dir
27005fi
27006
27007# Standard set of common directories for X headers.
27008# Check X11 before X11Rn because it is often a symlink to the current release.
27009ac_x_header_dirs='
27010/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027011/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027012/usr/X11R6/include
27013/usr/X11R5/include
27014/usr/X11R4/include
27015
27016/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027017/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027018/usr/include/X11R6
27019/usr/include/X11R5
27020/usr/include/X11R4
27021
27022/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027023/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027024/usr/local/X11R6/include
27025/usr/local/X11R5/include
27026/usr/local/X11R4/include
27027
27028/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027029/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027030/usr/local/include/X11R6
27031/usr/local/include/X11R5
27032/usr/local/include/X11R4
27033
27034/usr/X386/include
27035/usr/x386/include
27036/usr/XFree86/include/X11
27037
27038/usr/include
27039/usr/local/include
27040/usr/unsupported/include
27041/usr/athena/include
27042/usr/local/x11r5/include
27043/usr/lpp/Xamples/include
27044
27045/usr/openwin/include
27046/usr/openwin/share/include'
27047
27048if test "$ac_x_includes" = no; then
27049 # Guess where to find include files, by looking for Xlib.h.
27050 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027052/* end confdefs.h. */
27053#include <X11/Xlib.h>
27054_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027055if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027056 # We can compile using X headers with no special include directory.
27057ac_x_includes=
27058else
cristyc7083c12009-10-14 03:16:55 +000027059 for ac_dir in $ac_x_header_dirs; do
27060 if test -r "$ac_dir/X11/Xlib.h"; then
27061 ac_x_includes=$ac_dir
27062 break
27063 fi
27064done
27065fi
cristyda16f162011-02-19 23:52:17 +000027066rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027067fi # $ac_x_includes = no
27068
27069if test "$ac_x_libraries" = no; then
27070 # Check for the libraries.
27071 # See if we find them without any special options.
27072 # Don't add to $LIBS permanently.
27073 ac_save_LIBS=$LIBS
27074 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027076/* end confdefs.h. */
27077#include <X11/Xlib.h>
27078int
27079main ()
27080{
27081XrmInitialize ()
27082 ;
27083 return 0;
27084}
27085_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027086if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027087 LIBS=$ac_save_LIBS
27088# We can link X programs with no special library path.
27089ac_x_libraries=
27090else
cristy8b350f62009-11-15 23:12:43 +000027091 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027092for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27093do
27094 # Don't even attempt the hair of trying to link an X program!
27095 for ac_extension in a so sl dylib la dll; do
27096 if test -r "$ac_dir/libX11.$ac_extension"; then
27097 ac_x_libraries=$ac_dir
27098 break 2
27099 fi
27100 done
27101done
27102fi
cristy8b350f62009-11-15 23:12:43 +000027103rm -f core conftest.err conftest.$ac_objext \
27104 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027105fi # $ac_x_libraries = no
27106
27107case $ac_x_includes,$ac_x_libraries in #(
27108 no,* | *,no | *\'*)
27109 # Didn't find X, or a directory has "'" in its name.
27110 ac_cv_have_x="have_x=no";; #(
27111 *)
27112 # Record where we found X for the cache.
27113 ac_cv_have_x="have_x=yes\
27114 ac_x_includes='$ac_x_includes'\
27115 ac_x_libraries='$ac_x_libraries'"
27116esac
27117fi
27118;; #(
27119 *) have_x=yes;;
27120 esac
27121 eval "$ac_cv_have_x"
27122fi # $with_x != no
27123
27124if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027126$as_echo "$have_x" >&6; }
27127 no_x=yes
27128else
27129 # If each of the values was on the command line, it overrides each guess.
27130 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27131 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27132 # Update the cache value to reflect the command line values.
27133 ac_cv_have_x="have_x=yes\
27134 ac_x_includes='$x_includes'\
27135 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027137$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27138fi
27139
cristy3ed852e2009-09-05 21:47:34 +000027140if test "$no_x" = yes; then
27141 # Not all programs may use this symbol, but it does not hurt to define it.
27142
cristy8b350f62009-11-15 23:12:43 +000027143$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027144
27145 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27146else
27147 if test -n "$x_includes"; then
27148 X_CFLAGS="$X_CFLAGS -I$x_includes"
27149 fi
27150
27151 # It would also be nice to do this for all -L options, not just this one.
27152 if test -n "$x_libraries"; then
27153 X_LIBS="$X_LIBS -L$x_libraries"
27154 # For Solaris; some versions of Sun CC require a space after -R and
27155 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027157$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27158 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27159 ac_xsave_c_werror_flag=$ac_c_werror_flag
27160 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027162/* end confdefs.h. */
27163
27164int
27165main ()
27166{
27167
27168 ;
27169 return 0;
27170}
27171_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027172if ac_fn_c_try_link "$LINENO"; then :
27173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027174$as_echo "no" >&6; }
27175 X_LIBS="$X_LIBS -R$x_libraries"
27176else
cristy8b350f62009-11-15 23:12:43 +000027177 LIBS="$ac_xsave_LIBS -R $x_libraries"
27178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027179/* end confdefs.h. */
27180
27181int
27182main ()
27183{
27184
27185 ;
27186 return 0;
27187}
27188_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027189if ac_fn_c_try_link "$LINENO"; then :
27190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027191$as_echo "yes" >&6; }
27192 X_LIBS="$X_LIBS -R $x_libraries"
27193else
cristy8b350f62009-11-15 23:12:43 +000027194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027195$as_echo "neither works" >&6; }
27196fi
cristy8b350f62009-11-15 23:12:43 +000027197rm -f core conftest.err conftest.$ac_objext \
27198 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027199fi
cristy8b350f62009-11-15 23:12:43 +000027200rm -f core conftest.err conftest.$ac_objext \
27201 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027202 ac_c_werror_flag=$ac_xsave_c_werror_flag
27203 LIBS=$ac_xsave_LIBS
27204 fi
27205
27206 # Check for system-dependent libraries X programs must link with.
27207 # Do this before checking for the system-independent R6 libraries
27208 # (-lICE), since we may need -lsocket or whatever for X linking.
27209
27210 if test "$ISC" = yes; then
27211 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27212 else
27213 # Martyn Johnson says this is needed for Ultrix, if the X
27214 # libraries were built with DECnet support. And Karl Berry says
27215 # the Alpha needs dnet_stub (dnet does not exist).
27216 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027218/* end confdefs.h. */
27219
27220/* Override any GCC internal prototype to avoid an error.
27221 Use char because int might match the return type of a GCC
27222 builtin and then its argument prototype would still apply. */
27223#ifdef __cplusplus
27224extern "C"
27225#endif
27226char XOpenDisplay ();
27227int
27228main ()
27229{
27230return XOpenDisplay ();
27231 ;
27232 return 0;
27233}
27234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027235if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027236
cristy8b350f62009-11-15 23:12:43 +000027237else
27238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027239$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027240if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027241 $as_echo_n "(cached) " >&6
27242else
27243 ac_check_lib_save_LIBS=$LIBS
27244LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027246/* end confdefs.h. */
27247
27248/* Override any GCC internal prototype to avoid an error.
27249 Use char because int might match the return type of a GCC
27250 builtin and then its argument prototype would still apply. */
27251#ifdef __cplusplus
27252extern "C"
27253#endif
27254char dnet_ntoa ();
27255int
27256main ()
27257{
27258return dnet_ntoa ();
27259 ;
27260 return 0;
27261}
27262_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027263if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027264 ac_cv_lib_dnet_dnet_ntoa=yes
27265else
cristy8b350f62009-11-15 23:12:43 +000027266 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027267fi
cristy8b350f62009-11-15 23:12:43 +000027268rm -f core conftest.err conftest.$ac_objext \
27269 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027270LIBS=$ac_check_lib_save_LIBS
27271fi
cristy8b350f62009-11-15 23:12:43 +000027272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027273$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027274if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027275 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27276fi
27277
27278 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027280$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027281if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027282 $as_echo_n "(cached) " >&6
27283else
27284 ac_check_lib_save_LIBS=$LIBS
27285LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027287/* end confdefs.h. */
27288
27289/* Override any GCC internal prototype to avoid an error.
27290 Use char because int might match the return type of a GCC
27291 builtin and then its argument prototype would still apply. */
27292#ifdef __cplusplus
27293extern "C"
27294#endif
27295char dnet_ntoa ();
27296int
27297main ()
27298{
27299return dnet_ntoa ();
27300 ;
27301 return 0;
27302}
27303_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027304if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027305 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27306else
cristy8b350f62009-11-15 23:12:43 +000027307 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027308fi
cristy8b350f62009-11-15 23:12:43 +000027309rm -f core conftest.err conftest.$ac_objext \
27310 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027311LIBS=$ac_check_lib_save_LIBS
27312fi
cristy8b350f62009-11-15 23:12:43 +000027313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027314$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027315if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027316 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27317fi
27318
27319 fi
27320fi
cristy8b350f62009-11-15 23:12:43 +000027321rm -f core conftest.err conftest.$ac_objext \
27322 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027323 LIBS="$ac_xsave_LIBS"
27324
27325 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27326 # to get the SysV transport functions.
27327 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27328 # needs -lnsl.
27329 # The nsl library prevents programs from opening the X display
27330 # on Irix 5.2, according to T.E. Dickey.
27331 # The functions gethostbyname, getservbyname, and inet_addr are
27332 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027333 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027334if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027335
cristy3ed852e2009-09-05 21:47:34 +000027336fi
27337
cristy3ed852e2009-09-05 21:47:34 +000027338 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027340$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027341if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027342 $as_echo_n "(cached) " >&6
27343else
27344 ac_check_lib_save_LIBS=$LIBS
27345LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027347/* end confdefs.h. */
27348
27349/* Override any GCC internal prototype to avoid an error.
27350 Use char because int might match the return type of a GCC
27351 builtin and then its argument prototype would still apply. */
27352#ifdef __cplusplus
27353extern "C"
27354#endif
27355char gethostbyname ();
27356int
27357main ()
27358{
27359return gethostbyname ();
27360 ;
27361 return 0;
27362}
27363_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027364if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027365 ac_cv_lib_nsl_gethostbyname=yes
27366else
cristy8b350f62009-11-15 23:12:43 +000027367 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027368fi
cristy8b350f62009-11-15 23:12:43 +000027369rm -f core conftest.err conftest.$ac_objext \
27370 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027371LIBS=$ac_check_lib_save_LIBS
27372fi
cristy8b350f62009-11-15 23:12:43 +000027373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027374$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027375if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027376 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27377fi
27378
27379 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027381$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027382if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027383 $as_echo_n "(cached) " >&6
27384else
27385 ac_check_lib_save_LIBS=$LIBS
27386LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027388/* end confdefs.h. */
27389
27390/* Override any GCC internal prototype to avoid an error.
27391 Use char because int might match the return type of a GCC
27392 builtin and then its argument prototype would still apply. */
27393#ifdef __cplusplus
27394extern "C"
27395#endif
27396char gethostbyname ();
27397int
27398main ()
27399{
27400return gethostbyname ();
27401 ;
27402 return 0;
27403}
27404_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027405if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027406 ac_cv_lib_bsd_gethostbyname=yes
27407else
cristy8b350f62009-11-15 23:12:43 +000027408 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027409fi
cristy8b350f62009-11-15 23:12:43 +000027410rm -f core conftest.err conftest.$ac_objext \
27411 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027412LIBS=$ac_check_lib_save_LIBS
27413fi
cristy8b350f62009-11-15 23:12:43 +000027414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027415$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027416if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027417 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27418fi
27419
27420 fi
27421 fi
27422
27423 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27424 # socket/setsockopt and other routines are undefined under SCO ODT
27425 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27426 # on later versions), says Simon Leinen: it contains gethostby*
27427 # variants that don't use the name server (or something). -lsocket
27428 # must be given before -lnsl if both are needed. We assume that
27429 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027430 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027431if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027432
cristy3ed852e2009-09-05 21:47:34 +000027433fi
27434
cristy3ed852e2009-09-05 21:47:34 +000027435 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027437$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027438if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027439 $as_echo_n "(cached) " >&6
27440else
27441 ac_check_lib_save_LIBS=$LIBS
27442LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027444/* end confdefs.h. */
27445
27446/* Override any GCC internal prototype to avoid an error.
27447 Use char because int might match the return type of a GCC
27448 builtin and then its argument prototype would still apply. */
27449#ifdef __cplusplus
27450extern "C"
27451#endif
27452char connect ();
27453int
27454main ()
27455{
27456return connect ();
27457 ;
27458 return 0;
27459}
27460_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027461if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027462 ac_cv_lib_socket_connect=yes
27463else
cristy8b350f62009-11-15 23:12:43 +000027464 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027465fi
cristy8b350f62009-11-15 23:12:43 +000027466rm -f core conftest.err conftest.$ac_objext \
27467 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027468LIBS=$ac_check_lib_save_LIBS
27469fi
cristy8b350f62009-11-15 23:12:43 +000027470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027471$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027472if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027473 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27474fi
27475
27476 fi
27477
27478 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027479 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027480if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027481
cristy3ed852e2009-09-05 21:47:34 +000027482fi
27483
cristy3ed852e2009-09-05 21:47:34 +000027484 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027486$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027487if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027488 $as_echo_n "(cached) " >&6
27489else
27490 ac_check_lib_save_LIBS=$LIBS
27491LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027493/* end confdefs.h. */
27494
27495/* Override any GCC internal prototype to avoid an error.
27496 Use char because int might match the return type of a GCC
27497 builtin and then its argument prototype would still apply. */
27498#ifdef __cplusplus
27499extern "C"
27500#endif
27501char remove ();
27502int
27503main ()
27504{
27505return remove ();
27506 ;
27507 return 0;
27508}
27509_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027510if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027511 ac_cv_lib_posix_remove=yes
27512else
cristy8b350f62009-11-15 23:12:43 +000027513 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027514fi
cristy8b350f62009-11-15 23:12:43 +000027515rm -f core conftest.err conftest.$ac_objext \
27516 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027517LIBS=$ac_check_lib_save_LIBS
27518fi
cristy8b350f62009-11-15 23:12:43 +000027519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027520$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027521if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027522 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27523fi
27524
27525 fi
27526
27527 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027528 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027529if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027530
cristy3ed852e2009-09-05 21:47:34 +000027531fi
27532
cristy3ed852e2009-09-05 21:47:34 +000027533 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027535$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027536if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027537 $as_echo_n "(cached) " >&6
27538else
27539 ac_check_lib_save_LIBS=$LIBS
27540LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027542/* end confdefs.h. */
27543
27544/* Override any GCC internal prototype to avoid an error.
27545 Use char because int might match the return type of a GCC
27546 builtin and then its argument prototype would still apply. */
27547#ifdef __cplusplus
27548extern "C"
27549#endif
27550char shmat ();
27551int
27552main ()
27553{
27554return shmat ();
27555 ;
27556 return 0;
27557}
27558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027559if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027560 ac_cv_lib_ipc_shmat=yes
27561else
cristy8b350f62009-11-15 23:12:43 +000027562 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027563fi
cristy8b350f62009-11-15 23:12:43 +000027564rm -f core conftest.err conftest.$ac_objext \
27565 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027566LIBS=$ac_check_lib_save_LIBS
27567fi
cristy8b350f62009-11-15 23:12:43 +000027568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027569$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027570if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027571 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27572fi
27573
27574 fi
27575 fi
27576
27577 # Check for libraries that X11R6 Xt/Xaw programs need.
27578 ac_save_LDFLAGS=$LDFLAGS
27579 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27580 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27581 # check for ICE first), but we must link in the order -lSM -lICE or
27582 # we get undefined symbols. So assume we have SM if we have ICE.
27583 # These have to be linked with before -lX11, unlike the other
27584 # libraries we check for below, so use a different variable.
27585 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027587$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027588if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027589 $as_echo_n "(cached) " >&6
27590else
27591 ac_check_lib_save_LIBS=$LIBS
27592LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027594/* end confdefs.h. */
27595
27596/* Override any GCC internal prototype to avoid an error.
27597 Use char because int might match the return type of a GCC
27598 builtin and then its argument prototype would still apply. */
27599#ifdef __cplusplus
27600extern "C"
27601#endif
27602char IceConnectionNumber ();
27603int
27604main ()
27605{
27606return IceConnectionNumber ();
27607 ;
27608 return 0;
27609}
27610_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027611if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027612 ac_cv_lib_ICE_IceConnectionNumber=yes
27613else
cristy8b350f62009-11-15 23:12:43 +000027614 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027615fi
cristy8b350f62009-11-15 23:12:43 +000027616rm -f core conftest.err conftest.$ac_objext \
27617 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027618LIBS=$ac_check_lib_save_LIBS
27619fi
cristy8b350f62009-11-15 23:12:43 +000027620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027621$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027622if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027623 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27624fi
27625
27626 LDFLAGS=$ac_save_LDFLAGS
27627
27628fi
27629
27630if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000027631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27632$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027634$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27636$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027637 LDFLAGS="$LDFLAGS $X_LIBS"
27638 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27639 LIBS="$X11_LIBS $LIBS"
27640 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27641
27642
cristy8b350f62009-11-15 23:12:43 +000027643$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027644
27645 #
27646 # Check for X11 shared memory extension
27647 #
27648 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027649 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027650if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027651 have_shmctl='yes'
27652fi
27653
27654 if test "$have_shmctl" != 'yes'; then
27655 PERSIST_LIBS=$LIBS
27656 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027658/* end confdefs.h. */
27659
27660/* Override any GCC internal prototype to avoid an error.
27661 Use char because int might match the return type of a GCC
27662 builtin and then its argument prototype would still apply. */
27663#ifdef __cplusplus
27664extern "C"
27665#endif
27666char shmctl ();
27667int
27668main ()
27669{
27670return shmctl ();
27671 ;
27672 return 0;
27673}
27674_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027675if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027676 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027677fi
cristy8b350f62009-11-15 23:12:43 +000027678rm -f core conftest.err conftest.$ac_objext \
27679 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027680 LIBS=$PERSIST_LIBS
27681 fi
27682
27683 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027685$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027686if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027687 $as_echo_n "(cached) " >&6
27688else
27689 ac_check_lib_save_LIBS=$LIBS
27690LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027692/* end confdefs.h. */
27693
27694/* Override any GCC internal prototype to avoid an error.
27695 Use char because int might match the return type of a GCC
27696 builtin and then its argument prototype would still apply. */
27697#ifdef __cplusplus
27698extern "C"
27699#endif
27700char XShmAttach ();
27701int
27702main ()
27703{
27704return XShmAttach ();
27705 ;
27706 return 0;
27707}
27708_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027709if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027710 ac_cv_lib_Xext_XShmAttach=yes
27711else
cristy8b350f62009-11-15 23:12:43 +000027712 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027713fi
cristy8b350f62009-11-15 23:12:43 +000027714rm -f core conftest.err conftest.$ac_objext \
27715 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027716LIBS=$ac_check_lib_save_LIBS
27717fi
cristy8b350f62009-11-15 23:12:43 +000027718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027719$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027720if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027721 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027722$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027723
27724fi
27725
27726 fi
27727
27728 #
27729 # Check for X11 shape extension
27730 #
cristy8b350f62009-11-15 23:12:43 +000027731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027732$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027733if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027734 $as_echo_n "(cached) " >&6
27735else
27736 ac_check_lib_save_LIBS=$LIBS
27737LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027739/* end confdefs.h. */
27740
27741/* Override any GCC internal prototype to avoid an error.
27742 Use char because int might match the return type of a GCC
27743 builtin and then its argument prototype would still apply. */
27744#ifdef __cplusplus
27745extern "C"
27746#endif
27747char XShapeCombineMask ();
27748int
27749main ()
27750{
27751return XShapeCombineMask ();
27752 ;
27753 return 0;
27754}
27755_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027756if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027757 ac_cv_lib_Xext_XShapeCombineMask=yes
27758else
cristy8b350f62009-11-15 23:12:43 +000027759 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027760fi
cristy8b350f62009-11-15 23:12:43 +000027761rm -f core conftest.err conftest.$ac_objext \
27762 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027763LIBS=$ac_check_lib_save_LIBS
27764fi
cristy8b350f62009-11-15 23:12:43 +000027765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027766$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027767if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027768 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027769$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027770
27771fi
27772
cristy8b350f62009-11-15 23:12:43 +000027773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027774$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027775if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027776 $as_echo_n "(cached) " >&6
27777else
27778 ac_check_lib_save_LIBS=$LIBS
27779LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027781/* end confdefs.h. */
27782
27783/* Override any GCC internal prototype to avoid an error.
27784 Use char because int might match the return type of a GCC
27785 builtin and then its argument prototype would still apply. */
27786#ifdef __cplusplus
27787extern "C"
27788#endif
27789char XtSetEventDispatcher ();
27790int
27791main ()
27792{
27793return XtSetEventDispatcher ();
27794 ;
27795 return 0;
27796}
27797_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027798if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027799 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27800else
cristy8b350f62009-11-15 23:12:43 +000027801 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027802fi
cristy8b350f62009-11-15 23:12:43 +000027803rm -f core conftest.err conftest.$ac_objext \
27804 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027805LIBS=$ac_check_lib_save_LIBS
27806fi
cristy8b350f62009-11-15 23:12:43 +000027807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027808$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027809if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027810 XT_LIBS='-lXt'
27811fi
27812
27813 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27814fi
27815if test "$no_x" != 'yes'; then
27816 have_x='yes'
27817else
27818 have_x='no'
27819fi
cristy73bd4a52010-10-05 11:24:23 +000027820 if test "$have_x" = 'yes'; then
27821 X11_DELEGATE_TRUE=
27822 X11_DELEGATE_FALSE='#'
27823else
27824 X11_DELEGATE_TRUE='#'
27825 X11_DELEGATE_FALSE=
27826fi
27827
cristy3ed852e2009-09-05 21:47:34 +000027828
27829
27830
27831
27832#
27833# Check for ZLIB
27834#
27835
27836# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027837if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027838 withval=$with_zlib; with_zlib=$withval
27839else
27840 with_zlib='yes'
27841fi
27842
27843
27844if test "$with_zlib" != 'yes'; then
27845 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27846fi
27847
27848have_zlib='no'
27849ZLIB_LIBS=''
27850if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000027851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27852$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027854$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27856$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027857 ZLIB_LIBS=''
27858 failed=0
27859 passed=0
cristy8b350f62009-11-15 23:12:43 +000027860 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027861if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027862 passed=`expr $passed + 1`
27863else
27864 failed=`expr $failed + 1`
27865fi
27866
27867
cristy8b350f62009-11-15 23:12:43 +000027868 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027869if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027870 passed=`expr $passed + 1`
27871else
27872 failed=`expr $failed + 1`
27873fi
27874
27875
cristy8b350f62009-11-15 23:12:43 +000027876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027877$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027878if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027879 $as_echo_n "(cached) " >&6
27880else
27881 ac_check_lib_save_LIBS=$LIBS
27882LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027884/* end confdefs.h. */
27885
27886/* Override any GCC internal prototype to avoid an error.
27887 Use char because int might match the return type of a GCC
27888 builtin and then its argument prototype would still apply. */
27889#ifdef __cplusplus
27890extern "C"
27891#endif
27892char compress ();
27893int
27894main ()
27895{
27896return compress ();
27897 ;
27898 return 0;
27899}
27900_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027901if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027902 ac_cv_lib_z_compress=yes
27903else
cristy8b350f62009-11-15 23:12:43 +000027904 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027905fi
cristy8b350f62009-11-15 23:12:43 +000027906rm -f core conftest.err conftest.$ac_objext \
27907 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027908LIBS=$ac_check_lib_save_LIBS
27909fi
cristy8b350f62009-11-15 23:12:43 +000027910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027911$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027912if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027913 passed=`expr $passed + 1`
27914else
27915 failed=`expr $failed + 1`
27916fi
27917
cristy8b350f62009-11-15 23:12:43 +000027918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027919$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027920if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027921 $as_echo_n "(cached) " >&6
27922else
27923 ac_check_lib_save_LIBS=$LIBS
27924LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027926/* end confdefs.h. */
27927
27928/* Override any GCC internal prototype to avoid an error.
27929 Use char because int might match the return type of a GCC
27930 builtin and then its argument prototype would still apply. */
27931#ifdef __cplusplus
27932extern "C"
27933#endif
27934char uncompress ();
27935int
27936main ()
27937{
27938return uncompress ();
27939 ;
27940 return 0;
27941}
27942_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027943if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027944 ac_cv_lib_z_uncompress=yes
27945else
cristy8b350f62009-11-15 23:12:43 +000027946 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027947fi
cristy8b350f62009-11-15 23:12:43 +000027948rm -f core conftest.err conftest.$ac_objext \
27949 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027950LIBS=$ac_check_lib_save_LIBS
27951fi
cristy8b350f62009-11-15 23:12:43 +000027952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027953$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027954if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027955 passed=`expr $passed + 1`
27956else
27957 failed=`expr $failed + 1`
27958fi
27959
cristy8b350f62009-11-15 23:12:43 +000027960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027961$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027962if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027963 $as_echo_n "(cached) " >&6
27964else
27965 ac_check_lib_save_LIBS=$LIBS
27966LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027968/* end confdefs.h. */
27969
27970/* Override any GCC internal prototype to avoid an error.
27971 Use char because int might match the return type of a GCC
27972 builtin and then its argument prototype would still apply. */
27973#ifdef __cplusplus
27974extern "C"
27975#endif
27976char deflate ();
27977int
27978main ()
27979{
27980return deflate ();
27981 ;
27982 return 0;
27983}
27984_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027985if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027986 ac_cv_lib_z_deflate=yes
27987else
cristy8b350f62009-11-15 23:12:43 +000027988 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027989fi
cristy8b350f62009-11-15 23:12:43 +000027990rm -f core conftest.err conftest.$ac_objext \
27991 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027992LIBS=$ac_check_lib_save_LIBS
27993fi
cristy8b350f62009-11-15 23:12:43 +000027994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027995$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027996if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027997 passed=`expr $passed + 1`
27998else
27999 failed=`expr $failed + 1`
28000fi
28001
cristy8b350f62009-11-15 23:12:43 +000028002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028003$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028004if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028005 $as_echo_n "(cached) " >&6
28006else
28007 ac_check_lib_save_LIBS=$LIBS
28008LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028010/* end confdefs.h. */
28011
28012/* Override any GCC internal prototype to avoid an error.
28013 Use char because int might match the return type of a GCC
28014 builtin and then its argument prototype would still apply. */
28015#ifdef __cplusplus
28016extern "C"
28017#endif
28018char inflate ();
28019int
28020main ()
28021{
28022return inflate ();
28023 ;
28024 return 0;
28025}
28026_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028027if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028028 ac_cv_lib_z_inflate=yes
28029else
cristy8b350f62009-11-15 23:12:43 +000028030 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028031fi
cristy8b350f62009-11-15 23:12:43 +000028032rm -f core conftest.err conftest.$ac_objext \
28033 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028034LIBS=$ac_check_lib_save_LIBS
28035fi
cristy8b350f62009-11-15 23:12:43 +000028036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028037$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028038if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028039 passed=`expr $passed + 1`
28040else
28041 failed=`expr $failed + 1`
28042fi
28043
cristy8b350f62009-11-15 23:12:43 +000028044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028045$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028046if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028047 $as_echo_n "(cached) " >&6
28048else
28049 ac_check_lib_save_LIBS=$LIBS
28050LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028052/* end confdefs.h. */
28053
28054/* Override any GCC internal prototype to avoid an error.
28055 Use char because int might match the return type of a GCC
28056 builtin and then its argument prototype would still apply. */
28057#ifdef __cplusplus
28058extern "C"
28059#endif
28060char gzseek ();
28061int
28062main ()
28063{
28064return gzseek ();
28065 ;
28066 return 0;
28067}
28068_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028069if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028070 ac_cv_lib_z_gzseek=yes
28071else
cristy8b350f62009-11-15 23:12:43 +000028072 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028073fi
cristy8b350f62009-11-15 23:12:43 +000028074rm -f core conftest.err conftest.$ac_objext \
28075 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028076LIBS=$ac_check_lib_save_LIBS
28077fi
cristy8b350f62009-11-15 23:12:43 +000028078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028079$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028080if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028081 passed=`expr $passed + 1`
28082else
28083 failed=`expr $failed + 1`
28084fi
28085
cristy8b350f62009-11-15 23:12:43 +000028086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028087$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028088if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028089 $as_echo_n "(cached) " >&6
28090else
28091 ac_check_lib_save_LIBS=$LIBS
28092LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028094/* end confdefs.h. */
28095
28096/* Override any GCC internal prototype to avoid an error.
28097 Use char because int might match the return type of a GCC
28098 builtin and then its argument prototype would still apply. */
28099#ifdef __cplusplus
28100extern "C"
28101#endif
28102char gztell ();
28103int
28104main ()
28105{
28106return gztell ();
28107 ;
28108 return 0;
28109}
28110_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028111if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028112 ac_cv_lib_z_gztell=yes
28113else
cristy8b350f62009-11-15 23:12:43 +000028114 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028115fi
cristy8b350f62009-11-15 23:12:43 +000028116rm -f core conftest.err conftest.$ac_objext \
28117 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028118LIBS=$ac_check_lib_save_LIBS
28119fi
cristy8b350f62009-11-15 23:12:43 +000028120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028121$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028122if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028123 passed=`expr $passed + 1`
28124else
28125 failed=`expr $failed + 1`
28126fi
28127
cristy8b350f62009-11-15 23:12:43 +000028128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028129$as_echo_n "checking if ZLIB package is complete... " >&6; }
28130 if test $passed -gt 0; then
28131 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28133$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028134 have_zlib='no (failed tests)'
28135 else
28136 ZLIB_LIBS='-lz'
28137 LIBS="$ZLIB_LIBS $LIBS"
28138
cristy8b350f62009-11-15 23:12:43 +000028139$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028140
cristyad38abe2012-12-23 23:03:21 +000028141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28142$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028143 have_zlib='yes'
28144 fi
28145 else
cristyad38abe2012-12-23 23:03:21 +000028146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28147$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028148 fi
28149fi
cristy73bd4a52010-10-05 11:24:23 +000028150 if test "$have_zlib" = 'yes'; then
28151 ZLIB_DELEGATE_TRUE=
28152 ZLIB_DELEGATE_FALSE='#'
28153else
28154 ZLIB_DELEGATE_TRUE='#'
28155 ZLIB_DELEGATE_FALSE=
28156fi
28157
cristy3ed852e2009-09-05 21:47:34 +000028158
28159
cristy5eef09f2012-10-16 12:08:28 +000028160# whether modules are built or not.
28161with_ltdl='yes'
28162have_ltdl='no'
28163LTDL_LIBS=''
28164if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28166$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28168$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28170$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028171 failed=0
28172 passed=0
28173 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28174if test "x$ac_cv_header_ltdl_h" = xyes; then :
28175 passed=`expr $passed + 1`
28176else
28177 failed=`expr $failed + 1`
28178fi
28179
28180
28181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28182$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28183if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28184 $as_echo_n "(cached) " >&6
28185else
28186 ac_check_lib_save_LIBS=$LIBS
28187LIBS="-lltdl $LIBS"
28188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28189/* end confdefs.h. */
28190
28191/* Override any GCC internal prototype to avoid an error.
28192 Use char because int might match the return type of a GCC
28193 builtin and then its argument prototype would still apply. */
28194#ifdef __cplusplus
28195extern "C"
28196#endif
28197char lt_dlinit ();
28198int
28199main ()
28200{
28201return lt_dlinit ();
28202 ;
28203 return 0;
28204}
28205_ACEOF
28206if ac_fn_c_try_link "$LINENO"; then :
28207 ac_cv_lib_ltdl_lt_dlinit=yes
28208else
28209 ac_cv_lib_ltdl_lt_dlinit=no
28210fi
28211rm -f core conftest.err conftest.$ac_objext \
28212 conftest$ac_exeext conftest.$ac_ext
28213LIBS=$ac_check_lib_save_LIBS
28214fi
28215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28216$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28217if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28218 passed=`expr $passed + 1`
28219else
28220 failed=`expr $failed + 1`
28221fi
28222
28223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28224$as_echo_n "checking if libltdl package is complete... " >&6; }
28225 if test $passed -gt 0 ; then
28226 if test $failed -gt 0 ; then
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28228$as_echo "no -- some components failed test" >&6; }
28229 have_ltdl='no (failed tests)'
28230 else
28231 LTDL_LIBS='-lltdl'
28232 LIBS="$LTDL_LIBS $LIBS"
28233
28234$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28235
28236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28237$as_echo "yes" >&6; }
28238 have_ltdl='yes'
28239 fi
28240 else
28241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28242$as_echo "no" >&6; }
28243 fi
cristyaf4cbf32012-10-16 23:47:41 +000028244 if test "$have_ltdl" != 'yes' ; then
28245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28247as_fn_error 1 "libltdl is required for modules build
28248See \`config.log' for more details" "$LINENO" 5; }
28249 fi
cristy5eef09f2012-10-16 12:08:28 +000028250fi
28251 if test "$have_ltdl" != 'no'; then
28252 WITH_LTDL_TRUE=
28253 WITH_LTDL_FALSE='#'
28254else
28255 WITH_LTDL_TRUE='#'
28256 WITH_LTDL_FALSE=
28257fi
28258
28259
cristy3ed852e2009-09-05 21:47:34 +000028260#
28261# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28262#
28263LIB_DL=''
28264if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028266$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028267if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028268 $as_echo_n "(cached) " >&6
28269else
28270 ac_check_lib_save_LIBS=$LIBS
28271LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028273/* end confdefs.h. */
28274
28275/* Override any GCC internal prototype to avoid an error.
28276 Use char because int might match the return type of a GCC
28277 builtin and then its argument prototype would still apply. */
28278#ifdef __cplusplus
28279extern "C"
28280#endif
28281char dlopen ();
28282int
28283main ()
28284{
28285return dlopen ();
28286 ;
28287 return 0;
28288}
28289_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028290if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028291 ac_cv_lib_dl_dlopen=yes
28292else
cristy8b350f62009-11-15 23:12:43 +000028293 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028294fi
cristy8b350f62009-11-15 23:12:43 +000028295rm -f core conftest.err conftest.$ac_objext \
28296 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028297LIBS=$ac_check_lib_save_LIBS
28298fi
cristy8b350f62009-11-15 23:12:43 +000028299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028300$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028301if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028302 LIB_DL='-ldl'
28303fi
28304
28305 LIBS="$LIB_DL $LIBS"
28306fi
28307
28308
28309
28310#
28311# Check for Autotrace delegate library.
28312#
28313
28314# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028315if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028316 withval=$with_autotrace; with_autotrace=$withval
28317else
28318 with_autotrace='no'
28319fi
28320
28321
28322if test "$with_autotrace" != 'yes'; then
28323 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28324fi
28325
28326have_autotrace='no'
28327AUTOTRACE_CFLAGS=""
28328AUTOTRACE_LIBS=""
28329AUTOTRACE_PKG=""
28330if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28332$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028333
28334pkg_failed=no
28335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28336$as_echo_n "checking for AUTOTRACE... " >&6; }
28337
28338if test -n "$AUTOTRACE_CFLAGS"; then
28339 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28340 elif test -n "$PKG_CONFIG"; then
28341 if test -n "$PKG_CONFIG" && \
28342 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28343 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28344 ac_status=$?
28345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28346 test $ac_status = 0; }; then
28347 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28348else
28349 pkg_failed=yes
28350fi
28351 else
28352 pkg_failed=untried
28353fi
28354if test -n "$AUTOTRACE_LIBS"; then
28355 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28356 elif test -n "$PKG_CONFIG"; then
28357 if test -n "$PKG_CONFIG" && \
28358 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28359 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28360 ac_status=$?
28361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28362 test $ac_status = 0; }; then
28363 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28364else
28365 pkg_failed=yes
28366fi
28367 else
28368 pkg_failed=untried
28369fi
28370
28371
28372
28373if test $pkg_failed = yes; then
28374
28375if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28376 _pkg_short_errors_supported=yes
28377else
28378 _pkg_short_errors_supported=no
28379fi
28380 if test $_pkg_short_errors_supported = yes; then
28381 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28382 else
28383 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28384 fi
28385 # Put the nasty error message in config.log where it belongs
28386 echo "$AUTOTRACE_PKG_ERRORS" >&5
28387
28388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28389$as_echo "no" >&6; }
28390 have_autotrace=no
28391elif test $pkg_failed = untried; then
28392 have_autotrace=no
28393else
28394 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28395 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28397$as_echo "yes" >&6; }
28398 have_autotrace=yes
28399fi
cristyad38abe2012-12-23 23:03:21 +000028400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28401$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028402fi
28403
28404if test "$have_autotrace" = 'yes'; then
28405 failed=0
28406
cristy8b350f62009-11-15 23:12:43 +000028407$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028408
cristyc6722092012-10-14 00:19:31 +000028409 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028410 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028411 fi
28412fi
28413
cristy73bd4a52010-10-05 11:24:23 +000028414 if test "$have_autotrace" = 'yes'; then
28415 AUTOTRACE_DELEGATE_TRUE=
28416 AUTOTRACE_DELEGATE_FALSE='#'
28417else
28418 AUTOTRACE_DELEGATE_TRUE='#'
28419 AUTOTRACE_DELEGATE_FALSE=
28420fi
28421
cristy3ed852e2009-09-05 21:47:34 +000028422
28423
28424
28425
28426#
28427# Check for Display Postscript delegate library.
28428#
28429
28430# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028431if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028432 withval=$with_dps; with_dps=$withval
28433else
28434 with_dps='yes'
28435fi
28436
28437
28438if test "$with_dps" != 'yes'; then
28439 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28440fi
28441
28442have_dps='no'
28443DPS_LIBS=''
28444if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28446$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028448$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28450$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028451 failed=0
28452 passed=0
28453 PERSIST_CPPFLAGS="$CPPFLAGS"
28454 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028455 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 +000028456if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028457 passed=`expr $passed + 1`
28458else
28459 failed=`expr $failed + 1`
28460fi
28461
28462
28463 # DPS issues:
28464 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28465 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28466 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28467 # ImageMagick itself doesn't use -lXt.
28468 have_libdps='no'
28469 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028471$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028472if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028473 $as_echo_n "(cached) " >&6
28474else
28475 ac_check_lib_save_LIBS=$LIBS
28476LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028478/* end confdefs.h. */
28479
28480/* Override any GCC internal prototype to avoid an error.
28481 Use char because int might match the return type of a GCC
28482 builtin and then its argument prototype would still apply. */
28483#ifdef __cplusplus
28484extern "C"
28485#endif
28486char DPSInitialize ();
28487int
28488main ()
28489{
28490return DPSInitialize ();
28491 ;
28492 return 0;
28493}
28494_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028495if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028496 ac_cv_lib_dps_DPSInitialize=yes
28497else
cristy8b350f62009-11-15 23:12:43 +000028498 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028499fi
cristy8b350f62009-11-15 23:12:43 +000028500rm -f core conftest.err conftest.$ac_objext \
28501 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028502LIBS=$ac_check_lib_save_LIBS
28503fi
cristy8b350f62009-11-15 23:12:43 +000028504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028505$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028506if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028507 have_libdps='yes'
28508else
28509 have_libdps='no'
28510fi
28511
28512 if test "$have_libdps" != 'yes'; then
28513 # Unset cache variable so we can try again.
28514 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028516$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028517if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028518 $as_echo_n "(cached) " >&6
28519else
28520 ac_check_lib_save_LIBS=$LIBS
28521LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028523/* end confdefs.h. */
28524
28525/* Override any GCC internal prototype to avoid an error.
28526 Use char because int might match the return type of a GCC
28527 builtin and then its argument prototype would still apply. */
28528#ifdef __cplusplus
28529extern "C"
28530#endif
28531char DPSInitialize ();
28532int
28533main ()
28534{
28535return DPSInitialize ();
28536 ;
28537 return 0;
28538}
28539_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028540if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028541 ac_cv_lib_dps_DPSInitialize=yes
28542else
cristy8b350f62009-11-15 23:12:43 +000028543 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028544fi
cristy8b350f62009-11-15 23:12:43 +000028545rm -f core conftest.err conftest.$ac_objext \
28546 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028547LIBS=$ac_check_lib_save_LIBS
28548fi
cristy8b350f62009-11-15 23:12:43 +000028549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028550$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028551if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028552 have_libdps='yes'
28553else
28554 have_libdps='no'
28555fi
28556
28557 if test "$have_libdps" = 'yes'; then
28558 LIBDPS_XT='-lXt'
28559 fi
28560 fi
28561 if test "$have_libdps" = 'yes'; then
28562 passed=`expr $passed + 1`
28563 else
28564 failed=`expr $failed + 1`
28565 fi
cristy8b350f62009-11-15 23:12:43 +000028566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028567$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028568if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028569 $as_echo_n "(cached) " >&6
28570else
28571 ac_check_lib_save_LIBS=$LIBS
28572LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028574/* end confdefs.h. */
28575
28576/* Override any GCC internal prototype to avoid an error.
28577 Use char because int might match the return type of a GCC
28578 builtin and then its argument prototype would still apply. */
28579#ifdef __cplusplus
28580extern "C"
28581#endif
28582char XDPSPixelsPerPoint ();
28583int
28584main ()
28585{
28586return XDPSPixelsPerPoint ();
28587 ;
28588 return 0;
28589}
28590_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028591if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028592 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28593else
cristy8b350f62009-11-15 23:12:43 +000028594 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028595fi
cristy8b350f62009-11-15 23:12:43 +000028596rm -f core conftest.err conftest.$ac_objext \
28597 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028598LIBS=$ac_check_lib_save_LIBS
28599fi
cristy8b350f62009-11-15 23:12:43 +000028600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028601$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028602if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028603 passed=`expr $passed + 1`
28604else
28605 failed=`expr $failed + 1`
28606fi
28607
cristy8b350f62009-11-15 23:12:43 +000028608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028609$as_echo_n "checking if DPS package is complete... " >&6; }
28610 if test $passed -gt 0; then
28611 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28613$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028614 have_dps='no (failed tests)'
28615 CPPFLAGS="$PERSIST_CPPFLAGS"
28616 else
28617 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28618 LIBS="$DPS_LIBS $LIBS"
28619
cristy8b350f62009-11-15 23:12:43 +000028620$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028621
cristyad38abe2012-12-23 23:03:21 +000028622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28623$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028624 have_dps='yes'
28625 fi
28626 else
cristyad38abe2012-12-23 23:03:21 +000028627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28628$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028629 CPPFLAGS=$PERSIST_CPPFLAGS
28630 fi
28631fi
cristy73bd4a52010-10-05 11:24:23 +000028632 if test "$have_dps" = 'yes'; then
28633 DPS_DELEGATE_TRUE=
28634 DPS_DELEGATE_FALSE='#'
28635else
28636 DPS_DELEGATE_TRUE='#'
28637 DPS_DELEGATE_FALSE=
28638fi
28639
cristy3ed852e2009-09-05 21:47:34 +000028640
28641
28642
28643#
28644# Check for DJVU delegate library.
28645#
28646
28647# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028648if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028649 withval=$with_djvu; with_djvu=$withval
28650else
28651 with_djvu='yes'
28652fi
28653
28654
28655if test "$with_djvu" != 'yes'; then
28656 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28657fi
28658
28659have_djvu='no'
28660DJVU_LIBS=''
28661if test "$with_djvu" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28663$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028665$as_echo_n "checking for DJVU... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28667$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028668 failed=0
28669 passed=0
cristy8b350f62009-11-15 23:12:43 +000028670 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 +000028671if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028672 passed=`expr $passed + 1`
28673else
28674 failed=`expr $failed + 1`
28675fi
28676
28677
cristy8b350f62009-11-15 23:12:43 +000028678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028679$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028680if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028681 $as_echo_n "(cached) " >&6
28682else
28683 ac_check_lib_save_LIBS=$LIBS
28684LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028686/* end confdefs.h. */
28687
28688/* Override any GCC internal prototype to avoid an error.
28689 Use char because int might match the return type of a GCC
28690 builtin and then its argument prototype would still apply. */
28691#ifdef __cplusplus
28692extern "C"
28693#endif
28694char ddjvu_context_create ();
28695int
28696main ()
28697{
28698return ddjvu_context_create ();
28699 ;
28700 return 0;
28701}
28702_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028703if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028704 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28705else
cristy8b350f62009-11-15 23:12:43 +000028706 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028707fi
cristy8b350f62009-11-15 23:12:43 +000028708rm -f core conftest.err conftest.$ac_objext \
28709 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028710LIBS=$ac_check_lib_save_LIBS
28711fi
cristy8b350f62009-11-15 23:12:43 +000028712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028713$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028714if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028715 passed=`expr $passed + 1`
28716else
28717 failed=`expr $failed + 1`
28718fi
28719
cristy8b350f62009-11-15 23:12:43 +000028720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028721$as_echo_n "checking if DJVU package is complete... " >&6; }
28722 if test $passed -gt 0; then
28723 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28725$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028726 have_djvu='no (failed tests)'
28727 else
28728 DJVU_LIBS='-ldjvulibre'
28729 LIBS="$DJVU_LIBS $LIBS"
28730
cristy8b350f62009-11-15 23:12:43 +000028731$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028732
cristyad38abe2012-12-23 23:03:21 +000028733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28734$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028735 have_djvu='yes'
28736 fi
28737 else
cristyad38abe2012-12-23 23:03:21 +000028738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28739$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028740 fi
28741fi
cristy73bd4a52010-10-05 11:24:23 +000028742 if test "$have_djvu" = 'yes'; then
28743 DJVU_DELEGATE_TRUE=
28744 DJVU_DELEGATE_FALSE='#'
28745else
28746 DJVU_DELEGATE_TRUE='#'
28747 DJVU_DELEGATE_FALSE=
28748fi
28749
cristy3ed852e2009-09-05 21:47:34 +000028750
28751
28752
28753#
cristy430a7312010-01-21 20:44:04 +000028754# Set DejaVu font directory.
28755#
28756
28757# Check whether --with-dejavu-font-dir was given.
28758if test "${with_dejavu_font_dir+set}" = set; then :
28759 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28760else
28761 with_dejavu_font_dir='default'
28762fi
28763
28764
28765if test "$with_dejavu_font_dir" != 'default'; then
28766 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28767fi
28768
28769
28770#
cristy3ed852e2009-09-05 21:47:34 +000028771# Check for FFTW delegate library.
28772#
28773
28774# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028775if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028776 withval=$with_fftw; with_fftw=$withval
28777else
28778 with_fftw='yes'
28779fi
28780
28781
28782if test "$with_fftw" != 'yes'; then
28783 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28784fi
28785
cristy81beccd2011-10-03 18:17:24 +000028786have_fftw='no'
28787FFTW_LIBS=''
28788if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28790$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28792$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28794$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028795 failed=0
28796 passed=0
28797 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28798if test "x$ac_cv_header_fftw3_h" = xyes; then :
28799 passed=`expr $passed + 1`
28800else
28801 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028802fi
28803
cristy81beccd2011-10-03 18:17:24 +000028804
28805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28806$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28807if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28808 $as_echo_n "(cached) " >&6
28809else
28810 ac_check_lib_save_LIBS=$LIBS
28811LIBS="-lfftw3 $LIBS"
28812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28813/* end confdefs.h. */
28814
28815/* Override any GCC internal prototype to avoid an error.
28816 Use char because int might match the return type of a GCC
28817 builtin and then its argument prototype would still apply. */
28818#ifdef __cplusplus
28819extern "C"
28820#endif
28821char fftw_execute ();
28822int
28823main ()
28824{
28825return fftw_execute ();
28826 ;
28827 return 0;
28828}
28829_ACEOF
28830if ac_fn_c_try_link "$LINENO"; then :
28831 ac_cv_lib_fftw3_fftw_execute=yes
28832else
28833 ac_cv_lib_fftw3_fftw_execute=no
28834fi
28835rm -f core conftest.err conftest.$ac_objext \
28836 conftest$ac_exeext conftest.$ac_ext
28837LIBS=$ac_check_lib_save_LIBS
28838fi
28839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28840$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28841if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28842 passed=`expr $passed + 1`
28843else
28844 failed=`expr $failed + 1`
28845fi
28846
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28848$as_echo_n "checking if FFTW package is complete... " >&6; }
28849 if test $passed -gt 0; then
28850 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28852$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028853 have_fftw='no (failed tests)'
28854 else
28855 FFTW_LIBS='-lfftw3'
28856 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028857
cristy8b350f62009-11-15 23:12:43 +000028858$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028859
cristyad38abe2012-12-23 23:03:21 +000028860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28861$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000028862 have_fftw='yes'
28863 fi
28864 else
cristyad38abe2012-12-23 23:03:21 +000028865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28866$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028867 fi
28868fi
cristy73bd4a52010-10-05 11:24:23 +000028869 if test "$have_fftw" = 'yes'; then
28870 FFTW_DELEGATE_TRUE=
28871 FFTW_DELEGATE_FALSE='#'
28872else
28873 FFTW_DELEGATE_TRUE='#'
28874 FFTW_DELEGATE_FALSE=
28875fi
28876
cristy3ed852e2009-09-05 21:47:34 +000028877
28878
28879
28880#
28881# Check for FlashPIX delegate library.
28882#
28883
28884# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028885if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028886 withval=$with_fpx; with_fpx=$withval
28887else
28888 with_fpx='yes'
28889fi
28890
28891
28892if test "$with_fpx" != 'yes'; then
28893 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28894fi
28895
28896have_fpx='no'
28897FPX_LIBS=''
28898if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28900$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028902$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28904$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028905 failed=0
28906 passed=0
28907 ac_ext=cpp
28908ac_cpp='$CXXCPP $CPPFLAGS'
28909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28912
28913
cristy8b350f62009-11-15 23:12:43 +000028914ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028915if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028916 passed=`expr $passed + 1`
28917else
28918 failed=`expr $failed + 1`
28919fi
28920
28921
cristy8b350f62009-11-15 23:12:43 +000028922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028923$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028924if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028925 $as_echo_n "(cached) " >&6
28926else
28927 ac_check_lib_save_LIBS=$LIBS
28928LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028930/* end confdefs.h. */
28931
28932/* Override any GCC internal prototype to avoid an error.
28933 Use char because int might match the return type of a GCC
28934 builtin and then its argument prototype would still apply. */
28935#ifdef __cplusplus
28936extern "C"
28937#endif
28938char FPX_OpenImageByFilename ();
28939int
28940main ()
28941{
28942return FPX_OpenImageByFilename ();
28943 ;
28944 return 0;
28945}
28946_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028947if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028948 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28949else
cristy8b350f62009-11-15 23:12:43 +000028950 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028951fi
cristy8b350f62009-11-15 23:12:43 +000028952rm -f core conftest.err conftest.$ac_objext \
28953 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028954LIBS=$ac_check_lib_save_LIBS
28955fi
cristy8b350f62009-11-15 23:12:43 +000028956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028957$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028958if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028959 passed=`expr $passed + 1`
28960else
28961 failed=`expr $failed + 1`
28962fi
28963
28964 ac_ext=c
28965ac_cpp='$CPP $CPPFLAGS'
28966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28968ac_compiler_gnu=$ac_cv_c_compiler_gnu
28969
cristy8b350f62009-11-15 23:12:43 +000028970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028971$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28972 if test $passed -gt 0; then
28973 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28975$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028976 have_fpx='no (failed tests)'
28977 else
28978 FPX_LIBS='-lfpx'
28979
cristy8b350f62009-11-15 23:12:43 +000028980$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028981
cristyad38abe2012-12-23 23:03:21 +000028982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28983$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028984 have_fpx='yes'
28985 PERLMAINCC="$CXX"
28986 fi
28987 else
cristyad38abe2012-12-23 23:03:21 +000028988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28989$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028990 fi
28991fi
cristy73bd4a52010-10-05 11:24:23 +000028992 if test "$have_fpx" = 'yes'; then
28993 FPX_DELEGATE_TRUE=
28994 FPX_DELEGATE_FALSE='#'
28995else
28996 FPX_DELEGATE_TRUE='#'
28997 FPX_DELEGATE_FALSE=
28998fi
28999
cristy3ed852e2009-09-05 21:47:34 +000029000
29001
29002
29003#
29004# Check for fontconfig delegate library.
29005#
29006
29007# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029008if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029009 withval=$with_fontconfig; with_fontconfig=$withval
29010else
cristyfc3d0222012-02-07 15:05:57 +000029011 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029012fi
29013
29014
29015if test "$with_fontconfig" != 'yes'; then
29016 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29017fi
29018
29019have_fontconfig='no'
29020FONTCONFIG_CFLAGS=""
29021FONTCONFIG_LIBS=""
29022FONTCONFIG_PKG=""
29023if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29025$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029026
29027pkg_failed=no
29028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29029$as_echo_n "checking for FONTCONFIG... " >&6; }
29030
29031if test -n "$FONTCONFIG_CFLAGS"; then
29032 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29033 elif test -n "$PKG_CONFIG"; then
29034 if test -n "$PKG_CONFIG" && \
29035 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29036 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29037 ac_status=$?
29038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29039 test $ac_status = 0; }; then
29040 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29041else
29042 pkg_failed=yes
29043fi
29044 else
29045 pkg_failed=untried
29046fi
29047if test -n "$FONTCONFIG_LIBS"; then
29048 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29049 elif test -n "$PKG_CONFIG"; then
29050 if test -n "$PKG_CONFIG" && \
29051 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29052 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29053 ac_status=$?
29054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29055 test $ac_status = 0; }; then
29056 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29057else
29058 pkg_failed=yes
29059fi
29060 else
29061 pkg_failed=untried
29062fi
29063
29064
29065
29066if test $pkg_failed = yes; then
29067
29068if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29069 _pkg_short_errors_supported=yes
29070else
29071 _pkg_short_errors_supported=no
29072fi
29073 if test $_pkg_short_errors_supported = yes; then
29074 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29075 else
29076 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29077 fi
29078 # Put the nasty error message in config.log where it belongs
29079 echo "$FONTCONFIG_PKG_ERRORS" >&5
29080
29081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29082$as_echo "no" >&6; }
29083 have_fontconfig=no
29084elif test $pkg_failed = untried; then
29085 have_fontconfig=no
29086else
29087 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29088 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29090$as_echo "yes" >&6; }
29091 have_fontconfig=yes
29092fi
cristyad38abe2012-12-23 23:03:21 +000029093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29094$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029095fi
29096
29097if test "$have_fontconfig" = 'yes'; then
29098
cristy8b350f62009-11-15 23:12:43 +000029099$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029100
cristyc6722092012-10-14 00:19:31 +000029101 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029102 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029103 fi
cristy3ed852e2009-09-05 21:47:34 +000029104fi
29105
cristy73bd4a52010-10-05 11:24:23 +000029106 if test "$have_fontconfig" = 'yes'; then
29107 FONTCONFIG_DELEGATE_TRUE=
29108 FONTCONFIG_DELEGATE_FALSE='#'
29109else
29110 FONTCONFIG_DELEGATE_TRUE='#'
29111 FONTCONFIG_DELEGATE_FALSE=
29112fi
29113
cristy3ed852e2009-09-05 21:47:34 +000029114
29115
29116
29117
29118#
cristy03f187e2013-01-24 00:22:19 +000029119# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029120#
29121
29122# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029123if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029124 withval=$with_freetype; with_freetype=$withval
29125else
29126 with_freetype='yes'
29127fi
29128
29129
cristy3ed852e2009-09-05 21:47:34 +000029130if test "$with_freetype" != 'yes'; then
29131 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29132fi
29133
cristy81beccd2011-10-03 18:17:24 +000029134have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029135FREETYPE_CFLAGS=""
29136FREETYPE_LIBS=""
29137FREETYPE_PKG=""
29138if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29140$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029141
29142pkg_failed=no
29143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29144$as_echo_n "checking for FREETYPE... " >&6; }
29145
29146if test -n "$FREETYPE_CFLAGS"; then
29147 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29148 elif test -n "$PKG_CONFIG"; then
29149 if test -n "$PKG_CONFIG" && \
29150 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29151 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29152 ac_status=$?
29153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29154 test $ac_status = 0; }; then
29155 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29156else
29157 pkg_failed=yes
29158fi
29159 else
29160 pkg_failed=untried
29161fi
29162if test -n "$FREETYPE_LIBS"; then
29163 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29164 elif test -n "$PKG_CONFIG"; then
29165 if test -n "$PKG_CONFIG" && \
29166 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29167 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29168 ac_status=$?
29169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29170 test $ac_status = 0; }; then
29171 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29172else
29173 pkg_failed=yes
29174fi
29175 else
29176 pkg_failed=untried
29177fi
29178
29179
29180
29181if test $pkg_failed = yes; then
29182
29183if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29184 _pkg_short_errors_supported=yes
29185else
29186 _pkg_short_errors_supported=no
29187fi
29188 if test $_pkg_short_errors_supported = yes; then
29189 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
29190 else
29191 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
29192 fi
29193 # Put the nasty error message in config.log where it belongs
29194 echo "$FREETYPE_PKG_ERRORS" >&5
29195
29196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29197$as_echo "no" >&6; }
29198 have_freetype=no
29199elif test $pkg_failed = untried; then
29200 have_freetype=no
29201else
29202 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29203 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29205$as_echo "yes" >&6; }
29206 have_freetype=yes
29207fi
cristyad38abe2012-12-23 23:03:21 +000029208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29209$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029210fi
29211
cristy03f187e2013-01-24 00:22:19 +000029212if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029213
cristy8b350f62009-11-15 23:12:43 +000029214$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029215
cristy03f187e2013-01-24 00:22:19 +000029216 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029217fi
cristy03f187e2013-01-24 00:22:19 +000029218
cristy73bd4a52010-10-05 11:24:23 +000029219 if test "$have_freetype" = 'yes'; then
29220 FREETYPE_DELEGATE_TRUE=
29221 FREETYPE_DELEGATE_FALSE='#'
29222else
29223 FREETYPE_DELEGATE_TRUE='#'
29224 FREETYPE_DELEGATE_FALSE=
29225fi
29226
cristy3ed852e2009-09-05 21:47:34 +000029227
29228
29229
cristy03f187e2013-01-24 00:22:19 +000029230
cristy3ed852e2009-09-05 21:47:34 +000029231#
29232# Check for Ghostscript library or framework.
29233#
29234# Test for iapi.h & test for gsapi_new_instance in -lgs
29235# or -framework Ghostscript
29236
29237
29238# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029239if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029240 withval=$with_gslib; with_gslib=$withval
29241else
29242 with_gslib='no'
29243fi
29244
29245
cristyb7931f12009-09-25 10:22:21 +000029246gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029247if test "$with_gslib" != 'yes'; then
29248 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29249fi
29250
29251have_gslib='no'
29252GS_LIBS=''
29253if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29255$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029257$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29259$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029260 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029261 failed=0
29262 passed=0
cristy8b350f62009-11-15 23:12:43 +000029263 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 +000029264if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029265 passed=`expr $passed + 1`
29266else
29267 failed=`expr $failed + 1`
29268fi
29269
29270
cristy8b350f62009-11-15 23:12:43 +000029271 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 +000029272if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029273 passed=`expr $passed + 1`
29274else
29275 failed=`expr $failed + 1`
29276fi
29277
29278
cristy73bd4a52010-10-05 11:24:23 +000029279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29280$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029281if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029282 $as_echo_n "(cached) " >&6
29283else
29284 ac_check_framework_save_LIBS=$LIBS
29285LIBS="-framework Ghostscript $LIBS"
29286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29287/* end confdefs.h. */
29288
29289/* Override any GCC internal prototype to avoid an error.
29290 Use char because int might match the return type of a GCC
29291 builtin and then its argument prototype would still apply. */
29292#ifdef __cplusplus
29293extern "C"
29294#endif
29295char gsapi_new_instance ();
29296int
29297main ()
29298{
29299return gsapi_new_instance ();
29300 ;
29301 return 0;
29302}
29303_ACEOF
29304if ac_fn_c_try_link "$LINENO"; then :
29305 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29306else
29307 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29308fi
29309rm -f core conftest.err conftest.$ac_objext \
29310 conftest$ac_exeext conftest.$ac_ext
29311LIBS=$ac_check_framework_save_LIBS
29312fi
29313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29314$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29315if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29316 framework=`expr $framework + 1`
29317else
29318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029319$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029320if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029321 $as_echo_n "(cached) " >&6
29322else
29323 ac_check_lib_save_LIBS=$LIBS
29324LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029326/* end confdefs.h. */
29327
29328/* Override any GCC internal prototype to avoid an error.
29329 Use char because int might match the return type of a GCC
29330 builtin and then its argument prototype would still apply. */
29331#ifdef __cplusplus
29332extern "C"
29333#endif
29334char gsapi_new_instance ();
29335int
29336main ()
29337{
29338return gsapi_new_instance ();
29339 ;
29340 return 0;
29341}
29342_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029343if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029344 ac_cv_lib_gs_gsapi_new_instance=yes
29345else
cristy8b350f62009-11-15 23:12:43 +000029346 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029347fi
cristy8b350f62009-11-15 23:12:43 +000029348rm -f core conftest.err conftest.$ac_objext \
29349 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029350LIBS=$ac_check_lib_save_LIBS
29351fi
cristy8b350f62009-11-15 23:12:43 +000029352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029353$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029354if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029355 passed=`expr $passed + 1`
29356else
29357 failed=`expr $failed + 1`
29358fi
cristy73bd4a52010-10-05 11:24:23 +000029359
29360fi
cristy8b350f62009-11-15 23:12:43 +000029361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029362$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29363 if test $passed -gt 0; then
29364 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29366$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029367 have_gslib='no (failed tests)'
29368 else
29369 if test $framework -gt 0; then
29370 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029371 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29373$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029374 else
cristyad38abe2012-12-23 23:03:21 +000029375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29376$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029377 GS_LIBS='-lgs'
29378 fi
29379 LIBS="$GS_LIBS $LIBS"
29380
cristy8b350f62009-11-15 23:12:43 +000029381$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029382
29383 have_gslib='yes'
29384 fi
29385 else
cristyad38abe2012-12-23 23:03:21 +000029386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29387$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029388 fi
29389fi
cristy73bd4a52010-10-05 11:24:23 +000029390 if test "$have_gslib" = 'yes'; then
29391 GS_DELEGATE_TRUE=
29392 GS_DELEGATE_FALSE='#'
29393else
29394 GS_DELEGATE_TRUE='#'
29395 GS_DELEGATE_FALSE=
29396fi
29397
cristy3ed852e2009-09-05 21:47:34 +000029398
29399
29400# Set default font search path
29401
29402# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029403if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029404 withval=$with_fontpath; with_fontpath=$withval
29405else
29406 with_fontpath=''
29407fi
29408
29409
29410if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29411 with_fontpath=''
29412else
29413
29414cat >>confdefs.h <<_ACEOF
29415#define MAGICK_FONT_PATH "$with_fontpath"
29416_ACEOF
29417
29418fi
29419if test "$with_fontpath=" != ''; then
29420 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29421fi
29422
29423# Set Ghostscript font directory
29424
29425# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029426if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029427 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29428else
29429 with_gs_font_dir='default'
29430fi
29431
29432
29433if test "$with_gs_font_dir" != 'default'; then
29434 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29435fi
29436
29437
29438#
29439# Check for GVC delegate library.
29440#
29441
29442# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029443if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029444 withval=$with_gvc; with_gvc=$withval
29445else
cristy1b70dc82012-07-01 23:15:05 +000029446 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029447fi
29448
29449
29450if test "$with_gvc" != 'yes'; then
29451 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29452fi
29453
29454GVC_PKG=""
29455if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29457$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029458
29459pkg_failed=no
29460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29461$as_echo_n "checking for GVC... " >&6; }
29462
29463if test -n "$GVC_CFLAGS"; then
29464 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29465 elif test -n "$PKG_CONFIG"; then
29466 if test -n "$PKG_CONFIG" && \
29467 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29468 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29469 ac_status=$?
29470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29471 test $ac_status = 0; }; then
29472 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29473else
29474 pkg_failed=yes
29475fi
29476 else
29477 pkg_failed=untried
29478fi
29479if test -n "$GVC_LIBS"; then
29480 pkg_cv_GVC_LIBS="$GVC_LIBS"
29481 elif test -n "$PKG_CONFIG"; then
29482 if test -n "$PKG_CONFIG" && \
29483 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29484 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29485 ac_status=$?
29486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29487 test $ac_status = 0; }; then
29488 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29489else
29490 pkg_failed=yes
29491fi
29492 else
29493 pkg_failed=untried
29494fi
29495
29496
29497
29498if test $pkg_failed = yes; then
29499
29500if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29501 _pkg_short_errors_supported=yes
29502else
29503 _pkg_short_errors_supported=no
29504fi
29505 if test $_pkg_short_errors_supported = yes; then
29506 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29507 else
29508 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29509 fi
29510 # Put the nasty error message in config.log where it belongs
29511 echo "$GVC_PKG_ERRORS" >&5
29512
29513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29514$as_echo "no" >&6; }
29515 have_gvc=no
29516elif test $pkg_failed = untried; then
29517 have_gvc=no
29518else
29519 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29520 GVC_LIBS=$pkg_cv_GVC_LIBS
29521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29522$as_echo "yes" >&6; }
29523 have_gvc=yes
29524fi
cristyad38abe2012-12-23 23:03:21 +000029525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29526$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029527fi
29528
29529if test "$have_gvc" = 'yes'; then
29530
cristy8b350f62009-11-15 23:12:43 +000029531$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029532
cristyc6722092012-10-14 00:19:31 +000029533 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029534 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29535 fi
29536fi
29537
cristy73bd4a52010-10-05 11:24:23 +000029538 if test "$have_gvc" = 'yes'; then
29539 GVC_DELEGATE_TRUE=
29540 GVC_DELEGATE_FALSE='#'
29541else
29542 GVC_DELEGATE_TRUE='#'
29543 GVC_DELEGATE_FALSE=
29544fi
29545
cristy3ed852e2009-09-05 21:47:34 +000029546
29547
29548
29549
29550#
29551# Check for JBIG delegate library.
29552#
29553
29554
29555# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029556if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029557 withval=$with_jbig; with_jbig=$withval
29558else
29559 with_jbig='yes'
29560fi
29561
29562
29563have_jbig='no'
29564JBIG_LIBS=''
29565if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29567$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029569$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29571$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029572 failed=0
29573 passed=0
cristy8b350f62009-11-15 23:12:43 +000029574 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029575if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029576 passed=`expr $passed + 1`
29577else
29578 failed=`expr $failed + 1`
29579fi
29580
29581
cristy8b350f62009-11-15 23:12:43 +000029582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029583$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029584if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029585 $as_echo_n "(cached) " >&6
29586else
29587 ac_check_lib_save_LIBS=$LIBS
29588LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029590/* end confdefs.h. */
29591
29592/* Override any GCC internal prototype to avoid an error.
29593 Use char because int might match the return type of a GCC
29594 builtin and then its argument prototype would still apply. */
29595#ifdef __cplusplus
29596extern "C"
29597#endif
29598char jbg_dec_init ();
29599int
29600main ()
29601{
29602return jbg_dec_init ();
29603 ;
29604 return 0;
29605}
29606_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029607if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029608 ac_cv_lib_jbig_jbg_dec_init=yes
29609else
cristy8b350f62009-11-15 23:12:43 +000029610 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029611fi
cristy8b350f62009-11-15 23:12:43 +000029612rm -f core conftest.err conftest.$ac_objext \
29613 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029614LIBS=$ac_check_lib_save_LIBS
29615fi
cristy8b350f62009-11-15 23:12:43 +000029616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029617$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029618if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029619 passed=`expr $passed + 1`
29620else
29621 failed=`expr $failed + 1`
29622fi
29623
cristy8b350f62009-11-15 23:12:43 +000029624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029625$as_echo_n "checking if JBIG package is complete... " >&6; }
29626 if test $passed -gt 0; then
29627 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29629$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029630 have_jbig='no (failed tests)'
29631 else
29632 JBIG_LIBS='-ljbig'
29633 LIBS="$JBIG_LIBS $LIBS"
29634
cristy8b350f62009-11-15 23:12:43 +000029635$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029636
cristyad38abe2012-12-23 23:03:21 +000029637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29638$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029639 have_jbig='yes'
29640 fi
29641 else
cristyad38abe2012-12-23 23:03:21 +000029642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29643$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029644 fi
29645fi
cristy73bd4a52010-10-05 11:24:23 +000029646 if test "$have_jbig" = 'yes'; then
29647 JBIG_DELEGATE_TRUE=
29648 JBIG_DELEGATE_FALSE='#'
29649else
29650 JBIG_DELEGATE_TRUE='#'
29651 JBIG_DELEGATE_FALSE=
29652fi
29653
cristy3ed852e2009-09-05 21:47:34 +000029654
29655
29656
29657#
29658# Check for JPEG delegate library.
29659#
29660
29661# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029662if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029663 withval=$with_jpeg; with_jpeg=$withval
29664else
29665 with_jpeg='yes'
29666fi
29667
29668
29669if test "$with_jpeg" != 'yes'; then
29670 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29671fi
29672
29673have_jpeg='no'
29674JPEG_LIBS=''
29675if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29677$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029679$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29681$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029682 failed=0
29683 passed=0
cristy8b350f62009-11-15 23:12:43 +000029684 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029685if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029686 passed=`expr $passed + 1`
29687else
29688 failed=`expr $failed + 1`
29689fi
29690
29691
cristy8b350f62009-11-15 23:12:43 +000029692 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029693if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029694 passed=`expr $passed + 1`
29695else
29696 failed=`expr $failed + 1`
29697fi
29698
29699
cristy8b350f62009-11-15 23:12:43 +000029700 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029701if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029702 passed=`expr $passed + 1`
29703else
29704 failed=`expr $failed + 1`
29705fi
29706
29707
cristy8b350f62009-11-15 23:12:43 +000029708 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029709if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029710 passed=`expr $passed + 1`
29711else
29712 failed=`expr $failed + 1`
29713fi
29714
29715
cristy8b350f62009-11-15 23:12:43 +000029716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029717$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029718if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029719 $as_echo_n "(cached) " >&6
29720else
29721 ac_check_lib_save_LIBS=$LIBS
29722LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029724/* end confdefs.h. */
29725
29726/* Override any GCC internal prototype to avoid an error.
29727 Use char because int might match the return type of a GCC
29728 builtin and then its argument prototype would still apply. */
29729#ifdef __cplusplus
29730extern "C"
29731#endif
29732char jpeg_read_header ();
29733int
29734main ()
29735{
29736return jpeg_read_header ();
29737 ;
29738 return 0;
29739}
29740_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029741if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029742 ac_cv_lib_jpeg_jpeg_read_header=yes
29743else
cristy8b350f62009-11-15 23:12:43 +000029744 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029745fi
cristy8b350f62009-11-15 23:12:43 +000029746rm -f core conftest.err conftest.$ac_objext \
29747 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029748LIBS=$ac_check_lib_save_LIBS
29749fi
cristy8b350f62009-11-15 23:12:43 +000029750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029751$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029752if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029753 passed=`expr $passed + 1`
29754else
29755 failed=`expr $failed + 1`
29756fi
29757
29758
29759# Test for compatible JPEG library
29760if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029762$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029763if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029764 $as_echo_n "(cached) " >&6
29765else
cristy8b350f62009-11-15 23:12:43 +000029766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029767/* end confdefs.h. */
29768#include <stdio.h>
29769#include <stdlib.h>
29770#include <jpeglib.h>
29771
29772int
29773main ()
29774{
29775
29776#if JPEG_LIB_VERSION < 62
29777#error IJG JPEG library must be version 6b or newer!
29778#endif
29779return 0;
29780
29781 ;
29782 return 0;
29783}
29784_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029785if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029786 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29787else
cristy8b350f62009-11-15 23:12:43 +000029788 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029789fi
cristy3ed852e2009-09-05 21:47:34 +000029790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29791fi
cristy8b350f62009-11-15 23:12:43 +000029792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029793$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29794fi
cristy8b350f62009-11-15 23:12:43 +000029795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029796$as_echo_n "checking if JPEG package is complete... " >&6; }
29797 if test $passed -gt 0; then
29798 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29800$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029801 have_jpeg='no (failed tests)'
29802 else
29803 JPEG_LIBS='-ljpeg'
29804 LIBS="$JPEG_LIBS $LIBS"
29805
cristy8b350f62009-11-15 23:12:43 +000029806$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029807
cristyad38abe2012-12-23 23:03:21 +000029808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29809$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029810 have_jpeg='yes'
29811 fi
29812 else
cristyad38abe2012-12-23 23:03:21 +000029813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29814$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029815 fi
29816fi
cristy73bd4a52010-10-05 11:24:23 +000029817 if test "$have_jpeg" = 'yes'; then
29818 JPEG_DELEGATE_TRUE=
29819 JPEG_DELEGATE_FALSE='#'
29820else
29821 JPEG_DELEGATE_TRUE='#'
29822 JPEG_DELEGATE_FALSE=
29823fi
29824
cristy3ed852e2009-09-05 21:47:34 +000029825
29826
29827
29828#
29829# Check for JPEG Version 2 delegate library.
29830#
29831
29832# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029833if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029834 withval=$with_jp2; with_jp2=$withval
29835else
29836 with_jp2='yes'
29837fi
29838
29839
29840if test "$with_jp2" != 'yes'; then
29841 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29842fi
29843
29844have_jp2='no'
29845JP2_LIBS=''
29846if test "$with_jp2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29848$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029850$as_echo_n "checking for JPEG Version 2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29852$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029853 failed=0
29854 passed=0
cristy8b350f62009-11-15 23:12:43 +000029855 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 +000029856if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029857 passed=`expr $passed + 1`
29858else
29859 failed=`expr $failed + 1`
29860fi
29861
29862
cristy8b350f62009-11-15 23:12:43 +000029863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029864$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029865if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029866 $as_echo_n "(cached) " >&6
29867else
29868 ac_check_lib_save_LIBS=$LIBS
29869LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029871/* end confdefs.h. */
29872
29873/* Override any GCC internal prototype to avoid an error.
29874 Use char because int might match the return type of a GCC
29875 builtin and then its argument prototype would still apply. */
29876#ifdef __cplusplus
29877extern "C"
29878#endif
29879char jas_stream_fopen ();
29880int
29881main ()
29882{
29883return jas_stream_fopen ();
29884 ;
29885 return 0;
29886}
29887_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029888if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029889 ac_cv_lib_jasper_jas_stream_fopen=yes
29890else
cristy8b350f62009-11-15 23:12:43 +000029891 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029892fi
cristy8b350f62009-11-15 23:12:43 +000029893rm -f core conftest.err conftest.$ac_objext \
29894 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029895LIBS=$ac_check_lib_save_LIBS
29896fi
cristy8b350f62009-11-15 23:12:43 +000029897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029898$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029899if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029900 passed=`expr $passed + 1`
29901else
29902 failed=`expr $failed + 1`
29903fi
29904
cristy8b350f62009-11-15 23:12:43 +000029905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029906$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29907 if test $passed -gt 0; then
29908 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29910$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029911 have_jp2='no (failed tests)'
29912 else
29913 JP2_LIBS='-ljasper'
29914 LIBS="$JP2_LIBS $LIBS"
29915
cristy8b350f62009-11-15 23:12:43 +000029916$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029917
cristyad38abe2012-12-23 23:03:21 +000029918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29919$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029920 have_jp2='yes'
29921 fi
29922 else
cristyad38abe2012-12-23 23:03:21 +000029923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29924$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029925 fi
29926fi
cristy73bd4a52010-10-05 11:24:23 +000029927 if test "$have_jp2" = 'yes'; then
29928 JP2_DELEGATE_TRUE=
29929 JP2_DELEGATE_FALSE='#'
29930else
29931 JP2_DELEGATE_TRUE='#'
29932 JP2_DELEGATE_FALSE=
29933fi
29934
cristy3ed852e2009-09-05 21:47:34 +000029935
29936
29937
29938#
29939# Check for LCMS delegate library.
29940#
cristy71203402010-06-18 13:12:03 +000029941# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029942
29943# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029944if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029945 withval=$with_lcms; with_lcms=$withval
29946else
29947 with_lcms='yes'
29948fi
29949
cristy71203402010-06-18 13:12:03 +000029950if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029951 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29952fi
29953
cristy71203402010-06-18 13:12:03 +000029954# Disable LCMS2.
29955
29956# Check whether --with-lcms2 was given.
29957if test "${with_lcms2+set}" = set; then :
29958 withval=$with_lcms2; with_lcms2=$withval
29959else
29960 with_lcms2='yes'
29961fi
29962
29963if test "$with_lcms2" != 'yes' ; then
29964 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29965fi
29966
29967have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029968LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029969if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29971$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29973$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29975$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029976 failed=0
29977 passed=0
29978 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029979
29980 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029981 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029982if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029983 have_lcms_header='yes'
29984fi
29985
29986
29987 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029988
29989$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29990
cristy71203402010-06-18 13:12:03 +000029991 passed=`expr $passed + 1`
29992 fi
29993
29994 # Check for <lcms2/lcms2.h)
29995 if test "$have_lcms_header" != 'yes'; then
29996 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 +000029997if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029998 have_lcms_header='yes'
29999fi
30000
30001
cristy71203402010-06-18 13:12:03 +000030002 if test "$have_lcms_header" = 'yes'; then
30003 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030004
cristy71203402010-06-18 13:12:03 +000030005$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030006
cristy71203402010-06-18 13:12:03 +000030007 fi
cristyd09bcf92010-03-25 03:04:45 +000030008 fi
cristy71203402010-06-18 13:12:03 +000030009
30010 # Failed to find lcms header?
30011 if test "$have_lcms_header" != 'yes'; then
30012 failed=`expr $failed + 1`
30013 fi
30014
30015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30016$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030017if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030018 $as_echo_n "(cached) " >&6
30019else
30020 ac_check_lib_save_LIBS=$LIBS
30021LIBS="-llcms2 $LIBS"
30022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30023/* end confdefs.h. */
30024
30025/* Override any GCC internal prototype to avoid an error.
30026 Use char because int might match the return type of a GCC
30027 builtin and then its argument prototype would still apply. */
30028#ifdef __cplusplus
30029extern "C"
30030#endif
cristy71203402010-06-18 13:12:03 +000030031char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030032int
30033main ()
30034{
cristy71203402010-06-18 13:12:03 +000030035return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030036 ;
30037 return 0;
30038}
30039_ACEOF
30040if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030041 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030042else
cristy71203402010-06-18 13:12:03 +000030043 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030044fi
30045rm -f core conftest.err conftest.$ac_objext \
30046 conftest$ac_exeext conftest.$ac_ext
30047LIBS=$ac_check_lib_save_LIBS
30048fi
cristy71203402010-06-18 13:12:03 +000030049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30050$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030051if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030052 passed=`expr $passed + 1`
30053else
30054 failed=`expr $failed + 1`
30055fi
30056
cristy71203402010-06-18 13:12:03 +000030057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30058$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030059 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030060 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30062$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030063 have_lcms2='no (failed tests)'
30064 else
30065 LCMS_LIBS='-llcms2'
30066 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30068$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030069 have_lcms2='yes'
30070 fi
cristyd09bcf92010-03-25 03:04:45 +000030071 else
cristyad38abe2012-12-23 23:03:21 +000030072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30073$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030074 fi
30075fi
30076
cristy71203402010-06-18 13:12:03 +000030077#
30078# Check for LCMS v1 (1.11 or later)
30079#
30080if test $have_lcms2 = 'yes'; then
30081 with_lcms='no'
30082fi
30083
30084have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030085if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30087$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30089$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30091$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030092 failed=0
30093 passed=0
30094 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030095
30096 # Check for <lcms.h>
30097 if test "$have_lcms_header" != 'yes'; then
30098 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030099if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030100 have_lcms_header='yes'
30101fi
30102
30103
cristy71203402010-06-18 13:12:03 +000030104 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030105 passed=`expr $passed + 1`
30106
cristy8b350f62009-11-15 23:12:43 +000030107$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030108
cristy71203402010-06-18 13:12:03 +000030109 fi
30110 fi
30111
30112 # Check for <lcms/lcms.h>
30113 if test "$have_lcms_header" != 'yes'; then
30114 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 +000030115if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030116 have_lcms_header='yes'
30117fi
30118
30119
cristy71203402010-06-18 13:12:03 +000030120 if test "$have_lcms_header" = 'yes'; then
30121 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030122
cristy8b350f62009-11-15 23:12:43 +000030123$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030124
cristy71203402010-06-18 13:12:03 +000030125 fi
cristy3ed852e2009-09-05 21:47:34 +000030126 fi
cristy71203402010-06-18 13:12:03 +000030127
30128 # Failed to find lcms header?
30129 if test "$have_lcms_header" != 'yes'; then
30130 failed=`expr $failed + 1`
30131 fi
30132
30133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30134$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030135if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030136 $as_echo_n "(cached) " >&6
30137else
30138 ac_check_lib_save_LIBS=$LIBS
30139LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030141/* end confdefs.h. */
30142
30143/* Override any GCC internal prototype to avoid an error.
30144 Use char because int might match the return type of a GCC
30145 builtin and then its argument prototype would still apply. */
30146#ifdef __cplusplus
30147extern "C"
30148#endif
cristy71203402010-06-18 13:12:03 +000030149char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030150int
30151main ()
30152{
cristy71203402010-06-18 13:12:03 +000030153return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030154 ;
30155 return 0;
30156}
30157_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030158if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030159 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030160else
cristy71203402010-06-18 13:12:03 +000030161 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030162fi
cristy8b350f62009-11-15 23:12:43 +000030163rm -f core conftest.err conftest.$ac_objext \
30164 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030165LIBS=$ac_check_lib_save_LIBS
30166fi
cristy71203402010-06-18 13:12:03 +000030167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30168$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030169if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030170 passed=`expr $passed + 1`
30171else
30172 failed=`expr $failed + 1`
30173fi
30174
cristy8b350f62009-11-15 23:12:43 +000030175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030176$as_echo_n "checking if LCMS package is complete... " >&6; }
30177 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030178 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30180$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030181 have_lcms='no (failed tests)'
30182 else
30183 LCMS_LIBS='-llcms'
30184 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30186$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030187 have_lcms='yes'
30188 fi
cristy3ed852e2009-09-05 21:47:34 +000030189 else
cristyad38abe2012-12-23 23:03:21 +000030190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30191$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030192 fi
30193fi
cristy71203402010-06-18 13:12:03 +000030194
cristy73bd4a52010-10-05 11:24:23 +000030195 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30196 LCMS_DELEGATE_TRUE=
30197 LCMS_DELEGATE_FALSE='#'
30198else
30199 LCMS_DELEGATE_TRUE='#'
30200 LCMS_DELEGATE_FALSE=
30201fi
30202
cristy71203402010-06-18 13:12:03 +000030203if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30204
30205$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30206
30207fi
30208
cristy3ed852e2009-09-05 21:47:34 +000030209
30210
30211
30212#
cristy99db3872014-01-01 15:11:34 +000030213# Check for the OpenJP2 delegate library.
30214#
30215
30216# Check whether --with-openjp2 was given.
30217if test "${with_openjp2+set}" = set; then :
30218 withval=$with_openjp2; with_openjp2=$withval
30219else
30220 with_openjp2='yes'
30221fi
30222
30223
30224if test "$with_openjp2" != 'yes'; then
30225 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30226fi
30227
30228have_openjp2='no'
30229LIBOPENJP2_CFLAGS=""
30230LIBOPENJP2_LIBS=""
30231LIBOPENJP2_PKG=""
30232if test "x$with_openjp2" = "xyes"; then
30233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30234$as_echo "-------------------------------------------------------------" >&6; }
30235
30236pkg_failed=no
30237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30238$as_echo_n "checking for LIBOPENJP2... " >&6; }
30239
30240if test -n "$LIBOPENJP2_CFLAGS"; then
30241 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30242 elif test -n "$PKG_CONFIG"; then
30243 if test -n "$PKG_CONFIG" && \
30244 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.0.0\""; } >&5
30245 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.0.0") 2>&5
30246 ac_status=$?
30247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30248 test $ac_status = 0; }; then
30249 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.0.0" 2>/dev/null`
30250else
30251 pkg_failed=yes
30252fi
30253 else
30254 pkg_failed=untried
30255fi
30256if test -n "$LIBOPENJP2_LIBS"; then
30257 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30258 elif test -n "$PKG_CONFIG"; then
30259 if test -n "$PKG_CONFIG" && \
30260 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.0.0\""; } >&5
30261 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.0.0") 2>&5
30262 ac_status=$?
30263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30264 test $ac_status = 0; }; then
30265 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.0.0" 2>/dev/null`
30266else
30267 pkg_failed=yes
30268fi
30269 else
30270 pkg_failed=untried
30271fi
30272
30273
30274
30275if test $pkg_failed = yes; then
30276
30277if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30278 _pkg_short_errors_supported=yes
30279else
30280 _pkg_short_errors_supported=no
30281fi
30282 if test $_pkg_short_errors_supported = yes; then
30283 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libopenjp2 >= 2.0.0" 2>&1`
30284 else
30285 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libopenjp2 >= 2.0.0" 2>&1`
30286 fi
30287 # Put the nasty error message in config.log where it belongs
30288 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30289
30290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30291$as_echo "no" >&6; }
30292 have_openjp2=no
30293elif test $pkg_failed = untried; then
30294 have_openjp2=no
30295else
30296 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30297 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30299$as_echo "yes" >&6; }
30300 have_openjp2=yes
30301fi
30302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30303$as_echo "" >&6; }
30304fi
30305
30306if test "$have_openjp2" = 'yes'; then
30307
30308$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30309
30310 if test "$build_modules" = 'no'; then
30311 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
30312 fi
30313fi
30314
30315 if test "$have_openjp2" = 'yes'; then
30316 LIBOPENJP2_DELEGATE_TRUE=
30317 LIBOPENJP2_DELEGATE_FALSE='#'
30318else
30319 LIBOPENJP2_DELEGATE_TRUE='#'
30320 LIBOPENJP2_DELEGATE_FALSE=
30321fi
30322
30323
30324
30325
30326
30327
30328#
cristy3ed852e2009-09-05 21:47:34 +000030329# Check for the LQR (Liquid Rescale) delegate library.
30330#
30331
30332# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030333if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030334 withval=$with_lqr; with_lqr=$withval
30335else
30336 with_lqr='yes'
30337fi
30338
30339
30340if test "$with_lqr" != 'yes'; then
30341 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30342fi
30343
30344have_lqr='no'
30345LQR_CFLAGS=""
30346LQR_LIBS=""
30347LQR_PKG=""
30348if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30350$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030351
30352pkg_failed=no
30353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30354$as_echo_n "checking for LQR... " >&6; }
30355
30356if test -n "$LQR_CFLAGS"; then
30357 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
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 \"lqr-1 >= 0.1.0\""; } >&5
30361 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.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_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30366else
30367 pkg_failed=yes
30368fi
30369 else
30370 pkg_failed=untried
30371fi
30372if test -n "$LQR_LIBS"; then
30373 pkg_cv_LQR_LIBS="$LQR_LIBS"
30374 elif test -n "$PKG_CONFIG"; then
30375 if test -n "$PKG_CONFIG" && \
30376 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30377 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30378 ac_status=$?
30379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30380 test $ac_status = 0; }; then
30381 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30382else
30383 pkg_failed=yes
30384fi
30385 else
30386 pkg_failed=untried
30387fi
30388
30389
30390
30391if test $pkg_failed = yes; then
30392
30393if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30394 _pkg_short_errors_supported=yes
30395else
30396 _pkg_short_errors_supported=no
30397fi
30398 if test $_pkg_short_errors_supported = yes; then
30399 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30400 else
30401 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30402 fi
30403 # Put the nasty error message in config.log where it belongs
30404 echo "$LQR_PKG_ERRORS" >&5
30405
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30407$as_echo "no" >&6; }
30408 have_lqr=no
30409elif test $pkg_failed = untried; then
30410 have_lqr=no
30411else
30412 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30413 LQR_LIBS=$pkg_cv_LQR_LIBS
30414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30415$as_echo "yes" >&6; }
30416 have_lqr=yes
30417fi
cristyad38abe2012-12-23 23:03:21 +000030418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30419$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030420fi
30421
30422if test "$have_lqr" = 'yes'; then
30423
cristy8b350f62009-11-15 23:12:43 +000030424$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030425
30426 CFLAGS="$LQR_CFLAGS $CFLAGS"
30427fi
30428
cristy73bd4a52010-10-05 11:24:23 +000030429 if test "$have_lqr" = 'yes'; then
30430 LQR_DELEGATE_TRUE=
30431 LQR_DELEGATE_FALSE='#'
30432else
30433 LQR_DELEGATE_TRUE='#'
30434 LQR_DELEGATE_FALSE=
30435fi
30436
cristy3ed852e2009-09-05 21:47:34 +000030437
30438
30439
30440
cristy81beccd2011-10-03 18:17:24 +000030441# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030442
30443# Check whether --with-lzma was given.
30444if test "${with_lzma+set}" = set; then :
30445 withval=$with_lzma; with_lzma=$withval
30446else
30447 with_lzma='yes'
30448fi
30449
cristy81beccd2011-10-03 18:17:24 +000030450if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030451 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30452fi
30453
cristyb94e5002011-11-14 13:20:10 +000030454LZMA_PKG=""
30455if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30457$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030458
30459pkg_failed=no
30460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030461$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030462
30463if test -n "$LZMA_CFLAGS"; then
30464 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30465 elif test -n "$PKG_CONFIG"; then
30466 if test -n "$PKG_CONFIG" && \
30467 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30468 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30469 ac_status=$?
30470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30471 test $ac_status = 0; }; then
30472 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30473else
30474 pkg_failed=yes
30475fi
30476 else
30477 pkg_failed=untried
30478fi
30479if test -n "$LZMA_LIBS"; then
30480 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30481 elif test -n "$PKG_CONFIG"; then
30482 if test -n "$PKG_CONFIG" && \
30483 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30484 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30485 ac_status=$?
30486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30487 test $ac_status = 0; }; then
30488 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30489else
30490 pkg_failed=yes
30491fi
30492 else
30493 pkg_failed=untried
30494fi
30495
30496
30497
30498if test $pkg_failed = yes; then
30499
30500if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30501 _pkg_short_errors_supported=yes
30502else
30503 _pkg_short_errors_supported=no
30504fi
30505 if test $_pkg_short_errors_supported = yes; then
30506 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30507 else
30508 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30509 fi
30510 # Put the nasty error message in config.log where it belongs
30511 echo "$LZMA_PKG_ERRORS" >&5
30512
30513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30514$as_echo "no" >&6; }
30515 have_lzma=no
30516elif test $pkg_failed = untried; then
30517 have_lzma=no
30518else
30519 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30520 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30522$as_echo "yes" >&6; }
30523 have_lzma=yes
30524fi
cristyad38abe2012-12-23 23:03:21 +000030525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30526$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030527fi
30528
cristyb94e5002011-11-14 13:20:10 +000030529if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030530
30531$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30532
cristyc6722092012-10-14 00:19:31 +000030533 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030534 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030535 fi
cristyfbb0ef02010-12-19 02:32:11 +000030536fi
cristyb94e5002011-11-14 13:20:10 +000030537
cristyfbb0ef02010-12-19 02:32:11 +000030538 if test "$have_lzma" = 'yes'; then
30539 LZMA_DELEGATE_TRUE=
30540 LZMA_DELEGATE_FALSE='#'
30541else
30542 LZMA_DELEGATE_TRUE='#'
30543 LZMA_DELEGATE_FALSE=
30544fi
30545
30546
30547
30548
cristyb94e5002011-11-14 13:20:10 +000030549
cristy3ed852e2009-09-05 21:47:34 +000030550#
cristy854c9cf2013-08-10 21:03:06 +000030551# Check for MUPDF delegate library.
30552#
30553
30554# Check whether --with-mupdf was given.
30555if test "${with_mupdf+set}" = set; then :
30556 withval=$with_mupdf; with_mupdf=$withval
30557else
30558 with_mupdf='no'
30559fi
30560
30561
30562if test "$with_mupdf" != 'yes'; then
30563 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-mupdf=$with_mupdf "
30564fi
30565
30566have_mupdf='no'
30567MUPDF_LIBS=''
30568if test "$with_mupdf" != 'no'; then
30569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30570$as_echo "-------------------------------------------------------------" >&6; }
30571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MUPDF" >&5
30572$as_echo_n "checking for MUPDF... " >&6; }
30573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30574$as_echo "" >&6; }
30575 failed=0
30576 passed=0
30577 ac_fn_c_check_header_mongrel "$LINENO" "mupdf/fitz.h" "ac_cv_header_mupdf_fitz_h" "$ac_includes_default"
30578if test "x$ac_cv_header_mupdf_fitz_h" = xyes; then :
30579 passed=`expr $passed + 1`
30580else
30581 failed=`expr $failed + 1`
30582fi
30583
30584
30585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fz_new_context in -lmupdf" >&5
30586$as_echo_n "checking for fz_new_context in -lmupdf... " >&6; }
30587if ${ac_cv_lib_mupdf_fz_new_context+:} false; then :
30588 $as_echo_n "(cached) " >&6
30589else
30590 ac_check_lib_save_LIBS=$LIBS
30591LIBS="-lmupdf -lmupdf $FREETYPE_LIBS $LIBS"
30592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30593/* end confdefs.h. */
30594
30595/* Override any GCC internal prototype to avoid an error.
30596 Use char because int might match the return type of a GCC
30597 builtin and then its argument prototype would still apply. */
30598#ifdef __cplusplus
30599extern "C"
30600#endif
30601char fz_new_context ();
30602int
30603main ()
30604{
30605return fz_new_context ();
30606 ;
30607 return 0;
30608}
30609_ACEOF
30610if ac_fn_c_try_link "$LINENO"; then :
30611 ac_cv_lib_mupdf_fz_new_context=yes
30612else
30613 ac_cv_lib_mupdf_fz_new_context=no
30614fi
30615rm -f core conftest.err conftest.$ac_objext \
30616 conftest$ac_exeext conftest.$ac_ext
30617LIBS=$ac_check_lib_save_LIBS
30618fi
30619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mupdf_fz_new_context" >&5
30620$as_echo "$ac_cv_lib_mupdf_fz_new_context" >&6; }
30621if test "x$ac_cv_lib_mupdf_fz_new_context" = xyes; then :
30622 passed=`expr $passed + 1`
30623else
30624 failed=`expr $failed + 1`
30625fi
30626
30627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MUPDF package is complete" >&5
30628$as_echo_n "checking if MUPDF package is complete... " >&6; }
30629 if test $passed -gt 0; then
30630 if test $failed -gt 0; then
30631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30632$as_echo "no -- some components failed test" >&6; }
30633 have_mupdf='no (failed tests)'
30634 else
30635 MUPDF_LIBS='-lmupdf'
30636 LIBS="$MUPDF_LIBS $LIBS"
30637
30638$as_echo "#define MUPDF_DELEGATE 1" >>confdefs.h
30639
30640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30641$as_echo "yes" >&6; }
30642 have_mupdf='yes'
30643 fi
30644 else
30645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30646$as_echo "no" >&6; }
30647 fi
30648fi
30649 if test "$have_mupdf" = 'yes'; then
30650 MUPDF_DELEGATE_TRUE=
30651 MUPDF_DELEGATE_FALSE='#'
30652else
30653 MUPDF_DELEGATE_TRUE='#'
30654 MUPDF_DELEGATE_FALSE=
30655fi
30656
30657
30658
30659
30660#
cristy3ed852e2009-09-05 21:47:34 +000030661# Check for the OpenEXR delegate library.
30662#
30663
30664# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030665if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030666 withval=$with_openexr; with_openexr=$withval
30667else
30668 with_openexr='yes'
30669fi
30670
30671
30672if test "$with_openexr" != 'yes'; then
30673 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30674fi
30675
30676have_openexr='no'
30677OPENEXR_CFLAGS=""
30678OPENEXR_LIBS=""
30679OPENEXR_PKG=""
30680if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30682$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030683
30684pkg_failed=no
30685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30686$as_echo_n "checking for OPENEXR... " >&6; }
30687
30688if test -n "$OPENEXR_CFLAGS"; then
30689 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30690 elif test -n "$PKG_CONFIG"; then
30691 if test -n "$PKG_CONFIG" && \
30692 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30693 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30694 ac_status=$?
30695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30696 test $ac_status = 0; }; then
30697 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30698else
30699 pkg_failed=yes
30700fi
30701 else
30702 pkg_failed=untried
30703fi
30704if test -n "$OPENEXR_LIBS"; then
30705 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30706 elif test -n "$PKG_CONFIG"; then
30707 if test -n "$PKG_CONFIG" && \
30708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30709 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30710 ac_status=$?
30711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30712 test $ac_status = 0; }; then
30713 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30714else
30715 pkg_failed=yes
30716fi
30717 else
30718 pkg_failed=untried
30719fi
30720
30721
30722
30723if test $pkg_failed = yes; then
30724
30725if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30726 _pkg_short_errors_supported=yes
30727else
30728 _pkg_short_errors_supported=no
30729fi
30730 if test $_pkg_short_errors_supported = yes; then
30731 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30732 else
30733 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30734 fi
30735 # Put the nasty error message in config.log where it belongs
30736 echo "$OPENEXR_PKG_ERRORS" >&5
30737
30738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30739$as_echo "no" >&6; }
30740 have_openexr=no
30741elif test $pkg_failed = untried; then
30742 have_openexr=no
30743else
30744 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30745 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30747$as_echo "yes" >&6; }
30748 have_openexr=yes
30749fi
cristyad38abe2012-12-23 23:03:21 +000030750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30751$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030752fi
30753
30754if test "$have_openexr" = 'yes'; then
30755
cristy8b350f62009-11-15 23:12:43 +000030756$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030757
cristyc6722092012-10-14 00:19:31 +000030758 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030759 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30760 fi
30761fi
30762
cristy73bd4a52010-10-05 11:24:23 +000030763 if test "$have_openexr" = 'yes'; then
30764 OPENEXR_DELEGATE_TRUE=
30765 OPENEXR_DELEGATE_FALSE='#'
30766else
30767 OPENEXR_DELEGATE_TRUE='#'
30768 OPENEXR_DELEGATE_FALSE=
30769fi
30770
cristy3ed852e2009-09-05 21:47:34 +000030771
30772
30773
30774
30775#
cristy41cbe8a2011-10-27 01:35:18 +000030776# Check for PANGO delegate library.
30777#
30778
30779# Check whether --with-pango was given.
30780if test "${with_pango+set}" = set; then :
30781 withval=$with_pango; with_pango=$withval
30782else
cristyfc3d0222012-02-07 15:05:57 +000030783 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030784fi
30785
30786
30787if test "$with_pango" != 'yes'; then
30788 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30789fi
30790
30791have_pango='no'
cristya054b762012-03-26 23:16:00 +000030792have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030793PANGO_CFLAGS=""
30794PANGO_LIBS=""
30795PANGO_PKG=""
30796if test "x$with_pango" = "xyes"; then
30797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30798$as_echo "-------------------------------------------------------------" >&6; }
30799
30800pkg_failed=no
30801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30802$as_echo_n "checking for PANGO... " >&6; }
30803
30804if test -n "$PANGO_CFLAGS"; then
30805 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30806 elif test -n "$PKG_CONFIG"; then
30807 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030808 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30809 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030810 ac_status=$?
30811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30812 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030813 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030814else
30815 pkg_failed=yes
30816fi
30817 else
30818 pkg_failed=untried
30819fi
30820if test -n "$PANGO_LIBS"; then
30821 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30822 elif test -n "$PKG_CONFIG"; then
30823 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030824 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30825 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030826 ac_status=$?
30827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30828 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030829 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030830else
30831 pkg_failed=yes
30832fi
30833 else
30834 pkg_failed=untried
30835fi
30836
30837
30838
30839if test $pkg_failed = yes; then
30840
30841if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30842 _pkg_short_errors_supported=yes
30843else
30844 _pkg_short_errors_supported=no
30845fi
30846 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030847 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030848 else
cristya054b762012-03-26 23:16:00 +000030849 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030850 fi
30851 # Put the nasty error message in config.log where it belongs
30852 echo "$PANGO_PKG_ERRORS" >&5
30853
30854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30855$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030856 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030857elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030858 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030859else
30860 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30861 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30863$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030864 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030865fi
30866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30867$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030868
30869pkg_failed=no
30870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30871$as_echo_n "checking for PANGO... " >&6; }
30872
30873if test -n "$PANGO_CFLAGS"; then
30874 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30875 elif test -n "$PKG_CONFIG"; then
30876 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030877 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30878 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030879 ac_status=$?
30880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30881 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030882 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030883else
30884 pkg_failed=yes
30885fi
30886 else
30887 pkg_failed=untried
30888fi
30889if test -n "$PANGO_LIBS"; then
30890 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30891 elif test -n "$PKG_CONFIG"; then
30892 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030893 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30894 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030895 ac_status=$?
30896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30897 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030898 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030899else
30900 pkg_failed=yes
30901fi
30902 else
30903 pkg_failed=untried
30904fi
30905
30906
30907
30908if test $pkg_failed = yes; then
30909
30910if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30911 _pkg_short_errors_supported=yes
30912else
30913 _pkg_short_errors_supported=no
30914fi
30915 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030916 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030917 else
cristy2542fc62011-12-06 17:50:25 +000030918 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030919 fi
30920 # Put the nasty error message in config.log where it belongs
30921 echo "$PANGO_PKG_ERRORS" >&5
30922
30923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30924$as_echo "no" >&6; }
30925 have_pango=no
30926elif test $pkg_failed = untried; then
30927 have_pango=no
30928else
30929 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30930 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30932$as_echo "yes" >&6; }
30933 have_pango=yes
30934fi
30935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30936$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030937fi
30938
30939if test "$have_pango" = 'yes'; then
30940
30941$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30942
cristyc6722092012-10-14 00:19:31 +000030943 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030944 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30945 fi
30946fi
30947
cristya054b762012-03-26 23:16:00 +000030948if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030949
cristya054b762012-03-26 23:16:00 +000030950$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030951
cristyc6722092012-10-14 00:19:31 +000030952 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030953 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030954 fi
30955fi
30956
30957 if test "$have_pango" = 'yes'; then
30958 PANGO_DELEGATE_TRUE=
30959 PANGO_DELEGATE_FALSE='#'
30960else
30961 PANGO_DELEGATE_TRUE='#'
30962 PANGO_DELEGATE_FALSE=
30963fi
30964
cristya054b762012-03-26 23:16:00 +000030965 if test "$have_pangocairo" = 'yes'; then
30966 PANGOCAIRO_DELEGATE_TRUE=
30967 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030968else
cristya054b762012-03-26 23:16:00 +000030969 PANGOCAIRO_DELEGATE_TRUE='#'
30970 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030971fi
30972
30973
30974
30975
30976
30977#
cristy3ed852e2009-09-05 21:47:34 +000030978# Check for PNG delegate library.
30979#
30980
30981# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030982if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030983 withval=$with_png; with_png=$withval
30984else
30985 with_png='yes'
30986fi
30987
30988
30989if test "$with_png" != 'yes'; then
30990 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30991fi
30992
cristy81beccd2011-10-03 18:17:24 +000030993have_png='no'
30994PNG_LIBS=''
30995
30996if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30998$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000030999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31000$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31002$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031003 failed=0
31004 passed=0
31005 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31006if test "x$ac_cv_header_png_h" = xyes; then :
31007 passed=`expr $passed + 1`
31008else
31009 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031010fi
31011
cristy81beccd2011-10-03 18:17:24 +000031012
31013
31014 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000031015 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031016 if test "$have_png" = 'no' ; then
31017 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031018 pnglib='png'
31019 else
31020 pnglib="png1${var}"
31021 fi
31022
31023# Test for compatible LIBPNG library
31024 failed=0
31025 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031026 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031027 if test "${pnglib}" != 'png' ; then
31028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31029$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31031/* end confdefs.h. */
31032#include <stdio.h>
31033#include <stdlib.h>
31034#include <png.h>
31035
31036int
31037main ()
31038{
31039
31040#if PNG_LIBPNG_VER_MINOR != ${var}
31041#error LIBPNG library must be version 1${var}!
31042Kaboom, Kaboom
31043#endif
31044return 0;
31045
31046 ;
31047 return 0;
31048}
31049_ACEOF
31050if ac_fn_c_try_compile "$LINENO"; then :
31051 ac_cv_libpng_ok='yes'
31052else
31053 ac_cv_libpng_ok='no'
31054fi
31055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31056 if test "$ac_cv_libpng_ok" = 'yes' ; then
31057 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31059$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031060 else
31061 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000031062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31063$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031064 fi
31065 else
31066 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31068$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031069 fi
31070 fi
31071
31072 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000031073 if test "1${var}" = '17' ; then
31074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
31075$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
31076if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
31077 $as_echo_n "(cached) " >&6
31078else
31079 ac_check_lib_save_LIBS=$LIBS
31080LIBS="-lpng17 $LIBS"
31081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31082/* end confdefs.h. */
31083
31084/* Override any GCC internal prototype to avoid an error.
31085 Use char because int might match the return type of a GCC
31086 builtin and then its argument prototype would still apply. */
31087#ifdef __cplusplus
31088extern "C"
31089#endif
31090char png_get_io_ptr ();
31091int
31092main ()
31093{
31094return png_get_io_ptr ();
31095 ;
31096 return 0;
31097}
31098_ACEOF
31099if ac_fn_c_try_link "$LINENO"; then :
31100 ac_cv_lib_png17_png_get_io_ptr=yes
31101else
31102 ac_cv_lib_png17_png_get_io_ptr=no
31103fi
31104rm -f core conftest.err conftest.$ac_objext \
31105 conftest$ac_exeext conftest.$ac_ext
31106LIBS=$ac_check_lib_save_LIBS
31107fi
31108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
31109$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
31110if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
31111 passed=`expr $passed + 1`
31112else
31113 failed=`expr $failed + 1`
31114fi
31115
31116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
31117$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
31118if ${ac_cv_lib_png17_png_longjmp+:} false; then :
31119 $as_echo_n "(cached) " >&6
31120else
31121 ac_check_lib_save_LIBS=$LIBS
31122LIBS="-lpng17 $LIBS"
31123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31124/* end confdefs.h. */
31125
31126/* Override any GCC internal prototype to avoid an error.
31127 Use char because int might match the return type of a GCC
31128 builtin and then its argument prototype would still apply. */
31129#ifdef __cplusplus
31130extern "C"
31131#endif
31132char png_longjmp ();
31133int
31134main ()
31135{
31136return png_longjmp ();
31137 ;
31138 return 0;
31139}
31140_ACEOF
31141if ac_fn_c_try_link "$LINENO"; then :
31142 ac_cv_lib_png17_png_longjmp=yes
31143else
31144 ac_cv_lib_png17_png_longjmp=no
31145fi
31146rm -f core conftest.err conftest.$ac_objext \
31147 conftest$ac_exeext conftest.$ac_ext
31148LIBS=$ac_check_lib_save_LIBS
31149fi
31150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31151$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31152if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31153 passed=`expr $passed + 1`
31154else
31155 failed=`expr $failed + 1`
31156fi
31157
31158 fi
31159 if test "1${var}" = '16' ; then
31160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31161$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31162if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31163 $as_echo_n "(cached) " >&6
31164else
31165 ac_check_lib_save_LIBS=$LIBS
31166LIBS="-lpng16 $LIBS"
31167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31168/* end confdefs.h. */
31169
31170/* Override any GCC internal prototype to avoid an error.
31171 Use char because int might match the return type of a GCC
31172 builtin and then its argument prototype would still apply. */
31173#ifdef __cplusplus
31174extern "C"
31175#endif
31176char png_get_io_ptr ();
31177int
31178main ()
31179{
31180return png_get_io_ptr ();
31181 ;
31182 return 0;
31183}
31184_ACEOF
31185if ac_fn_c_try_link "$LINENO"; then :
31186 ac_cv_lib_png16_png_get_io_ptr=yes
31187else
31188 ac_cv_lib_png16_png_get_io_ptr=no
31189fi
31190rm -f core conftest.err conftest.$ac_objext \
31191 conftest$ac_exeext conftest.$ac_ext
31192LIBS=$ac_check_lib_save_LIBS
31193fi
31194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31195$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31196if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31197 passed=`expr $passed + 1`
31198else
31199 failed=`expr $failed + 1`
31200fi
31201
31202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31203$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31204if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31205 $as_echo_n "(cached) " >&6
31206else
31207 ac_check_lib_save_LIBS=$LIBS
31208LIBS="-lpng16 $LIBS"
31209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31210/* end confdefs.h. */
31211
31212/* Override any GCC internal prototype to avoid an error.
31213 Use char because int might match the return type of a GCC
31214 builtin and then its argument prototype would still apply. */
31215#ifdef __cplusplus
31216extern "C"
31217#endif
31218char png_longjmp ();
31219int
31220main ()
31221{
31222return png_longjmp ();
31223 ;
31224 return 0;
31225}
31226_ACEOF
31227if ac_fn_c_try_link "$LINENO"; then :
31228 ac_cv_lib_png16_png_longjmp=yes
31229else
31230 ac_cv_lib_png16_png_longjmp=no
31231fi
31232rm -f core conftest.err conftest.$ac_objext \
31233 conftest$ac_exeext conftest.$ac_ext
31234LIBS=$ac_check_lib_save_LIBS
31235fi
31236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31237$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31238if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31239 passed=`expr $passed + 1`
31240else
31241 failed=`expr $failed + 1`
31242fi
31243
31244 fi
cristy81beccd2011-10-03 18:17:24 +000031245 if test "1${var}" = '15' ; then
31246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31247$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31248if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31249 $as_echo_n "(cached) " >&6
31250else
31251 ac_check_lib_save_LIBS=$LIBS
31252LIBS="-lpng15 $LIBS"
31253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31254/* end confdefs.h. */
31255
31256/* Override any GCC internal prototype to avoid an error.
31257 Use char because int might match the return type of a GCC
31258 builtin and then its argument prototype would still apply. */
31259#ifdef __cplusplus
31260extern "C"
31261#endif
31262char png_get_io_ptr ();
31263int
31264main ()
31265{
31266return png_get_io_ptr ();
31267 ;
31268 return 0;
31269}
31270_ACEOF
31271if ac_fn_c_try_link "$LINENO"; then :
31272 ac_cv_lib_png15_png_get_io_ptr=yes
31273else
31274 ac_cv_lib_png15_png_get_io_ptr=no
31275fi
31276rm -f core conftest.err conftest.$ac_objext \
31277 conftest$ac_exeext conftest.$ac_ext
31278LIBS=$ac_check_lib_save_LIBS
31279fi
31280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31281$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31282if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31283 passed=`expr $passed + 1`
31284else
31285 failed=`expr $failed + 1`
31286fi
31287
31288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31289$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31290if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31291 $as_echo_n "(cached) " >&6
31292else
31293 ac_check_lib_save_LIBS=$LIBS
31294LIBS="-lpng15 $LIBS"
31295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31296/* end confdefs.h. */
31297
31298/* Override any GCC internal prototype to avoid an error.
31299 Use char because int might match the return type of a GCC
31300 builtin and then its argument prototype would still apply. */
31301#ifdef __cplusplus
31302extern "C"
31303#endif
31304char png_longjmp ();
31305int
31306main ()
31307{
31308return png_longjmp ();
31309 ;
31310 return 0;
31311}
31312_ACEOF
31313if ac_fn_c_try_link "$LINENO"; then :
31314 ac_cv_lib_png15_png_longjmp=yes
31315else
31316 ac_cv_lib_png15_png_longjmp=no
31317fi
31318rm -f core conftest.err conftest.$ac_objext \
31319 conftest$ac_exeext conftest.$ac_ext
31320LIBS=$ac_check_lib_save_LIBS
31321fi
31322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31323$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31324if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31325 passed=`expr $passed + 1`
31326else
31327 failed=`expr $failed + 1`
31328fi
31329
31330 fi
31331 if test "1${var}" = '14' ; then
31332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31333$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31334if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31335 $as_echo_n "(cached) " >&6
31336else
31337 ac_check_lib_save_LIBS=$LIBS
31338LIBS="-lpng14 $LIBS"
31339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31340/* end confdefs.h. */
31341
31342/* Override any GCC internal prototype to avoid an error.
31343 Use char because int might match the return type of a GCC
31344 builtin and then its argument prototype would still apply. */
31345#ifdef __cplusplus
31346extern "C"
31347#endif
31348char png_get_io_ptr ();
31349int
31350main ()
31351{
31352return png_get_io_ptr ();
31353 ;
31354 return 0;
31355}
31356_ACEOF
31357if ac_fn_c_try_link "$LINENO"; then :
31358 ac_cv_lib_png14_png_get_io_ptr=yes
31359else
31360 ac_cv_lib_png14_png_get_io_ptr=no
31361fi
31362rm -f core conftest.err conftest.$ac_objext \
31363 conftest$ac_exeext conftest.$ac_ext
31364LIBS=$ac_check_lib_save_LIBS
31365fi
31366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31367$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31368if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31369 passed=`expr $passed + 1`
31370else
31371 failed=`expr $failed + 1`
31372fi
31373
31374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31375$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31376if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31377 $as_echo_n "(cached) " >&6
31378else
31379 ac_check_lib_save_LIBS=$LIBS
31380LIBS="-lpng14 $LIBS"
31381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31382/* end confdefs.h. */
31383
31384/* Override any GCC internal prototype to avoid an error.
31385 Use char because int might match the return type of a GCC
31386 builtin and then its argument prototype would still apply. */
31387#ifdef __cplusplus
31388extern "C"
31389#endif
31390char png_get_io_state ();
31391int
31392main ()
31393{
31394return png_get_io_state ();
31395 ;
31396 return 0;
31397}
31398_ACEOF
31399if ac_fn_c_try_link "$LINENO"; then :
31400 ac_cv_lib_png14_png_get_io_state=yes
31401else
31402 ac_cv_lib_png14_png_get_io_state=no
31403fi
31404rm -f core conftest.err conftest.$ac_objext \
31405 conftest$ac_exeext conftest.$ac_ext
31406LIBS=$ac_check_lib_save_LIBS
31407fi
31408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31409$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31410if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31411 passed=`expr $passed + 1`
31412else
31413 failed=`expr $failed + 1`
31414fi
31415
31416 fi
31417 if test "1${var}" = '12' ; then
31418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31419$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31420if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31421 $as_echo_n "(cached) " >&6
31422else
31423 ac_check_lib_save_LIBS=$LIBS
31424LIBS="-lpng12 $LIBS"
31425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31426/* end confdefs.h. */
31427
31428/* Override any GCC internal prototype to avoid an error.
31429 Use char because int might match the return type of a GCC
31430 builtin and then its argument prototype would still apply. */
31431#ifdef __cplusplus
31432extern "C"
31433#endif
31434char png_get_io_ptr ();
31435int
31436main ()
31437{
31438return png_get_io_ptr ();
31439 ;
31440 return 0;
31441}
31442_ACEOF
31443if ac_fn_c_try_link "$LINENO"; then :
31444 ac_cv_lib_png12_png_get_io_ptr=yes
31445else
31446 ac_cv_lib_png12_png_get_io_ptr=no
31447fi
31448rm -f core conftest.err conftest.$ac_objext \
31449 conftest$ac_exeext conftest.$ac_ext
31450LIBS=$ac_check_lib_save_LIBS
31451fi
31452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31453$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31454if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31455 passed=`expr $passed + 1`
31456else
31457 failed=`expr $failed + 1`
31458fi
31459
31460 fi
31461 if test "1${var}" = '1' ; then
31462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31463$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31464if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31465 $as_echo_n "(cached) " >&6
31466else
31467 ac_check_lib_save_LIBS=$LIBS
31468LIBS="-lpng $LIBS"
31469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31470/* end confdefs.h. */
31471
31472/* Override any GCC internal prototype to avoid an error.
31473 Use char because int might match the return type of a GCC
31474 builtin and then its argument prototype would still apply. */
31475#ifdef __cplusplus
31476extern "C"
31477#endif
31478char png_get_io_ptr ();
31479int
31480main ()
31481{
31482return png_get_io_ptr ();
31483 ;
31484 return 0;
31485}
31486_ACEOF
31487if ac_fn_c_try_link "$LINENO"; then :
31488 ac_cv_lib_png_png_get_io_ptr=yes
31489else
31490 ac_cv_lib_png_png_get_io_ptr=no
31491fi
31492rm -f core conftest.err conftest.$ac_objext \
31493 conftest$ac_exeext conftest.$ac_ext
31494LIBS=$ac_check_lib_save_LIBS
31495fi
31496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31497$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31498if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31499 passed=`expr $passed + 1`
31500else
31501 failed=`expr $failed + 1`
31502fi
31503
31504 fi
31505 if test $passed -gt 0 -a $failed -le 0 ; then
31506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31507$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31508 if test $passed -gt 0 ; then
31509 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31511$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031512 have_png='no (failed tests)'
31513 else
31514 PNG_LIBS="-l${pnglib}"
31515 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031516
cristy8b350f62009-11-15 23:12:43 +000031517$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031518
cristyad38abe2012-12-23 23:03:21 +000031519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31520$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031521 have_png='yes'
31522 fi
31523 fi
31524 fi
31525 fi
31526 fi
31527 done
31528 fi
cristy3ed852e2009-09-05 21:47:34 +000031529fi
cristy64877302011-08-23 19:10:31 +000031530
cristy73bd4a52010-10-05 11:24:23 +000031531 if test "$have_png" = 'yes'; then
31532 PNG_DELEGATE_TRUE=
31533 PNG_DELEGATE_FALSE='#'
31534else
31535 PNG_DELEGATE_TRUE='#'
31536 PNG_DELEGATE_FALSE=
31537fi
31538
cristy3ed852e2009-09-05 21:47:34 +000031539
cristy50d3f5c2011-09-10 20:09:06 +000031540
cristy3ed852e2009-09-05 21:47:34 +000031541
31542
31543#
31544# Check for RSVG delegate library.
31545#
31546
31547# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031548if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031549 withval=$with_rsvg; with_rsvg=$withval
31550else
cristy1164d5f2012-08-15 00:58:25 +000031551 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031552fi
31553
31554
31555if test "$with_rsvg" != 'yes'; then
31556 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31557fi
31558
31559have_rsvg='no'
31560have_cairo='no'
31561RSVG_CFLAGS=""
31562RSVG_LIBS=""
31563RSVG_PKG=""
31564if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31566$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031567
31568pkg_failed=no
31569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31570$as_echo_n "checking for RSVG... " >&6; }
31571
31572if test -n "$RSVG_CFLAGS"; then
31573 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31574 elif test -n "$PKG_CONFIG"; then
31575 if test -n "$PKG_CONFIG" && \
31576 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31577 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31578 ac_status=$?
31579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31580 test $ac_status = 0; }; then
31581 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31582else
31583 pkg_failed=yes
31584fi
31585 else
31586 pkg_failed=untried
31587fi
31588if test -n "$RSVG_LIBS"; then
31589 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31590 elif test -n "$PKG_CONFIG"; then
31591 if test -n "$PKG_CONFIG" && \
31592 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31593 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31594 ac_status=$?
31595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31596 test $ac_status = 0; }; then
31597 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31598else
31599 pkg_failed=yes
31600fi
31601 else
31602 pkg_failed=untried
31603fi
31604
31605
31606
31607if test $pkg_failed = yes; then
31608
31609if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31610 _pkg_short_errors_supported=yes
31611else
31612 _pkg_short_errors_supported=no
31613fi
31614 if test $_pkg_short_errors_supported = yes; then
31615 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31616 else
31617 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31618 fi
31619 # Put the nasty error message in config.log where it belongs
31620 echo "$RSVG_PKG_ERRORS" >&5
31621
31622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31623$as_echo "no" >&6; }
31624 have_rsvg=no
31625elif test $pkg_failed = untried; then
31626 have_rsvg=no
31627else
31628 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31629 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31631$as_echo "yes" >&6; }
31632 have_rsvg=yes
31633fi
cristyad38abe2012-12-23 23:03:21 +000031634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31635$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031636
31637pkg_failed=no
31638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31639$as_echo_n "checking for CAIRO_SVG... " >&6; }
31640
31641if test -n "$CAIRO_SVG_CFLAGS"; then
31642 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31643 elif test -n "$PKG_CONFIG"; then
31644 if test -n "$PKG_CONFIG" && \
31645 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31646 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31647 ac_status=$?
31648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31649 test $ac_status = 0; }; then
31650 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31651else
31652 pkg_failed=yes
31653fi
31654 else
31655 pkg_failed=untried
31656fi
31657if test -n "$CAIRO_SVG_LIBS"; then
31658 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31659 elif test -n "$PKG_CONFIG"; then
31660 if test -n "$PKG_CONFIG" && \
31661 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31662 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31663 ac_status=$?
31664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31665 test $ac_status = 0; }; then
31666 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31667else
31668 pkg_failed=yes
31669fi
31670 else
31671 pkg_failed=untried
31672fi
31673
31674
31675
31676if test $pkg_failed = yes; then
31677
31678if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31679 _pkg_short_errors_supported=yes
31680else
31681 _pkg_short_errors_supported=no
31682fi
31683 if test $_pkg_short_errors_supported = yes; then
31684 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31685 else
31686 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31687 fi
31688 # Put the nasty error message in config.log where it belongs
31689 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31690
31691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31692$as_echo "no" >&6; }
31693 have_cairo=no
31694elif test $pkg_failed = untried; then
31695 have_cairo=no
31696else
31697 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31698 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31700$as_echo "yes" >&6; }
31701 have_cairo=yes
31702fi
cristyad38abe2012-12-23 23:03:21 +000031703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31704$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031705fi
31706
31707if test "$have_rsvg" = 'yes'; then
31708
cristy8b350f62009-11-15 23:12:43 +000031709$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031710
cristyc6722092012-10-14 00:19:31 +000031711 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031712 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31713 fi
31714fi
31715
31716if test "$have_cairo" = 'yes'; then
31717
cristy8b350f62009-11-15 23:12:43 +000031718$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031719
cristyc6722092012-10-14 00:19:31 +000031720 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031721 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31722 fi
31723fi
31724
cristy73bd4a52010-10-05 11:24:23 +000031725 if test "$have_rsvg" = 'yes'; then
31726 RSVG_DELEGATE_TRUE=
31727 RSVG_DELEGATE_FALSE='#'
31728else
31729 RSVG_DELEGATE_TRUE='#'
31730 RSVG_DELEGATE_FALSE=
31731fi
31732
31733 if test "$have_cairo" = 'yes'; then
31734 CAIRO_DELEGATE_TRUE=
31735 CAIRO_DELEGATE_FALSE='#'
31736else
31737 CAIRO_DELEGATE_TRUE='#'
31738 CAIRO_DELEGATE_FALSE=
31739fi
31740
cristy3ed852e2009-09-05 21:47:34 +000031741
31742
31743
31744
31745#
31746# Check for TIFF delegate library.
31747#
31748
31749# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031750if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031751 withval=$with_tiff; with_tiff=$withval
31752else
31753 with_tiff='yes'
31754fi
31755
31756
31757if test "$with_tiff" != 'yes'; then
31758 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31759fi
31760
31761have_tiff='no'
31762TIFF_LIBS=''
31763if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31765$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031767$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31769$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031770 failed=0
31771 passed=0
cristy8b350f62009-11-15 23:12:43 +000031772 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031773if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031774 passed=`expr $passed + 1`
31775else
31776 failed=`expr $failed + 1`
31777fi
31778
31779
cristy8b350f62009-11-15 23:12:43 +000031780 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031781if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031782 passed=`expr $passed + 1`
31783else
31784 failed=`expr $failed + 1`
31785fi
31786
31787
cristy8b350f62009-11-15 23:12:43 +000031788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031789$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031790if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031791 $as_echo_n "(cached) " >&6
31792else
31793 ac_check_lib_save_LIBS=$LIBS
31794LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031796/* end confdefs.h. */
31797
31798/* Override any GCC internal prototype to avoid an error.
31799 Use char because int might match the return type of a GCC
31800 builtin and then its argument prototype would still apply. */
31801#ifdef __cplusplus
31802extern "C"
31803#endif
31804char TIFFOpen ();
31805int
31806main ()
31807{
31808return TIFFOpen ();
31809 ;
31810 return 0;
31811}
31812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031813if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031814 ac_cv_lib_tiff_TIFFOpen=yes
31815else
cristy8b350f62009-11-15 23:12:43 +000031816 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031817fi
cristy8b350f62009-11-15 23:12:43 +000031818rm -f core conftest.err conftest.$ac_objext \
31819 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031820LIBS=$ac_check_lib_save_LIBS
31821fi
cristy8b350f62009-11-15 23:12:43 +000031822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031823$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031824if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031825 passed=`expr $passed + 1`
31826else
31827 failed=`expr $failed + 1`
31828fi
31829
cristy8b350f62009-11-15 23:12:43 +000031830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031831$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031832if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031833 $as_echo_n "(cached) " >&6
31834else
31835 ac_check_lib_save_LIBS=$LIBS
31836LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031838/* end confdefs.h. */
31839
31840/* Override any GCC internal prototype to avoid an error.
31841 Use char because int might match the return type of a GCC
31842 builtin and then its argument prototype would still apply. */
31843#ifdef __cplusplus
31844extern "C"
31845#endif
31846char TIFFClientOpen ();
31847int
31848main ()
31849{
31850return TIFFClientOpen ();
31851 ;
31852 return 0;
31853}
31854_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031855if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031856 ac_cv_lib_tiff_TIFFClientOpen=yes
31857else
cristy8b350f62009-11-15 23:12:43 +000031858 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031859fi
cristy8b350f62009-11-15 23:12:43 +000031860rm -f core conftest.err conftest.$ac_objext \
31861 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031862LIBS=$ac_check_lib_save_LIBS
31863fi
cristy8b350f62009-11-15 23:12:43 +000031864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031865$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031866if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031867 passed=`expr $passed + 1`
31868else
31869 failed=`expr $failed + 1`
31870fi
31871
cristy8b350f62009-11-15 23:12:43 +000031872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031873$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031874if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031875 $as_echo_n "(cached) " >&6
31876else
31877 ac_check_lib_save_LIBS=$LIBS
31878LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031880/* end confdefs.h. */
31881
31882/* Override any GCC internal prototype to avoid an error.
31883 Use char because int might match the return type of a GCC
31884 builtin and then its argument prototype would still apply. */
31885#ifdef __cplusplus
31886extern "C"
31887#endif
31888char TIFFIsByteSwapped ();
31889int
31890main ()
31891{
31892return TIFFIsByteSwapped ();
31893 ;
31894 return 0;
31895}
31896_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031897if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031898 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31899else
cristy8b350f62009-11-15 23:12:43 +000031900 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031901fi
cristy8b350f62009-11-15 23:12:43 +000031902rm -f core conftest.err conftest.$ac_objext \
31903 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031904LIBS=$ac_check_lib_save_LIBS
31905fi
cristy8b350f62009-11-15 23:12:43 +000031906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031907$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031908if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031909 passed=`expr $passed + 1`
31910else
31911 failed=`expr $failed + 1`
31912fi
31913
cristy8b350f62009-11-15 23:12:43 +000031914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031915$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031916if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031917 $as_echo_n "(cached) " >&6
31918else
31919 ac_check_lib_save_LIBS=$LIBS
31920LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031922/* end confdefs.h. */
31923
31924/* Override any GCC internal prototype to avoid an error.
31925 Use char because int might match the return type of a GCC
31926 builtin and then its argument prototype would still apply. */
31927#ifdef __cplusplus
31928extern "C"
31929#endif
31930char TIFFReadRGBATile ();
31931int
31932main ()
31933{
31934return TIFFReadRGBATile ();
31935 ;
31936 return 0;
31937}
31938_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031939if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031940 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31941else
cristy8b350f62009-11-15 23:12:43 +000031942 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031943fi
cristy8b350f62009-11-15 23:12:43 +000031944rm -f core conftest.err conftest.$ac_objext \
31945 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031946LIBS=$ac_check_lib_save_LIBS
31947fi
cristy8b350f62009-11-15 23:12:43 +000031948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031949$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031950if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031951 passed=`expr $passed + 1`
31952else
31953 failed=`expr $failed + 1`
31954fi
31955
cristy8b350f62009-11-15 23:12:43 +000031956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031957$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031958if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031959 $as_echo_n "(cached) " >&6
31960else
31961 ac_check_lib_save_LIBS=$LIBS
31962LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031964/* end confdefs.h. */
31965
31966/* Override any GCC internal prototype to avoid an error.
31967 Use char because int might match the return type of a GCC
31968 builtin and then its argument prototype would still apply. */
31969#ifdef __cplusplus
31970extern "C"
31971#endif
31972char TIFFReadRGBAStrip ();
31973int
31974main ()
31975{
31976return TIFFReadRGBAStrip ();
31977 ;
31978 return 0;
31979}
31980_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031981if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031982 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31983else
cristy8b350f62009-11-15 23:12:43 +000031984 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031985fi
cristy8b350f62009-11-15 23:12:43 +000031986rm -f core conftest.err conftest.$ac_objext \
31987 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031988LIBS=$ac_check_lib_save_LIBS
31989fi
cristy8b350f62009-11-15 23:12:43 +000031990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031991$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031992if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031993 passed=`expr $passed + 1`
31994else
31995 failed=`expr $failed + 1`
31996fi
31997
cristy8b350f62009-11-15 23:12:43 +000031998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031999$as_echo_n "checking if TIFF package is complete... " >&6; }
32000 if test $passed -gt 0; then
32001 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32003$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032004 have_tiff='no (failed tests)'
32005 else
32006 TIFF_LIBS='-ltiff'
32007 LIBS="$TIFF_LIBS $LIBS"
32008
cristy8b350f62009-11-15 23:12:43 +000032009$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032010
cristyad38abe2012-12-23 23:03:21 +000032011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32012$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032013 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032014 for ac_header in tiffconf.h
32015do :
32016 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032017if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032018 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032019#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032020_ACEOF
32021
32022fi
32023
32024done
32025
cristy8b350f62009-11-15 23:12:43 +000032026 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032027 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32028 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32029 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032030do :
32031 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32032ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032033if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032034 cat >>confdefs.h <<_ACEOF
32035#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32036_ACEOF
32037
32038fi
32039done
32040
32041 fi
32042 else
cristyad38abe2012-12-23 23:03:21 +000032043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32044$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032045 fi
32046fi
cristy73bd4a52010-10-05 11:24:23 +000032047 if test "$have_tiff" = 'yes'; then
32048 TIFF_DELEGATE_TRUE=
32049 TIFF_DELEGATE_FALSE='#'
32050else
32051 TIFF_DELEGATE_TRUE='#'
32052 TIFF_DELEGATE_FALSE=
32053fi
32054
cristy3ed852e2009-09-05 21:47:34 +000032055
32056
32057
32058#
cristyb1860752011-03-14 00:27:46 +000032059# Check for WEBP delegate library.
32060#
32061
32062# Check whether --with-webp was given.
32063if test "${with_webp+set}" = set; then :
32064 withval=$with_webp; with_webp=$withval
32065else
32066 with_webp='yes'
32067fi
32068
32069
32070if test "$with_webp" != 'yes'; then
32071 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32072fi
32073
32074have_webp='no'
32075WEBP_LIBS=''
32076if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32078$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000032079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32080$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32082$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000032083 failed=0
32084 passed=0
32085 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32086if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32087 passed=`expr $passed + 1`
32088else
32089 failed=`expr $failed + 1`
32090fi
32091
32092
cristy6d670312013-03-22 23:23:01 +000032093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
32094$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
32095if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000032096 $as_echo_n "(cached) " >&6
32097else
32098 ac_check_lib_save_LIBS=$LIBS
32099LIBS="-lwebp $LIBS"
32100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32101/* end confdefs.h. */
32102
32103/* Override any GCC internal prototype to avoid an error.
32104 Use char because int might match the return type of a GCC
32105 builtin and then its argument prototype would still apply. */
32106#ifdef __cplusplus
32107extern "C"
32108#endif
cristy6d670312013-03-22 23:23:01 +000032109char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032110int
32111main ()
32112{
cristy6d670312013-03-22 23:23:01 +000032113return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032114 ;
32115 return 0;
32116}
32117_ACEOF
32118if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000032119 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000032120else
cristy6d670312013-03-22 23:23:01 +000032121 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000032122fi
32123rm -f core conftest.err conftest.$ac_objext \
32124 conftest$ac_exeext conftest.$ac_ext
32125LIBS=$ac_check_lib_save_LIBS
32126fi
cristy6d670312013-03-22 23:23:01 +000032127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32128$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32129if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032130 passed=`expr $passed + 1`
32131else
32132 failed=`expr $failed + 1`
32133fi
32134
32135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32136$as_echo_n "checking if WEBP package is complete... " >&6; }
32137 if test $passed -gt 0; then
32138 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32140$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032141 have_webp='no (failed tests)'
32142 else
32143 WEBP_LIBS='-lwebp'
32144 LIBS="$WEBP_LIBS $LIBS"
32145
32146$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32147
cristyad38abe2012-12-23 23:03:21 +000032148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32149$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032150 have_webp='yes'
32151 fi
32152 else
cristyad38abe2012-12-23 23:03:21 +000032153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32154$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032155 fi
32156fi
32157 if test "$have_webp" = 'yes'; then
32158 WEBP_DELEGATE_TRUE=
32159 WEBP_DELEGATE_FALSE='#'
32160else
32161 WEBP_DELEGATE_TRUE='#'
32162 WEBP_DELEGATE_FALSE=
32163fi
32164
32165
32166
32167
32168#
cristy3ed852e2009-09-05 21:47:34 +000032169# Set Windows font directory.
32170#
32171
32172# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032173if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032174 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32175else
32176 with_windows_font_dir=''
32177fi
32178
32179if test "$with_windows_font_dir" != '' ; then
32180 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32181fi
32182
32183
32184#
32185# Check for WMF delegate library.
32186#
32187
32188# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032189if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032190 withval=$with_wmf; with_wmf=$withval
32191else
cristyfc3d0222012-02-07 15:05:57 +000032192 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032193fi
32194
32195
32196if test "$with_wmf" != 'yes'; then
32197 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32198fi
32199
32200have_wmf='no'
32201WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032202WMF_LIBS_DEPS=''
32203OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032204if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32206$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032208$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32210$as_echo "" >&6; }
32211 have_libwmf='no'
32212 have_libwmflite='no'
32213 have_libwmf_ipa_h='no'
32214
32215 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32216"
32217if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32218 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032219fi
32220
32221
cristy03f7cf92011-12-15 01:40:41 +000032222 if test "$have_libwmf_ipa_h" = 'yes'; then
32223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32224$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32225if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032226 $as_echo_n "(cached) " >&6
32227else
32228 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032229LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032231/* end confdefs.h. */
32232
32233/* Override any GCC internal prototype to avoid an error.
32234 Use char because int might match the return type of a GCC
32235 builtin and then its argument prototype would still apply. */
32236#ifdef __cplusplus
32237extern "C"
32238#endif
cristy03f7cf92011-12-15 01:40:41 +000032239char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032240int
32241main ()
32242{
cristy03f7cf92011-12-15 01:40:41 +000032243return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032244 ;
32245 return 0;
32246}
32247_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032248if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032249 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032250else
cristy03f7cf92011-12-15 01:40:41 +000032251 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032252fi
cristy8b350f62009-11-15 23:12:43 +000032253rm -f core conftest.err conftest.$ac_objext \
32254 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032255LIBS=$ac_check_lib_save_LIBS
32256fi
cristy03f7cf92011-12-15 01:40:41 +000032257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32258$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32259if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32260 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032261fi
32262
cristy03f7cf92011-12-15 01:40:41 +000032263 if test "$have_libwmflite" = 'yes'; then
32264
32265$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32266
32267 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032268 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032269 have_wmf='yes'
32270 else
32271 WMF_LIBS_DEPS=''
32272 WMF_CONFIG_LIBS=`libwmf-config --libs`
32273 for lib in xml2 expat freetype jpeg png z; do
32274 testlib="-l${lib}"
32275 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32276 done
32277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32278$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32279if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32280 $as_echo_n "(cached) " >&6
32281else
32282 ac_check_lib_save_LIBS=$LIBS
32283LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32285/* end confdefs.h. */
32286
32287/* Override any GCC internal prototype to avoid an error.
32288 Use char because int might match the return type of a GCC
32289 builtin and then its argument prototype would still apply. */
32290#ifdef __cplusplus
32291extern "C"
32292#endif
32293char wmf_api_create ();
32294int
32295main ()
32296{
32297return wmf_api_create ();
32298 ;
32299 return 0;
32300}
32301_ACEOF
32302if ac_fn_c_try_link "$LINENO"; then :
32303 ac_cv_lib_wmf_wmf_api_create=yes
32304else
32305 ac_cv_lib_wmf_wmf_api_create=no
32306fi
32307rm -f core conftest.err conftest.$ac_objext \
32308 conftest$ac_exeext conftest.$ac_ext
32309LIBS=$ac_check_lib_save_LIBS
32310fi
32311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32312$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32313if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32314 have_libwmf='yes'
32315fi
32316
32317 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032318
cristy8b350f62009-11-15 23:12:43 +000032319$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032320
cristy03f7cf92011-12-15 01:40:41 +000032321 WMF_LIBS='-lwmf'
32322 LIBS="$WMF_LIBS $LIBS"
32323 have_wmf='yes'
32324 else
32325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32326$as_echo "no -- some components failed test" >&6; }
32327 have_wmf='no (failed tests)'
32328 have_wmflite='no (failed tests)'
32329 LIBS="$OLIBS"
32330 WMF_LIBS=''
32331 fi
glennrp33e524b2011-08-24 17:41:57 +000032332 fi
cristy03f7cf92011-12-15 01:40:41 +000032333 fi
32334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32335$as_echo_n "checking if WMF package is complete... " >&6; }
32336 if test "$have_wmf" = 'yes'; then
32337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32338$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032339 else
cristy03f7cf92011-12-15 01:40:41 +000032340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32341$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032342 fi
cristy3ed852e2009-09-05 21:47:34 +000032343fi
cristy73bd4a52010-10-05 11:24:23 +000032344 if test "$have_wmf" = 'yes'; then
32345 WMF_DELEGATE_TRUE=
32346 WMF_DELEGATE_FALSE='#'
32347else
32348 WMF_DELEGATE_TRUE='#'
32349 WMF_DELEGATE_FALSE=
32350fi
32351
cristy3ed852e2009-09-05 21:47:34 +000032352
32353
32354
cristy81beccd2011-10-03 18:17:24 +000032355
32356
cristy3ed852e2009-09-05 21:47:34 +000032357#
32358# Check for XML delegate library.
32359#
32360
32361# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032362if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032363 withval=$with_xml; with_xml=$withval
32364else
cristyfc3d0222012-02-07 15:05:57 +000032365 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032366fi
32367
32368
cristy81beccd2011-10-03 18:17:24 +000032369if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032370 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32371fi
32372
cristy81beccd2011-10-03 18:17:24 +000032373have_xml='no'
32374XML_LIBS=''
32375if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32377$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32379$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32381$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032382 PERSIST_LDFLAGS=$LDFLAGS
32383 PERSIST_CPPFLAGS=$CPPFLAGS
32384 xml2_config=''
32385 # Extract the first word of "xml2-config", so it can be a program name with args.
32386set dummy xml2-config; ac_word=$2
32387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32388$as_echo_n "checking for $ac_word... " >&6; }
32389if ${ac_cv_path_xml2_config+:} false; then :
32390 $as_echo_n "(cached) " >&6
32391else
32392 case $xml2_config in
32393 [\\/]* | ?:[\\/]*)
32394 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32395 ;;
32396 *)
32397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32398for as_dir in $PATH
32399do
32400 IFS=$as_save_IFS
32401 test -z "$as_dir" && as_dir=.
32402 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032404 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32406 break 2
32407 fi
32408done
32409 done
32410IFS=$as_save_IFS
32411
32412 ;;
32413esac
32414fi
32415xml2_config=$ac_cv_path_xml2_config
32416if test -n "$xml2_config"; then
32417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32418$as_echo "$xml2_config" >&6; }
32419else
32420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32421$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032422fi
32423
cristy81beccd2011-10-03 18:17:24 +000032424 if test -n "$xml2_config"; then
32425 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32426 # the shared library installed under /usr/lib, whereas the package
32427 # installs itself under $prefix/libxml and $prefix/lib.
32428 xml2_prefix=`xml2-config --prefix`
32429 if test -d "${xml2_prefix}/include/libxml2"; then
32430 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32431 fi
32432 if test "${xml2_prefix}" != '/usr'; then
32433 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32434 fi
32435 fi
32436 failed=0
32437 passed=0
32438 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32439if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32440 passed=`expr $passed + 1`
32441else
32442 failed=`expr $failed + 1`
32443fi
32444
32445
32446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32447$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32448if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32449 $as_echo_n "(cached) " >&6
32450else
32451 ac_check_lib_save_LIBS=$LIBS
32452LIBS="-lxml2 $LIBS"
32453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32454/* end confdefs.h. */
32455
32456/* Override any GCC internal prototype to avoid an error.
32457 Use char because int might match the return type of a GCC
32458 builtin and then its argument prototype would still apply. */
32459#ifdef __cplusplus
32460extern "C"
32461#endif
32462char xmlSAXVersion ();
32463int
32464main ()
32465{
32466return xmlSAXVersion ();
32467 ;
32468 return 0;
32469}
32470_ACEOF
32471if ac_fn_c_try_link "$LINENO"; then :
32472 ac_cv_lib_xml2_xmlSAXVersion=yes
32473else
32474 ac_cv_lib_xml2_xmlSAXVersion=no
32475fi
32476rm -f core conftest.err conftest.$ac_objext \
32477 conftest$ac_exeext conftest.$ac_ext
32478LIBS=$ac_check_lib_save_LIBS
32479fi
32480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32481$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32482if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32483 passed=`expr $passed + 1`
32484else
32485 failed=`expr $failed + 1`
32486fi
32487
32488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32489$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32490if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32491 $as_echo_n "(cached) " >&6
32492else
32493 ac_check_lib_save_LIBS=$LIBS
32494LIBS="-lxml2 $LIBS"
32495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32496/* end confdefs.h. */
32497
32498/* Override any GCC internal prototype to avoid an error.
32499 Use char because int might match the return type of a GCC
32500 builtin and then its argument prototype would still apply. */
32501#ifdef __cplusplus
32502extern "C"
32503#endif
32504char xmlParseChunk ();
32505int
32506main ()
32507{
32508return xmlParseChunk ();
32509 ;
32510 return 0;
32511}
32512_ACEOF
32513if ac_fn_c_try_link "$LINENO"; then :
32514 ac_cv_lib_xml2_xmlParseChunk=yes
32515else
32516 ac_cv_lib_xml2_xmlParseChunk=no
32517fi
32518rm -f core conftest.err conftest.$ac_objext \
32519 conftest$ac_exeext conftest.$ac_ext
32520LIBS=$ac_check_lib_save_LIBS
32521fi
32522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32523$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32524if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32525 passed=`expr $passed + 1`
32526else
32527 failed=`expr $failed + 1`
32528fi
32529
32530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32531$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32532if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32533 $as_echo_n "(cached) " >&6
32534else
32535 ac_check_lib_save_LIBS=$LIBS
32536LIBS="-lxml2 $LIBS"
32537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32538/* end confdefs.h. */
32539
32540/* Override any GCC internal prototype to avoid an error.
32541 Use char because int might match the return type of a GCC
32542 builtin and then its argument prototype would still apply. */
32543#ifdef __cplusplus
32544extern "C"
32545#endif
32546char xmlCreatePushParserCtxt ();
32547int
32548main ()
32549{
32550return xmlCreatePushParserCtxt ();
32551 ;
32552 return 0;
32553}
32554_ACEOF
32555if ac_fn_c_try_link "$LINENO"; then :
32556 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32557else
32558 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32559fi
32560rm -f core conftest.err conftest.$ac_objext \
32561 conftest$ac_exeext conftest.$ac_ext
32562LIBS=$ac_check_lib_save_LIBS
32563fi
32564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32565$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32566if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32567 passed=`expr $passed + 1`
32568else
32569 failed=`expr $failed + 1`
32570fi
32571
32572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32573$as_echo_n "checking if XML package is complete... " >&6; }
32574 if test $passed -gt 0; then
32575 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32577$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032578 have_xml='no (failed tests)'
32579 LDFLAGS="$PERSIST_LDFLAGS"
32580 CPPFLAGS="$PERSIST_CPPFLAGS"
32581 else
32582 XML_LIBS='-lxml2'
32583 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032584
cristy8b350f62009-11-15 23:12:43 +000032585$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032586
cristyad38abe2012-12-23 23:03:21 +000032587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32588$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032589 have_xml='yes'
32590 fi
32591 else
cristyad38abe2012-12-23 23:03:21 +000032592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32593$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032594 fi
32595fi
cristy73bd4a52010-10-05 11:24:23 +000032596 if test "$have_xml" = 'yes'; then
32597 XML_DELEGATE_TRUE=
32598 XML_DELEGATE_FALSE='#'
32599else
32600 XML_DELEGATE_TRUE='#'
32601 XML_DELEGATE_FALSE=
32602fi
32603
cristy3ed852e2009-09-05 21:47:34 +000032604
32605
32606
32607# Substitute compiler name to build/link PerlMagick
32608#
32609
32610
32611#
32612# Configure install Paths
32613#
cristy7def36a2011-10-28 19:04:41 +000032614
cristy2a11bef2011-10-28 18:33:11 +000032615# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032616INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032617INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32618DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032619case "${build_os}" in
32620 mingw* )
32621 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32622 ;;
32623esac
32624
32625cat >>confdefs.h <<_ACEOF
32626#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32627_ACEOF
32628
32629
cristy3ed852e2009-09-05 21:47:34 +000032630
cristye52f12f2012-12-31 15:32:36 +000032631# Path to ImageMagick header files (arch part)
32632INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32633DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32634case "${build_os}" in
32635 mingw* )
32636 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32637 ;;
32638esac
32639
32640cat >>confdefs.h <<_ACEOF
32641#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32642_ACEOF
32643
32644
32645
cristy3ed852e2009-09-05 21:47:34 +000032646# Subdirectory under lib to place ImageMagick lib files
32647LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32648
32649cat >>confdefs.h <<_ACEOF
32650#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32651_ACEOF
32652
32653
32654# Path to ImageMagick bin directory
32655EXECUTABLE_PATH="${BIN_DIR}"
32656DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32657case "${build_os}" in
32658 mingw* )
32659 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32660 ;;
32661esac
32662
32663cat >>confdefs.h <<_ACEOF
32664#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32665_ACEOF
32666
32667
32668
32669# Path to ImageMagick lib
32670LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32671DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32672case "${build_os}" in
32673 mingw* )
32674 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32675 ;;
32676esac
32677
32678cat >>confdefs.h <<_ACEOF
32679#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32680_ACEOF
32681
32682
32683
cristy3ed852e2009-09-05 21:47:34 +000032684#
cristy8d0ff762013-03-10 20:33:28 +000032685# path to local binaries
32686if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32687 LIB_BIN_BASEDIRNAME="bin"
32688fi
32689
32690cat >>confdefs.h <<_ACEOF
32691#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32692_ACEOF
32693
32694
32695
32696if test "x$LIB_BIN_DIR" = "x"; then
32697 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32698fi
32699
32700
32701LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32702
32703LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32704
32705
32706#
cristy01ff9f32012-12-01 18:15:29 +000032707# path to modules lib
32708if test "x$MODULES_BASEDIRNAME" = "x"; then
32709 MODULES_BASEDIRNAME="modules"
32710fi
cristy3ed852e2009-09-05 21:47:34 +000032711
32712cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032713#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032714_ACEOF
32715
cristy01ff9f32012-12-01 18:15:29 +000032716
32717
32718if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032719 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32720else
cristy3ed852e2009-09-05 21:47:34 +000032721
32722cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032723#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032724_ACEOF
32725
cristycf4a3c22012-12-02 21:47:25 +000032726fi
cristy01ff9f32012-12-01 18:15:29 +000032727
32728
cristy371d4812012-12-01 19:48:10 +000032729MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032730
32731MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32732
32733
32734#
32735# path to coders lib
32736if test "x$CODER_DIRNAME" = "x"; then
32737 CODER_DIRNAME="coders"
32738fi
32739
32740cat >>confdefs.h <<_ACEOF
32741#define CODER_DIRNAME "$CODER_DIRNAME"
32742_ACEOF
32743
32744
32745
cristy371d4812012-12-01 19:48:10 +000032746CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032747CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032748
32749
32750#
32751# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032752#
32753# path to coders lib
32754if test "x$FILTER_DIRNAME" = "x"; then
32755 FILTER_DIRNAME="filters"
32756fi
cristy3ed852e2009-09-05 21:47:34 +000032757
32758cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032759#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032760_ACEOF
32761
cristy3ed852e2009-09-05 21:47:34 +000032762
cristy3ed852e2009-09-05 21:47:34 +000032763
cristy371d4812012-12-01 19:48:10 +000032764FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032765FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032766
32767
32768#
32769# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000032770DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032771DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32772DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032773case "${build_os}" in
32774 mingw* )
32775 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32776 ;;
32777esac
32778
32779cat >>confdefs.h <<_ACEOF
32780#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32781_ACEOF
32782
32783
32784
cristy2a11bef2011-10-28 18:33:11 +000032785# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032786CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032787
32788cat >>confdefs.h <<_ACEOF
32789#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32790_ACEOF
32791
cristy7def36a2011-10-28 19:04:41 +000032792CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032793DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32794case "${build_os}" in
32795 mingw* )
32796 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32797 ;;
32798esac
32799
32800cat >>confdefs.h <<_ACEOF
32801#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32802_ACEOF
32803
32804
32805
cristy2a11bef2011-10-28 18:33:11 +000032806# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032807SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032808
32809cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032810#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032811_ACEOF
32812
cristy670aa3c2011-11-03 00:54:00 +000032813SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032814DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032815case "${build_os}" in
32816 mingw* )
cristy4f820712011-04-01 12:35:43 +000032817 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032818 ;;
32819esac
32820
32821cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032822#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032823_ACEOF
32824
32825
32826
cristy54378032012-12-04 15:52:20 +000032827#
32828# Subdirectory to place architecture-dependent configuration files.
32829if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32830 SHAREARCH_BASEDIRNAME="config"
32831fi
cristy670aa3c2011-11-03 00:54:00 +000032832
32833cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032834#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032835_ACEOF
32836
cristy54378032012-12-04 15:52:20 +000032837
32838
32839if test "x$SHAREARCH_DIRNAME" = "x"; then
32840 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32841else
cristy670aa3c2011-11-03 00:54:00 +000032842
32843cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032844#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032845_ACEOF
32846
cristy54378032012-12-04 15:52:20 +000032847fi
32848
32849
32850SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32851
32852SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032853
32854
cristy3ed852e2009-09-05 21:47:34 +000032855#
32856# program_transform_name is formed for use in a Makefile, so create a
32857# modified version for use in a shell script.
32858configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32859
32860# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32862$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032864$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32866$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032867AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032868BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032869BZIPDelegateDefault='bzip2'
32870BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032871CatDelegateDefault='cat'
32872DNGDecodeDelegateDefault='ufraw-batch'
32873GVCDecodeDelegateDefault='dot'
32874DVIDecodeDelegateDefault='dvips'
32875EchoDelegateDefault='echo'
32876EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032877ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32878DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32879MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32880GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032881HPGLDecodeDelegateDefault='hp2xx'
32882HTMLDecodeDelegateDefault='html2ps'
32883ILBMDecodeDelegateDefault='ilbmtoppm'
32884ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032885JXRDecodeDelegateDefault='JxrDecApp'
32886JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032887LPDelegateDefault='lp'
32888LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032889LaunchDelegateDefault='gimp'
32890MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032891MPEGDecodeDelegateDefault='avconv'
32892MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032893MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032894MVDelegateDefault='mv'
32895PCLDelegateDefault='pcl6'
32896PGPDecodeDelegateDefault='pgpv'
32897POVDelegateDefault='povray'
32898if test "$native_win32_build" = 'yes'; then
32899 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032900elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032901 PSDelegateDefault='gsc'
32902else
32903 PSDelegateDefault='gs'
32904fi
32905RLEEncodeDelegateDefault='rawtorle'
32906RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032907RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032908SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032909SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032910TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032911UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032912WebPDecodeDelegateDefault='dwebp'
32913WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032914WMFDecodeDelegateDefault='wmf2eps'
32915WWWDecodeDelegateDefault='curl'
32916XPSDelegateDefault='gxps'
32917ZipDelegateDefault='gzip'
32918
32919# Search for delegates
32920# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32921set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032923$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032924if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032925 $as_echo_n "(cached) " >&6
32926else
32927 case $AutotraceDecodeDelegate in
32928 [\\/]* | ?:[\\/]*)
32929 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32930 ;;
32931 *)
32932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32933for as_dir in $PATH
32934do
32935 IFS=$as_save_IFS
32936 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032937 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032939 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032941 break 2
32942 fi
32943done
cristy8b350f62009-11-15 23:12:43 +000032944 done
cristy3ed852e2009-09-05 21:47:34 +000032945IFS=$as_save_IFS
32946
32947 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32948 ;;
32949esac
32950fi
32951AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32952if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032954$as_echo "$AutotraceDecodeDelegate" >&6; }
32955else
cristy8b350f62009-11-15 23:12:43 +000032956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032957$as_echo "no" >&6; }
32958fi
32959
32960
cristy3ed852e2009-09-05 21:47:34 +000032961# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32962set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032964$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032965if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032966 $as_echo_n "(cached) " >&6
32967else
32968 case $BlenderDecodeDelegate in
32969 [\\/]* | ?:[\\/]*)
32970 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32971 ;;
32972 *)
32973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32974for as_dir in $PATH
32975do
32976 IFS=$as_save_IFS
32977 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032978 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032980 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032982 break 2
32983 fi
32984done
cristy8b350f62009-11-15 23:12:43 +000032985 done
cristy3ed852e2009-09-05 21:47:34 +000032986IFS=$as_save_IFS
32987
32988 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32989 ;;
32990esac
32991fi
32992BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32993if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032995$as_echo "$BlenderDecodeDelegate" >&6; }
32996else
cristy8b350f62009-11-15 23:12:43 +000032997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032998$as_echo "no" >&6; }
32999fi
33000
33001
33002# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
33003set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033005$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033006if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033007 $as_echo_n "(cached) " >&6
33008else
33009 case $BZIPDelegate in
33010 [\\/]* | ?:[\\/]*)
33011 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33012 ;;
33013 *)
33014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33015for as_dir in $PATH
33016do
33017 IFS=$as_save_IFS
33018 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033019 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033021 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033023 break 2
33024 fi
33025done
cristy8b350f62009-11-15 23:12:43 +000033026 done
cristy3ed852e2009-09-05 21:47:34 +000033027IFS=$as_save_IFS
33028
33029 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33030 ;;
33031esac
33032fi
33033BZIPDelegate=$ac_cv_path_BZIPDelegate
33034if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033036$as_echo "$BZIPDelegate" >&6; }
33037else
cristy8b350f62009-11-15 23:12:43 +000033038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033039$as_echo "no" >&6; }
33040fi
33041
33042
cristyc59f0e72012-08-27 12:59:33 +000033043for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33044do
33045 # Extract the first word of "$ac_prog", so it can be a program name with args.
33046set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033048$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033049if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033050 $as_echo_n "(cached) " >&6
33051else
33052 case $BrowseDelegate in
33053 [\\/]* | ?:[\\/]*)
33054 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33055 ;;
33056 *)
33057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33058for as_dir in $PATH
33059do
33060 IFS=$as_save_IFS
33061 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033062 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033064 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033066 break 2
33067 fi
33068done
cristy8b350f62009-11-15 23:12:43 +000033069 done
cristy3ed852e2009-09-05 21:47:34 +000033070IFS=$as_save_IFS
33071
cristy3ed852e2009-09-05 21:47:34 +000033072 ;;
33073esac
33074fi
33075BrowseDelegate=$ac_cv_path_BrowseDelegate
33076if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033078$as_echo "$BrowseDelegate" >&6; }
33079else
cristy8b350f62009-11-15 23:12:43 +000033080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033081$as_echo "no" >&6; }
33082fi
33083
33084
cristyc59f0e72012-08-27 12:59:33 +000033085 test -n "$BrowseDelegate" && break
33086done
33087test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33088
cristy3ed852e2009-09-05 21:47:34 +000033089# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33090set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033092$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033093if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033094 $as_echo_n "(cached) " >&6
33095else
33096 case $CatDelegate in
33097 [\\/]* | ?:[\\/]*)
33098 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33099 ;;
33100 *)
33101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33102for as_dir in $PATH
33103do
33104 IFS=$as_save_IFS
33105 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033106 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033108 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033110 break 2
33111 fi
33112done
cristy8b350f62009-11-15 23:12:43 +000033113 done
cristy3ed852e2009-09-05 21:47:34 +000033114IFS=$as_save_IFS
33115
33116 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33117 ;;
33118esac
33119fi
33120CatDelegate=$ac_cv_path_CatDelegate
33121if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033123$as_echo "$CatDelegate" >&6; }
33124else
cristy8b350f62009-11-15 23:12:43 +000033125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033126$as_echo "no" >&6; }
33127fi
33128
33129
33130# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33131set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033133$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033134if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033135 $as_echo_n "(cached) " >&6
33136else
33137 case $DNGDecodeDelegate in
33138 [\\/]* | ?:[\\/]*)
33139 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33140 ;;
33141 *)
33142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33143for as_dir in $PATH
33144do
33145 IFS=$as_save_IFS
33146 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033147 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033149 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033151 break 2
33152 fi
33153done
cristy8b350f62009-11-15 23:12:43 +000033154 done
cristy3ed852e2009-09-05 21:47:34 +000033155IFS=$as_save_IFS
33156
33157 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33158 ;;
33159esac
33160fi
33161DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33162if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033164$as_echo "$DNGDecodeDelegate" >&6; }
33165else
cristy8b350f62009-11-15 23:12:43 +000033166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033167$as_echo "no" >&6; }
33168fi
33169
33170
33171# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33172set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033174$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033175if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033176 $as_echo_n "(cached) " >&6
33177else
33178 case $GVCDecodeDelegate in
33179 [\\/]* | ?:[\\/]*)
33180 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33181 ;;
33182 *)
33183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33184for as_dir in $PATH
33185do
33186 IFS=$as_save_IFS
33187 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033188 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033190 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033192 break 2
33193 fi
33194done
cristy8b350f62009-11-15 23:12:43 +000033195 done
cristy3ed852e2009-09-05 21:47:34 +000033196IFS=$as_save_IFS
33197
33198 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33199 ;;
33200esac
33201fi
33202GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33203if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033205$as_echo "$GVCDecodeDelegate" >&6; }
33206else
cristy8b350f62009-11-15 23:12:43 +000033207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033208$as_echo "no" >&6; }
33209fi
33210
33211
33212# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33213set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033215$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033216if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033217 $as_echo_n "(cached) " >&6
33218else
33219 case $DVIDecodeDelegate in
33220 [\\/]* | ?:[\\/]*)
33221 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33222 ;;
33223 *)
33224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33225for as_dir in $PATH
33226do
33227 IFS=$as_save_IFS
33228 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033229 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033231 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033233 break 2
33234 fi
33235done
cristy8b350f62009-11-15 23:12:43 +000033236 done
cristy3ed852e2009-09-05 21:47:34 +000033237IFS=$as_save_IFS
33238
33239 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33240 ;;
33241esac
33242fi
33243DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33244if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033246$as_echo "$DVIDecodeDelegate" >&6; }
33247else
cristy8b350f62009-11-15 23:12:43 +000033248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033249$as_echo "no" >&6; }
33250fi
33251
33252
33253# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33254set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033256$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033257if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033258 $as_echo_n "(cached) " >&6
33259else
33260 case $EchoDelegate in
33261 [\\/]* | ?:[\\/]*)
33262 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33263 ;;
33264 *)
33265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33266for as_dir in $PATH
33267do
33268 IFS=$as_save_IFS
33269 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033270 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033272 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033274 break 2
33275 fi
33276done
cristy8b350f62009-11-15 23:12:43 +000033277 done
cristy3ed852e2009-09-05 21:47:34 +000033278IFS=$as_save_IFS
33279
33280 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33281 ;;
33282esac
33283fi
33284EchoDelegate=$ac_cv_path_EchoDelegate
33285if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033287$as_echo "$EchoDelegate" >&6; }
33288else
cristy8b350f62009-11-15 23:12:43 +000033289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033290$as_echo "no" >&6; }
33291fi
33292
33293
33294# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33295set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033297$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033298if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033299 $as_echo_n "(cached) " >&6
33300else
33301 case $EditorDelegate in
33302 [\\/]* | ?:[\\/]*)
33303 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33304 ;;
33305 *)
33306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33307for as_dir in $PATH
33308do
33309 IFS=$as_save_IFS
33310 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033311 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033313 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033315 break 2
33316 fi
33317done
cristy8b350f62009-11-15 23:12:43 +000033318 done
cristy3ed852e2009-09-05 21:47:34 +000033319IFS=$as_save_IFS
33320
33321 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33322 ;;
33323esac
33324fi
33325EditorDelegate=$ac_cv_path_EditorDelegate
33326if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033328$as_echo "$EditorDelegate" >&6; }
33329else
cristy8b350f62009-11-15 23:12:43 +000033330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033331$as_echo "no" >&6; }
33332fi
33333
33334
cristy3ed852e2009-09-05 21:47:34 +000033335# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33336set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033338$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033339if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033340 $as_echo_n "(cached) " >&6
33341else
33342 case $ConvertDelegate in
33343 [\\/]* | ?:[\\/]*)
33344 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33345 ;;
33346 *)
33347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33348for as_dir in $PATH
33349do
33350 IFS=$as_save_IFS
33351 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033352 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033354 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033356 break 2
33357 fi
33358done
cristy8b350f62009-11-15 23:12:43 +000033359 done
cristy3ed852e2009-09-05 21:47:34 +000033360IFS=$as_save_IFS
33361
33362 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33363 ;;
33364esac
33365fi
33366ConvertDelegate=$ac_cv_path_ConvertDelegate
33367if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033369$as_echo "$ConvertDelegate" >&6; }
33370else
cristy8b350f62009-11-15 23:12:43 +000033371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033372$as_echo "no" >&6; }
33373fi
33374
33375
33376# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33377set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033379$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033380if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033381 $as_echo_n "(cached) " >&6
33382else
33383 case $DisplayDelegate in
33384 [\\/]* | ?:[\\/]*)
33385 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33386 ;;
33387 *)
33388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33389for as_dir in $PATH
33390do
33391 IFS=$as_save_IFS
33392 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033393 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033395 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033397 break 2
33398 fi
33399done
cristy8b350f62009-11-15 23:12:43 +000033400 done
cristy3ed852e2009-09-05 21:47:34 +000033401IFS=$as_save_IFS
33402
33403 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33404 ;;
33405esac
33406fi
33407DisplayDelegate=$ac_cv_path_DisplayDelegate
33408if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033410$as_echo "$DisplayDelegate" >&6; }
33411else
cristy8b350f62009-11-15 23:12:43 +000033412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033413$as_echo "no" >&6; }
33414fi
33415
33416
33417# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33418set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033420$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033421if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033422 $as_echo_n "(cached) " >&6
33423else
33424 case $MogrifyDelegate in
33425 [\\/]* | ?:[\\/]*)
33426 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33427 ;;
33428 *)
33429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33430for as_dir in $PATH
33431do
33432 IFS=$as_save_IFS
33433 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033434 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033436 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033438 break 2
33439 fi
33440done
cristy8b350f62009-11-15 23:12:43 +000033441 done
cristy3ed852e2009-09-05 21:47:34 +000033442IFS=$as_save_IFS
33443
33444 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33445 ;;
33446esac
33447fi
33448MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33449if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033451$as_echo "$MogrifyDelegate" >&6; }
33452else
cristy8b350f62009-11-15 23:12:43 +000033453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033454$as_echo "no" >&6; }
33455fi
33456
33457
33458# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33459set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033461$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033462if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033463 $as_echo_n "(cached) " >&6
33464else
33465 case $GnuplotDecodeDelegate in
33466 [\\/]* | ?:[\\/]*)
33467 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33468 ;;
33469 *)
33470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33471for as_dir in $PATH
33472do
33473 IFS=$as_save_IFS
33474 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033477 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033479 break 2
33480 fi
33481done
cristy8b350f62009-11-15 23:12:43 +000033482 done
cristy3ed852e2009-09-05 21:47:34 +000033483IFS=$as_save_IFS
33484
33485 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33486 ;;
33487esac
33488fi
33489GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33490if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033492$as_echo "$GnuplotDecodeDelegate" >&6; }
33493else
cristy8b350f62009-11-15 23:12:43 +000033494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033495$as_echo "no" >&6; }
33496fi
33497
33498
cristy3ed852e2009-09-05 21:47:34 +000033499# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33500set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033502$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033503if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033504 $as_echo_n "(cached) " >&6
33505else
33506 case $HPGLDecodeDelegate in
33507 [\\/]* | ?:[\\/]*)
33508 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33509 ;;
33510 *)
33511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33512for as_dir in $PATH
33513do
33514 IFS=$as_save_IFS
33515 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033516 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033518 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033520 break 2
33521 fi
33522done
cristy8b350f62009-11-15 23:12:43 +000033523 done
cristy3ed852e2009-09-05 21:47:34 +000033524IFS=$as_save_IFS
33525
33526 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33527 ;;
33528esac
33529fi
33530HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33531if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033533$as_echo "$HPGLDecodeDelegate" >&6; }
33534else
cristy8b350f62009-11-15 23:12:43 +000033535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033536$as_echo "no" >&6; }
33537fi
33538
33539
33540# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33541set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033543$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033544if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033545 $as_echo_n "(cached) " >&6
33546else
33547 case $HTMLDecodeDelegate in
33548 [\\/]* | ?:[\\/]*)
33549 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33550 ;;
33551 *)
33552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33553for as_dir in $PATH
33554do
33555 IFS=$as_save_IFS
33556 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033557 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033559 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033561 break 2
33562 fi
33563done
cristy8b350f62009-11-15 23:12:43 +000033564 done
cristy3ed852e2009-09-05 21:47:34 +000033565IFS=$as_save_IFS
33566
33567 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33568 ;;
33569esac
33570fi
33571HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33572if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033574$as_echo "$HTMLDecodeDelegate" >&6; }
33575else
cristy8b350f62009-11-15 23:12:43 +000033576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033577$as_echo "no" >&6; }
33578fi
33579
33580
33581# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33582set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033584$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033585if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033586 $as_echo_n "(cached) " >&6
33587else
33588 case $ILBMDecodeDelegate in
33589 [\\/]* | ?:[\\/]*)
33590 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33591 ;;
33592 *)
33593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33594for as_dir in $PATH
33595do
33596 IFS=$as_save_IFS
33597 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033598 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033600 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033602 break 2
33603 fi
33604done
cristy8b350f62009-11-15 23:12:43 +000033605 done
cristy3ed852e2009-09-05 21:47:34 +000033606IFS=$as_save_IFS
33607
33608 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33609 ;;
33610esac
33611fi
33612ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33613if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033615$as_echo "$ILBMDecodeDelegate" >&6; }
33616else
cristy8b350f62009-11-15 23:12:43 +000033617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033618$as_echo "no" >&6; }
33619fi
33620
33621
33622# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33623set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033625$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033626if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033627 $as_echo_n "(cached) " >&6
33628else
33629 case $ILBMEncodeDelegate in
33630 [\\/]* | ?:[\\/]*)
33631 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33632 ;;
33633 *)
33634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33635for as_dir in $PATH
33636do
33637 IFS=$as_save_IFS
33638 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033641 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033643 break 2
33644 fi
33645done
cristy8b350f62009-11-15 23:12:43 +000033646 done
cristy3ed852e2009-09-05 21:47:34 +000033647IFS=$as_save_IFS
33648
33649 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33650 ;;
33651esac
33652fi
33653ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33654if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033656$as_echo "$ILBMEncodeDelegate" >&6; }
33657else
cristy8b350f62009-11-15 23:12:43 +000033658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033659$as_echo "no" >&6; }
33660fi
33661
33662
cristy71f53d52013-04-27 13:33:59 +000033663# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33664set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33666$as_echo_n "checking for $ac_word... " >&6; }
33667if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33668 $as_echo_n "(cached) " >&6
33669else
33670 case $JXRDecodeDelegate in
33671 [\\/]* | ?:[\\/]*)
33672 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33673 ;;
33674 *)
33675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33676for as_dir in $PATH
33677do
33678 IFS=$as_save_IFS
33679 test -z "$as_dir" && as_dir=.
33680 for ac_exec_ext in '' $ac_executable_extensions; do
33681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33682 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33684 break 2
33685 fi
33686done
33687 done
33688IFS=$as_save_IFS
33689
33690 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33691 ;;
33692esac
33693fi
33694JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33695if test -n "$JXRDecodeDelegate"; then
33696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33697$as_echo "$JXRDecodeDelegate" >&6; }
33698else
33699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33700$as_echo "no" >&6; }
33701fi
33702
33703
33704# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33705set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33707$as_echo_n "checking for $ac_word... " >&6; }
33708if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33709 $as_echo_n "(cached) " >&6
33710else
33711 case $JXREncodeDelegate in
33712 [\\/]* | ?:[\\/]*)
33713 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33714 ;;
33715 *)
33716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33717for as_dir in $PATH
33718do
33719 IFS=$as_save_IFS
33720 test -z "$as_dir" && as_dir=.
33721 for ac_exec_ext in '' $ac_executable_extensions; do
33722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33723 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33725 break 2
33726 fi
33727done
33728 done
33729IFS=$as_save_IFS
33730
33731 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33732 ;;
33733esac
33734fi
33735JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33736if test -n "$JXREncodeDelegate"; then
33737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33738$as_echo "$JXREncodeDelegate" >&6; }
33739else
33740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33741$as_echo "no" >&6; }
33742fi
33743
33744
cristy3ed852e2009-09-05 21:47:34 +000033745# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33746set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033748$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033749if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033750 $as_echo_n "(cached) " >&6
33751else
33752 case $LPDelegate in
33753 [\\/]* | ?:[\\/]*)
33754 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33755 ;;
33756 *)
33757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33758for as_dir in $PATH
33759do
33760 IFS=$as_save_IFS
33761 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033762 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033764 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033766 break 2
33767 fi
33768done
cristy8b350f62009-11-15 23:12:43 +000033769 done
cristy3ed852e2009-09-05 21:47:34 +000033770IFS=$as_save_IFS
33771
33772 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33773 ;;
33774esac
33775fi
33776LPDelegate=$ac_cv_path_LPDelegate
33777if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033779$as_echo "$LPDelegate" >&6; }
33780else
cristy8b350f62009-11-15 23:12:43 +000033781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033782$as_echo "no" >&6; }
33783fi
33784
33785
33786# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33787set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033789$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033790if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033791 $as_echo_n "(cached) " >&6
33792else
33793 case $LPRDelegate in
33794 [\\/]* | ?:[\\/]*)
33795 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33796 ;;
33797 *)
33798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33799for as_dir in $PATH
33800do
33801 IFS=$as_save_IFS
33802 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033803 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033805 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033807 break 2
33808 fi
33809done
cristy8b350f62009-11-15 23:12:43 +000033810 done
cristy3ed852e2009-09-05 21:47:34 +000033811IFS=$as_save_IFS
33812
33813 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33814 ;;
33815esac
33816fi
33817LPRDelegate=$ac_cv_path_LPRDelegate
33818if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033820$as_echo "$LPRDelegate" >&6; }
33821else
cristy8b350f62009-11-15 23:12:43 +000033822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033823$as_echo "no" >&6; }
33824fi
33825
33826
cristy3ed852e2009-09-05 21:47:34 +000033827# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33828set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033830$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033831if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033832 $as_echo_n "(cached) " >&6
33833else
33834 case $LaunchDelegate in
33835 [\\/]* | ?:[\\/]*)
33836 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33837 ;;
33838 *)
33839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33840for as_dir in $PATH
33841do
33842 IFS=$as_save_IFS
33843 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033844 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033846 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033848 break 2
33849 fi
33850done
cristy8b350f62009-11-15 23:12:43 +000033851 done
cristy3ed852e2009-09-05 21:47:34 +000033852IFS=$as_save_IFS
33853
33854 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33855 ;;
33856esac
33857fi
33858LaunchDelegate=$ac_cv_path_LaunchDelegate
33859if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033861$as_echo "$LaunchDelegate" >&6; }
33862else
cristy8b350f62009-11-15 23:12:43 +000033863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033864$as_echo "no" >&6; }
33865fi
33866
33867
33868# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33869set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033871$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033872if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033873 $as_echo_n "(cached) " >&6
33874else
33875 case $MANDelegate in
33876 [\\/]* | ?:[\\/]*)
33877 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33878 ;;
33879 *)
33880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33881for as_dir in $PATH
33882do
33883 IFS=$as_save_IFS
33884 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033885 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033887 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033889 break 2
33890 fi
33891done
cristy8b350f62009-11-15 23:12:43 +000033892 done
cristy3ed852e2009-09-05 21:47:34 +000033893IFS=$as_save_IFS
33894
33895 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33896 ;;
33897esac
33898fi
33899MANDelegate=$ac_cv_path_MANDelegate
33900if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033902$as_echo "$MANDelegate" >&6; }
33903else
cristy8b350f62009-11-15 23:12:43 +000033904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033905$as_echo "no" >&6; }
33906fi
33907
33908
33909# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33910set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033912$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033913if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033914 $as_echo_n "(cached) " >&6
33915else
33916 case $MPEGDecodeDelegate in
33917 [\\/]* | ?:[\\/]*)
33918 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33919 ;;
33920 *)
33921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33922for as_dir in $PATH
33923do
33924 IFS=$as_save_IFS
33925 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033926 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033928 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033930 break 2
33931 fi
33932done
cristy8b350f62009-11-15 23:12:43 +000033933 done
cristy3ed852e2009-09-05 21:47:34 +000033934IFS=$as_save_IFS
33935
33936 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33937 ;;
33938esac
33939fi
33940MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33941if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033943$as_echo "$MPEGDecodeDelegate" >&6; }
33944else
cristy8b350f62009-11-15 23:12:43 +000033945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033946$as_echo "no" >&6; }
33947fi
33948
33949
cristy81ab5af2013-10-06 18:28:39 +000033950if test "$MPEGDecodeDelegate" == "$MPEGDecodeDelegateDefault" ; then
33951 MPEGDecodeDelegateDefault='ffmpeg'
33952 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33953set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33955$as_echo_n "checking for $ac_word... " >&6; }
33956if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33957 $as_echo_n "(cached) " >&6
33958else
33959 case $MPEGDecodeDelegate in
33960 [\\/]* | ?:[\\/]*)
33961 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33962 ;;
33963 *)
33964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33965for as_dir in $PATH
33966do
33967 IFS=$as_save_IFS
33968 test -z "$as_dir" && as_dir=.
33969 for ac_exec_ext in '' $ac_executable_extensions; do
33970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33971 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33973 break 2
33974 fi
33975done
33976 done
33977IFS=$as_save_IFS
33978
33979 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33980 ;;
33981esac
33982fi
33983MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33984if test -n "$MPEGDecodeDelegate"; then
33985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33986$as_echo "$MPEGDecodeDelegate" >&6; }
33987else
33988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33989$as_echo "no" >&6; }
33990fi
33991
33992
33993fi;
cristy3ed852e2009-09-05 21:47:34 +000033994# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33995set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033997$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033998if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033999 $as_echo_n "(cached) " >&6
34000else
34001 case $MPEGEncodeDelegate in
34002 [\\/]* | ?:[\\/]*)
34003 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34004 ;;
34005 *)
34006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34007for as_dir in $PATH
34008do
34009 IFS=$as_save_IFS
34010 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034011 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034013 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034015 break 2
34016 fi
34017done
cristy8b350f62009-11-15 23:12:43 +000034018 done
cristy3ed852e2009-09-05 21:47:34 +000034019IFS=$as_save_IFS
34020
34021 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34022 ;;
34023esac
34024fi
34025MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34026if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034028$as_echo "$MPEGEncodeDelegate" >&6; }
34029else
cristy8b350f62009-11-15 23:12:43 +000034030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034031$as_echo "no" >&6; }
34032fi
34033
34034
cristy81ab5af2013-10-06 18:28:39 +000034035if test "$MPEGEncodeDelegate" == "$MPEGEncodeDelegateDefault" ; then
34036 MPEGEncodeDelegateDefault='ffmpeg'
34037 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34038set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
34039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34040$as_echo_n "checking for $ac_word... " >&6; }
34041if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
34042 $as_echo_n "(cached) " >&6
34043else
34044 case $MPEGEncodeDelegate in
34045 [\\/]* | ?:[\\/]*)
34046 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34047 ;;
34048 *)
34049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34050for as_dir in $PATH
34051do
34052 IFS=$as_save_IFS
34053 test -z "$as_dir" && as_dir=.
34054 for ac_exec_ext in '' $ac_executable_extensions; do
34055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34056 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34058 break 2
34059 fi
34060done
34061 done
34062IFS=$as_save_IFS
34063
34064 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34065 ;;
34066esac
34067fi
34068MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34069if test -n "$MPEGEncodeDelegate"; then
34070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
34071$as_echo "$MPEGEncodeDelegate" >&6; }
34072else
34073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34074$as_echo "no" >&6; }
34075fi
34076
34077
34078fi;
cristy935c86e2010-06-05 23:50:07 +000034079# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34080set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34082$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034083if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034084 $as_echo_n "(cached) " >&6
34085else
34086 case $MrSIDDecodeDelegate in
34087 [\\/]* | ?:[\\/]*)
34088 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34089 ;;
34090 *)
34091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34092for as_dir in $PATH
34093do
34094 IFS=$as_save_IFS
34095 test -z "$as_dir" && as_dir=.
34096 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034098 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34100 break 2
34101 fi
34102done
34103 done
34104IFS=$as_save_IFS
34105
34106 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34107 ;;
34108esac
34109fi
34110MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34111if test -n "$MrSIDDecodeDelegate"; then
34112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34113$as_echo "$MrSIDDecodeDelegate" >&6; }
34114else
34115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34116$as_echo "no" >&6; }
34117fi
34118
34119
cristy3ed852e2009-09-05 21:47:34 +000034120# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34121set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034123$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034124if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034125 $as_echo_n "(cached) " >&6
34126else
34127 case $MVDelegate in
34128 [\\/]* | ?:[\\/]*)
34129 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34130 ;;
34131 *)
34132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34133for as_dir in $PATH
34134do
34135 IFS=$as_save_IFS
34136 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034137 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034139 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034141 break 2
34142 fi
34143done
cristy8b350f62009-11-15 23:12:43 +000034144 done
cristy3ed852e2009-09-05 21:47:34 +000034145IFS=$as_save_IFS
34146
34147 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34148 ;;
34149esac
34150fi
34151MVDelegate=$ac_cv_path_MVDelegate
34152if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034154$as_echo "$MVDelegate" >&6; }
34155else
cristy8b350f62009-11-15 23:12:43 +000034156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034157$as_echo "no" >&6; }
34158fi
34159
34160
34161# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34162set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034164$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034165if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034166 $as_echo_n "(cached) " >&6
34167else
34168 case $PCLDelegate in
34169 [\\/]* | ?:[\\/]*)
34170 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34171 ;;
34172 *)
34173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34174for as_dir in $PATH
34175do
34176 IFS=$as_save_IFS
34177 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034178 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034180 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034182 break 2
34183 fi
34184done
cristy8b350f62009-11-15 23:12:43 +000034185 done
cristy3ed852e2009-09-05 21:47:34 +000034186IFS=$as_save_IFS
34187
34188 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34189 ;;
34190esac
34191fi
34192PCLDelegate=$ac_cv_path_PCLDelegate
34193if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034195$as_echo "$PCLDelegate" >&6; }
34196else
cristy8b350f62009-11-15 23:12:43 +000034197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034198$as_echo "no" >&6; }
34199fi
34200
34201
34202# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34203set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034205$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034206if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034207 $as_echo_n "(cached) " >&6
34208else
34209 case $PGPDecodeDelegate in
34210 [\\/]* | ?:[\\/]*)
34211 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34212 ;;
34213 *)
34214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34215for as_dir in $PATH
34216do
34217 IFS=$as_save_IFS
34218 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034219 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034221 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034223 break 2
34224 fi
34225done
cristy8b350f62009-11-15 23:12:43 +000034226 done
cristy3ed852e2009-09-05 21:47:34 +000034227IFS=$as_save_IFS
34228
34229 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34230 ;;
34231esac
34232fi
34233PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34234if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034236$as_echo "$PGPDecodeDelegate" >&6; }
34237else
cristy8b350f62009-11-15 23:12:43 +000034238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034239$as_echo "no" >&6; }
34240fi
34241
34242
34243# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34244set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034246$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034247if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034248 $as_echo_n "(cached) " >&6
34249else
34250 case $POVDelegate in
34251 [\\/]* | ?:[\\/]*)
34252 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34253 ;;
34254 *)
34255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34256for as_dir in $PATH
34257do
34258 IFS=$as_save_IFS
34259 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034260 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034262 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034264 break 2
34265 fi
34266done
cristy8b350f62009-11-15 23:12:43 +000034267 done
cristy3ed852e2009-09-05 21:47:34 +000034268IFS=$as_save_IFS
34269
34270 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34271 ;;
34272esac
34273fi
34274POVDelegate=$ac_cv_path_POVDelegate
34275if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034277$as_echo "$POVDelegate" >&6; }
34278else
cristy8b350f62009-11-15 23:12:43 +000034279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034280$as_echo "no" >&6; }
34281fi
34282
34283
34284for ac_prog in gsx gsc "$PSDelegateDefault"
34285do
34286 # Extract the first word of "$ac_prog", so it can be a program name with args.
34287set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034289$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034290if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034291 $as_echo_n "(cached) " >&6
34292else
34293 case $PSDelegate in
34294 [\\/]* | ?:[\\/]*)
34295 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34296 ;;
34297 *)
34298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34299for as_dir in $PATH
34300do
34301 IFS=$as_save_IFS
34302 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034303 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034305 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034307 break 2
34308 fi
34309done
cristy8b350f62009-11-15 23:12:43 +000034310 done
cristy3ed852e2009-09-05 21:47:34 +000034311IFS=$as_save_IFS
34312
34313 ;;
34314esac
34315fi
34316PSDelegate=$ac_cv_path_PSDelegate
34317if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034319$as_echo "$PSDelegate" >&6; }
34320else
cristy8b350f62009-11-15 23:12:43 +000034321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034322$as_echo "no" >&6; }
34323fi
34324
34325
34326 test -n "$PSDelegate" && break
34327done
34328test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34329
34330# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34331set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034333$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034334if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034335 $as_echo_n "(cached) " >&6
34336else
34337 case $RLEEncodeDelegate in
34338 [\\/]* | ?:[\\/]*)
34339 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34340 ;;
34341 *)
34342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34343for as_dir in $PATH
34344do
34345 IFS=$as_save_IFS
34346 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034347 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034349 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034351 break 2
34352 fi
34353done
cristy8b350f62009-11-15 23:12:43 +000034354 done
cristy3ed852e2009-09-05 21:47:34 +000034355IFS=$as_save_IFS
34356
34357 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34358 ;;
34359esac
34360fi
34361RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34362if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034364$as_echo "$RLEEncodeDelegate" >&6; }
34365else
cristy8b350f62009-11-15 23:12:43 +000034366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034367$as_echo "no" >&6; }
34368fi
34369
34370
34371# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34372set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034374$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034375if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034376 $as_echo_n "(cached) " >&6
34377else
34378 case $RMDelegate in
34379 [\\/]* | ?:[\\/]*)
34380 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34381 ;;
34382 *)
34383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34384for as_dir in $PATH
34385do
34386 IFS=$as_save_IFS
34387 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034388 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034390 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034392 break 2
34393 fi
34394done
cristy8b350f62009-11-15 23:12:43 +000034395 done
cristy3ed852e2009-09-05 21:47:34 +000034396IFS=$as_save_IFS
34397
34398 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34399 ;;
34400esac
34401fi
34402RMDelegate=$ac_cv_path_RMDelegate
34403if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034405$as_echo "$RMDelegate" >&6; }
34406else
cristy8b350f62009-11-15 23:12:43 +000034407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034408$as_echo "no" >&6; }
34409fi
34410
34411
cristy4689cf02010-02-17 21:15:45 +000034412# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34413set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34415$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034416if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034417 $as_echo_n "(cached) " >&6
34418else
34419 case $RSVGDecodeDelegate in
34420 [\\/]* | ?:[\\/]*)
34421 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34422 ;;
34423 *)
34424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34425for as_dir in $PATH
34426do
34427 IFS=$as_save_IFS
34428 test -z "$as_dir" && as_dir=.
34429 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034431 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34433 break 2
34434 fi
34435done
34436 done
34437IFS=$as_save_IFS
34438
34439 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34440 ;;
34441esac
34442fi
34443RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34444if test -n "$RSVGDecodeDelegate"; then
34445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34446$as_echo "$RSVGDecodeDelegate" >&6; }
34447else
34448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34449$as_echo "no" >&6; }
34450fi
34451
34452
cristy3ed852e2009-09-05 21:47:34 +000034453# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34454set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034456$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034457if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034458 $as_echo_n "(cached) " >&6
34459else
34460 case $SCANDecodeDelegate in
34461 [\\/]* | ?:[\\/]*)
34462 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34463 ;;
34464 *)
34465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34466for as_dir in $PATH
34467do
34468 IFS=$as_save_IFS
34469 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034470 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034472 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034474 break 2
34475 fi
34476done
cristy8b350f62009-11-15 23:12:43 +000034477 done
cristy3ed852e2009-09-05 21:47:34 +000034478IFS=$as_save_IFS
34479
34480 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34481 ;;
34482esac
34483fi
34484SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34485if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034487$as_echo "$SCANDecodeDelegate" >&6; }
34488else
cristy8b350f62009-11-15 23:12:43 +000034489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034490$as_echo "no" >&6; }
34491fi
34492
34493
cristyec6934f2012-08-14 18:38:40 +000034494# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34495set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34497$as_echo_n "checking for $ac_word... " >&6; }
34498if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34499 $as_echo_n "(cached) " >&6
34500else
34501 case $SVGDecodeDelegate in
34502 [\\/]* | ?:[\\/]*)
34503 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34504 ;;
34505 *)
34506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34507for as_dir in $PATH
34508do
34509 IFS=$as_save_IFS
34510 test -z "$as_dir" && as_dir=.
34511 for ac_exec_ext in '' $ac_executable_extensions; do
34512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34513 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34515 break 2
34516 fi
34517done
34518 done
34519IFS=$as_save_IFS
34520
34521 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34522 ;;
34523esac
34524fi
34525SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34526if test -n "$SVGDecodeDelegate"; then
34527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34528$as_echo "$SVGDecodeDelegate" >&6; }
34529else
34530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34531$as_echo "no" >&6; }
34532fi
34533
34534
cristy3ed852e2009-09-05 21:47:34 +000034535# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34536set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034538$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034539if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034540 $as_echo_n "(cached) " >&6
34541else
34542 case $TXTDelegate in
34543 [\\/]* | ?:[\\/]*)
34544 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34545 ;;
34546 *)
34547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34548for as_dir in $PATH
34549do
34550 IFS=$as_save_IFS
34551 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034552 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034554 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034556 break 2
34557 fi
34558done
cristy8b350f62009-11-15 23:12:43 +000034559 done
cristy3ed852e2009-09-05 21:47:34 +000034560IFS=$as_save_IFS
34561
34562 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34563 ;;
34564esac
34565fi
34566TXTDelegate=$ac_cv_path_TXTDelegate
34567if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034569$as_echo "$TXTDelegate" >&6; }
34570else
cristy8b350f62009-11-15 23:12:43 +000034571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034572$as_echo "no" >&6; }
34573fi
34574
34575
cristy5ac9ac82010-07-29 13:24:24 +000034576# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34577set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34579$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034580if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034581 $as_echo_n "(cached) " >&6
34582else
34583 case $UniconvertorDelegate in
34584 [\\/]* | ?:[\\/]*)
34585 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34586 ;;
34587 *)
34588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34589for as_dir in $PATH
34590do
34591 IFS=$as_save_IFS
34592 test -z "$as_dir" && as_dir=.
34593 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034595 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34597 break 2
34598 fi
34599done
34600 done
34601IFS=$as_save_IFS
34602
34603 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34604 ;;
34605esac
34606fi
34607UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34608if test -n "$UniconvertorDelegate"; then
34609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34610$as_echo "$UniconvertorDelegate" >&6; }
34611else
34612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34613$as_echo "no" >&6; }
34614fi
34615
34616
cristy86e86092013-08-04 17:43:57 +000034617# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34618set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34620$as_echo_n "checking for $ac_word... " >&6; }
34621if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34622 $as_echo_n "(cached) " >&6
34623else
34624 case $WebPDecodeDelegate in
34625 [\\/]* | ?:[\\/]*)
34626 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34627 ;;
34628 *)
34629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34630for as_dir in $PATH
34631do
34632 IFS=$as_save_IFS
34633 test -z "$as_dir" && as_dir=.
34634 for ac_exec_ext in '' $ac_executable_extensions; do
34635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34636 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34638 break 2
34639 fi
34640done
34641 done
34642IFS=$as_save_IFS
34643
34644 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34645 ;;
34646esac
34647fi
34648WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34649if test -n "$WebPDecodeDelegate"; then
34650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34651$as_echo "$WebPDecodeDelegate" >&6; }
34652else
34653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34654$as_echo "no" >&6; }
34655fi
34656
34657
34658# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34659set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34661$as_echo_n "checking for $ac_word... " >&6; }
34662if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34663 $as_echo_n "(cached) " >&6
34664else
34665 case $WebPEncodeDelegate in
34666 [\\/]* | ?:[\\/]*)
34667 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34668 ;;
34669 *)
34670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34671for as_dir in $PATH
34672do
34673 IFS=$as_save_IFS
34674 test -z "$as_dir" && as_dir=.
34675 for ac_exec_ext in '' $ac_executable_extensions; do
34676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34677 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34679 break 2
34680 fi
34681done
34682 done
34683IFS=$as_save_IFS
34684
34685 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34686 ;;
34687esac
34688fi
34689WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34690if test -n "$WebPEncodeDelegate"; then
34691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34692$as_echo "$WebPEncodeDelegate" >&6; }
34693else
34694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34695$as_echo "no" >&6; }
34696fi
34697
34698
cristy3ed852e2009-09-05 21:47:34 +000034699# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34700set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034702$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034703if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034704 $as_echo_n "(cached) " >&6
34705else
34706 case $WMFDecodeDelegate in
34707 [\\/]* | ?:[\\/]*)
34708 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34709 ;;
34710 *)
34711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34712for as_dir in $PATH
34713do
34714 IFS=$as_save_IFS
34715 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034716 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034718 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034720 break 2
34721 fi
34722done
cristy8b350f62009-11-15 23:12:43 +000034723 done
cristy3ed852e2009-09-05 21:47:34 +000034724IFS=$as_save_IFS
34725
34726 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34727 ;;
34728esac
34729fi
34730WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34731if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034733$as_echo "$WMFDecodeDelegate" >&6; }
34734else
cristy8b350f62009-11-15 23:12:43 +000034735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034736$as_echo "no" >&6; }
34737fi
34738
34739
34740# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34741set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034743$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034744if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034745 $as_echo_n "(cached) " >&6
34746else
34747 case $WWWDecodeDelegate in
34748 [\\/]* | ?:[\\/]*)
34749 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34750 ;;
34751 *)
34752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34753for as_dir in $PATH
34754do
34755 IFS=$as_save_IFS
34756 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034757 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034759 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034761 break 2
34762 fi
34763done
cristy8b350f62009-11-15 23:12:43 +000034764 done
cristy3ed852e2009-09-05 21:47:34 +000034765IFS=$as_save_IFS
34766
34767 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34768 ;;
34769esac
34770fi
34771WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34772if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034774$as_echo "$WWWDecodeDelegate" >&6; }
34775else
cristy8b350f62009-11-15 23:12:43 +000034776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034777$as_echo "no" >&6; }
34778fi
34779
34780
34781# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34782set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034784$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034785if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034786 $as_echo_n "(cached) " >&6
34787else
34788 case $XPSDelegate in
34789 [\\/]* | ?:[\\/]*)
34790 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34791 ;;
34792 *)
34793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34794for as_dir in $PATH
34795do
34796 IFS=$as_save_IFS
34797 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034800 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034802 break 2
34803 fi
34804done
cristy8b350f62009-11-15 23:12:43 +000034805 done
cristy3ed852e2009-09-05 21:47:34 +000034806IFS=$as_save_IFS
34807
34808 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34809 ;;
34810esac
34811fi
34812XPSDelegate=$ac_cv_path_XPSDelegate
34813if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034815$as_echo "$XPSDelegate" >&6; }
34816else
cristy8b350f62009-11-15 23:12:43 +000034817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034818$as_echo "no" >&6; }
34819fi
34820
34821
34822# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34823set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034825$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034826if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034827 $as_echo_n "(cached) " >&6
34828else
34829 case $ZipDelegate in
34830 [\\/]* | ?:[\\/]*)
34831 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34832 ;;
34833 *)
34834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34835for as_dir in $PATH
34836do
34837 IFS=$as_save_IFS
34838 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034839 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034841 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034843 break 2
34844 fi
34845done
cristy8b350f62009-11-15 23:12:43 +000034846 done
cristy3ed852e2009-09-05 21:47:34 +000034847IFS=$as_save_IFS
34848
34849 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34850 ;;
34851esac
34852fi
34853ZipDelegate=$ac_cv_path_ZipDelegate
34854if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034856$as_echo "$ZipDelegate" >&6; }
34857else
cristy8b350f62009-11-15 23:12:43 +000034858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034859$as_echo "no" >&6; }
34860fi
34861
34862
34863
34864# Prefer lpr to lp; lp needs options tacked on.
34865if test "$LPRDelegate" != no; then
34866 PrintDelegate="$LPRDelegate"
34867else
34868 PrintDelegate="$LPDelegate -c -s"
34869fi
34870
34871
34872# Installed ImageMagick utiltity paths
34873ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34874DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34875MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34876
34877# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000034878have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034879have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34880have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34881have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034882have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034883have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34884have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034885have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34886
34887#
34888# Test for font directories
34889#
34890type_include_files=''
34891
cristy430a7312010-01-21 20:44:04 +000034892# Dejavu fonts.
34893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34894$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34895dejavu_font_dir=''
34896if test "${with_dejavu_font_dir}" != 'default'; then
34897 dejavu_font_dir="${with_dejavu_font_dir}/"
34898else
34899 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34900 if test -f "${font_dir}DejaVuSerif.ttf"; then
34901 dejavu_font_dir="${font_dir}"
34902 break 1
34903 fi
34904 done
34905fi
34906if test "${dejavu_font_dir}x" != 'x'; then
34907 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34909$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000034910else
cristyad38abe2012-12-23 23:03:21 +000034911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34912$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000034913fi
34914
34915
cristy3ed852e2009-09-05 21:47:34 +000034916# Windows
34917windows_font_dir=''
34918if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34919 windows_font_dir="${with_windows_font_dir}/"
34920fi
cristy430a7312010-01-21 20:44:04 +000034921if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034922 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34923 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34924 fi
34925 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34926 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34927 fi
34928 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34929 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34930 fi
34931fi
cristy430a7312010-01-21 20:44:04 +000034932if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034933 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34934fi
34935
34936
34937# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034939$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34940ghostscript_font_dir=''
34941if test "${with_gs_font_dir}" != 'default'; then
34942 ghostscript_font_dir="${with_gs_font_dir}/"
34943else
34944 if test "${native_win32_build}" = 'yes'; then
34945 # Native Windows Build
34946 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34947 if test -f "${font_dir}a010013l.pfb"; then
34948 ghostscript_font_dir="$font_dir"
34949 break 1
34950 fi
34951 done
34952 if test "${PSDelegate}" != 'gswin32c'; then
34953 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34954 fi
34955 else
34956 # Linux / Mac OS X / Unix Build
34957 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
34958 if test -f "${font_dir}a010013l.pfb"; then
34959 ghostscript_font_dir="${font_dir}"
34960 break 1
34961 fi
34962 done
34963 if test "${ghostscript_font_dir}x" = 'x'; then
34964 if test "$PSDelegate" != 'gs'; then
34965 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34966 fi
34967 fi
34968 fi
34969fi
34970if test "${ghostscript_font_dir}x" != 'x'; then
34971 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000034972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
34973$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034974else
cristyad38abe2012-12-23 23:03:21 +000034975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34976$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000034977fi
34978
34979case "${build_os}" in
34980 mingw* )
34981 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34982 ;;
34983esac
34984
34985
34986
34987#
34988# Handle case where user doesn't want frozen paths
34989#
34990if test "$with_frozenpaths" != 'yes'; then
34991 # Re-set delegate definitions to default (no paths)
34992 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034993 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34994 BZIPDelegate="$BZIPDelegateDefault"
34995 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034996 CatDelegate="$CatDelegateDefault"
34997 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000034998 DisplayDelegate="$DisplayDelegateDefault"
34999 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035000 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
35001 EchoDelegate="$EchoDelegateDefault"
35002 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035003 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035004 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035005 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
35006 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
35007 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
35008 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035009 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
35010 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035011 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035012 LaunchDelegate="$LaunchDelegateDefault"
35013 MANDelegate="$MANDelegateDefault"
35014 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
35015 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035016 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000035017 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
35018 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035019 PCLDelegate="$PCLDelegateDefault"
35020 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
35021 POVDelegate="$POVDelegateDefault"
35022 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035023 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
35024 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000035025 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035026 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000035027 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035028 ShowImageDelegate="$ShowImageDelegateDefault"
35029 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000035030 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000035031 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
35032 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035033 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
35034 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
35035 XPSDelegate="$XPSDelegateDefault"
35036 ZipDelegate="$ZipDelegateDefault"
35037fi
35038
35039# Delegate substitutions
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
35068
35069
35070
35071
35072
35073
35074
35075
35076
35077
35078
35079
cristy71f53d52013-04-27 13:33:59 +000035080
35081
cristy3ed852e2009-09-05 21:47:34 +000035082#
35083# RPM support.
35084#
35085RPM=''
35086for ac_prog in gnutar gtar tar
35087do
35088 # Extract the first word of "$ac_prog", so it can be a program name with args.
35089set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035091$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035092if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035093 $as_echo_n "(cached) " >&6
35094else
35095 if test -n "$TAR"; then
35096 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35097else
35098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35099for as_dir in $PATH
35100do
35101 IFS=$as_save_IFS
35102 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035103 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035105 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035107 break 2
35108 fi
35109done
cristy8b350f62009-11-15 23:12:43 +000035110 done
cristy3ed852e2009-09-05 21:47:34 +000035111IFS=$as_save_IFS
35112
35113fi
35114fi
35115TAR=$ac_cv_prog_TAR
35116if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035118$as_echo "$TAR" >&6; }
35119else
cristy8b350f62009-11-15 23:12:43 +000035120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035121$as_echo "no" >&6; }
35122fi
35123
35124
35125 test -n "$TAR" && break
35126done
35127
35128for ac_prog in perl
35129do
35130 # Extract the first word of "$ac_prog", so it can be a program name with args.
35131set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035133$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035134if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035135 $as_echo_n "(cached) " >&6
35136else
35137 if test -n "$PERL"; then
35138 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35139else
35140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35141for as_dir in $PATH
35142do
35143 IFS=$as_save_IFS
35144 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035145 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035147 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035149 break 2
35150 fi
35151done
cristy8b350f62009-11-15 23:12:43 +000035152 done
cristy3ed852e2009-09-05 21:47:34 +000035153IFS=$as_save_IFS
35154
35155fi
35156fi
35157PERL=$ac_cv_prog_PERL
35158if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035160$as_echo "$PERL" >&6; }
35161else
cristy8b350f62009-11-15 23:12:43 +000035162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035163$as_echo "no" >&6; }
35164fi
35165
35166
35167 test -n "$PERL" && break
35168done
35169
35170for ac_prog in rpmbuild rpm
35171do
35172 # Extract the first word of "$ac_prog", so it can be a program name with args.
35173set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035175$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035176if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035177 $as_echo_n "(cached) " >&6
35178else
35179 if test -n "$RPM"; then
35180 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35181else
35182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35183for as_dir in $PATH
35184do
35185 IFS=$as_save_IFS
35186 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035187 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035189 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035191 break 2
35192 fi
35193done
cristy8b350f62009-11-15 23:12:43 +000035194 done
cristy3ed852e2009-09-05 21:47:34 +000035195IFS=$as_save_IFS
35196
35197fi
35198fi
35199RPM=$ac_cv_prog_RPM
35200if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035202$as_echo "$RPM" >&6; }
35203else
cristy8b350f62009-11-15 23:12:43 +000035204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035205$as_echo "no" >&6; }
35206fi
35207
35208
35209 test -n "$RPM" && break
35210done
35211
35212
cristy73bd4a52010-10-05 11:24:23 +000035213ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35214
35215
35216AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35217
35218
35219AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35220
35221
35222AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35223
35224
35225 if test "x$RPM" != "x" ; then
35226 RPM_DELEGATE_TRUE=
35227 RPM_DELEGATE_FALSE='#'
35228else
35229 RPM_DELEGATE_TRUE='#'
35230 RPM_DELEGATE_FALSE=
35231fi
35232
cristy3ed852e2009-09-05 21:47:34 +000035233
35234#
35235# 7ZIP support (http://p7zip.sourceforge.net/)
35236#
35237P7ZIP=''
35238for ac_prog in 7za
35239do
35240 # Extract the first word of "$ac_prog", so it can be a program name with args.
35241set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035243$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035244if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035245 $as_echo_n "(cached) " >&6
35246else
35247 if test -n "$P7ZIP"; then
35248 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35249else
35250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35251for as_dir in $PATH
35252do
35253 IFS=$as_save_IFS
35254 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035255 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035257 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035259 break 2
35260 fi
35261done
cristy8b350f62009-11-15 23:12:43 +000035262 done
cristy3ed852e2009-09-05 21:47:34 +000035263IFS=$as_save_IFS
35264
35265fi
35266fi
35267P7ZIP=$ac_cv_prog_P7ZIP
35268if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035270$as_echo "$P7ZIP" >&6; }
35271else
cristy8b350f62009-11-15 23:12:43 +000035272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035273$as_echo "no" >&6; }
35274fi
35275
35276
35277 test -n "$P7ZIP" && break
35278done
35279
35280
cristy73bd4a52010-10-05 11:24:23 +000035281 if test "x$P7ZIP" != "x" ; then
35282 P7ZIP_DELEGATE_TRUE=
35283 P7ZIP_DELEGATE_FALSE='#'
35284else
35285 P7ZIP_DELEGATE_TRUE='#'
35286 P7ZIP_DELEGATE_FALSE=
35287fi
35288
cristy3ed852e2009-09-05 21:47:34 +000035289
35290#
35291# ZIP support (http://www.info-zip.org/Zip.html)
35292#
35293ZIP=''
35294for ac_prog in zip
35295do
35296 # Extract the first word of "$ac_prog", so it can be a program name with args.
35297set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035299$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035300if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035301 $as_echo_n "(cached) " >&6
35302else
35303 if test -n "$ZIP"; then
35304 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35305else
35306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35307for as_dir in $PATH
35308do
35309 IFS=$as_save_IFS
35310 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035311 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035313 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035315 break 2
35316 fi
35317done
cristy8b350f62009-11-15 23:12:43 +000035318 done
cristy3ed852e2009-09-05 21:47:34 +000035319IFS=$as_save_IFS
35320
35321fi
35322fi
35323ZIP=$ac_cv_prog_ZIP
35324if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035326$as_echo "$ZIP" >&6; }
35327else
cristy8b350f62009-11-15 23:12:43 +000035328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035329$as_echo "no" >&6; }
35330fi
35331
35332
35333 test -n "$ZIP" && break
35334done
35335
35336
cristy73bd4a52010-10-05 11:24:23 +000035337 if test "x$ZIP" != "x" ; then
35338 ZIP_DELEGATE_TRUE=
35339 ZIP_DELEGATE_FALSE='#'
35340else
35341 ZIP_DELEGATE_TRUE='#'
35342 ZIP_DELEGATE_FALSE=
35343fi
35344
cristy3ed852e2009-09-05 21:47:34 +000035345
35346#
35347# GhostPCL related configuration.
35348#
35349PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035350PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035351PCLMonoDevice=pbmraw
35352if test -z "$PCLVersion"; then
35353 PCLVersion='unknown'
35354fi
35355if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35357$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035359$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35361$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035362 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035364$as_echo_n "checking for pcl color device... " >&6; }
35365 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35366 :
35367 else
35368 PCLColorDevice=ppmraw
35369 fi
cristyad38abe2012-12-23 23:03:21 +000035370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35371$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035372
35373 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035375$as_echo_n "checking for pcl CMYK device... " >&6; }
35376 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35377 :
35378 else
35379 PCLCMYKDevice=$PCLColorDevice
35380 fi
cristyad38abe2012-12-23 23:03:21 +000035381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35382$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035383
35384 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035386$as_echo_n "checking for pcl mono device... " >&6; }
35387 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35388 :
35389 else
35390 PCLMonoDevice=$PCLColorDevice
35391 fi
cristyad38abe2012-12-23 23:03:21 +000035392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35393$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035394fi
35395
35396
35397
35398
35399
35400
35401#
35402# GhostXPS related configuration.
35403#
35404XPSColorDevice=ppmraw
35405XPSCMYKDevice=bmpsep8
35406XPSMonoDevice=pbmraw
35407if test -z "$XPSVersion"; then
35408 XPSVersion='unknown'
35409fi
35410if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35412$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035414$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35416$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035417 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035419$as_echo_n "checking for xps color device... " >&6; }
35420 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35421 :
35422 else
35423 XPSColorDevice=ppmraw
35424 fi
cristyad38abe2012-12-23 23:03:21 +000035425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35426$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035427
35428 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035430$as_echo_n "checking for xps CMYK device... " >&6; }
35431 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35432 :
35433 else
35434 XPSCMYKDevice=$XPSColorDevice
35435 fi
cristyad38abe2012-12-23 23:03:21 +000035436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35437$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035438
35439 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035441$as_echo_n "checking for xps mono device... " >&6; }
35442 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35443 :
35444 else
35445 XPSMonoDevice=$XPSColorDevice
35446 fi
cristyad38abe2012-12-23 23:03:21 +000035447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35448$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035449fi
35450
35451
35452
35453
35454
35455
35456#
35457# Ghostscript related configuration.
35458#
cristya97426c2011-02-04 01:41:27 +000035459GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035460GSColorDevice=pnmraw
35461GSCMYKDevice=pam
35462GSMonoDevice=pbmraw
35463GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035464GSPSDevice=ps2write
cristy3ed852e2009-09-05 21:47:34 +000035465GSEPSDevice=epswrite
35466GSVersion='unknown'
35467if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35469$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035471$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35473$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035475$as_echo_n "checking for Ghostscript version... " >&6; }
35476 if GSVersion=`$PSDelegate --version`; then
35477 :
35478 else
35479 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35480 fi
cristyad38abe2012-12-23 23:03:21 +000035481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35482$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035483
35484 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035486$as_echo_n "checking for gs alpha device... " >&6; }
35487 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35488 :
35489 else
35490 GSAlphaDevice=pnmraw
35491 fi
cristyad38abe2012-12-23 23:03:21 +000035492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35493$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035494
35495 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035497$as_echo_n "checking for gs color device... " >&6; }
35498 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35499 :
35500 else
35501 GSColorDevice=pnmraw
35502 fi
cristyad38abe2012-12-23 23:03:21 +000035503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35504$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035505
35506 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035508$as_echo_n "checking for gs CMYK device... " >&6; }
35509 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35510 :
35511 else
35512 GSCMYKDevice=bmpsep8
35513 fi
cristyad38abe2012-12-23 23:03:21 +000035514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35515$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035516
35517 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035519$as_echo_n "checking for gs mono device... " >&6; }
35520 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35521 :
35522 else
35523 GSMonoDevice=$GSColorDevice
35524 fi
cristyad38abe2012-12-23 23:03:21 +000035525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35526$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035527
35528 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035530$as_echo_n "checking for gs PDF writing device... " >&6; }
35531 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35532 :
35533 else
35534 GSPDFDevice=nodevice
35535 fi
cristyad38abe2012-12-23 23:03:21 +000035536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35537$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035538
35539 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035541$as_echo_n "checking for gs PS writing device... " >&6; }
35542 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35543 :
35544 else
35545 GSPSDevice=nodevice
35546 fi
cristyad38abe2012-12-23 23:03:21 +000035547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35548$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035549
35550 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035552$as_echo_n "checking for gs EPS writing device... " >&6; }
35553 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35554 :
35555 else
35556 GSEPSDevice=nodevice
35557 fi
cristyad38abe2012-12-23 23:03:21 +000035558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35559$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035560fi
35561
35562
35563
35564
35565
35566
35567
35568
35569
35570
35571#
35572# PerlMagick-related configuration
35573#
35574
35575# Look for PERL if PerlMagick requested
35576# If name/path of desired PERL interpreter is specified, look for that one first
35577have_perl='no'
35578if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35580$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035582$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35584$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035585 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035587$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035588if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035589 $as_echo_n "(cached) " >&6
35590else
35591 ac_cv_path_PERL="$with_perl"
35592fi
cristy8b350f62009-11-15 23:12:43 +000035593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035594$as_echo "$ac_cv_path_PERL" >&6; };
35595 PERL=$ac_cv_path_PERL
35596 have_perl="$ac_cv_path_PERL"
35597 else
35598 for ac_prog in perl perl5
35599do
35600 # Extract the first word of "$ac_prog", so it can be a program name with args.
35601set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035603$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035604if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035605 $as_echo_n "(cached) " >&6
35606else
35607 case $PERL in
35608 [\\/]* | ?:[\\/]*)
35609 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35610 ;;
35611 *)
35612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35613for as_dir in $PATH
35614do
35615 IFS=$as_save_IFS
35616 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035617 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035619 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035621 break 2
35622 fi
35623done
cristy8b350f62009-11-15 23:12:43 +000035624 done
cristy3ed852e2009-09-05 21:47:34 +000035625IFS=$as_save_IFS
35626
35627 ;;
35628esac
35629fi
35630PERL=$ac_cv_path_PERL
35631if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035633$as_echo "$PERL" >&6; }
35634else
cristy8b350f62009-11-15 23:12:43 +000035635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035636$as_echo "no" >&6; }
35637fi
35638
35639
35640 test -n "$PERL" && break
35641done
35642 if test "$ac_cv_path_PERL"; then
35643 have_perl="$ac_cv_path_PERL"
35644 fi
35645 fi
35646fi
35647
cristy949301e2010-01-06 01:38:40 +000035648if test "$with_perl" != 'yes' ; then
35649 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35650fi
35651
35652PERL_SUPPORTS_DESTDIR='no'
35653
cristy3ed852e2009-09-05 21:47:34 +000035654with_perl_static='no'
35655with_perl_dynamic='no'
35656if test "$have_perl" != 'no'; then
35657 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35658 with_perl_static='yes'
35659 fi
35660 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35661 with_perl_dynamic='yes'
35662 fi
35663 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035664
35665
35666
35667
35668 if test -n "$PERL"; then :
35669
35670 ax_perl_version="5.8.1"
35671
35672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35673$as_echo_n "checking for perl version... " >&6; }
35674
35675 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35676
35677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35678$as_echo "$perl_version" >&6; }
35679
35680 PERL_VERSION=$perl_version
35681
35682
35683
35684
35685
35686 # Used to indicate true or false condition
35687 ax_compare_version=false
35688
35689 # Convert the two version strings to be compared into a format that
35690 # allows a simple string comparison. The end result is that a version
35691 # string of the form 1.12.5-r617 will be converted to the form
35692 # 0001001200050617. In other words, each number is zero padded to four
35693 # digits, and non digits are removed.
35694
35695 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35696 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35697 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35698 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35699 -e 's/[^0-9]//g'`
35700
35701
35702 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35703 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35704 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35705 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35706 -e 's/[^0-9]//g'`
35707
35708
35709 ax_compare_version=`echo "x$ax_compare_version_A
35710x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35711
35712
35713
35714 if test "$ax_compare_version" = "true" ; then
35715
35716 :
35717 PERL_SUPPORTS_DESTDIR='yes'
35718
35719 else
35720 :
35721 PERL_SUPPORTS_DESTDIR='no'
35722
35723 fi
35724
35725
35726else
35727
35728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35729$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35730 PERL_SUPPORTS_DESTDIR='no'
35731
cristy3ed852e2009-09-05 21:47:34 +000035732fi
cristy73bd4a52010-10-05 11:24:23 +000035733
35734fi
35735 if test "$have_perl" != 'no'; then
35736 WITH_PERL_TRUE=
35737 WITH_PERL_FALSE='#'
35738else
35739 WITH_PERL_TRUE='#'
35740 WITH_PERL_FALSE=
35741fi
35742
35743 if test $with_perl_static = 'yes'; then
35744 WITH_PERL_STATIC_TRUE=
35745 WITH_PERL_STATIC_FALSE='#'
35746else
35747 WITH_PERL_STATIC_TRUE='#'
35748 WITH_PERL_STATIC_FALSE=
35749fi
35750
35751 if test $with_perl_dynamic = 'yes'; then
35752 WITH_PERL_DYNAMIC_TRUE=
35753 WITH_PERL_DYNAMIC_FALSE='#'
35754else
35755 WITH_PERL_DYNAMIC_TRUE='#'
35756 WITH_PERL_DYNAMIC_FALSE=
35757fi
35758
cristy3ed852e2009-09-05 21:47:34 +000035759
35760
35761# Determine path to pick up MagickCore library from for use with building PerlMagick
35762MAGICKCORE_PATH="${LIB_DIR}"
35763if test $with_perl_static = 'yes'; then
35764 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35765 libtool_objdir=$objdir
35766
35767 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035768 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035769fi
35770
35771
cristy2a3eb392012-12-17 13:39:20 +000035772# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035773MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035774if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035775 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035776fi
cristy2a3eb392012-12-17 13:39:20 +000035777if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035778 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035779fi
35780if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035781 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035782fi
35783if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035784 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035785fi
cristy81ab5af2013-10-06 18:28:39 +000035786if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035787 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035788fi
cristy854c9cf2013-08-10 21:03:06 +000035789if test "$have_mupdf" = 'yes' ; then
35790 MAGICK_DELEGATES="$MAGICK_DELEGATES mupdf"
cristyc0884e92013-08-10 17:14:59 +000035791fi
cristy2a3eb392012-12-17 13:39:20 +000035792if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035793 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035794fi
cristy2a3eb392012-12-17 13:39:20 +000035795if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035796 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035797fi
35798if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035799 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035800fi
35801if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035802 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035803fi
35804if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035805 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035806fi
35807if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035808 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035809fi
35810if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035811 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035812fi
35813if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035814 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000035815fi
35816if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035817 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035818fi
35819if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035820 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035821fi
35822if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035823 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035824fi
35825if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035826 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035827fi
35828if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035829 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000035830fi
cristy99db3872014-01-01 15:11:34 +000035831if test "$have_openjp2" = 'yes' ; then
35832 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000035833fi
cristy2a3eb392012-12-17 13:39:20 +000035834if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035835 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000035836fi
35837if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035838 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000035839fi
35840have_ps='no'
35841if test "$have_dps" = 'yes' || \
35842 test "$have_gs" = 'yes' || \
35843 test "${native_win32_build}" = 'yes' ; then
35844 have_ps='yes'
35845fi
35846if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035847 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000035848fi
cristy2a3eb392012-12-17 13:39:20 +000035849if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035850 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000035851fi
35852if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035853 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000035854fi
35855if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035856 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000035857fi
35858if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035859 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000035860fi
cristy3b640ed2013-07-29 00:27:59 +000035861if test "$have_webp" = 'yes' ; then
35862 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35863fi
cristy2a3eb392012-12-17 13:39:20 +000035864if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035865 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000035866fi
35867if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035868 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000035869fi
35870if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035871 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000035872fi
35873if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035874 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000035875fi
cristy2a3eb392012-12-17 13:39:20 +000035876# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000035877MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000035878MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000035879
35880
cristyfa161182012-12-19 15:45:28 +000035881
cristy3ed852e2009-09-05 21:47:34 +000035882#
35883# Handle special compiler flags
35884#
35885
35886# Add '-p' if prof source profiling support enabled
35887if test "$enable_prof" = 'yes'; then
35888 CFLAGS="-p $CFLAGS"
35889 CXXFLAGS="-p $CXXFLAGS"
35890 LDFLAGS="-p $LDFLAGS"
35891fi
35892
35893# Add '-pg' if gprof source profiling support enabled
35894if test "$enable_gprof" = 'yes'; then
35895 CFLAGS="-pg $CFLAGS"
35896 CXXFLAGS="-pg $CXXFLAGS"
35897 LDFLAGS="-pg $LDFLAGS"
35898fi
35899
35900# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35901# This is a gcc-specific feature
35902if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035904$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035905if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035906 $as_echo_n "(cached) " >&6
35907else
35908 ac_check_lib_save_LIBS=$LIBS
35909LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035911/* end confdefs.h. */
35912
35913/* Override any GCC internal prototype to avoid an error.
35914 Use char because int might match the return type of a GCC
35915 builtin and then its argument prototype would still apply. */
35916#ifdef __cplusplus
35917extern "C"
35918#endif
35919char _gcov_init ();
35920int
35921main ()
35922{
35923return _gcov_init ();
35924 ;
35925 return 0;
35926}
35927_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035928if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035929 ac_cv_lib_gcov__gcov_init=yes
35930else
cristy8b350f62009-11-15 23:12:43 +000035931 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035932fi
cristy8b350f62009-11-15 23:12:43 +000035933rm -f core conftest.err conftest.$ac_objext \
35934 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035935LIBS=$ac_check_lib_save_LIBS
35936fi
cristy8b350f62009-11-15 23:12:43 +000035937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035938$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035939if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035940 cat >>confdefs.h <<_ACEOF
35941#define HAVE_LIBGCOV 1
35942_ACEOF
35943
35944 LIBS="-lgcov $LIBS"
35945
35946fi
35947
cristy8b350f62009-11-15 23:12:43 +000035948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035949$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035950if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035951 $as_echo_n "(cached) " >&6
35952else
35953 ac_check_lib_save_LIBS=$LIBS
35954LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035956/* end confdefs.h. */
35957
35958/* Override any GCC internal prototype to avoid an error.
35959 Use char because int might match the return type of a GCC
35960 builtin and then its argument prototype would still apply. */
35961#ifdef __cplusplus
35962extern "C"
35963#endif
35964char __gcov_init ();
35965int
35966main ()
35967{
35968return __gcov_init ();
35969 ;
35970 return 0;
35971}
35972_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035973if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035974 ac_cv_lib_gcov___gcov_init=yes
35975else
cristy8b350f62009-11-15 23:12:43 +000035976 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035977fi
cristy8b350f62009-11-15 23:12:43 +000035978rm -f core conftest.err conftest.$ac_objext \
35979 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035980LIBS=$ac_check_lib_save_LIBS
35981fi
cristy8b350f62009-11-15 23:12:43 +000035982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035983$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035984if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035985 cat >>confdefs.h <<_ACEOF
35986#define HAVE_LIBGCOV 1
35987_ACEOF
35988
35989 LIBS="-lgcov $LIBS"
35990
35991fi
35992
35993 case "$target_os" in
35994 darwin*)
35995 OSX_GCOV_LDFLAG="-Wl,-single_module"
35996 ;;
35997 *)
35998 OSX_GCOV_LDFLAG=""
35999 ;;
36000 esac
36001
36002 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
36003 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
36004 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
36005fi
36006
36007#
36008# Build library dependency list for libMagickCore
36009#
36010
cristyc6722092012-10-14 00:19:31 +000036011if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000036012 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 +000036013else
cristy3fe09452014-01-01 12:29:14 +000036014 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 +000036015fi
36016
36017
36018#
36019# Remove extraneous spaces from output variables (asthetic)
36020#
36021X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
36022X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
36023X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
36024X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
36025
36026CC=`echo $CC | sed -e 's/ */ /g'`
36027CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
36028CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
36029CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036030DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
36031LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
36032TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36033MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
36034#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36035
36036# Pass only user-provided LIBS as "global" libraries
36037LIBS=$USER_LIBS
36038
36039#AC_SUBST(CPPFLAGS)
36040
36041#AC_SUBST(LDFLAGS)
36042#AC_SUBST(X_PRE_LIBS)
36043#AC_SUBST(X_LIBS)
36044#AC_SUBST(X_EXTRA_LIBS)
36045
36046MAGICK_CFLAGS=$CFLAGS
36047MAGICK_CXXFLAGS="$CXXFLAGS"
36048MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
36049MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
36050MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000036051MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036052
36053
36054
36055
36056
36057
36058
36059
36060# Set configured scripts to executable.
36061ac_config_commands="$ac_config_commands default"
36062
cristy2bd4b6e2012-07-22 15:29:11 +000036063ac_config_commands="$ac_config_commands magick.sh.in"
36064
cristy3ed852e2009-09-05 21:47:34 +000036065ac_config_commands="$ac_config_commands MagickCore-config.in"
36066
cristy3ed852e2009-09-05 21:47:34 +000036067ac_config_commands="$ac_config_commands MagickWand-config.in"
36068
cristy3ed852e2009-09-05 21:47:34 +000036069ac_config_commands="$ac_config_commands Magick++-config.in"
36070
36071ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
36072
36073
cristyad38abe2012-12-23 23:03:21 +000036074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36075$as_echo "-------------------------------------------------------------" >&6; }
36076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
36077$as_echo "Update ImageMagick configuration" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036078cat >confcache <<\_ACEOF
36079# This file is a shell script that caches the results of configure
36080# tests run on this system so they can be shared between configure
36081# scripts and configure runs, see configure's option --config-cache.
36082# It is not useful on other systems. If it contains results you don't
36083# want to keep, you may remove or edit it.
36084#
36085# config.status only pays attention to the cache file if you give it
36086# the --recheck option to rerun configure.
36087#
36088# `ac_cv_env_foo' variables (set or unset) will be overridden when
36089# loading this file, other *unset* `ac_cv_foo' will be assigned the
36090# following values.
36091
36092_ACEOF
36093
36094# The following way of writing the cache mishandles newlines in values,
36095# but we know of no workaround that is simple, portable, and efficient.
36096# So, we kill variables containing newlines.
36097# Ultrix sh set writes to stderr and can't be redirected directly,
36098# and sets the high bit in the cache file unless we assign to the vars.
36099(
36100 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36101 eval ac_val=\$$ac_var
36102 case $ac_val in #(
36103 *${as_nl}*)
36104 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000036105 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000036106$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36107 esac
36108 case $ac_var in #(
36109 _ | IFS | as_nl) ;; #(
36110 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000036111 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000036112 esac ;;
36113 esac
36114 done
36115
36116 (set) 2>&1 |
36117 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36118 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036119 # `set' does not quote correctly, so add quotes: double-quote
36120 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036121 sed -n \
36122 "s/'/'\\\\''/g;
36123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36124 ;; #(
36125 *)
36126 # `set' quotes correctly as required by POSIX, so do not add quotes.
36127 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36128 ;;
36129 esac |
36130 sort
36131) |
36132 sed '
36133 /^ac_cv_env_/b end
36134 t clear
36135 :clear
36136 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36137 t end
36138 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36139 :end' >>confcache
36140if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36141 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036142 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036143 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036144$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036145 if test ! -f "$cache_file" || test -h "$cache_file"; then
36146 cat confcache >"$cache_file"
36147 else
36148 case $cache_file in #(
36149 */* | ?:*)
36150 mv -f confcache "$cache_file"$$ &&
36151 mv -f "$cache_file"$$ "$cache_file" ;; #(
36152 *)
36153 mv -f confcache "$cache_file" ;;
36154 esac
36155 fi
36156 fi
cristy3ed852e2009-09-05 21:47:34 +000036157 else
cristy8b350f62009-11-15 23:12:43 +000036158 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036159$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36160 fi
36161fi
36162rm -f confcache
36163
36164test "x$prefix" = xNONE && prefix=$ac_default_prefix
36165# Let make expand exec_prefix.
36166test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36167
36168DEFS=-DHAVE_CONFIG_H
36169
36170ac_libobjs=
36171ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036172U=
cristy3ed852e2009-09-05 21:47:34 +000036173for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36174 # 1. Remove the extension, and $U if already installed.
36175 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36176 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36177 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36178 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036179 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36180 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036181done
36182LIBOBJS=$ac_libobjs
36183
36184LTLIBOBJS=$ac_ltlibobjs
36185
36186
cristyc0890a62012-07-19 00:18:20 +000036187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36188$as_echo_n "checking that generated files are newer than configure... " >&6; }
36189 if test -n "$am_sleep_pid"; then
36190 # Hide warnings about reused PIDs.
36191 wait $am_sleep_pid 2>/dev/null
36192 fi
36193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36194$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036195 if test -n "$EXEEXT"; then
36196 am__EXEEXT_TRUE=
36197 am__EXEEXT_FALSE='#'
36198else
36199 am__EXEEXT_TRUE='#'
36200 am__EXEEXT_FALSE=
36201fi
cristy3ed852e2009-09-05 21:47:34 +000036202
cristy73bd4a52010-10-05 11:24:23 +000036203if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036204 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036205Usually this means the macro was only invoked conditionally." "$LINENO" 5
36206fi
36207if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036208 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036209Usually this means the macro was only invoked conditionally." "$LINENO" 5
36210fi
36211if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036212 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036213Usually this means the macro was only invoked conditionally." "$LINENO" 5
36214fi
36215if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036216 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036217Usually this means the macro was only invoked conditionally." "$LINENO" 5
36218fi
cristy9b86f202012-11-28 21:55:35 +000036219if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36220 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36221Usually this means the macro was only invoked conditionally." "$LINENO" 5
36222fi
cristy73bd4a52010-10-05 11:24:23 +000036223if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036224 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036225Usually this means the macro was only invoked conditionally." "$LINENO" 5
36226fi
36227if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036228 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036229Usually this means the macro was only invoked conditionally." "$LINENO" 5
36230fi
36231if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036232 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036233Usually this means the macro was only invoked conditionally." "$LINENO" 5
36234fi
36235if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036236 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036237Usually this means the macro was only invoked conditionally." "$LINENO" 5
36238fi
cristy73bd4a52010-10-05 11:24:23 +000036239if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036240 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036241Usually this means the macro was only invoked conditionally." "$LINENO" 5
36242fi
36243if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036244 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036245Usually this means the macro was only invoked conditionally." "$LINENO" 5
36246fi
cristy73bd4a52010-10-05 11:24:23 +000036247if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036248 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036249Usually this means the macro was only invoked conditionally." "$LINENO" 5
36250fi
cristy71d8c202012-03-20 17:05:01 +000036251if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36252 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36253Usually this means the macro was only invoked conditionally." "$LINENO" 5
36254fi
cristy73bd4a52010-10-05 11:24:23 +000036255
36256if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036257 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036258Usually this means the macro was only invoked conditionally." "$LINENO" 5
36259fi
36260if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036261 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036262Usually this means the macro was only invoked conditionally." "$LINENO" 5
36263fi
36264if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036265 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036266Usually this means the macro was only invoked conditionally." "$LINENO" 5
36267fi
36268if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036269 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036270Usually this means the macro was only invoked conditionally." "$LINENO" 5
36271fi
36272if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036273 as_fn_error $? "conditional \"X11_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 "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036277 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036278Usually this means the macro was only invoked conditionally." "$LINENO" 5
36279fi
cristy5eef09f2012-10-16 12:08:28 +000036280if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36281 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36282Usually this means the macro was only invoked conditionally." "$LINENO" 5
36283fi
cristy73bd4a52010-10-05 11:24:23 +000036284if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036285 as_fn_error $? "conditional \"AUTOTRACE_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 "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036289 as_fn_error $? "conditional \"DPS_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 "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036293 as_fn_error $? "conditional \"DJVU_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 "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036297 as_fn_error $? "conditional \"FFTW_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 "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036301 as_fn_error $? "conditional \"FPX_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 "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036305 as_fn_error $? "conditional \"FONTCONFIG_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 "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036309 as_fn_error $? "conditional \"FREETYPE_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 "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036313 as_fn_error $? "conditional \"GS_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 "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036317 as_fn_error $? "conditional \"GVC_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 "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036321 as_fn_error $? "conditional \"JBIG_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 "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036325 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036326Usually this means the macro was only invoked conditionally." "$LINENO" 5
36327fi
36328if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036329 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036330Usually this means the macro was only invoked conditionally." "$LINENO" 5
36331fi
36332if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036333 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036334Usually this means the macro was only invoked conditionally." "$LINENO" 5
36335fi
cristy99db3872014-01-01 15:11:34 +000036336if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36337 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36338Usually this means the macro was only invoked conditionally." "$LINENO" 5
36339fi
cristy73bd4a52010-10-05 11:24:23 +000036340if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036341 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036342Usually this means the macro was only invoked conditionally." "$LINENO" 5
36343fi
cristyfbb0ef02010-12-19 02:32:11 +000036344if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36345 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36346Usually this means the macro was only invoked conditionally." "$LINENO" 5
36347fi
cristy854c9cf2013-08-10 21:03:06 +000036348if test -z "${MUPDF_DELEGATE_TRUE}" && test -z "${MUPDF_DELEGATE_FALSE}"; then
36349 as_fn_error $? "conditional \"MUPDF_DELEGATE\" was never defined.
36350Usually this means the macro was only invoked conditionally." "$LINENO" 5
36351fi
cristy73bd4a52010-10-05 11:24:23 +000036352if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036353 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036354Usually this means the macro was only invoked conditionally." "$LINENO" 5
36355fi
cristy41cbe8a2011-10-27 01:35:18 +000036356if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36357 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36358Usually this means the macro was only invoked conditionally." "$LINENO" 5
36359fi
cristya054b762012-03-26 23:16:00 +000036360if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36361 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036362Usually this means the macro was only invoked conditionally." "$LINENO" 5
36363fi
cristy73bd4a52010-10-05 11:24:23 +000036364if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036365 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036366Usually this means the macro was only invoked conditionally." "$LINENO" 5
36367fi
36368if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036369 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036370Usually this means the macro was only invoked conditionally." "$LINENO" 5
36371fi
36372if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036373 as_fn_error $? "conditional \"CAIRO_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 "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036377 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036378Usually this means the macro was only invoked conditionally." "$LINENO" 5
36379fi
cristyb1860752011-03-14 00:27:46 +000036380if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36381 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36382Usually this means the macro was only invoked conditionally." "$LINENO" 5
36383fi
cristy73bd4a52010-10-05 11:24:23 +000036384if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036385 as_fn_error $? "conditional \"WMF_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 "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036389 as_fn_error $? "conditional \"XML_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 "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036393 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036394Usually this means the macro was only invoked conditionally." "$LINENO" 5
36395fi
36396if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036397 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036398Usually this means the macro was only invoked conditionally." "$LINENO" 5
36399fi
36400if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036401 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036402Usually this means the macro was only invoked conditionally." "$LINENO" 5
36403fi
36404if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036405 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036406Usually this means the macro was only invoked conditionally." "$LINENO" 5
36407fi
36408if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036409 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036410Usually this means the macro was only invoked conditionally." "$LINENO" 5
36411fi
36412if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036413 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036414Usually this means the macro was only invoked conditionally." "$LINENO" 5
36415fi
cristy3ed852e2009-09-05 21:47:34 +000036416
cristyda16f162011-02-19 23:52:17 +000036417: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036418ac_write_fail=0
36419ac_clean_files_save=$ac_clean_files
36420ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036421{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036422$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036423as_write_fail=0
36424cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036425#! $SHELL
36426# Generated by $as_me.
36427# Run this file to recreate the current configuration.
36428# Compiler output produced by configure, useful for debugging
36429# configure, is in config.log if it exists.
36430
36431debug=false
36432ac_cs_recheck=false
36433ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036434
cristy8b350f62009-11-15 23:12:43 +000036435SHELL=\${CONFIG_SHELL-$SHELL}
36436export SHELL
36437_ASEOF
36438cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36439## -------------------- ##
36440## M4sh Initialization. ##
36441## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036442
36443# Be more Bourne compatible
36444DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036445if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036446 emulate sh
36447 NULLCMD=:
36448 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36449 # is contrary to our usage. Disable this feature.
36450 alias -g '${1+"$@"}'='"$@"'
36451 setopt NO_GLOB_SUBST
36452else
cristy8b350f62009-11-15 23:12:43 +000036453 case `(set -o) 2>/dev/null` in #(
36454 *posix*) :
36455 set -o posix ;; #(
36456 *) :
36457 ;;
cristy3ed852e2009-09-05 21:47:34 +000036458esac
cristy3ed852e2009-09-05 21:47:34 +000036459fi
36460
36461
cristy3ed852e2009-09-05 21:47:34 +000036462as_nl='
36463'
36464export as_nl
36465# Printing a long string crashes Solaris 7 /usr/bin/printf.
36466as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36467as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36468as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036469# Prefer a ksh shell builtin over an external printf program on Solaris,
36470# but without wasting forks for bash or zsh.
36471if test -z "$BASH_VERSION$ZSH_VERSION" \
36472 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36473 as_echo='print -r --'
36474 as_echo_n='print -rn --'
36475elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036476 as_echo='printf %s\n'
36477 as_echo_n='printf %s'
36478else
36479 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36480 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36481 as_echo_n='/usr/ucb/echo -n'
36482 else
36483 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36484 as_echo_n_body='eval
36485 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036486 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036487 *"$as_nl"*)
36488 expr "X$arg" : "X\\(.*\\)$as_nl";
36489 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36490 esac;
36491 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36492 '
36493 export as_echo_n_body
36494 as_echo_n='sh -c $as_echo_n_body as_echo'
36495 fi
36496 export as_echo_body
36497 as_echo='sh -c $as_echo_body as_echo'
36498fi
36499
36500# The user is always right.
36501if test "${PATH_SEPARATOR+set}" != set; then
36502 PATH_SEPARATOR=:
36503 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36504 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36505 PATH_SEPARATOR=';'
36506 }
36507fi
36508
cristy3ed852e2009-09-05 21:47:34 +000036509
36510# IFS
36511# We need space, tab and new line, in precisely that order. Quoting is
36512# there to prevent editors from complaining about space-tab.
36513# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36514# splitting by setting IFS to empty value.)
36515IFS=" "" $as_nl"
36516
36517# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036518as_myself=
cristy8b350f62009-11-15 23:12:43 +000036519case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036520 *[\\/]* ) as_myself=$0 ;;
36521 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36522for as_dir in $PATH
36523do
36524 IFS=$as_save_IFS
36525 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036526 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36527 done
cristy3ed852e2009-09-05 21:47:34 +000036528IFS=$as_save_IFS
36529
36530 ;;
36531esac
36532# We did not find ourselves, most probably we were run as `sh COMMAND'
36533# in which case we are not to be found in the path.
36534if test "x$as_myself" = x; then
36535 as_myself=$0
36536fi
36537if test ! -f "$as_myself"; then
36538 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036539 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036540fi
36541
cristy8b350f62009-11-15 23:12:43 +000036542# Unset variables that we do not need and which cause bugs (e.g. in
36543# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36544# suppresses any "Segmentation fault" message there. '((' could
36545# trigger a bug in pdksh 5.2.14.
36546for as_var in BASH_ENV ENV MAIL MAILPATH
36547do eval test x\${$as_var+set} = xset \
36548 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036549done
36550PS1='$ '
36551PS2='> '
36552PS4='+ '
36553
36554# NLS nuisances.
36555LC_ALL=C
36556export LC_ALL
36557LANGUAGE=C
36558export LANGUAGE
36559
cristy8b350f62009-11-15 23:12:43 +000036560# CDPATH.
36561(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36562
36563
cristy98dddb52010-11-04 00:30:15 +000036564# as_fn_error STATUS ERROR [LINENO LOG_FD]
36565# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036566# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36567# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036568# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036569as_fn_error ()
36570{
cristy98dddb52010-11-04 00:30:15 +000036571 as_status=$1; test $as_status -eq 0 && as_status=1
36572 if test "$4"; then
36573 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36574 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036575 fi
cristy98dddb52010-11-04 00:30:15 +000036576 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036577 as_fn_exit $as_status
36578} # as_fn_error
36579
36580
36581# as_fn_set_status STATUS
36582# -----------------------
36583# Set $? to STATUS, without forking.
36584as_fn_set_status ()
36585{
36586 return $1
36587} # as_fn_set_status
36588
36589# as_fn_exit STATUS
36590# -----------------
36591# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36592as_fn_exit ()
36593{
36594 set +e
36595 as_fn_set_status $1
36596 exit $1
36597} # as_fn_exit
36598
36599# as_fn_unset VAR
36600# ---------------
36601# Portably unset VAR.
36602as_fn_unset ()
36603{
36604 { eval $1=; unset $1;}
36605}
36606as_unset=as_fn_unset
36607# as_fn_append VAR VALUE
36608# ----------------------
36609# Append the text in VALUE to the end of the definition contained in VAR. Take
36610# advantage of any shell optimizations that allow amortized linear growth over
36611# repeated appends, instead of the typical quadratic growth present in naive
36612# implementations.
36613if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36614 eval 'as_fn_append ()
36615 {
36616 eval $1+=\$2
36617 }'
36618else
36619 as_fn_append ()
36620 {
36621 eval $1=\$$1\$2
36622 }
36623fi # as_fn_append
36624
36625# as_fn_arith ARG...
36626# ------------------
36627# Perform arithmetic evaluation on the ARGs, and store the result in the
36628# global $as_val. Take advantage of shells that can avoid forks. The arguments
36629# must be portable across $(()) and expr.
36630if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36631 eval 'as_fn_arith ()
36632 {
36633 as_val=$(( $* ))
36634 }'
36635else
36636 as_fn_arith ()
36637 {
36638 as_val=`expr "$@" || test $? -eq 1`
36639 }
36640fi # as_fn_arith
36641
36642
cristy3ed852e2009-09-05 21:47:34 +000036643if expr a : '\(a\)' >/dev/null 2>&1 &&
36644 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36645 as_expr=expr
36646else
36647 as_expr=false
36648fi
36649
36650if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36651 as_basename=basename
36652else
36653 as_basename=false
36654fi
36655
cristy8b350f62009-11-15 23:12:43 +000036656if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36657 as_dirname=dirname
36658else
36659 as_dirname=false
36660fi
cristy3ed852e2009-09-05 21:47:34 +000036661
cristy3ed852e2009-09-05 21:47:34 +000036662as_me=`$as_basename -- "$0" ||
36663$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36664 X"$0" : 'X\(//\)$' \| \
36665 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36666$as_echo X/"$0" |
36667 sed '/^.*\/\([^/][^/]*\)\/*$/{
36668 s//\1/
36669 q
36670 }
36671 /^X\/\(\/\/\)$/{
36672 s//\1/
36673 q
36674 }
36675 /^X\/\(\/\).*/{
36676 s//\1/
36677 q
36678 }
36679 s/.*/./; q'`
36680
cristy8b350f62009-11-15 23:12:43 +000036681# Avoid depending upon Character Ranges.
36682as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36683as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36684as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36685as_cr_digits='0123456789'
36686as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036687
36688ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036689case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036690-n*)
cristy8b350f62009-11-15 23:12:43 +000036691 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036692 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036693 xy) ECHO_C='\c';;
36694 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36695 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036696 esac;;
36697*)
36698 ECHO_N='-n';;
36699esac
cristy3ed852e2009-09-05 21:47:34 +000036700
36701rm -f conf$$ conf$$.exe conf$$.file
36702if test -d conf$$.dir; then
36703 rm -f conf$$.dir/conf$$.file
36704else
36705 rm -f conf$$.dir
36706 mkdir conf$$.dir 2>/dev/null
36707fi
36708if (echo >conf$$.file) 2>/dev/null; then
36709 if ln -s conf$$.file conf$$ 2>/dev/null; then
36710 as_ln_s='ln -s'
36711 # ... but there are two gotchas:
36712 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36713 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036714 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036715 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036716 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036717 elif ln conf$$.file conf$$ 2>/dev/null; then
36718 as_ln_s=ln
36719 else
cristy14fefe52012-05-21 00:59:18 +000036720 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036721 fi
36722else
cristy14fefe52012-05-21 00:59:18 +000036723 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036724fi
36725rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36726rmdir conf$$.dir 2>/dev/null
36727
cristy8b350f62009-11-15 23:12:43 +000036728
36729# as_fn_mkdir_p
36730# -------------
36731# Create "$as_dir" as a directory, including parents if necessary.
36732as_fn_mkdir_p ()
36733{
36734
36735 case $as_dir in #(
36736 -*) as_dir=./$as_dir;;
36737 esac
36738 test -d "$as_dir" || eval $as_mkdir_p || {
36739 as_dirs=
36740 while :; do
36741 case $as_dir in #(
36742 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36743 *) as_qdir=$as_dir;;
36744 esac
36745 as_dirs="'$as_qdir' $as_dirs"
36746 as_dir=`$as_dirname -- "$as_dir" ||
36747$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36748 X"$as_dir" : 'X\(//\)[^/]' \| \
36749 X"$as_dir" : 'X\(//\)$' \| \
36750 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36751$as_echo X"$as_dir" |
36752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36753 s//\1/
36754 q
36755 }
36756 /^X\(\/\/\)[^/].*/{
36757 s//\1/
36758 q
36759 }
36760 /^X\(\/\/\)$/{
36761 s//\1/
36762 q
36763 }
36764 /^X\(\/\).*/{
36765 s//\1/
36766 q
36767 }
36768 s/.*/./; q'`
36769 test -d "$as_dir" && break
36770 done
36771 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036772 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036773
36774
36775} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036776if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036777 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036778else
36779 test -d ./-p && rmdir ./-p
36780 as_mkdir_p=false
36781fi
36782
cristy14fefe52012-05-21 00:59:18 +000036783
36784# as_fn_executable_p FILE
36785# -----------------------
36786# Test if FILE is an executable regular file.
36787as_fn_executable_p ()
36788{
36789 test -f "$1" && test -x "$1"
36790} # as_fn_executable_p
36791as_test_x='test -x'
36792as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036793
36794# Sed expression to map a string onto a valid CPP name.
36795as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36796
36797# Sed expression to map a string onto a valid variable name.
36798as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36799
36800
36801exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036802## ----------------------------------- ##
36803## Main body of $CONFIG_STATUS script. ##
36804## ----------------------------------- ##
36805_ASEOF
36806test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036807
cristy8b350f62009-11-15 23:12:43 +000036808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36809# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036810# report actual input values of CONFIG_FILES etc. instead of their
36811# values after options handling.
36812ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036813This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036814generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036815
36816 CONFIG_FILES = $CONFIG_FILES
36817 CONFIG_HEADERS = $CONFIG_HEADERS
36818 CONFIG_LINKS = $CONFIG_LINKS
36819 CONFIG_COMMANDS = $CONFIG_COMMANDS
36820 $ $0 $@
36821
36822on `(hostname || uname -n) 2>/dev/null | sed 1q`
36823"
36824
36825_ACEOF
36826
36827case $ac_config_files in *"
36828"*) set x $ac_config_files; shift; ac_config_files=$*;;
36829esac
36830
36831case $ac_config_headers in *"
36832"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36833esac
36834
36835
36836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36837# Files that config.status was made for.
36838config_files="$ac_config_files"
36839config_headers="$ac_config_headers"
36840config_commands="$ac_config_commands"
36841
36842_ACEOF
36843
36844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36845ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036846\`$as_me' instantiates files and other configuration actions
36847from templates according to the current configuration. Unless the files
36848and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036849
cristy8b350f62009-11-15 23:12:43 +000036850Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036851
36852 -h, --help print this help, then exit
36853 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036854 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036855 -q, --quiet, --silent
36856 do not print progress messages
36857 -d, --debug don't remove temporary files
36858 --recheck update $as_me by reconfiguring in the same conditions
36859 --file=FILE[:TEMPLATE]
36860 instantiate the configuration file FILE
36861 --header=FILE[:TEMPLATE]
36862 instantiate the configuration header FILE
36863
36864Configuration files:
36865$config_files
36866
36867Configuration headers:
36868$config_headers
36869
36870Configuration commands:
36871$config_commands
36872
cristy8b350f62009-11-15 23:12:43 +000036873Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036874
36875_ACEOF
36876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036877ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036878ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036879ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036880configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036881 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036882
cristy14fefe52012-05-21 00:59:18 +000036883Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036884This config.status script is free software; the Free Software Foundation
36885gives unlimited permission to copy, distribute and modify it."
36886
36887ac_pwd='$ac_pwd'
36888srcdir='$srcdir'
36889INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036890MKDIR_P='$MKDIR_P'
36891AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036892test -n "\$AWK" || AWK=awk
36893_ACEOF
36894
36895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36896# The default lists apply if the user does not specify any file.
36897ac_need_defaults=:
36898while test $# != 0
36899do
36900 case $1 in
cristyda16f162011-02-19 23:52:17 +000036901 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036902 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36903 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36904 ac_shift=:
36905 ;;
cristyda16f162011-02-19 23:52:17 +000036906 --*=)
36907 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36908 ac_optarg=
36909 ac_shift=:
36910 ;;
cristy3ed852e2009-09-05 21:47:34 +000036911 *)
36912 ac_option=$1
36913 ac_optarg=$2
36914 ac_shift=shift
36915 ;;
36916 esac
36917
36918 case $ac_option in
36919 # Handling of the options.
36920 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36921 ac_cs_recheck=: ;;
36922 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36923 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036924 --config | --confi | --conf | --con | --co | --c )
36925 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036926 --debug | --debu | --deb | --de | --d | -d )
36927 debug=: ;;
36928 --file | --fil | --fi | --f )
36929 $ac_shift
36930 case $ac_optarg in
36931 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036932 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036933 esac
cristy8b350f62009-11-15 23:12:43 +000036934 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036935 ac_need_defaults=false;;
36936 --header | --heade | --head | --hea )
36937 $ac_shift
36938 case $ac_optarg in
36939 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36940 esac
cristy8b350f62009-11-15 23:12:43 +000036941 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036942 ac_need_defaults=false;;
36943 --he | --h)
36944 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036945 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036946Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036947 --help | --hel | -h )
36948 $as_echo "$ac_cs_usage"; exit ;;
36949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36950 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36951 ac_cs_silent=: ;;
36952
36953 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036954 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036955Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036956
cristy8b350f62009-11-15 23:12:43 +000036957 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036958 ac_need_defaults=false ;;
36959
36960 esac
36961 shift
36962done
36963
36964ac_configure_extra_args=
36965
36966if $ac_cs_silent; then
36967 exec 6>/dev/null
36968 ac_configure_extra_args="$ac_configure_extra_args --silent"
36969fi
36970
36971_ACEOF
36972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36973if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036974 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036975 shift
36976 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36977 CONFIG_SHELL='$SHELL'
36978 export CONFIG_SHELL
36979 exec "\$@"
36980fi
36981
36982_ACEOF
36983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36984exec 5>>config.log
36985{
36986 echo
36987 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36988## Running $as_me. ##
36989_ASBOX
36990 $as_echo "$ac_log"
36991} >&5
36992
36993_ACEOF
36994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036995#
36996# INIT-COMMANDS
36997#
36998PACKAGE="$PACKAGE"
36999AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37000
37001
37002# The HP-UX ksh and POSIX shell print the target directory to stdout
37003# if CDPATH is set.
37004(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37005
37006sed_quote_subst='$sed_quote_subst'
37007double_quote_subst='$double_quote_subst'
37008delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000037009SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37010Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37011GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37012EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37013FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37014SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37015ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37016LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37017macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37018macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37019AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37020DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37021OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37022enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37023enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37024pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37025enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000037026PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037027host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37028host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37029host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37030build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37031build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37032build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37033NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37034LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37035max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37036ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37037exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37038lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37039lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37040lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037041lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37042lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037043reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37044reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37045deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37046file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037047file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37048want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37049sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037050AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37051AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037052archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037053STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37054RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37055old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37056old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37057old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37058lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37059CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37060CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37061compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37062GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37063lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37064lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37065lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37066lt_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 +000037067nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37068lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037069objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37070MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37071lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037072lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037073lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037074lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37075lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37076need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037077MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037078DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37079NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37080LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37081OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37082OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37083libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37084shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37085extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37086archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37087enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37088export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37089whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37090compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37091old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37092old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37093archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37094archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37095module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37096module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37097with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37098allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37099no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37100hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037101hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37102hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37103hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37104hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37105hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37106hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37107inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37108link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037109always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37110export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37111exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37112include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37113prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037114postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037115file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37116variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37117need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37118need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37119version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37120runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37121shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37122shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37123libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37124library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37125soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37126install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37127postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37128postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37129finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37130finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37131hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37132sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37133sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37134hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37135enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37136enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37137enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37138old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37139striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37140compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37141predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37142postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37143predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37144postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37145compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37146LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37147reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37148reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37149old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37150compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37151GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37152lt_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 +000037153lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037154lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037155lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37156lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37157archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37158enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37159export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37160whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37161compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37162old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37163old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37164archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37165archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37166module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37167module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37168with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37169allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37170no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37171hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037172hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37173hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37174hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37175hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37176hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37177hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37178inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37179link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037180always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37181export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37182exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37183include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37184prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037185postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037186file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37187hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37188compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37189predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37190postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37191predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37192postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37193compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037194
37195LTCC='$LTCC'
37196LTCFLAGS='$LTCFLAGS'
37197compiler='$compiler_DEFAULT'
37198
cristy0c60a692010-11-04 01:09:47 +000037199# A function that is used when there is no print builtin or printf.
37200func_fallback_echo ()
37201{
37202 eval 'cat <<_LTECHO_EOF
37203\$1
37204_LTECHO_EOF'
37205}
37206
cristy73bd4a52010-10-05 11:24:23 +000037207# Quote evaled strings.
37208for var in SED \
37209GREP \
37210EGREP \
37211FGREP \
cristy0c60a692010-11-04 01:09:47 +000037212SHELL \
37213ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037214LD \
cristy0c60a692010-11-04 01:09:47 +000037215AS \
37216DLLTOOL \
37217OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037218PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037219NM \
37220LN_S \
37221lt_SP2NL \
37222lt_NL2SP \
37223reload_flag \
37224deplibs_check_method \
37225file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037226file_magic_glob \
37227want_nocaseglob \
37228sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037229AR \
37230AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037231archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037232STRIP \
37233RANLIB \
37234CC \
37235CFLAGS \
37236compiler \
37237lt_cv_sys_global_symbol_pipe \
37238lt_cv_sys_global_symbol_to_cdecl \
37239lt_cv_sys_global_symbol_to_c_name_address \
37240lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037241nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037242lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037243lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037244lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037245lt_prog_compiler_static \
37246lt_cv_prog_compiler_c_o \
37247need_locks \
cristyda16f162011-02-19 23:52:17 +000037248MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037249DSYMUTIL \
37250NMEDIT \
37251LIPO \
37252OTOOL \
37253OTOOL64 \
37254shrext_cmds \
37255export_dynamic_flag_spec \
37256whole_archive_flag_spec \
37257compiler_needs_object \
37258with_gnu_ld \
37259allow_undefined_flag \
37260no_undefined_flag \
37261hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037262hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037263exclude_expsyms \
37264include_expsyms \
37265file_list_spec \
37266variables_saved_for_relink \
37267libname_spec \
37268library_names_spec \
37269soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037270install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037271finish_eval \
37272old_striplib \
37273striplib \
37274compiler_lib_search_dirs \
37275predep_objects \
37276postdep_objects \
37277predeps \
37278postdeps \
37279compiler_lib_search_path \
37280LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037281reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037282compiler_CXX \
37283lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037284lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037285lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037286lt_prog_compiler_static_CXX \
37287lt_cv_prog_compiler_c_o_CXX \
37288export_dynamic_flag_spec_CXX \
37289whole_archive_flag_spec_CXX \
37290compiler_needs_object_CXX \
37291with_gnu_ld_CXX \
37292allow_undefined_flag_CXX \
37293no_undefined_flag_CXX \
37294hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037295hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037296exclude_expsyms_CXX \
37297include_expsyms_CXX \
37298file_list_spec_CXX \
37299compiler_lib_search_dirs_CXX \
37300predep_objects_CXX \
37301postdep_objects_CXX \
37302predeps_CXX \
37303postdeps_CXX \
37304compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037305 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037306 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037307 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037308 ;;
37309 *)
37310 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37311 ;;
37312 esac
37313done
37314
37315# Double-quote double-evaled strings.
37316for var in reload_cmds \
37317old_postinstall_cmds \
37318old_postuninstall_cmds \
37319old_archive_cmds \
37320extract_expsyms_cmds \
37321old_archive_from_new_cmds \
37322old_archive_from_expsyms_cmds \
37323archive_cmds \
37324archive_expsym_cmds \
37325module_cmds \
37326module_expsym_cmds \
37327export_symbols_cmds \
37328prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037329postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037330postinstall_cmds \
37331postuninstall_cmds \
37332finish_cmds \
37333sys_lib_search_path_spec \
37334sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037335reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037336old_archive_cmds_CXX \
37337old_archive_from_new_cmds_CXX \
37338old_archive_from_expsyms_cmds_CXX \
37339archive_cmds_CXX \
37340archive_expsym_cmds_CXX \
37341module_cmds_CXX \
37342module_expsym_cmds_CXX \
37343export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037344prelink_cmds_CXX \
37345postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037346 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037347 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037348 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037349 ;;
37350 *)
37351 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37352 ;;
37353 esac
37354done
37355
cristy73bd4a52010-10-05 11:24:23 +000037356ac_aux_dir='$ac_aux_dir'
37357xsi_shell='$xsi_shell'
37358lt_shell_append='$lt_shell_append'
37359
37360# See if we are running on zsh, and set the options which allow our
37361# commands through without removal of \ escapes INIT.
37362if test -n "\${ZSH_VERSION+set}" ; then
37363 setopt NO_GLOB_SUBST
37364fi
37365
37366
37367 PACKAGE='$PACKAGE'
37368 VERSION='$VERSION'
37369 TIMESTAMP='$TIMESTAMP'
37370 RM='$RM'
37371 ofile='$ofile'
37372
37373
37374
37375
37376
37377
cristy3ed852e2009-09-05 21:47:34 +000037378_ACEOF
37379
37380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37381
37382# Handling of arguments.
37383for ac_config_target in $ac_config_targets
37384do
37385 case $ac_config_target in
37386 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037387 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037388 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037389 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37390 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37391 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37392 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37393 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037394 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037395 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037396 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37397 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37398 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37399 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37400 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037401 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037402 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037403 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37404 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37405 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037406 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37407 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037408 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037409 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037410 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037411 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037412 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37413 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37414 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37415 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037416 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37417 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37418 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37419 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37420 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37421 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37422 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37423 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37424 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37425 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37426 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37427 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037428 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37429 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037430 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37431 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037432 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037433 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037434 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037435 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037436 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37437 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37438
cristy98dddb52010-11-04 00:30:15 +000037439 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037440 esac
37441done
37442
37443
37444# If the user did not use the arguments to specify the items to instantiate,
37445# then the envvar interface is used. Set only those that are not.
37446# We use the long form for the default assignment because of an extremely
37447# bizarre bug on SunOS 4.1.3.
37448if $ac_need_defaults; then
37449 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37450 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37451 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37452fi
37453
37454# Have a temporary directory for convenience. Make it in the build tree
37455# simply because there is no reason against having it here, and in addition,
37456# creating and moving files from /tmp can sometimes cause problems.
37457# Hook for its removal unless debugging.
37458# Note that there is a small window in which the directory will not be cleaned:
37459# after its creation but before its name has been assigned to `$tmp'.
37460$debug ||
37461{
cristyda16f162011-02-19 23:52:17 +000037462 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037463 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037464 : "${ac_tmp:=$tmp}"
37465 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037466' 0
cristy8b350f62009-11-15 23:12:43 +000037467 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037468}
37469# Create a (secure) tmp directory for tmp files.
37470
37471{
37472 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037473 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037474} ||
37475{
37476 tmp=./conf$$-$RANDOM
37477 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037478} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037479ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037480
37481# Set up the scripts for CONFIG_FILES section.
37482# No need to generate them if there are no CONFIG_FILES.
37483# This happens for instance with `./config.status config.h'.
37484if test -n "$CONFIG_FILES"; then
37485
37486
cristy8b350f62009-11-15 23:12:43 +000037487ac_cr=`echo X | tr X '\015'`
37488# On cygwin, bash can eat \r inside `` if the user requested igncr.
37489# But we know of no other shell where ac_cr would be empty at this
37490# point, so we can use a bashism as a fallback.
37491if test "x$ac_cr" = x; then
37492 eval ac_cr=\$\'\\r\'
37493fi
cristy3ed852e2009-09-05 21:47:34 +000037494ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37495if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037496 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037497else
37498 ac_cs_awk_cr=$ac_cr
37499fi
37500
cristyda16f162011-02-19 23:52:17 +000037501echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037502_ACEOF
37503
37504
37505{
37506 echo "cat >conf$$subs.awk <<_ACEOF" &&
37507 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37508 echo "_ACEOF"
37509} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037510 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37511ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037512ac_delim='%!_!# '
37513for ac_last_try in false false false false false :; do
37514 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037515 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037516
37517 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37518 if test $ac_delim_n = $ac_delim_num; then
37519 break
37520 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037521 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037522 else
37523 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37524 fi
37525done
37526rm -f conf$$subs.sh
37527
37528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037529cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037530_ACEOF
37531sed -n '
37532h
37533s/^/S["/; s/!.*/"]=/
37534p
37535g
37536s/^[^!]*!//
37537:repl
37538t repl
37539s/'"$ac_delim"'$//
37540t delim
37541:nl
37542h
cristycd4c5312009-11-22 01:19:08 +000037543s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037544t more1
37545s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37546p
37547n
37548b repl
37549:more1
37550s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37551p
37552g
37553s/.\{148\}//
37554t nl
37555:delim
37556h
cristycd4c5312009-11-22 01:19:08 +000037557s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037558t more2
37559s/["\\]/\\&/g; s/^/"/; s/$/"/
37560p
37561b
37562:more2
37563s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37564p
37565g
37566s/.\{148\}//
37567t delim
37568' <conf$$subs.awk | sed '
37569/^[^""]/{
37570 N
37571 s/\n//
37572}
37573' >>$CONFIG_STATUS || ac_write_fail=1
37574rm -f conf$$subs.awk
37575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37576_ACAWK
cristyda16f162011-02-19 23:52:17 +000037577cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037578 for (key in S) S_is_set[key] = 1
37579 FS = ""
37580
37581}
37582{
37583 line = $ 0
37584 nfields = split(line, field, "@")
37585 substed = 0
37586 len = length(field[1])
37587 for (i = 2; i < nfields; i++) {
37588 key = field[i]
37589 keylen = length(key)
37590 if (S_is_set[key]) {
37591 value = S[key]
37592 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37593 len += length(value) + length(field[++i])
37594 substed = 1
37595 } else
37596 len += 1 + keylen
37597 }
37598
37599 print line
37600}
37601
37602_ACAWK
37603_ACEOF
37604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37605if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37606 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37607else
37608 cat
cristyda16f162011-02-19 23:52:17 +000037609fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037610 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037611_ACEOF
37612
cristy98dddb52010-11-04 00:30:15 +000037613# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37614# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037615# trailing colons and then remove the whole line if VPATH becomes empty
37616# (actually we leave an empty line to preserve line numbers).
37617if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037618 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37619h
37620s///
37621s/^/:/
37622s/[ ]*$/:/
37623s/:\$(srcdir):/:/g
37624s/:\${srcdir}:/:/g
37625s/:@srcdir@:/:/g
37626s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037627s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037628x
37629s/\(=[ ]*\).*/\1/
37630G
37631s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037632s/^[^=]*=[ ]*$//
37633}'
37634fi
37635
37636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37637fi # test -n "$CONFIG_FILES"
37638
37639# Set up the scripts for CONFIG_HEADERS section.
37640# No need to generate them if there are no CONFIG_HEADERS.
37641# This happens for instance with `./config.status Makefile'.
37642if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037643cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037644BEGIN {
37645_ACEOF
37646
37647# Transform confdefs.h into an awk script `defines.awk', embedded as
37648# here-document in config.status, that substitutes the proper values into
37649# config.h.in to produce config.h.
37650
37651# Create a delimiter string that does not exist in confdefs.h, to ease
37652# handling of long lines.
37653ac_delim='%!_!# '
37654for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037655 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37656 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037657 break
37658 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037659 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037660 else
37661 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37662 fi
37663done
37664
37665# For the awk script, D is an array of macro values keyed by name,
37666# likewise P contains macro parameters if any. Preserve backslash
37667# newline sequences.
37668
37669ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37670sed -n '
37671s/.\{148\}/&'"$ac_delim"'/g
37672t rset
37673:rset
37674s/^[ ]*#[ ]*define[ ][ ]*/ /
37675t def
37676d
37677:def
37678s/\\$//
37679t bsnl
37680s/["\\]/\\&/g
37681s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37682D["\1"]=" \3"/p
37683s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37684d
37685:bsnl
37686s/["\\]/\\&/g
37687s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37688D["\1"]=" \3\\\\\\n"\\/p
37689t cont
37690s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37691t cont
37692d
37693:cont
37694n
37695s/.\{148\}/&'"$ac_delim"'/g
37696t clear
37697:clear
37698s/\\$//
37699t bsnlc
37700s/["\\]/\\&/g; s/^/"/; s/$/"/p
37701d
37702:bsnlc
37703s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37704b cont
37705' <confdefs.h | sed '
37706s/'"$ac_delim"'/"\\\
37707"/g' >>$CONFIG_STATUS || ac_write_fail=1
37708
37709cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37710 for (key in D) D_is_set[key] = 1
37711 FS = ""
37712}
37713/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37714 line = \$ 0
37715 split(line, arg, " ")
37716 if (arg[1] == "#") {
37717 defundef = arg[2]
37718 mac1 = arg[3]
37719 } else {
37720 defundef = substr(arg[1], 2)
37721 mac1 = arg[2]
37722 }
37723 split(mac1, mac2, "(") #)
37724 macro = mac2[1]
37725 prefix = substr(line, 1, index(line, defundef) - 1)
37726 if (D_is_set[macro]) {
37727 # Preserve the white space surrounding the "#".
37728 print prefix "define", macro P[macro] D[macro]
37729 next
37730 } else {
37731 # Replace #undef with comments. This is necessary, for example,
37732 # in the case of _POSIX_SOURCE, which is predefined and required
37733 # on some systems where configure will not decide to define it.
37734 if (defundef == "undef") {
37735 print "/*", prefix defundef, macro, "*/"
37736 next
37737 }
37738 }
37739}
37740{ print }
37741_ACAWK
37742_ACEOF
37743cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037744 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037745fi # test -n "$CONFIG_HEADERS"
37746
37747
37748eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37749shift
37750for ac_tag
37751do
37752 case $ac_tag in
37753 :[FHLC]) ac_mode=$ac_tag; continue;;
37754 esac
37755 case $ac_mode$ac_tag in
37756 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037757 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037758 :[FH]-) ac_tag=-:-;;
37759 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37760 esac
37761 ac_save_IFS=$IFS
37762 IFS=:
37763 set x $ac_tag
37764 IFS=$ac_save_IFS
37765 shift
37766 ac_file=$1
37767 shift
37768
37769 case $ac_mode in
37770 :L) ac_source=$1;;
37771 :[FH])
37772 ac_file_inputs=
37773 for ac_f
37774 do
37775 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037776 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037777 *) # Look for the file first in the build tree, then in the source tree
37778 # (if the path is not absolute). The absolute path cannot be DOS-style,
37779 # because $ac_f cannot contain `:'.
37780 test -f "$ac_f" ||
37781 case $ac_f in
37782 [\\/$]*) false;;
37783 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37784 esac ||
cristy98dddb52010-11-04 00:30:15 +000037785 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037786 esac
37787 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037788 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037789 done
37790
37791 # Let's still pretend it is `configure' which instantiates (i.e., don't
37792 # use $as_me), people would be surprised to read:
37793 # /* config.h. Generated by config.status. */
37794 configure_input='Generated from '`
37795 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37796 `' by configure.'
37797 if test x"$ac_file" != x-; then
37798 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037799 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037800$as_echo "$as_me: creating $ac_file" >&6;}
37801 fi
37802 # Neutralize special characters interpreted by sed in replacement strings.
37803 case $configure_input in #(
37804 *\&* | *\|* | *\\* )
37805 ac_sed_conf_input=`$as_echo "$configure_input" |
37806 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37807 *) ac_sed_conf_input=$configure_input;;
37808 esac
37809
37810 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037811 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037812 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037813 esac
37814 ;;
37815 esac
37816
37817 ac_dir=`$as_dirname -- "$ac_file" ||
37818$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37819 X"$ac_file" : 'X\(//\)[^/]' \| \
37820 X"$ac_file" : 'X\(//\)$' \| \
37821 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37822$as_echo X"$ac_file" |
37823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37824 s//\1/
37825 q
37826 }
37827 /^X\(\/\/\)[^/].*/{
37828 s//\1/
37829 q
37830 }
37831 /^X\(\/\/\)$/{
37832 s//\1/
37833 q
37834 }
37835 /^X\(\/\).*/{
37836 s//\1/
37837 q
37838 }
37839 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037840 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037841 ac_builddir=.
37842
37843case "$ac_dir" in
37844.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37845*)
37846 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37847 # A ".." for each directory in $ac_dir_suffix.
37848 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37849 case $ac_top_builddir_sub in
37850 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37851 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37852 esac ;;
37853esac
37854ac_abs_top_builddir=$ac_pwd
37855ac_abs_builddir=$ac_pwd$ac_dir_suffix
37856# for backward compatibility:
37857ac_top_builddir=$ac_top_build_prefix
37858
37859case $srcdir in
37860 .) # We are building in place.
37861 ac_srcdir=.
37862 ac_top_srcdir=$ac_top_builddir_sub
37863 ac_abs_top_srcdir=$ac_pwd ;;
37864 [\\/]* | ?:[\\/]* ) # Absolute name.
37865 ac_srcdir=$srcdir$ac_dir_suffix;
37866 ac_top_srcdir=$srcdir
37867 ac_abs_top_srcdir=$srcdir ;;
37868 *) # Relative name.
37869 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37870 ac_top_srcdir=$ac_top_build_prefix$srcdir
37871 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37872esac
37873ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37874
37875
37876 case $ac_mode in
37877 :F)
37878 #
37879 # CONFIG_FILE
37880 #
37881
37882 case $INSTALL in
37883 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37884 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37885 esac
cristy73bd4a52010-10-05 11:24:23 +000037886 ac_MKDIR_P=$MKDIR_P
37887 case $MKDIR_P in
37888 [\\/$]* | ?:[\\/]* ) ;;
37889 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37890 esac
cristy3ed852e2009-09-05 21:47:34 +000037891_ACEOF
37892
37893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37894# If the template does not know about datarootdir, expand it.
37895# FIXME: This hack should be removed a few years after 2.60.
37896ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037897ac_sed_dataroot='
37898/datarootdir/ {
37899 p
37900 q
37901}
37902/@datadir@/p
37903/@docdir@/p
37904/@infodir@/p
37905/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037906/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037907case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37908*datarootdir*) ac_datarootdir_seen=yes;;
37909*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037911$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37912_ACEOF
37913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37914 ac_datarootdir_hack='
37915 s&@datadir@&$datadir&g
37916 s&@docdir@&$docdir&g
37917 s&@infodir@&$infodir&g
37918 s&@localedir@&$localedir&g
37919 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037920 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037921esac
37922_ACEOF
37923
37924# Neutralize VPATH when `$srcdir' = `.'.
37925# Shell code in configure.ac might set extrasub.
37926# FIXME: do we really want to maintain this feature?
37927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37928ac_sed_extra="$ac_vpsub
37929$extrasub
37930_ACEOF
37931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37932:t
37933/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37934s|@configure_input@|$ac_sed_conf_input|;t t
37935s&@top_builddir@&$ac_top_builddir_sub&;t t
37936s&@top_build_prefix@&$ac_top_build_prefix&;t t
37937s&@srcdir@&$ac_srcdir&;t t
37938s&@abs_srcdir@&$ac_abs_srcdir&;t t
37939s&@top_srcdir@&$ac_top_srcdir&;t t
37940s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37941s&@builddir@&$ac_builddir&;t t
37942s&@abs_builddir@&$ac_abs_builddir&;t t
37943s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37944s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037945s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037946$ac_datarootdir_hack
37947"
cristyda16f162011-02-19 23:52:17 +000037948eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37949 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037950
37951test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037952 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37953 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37954 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037956which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037957$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037958which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037959
cristyda16f162011-02-19 23:52:17 +000037960 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037961 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037962 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37963 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037964 esac \
cristy98dddb52010-11-04 00:30:15 +000037965 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037966 ;;
37967 :H)
37968 #
37969 # CONFIG_HEADER
37970 #
37971 if test x"$ac_file" != x-; then
37972 {
37973 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037974 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37975 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037976 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037977 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037978 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037979$as_echo "$as_me: $ac_file is unchanged" >&6;}
37980 else
37981 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037982 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037983 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037984 fi
37985 else
37986 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037987 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037988 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037989 fi
cristy73bd4a52010-10-05 11:24:23 +000037990# Compute "$ac_file"'s index in $config_headers.
37991_am_arg="$ac_file"
37992_am_stamp_count=1
37993for _am_header in $config_headers :; do
37994 case $_am_header in
37995 $_am_arg | $_am_arg:* )
37996 break ;;
37997 * )
37998 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37999 esac
38000done
38001echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38002$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38003 X"$_am_arg" : 'X\(//\)[^/]' \| \
38004 X"$_am_arg" : 'X\(//\)$' \| \
38005 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38006$as_echo X"$_am_arg" |
38007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38008 s//\1/
38009 q
38010 }
38011 /^X\(\/\/\)[^/].*/{
38012 s//\1/
38013 q
38014 }
38015 /^X\(\/\/\)$/{
38016 s//\1/
38017 q
38018 }
38019 /^X\(\/\).*/{
38020 s//\1/
38021 q
38022 }
38023 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000038024 ;;
38025
cristy8b350f62009-11-15 23:12:43 +000038026 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000038027$as_echo "$as_me: executing $ac_file commands" >&6;}
38028 ;;
38029 esac
38030
38031
38032 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000038033 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000038034ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
38035ac_prefix_conf_PKG=`echo MagickCore`
38036ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
38037ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
38038ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
38039if test ".$ac_prefix_conf_INP" = "."; then
38040 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
38041 case "$ac_file" in
38042 *.h) ac_prefix_conf_INP=$ac_file ;;
38043 *)
38044 esac
38045 test ".$ac_prefix_conf_INP" != "." && break
38046 done
38047fi
38048if test ".$ac_prefix_conf_INP" = "."; then
38049 case "$ac_prefix_conf_OUT" in
38050 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
38051 ;;
38052 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
38053 ;;
38054 *) ac_prefix_conf_INP=config.h
38055 ;;
38056 esac
38057fi
38058if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000038059 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000038060else
38061 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
38062 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
38063 fi fi
38064 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
38065$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
38066 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000038067 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
38068 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
38069 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
38070 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
38071 $as_echo "#endif/" >> conftest.prefix
38072 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
38073 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
38074 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000038075 # now executing _script on _DEF input to create _OUT output file
38076 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
38077 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
38078 echo ' ' >>$tmp/pconfig.h
38079 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
38080
38081 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
38082 echo ' ' >>$tmp/pconfig.h
38083 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
38084 echo "#endif" >>$tmp/pconfig.h
38085 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38086 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38087$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38088 else
38089 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38090$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38091 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38092 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38093 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38094$as_echo X"$ac_prefix_conf_OUT" |
38095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38096 s//\1/
38097 q
38098 }
38099 /^X\(\/\/\)[^/].*/{
38100 s//\1/
38101 q
38102 }
38103 /^X\(\/\/\)$/{
38104 s//\1/
38105 q
38106 }
38107 /^X\(\/\).*/{
38108 s//\1/
38109 q
38110 }
38111 s/.*/./; q'`
38112 as_dir="$ac_dir"; as_fn_mkdir_p
38113 rm -f "$ac_prefix_conf_OUT"
38114 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38115 fi
38116 cp conftest.prefix _configs.sed
38117 else
cristy98dddb52010-11-04 00:30:15 +000038118 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 +000038119 fi
38120 rm -f conftest.*
38121fi
38122 ;;
38123 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000038124 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000038125 # are listed without --file. Let's play safe and only enable the eval
38126 # if we detect the quoting.
38127 case $CONFIG_FILES in
38128 *\'*) eval set x "$CONFIG_FILES" ;;
38129 *) set x $CONFIG_FILES ;;
38130 esac
38131 shift
38132 for mf
38133 do
38134 # Strip MF so we end up with the name of the file.
38135 mf=`echo "$mf" | sed -e 's/:.*$//'`
38136 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038137 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038138 # some people rename them; so instead we look at the file content.
38139 # Grep'ing the first line is not enough: some people post-process
38140 # each Makefile.in and add a new line on top of each file to say so.
38141 # Grep'ing the whole file is not good either: AIX grep has a line
38142 # limit of 2048, but all sed's we know have understand at least 4000.
38143 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38144 dirpart=`$as_dirname -- "$mf" ||
38145$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38146 X"$mf" : 'X\(//\)[^/]' \| \
38147 X"$mf" : 'X\(//\)$' \| \
38148 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38149$as_echo X"$mf" |
38150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38151 s//\1/
38152 q
38153 }
38154 /^X\(\/\/\)[^/].*/{
38155 s//\1/
38156 q
38157 }
38158 /^X\(\/\/\)$/{
38159 s//\1/
38160 q
38161 }
38162 /^X\(\/\).*/{
38163 s//\1/
38164 q
38165 }
38166 s/.*/./; q'`
38167 else
38168 continue
38169 fi
38170 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038171 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038172 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38173 test -z "$DEPDIR" && continue
38174 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038175 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038176 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038177 # Find all dependency output files, they are included files with
38178 # $(DEPDIR) in their names. We invoke sed twice because it is the
38179 # simplest approach to changing $(DEPDIR) to its actual value in the
38180 # expansion.
38181 for file in `sed -n "
38182 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038183 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038184 # Make sure the directory exists.
38185 test -f "$dirpart/$file" && continue
38186 fdir=`$as_dirname -- "$file" ||
38187$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38188 X"$file" : 'X\(//\)[^/]' \| \
38189 X"$file" : 'X\(//\)$' \| \
38190 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38191$as_echo X"$file" |
38192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38193 s//\1/
38194 q
38195 }
38196 /^X\(\/\/\)[^/].*/{
38197 s//\1/
38198 q
38199 }
38200 /^X\(\/\/\)$/{
38201 s//\1/
38202 q
38203 }
38204 /^X\(\/\).*/{
38205 s//\1/
38206 q
38207 }
38208 s/.*/./; q'`
38209 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38210 # echo "creating $dirpart/$file"
38211 echo '# dummy' > "$dirpart/$file"
38212 done
38213 done
38214}
38215 ;;
38216 "libtool":C)
38217
38218 # See if we are running on zsh, and set the options which allow our
38219 # commands through without removal of \ escapes.
38220 if test -n "${ZSH_VERSION+set}" ; then
38221 setopt NO_GLOB_SUBST
38222 fi
38223
38224 cfgfile="${ofile}T"
38225 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38226 $RM "$cfgfile"
38227
38228 cat <<_LT_EOF >> "$cfgfile"
38229#! $SHELL
38230
38231# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38232# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38233# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38234# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38235#
38236# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038237# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38238# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038239# Written by Gordon Matzigkeit, 1996
38240#
38241# This file is part of GNU Libtool.
38242#
38243# GNU Libtool is free software; you can redistribute it and/or
38244# modify it under the terms of the GNU General Public License as
38245# published by the Free Software Foundation; either version 2 of
38246# the License, or (at your option) any later version.
38247#
38248# As a special exception to the GNU General Public License,
38249# if you distribute this file as part of a program or library that
38250# is built using GNU Libtool, you may include this file under the
38251# same distribution terms that you use for the rest of that program.
38252#
38253# GNU Libtool is distributed in the hope that it will be useful,
38254# but WITHOUT ANY WARRANTY; without even the implied warranty of
38255# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38256# GNU General Public License for more details.
38257#
38258# You should have received a copy of the GNU General Public License
38259# along with GNU Libtool; see the file COPYING. If not, a copy
38260# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38261# obtained by writing to the Free Software Foundation, Inc.,
38262# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38263
38264
38265# The names of the tagged configurations supported by this script.
38266available_tags="CXX "
38267
38268# ### BEGIN LIBTOOL CONFIG
38269
38270# A sed program that does not truncate output.
38271SED=$lt_SED
38272
38273# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38274Xsed="\$SED -e 1s/^X//"
38275
38276# A grep program that handles long lines.
38277GREP=$lt_GREP
38278
38279# An ERE matcher.
38280EGREP=$lt_EGREP
38281
38282# A literal string matcher.
38283FGREP=$lt_FGREP
38284
cristy0c60a692010-11-04 01:09:47 +000038285# Shell to use when invoking shell scripts.
38286SHELL=$lt_SHELL
38287
38288# An echo program that protects backslashes.
38289ECHO=$lt_ECHO
38290
cristy73bd4a52010-10-05 11:24:23 +000038291# Which release of libtool.m4 was used?
38292macro_version=$macro_version
38293macro_revision=$macro_revision
38294
38295# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038296AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038297
38298# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038299DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038300
38301# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038302OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038303
38304# Whether or not to build shared libraries.
38305build_libtool_libs=$enable_shared
38306
38307# Whether or not to build static libraries.
38308build_old_libs=$enable_static
38309
38310# What type of objects to build.
38311pic_mode=$pic_mode
38312
38313# Whether or not to optimize for fast installation.
38314fast_install=$enable_fast_install
38315
cristy99bd5232011-12-07 14:38:20 +000038316# The PATH separator for the build system.
38317PATH_SEPARATOR=$lt_PATH_SEPARATOR
38318
cristy73bd4a52010-10-05 11:24:23 +000038319# The host system.
38320host_alias=$host_alias
38321host=$host
38322host_os=$host_os
38323
38324# The build system.
38325build_alias=$build_alias
38326build=$build
38327build_os=$build_os
38328
38329# A BSD- or MS-compatible name lister.
38330NM=$lt_NM
38331
38332# Whether we need soft or hard links.
38333LN_S=$lt_LN_S
38334
38335# What is the maximum length of a command?
38336max_cmd_len=$max_cmd_len
38337
38338# Object file suffix (normally "o").
38339objext=$ac_objext
38340
38341# Executable file suffix (normally "").
38342exeext=$exeext
38343
38344# whether the shell understands "unset".
38345lt_unset=$lt_unset
38346
38347# turn spaces into newlines.
38348SP2NL=$lt_lt_SP2NL
38349
38350# turn newlines into spaces.
38351NL2SP=$lt_lt_NL2SP
38352
cristyda16f162011-02-19 23:52:17 +000038353# convert \$build file names to \$host format.
38354to_host_file_cmd=$lt_cv_to_host_file_cmd
38355
38356# convert \$build files to toolchain format.
38357to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38358
cristy73bd4a52010-10-05 11:24:23 +000038359# Method to check whether dependent libraries are shared objects.
38360deplibs_check_method=$lt_deplibs_check_method
38361
cristyda16f162011-02-19 23:52:17 +000038362# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038363file_magic_cmd=$lt_file_magic_cmd
38364
cristyda16f162011-02-19 23:52:17 +000038365# How to find potential files when deplibs_check_method = "file_magic".
38366file_magic_glob=$lt_file_magic_glob
38367
38368# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38369want_nocaseglob=$lt_want_nocaseglob
38370
38371# Command to associate shared and link libraries.
38372sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38373
cristy73bd4a52010-10-05 11:24:23 +000038374# The archiver.
38375AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038376
38377# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038378AR_FLAGS=$lt_AR_FLAGS
38379
cristyda16f162011-02-19 23:52:17 +000038380# How to feed a file listing to the archiver.
38381archiver_list_spec=$lt_archiver_list_spec
38382
cristy73bd4a52010-10-05 11:24:23 +000038383# A symbol stripping program.
38384STRIP=$lt_STRIP
38385
38386# Commands used to install an old-style archive.
38387RANLIB=$lt_RANLIB
38388old_postinstall_cmds=$lt_old_postinstall_cmds
38389old_postuninstall_cmds=$lt_old_postuninstall_cmds
38390
cristy0c60a692010-11-04 01:09:47 +000038391# Whether to use a lock for old archive extraction.
38392lock_old_archive_extraction=$lock_old_archive_extraction
38393
cristy73bd4a52010-10-05 11:24:23 +000038394# A C compiler.
38395LTCC=$lt_CC
38396
38397# LTCC compiler flags.
38398LTCFLAGS=$lt_CFLAGS
38399
38400# Take the output of nm and produce a listing of raw symbols and C names.
38401global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38402
38403# Transform the output of nm in a proper C declaration.
38404global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38405
38406# Transform the output of nm in a C name address pair.
38407global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38408
38409# Transform the output of nm in a C name address pair when lib prefix is needed.
38410global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38411
cristyda16f162011-02-19 23:52:17 +000038412# Specify filename containing input files for \$NM.
38413nm_file_list_spec=$lt_nm_file_list_spec
38414
38415# The root where to search for dependent libraries,and in which our libraries should be installed.
38416lt_sysroot=$lt_sysroot
38417
cristy73bd4a52010-10-05 11:24:23 +000038418# The name of the directory that contains temporary libtool files.
38419objdir=$objdir
38420
cristy73bd4a52010-10-05 11:24:23 +000038421# Used to examine libraries when file_magic_cmd begins with "file".
38422MAGIC_CMD=$MAGIC_CMD
38423
38424# Must we lock files when doing compilation?
38425need_locks=$lt_need_locks
38426
cristyda16f162011-02-19 23:52:17 +000038427# Manifest tool.
38428MANIFEST_TOOL=$lt_MANIFEST_TOOL
38429
cristy73bd4a52010-10-05 11:24:23 +000038430# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38431DSYMUTIL=$lt_DSYMUTIL
38432
38433# Tool to change global to local symbols on Mac OS X.
38434NMEDIT=$lt_NMEDIT
38435
38436# Tool to manipulate fat objects and archives on Mac OS X.
38437LIPO=$lt_LIPO
38438
38439# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38440OTOOL=$lt_OTOOL
38441
38442# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38443OTOOL64=$lt_OTOOL64
38444
38445# Old archive suffix (normally "a").
38446libext=$libext
38447
38448# Shared library suffix (normally ".so").
38449shrext_cmds=$lt_shrext_cmds
38450
38451# The commands to extract the exported symbol list from a shared archive.
38452extract_expsyms_cmds=$lt_extract_expsyms_cmds
38453
38454# Variables whose values should be saved in libtool wrapper scripts and
38455# restored at link time.
38456variables_saved_for_relink=$lt_variables_saved_for_relink
38457
38458# Do we need the "lib" prefix for modules?
38459need_lib_prefix=$need_lib_prefix
38460
38461# Do we need a version for libraries?
38462need_version=$need_version
38463
38464# Library versioning type.
38465version_type=$version_type
38466
38467# Shared library runtime path variable.
38468runpath_var=$runpath_var
38469
38470# Shared library path variable.
38471shlibpath_var=$shlibpath_var
38472
38473# Is shlibpath searched before the hard-coded library search path?
38474shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38475
38476# Format of library name prefix.
38477libname_spec=$lt_libname_spec
38478
38479# List of archive names. First name is the real one, the rest are links.
38480# The last name is the one that the linker finds with -lNAME
38481library_names_spec=$lt_library_names_spec
38482
38483# The coded name of the library, if different from the real name.
38484soname_spec=$lt_soname_spec
38485
cristy0c60a692010-11-04 01:09:47 +000038486# Permission mode override for installation of shared libraries.
38487install_override_mode=$lt_install_override_mode
38488
cristy73bd4a52010-10-05 11:24:23 +000038489# Command to use after installation of a shared archive.
38490postinstall_cmds=$lt_postinstall_cmds
38491
38492# Command to use after uninstallation of a shared archive.
38493postuninstall_cmds=$lt_postuninstall_cmds
38494
38495# Commands used to finish a libtool library installation in a directory.
38496finish_cmds=$lt_finish_cmds
38497
38498# As "finish_cmds", except a single script fragment to be evaled but
38499# not shown.
38500finish_eval=$lt_finish_eval
38501
38502# Whether we should hardcode library paths into libraries.
38503hardcode_into_libs=$hardcode_into_libs
38504
38505# Compile-time system search path for libraries.
38506sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38507
38508# Run-time system search path for libraries.
38509sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38510
38511# Whether dlopen is supported.
38512dlopen_support=$enable_dlopen
38513
38514# Whether dlopen of programs is supported.
38515dlopen_self=$enable_dlopen_self
38516
38517# Whether dlopen of statically linked programs is supported.
38518dlopen_self_static=$enable_dlopen_self_static
38519
38520# Commands to strip libraries.
38521old_striplib=$lt_old_striplib
38522striplib=$lt_striplib
38523
38524
38525# The linker used to build libraries.
38526LD=$lt_LD
38527
cristy0c60a692010-11-04 01:09:47 +000038528# How to create reloadable object files.
38529reload_flag=$lt_reload_flag
38530reload_cmds=$lt_reload_cmds
38531
cristy73bd4a52010-10-05 11:24:23 +000038532# Commands used to build an old-style archive.
38533old_archive_cmds=$lt_old_archive_cmds
38534
38535# A language specific compiler.
38536CC=$lt_compiler
38537
38538# Is the compiler the GNU compiler?
38539with_gcc=$GCC
38540
38541# Compiler flag to turn off builtin functions.
38542no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38543
cristy73bd4a52010-10-05 11:24:23 +000038544# Additional compiler flags for building library objects.
38545pic_flag=$lt_lt_prog_compiler_pic
38546
cristyda16f162011-02-19 23:52:17 +000038547# How to pass a linker flag through the compiler.
38548wl=$lt_lt_prog_compiler_wl
38549
cristy73bd4a52010-10-05 11:24:23 +000038550# Compiler flag to prevent dynamic linking.
38551link_static_flag=$lt_lt_prog_compiler_static
38552
38553# Does compiler simultaneously support -c and -o options?
38554compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38555
38556# Whether or not to add -lc for building shared libraries.
38557build_libtool_need_lc=$archive_cmds_need_lc
38558
38559# Whether or not to disallow shared libs when runtime libs are static.
38560allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38561
38562# Compiler flag to allow reflexive dlopens.
38563export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38564
38565# Compiler flag to generate shared objects directly from archives.
38566whole_archive_flag_spec=$lt_whole_archive_flag_spec
38567
38568# Whether the compiler copes with passing no objects directly.
38569compiler_needs_object=$lt_compiler_needs_object
38570
38571# Create an old-style archive from a shared archive.
38572old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38573
38574# Create a temporary old-style archive to link instead of a shared archive.
38575old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38576
38577# Commands used to build a shared archive.
38578archive_cmds=$lt_archive_cmds
38579archive_expsym_cmds=$lt_archive_expsym_cmds
38580
38581# Commands used to build a loadable module if different from building
38582# a shared archive.
38583module_cmds=$lt_module_cmds
38584module_expsym_cmds=$lt_module_expsym_cmds
38585
38586# Whether we are building with GNU ld or not.
38587with_gnu_ld=$lt_with_gnu_ld
38588
38589# Flag that allows shared libraries with undefined symbols to be built.
38590allow_undefined_flag=$lt_allow_undefined_flag
38591
38592# Flag that enforces no undefined symbols.
38593no_undefined_flag=$lt_no_undefined_flag
38594
38595# Flag to hardcode \$libdir into a binary during linking.
38596# This must work even if \$libdir does not exist
38597hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38598
cristy73bd4a52010-10-05 11:24:23 +000038599# Whether we need a single "-rpath" flag with a separated argument.
38600hardcode_libdir_separator=$lt_hardcode_libdir_separator
38601
38602# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38603# DIR into the resulting binary.
38604hardcode_direct=$hardcode_direct
38605
38606# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38607# DIR into the resulting binary and the resulting library dependency is
38608# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38609# library is relocated.
38610hardcode_direct_absolute=$hardcode_direct_absolute
38611
38612# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38613# into the resulting binary.
38614hardcode_minus_L=$hardcode_minus_L
38615
38616# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38617# into the resulting binary.
38618hardcode_shlibpath_var=$hardcode_shlibpath_var
38619
38620# Set to "yes" if building a shared library automatically hardcodes DIR
38621# into the library and all subsequent libraries and executables linked
38622# against it.
38623hardcode_automatic=$hardcode_automatic
38624
38625# Set to yes if linker adds runtime paths of dependent libraries
38626# to runtime path list.
38627inherit_rpath=$inherit_rpath
38628
38629# Whether libtool must link a program against all its dependency libraries.
38630link_all_deplibs=$link_all_deplibs
38631
cristy73bd4a52010-10-05 11:24:23 +000038632# Set to "yes" if exported symbols are required.
38633always_export_symbols=$always_export_symbols
38634
38635# The commands to list exported symbols.
38636export_symbols_cmds=$lt_export_symbols_cmds
38637
38638# Symbols that should not be listed in the preloaded symbols.
38639exclude_expsyms=$lt_exclude_expsyms
38640
38641# Symbols that must always be exported.
38642include_expsyms=$lt_include_expsyms
38643
38644# Commands necessary for linking programs (against libraries) with templates.
38645prelink_cmds=$lt_prelink_cmds
38646
cristyda16f162011-02-19 23:52:17 +000038647# Commands necessary for finishing linking programs.
38648postlink_cmds=$lt_postlink_cmds
38649
cristy73bd4a52010-10-05 11:24:23 +000038650# Specify filename containing input files.
38651file_list_spec=$lt_file_list_spec
38652
38653# How to hardcode a shared library path into an executable.
38654hardcode_action=$hardcode_action
38655
38656# The directories searched by this compiler when creating a shared library.
38657compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38658
38659# Dependencies to place before and after the objects being linked to
38660# create a shared library.
38661predep_objects=$lt_predep_objects
38662postdep_objects=$lt_postdep_objects
38663predeps=$lt_predeps
38664postdeps=$lt_postdeps
38665
38666# The library search path used internally by the compiler when linking
38667# a shared library.
38668compiler_lib_search_path=$lt_compiler_lib_search_path
38669
38670# ### END LIBTOOL CONFIG
38671
38672_LT_EOF
38673
38674 case $host_os in
38675 aix3*)
38676 cat <<\_LT_EOF >> "$cfgfile"
38677# AIX sometimes has problems with the GCC collect2 program. For some
38678# reason, if we set the COLLECT_NAMES environment variable, the problems
38679# vanish in a puff of smoke.
38680if test "X${COLLECT_NAMES+set}" != Xset; then
38681 COLLECT_NAMES=
38682 export COLLECT_NAMES
38683fi
38684_LT_EOF
38685 ;;
38686 esac
38687
38688
38689ltmain="$ac_aux_dir/ltmain.sh"
38690
38691
38692 # We use sed instead of cat because bash on DJGPP gets confused if
38693 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38694 # text mode, it properly converts lines to CR/LF. This bash problem
38695 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038696 sed '$q' "$ltmain" >> "$cfgfile" \
38697 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038698
cristyda16f162011-02-19 23:52:17 +000038699 if test x"$xsi_shell" = xyes; then
38700 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38701func_dirname ()\
38702{\
38703\ case ${1} in\
38704\ */*) func_dirname_result="${1%/*}${2}" ;;\
38705\ * ) func_dirname_result="${3}" ;;\
38706\ esac\
38707} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38708 && mv -f "$cfgfile.tmp" "$cfgfile" \
38709 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38710test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038711
38712
cristyda16f162011-02-19 23:52:17 +000038713 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38714func_basename ()\
38715{\
38716\ func_basename_result="${1##*/}"\
38717} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38718 && mv -f "$cfgfile.tmp" "$cfgfile" \
38719 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38720test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038721
38722
cristyda16f162011-02-19 23:52:17 +000038723 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38724func_dirname_and_basename ()\
38725{\
38726\ case ${1} in\
38727\ */*) func_dirname_result="${1%/*}${2}" ;;\
38728\ * ) func_dirname_result="${3}" ;;\
38729\ esac\
38730\ func_basename_result="${1##*/}"\
38731} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38732 && mv -f "$cfgfile.tmp" "$cfgfile" \
38733 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38734test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038735
cristyda16f162011-02-19 23:52:17 +000038736
38737 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38738func_stripname ()\
38739{\
38740\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38741\ # positional parameters, so assign one to ordinary parameter first.\
38742\ func_stripname_result=${3}\
38743\ func_stripname_result=${func_stripname_result#"${1}"}\
38744\ func_stripname_result=${func_stripname_result%"${2}"}\
38745} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38746 && mv -f "$cfgfile.tmp" "$cfgfile" \
38747 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38748test 0 -eq $? || _lt_function_replace_fail=:
38749
38750
38751 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38752func_split_long_opt ()\
38753{\
38754\ func_split_long_opt_name=${1%%=*}\
38755\ func_split_long_opt_arg=${1#*=}\
38756} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38757 && mv -f "$cfgfile.tmp" "$cfgfile" \
38758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38759test 0 -eq $? || _lt_function_replace_fail=:
38760
38761
38762 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38763func_split_short_opt ()\
38764{\
38765\ func_split_short_opt_arg=${1#??}\
38766\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38767} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38768 && mv -f "$cfgfile.tmp" "$cfgfile" \
38769 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38770test 0 -eq $? || _lt_function_replace_fail=:
38771
38772
38773 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38774func_lo2o ()\
38775{\
38776\ case ${1} in\
38777\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38778\ *) func_lo2o_result=${1} ;;\
38779\ esac\
38780} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38781 && mv -f "$cfgfile.tmp" "$cfgfile" \
38782 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38783test 0 -eq $? || _lt_function_replace_fail=:
38784
38785
38786 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38787func_xform ()\
38788{\
38789 func_xform_result=${1%.*}.lo\
38790} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38791 && mv -f "$cfgfile.tmp" "$cfgfile" \
38792 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38793test 0 -eq $? || _lt_function_replace_fail=:
38794
38795
38796 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38797func_arith ()\
38798{\
38799 func_arith_result=$(( $* ))\
38800} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38801 && mv -f "$cfgfile.tmp" "$cfgfile" \
38802 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38803test 0 -eq $? || _lt_function_replace_fail=:
38804
38805
38806 sed -e '/^func_len ()$/,/^} # func_len /c\
38807func_len ()\
38808{\
38809 func_len_result=${#1}\
38810} # Extended-shell func_len 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
38815fi
38816
38817if test x"$lt_shell_append" = xyes; then
38818 sed -e '/^func_append ()$/,/^} # func_append /c\
38819func_append ()\
38820{\
38821 eval "${1}+=\\${2}"\
38822} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38823 && mv -f "$cfgfile.tmp" "$cfgfile" \
38824 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38825test 0 -eq $? || _lt_function_replace_fail=:
38826
38827
38828 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38829func_append_quoted ()\
38830{\
38831\ func_quote_for_eval "${2}"\
38832\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38833} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38834 && mv -f "$cfgfile.tmp" "$cfgfile" \
38835 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38836test 0 -eq $? || _lt_function_replace_fail=:
38837
38838
38839 # Save a `func_append' function call where possible by direct use of '+='
38840 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38841 && mv -f "$cfgfile.tmp" "$cfgfile" \
38842 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38843 test 0 -eq $? || _lt_function_replace_fail=:
38844else
38845 # Save a `func_append' function call even when '+=' is not available
38846 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38847 && mv -f "$cfgfile.tmp" "$cfgfile" \
38848 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38849 test 0 -eq $? || _lt_function_replace_fail=:
38850fi
38851
38852if test x"$_lt_function_replace_fail" = x":"; then
38853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38854$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38855fi
38856
38857
38858 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038859 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38860 chmod +x "$ofile"
38861
38862
38863 cat <<_LT_EOF >> "$ofile"
38864
38865# ### BEGIN LIBTOOL TAG CONFIG: CXX
38866
38867# The linker used to build libraries.
38868LD=$lt_LD_CXX
38869
cristy0c60a692010-11-04 01:09:47 +000038870# How to create reloadable object files.
38871reload_flag=$lt_reload_flag_CXX
38872reload_cmds=$lt_reload_cmds_CXX
38873
cristy73bd4a52010-10-05 11:24:23 +000038874# Commands used to build an old-style archive.
38875old_archive_cmds=$lt_old_archive_cmds_CXX
38876
38877# A language specific compiler.
38878CC=$lt_compiler_CXX
38879
38880# Is the compiler the GNU compiler?
38881with_gcc=$GCC_CXX
38882
38883# Compiler flag to turn off builtin functions.
38884no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38885
cristy73bd4a52010-10-05 11:24:23 +000038886# Additional compiler flags for building library objects.
38887pic_flag=$lt_lt_prog_compiler_pic_CXX
38888
cristyda16f162011-02-19 23:52:17 +000038889# How to pass a linker flag through the compiler.
38890wl=$lt_lt_prog_compiler_wl_CXX
38891
cristy73bd4a52010-10-05 11:24:23 +000038892# Compiler flag to prevent dynamic linking.
38893link_static_flag=$lt_lt_prog_compiler_static_CXX
38894
38895# Does compiler simultaneously support -c and -o options?
38896compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38897
38898# Whether or not to add -lc for building shared libraries.
38899build_libtool_need_lc=$archive_cmds_need_lc_CXX
38900
38901# Whether or not to disallow shared libs when runtime libs are static.
38902allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38903
38904# Compiler flag to allow reflexive dlopens.
38905export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38906
38907# Compiler flag to generate shared objects directly from archives.
38908whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38909
38910# Whether the compiler copes with passing no objects directly.
38911compiler_needs_object=$lt_compiler_needs_object_CXX
38912
38913# Create an old-style archive from a shared archive.
38914old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38915
38916# Create a temporary old-style archive to link instead of a shared archive.
38917old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38918
38919# Commands used to build a shared archive.
38920archive_cmds=$lt_archive_cmds_CXX
38921archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38922
38923# Commands used to build a loadable module if different from building
38924# a shared archive.
38925module_cmds=$lt_module_cmds_CXX
38926module_expsym_cmds=$lt_module_expsym_cmds_CXX
38927
38928# Whether we are building with GNU ld or not.
38929with_gnu_ld=$lt_with_gnu_ld_CXX
38930
38931# Flag that allows shared libraries with undefined symbols to be built.
38932allow_undefined_flag=$lt_allow_undefined_flag_CXX
38933
38934# Flag that enforces no undefined symbols.
38935no_undefined_flag=$lt_no_undefined_flag_CXX
38936
38937# Flag to hardcode \$libdir into a binary during linking.
38938# This must work even if \$libdir does not exist
38939hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38940
cristy73bd4a52010-10-05 11:24:23 +000038941# Whether we need a single "-rpath" flag with a separated argument.
38942hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38943
38944# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38945# DIR into the resulting binary.
38946hardcode_direct=$hardcode_direct_CXX
38947
38948# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38949# DIR into the resulting binary and the resulting library dependency is
38950# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38951# library is relocated.
38952hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38953
38954# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38955# into the resulting binary.
38956hardcode_minus_L=$hardcode_minus_L_CXX
38957
38958# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38959# into the resulting binary.
38960hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38961
38962# Set to "yes" if building a shared library automatically hardcodes DIR
38963# into the library and all subsequent libraries and executables linked
38964# against it.
38965hardcode_automatic=$hardcode_automatic_CXX
38966
38967# Set to yes if linker adds runtime paths of dependent libraries
38968# to runtime path list.
38969inherit_rpath=$inherit_rpath_CXX
38970
38971# Whether libtool must link a program against all its dependency libraries.
38972link_all_deplibs=$link_all_deplibs_CXX
38973
cristy73bd4a52010-10-05 11:24:23 +000038974# Set to "yes" if exported symbols are required.
38975always_export_symbols=$always_export_symbols_CXX
38976
38977# The commands to list exported symbols.
38978export_symbols_cmds=$lt_export_symbols_cmds_CXX
38979
38980# Symbols that should not be listed in the preloaded symbols.
38981exclude_expsyms=$lt_exclude_expsyms_CXX
38982
38983# Symbols that must always be exported.
38984include_expsyms=$lt_include_expsyms_CXX
38985
38986# Commands necessary for linking programs (against libraries) with templates.
38987prelink_cmds=$lt_prelink_cmds_CXX
38988
cristyda16f162011-02-19 23:52:17 +000038989# Commands necessary for finishing linking programs.
38990postlink_cmds=$lt_postlink_cmds_CXX
38991
cristy73bd4a52010-10-05 11:24:23 +000038992# Specify filename containing input files.
38993file_list_spec=$lt_file_list_spec_CXX
38994
38995# How to hardcode a shared library path into an executable.
38996hardcode_action=$hardcode_action_CXX
38997
38998# The directories searched by this compiler when creating a shared library.
38999compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39000
39001# Dependencies to place before and after the objects being linked to
39002# create a shared library.
39003predep_objects=$lt_predep_objects_CXX
39004postdep_objects=$lt_postdep_objects_CXX
39005predeps=$lt_predeps_CXX
39006postdeps=$lt_postdeps_CXX
39007
39008# The library search path used internally by the compiler when linking
39009# a shared library.
39010compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39011
39012# ### END LIBTOOL TAG CONFIG: CXX
39013_LT_EOF
39014
39015 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000039016 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000039017 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000039018 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000039019 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
39020 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
39021
39022 esac
39023done # for ac_tag
39024
39025
cristy8b350f62009-11-15 23:12:43 +000039026as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000039027_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000039028ac_clean_files=$ac_clean_files_save
39029
39030test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000039031 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039032
39033
39034# configure is writing to config.log, and then calls config.status.
39035# config.status does its own redirection, appending to config.log.
39036# Unfortunately, on DOS this fails, as config.log is still kept open
39037# by configure, so config.status won't be able to write to it; its
39038# output is simply discarded. So we exec the FD to /dev/null,
39039# effectively closing config.log, so it can be properly (re)opened and
39040# appended to by config.status. When coming back to configure, we
39041# need to make the FD available again.
39042if test "$no_create" != yes; then
39043 ac_cs_success=:
39044 ac_config_status_args=
39045 test "$silent" = yes &&
39046 ac_config_status_args="$ac_config_status_args --quiet"
39047 exec 5>/dev/null
39048 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39049 exec 5>>config.log
39050 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39051 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000039052 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000039053fi
39054if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000039055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000039056$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39057fi
39058
39059
39060rm -f magick-version
39061
cristy430a7312010-01-21 20:44:04 +000039062result_dejavu_font_dir='none'
39063if test "${dejavu_font_dir}x" != 'x'; then
39064 result_dejavu_font_dir=$dejavu_font_dir
39065fi
39066
cristy3ed852e2009-09-05 21:47:34 +000039067result_ghostscript_font_dir='none'
39068if test "${ghostscript_font_dir}x" != 'x'; then
39069 result_ghostscript_font_dir=$ghostscript_font_dir
39070fi
39071
39072result_windows_font_dir='none'
39073if test "${windows_font_dir}x" != 'x'; then
39074 result_windows_font_dir=${windows_font_dir}
39075fi
39076
cristyad38abe2012-12-23 23:03:21 +000039077{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000039078ImageMagick is configured as follows. Please verify that this configuration
39079matches your expectations.
39080
39081Host system type: $host
39082Build system type: $build
39083
39084 Option Value
39085-------------------------------------------------------------------------------
39086Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39087Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039088Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039089GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39090Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39091High Dynamic Range Imagery
39092 --enable-hdri=$enable_hdri $enable_hdri
39093
39094Delegate Configuration:
39095BZLIB --with-bzlib=$with_bzlib $have_bzlib
39096Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000039097Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039098DJVU --with-djvu=$with_djvu $have_djvu
39099DPS --with-dps=$with_dps $have_dps
39100FFTW --with-fftw=$with_fftw $have_fftw
39101FlashPIX --with-fpx=$with_fpx $have_fpx
39102FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39103FreeType --with-freetype=$with_freetype $have_freetype
39104GhostPCL None $PCLDelegate ($PCLVersion)
39105GhostXPS None $XPSDelegate ($XPSVersion)
39106Ghostscript None $PSDelegate ($GSVersion)
39107Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39108Ghostscript lib --with-gslib=$with_gslib $have_gslib
39109Graphviz --with-gvc=$with_gvc $have_gvc
39110JBIG --with-jbig=$with_jbig $have_jbig
39111JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39112JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039113LCMS v1 --with-lcms=$with_lcms $have_lcms
39114LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy99db3872014-01-01 15:11:34 +000039115LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy3ed852e2009-09-05 21:47:34 +000039116LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039117LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039118LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039119Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000039120MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000039121OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039122PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039123PERL --with-perl=$with_perl $have_perl
39124PNG --with-png=$with_png $have_png
39125RSVG --with-rsvg=$with_rsvg $have_rsvg
39126TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039127WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039128Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000039129WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039130X11 --with-x=$with_x $have_x
39131XML --with-xml=$with_xml $have_xml
39132ZLIB --with-zlib=$with_zlib $have_zlib
39133
39134X11 Configuration:
39135 X_CFLAGS = $X_CFLAGS
39136 X_PRE_LIBS = $X_PRE_LIBS
39137 X_LIBS = $X_LIBS
39138 X_EXTRA_LIBS = $X_EXTRA_LIBS
39139
39140Options used to compile and link:
39141 PREFIX = $PREFIX_DIR
39142 EXEC-PREFIX = $EXEC_PREFIX_DIR
39143 VERSION = $PACKAGE_VERSION
39144 CC = $CC
39145 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039146 CPPFLAGS = $MAGICK_CPPFLAGS
39147 PCFLAGS = $MAGICK_PCFLAGS
39148 DEFS = $DEFS
39149 LDFLAGS = $LDFLAGS
39150 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39151 LIBS = $MAGICK_LIBS
39152 CXX = $CXX
39153 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039154 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039155 DELEGATES = $MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +000039156" >&5
cristyad38abe2012-12-23 23:03:21 +000039157$as_echo "
cristy3ed852e2009-09-05 21:47:34 +000039158ImageMagick is configured as follows. Please verify that this configuration
39159matches your expectations.
39160
39161Host system type: $host
39162Build system type: $build
39163
39164 Option Value
39165-------------------------------------------------------------------------------
39166Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39167Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000039168Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000039169GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39170Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39171High Dynamic Range Imagery
39172 --enable-hdri=$enable_hdri $enable_hdri
39173
39174Delegate Configuration:
39175BZLIB --with-bzlib=$with_bzlib $have_bzlib
39176Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000039177Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039178DJVU --with-djvu=$with_djvu $have_djvu
39179DPS --with-dps=$with_dps $have_dps
39180FFTW --with-fftw=$with_fftw $have_fftw
39181FlashPIX --with-fpx=$with_fpx $have_fpx
39182FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39183FreeType --with-freetype=$with_freetype $have_freetype
39184GhostPCL None $PCLDelegate ($PCLVersion)
39185GhostXPS None $XPSDelegate ($XPSVersion)
39186Ghostscript None $PSDelegate ($GSVersion)
39187Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39188Ghostscript lib --with-gslib=$with_gslib $have_gslib
39189Graphviz --with-gvc=$with_gvc $have_gvc
39190JBIG --with-jbig=$with_jbig $have_jbig
39191JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39192JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039193LCMS v1 --with-lcms=$with_lcms $have_lcms
39194LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy99db3872014-01-01 15:11:34 +000039195LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
cristy3ed852e2009-09-05 21:47:34 +000039196LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000039197LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000039198LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039199Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
cristy854c9cf2013-08-10 21:03:06 +000039200MUPDF --with-mupdf=$with_mupdf $have_mupdf
cristy3ed852e2009-09-05 21:47:34 +000039201OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039202PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039203PERL --with-perl=$with_perl $have_perl
39204PNG --with-png=$with_png $have_png
39205RSVG --with-rsvg=$with_rsvg $have_rsvg
39206TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039207WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039208Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy01ff9f32012-12-01 18:15:29 +000039209WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000039210X11 --with-x=$with_x $have_x
39211XML --with-xml=$with_xml $have_xml
39212ZLIB --with-zlib=$with_zlib $have_zlib
39213
39214X11 Configuration:
39215 X_CFLAGS = $X_CFLAGS
39216 X_PRE_LIBS = $X_PRE_LIBS
39217 X_LIBS = $X_LIBS
39218 X_EXTRA_LIBS = $X_EXTRA_LIBS
39219
39220Options used to compile and link:
39221 PREFIX = $PREFIX_DIR
39222 EXEC-PREFIX = $EXEC_PREFIX_DIR
39223 VERSION = $PACKAGE_VERSION
39224 CC = $CC
39225 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039226 CPPFLAGS = $MAGICK_CPPFLAGS
39227 PCFLAGS = $MAGICK_PCFLAGS
39228 DEFS = $DEFS
39229 LDFLAGS = $LDFLAGS
39230 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39231 LIBS = $MAGICK_LIBS
39232 CXX = $CXX
39233 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039234 FEATURES = $MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +000039235 DELEGATES = $MAGICK_DELEGATES
cristyad38abe2012-12-23 23:03:21 +000039236" >&6; }